-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: onboarding intercom v2 retl support (#3843)
* feat: onboarding intercom v2 retl support * fix: fixing export error * fix: searching contact for insert record * fix: added more tests * fix: addressing comment * fix: minor change
- Loading branch information
1 parent
6554893
commit 3d7db73
Showing
6 changed files
with
558 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -746,6 +746,108 @@ const deliveryCallsData = [ | |
}, | ||
}, | ||
}, | ||
{ | ||
httpReq: { | ||
method: 'post', | ||
url: 'https://api.intercom.io/contacts/search', | ||
data: { | ||
query: { | ||
operator: 'AND', | ||
value: [{ field: 'email', operator: '=', value: '[email protected]' }], | ||
}, | ||
}, | ||
headers, | ||
}, | ||
httpRes: { | ||
status: 200, | ||
statusText: 'ok', | ||
data: { | ||
type: 'list', | ||
total_count: 0, | ||
pages: { | ||
type: 'pages', | ||
page: 1, | ||
per_page: 50, | ||
total_pages: 0, | ||
}, | ||
data: [ | ||
{ | ||
type: 'contact', | ||
id: 'retl-available-contact-id', | ||
workspace_id: 'rudderWorkspace', | ||
external_id: 'detach-company-user-id', | ||
role: 'user', | ||
email: '[email protected]', | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
{ | ||
httpReq: { | ||
method: 'post', | ||
url: 'https://api.intercom.io/contacts/search', | ||
data: { | ||
query: { | ||
operator: 'AND', | ||
value: [{ field: 'email', operator: '=', value: '[email protected]' }], | ||
}, | ||
}, | ||
headers, | ||
}, | ||
httpRes: { | ||
status: 200, | ||
statusText: 'ok', | ||
data: { | ||
type: 'list', | ||
total_count: 0, | ||
pages: { | ||
type: 'pages', | ||
page: 1, | ||
per_page: 50, | ||
total_pages: 0, | ||
}, | ||
data: [], | ||
}, | ||
}, | ||
}, | ||
{ | ||
httpReq: { | ||
method: 'post', | ||
url: 'https://api.au.intercom.io/contacts/search', | ||
data: { | ||
query: { | ||
operator: 'AND', | ||
value: [{ field: 'external_id', operator: '=', value: 'known-user-id-1' }], | ||
}, | ||
}, | ||
headers, | ||
}, | ||
httpRes: { | ||
status: 200, | ||
statusText: 'ok', | ||
data: { | ||
type: 'list', | ||
total_count: 0, | ||
pages: { | ||
type: 'pages', | ||
page: 1, | ||
per_page: 50, | ||
total_pages: 0, | ||
}, | ||
data: [ | ||
{ | ||
type: 'contact', | ||
id: 'contact-id-by-intercom-known-user-id-1', | ||
workspace_id: 'rudderWorkspace', | ||
external_id: 'user-id-1', | ||
role: 'user', | ||
email: '[email protected]', | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
]; | ||
|
||
export const networkCallsData = [...deliveryCallsData]; |
Oops, something went wrong.