Skip to content

Commit

Permalink
feat(zendesk): add source name setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravudia committed Aug 14, 2023
1 parent fe4484b commit 5e46f16
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/configurations/destinations/zendesk/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"sendGroupCallsWithoutUserId",
"removeUsersFromOrganization",
"searchByExternalId",
"oneTrustCookieCategories"
"oneTrustCookieCategories",
"sourceName"
]
},
"secretKeys": ["apiToken"]
Expand Down
20 changes: 16 additions & 4 deletions src/configurations/destinations/zendesk/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,22 @@
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"createUsersAsVerified": { "type": "boolean" },
"sendGroupCallsWithoutUserId": { "type": "boolean" },
"removeUsersFromOrganization": { "type": "boolean" },
"searchByExternalId": { "type": "boolean" },
"sourceName": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"createUsersAsVerified": {
"type": "boolean"
},
"sendGroupCallsWithoutUserId": {
"type": "boolean"
},
"removeUsersFromOrganization": {
"type": "boolean"
},
"searchByExternalId": {
"type": "boolean"
},
"oneTrustCookieCategories": {
"type": "array",
"items": {
Expand Down
10 changes: 10 additions & 0 deletions src/configurations/destinations/zendesk/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
"required": true,
"placeholder": "Subdomain only not including .zendesk.com"
},
{
"type": "textInput",
"label": "Source Name",
"value": "sourceName",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$",
"regexErrorMessage": "Invalid Source",
"required": false,
"placeholder": "e.g: Rudder",
"footerNote": "Specify the source for the events. If not specified, the source is set to `Rudder` by default."
},
{
"type": "checkbox",
"label": "Create users as verified",
Expand Down
15 changes: 14 additions & 1 deletion test/data/validation/destinations/zendesk.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@
"domain": "coover",
"createUsersAsVerified": true,
"sendGroupCallsWithoutUserId": false,
"removeUsersFromOrganization": false
"removeUsersFromOrganization": false,
"sourceName": "abc"
},
"result": true
},
{
"config": {
"email": "rodrigo@coover.me",
"apiToken": "WpUn4Q6xTqXwvKUGDVcbWY7HxmUoOdEBvKIIOKP3",
"domain": "coover",
"createUsersAsVerified": true,
"sendGroupCallsWithoutUserId": false,
"removeUsersFromOrganization": false,
"sourceName": ""
},
"result": true
},
Expand Down

0 comments on commit 5e46f16

Please sign in to comment.