-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(intercom): update syncs and actions (#106)
## Describe your changes Clean up intercom syncs and actions ## Issue ticket number and link ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] External API requests have `retries` - [x] Pagination is used where appropriate - [x] The built in `nango.paginate` call is used instead of a `while (true)` loop - [ ] Third party requests are NOT parallelized (this can cause issues with rate limits) - [ ] If a sync requires metadata the `nango.yaml` has `auto_start: false` - [ ] If the sync is a `full` sync then `track_deletes: true` is set - [ ] I followed the best practices and guidelines from the [Writing Integration Scripts](/NangoHQ/integration-templates/blob/main/WRITING_INTEGRATION_SCRIPTS.md) doc
- Loading branch information
1 parent
8f74f8f
commit 1d44fff
Showing
30 changed files
with
440 additions
and
900 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
79 changes: 7 additions & 72 deletions
79
integrations/intercom/mocks/contacts/Contact/batchSave.json
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 |
---|---|---|
@@ -1,80 +1,15 @@ | ||
[ | ||
{ | ||
"id": "66f7ee5ea9e2c41564b4c362", | ||
"workspace_id": "s0lour9i", | ||
"external_id": "3892ec77-2638-4343-a883-54c1ead2e35e", | ||
"id": "67327549c52835a6025fe1c1", | ||
"workspace_id": "aiiw21up", | ||
"external_id": "ab734fed-c8bd-43b5-9c83-284956478296", | ||
"type": "user", | ||
"email": "example.user@projectmap.com", | ||
"phone": null, | ||
"name": "Example User", | ||
"created_at": "2024-09-28T11:54:06.000Z", | ||
"updated_at": "2024-09-28T11:54:25.000Z", | ||
"last_seen_at": "2024-09-28T11:54:06.000Z", | ||
"last_replied_at": "2024-09-28T11:54:23.000Z" | ||
}, | ||
{ | ||
"id": "66fadfecea421c7b5057f6f0", | ||
"workspace_id": "s0lour9i", | ||
"external_id": "1234566", | ||
"type": "user", | ||
"email": "john.doe@example.com", | ||
"phone": null, | ||
"name": "John Doe", | ||
"created_at": "2024-09-30T17:29:16.000Z", | ||
"updated_at": "2024-09-30T17:29:16.000Z", | ||
"last_seen_at": null, | ||
"last_replied_at": null | ||
}, | ||
{ | ||
"id": "66fae008c39645865b3c0443", | ||
"workspace_id": "s0lour9i", | ||
"external_id": "23477", | ||
"type": "user", | ||
"email": "james@test.com", | ||
"phone": null, | ||
"name": "James Test", | ||
"created_at": "2024-09-30T17:29:44.000Z", | ||
"updated_at": "2024-09-30T17:29:44.000Z", | ||
"last_seen_at": null, | ||
"last_replied_at": null | ||
}, | ||
{ | ||
"id": "66fae01ac4f9bc7fb131a4a6", | ||
"workspace_id": "s0lour9i", | ||
"external_id": "894343", | ||
"type": "user", | ||
"email": "test@test.com", | ||
"phone": null, | ||
"name": null, | ||
"created_at": "2024-09-30T17:30:02.000Z", | ||
"updated_at": "2024-09-30T17:30:02.000Z", | ||
"last_seen_at": null, | ||
"last_replied_at": null | ||
}, | ||
{ | ||
"id": "66fae0386198fdb3ae7e8746", | ||
"workspace_id": "s0lour9i", | ||
"external_id": "4353453", | ||
"type": "user", | ||
"email": "test@tes2t.com", | ||
"phone": null, | ||
"name": "Ian Test", | ||
"created_at": "2024-09-30T17:30:33.000Z", | ||
"updated_at": "2024-09-30T17:30:33.000Z", | ||
"last_seen_at": null, | ||
"last_replied_at": null | ||
}, | ||
{ | ||
"id": "66fae05c6a8ee5104e5c6ee1", | ||
"workspace_id": "s0lour9i", | ||
"external_id": "324343", | ||
"type": "user", | ||
"email": "phil@inter.com", | ||
"phone": null, | ||
"name": "Phil Intercom", | ||
"created_at": "2024-09-30T17:31:08.000Z", | ||
"updated_at": "2024-09-30T17:31:08.000Z", | ||
"last_seen_at": null, | ||
"last_replied_at": null | ||
"created_at": "2024-11-11T21:21:13.000Z", | ||
"updated_at": "2024-11-11T21:21:34.000Z", | ||
"last_seen_at": "2024-11-11T21:21:13.000Z", | ||
"last_replied_at": "2024-11-11T21:21:32.000Z" | ||
} | ||
] |
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,5 @@ | ||
{ | ||
"email": "foo@goo.com", | ||
"firstName": "Foo", | ||
"lastName": "Bryant" | ||
} |
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 @@ | ||
{ | ||
"id": "67331e9ead6af79f49321675", | ||
"workspace_id": "aiiw21up", | ||
"external_id": null, | ||
"type": "user", | ||
"email": "foo@goo.com", | ||
"phone": null, | ||
"name": "Foo Bryant", | ||
"created_at": "2024-11-12T09:23:42.000Z", | ||
"updated_at": "2024-11-12T09:23:42.000Z", | ||
"last_seen_at": null, | ||
"last_replied_at": null | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
{ | ||
"id": "67331e9ead6af79f49321675" | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
...s/intercom/mocks/nango/delete/proxy/contacts/67331e9ead6af79f49321675/delete-contact.json
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,6 @@ | ||
{ | ||
"id": "67331e9ead6af79f49321675", | ||
"external_id": null, | ||
"type": "contact", | ||
"deleted": true | ||
} |
27 changes: 27 additions & 0 deletions
27
integrations/intercom/mocks/nango/get/proxy/admins/users.json
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,27 @@ | ||
{ | ||
"type": "admin.list", | ||
"admins": [ | ||
{ | ||
"type": "admin", | ||
"email": "khaliq@nango.dev", | ||
"id": "7890376", | ||
"name": "Khaliq Gant", | ||
"away_mode_enabled": false, | ||
"away_mode_reassign": false, | ||
"has_inbox_seat": true, | ||
"team_ids": [], | ||
"team_priority_level": {} | ||
}, | ||
{ | ||
"type": "admin", | ||
"email": "operator+aiiw21up@intercom.io", | ||
"id": "7890377", | ||
"name": "Fin", | ||
"away_mode_enabled": false, | ||
"away_mode_reassign": false, | ||
"has_inbox_seat": true, | ||
"team_ids": [], | ||
"team_priority_level": {} | ||
} | ||
] | ||
} |
Oops, something went wrong.