-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chat-core-zendesk: add support for ticketFields (#51)
Adds support for the new ticketFields param on the ZendeskHandoff returned from the Chat API. This allows fields specified in the bot config to autopopulate in arbitrary custom Zendesk fields. TEST=manual,auto Ran test site locally, using a bot with a field's ID set in the ticketFields. Initiated a support session, saw the field populated with the specified value. Wrote a unit test validating that the parameters are used and formatted correctly, saw it pass.
- Loading branch information
Showing
10 changed files
with
74 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,7 +195,7 @@ The following NPM packages may be included in this product: | |
- @types/[email protected] | ||
- @types/[email protected] | ||
- @types/[email protected] | ||
- @types/[email protected].4 | ||
- @types/[email protected].5 | ||
- @types/[email protected] | ||
- @types/[email protected] | ||
- @types/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/chat-core/docs/chat-core.zendeskhandoff.ticketfields.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/chat-core](./chat-core.md) > [ZendeskHandoff](./chat-core.zendeskhandoff.md) > [ticketFields](./chat-core.zendeskhandoff.ticketfields.md) | ||
|
||
## ZendeskHandoff.ticketFields property | ||
|
||
A serialized JSON string of ticket fields to be automatically set when initiating Zendesk handoff. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
ticketFields?: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.