From 19542097eccc2008a4140330ce591eb04cfc8c60 Mon Sep 17 00:00:00 2001 From: Denys Davydov Date: Tue, 15 Nov 2022 17:01:24 +0200 Subject: [PATCH] #1010 oncall Source Zendesk Support: do not use nonpublic API --- .../source-zendesk-support/Dockerfile | 2 +- .../acceptance-test-config.yml | 51 +++--- .../integration_tests/configured_catalog.json | 26 +-- .../integration_tests/expected_records.txt | 112 ++++++++++++ .../incremental_catalog.json | 160 ++++++++++++++++++ .../source_zendesk_support/source.py | 66 ++++---- .../source_zendesk_support/streams.py | 20 --- .../unit_tests/unit_test.py | 23 ++- docs/integrations/sources/zendesk-support.md | 3 +- 9 files changed, 361 insertions(+), 102 deletions(-) create mode 100644 airbyte-integrations/connectors/source-zendesk-support/integration_tests/expected_records.txt create mode 100644 airbyte-integrations/connectors/source-zendesk-support/integration_tests/incremental_catalog.json diff --git a/airbyte-integrations/connectors/source-zendesk-support/Dockerfile b/airbyte-integrations/connectors/source-zendesk-support/Dockerfile index 6f8396d9e2f2..bfd5a4a6a16e 100644 --- a/airbyte-integrations/connectors/source-zendesk-support/Dockerfile +++ b/airbyte-integrations/connectors/source-zendesk-support/Dockerfile @@ -25,5 +25,5 @@ COPY source_zendesk_support ./source_zendesk_support ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.2.16 +LABEL io.airbyte.version=0.2.17 LABEL io.airbyte.name=airbyte/source-zendesk-support diff --git a/airbyte-integrations/connectors/source-zendesk-support/acceptance-test-config.yml b/airbyte-integrations/connectors/source-zendesk-support/acceptance-test-config.yml index 561f7675518e..3645853ccfdb 100644 --- a/airbyte-integrations/connectors/source-zendesk-support/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-zendesk-support/acceptance-test-config.yml @@ -1,29 +1,40 @@ # See [Source Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/source-acceptance-tests-reference) # for more information about how to configure these tests connector_image: airbyte/source-zendesk-support:dev -tests: +test_strictness_level: high +acceptance_tests: spec: - - spec_path: "source_zendesk_support/spec.json" + tests: + - spec_path: "source_zendesk_support/spec.json" connection: - - config_path: "secrets/config.json" - status: "succeed" - - config_path: "secrets/config_oauth.json" - status: "succeed" - - config_path: "integration_tests/invalid_config.json" - status: "failed" + tests: + - config_path: "secrets/config.json" + status: "succeed" + - config_path: "secrets/config_oauth.json" + status: "succeed" + - config_path: "integration_tests/invalid_config.json" + status: "failed" discovery: - - config_path: "secrets/config.json" - - config_path: "secrets/config_oauth.json" + tests: + - config_path: "secrets/config.json" + - config_path: "secrets/config_oauth.json" basic_read: - - config_path: "secrets/config.json" - configured_catalog_path: "integration_tests/configured_catalog.json" - empty_streams: ["tags"] + tests: + - config_path: "secrets/config.json" + expect_records: + path: "integration_tests/expected_records.txt" + empty_streams: + - name: "tags" + bypass_reason: "can not fill the stream" incremental: - - config_path: "secrets/config.json" - configured_catalog_path: "integration_tests/configured_catalog.json" - future_state_path: "integration_tests/abnormal_state.json" - cursor_paths: - ticket_comments: ["created_at"] + tests: + - config_path: "secrets/config.json" + configured_catalog_path: "integration_tests/incremental_catalog.json" + future_state: + future_state_path: "integration_tests/abnormal_state.json" + cursor_paths: + ticket_comments: ["created_at"] full_refresh: - - config_path: "secrets/config.json" - configured_catalog_path: "integration_tests/configured_catalog.json" + tests: + - config_path: "secrets/config.json" + configured_catalog_path: "integration_tests/configured_catalog.json" diff --git a/airbyte-integrations/connectors/source-zendesk-support/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-zendesk-support/integration_tests/configured_catalog.json index 55c43dc76d9e..014a46ac7318 100644 --- a/airbyte-integrations/connectors/source-zendesk-support/integration_tests/configured_catalog.json +++ b/airbyte-integrations/connectors/source-zendesk-support/integration_tests/configured_catalog.json @@ -9,7 +9,7 @@ "default_cursor_field": ["updated_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -21,7 +21,7 @@ "default_cursor_field": ["updated_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -33,7 +33,7 @@ "default_cursor_field": ["updated_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -45,7 +45,7 @@ "default_cursor_field": ["updated_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -57,7 +57,7 @@ "default_cursor_field": ["updated_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -101,7 +101,7 @@ "default_cursor_field": ["created_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -113,7 +113,7 @@ "default_cursor_field": ["created_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -125,7 +125,7 @@ "default_cursor_field": ["updated_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -137,7 +137,7 @@ "default_cursor_field": ["updated_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -149,7 +149,7 @@ "default_cursor_field": ["updated_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -161,7 +161,7 @@ "default_cursor_field": ["time"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -173,7 +173,7 @@ "default_cursor_field": ["generated_timestamp"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" }, { @@ -185,7 +185,7 @@ "default_cursor_field": ["updated_at"], "source_defined_primary_key": [["id"]] }, - "sync_mode": "incremental", + "sync_mode": "full_refresh", "destination_sync_mode": "append" } ] diff --git a/airbyte-integrations/connectors/source-zendesk-support/integration_tests/expected_records.txt b/airbyte-integrations/connectors/source-zendesk-support/integration_tests/expected_records.txt new file mode 100644 index 000000000000..d2ab602ea31e --- /dev/null +++ b/airbyte-integrations/connectors/source-zendesk-support/integration_tests/expected_records.txt @@ -0,0 +1,112 @@ +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/360007820916.json","id":360007820916,"user_id":360786799676,"group_id":360003074836,"default":true,"created_at":"2020-12-11T18:34:05Z","updated_at":"2020-12-11T18:34:05Z"},"emitted_at":1668515312447} +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/360011727976.json","id":360011727976,"user_id":361084605116,"group_id":360003074836,"default":true,"created_at":"2021-04-23T14:33:11Z","updated_at":"2021-04-23T14:33:11Z"},"emitted_at":1668515312447} +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/360011812655.json","id":360011812655,"user_id":361089721035,"group_id":360003074836,"default":true,"created_at":"2021-04-23T14:34:20Z","updated_at":"2021-04-23T14:34:20Z"},"emitted_at":1668515312447} +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/5059403826063.json","id":5059403826063,"user_id":360786799676,"group_id":5059403825935,"default":false,"created_at":"2022-06-29T12:30:07Z","updated_at":"2022-06-29T12:30:07Z"},"emitted_at":1668515312448} +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/5059436285071.json","id":5059436285071,"user_id":361084605116,"group_id":5059436284943,"default":false,"created_at":"2022-06-29T12:30:48Z","updated_at":"2022-06-29T12:30:48Z"},"emitted_at":1668515312448} +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/5059439464207.json","id":5059439464207,"user_id":361089721035,"group_id":5059439464079,"default":false,"created_at":"2022-06-29T12:29:26Z","updated_at":"2022-06-29T12:29:26Z"},"emitted_at":1668515312448} +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/5059439847183.json","id":5059439847183,"user_id":360786799676,"group_id":5059436114575,"default":false,"created_at":"2022-06-29T12:30:30Z","updated_at":"2022-06-29T12:30:30Z"},"emitted_at":1668515312448} +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/5059439847695.json","id":5059439847695,"user_id":361089721035,"group_id":5059436114575,"default":false,"created_at":"2022-06-29T12:30:30Z","updated_at":"2022-06-29T12:30:30Z"},"emitted_at":1668515312448} +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/5059452990863.json","id":5059452990863,"user_id":361084605116,"group_id":5059452990735,"default":false,"created_at":"2022-06-29T12:29:36Z","updated_at":"2022-06-29T12:29:36Z"},"emitted_at":1668515312448} +{"stream":"group_memberships","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/group_memberships/5059453143055.json","id":5059453143055,"user_id":361084605116,"group_id":5059473603087,"default":false,"created_at":"2022-06-29T12:29:56Z","updated_at":"2022-06-29T12:29:56Z"},"emitted_at":1668515312448} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5059439464079.json","id":5059439464079,"is_public":true,"name":"Group 1","description":"","default":false,"deleted":false,"created_at":"2022-06-29T12:29:26Z","updated_at":"2022-06-29T12:29:26Z"},"emitted_at":1668515314737} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5059474192015.json","id":5059474192015,"is_public":true,"name":"Group 10","description":"","default":false,"deleted":false,"created_at":"2022-06-29T12:30:58Z","updated_at":"2022-06-29T12:30:58Z"},"emitted_at":1668515314737} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5060105343503.json","id":5060105343503,"is_public":true,"name":"Group 100","description":"","default":false,"deleted":false,"created_at":"2022-06-29T16:22:26Z","updated_at":"2022-06-29T16:22:26Z"},"emitted_at":1668515314737} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5060005480847.json","id":5060005480847,"is_public":true,"name":"Group 11","description":"","default":false,"deleted":false,"created_at":"2022-06-29T16:03:36Z","updated_at":"2022-06-29T16:03:36Z"},"emitted_at":1668515314737} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5060049125391.json","id":5060049125391,"is_public":true,"name":"Group 12","description":"","default":false,"deleted":false,"created_at":"2022-06-29T16:05:08Z","updated_at":"2022-06-29T16:05:08Z"},"emitted_at":1668515314738} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5060061403535.json","id":5060061403535,"is_public":true,"name":"Group 12","description":"","default":false,"deleted":false,"created_at":"2022-06-29T16:04:01Z","updated_at":"2022-06-29T16:04:01Z"},"emitted_at":1668515314738} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5060061508879.json","id":5060061508879,"is_public":true,"name":"Group 13","description":"","default":false,"deleted":false,"created_at":"2022-06-29T16:04:15Z","updated_at":"2022-06-29T16:04:15Z"},"emitted_at":1668515314738} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5060049288719.json","id":5060049288719,"is_public":true,"name":"Group 15","description":"","default":false,"deleted":false,"created_at":"2022-06-29T16:05:22Z","updated_at":"2022-06-29T16:05:22Z"},"emitted_at":1668515314738} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5060049443215.json","id":5060049443215,"is_public":true,"name":"Group 16","description":"","default":false,"deleted":false,"created_at":"2022-06-29T16:05:39Z","updated_at":"2022-06-29T16:05:39Z"},"emitted_at":1668515314739} +{"stream":"groups","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/groups/5060066676751.json","id":5060066676751,"is_public":true,"name":"Group 17","description":"","default":false,"deleted":false,"created_at":"2022-06-29T16:12:14Z","updated_at":"2022-06-29T16:12:14Z"},"emitted_at":1668515314739} +{"stream":"macros","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/macros/360011363556.json","id":360011363556,"title":"Customer not responding","active":true,"updated_at":"2020-12-11T18:34:06Z","created_at":"2020-12-11T18:34:06Z","default":false,"position":9999,"description":null,"actions":[{"field":"status","value":"pending"},{"field":"comment_value","value":"Hello {{ticket.requester.name}}. Our agent {{current_user.name}} has tried to contact you about this request but we haven't heard back from you yet. Please let us know if we can be of further assistance. Thanks. "}],"restriction":null,"raw_title":"Customer not responding"},"emitted_at":1668515315926} +{"stream":"macros","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/macros/360011363536.json","id":360011363536,"title":"Downgrade and inform","active":true,"updated_at":"2020-12-11T18:34:06Z","created_at":"2020-12-11T18:34:06Z","default":false,"position":9999,"description":null,"actions":[{"field":"priority","value":"low"},{"field":"comment_value","value":"We're currently experiencing unusually high traffic. We'll get back to you as soon as possible."}],"restriction":null,"raw_title":"Downgrade and inform"},"emitted_at":1668515315928} +{"stream":"organizations","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/organizations/360033549136.json","id":360033549136,"name":"Airbyte","shared_tickets":false,"shared_comments":false,"external_id":null,"created_at":"2020-12-11T18:34:05Z","updated_at":"2020-12-11T18:34:05Z","domain_names":[],"details":null,"notes":null,"group_id":null,"tags":[],"organization_fields":{}},"emitted_at":1668515317046} +{"stream":"organizations","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/organizations/360045373216.json","id":360045373216,"name":"ressssssss","shared_tickets":false,"shared_comments":false,"external_id":null,"created_at":"2021-07-15T18:29:14Z","updated_at":"2021-07-15T18:29:14Z","domain_names":[],"details":"","notes":"","group_id":null,"tags":[],"organization_fields":{}},"emitted_at":1668515317047} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360355470396.json","id":360355470396,"assignee_id":360786799676,"group_id":360003074836,"requester_id":360786799676,"ticket_id":2,"score":"offered","created_at":"2021-07-20T10:05:18Z","updated_at":"2021-07-20T10:05:18Z","comment":null},"emitted_at":1668515317671} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360358106195.json","id":360358106195,"assignee_id":360786799676,"group_id":360003074836,"requester_id":360786799676,"ticket_id":4,"score":"offered","created_at":"2021-07-21T10:01:43Z","updated_at":"2021-07-21T10:01:43Z","comment":null},"emitted_at":1668515317671} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360393044195.json","id":360393044195,"assignee_id":null,"group_id":null,"requester_id":360786799676,"ticket_id":38,"score":"offered","created_at":"2021-09-28T11:01:50Z","updated_at":"2021-09-28T11:01:50Z","comment":null},"emitted_at":1668515317671} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360393044215.json","id":360393044215,"assignee_id":null,"group_id":null,"requester_id":360786799676,"ticket_id":37,"score":"offered","created_at":"2021-09-28T11:01:50Z","updated_at":"2021-09-28T11:01:50Z","comment":null},"emitted_at":1668515317671} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360393044255.json","id":360393044255,"assignee_id":null,"group_id":null,"requester_id":360786799676,"ticket_id":35,"score":"offered","created_at":"2021-09-28T11:01:50Z","updated_at":"2021-09-28T11:01:50Z","comment":null},"emitted_at":1668515317671} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360393044275.json","id":360393044275,"assignee_id":null,"group_id":null,"requester_id":360786799676,"ticket_id":34,"score":"offered","created_at":"2021-09-28T11:01:51Z","updated_at":"2021-09-28T11:01:51Z","comment":null},"emitted_at":1668515317671} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360393044295.json","id":360393044295,"assignee_id":null,"group_id":null,"requester_id":360786799676,"ticket_id":33,"score":"offered","created_at":"2021-09-28T11:01:51Z","updated_at":"2021-09-28T11:01:51Z","comment":null},"emitted_at":1668515317672} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360393044315.json","id":360393044315,"assignee_id":null,"group_id":null,"requester_id":360786799676,"ticket_id":14,"score":"offered","created_at":"2021-09-28T11:01:51Z","updated_at":"2021-09-28T11:01:51Z","comment":null},"emitted_at":1668515317672} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360393044335.json","id":360393044335,"assignee_id":null,"group_id":null,"requester_id":360786799676,"ticket_id":13,"score":"offered","created_at":"2021-09-28T11:01:51Z","updated_at":"2021-09-28T11:01:51Z","comment":null},"emitted_at":1668515317672} +{"stream":"satisfaction_ratings","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/satisfaction_ratings/360393044355.json","id":360393044355,"assignee_id":null,"group_id":null,"requester_id":360786799676,"ticket_id":12,"score":"offered","created_at":"2021-09-28T11:01:52Z","updated_at":"2021-09-28T11:01:52Z","comment":null},"emitted_at":1668515317672} +{"stream":"sla_policies","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/slas/policies/360001110696.json","id":360001110696,"title":"test police","description":"for tests","position":1,"filter":{"all":[{"field":"assignee_id","operator":"is","value":361089721035}],"any":[]},"policy_metrics":[{"priority":"high","metric":"first_reply_time","target":61,"business_hours":false}],"created_at":"2021-07-16T11:05:31Z","updated_at":"2021-07-16T11:05:31Z"},"emitted_at":1668515318995} +{"stream":"sla_policies","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/slas/policies/360001113715.json","id":360001113715,"title":"test police 2","description":"test police 2","position":2,"filter":{"all":[{"field":"organization_id","operator":"is","value":360033549136}],"any":[]},"policy_metrics":[{"priority":"high","metric":"first_reply_time","target":121,"business_hours":false}],"created_at":"2021-07-16T11:06:01Z","updated_at":"2021-07-16T11:06:01Z"},"emitted_at":1668515318996} +{"stream":"ticket_audits","data":{"id":5527294520975,"ticket_id":144,"created_at":"2022-09-19T16:01:43Z","author_id":-1,"metadata":{"system":{},"custom":{}},"events":[{"id":5527294521103,"type":"Change","value":"offered","field_name":"satisfaction_score","previous_value":"unoffered"}],"via":{"channel":"rule","source":{"to":{},"from":{"deleted":false,"title":"Request customer satisfaction rating (system automation)","id":360021281435},"rel":"automation"}}},"emitted_at":1668515322903} +{"stream":"ticket_audits","data":{"id":5527294519823,"ticket_id":145,"created_at":"2022-09-19T16:01:43Z","author_id":-1,"metadata":{"system":{},"custom":{}},"events":[{"id":5527294519951,"type":"Change","value":"offered","field_name":"satisfaction_score","previous_value":"unoffered"}],"via":{"channel":"rule","source":{"to":{},"from":{"deleted":false,"title":"Request customer satisfaction rating (system automation)","id":360021281435},"rel":"automation"}}},"emitted_at":1668515322903} +{"stream":"ticket_audits","data":{"id":5527086839823,"ticket_id":145,"created_at":"2022-09-19T14:53:49Z","author_id":-1,"metadata":{"system":{"client":"","ip_address":""},"custom":{}},"events":[{"id":5527086839951,"type":"VoiceComment","public":false,"data":{"from":"+12346018567","to":"+12059531462","recording_url":"https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CA63836f2beb837de2d9b9fd7780183755/twilio/voicemail/recording","recording_type":"voicemail","recorded":true,"recording_consent_action":null,"call_id":5527044777359,"call_duration":55,"answered_by_id":null,"transcription_text":"My name is Karen stone. This is a notification call from our department of tax debt and financial settlement services. There are new programs that can help you reduce or eliminate your debt completely. It is possible that your tax debt can now be considered temporarily non collectible. You can call me back at my personal desk 833-577-2535.","started_at":"2022-09-19T14:52:39Z","location":"Ohio, United States","author_id":null,"public":false,"brand_id":360000358316,"via_id":33,"line_type":"phone","answered_by_name":"Unknown","transcription_status":"completed"},"formatted_from":"+1 (234) 601-8567","formatted_to":"+1 (205) 953-1462","transcription_visible":true,"author_id":5527111815439,"body":"Voicemail from +1 (234) 601-8567\nCall Details:\n\nCall from: +1 (234) 601-8567\nCall to: +1 (205) 953-1462\nTime of call: 2022-09-19 14:52:39 UTC\nLocation: Ohio, United States\nAnswered by: Unknown\nLength of phone call: 55 seconds\nListen to the recording: https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CA63836f2beb837de2d9b9fd7780183755/twilio/voicemail/recording\n\nTranscription:\n\nMy name is Karen stone. This is a notification call from our department of tax debt and financial settlement services. There are new programs that can help you reduce or eliminate your debt completely. It is possible that your tax debt can now be considered temporarily non collectible. You can call me back at my personal desk 833-577-2535.\n","html_body":"

Voicemail from +1 (234) 601-8567\n
Call Details:

\n\n

Call from: +1 (234) 601-8567\n
Call to: +1 (205) 953-1462\n
Time of call: 2022-09-19 14:52:39 UTC\n
Location: Ohio, United States\n
Answered by: Unknown\n
Length of phone call: 55 seconds\n
Listen to the recording: https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CA63836f2beb837de2d9b9fd7780183755/twilio/voicemail/recording

\n\n

Transcription:

\n\n

My name is Karen stone. This is a notification call from our department of tax debt and financial settlement services. There are new programs that can help you reduce or eliminate your debt completely. It is possible that your tax debt can now be considered temporarily non collectible. You can call me back at my personal desk 833-577-2535.

","trusted":true,"attachments":[],"created_at":"2022-09-19T14:53:49Z","audit_id":5527086839823},{"id":5527086840079,"type":"Create","value":"360000358316","field_name":"brand_id"},{"id":5527086840207,"type":"Create","value":"5527111815439","field_name":"requester_id"},{"id":5527086840335,"type":"Create","value":"Voicemail from: Caller +1 (234) 601-8567","field_name":"subject"},{"id":5527086840463,"type":"Create","value":null,"field_name":"priority"},{"id":5527086840591,"type":"Create","value":null,"field_name":"type"},{"id":5527086840719,"type":"Create","value":"new","field_name":"status"},{"id":5527086840847,"type":"Create","value":"360000084116","field_name":"ticket_form_id"},{"id":5527086840975,"type":"Create","value":"0","field_name":"is_public"},{"id":5527086841103,"type":"Notification","via":{"channel":"rule","source":{"from":{"deleted":false,"title":"Notify all agents of received request","id":360011363296,"revision_id":3},"rel":"trigger"}},"subject":"[{{ticket.account}}] {{ticket.title}}","body":"A ticket (#{{ticket.id}}) by {{ticket.requester.name}} has been received. It is unassigned.\n\n{{ticket.comments_formatted}}","recipients":[361089721035,360786799676]}],"via":{"channel":"voice","source":{"rel":"voicemail","from":{"formatted_phone":"+1 (234) 601-8567","phone":"+12346018567","name":"Caller +1 (234) 601-8567"},"to":{"formatted_phone":"+1 (205) 953-1462","phone":"+12059531462","name":"Airbyte","brand_id":360000358316}}}},"emitted_at":1668515322904} +{"stream":"ticket_audits","data":{"id":5527065836303,"ticket_id":144,"created_at":"2022-09-19T14:43:42Z","author_id":-1,"metadata":{"system":{"client":"","ip_address":""},"custom":{}},"events":[{"id":5527065836431,"type":"VoiceComment","public":false,"data":{"from":"+17327698461","to":"+12059531462","recording_url":"https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CAffbb3e7341a040ac224a56a622530225/twilio/voicemail/recording","recording_type":"voicemail","recorded":true,"recording_consent_action":null,"call_id":5527080258447,"call_duration":25,"answered_by_id":null,"transcription_text":"","started_at":"2022-09-19T14:43:01Z","location":"Keansburg, New Jersey, United States","author_id":null,"public":false,"brand_id":360000358316,"via_id":33,"line_type":"phone","answered_by_name":"Unknown","transcription_status":"completed"},"formatted_from":"+1 (732) 769-8461","formatted_to":"+1 (205) 953-1462","transcription_visible":false,"author_id":5527080499599,"body":"Voicemail from +1 (732) 769-8461\nCall Details:\n\nCall from: +1 (732) 769-8461\nCall to: +1 (205) 953-1462\nTime of call: 2022-09-19 14:43:01 UTC\nLocation: Keansburg, New Jersey, United States\nAnswered by: Unknown\nLength of phone call: 25 seconds\nListen to the recording: https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CAffbb3e7341a040ac224a56a622530225/twilio/voicemail/recording\n","html_body":"

Voicemail from +1 (732) 769-8461\n
Call Details:

\n\n

Call from: +1 (732) 769-8461\n
Call to: +1 (205) 953-1462\n
Time of call: 2022-09-19 14:43:01 UTC\n
Location: Keansburg, New Jersey, United States\n
Answered by: Unknown\n
Length of phone call: 25 seconds\n
Listen to the recording: https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CAffbb3e7341a040ac224a56a622530225/twilio/voicemail/recording

","trusted":true,"attachments":[],"created_at":"2022-09-19T14:43:42Z","audit_id":5527065836303},{"id":5527065836559,"type":"Create","value":"360000358316","field_name":"brand_id"},{"id":5527065836687,"type":"Create","value":"5527080499599","field_name":"requester_id"},{"id":5527065836815,"type":"Create","value":"Voicemail from: Caller +1 (732) 769-8461","field_name":"subject"},{"id":5527065836943,"type":"Create","value":null,"field_name":"priority"},{"id":5527065837071,"type":"Create","value":null,"field_name":"type"},{"id":5527065837199,"type":"Create","value":"new","field_name":"status"},{"id":5527065837327,"type":"Create","value":"360000084116","field_name":"ticket_form_id"},{"id":5527065837455,"type":"Create","value":"0","field_name":"is_public"},{"id":5527065837583,"type":"Notification","via":{"channel":"rule","source":{"from":{"deleted":false,"title":"Notify all agents of received request","id":360011363296,"revision_id":3},"rel":"trigger"}},"subject":"[{{ticket.account}}] {{ticket.title}}","body":"A ticket (#{{ticket.id}}) by {{ticket.requester.name}} has been received. It is unassigned.\n\n{{ticket.comments_formatted}}","recipients":[361089721035,360786799676]}],"via":{"channel":"voice","source":{"rel":"voicemail","from":{"formatted_phone":"+1 (732) 769-8461","phone":"+17327698461","name":"Caller +1 (732) 769-8461"},"to":{"formatted_phone":"+1 (205) 953-1462","phone":"+12059531462","name":"Airbyte","brand_id":360000358316}}}},"emitted_at":1668515322905} +{"stream":"ticket_audits","data":{"id":5456111210511,"ticket_id":143,"created_at":"2022-09-06T21:01:54Z","author_id":-1,"metadata":{"system":{},"custom":{}},"events":[{"id":5456111210639,"type":"Change","value":"offered","field_name":"satisfaction_score","previous_value":"unoffered"}],"via":{"channel":"rule","source":{"to":{},"from":{"deleted":false,"title":"Request customer satisfaction rating (system automation)","id":360021281435},"rel":"automation"}}},"emitted_at":1668515322906} +{"stream":"ticket_audits","data":{"id":5455947690127,"ticket_id":143,"created_at":"2022-09-06T19:51:07Z","author_id":-1,"metadata":{"system":{"client":"","ip_address":""},"custom":{}},"events":[{"id":5455947690255,"type":"VoiceComment","public":false,"data":{"from":"+14792754979","to":"+12059531462","recording_url":"https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CA1e6df4488d4ff32fca57b38829eb2bed/twilio/voicemail/recording","recording_type":"voicemail","recorded":true,"recording_consent_action":null,"call_id":360178181715,"call_duration":25,"answered_by_id":null,"transcription_text":"","started_at":"2022-09-06T19:50:32Z","location":"Fort smith, Arkansas, United States","author_id":null,"public":false,"brand_id":360000358316,"via_id":33,"line_type":"phone","answered_by_name":"Unknown","transcription_status":"completed"},"formatted_from":"+1 (479) 275-4979","formatted_to":"+1 (205) 953-1462","transcription_visible":false,"author_id":5455951810447,"body":"Voicemail from +1 (479) 275-4979\nCall Details:\n\nCall from: +1 (479) 275-4979\nCall to: +1 (205) 953-1462\nTime of call: 2022-09-06 19:50:32 UTC\nLocation: Fort smith, Arkansas, United States\nAnswered by: Unknown\nLength of phone call: 25 seconds\nListen to the recording: https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CA1e6df4488d4ff32fca57b38829eb2bed/twilio/voicemail/recording\n","html_body":"

Voicemail from +1 (479) 275-4979\n
Call Details:

\n\n

Call from: +1 (479) 275-4979\n
Call to: +1 (205) 953-1462\n
Time of call: 2022-09-06 19:50:32 UTC\n
Location: Fort smith, Arkansas, United States\n
Answered by: Unknown\n
Length of phone call: 25 seconds\n
Listen to the recording: https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CA1e6df4488d4ff32fca57b38829eb2bed/twilio/voicemail/recording

","trusted":true,"attachments":[],"created_at":"2022-09-06T19:51:07Z","audit_id":5455947690127},{"id":5455947690383,"type":"Create","value":"360000358316","field_name":"brand_id"},{"id":5455947690511,"type":"Create","value":"5455951810447","field_name":"requester_id"},{"id":5455947690639,"type":"Create","value":"Voicemail from: Caller +1 (479) 275-4979","field_name":"subject"},{"id":5455947690767,"type":"Create","value":null,"field_name":"priority"},{"id":5455947690895,"type":"Create","value":null,"field_name":"type"},{"id":5455947691023,"type":"Create","value":"new","field_name":"status"},{"id":5455947691151,"type":"Create","value":"360000084116","field_name":"ticket_form_id"},{"id":5455947691279,"type":"Create","value":"0","field_name":"is_public"},{"id":5455947691407,"type":"Notification","via":{"channel":"rule","source":{"from":{"deleted":false,"title":"Notify all agents of received request","id":360011363296,"revision_id":3},"rel":"trigger"}},"subject":"[{{ticket.account}}] {{ticket.title}}","body":"A ticket (#{{ticket.id}}) by {{ticket.requester.name}} has been received. It is unassigned.\n\n{{ticket.comments_formatted}}","recipients":[361089721035,360786799676]}],"via":{"channel":"voice","source":{"rel":"voicemail","from":{"formatted_phone":"+1 (479) 275-4979","phone":"+14792754979","name":"Caller +1 (479) 275-4979"},"to":{"formatted_phone":"+1 (205) 953-1462","phone":"+12059531462","name":"Airbyte","brand_id":360000358316}}}},"emitted_at":1668515322907} +{"stream":"ticket_audits","data":{"id":5368481588879,"ticket_id":142,"created_at":"2022-08-24T01:02:35Z","author_id":-1,"metadata":{"system":{},"custom":{}},"events":[{"id":5368481589007,"type":"Change","value":"offered","field_name":"satisfaction_score","previous_value":"unoffered"}],"via":{"channel":"rule","source":{"to":{},"from":{"deleted":false,"title":"Request customer satisfaction rating (system automation)","id":360021281435},"rel":"automation"}}},"emitted_at":1668515322907} +{"stream":"ticket_audits","data":{"id":5367613292431,"ticket_id":142,"created_at":"2022-08-23T23:27:11Z","author_id":-1,"metadata":{"system":{"client":"","ip_address":""},"custom":{}},"events":[{"id":5367613292559,"type":"VoiceComment","public":false,"data":{"from":"+19388996772","to":"+12059531462","recording_url":"https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CAc553019615280d96b61681610c23c5f7/twilio/voicemail/recording","recording_type":"voicemail","recorded":true,"recording_consent_action":null,"call_id":360175271015,"call_duration":25,"answered_by_id":null,"transcription_text":"","started_at":"2022-08-23T23:25:43Z","location":"Alabama, United States","author_id":null,"public":false,"brand_id":360000358316,"via_id":33,"line_type":"phone","answered_by_name":"Unknown","transcription_status":"completed"},"formatted_from":"+1 (938) 899-6772","formatted_to":"+1 (205) 953-1462","transcription_visible":false,"author_id":5367613256207,"body":"Voicemail from +1 (938) 899-6772\nCall Details:\n\nCall from: +1 (938) 899-6772\nCall to: +1 (205) 953-1462\nTime of call: 2022-08-23 23:25:43 UTC\nLocation: Alabama, United States\nAnswered by: Unknown\nLength of phone call: 25 seconds\nListen to the recording: https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CAc553019615280d96b61681610c23c5f7/twilio/voicemail/recording\n","html_body":"

Voicemail from +1 (938) 899-6772\n
Call Details:

\n\n

Call from: +1 (938) 899-6772\n
Call to: +1 (205) 953-1462\n
Time of call: 2022-08-23 23:25:43 UTC\n
Location: Alabama, United States\n
Answered by: Unknown\n
Length of phone call: 25 seconds\n
Listen to the recording: https://d3v-airbyte.zendesk.com/api/v2/channels/voice/calls/CAc553019615280d96b61681610c23c5f7/twilio/voicemail/recording

","trusted":true,"attachments":[],"created_at":"2022-08-23T23:27:11Z","audit_id":5367613292431},{"id":5367613292687,"type":"Create","value":"360000358316","field_name":"brand_id"},{"id":5367613292815,"type":"Create","value":"5367613256207","field_name":"requester_id"},{"id":5367613292943,"type":"Create","value":"Voicemail from: Caller +1 (938) 899-6772","field_name":"subject"},{"id":5367613293071,"type":"Create","value":null,"field_name":"priority"},{"id":5367613293199,"type":"Create","value":null,"field_name":"type"},{"id":5367613293327,"type":"Create","value":"new","field_name":"status"},{"id":5367613293455,"type":"Create","value":"360000084116","field_name":"ticket_form_id"},{"id":5367613293583,"type":"Create","value":"0","field_name":"is_public"},{"id":5367613293711,"type":"Notification","via":{"channel":"rule","source":{"from":{"deleted":false,"title":"Notify all agents of received request","id":360011363296,"revision_id":3},"rel":"trigger"}},"subject":"[{{ticket.account}}] {{ticket.title}}","body":"A ticket (#{{ticket.id}}) by {{ticket.requester.name}} has been received. It is unassigned.\n\n{{ticket.comments_formatted}}","recipients":[361089721035,360786799676]}],"via":{"channel":"voice","source":{"rel":"voicemail","from":{"formatted_phone":"+1 (938) 899-6772","phone":"+19388996772","name":"Caller +1 (938) 899-6772"},"to":{"formatted_phone":"+1 (205) 953-1462","phone":"+12059531462","name":"Airbyte","brand_id":360000358316}}}},"emitted_at":1668515322908} +{"stream":"ticket_audits","data":{"id":5168863197583,"ticket_id":140,"created_at":"2022-07-19T11:01:29Z","author_id":-1,"metadata":{"system":{},"custom":{}},"events":[{"id":5168863197711,"type":"Notification","subject":"Request #{{ticket.id}}: How would you rate the support you received?","body":"Hello {{ticket.requester.name}},\n\nWe'd love to hear what you think of our customer service. Please take a moment to answer one simple question by clicking either link below:\n\n{{satisfaction.rating_section}}\n\nHere's a reminder of what this request was about:\n\n{{ticket.comments_formatted}}\n","recipients":[360786799676]},{"id":5168863197839,"type":"Change","value":"offered","field_name":"satisfaction_score","previous_value":"unoffered"}],"via":{"channel":"rule","source":{"to":{},"from":{"deleted":false,"title":"Request customer satisfaction rating (system automation)","id":360021281435},"rel":"automation"}}},"emitted_at":1668515322909} +{"stream":"ticket_audits","data":{"id":5168837110415,"ticket_id":141,"created_at":"2022-07-19T11:01:27Z","author_id":-1,"metadata":{"system":{},"custom":{}},"events":[{"id":5168837110543,"type":"Notification","subject":"Request #{{ticket.id}}: How would you rate the support you received?","body":"Hello {{ticket.requester.name}},\n\nWe'd love to hear what you think of our customer service. Please take a moment to answer one simple question by clicking either link below:\n\n{{satisfaction.rating_section}}\n\nHere's a reminder of what this request was about:\n\n{{ticket.comments_formatted}}\n","recipients":[360786799676]},{"id":5168837110671,"type":"Change","value":"offered","field_name":"satisfaction_score","previous_value":"unoffered"}],"via":{"channel":"rule","source":{"to":{},"from":{"deleted":false,"title":"Request customer satisfaction rating (system automation)","id":360021281435},"rel":"automation"}}},"emitted_at":1668515322909} +{"stream":"ticket_comments","data":{"id":407609531716,"via":{"channel":"web","source":{"from":{},"to":{},"rel":null}},"via_reference_id":null,"type":"Comment","author_id":360786799676,"body":"thank you !","html_body":"
thank you !
","plain_body":"thank you !","public":true,"attachments":[],"audit_id":407609531696,"created_at":"2021-06-24T08:05:49Z","event_type":"Comment","ticket_id":1,"timestamp":1624521949},"emitted_at":1668515333014} +{"stream":"ticket_comments","data":{"id":409521612516,"via":{"channel":"web","source":{"from":{},"to":{"name":"Team Airbyte","address":"integration-test@airbyte.io"},"rel":null}},"via_reference_id":null,"type":"Comment","author_id":360786799676,"body":"dsdsdsdsdsds","html_body":"
dsdsdsdsdsds
","plain_body":"dsdsdsdsdsds","public":true,"attachments":[],"audit_id":409521612496,"created_at":"2021-07-15T18:34:19Z","event_type":"Comment","ticket_id":3,"timestamp":1626374059},"emitted_at":1668515333015} +{"stream":"ticket_comments","data":{"id":409681806556,"via":{"channel":"web","source":{"from":{},"to":{"name":"Team Airbyte","address":"integration-test@airbyte.io"},"rel":null}},"via_reference_id":null,"type":"Comment","author_id":360786799676,"body":"e4t3ett4t4etet","html_body":"
e4t3ett4t4etet

","plain_body":"e4t3ett4t4etet","public":true,"attachments":[],"audit_id":409681806536,"created_at":"2021-07-17T21:19:34Z","event_type":"Comment","ticket_id":3,"timestamp":1626556774},"emitted_at":1668515333015} +{"stream":"ticket_comments","data":{"id":409721300735,"via":{"channel":"web","source":{"from":{},"to":{"name":"Team Airbyte","address":"integration-test@airbyte.io"},"rel":null}},"via_reference_id":null,"type":"Comment","author_id":360786799676,"body":"gergergergegegrege","html_body":"
gergergergegegrege
","plain_body":"gergergergegegrege","public":true,"attachments":[],"audit_id":409721300715,"created_at":"2021-07-17T21:21:56Z","event_type":"Comment","ticket_id":2,"timestamp":1626556916},"emitted_at":1668515333015} +{"stream":"ticket_comments","data":{"id":409721317155,"via":{"channel":"web","source":{"from":{},"to":{},"rel":null}},"via_reference_id":null,"type":"Comment","author_id":360786799676,"body":"test message","html_body":"
test message
","plain_body":"test message","public":true,"attachments":[],"audit_id":409721317135,"created_at":"2021-07-17T21:22:47Z","event_type":"Comment","ticket_id":1,"timestamp":1626556967},"emitted_at":1668515333016} +{"stream":"ticket_comments","data":{"id":409837830696,"via":{"channel":"web","source":{"from":{},"to":{"name":"Team Airbyte","address":"integration-test@airbyte.io"},"rel":null}},"via_reference_id":null,"type":"Comment","author_id":360786799676,"body":"test3","html_body":"
test3
","plain_body":"test3","public":true,"attachments":[],"audit_id":409837830676,"created_at":"2021-07-19T21:21:26Z","event_type":"Comment","ticket_id":3,"timestamp":1626729686},"emitted_at":1668515333016} +{"stream":"ticket_comments","data":{"id":409956222875,"via":{"channel":"web","source":{"from":{},"to":{"name":"Team Airbyte","address":"integration-test@airbyte.io"},"rel":null}},"via_reference_id":null,"type":"Comment","author_id":360786799676,"body":"test mesg","html_body":"
test mesg
","plain_body":"test mesg","public":true,"attachments":[],"audit_id":409956222855,"created_at":"2021-07-20T09:59:05Z","event_type":"Comment","ticket_id":2,"timestamp":1626775145},"emitted_at":1668515333016} +{"stream":"ticket_comments","data":{"id":409956652175,"via":{"channel":"web","source":{"from":{},"to":{"name":"Team Airbyte","address":"integration-test@airbyte.io"},"rel":null}},"via_reference_id":null,"type":"Comment","author_id":360786799676,"body":"test with rating","html_body":"
test with rating
","plain_body":"test with rating","public":true,"attachments":[],"audit_id":409956652155,"created_at":"2021-07-20T10:02:51Z","event_type":"Comment","ticket_id":5,"timestamp":1626775371},"emitted_at":1668515333017} +{"stream":"ticket_comments","data":{"id":409912714316,"via":{"channel":"web","source":{"from":{},"to":{"name":"Team Airbyte","address":"integration-test@airbyte.io"},"rel":null}},"via_reference_id":null,"type":"Comment","author_id":360786799676,"body":"test","html_body":"
test
","plain_body":"test","public":true,"attachments":[],"audit_id":409912714296,"created_at":"2021-07-20T10:05:18Z","event_type":"Comment","ticket_id":2,"timestamp":1626775518},"emitted_at":1668515333017} +{"stream":"ticket_comments","data":{"id":410186742815,"via":{"channel":"facebook","source":{"from":{"name":"ZenDesk Tickets","profile_url":"http://www.facebook.com/110786481291943","facebook_id":"110786481291943"},"to":{"name":"ZenDesk Tickets","profile_url":"http://facebook.com/110786481291943","facebook_id":"110786481291943"},"rel":"post"}},"via_reference_id":null,"type":"Comment","author_id":361341172475,"body":"Test2 to ZenDesk","html_body":"

Test2 to ZenDesk

","plain_body":"Test2 to ZenDesk","public":true,"attachments":[],"audit_id":410186742795,"created_at":"2021-07-22T17:24:26Z","event_type":"Comment","ticket_id":6,"timestamp":1626974666},"emitted_at":1668515333017} +{"stream":"ticket_fields","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_fields/360002833076.json","id":360002833076,"type":"subject","title":"Subject","raw_title":"Subject","description":"","raw_description":"","position":1,"active":true,"required":false,"collapsed_for_agents":false,"regexp_for_validation":null,"title_in_portal":"Subject","raw_title_in_portal":"Subject","visible_in_portal":true,"editable_in_portal":true,"required_in_portal":true,"tag":null,"created_at":"2020-12-11T18:34:05Z","updated_at":"2020-12-11T18:34:05Z","removable":false,"agent_description":null},"emitted_at":1668515336609} +{"stream":"ticket_fields","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_fields/360002833096.json","id":360002833096,"type":"description","title":"Description","raw_title":"Description","description":"Please enter the details of your request. A member of our support staff will respond as soon as possible.","raw_description":"Please enter the details of your request. A member of our support staff will respond as soon as possible.","position":2,"active":true,"required":false,"collapsed_for_agents":false,"regexp_for_validation":null,"title_in_portal":"Description","raw_title_in_portal":"Description","visible_in_portal":true,"editable_in_portal":true,"required_in_portal":true,"tag":null,"created_at":"2020-12-11T18:34:05Z","updated_at":"2020-12-11T18:34:05Z","removable":false,"agent_description":null},"emitted_at":1668515336611} +{"stream":"ticket_fields","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_fields/360002833116.json","id":360002833116,"type":"status","title":"Status","raw_title":"Status","description":"Request status","raw_description":"Request status","position":3,"active":true,"required":false,"collapsed_for_agents":false,"regexp_for_validation":null,"title_in_portal":"Status","raw_title_in_portal":"Status","visible_in_portal":false,"editable_in_portal":false,"required_in_portal":false,"tag":null,"created_at":"2020-12-11T18:34:05Z","updated_at":"2020-12-11T18:34:05Z","removable":false,"agent_description":null,"system_field_options":[{"name":"Open","value":"open"},{"name":"Pending","value":"pending"},{"name":"Solved","value":"solved"}],"sub_type_id":0},"emitted_at":1668515336611} +{"stream":"ticket_fields","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_fields/360002833136.json","id":360002833136,"type":"tickettype","title":"Type","raw_title":"Type","description":"Request type","raw_description":"Request type","position":4,"active":true,"required":false,"collapsed_for_agents":false,"regexp_for_validation":null,"title_in_portal":"Type","raw_title_in_portal":"Type","visible_in_portal":false,"editable_in_portal":false,"required_in_portal":false,"tag":null,"created_at":"2020-12-11T18:34:05Z","updated_at":"2020-12-11T18:34:05Z","removable":true,"agent_description":null,"system_field_options":[{"name":"Question","value":"question"},{"name":"Incident","value":"incident"},{"name":"Problem","value":"problem"},{"name":"Task","value":"task"}]},"emitted_at":1668515336611} +{"stream":"ticket_fields","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_fields/360002833156.json","id":360002833156,"type":"priority","title":"Priority","raw_title":"Priority","description":"Request priority","raw_description":"Request priority","position":5,"active":true,"required":false,"collapsed_for_agents":false,"regexp_for_validation":null,"title_in_portal":"Priority","raw_title_in_portal":"Priority","visible_in_portal":true,"editable_in_portal":false,"required_in_portal":false,"tag":null,"created_at":"2020-12-11T18:34:05Z","updated_at":"2020-12-11T18:34:05Z","removable":true,"agent_description":null,"system_field_options":[{"name":"Low","value":"low"},{"name":"Normal","value":"normal"},{"name":"High","value":"high"},{"name":"Urgent","value":"urgent"}],"sub_type_id":0},"emitted_at":1668515336612} +{"stream":"ticket_fields","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_fields/360002833176.json","id":360002833176,"type":"group","title":"Group","raw_title":"Group","description":"Request group","raw_description":"Request group","position":6,"active":true,"required":false,"collapsed_for_agents":false,"regexp_for_validation":null,"title_in_portal":"Group","raw_title_in_portal":"Group","visible_in_portal":false,"editable_in_portal":false,"required_in_portal":false,"tag":null,"created_at":"2020-12-11T18:34:05Z","updated_at":"2020-12-11T18:34:05Z","removable":false,"agent_description":null},"emitted_at":1668515336612} +{"stream":"ticket_fields","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_fields/360002833196.json","id":360002833196,"type":"assignee","title":"Assignee","raw_title":"Assignee","description":"Agent assigned to your request","raw_description":"Agent assigned to your request","position":7,"active":true,"required":true,"collapsed_for_agents":false,"regexp_for_validation":null,"title_in_portal":"Assignee","raw_title_in_portal":"Assignee","visible_in_portal":true,"editable_in_portal":false,"required_in_portal":false,"tag":null,"created_at":"2020-12-11T18:34:05Z","updated_at":"2020-12-11T18:34:05Z","removable":false,"agent_description":null},"emitted_at":1668515336613} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5527084754447.json","id":5527084754447,"ticket_id":145,"created_at":"2022-09-19T14:53:49Z","updated_at":"2022-09-19T14:53:49Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-09-19T14:53:49Z","status_updated_at":"2022-09-19T14:53:49Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-09-19T14:53:49Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337240} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5527080505487.json","id":5527080505487,"ticket_id":144,"created_at":"2022-09-19T14:43:42Z","updated_at":"2022-09-19T14:43:42Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-09-19T14:43:42Z","status_updated_at":"2022-09-19T14:43:42Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-09-19T14:43:42Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337241} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5455947694223.json","id":5455947694223,"ticket_id":143,"created_at":"2022-09-06T19:51:07Z","updated_at":"2022-09-06T19:51:07Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-09-06T19:51:07Z","status_updated_at":"2022-09-06T19:51:07Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-09-06T19:51:07Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337241} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5367613294479.json","id":5367613294479,"ticket_id":142,"created_at":"2022-08-23T23:27:11Z","updated_at":"2022-08-23T23:27:11Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-08-23T23:27:11Z","status_updated_at":"2022-08-23T23:27:11Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-08-23T23:27:11Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337241} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5168543266703.json","id":5168543266703,"ticket_id":140,"created_at":"2022-07-19T09:36:55Z","updated_at":"2022-07-19T09:36:55Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-07-19T09:36:55Z","status_updated_at":"2022-07-19T09:36:55Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-07-19T09:36:55Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337241} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5168539821711.json","id":5168539821711,"ticket_id":141,"created_at":"2022-07-19T09:41:20Z","updated_at":"2022-07-19T09:41:20Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-07-19T09:41:20Z","status_updated_at":"2022-07-19T09:41:20Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-07-19T09:41:20Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337241} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5163461108751.json","id":5163461108751,"ticket_id":137,"created_at":"2022-07-18T17:00:37Z","updated_at":"2022-07-18T17:00:37Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-07-18T17:00:36Z","status_updated_at":"2022-07-18T17:00:36Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-07-18T17:00:36Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337241} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5163445271695.json","id":5163445271695,"ticket_id":136,"created_at":"2022-07-18T16:59:40Z","updated_at":"2022-07-18T16:59:40Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-07-18T16:59:40Z","status_updated_at":"2022-07-18T16:59:40Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-07-18T16:59:40Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337242} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5163445192079.json","id":5163445192079,"ticket_id":135,"created_at":"2022-07-18T16:59:22Z","updated_at":"2022-07-18T16:59:22Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-07-18T16:59:22Z","status_updated_at":"2022-07-18T16:59:22Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-07-18T16:59:22Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337242} +{"stream":"ticket_metrics","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_metrics/5163440083727.json","id":5163440083727,"ticket_id":132,"created_at":"2022-07-18T16:45:41Z","updated_at":"2022-07-18T16:45:41Z","group_stations":0,"assignee_stations":0,"reopens":0,"replies":0,"assignee_updated_at":null,"requester_updated_at":"2022-07-18T16:45:40Z","status_updated_at":"2022-07-18T16:45:40Z","initially_assigned_at":null,"assigned_at":null,"solved_at":null,"latest_comment_added_at":"2022-07-18T16:45:40Z","reply_time_in_minutes":{"calendar":null,"business":null},"first_resolution_time_in_minutes":{"calendar":null,"business":null},"full_resolution_time_in_minutes":{"calendar":null,"business":null},"agent_wait_time_in_minutes":{"calendar":null,"business":null},"requester_wait_time_in_minutes":{"calendar":null,"business":null},"on_hold_time_in_minutes":{"calendar":0,"business":0}},"emitted_at":1668515337242} +{"stream":"ticket_metric_events","data":{"id":391672061716,"ticket_id":1,"metric":"pausable_update_time","instance_id":1,"type":"activate","time":"2021-06-24T08:05:49Z"},"emitted_at":1668515339400} +{"stream":"ticket_metric_events","data":{"id":391672061736,"ticket_id":1,"metric":"periodic_update_time","instance_id":1,"type":"activate","time":"2021-06-24T08:05:49Z"},"emitted_at":1668515339401} +{"stream":"ticket_metric_events","data":{"id":391672061756,"ticket_id":1,"metric":"reply_time","instance_id":1,"type":"fulfill","time":"2021-06-24T08:05:49Z"},"emitted_at":1668515339401} +{"stream":"ticket_metric_events","data":{"id":391672061776,"ticket_id":1,"metric":"reply_time","instance_id":1,"type":"update_status","time":"2021-06-24T08:05:49Z","status":{"calendar":280171,"business":280171}},"emitted_at":1668515339402} +{"stream":"ticket_metric_events","data":{"id":392869857276,"ticket_id":3,"metric":"agent_work_time","instance_id":0,"type":"measure","time":"2021-07-15T18:34:19Z"},"emitted_at":1668515339402} +{"stream":"ticket_metric_events","data":{"id":392869857296,"ticket_id":3,"metric":"agent_work_time","instance_id":1,"type":"activate","time":"2021-07-15T18:34:19Z"},"emitted_at":1668515339403} +{"stream":"ticket_metric_events","data":{"id":392869857316,"ticket_id":3,"metric":"pausable_update_time","instance_id":0,"type":"measure","time":"2021-07-15T18:34:19Z"},"emitted_at":1668515339403} +{"stream":"ticket_metric_events","data":{"id":392869857336,"ticket_id":3,"metric":"pausable_update_time","instance_id":1,"type":"activate","time":"2021-07-15T18:34:19Z"},"emitted_at":1668515339404} +{"stream":"ticket_metric_events","data":{"id":392869857356,"ticket_id":3,"metric":"periodic_update_time","instance_id":0,"type":"measure","time":"2021-07-15T18:34:19Z"},"emitted_at":1668515339404} +{"stream":"ticket_metric_events","data":{"id":392869857376,"ticket_id":3,"metric":"periodic_update_time","instance_id":1,"type":"activate","time":"2021-07-15T18:34:19Z"},"emitted_at":1668515339405} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/5.json","id":5,"external_id":null,"via":{"channel":"web","source":{"from":{},"to":{},"rel":null}},"created_at":"2021-07-20T10:02:51Z","updated_at":"2021-07-20T10:02:51Z","type":"incident","subject":"test with rating","raw_subject":"test with rating","description":"test with rating","priority":"normal","status":"open","recipient":null,"requester_id":360786799676,"submitter_id":360786799676,"assignee_id":360786799676,"organization_id":360033549136,"group_id":360003074836,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":["tags3"],"custom_fields":[],"satisfaction_rating":{"score":"unoffered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":true,"generated_timestamp":1626775371},"emitted_at":1668515341013} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/8.json","id":8,"external_id":null,"via":{"channel":"facebook","source":{"from":{"name":"ZenDesk Tickets","profile_url":"http://www.facebook.com/110786481291943","facebook_id":"110786481291943"},"to":{"name":"ZenDesk Tickets","profile_url":"http://facebook.com/110786481291943","facebook_id":"110786481291943"},"rel":"post"}},"created_at":"2021-07-22T17:24:27Z","updated_at":"2021-07-22T17:24:27Z","type":null,"subject":"Test post for Zendesk","raw_subject":"Test post for Zendesk","description":"Test post for Zendesk","priority":null,"status":"new","recipient":null,"requester_id":361341172475,"submitter_id":361341172475,"assignee_id":null,"organization_id":null,"group_id":null,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":[],"custom_fields":[],"satisfaction_rating":{"score":"unoffered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":false,"generated_timestamp":1626974667},"emitted_at":1668515341013} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/4.json","id":4,"external_id":null,"via":{"channel":"web","source":{"from":{},"to":{},"rel":null}},"created_at":"2021-07-20T08:59:14Z","updated_at":"2021-07-24T10:01:57Z","type":"problem","subject":"test with tag","raw_subject":"test with tag","description":"test desc","priority":"low","status":"closed","recipient":null,"requester_id":360786799676,"submitter_id":360786799676,"assignee_id":360786799676,"organization_id":360033549136,"group_id":360003074836,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":["tag1","tag2"],"custom_fields":[],"satisfaction_rating":{"score":"offered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":true,"generated_timestamp":1627120917},"emitted_at":1668515341014} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/15.json","id":15,"external_id":null,"via":{"channel":"api","source":{"from":{},"to":{},"rel":null}},"created_at":"2021-09-01T11:58:41Z","updated_at":"2021-09-01T11:58:41Z","type":null,"subject":"E0u7RDaA0379Z8Sh","raw_subject":"E0u7RDaA0379Z8Sh","description":"E0u7RDaA0379Z8Sh","priority":null,"status":"new","recipient":null,"requester_id":360786799676,"submitter_id":360786799676,"assignee_id":null,"organization_id":360033549136,"group_id":null,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":[],"custom_fields":[],"satisfaction_rating":{"score":"unoffered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":true,"generated_timestamp":1630497521},"emitted_at":1668515341015} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/17.json","id":17,"external_id":null,"via":{"channel":"api","source":{"from":{},"to":{},"rel":null}},"created_at":"2021-09-01T11:59:26Z","updated_at":"2021-09-01T11:59:26Z","type":null,"subject":"test_1002","raw_subject":"test_1002","description":"RD1QJ8S/wxHp9GdE","priority":null,"status":"new","recipient":null,"requester_id":360786799676,"submitter_id":360786799676,"assignee_id":null,"organization_id":360033549136,"group_id":null,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":[],"custom_fields":[],"satisfaction_rating":{"score":"unoffered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":true,"generated_timestamp":1630497566},"emitted_at":1668515341015} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/21.json","id":21,"external_id":null,"via":{"channel":"api","source":{"from":{},"to":{},"rel":null}},"created_at":"2021-09-01T11:59:31Z","updated_at":"2021-09-01T12:32:38Z","type":null,"subject":"test_24TgHgvNFxzzcoCa","raw_subject":"test_24TgHgvNFxzzcoCa","description":"ZtTYtW+Jeitlx32t","priority":null,"status":"new","recipient":null,"requester_id":360786799676,"submitter_id":360786799676,"assignee_id":null,"organization_id":360033549136,"group_id":null,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":[],"custom_fields":[],"satisfaction_rating":{"score":"unoffered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":true,"generated_timestamp":1630499558},"emitted_at":1668515341016} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/22.json","id":22,"external_id":null,"via":{"channel":"api","source":{"from":{},"to":{},"rel":null}},"created_at":"2021-09-01T11:59:33Z","updated_at":"2021-09-01T12:33:07Z","type":null,"subject":"test_7cSLfwMOMGgWc4tH","raw_subject":"test_7cSLfwMOMGgWc4tH","description":"WxQXizss8Z9Q1pXB","priority":null,"status":"new","recipient":null,"requester_id":360786799676,"submitter_id":360786799676,"assignee_id":null,"organization_id":360033549136,"group_id":null,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":[],"custom_fields":[],"satisfaction_rating":{"score":"unoffered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":true,"generated_timestamp":1630499587},"emitted_at":1668515341016} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/23.json","id":23,"external_id":null,"via":{"channel":"api","source":{"from":{},"to":{},"rel":null}},"created_at":"2021-09-01T11:59:34Z","updated_at":"2021-09-01T12:33:38Z","type":null,"subject":"test_J3LJ4Oa+3KM6uhYN","raw_subject":"test_J3LJ4Oa+3KM6uhYN","description":"LT+ZOKVOnz7y7ETJ","priority":null,"status":"new","recipient":null,"requester_id":360786799676,"submitter_id":360786799676,"assignee_id":null,"organization_id":360033549136,"group_id":null,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":[],"custom_fields":[],"satisfaction_rating":{"score":"unoffered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":true,"generated_timestamp":1630499618},"emitted_at":1668515341017} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/24.json","id":24,"external_id":null,"via":{"channel":"api","source":{"from":{},"to":{},"rel":null}},"created_at":"2021-09-01T11:59:35Z","updated_at":"2021-09-01T12:34:07Z","type":null,"subject":"test_LaT0hui6KCpgrTE1","raw_subject":"test_LaT0hui6KCpgrTE1","description":"UzDB5ZLMPUMHXZtx","priority":null,"status":"new","recipient":null,"requester_id":360786799676,"submitter_id":360786799676,"assignee_id":null,"organization_id":360033549136,"group_id":null,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":[],"custom_fields":[],"satisfaction_rating":{"score":"unoffered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":true,"generated_timestamp":1630499647},"emitted_at":1668515341017} +{"stream":"tickets","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/tickets/25.json","id":25,"external_id":null,"via":{"channel":"api","source":{"from":{},"to":{},"rel":null}},"created_at":"2021-09-01T11:59:37Z","updated_at":"2021-09-01T12:34:34Z","type":null,"subject":"test_iYG8H/suzve+U+FI","raw_subject":"test_iYG8H/suzve+U+FI","description":"5AOeYkgGyxjyjyyE","priority":null,"status":"new","recipient":null,"requester_id":360786799676,"submitter_id":360786799676,"assignee_id":null,"organization_id":360033549136,"group_id":null,"collaborator_ids":[],"follower_ids":[],"email_cc_ids":[],"forum_topic_id":null,"problem_id":null,"has_incidents":false,"is_public":true,"due_at":null,"tags":[],"custom_fields":[],"satisfaction_rating":{"score":"unoffered"},"sharing_agreement_ids":[],"fields":[],"followup_ids":[],"ticket_form_id":360000084116,"brand_id":360000358316,"allow_channelback":false,"allow_attachments":true,"generated_timestamp":1630499674},"emitted_at":1668515341018} +{"stream":"users","data":{"id":361341172475,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/361341172475.json","name":"ZenDesk Tickets","email":null,"created_at":"2021-07-22T17:24:26Z","updated_at":"2021-07-22T17:24:26Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":null,"shared_phone_number":null,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"end-user","verified":true,"external_id":null,"tags":[],"alias":null,"active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":false,"signature":null,"details":null,"notes":null,"role_type":null,"custom_role_id":null,"moderator":false,"ticket_restriction":"requested","only_private_comments":false,"restricted_agent":true,"suspended":false,"default_group_id":null,"report_csv":false,"user_fields":{}},"emitted_at":1668515341657} +{"stream":"users","data":{"id":361304480916,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/361304480916.json","name":"Test User1","email":"test.user1@test.com","created_at":"2021-07-15T14:11:18Z","updated_at":"2021-10-20T14:51:16Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":"1-202-555-0174","shared_phone_number":false,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"end-user","verified":true,"external_id":null,"tags":[],"alias":"","active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":false,"signature":null,"details":"","notes":"","role_type":null,"custom_role_id":null,"moderator":false,"ticket_restriction":"requested","only_private_comments":false,"restricted_agent":true,"suspended":false,"default_group_id":null,"report_csv":false,"user_fields":{}},"emitted_at":1668515341658} +{"stream":"users","data":{"id":4791360430863,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/4791360430863.json","name":"Caller +1 (386) 319-9946","email":null,"created_at":"2022-05-10T18:23:36Z","updated_at":"2022-05-10T18:23:36Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":"+13863199946","shared_phone_number":false,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"end-user","verified":true,"external_id":null,"tags":[],"alias":null,"active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":false,"signature":null,"details":null,"notes":null,"role_type":null,"custom_role_id":null,"moderator":false,"ticket_restriction":"requested","only_private_comments":false,"restricted_agent":true,"suspended":false,"default_group_id":null,"report_csv":false,"user_fields":{}},"emitted_at":1668515341658} +{"stream":"users","data":{"id":4796902886287,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/4796902886287.json","name":"Caller +1 (484) 235-2284","email":null,"created_at":"2022-05-11T16:43:37Z","updated_at":"2022-05-11T16:43:37Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":"+14842352284","shared_phone_number":false,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"end-user","verified":true,"external_id":null,"tags":[],"alias":null,"active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":false,"signature":null,"details":null,"notes":null,"role_type":null,"custom_role_id":null,"moderator":false,"ticket_restriction":"requested","only_private_comments":false,"restricted_agent":true,"suspended":false,"default_group_id":null,"report_csv":false,"user_fields":{}},"emitted_at":1668515341659} +{"stream":"users","data":{"id":4992781783439,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/4992781783439.json","name":"Caller +1 (689) 689-8023","email":null,"created_at":"2022-06-17T14:49:19Z","updated_at":"2022-06-17T14:49:19Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":"+16896898023","shared_phone_number":false,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"end-user","verified":true,"external_id":null,"tags":[],"alias":null,"active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":false,"signature":null,"details":null,"notes":null,"role_type":null,"custom_role_id":null,"moderator":false,"ticket_restriction":"requested","only_private_comments":false,"restricted_agent":true,"suspended":false,"default_group_id":null,"report_csv":false,"user_fields":{}},"emitted_at":1668515341659} +{"stream":"users","data":{"id":4993467856015,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/4993467856015.json","name":"Caller +1 (912) 420-0314","email":null,"created_at":"2022-06-17T19:52:38Z","updated_at":"2022-06-17T19:52:38Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":"+19124200314","shared_phone_number":false,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"end-user","verified":true,"external_id":null,"tags":[],"alias":null,"active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":false,"signature":null,"details":null,"notes":null,"role_type":null,"custom_role_id":null,"moderator":false,"ticket_restriction":"requested","only_private_comments":false,"restricted_agent":true,"suspended":false,"default_group_id":null,"report_csv":false,"user_fields":{}},"emitted_at":1668515341660} +{"stream":"users","data":{"id":361084605116,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/361084605116.json","name":"Fake User number - 1","email":"fake.user-1@email.com","created_at":"2021-04-23T14:33:11Z","updated_at":"2022-06-29T16:29:29Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":null,"shared_phone_number":null,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"agent","verified":false,"external_id":null,"tags":[],"alias":null,"active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":null,"signature":null,"details":null,"notes":null,"role_type":3,"custom_role_id":360000210576,"moderator":false,"ticket_restriction":"groups","only_private_comments":false,"restricted_agent":true,"suspended":false,"default_group_id":360003074836,"report_csv":false,"user_fields":{}},"emitted_at":1668515341660} +{"stream":"users","data":{"id":361089721035,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/361089721035.json","name":"Fake Agent number - 1","email":"fake.agent-1@email.com","created_at":"2021-04-23T14:34:20Z","updated_at":"2022-06-29T16:29:29Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":null,"shared_phone_number":null,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"agent","verified":false,"external_id":null,"tags":[],"alias":null,"active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":null,"signature":null,"details":null,"notes":null,"role_type":0,"custom_role_id":360000210616,"moderator":false,"ticket_restriction":null,"only_private_comments":false,"restricted_agent":false,"suspended":false,"default_group_id":360003074836,"report_csv":false,"user_fields":{}},"emitted_at":1668515341661} +{"stream":"users","data":{"id":5060048747407,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/5060048747407.json","name":"New User","email":"another@airbyte.io","created_at":"2022-06-29T16:04:43Z","updated_at":"2022-06-29T16:29:29Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":null,"shared_phone_number":null,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"agent","verified":false,"external_id":null,"tags":[],"alias":"","active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":null,"signature":"","details":"","notes":"","role_type":3,"custom_role_id":360000210576,"moderator":false,"ticket_restriction":"groups","only_private_comments":false,"restricted_agent":true,"suspended":false,"default_group_id":360006394556,"report_csv":false,"user_fields":{}},"emitted_at":1668515341661} +{"stream":"users","data":{"id":5137812260495,"url":"https://d3v-airbyte.zendesk.com/api/v2/users/5137812260495.json","name":"Caller +1 (607) 210-9549","email":null,"created_at":"2022-07-13T14:34:04Z","updated_at":"2022-07-13T14:34:04Z","time_zone":"Pacific/Noumea","iana_time_zone":"Pacific/Noumea","phone":"+16072109549","shared_phone_number":false,"photo":null,"locale_id":1,"locale":"en-US","organization_id":null,"role":"end-user","verified":true,"external_id":null,"tags":[],"alias":null,"active":true,"shared":false,"shared_agent":false,"last_login_at":null,"two_factor_auth_enabled":false,"signature":null,"details":null,"notes":null,"role_type":null,"custom_role_id":null,"moderator":false,"ticket_restriction":"requested","only_private_comments":false,"restricted_agent":true,"suspended":false,"default_group_id":null,"report_csv":false,"user_fields":{}},"emitted_at":1668515341662} +{"stream":"brands","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/brands/360000358316.json","id":360000358316,"name":"Airbyte","brand_url":"https://d3v-airbyte.zendesk.com","subdomain":"d3v-airbyte","host_mapping":null,"has_help_center":false,"help_center_state":"disabled","active":true,"default":true,"is_deleted":false,"logo":null,"ticket_form_ids":[360000084116],"signature_template":"{{agent.signature}}","created_at":"2020-12-11T18:34:04Z","updated_at":"2020-12-11T18:34:09Z"},"emitted_at":1668515342328} +{"stream":"custom_roles","data":{"id":360000210636,"name":"Advisor","description":"Can automate ticket workflows, manage channels and make private comments on tickets","role_type":0,"created_at":"2020-12-11T18:34:36Z","updated_at":"2020-12-11T18:34:36Z","configuration":{"chat_access":true,"manage_business_rules":true,"manage_dynamic_content":false,"manage_extensions_and_channels":true,"manage_facebook":true,"organization_editing":false,"organization_notes_editing":false,"ticket_deletion":false,"view_deleted_tickets":false,"ticket_tag_editing":true,"twitter_search_access":false,"forum_access_restricted_content":false,"end_user_list_access":"full","ticket_access":"within-groups","ticket_comment_access":"none","voice_access":true,"moderate_forums":false,"group_access":false,"light_agent":false,"side_conversation_create":true,"assign_tickets_to_any_group":false,"end_user_profile_access":"readonly","explore_access":"readonly","forum_access":"readonly","macro_access":"full","report_access":"none","ticket_editing":true,"ticket_merge":false,"view_access":"full","user_view_access":"full","voice_dashboard_access":false,"manage_contextual_workspaces":false,"manage_organization_fields":false,"manage_ticket_fields":false,"manage_ticket_forms":false,"manage_user_fields":false,"manage_automations":true,"manage_skills":true,"manage_slas":true,"manage_triggers":true},"team_member_count":0},"emitted_at":1668515343159} +{"stream":"custom_roles","data":{"id":360000210596,"name":"Staff","description":"Can edit tickets within their groups","role_type":0,"created_at":"2020-12-11T18:34:36Z","updated_at":"2020-12-11T18:34:36Z","configuration":{"chat_access":true,"manage_business_rules":false,"manage_dynamic_content":false,"manage_extensions_and_channels":false,"manage_facebook":false,"organization_editing":false,"organization_notes_editing":false,"ticket_deletion":false,"view_deleted_tickets":false,"ticket_tag_editing":false,"twitter_search_access":false,"forum_access_restricted_content":false,"end_user_list_access":"full","ticket_access":"within-groups","ticket_comment_access":"public","voice_access":true,"moderate_forums":false,"group_access":false,"light_agent":false,"side_conversation_create":true,"assign_tickets_to_any_group":false,"end_user_profile_access":"readonly","explore_access":"readonly","forum_access":"readonly","macro_access":"manage-personal","report_access":"readonly","ticket_editing":true,"ticket_merge":false,"view_access":"manage-personal","user_view_access":"manage-personal","voice_dashboard_access":false,"manage_contextual_workspaces":false,"manage_organization_fields":false,"manage_ticket_fields":false,"manage_ticket_forms":false,"manage_user_fields":false,"manage_automations":false,"manage_skills":false,"manage_slas":false,"manage_triggers":false},"team_member_count":0},"emitted_at":1668515343159} +{"stream":"custom_roles","data":{"id":360000210616,"name":"Team lead","description":"Can manage all tickets and forums","role_type":0,"created_at":"2020-12-11T18:34:36Z","updated_at":"2020-12-11T18:34:36Z","configuration":{"chat_access":true,"manage_business_rules":false,"manage_dynamic_content":false,"manage_extensions_and_channels":false,"manage_facebook":false,"organization_editing":true,"organization_notes_editing":true,"ticket_deletion":true,"view_deleted_tickets":true,"ticket_tag_editing":true,"twitter_search_access":false,"forum_access_restricted_content":false,"end_user_list_access":"full","ticket_access":"all","ticket_comment_access":"public","voice_access":true,"moderate_forums":false,"group_access":true,"light_agent":false,"side_conversation_create":true,"assign_tickets_to_any_group":false,"end_user_profile_access":"full","explore_access":"edit","forum_access":"full","macro_access":"full","report_access":"full","ticket_editing":true,"ticket_merge":true,"view_access":"full","user_view_access":"full","voice_dashboard_access":true,"manage_contextual_workspaces":false,"manage_organization_fields":false,"manage_ticket_fields":false,"manage_ticket_forms":false,"manage_user_fields":false,"manage_automations":false,"manage_skills":false,"manage_slas":false,"manage_triggers":false},"team_member_count":1},"emitted_at":1668515343159} +{"stream":"custom_roles","data":{"id":360000210576,"name":"Contributor","description":"Can provide limited support","role_type":3,"created_at":"2020-12-11T18:34:06Z","updated_at":"2020-12-11T18:34:09Z","configuration":{"chat_access":false,"manage_business_rules":false,"manage_dynamic_content":false,"manage_extensions_and_channels":false,"manage_facebook":false,"organization_editing":false,"organization_notes_editing":false,"ticket_deletion":false,"view_deleted_tickets":false,"ticket_tag_editing":false,"twitter_search_access":false,"forum_access_restricted_content":false,"end_user_list_access":"none","ticket_access":"within-groups","ticket_comment_access":"none","voice_access":false,"moderate_forums":false,"group_access":false,"light_agent":false,"side_conversation_create":true,"assign_tickets_to_any_group":false,"end_user_profile_access":"readonly","explore_access":"none","forum_access":"readonly","macro_access":"readonly","report_access":"none","ticket_editing":false,"ticket_merge":false,"view_access":"readonly","user_view_access":"none","voice_dashboard_access":false,"manage_contextual_workspaces":false,"manage_organization_fields":false,"manage_ticket_fields":false,"manage_ticket_forms":false,"manage_user_fields":false,"manage_automations":false,"manage_skills":false,"manage_slas":false,"manage_triggers":false},"team_member_count":2},"emitted_at":1668515343160} +{"stream":"custom_roles","data":{"id":360000327616,"name":"Billing admin","description":"Can manage all settings, including billing.","role_type":5,"created_at":"2021-01-27T19:50:20Z","updated_at":"2021-01-27T19:50:20Z","configuration":{"chat_access":true,"manage_business_rules":true,"manage_dynamic_content":true,"manage_extensions_and_channels":true,"manage_facebook":true,"organization_editing":true,"organization_notes_editing":true,"ticket_deletion":true,"view_deleted_tickets":true,"ticket_tag_editing":true,"twitter_search_access":false,"forum_access_restricted_content":false,"end_user_list_access":"full","ticket_access":"all","ticket_comment_access":"public","voice_access":true,"moderate_forums":false,"group_access":true,"light_agent":false,"side_conversation_create":true,"assign_tickets_to_any_group":true,"end_user_profile_access":"full","explore_access":"full","forum_access":"full","macro_access":"full","report_access":"full","ticket_editing":true,"ticket_merge":true,"view_access":"full","user_view_access":"full","voice_dashboard_access":true,"manage_contextual_workspaces":false,"manage_organization_fields":false,"manage_ticket_fields":false,"manage_ticket_forms":false,"manage_user_fields":false,"manage_automations":false,"manage_skills":false,"manage_slas":false,"manage_triggers":false},"team_member_count":0},"emitted_at":1668515343160} +{"stream":"custom_roles","data":{"id":360006308896,"name":"Admin","description":"Can manage all settings, except billing","role_type":4,"created_at":"2022-01-04T04:05:27Z","updated_at":"2022-01-04T04:05:27Z","configuration":{"chat_access":true,"manage_business_rules":true,"manage_dynamic_content":true,"manage_extensions_and_channels":true,"manage_facebook":true,"organization_editing":true,"organization_notes_editing":true,"ticket_deletion":true,"view_deleted_tickets":true,"ticket_tag_editing":true,"twitter_search_access":false,"forum_access_restricted_content":false,"end_user_list_access":"full","ticket_access":"all","ticket_comment_access":"public","voice_access":true,"moderate_forums":false,"group_access":true,"light_agent":false,"side_conversation_create":true,"assign_tickets_to_any_group":true,"end_user_profile_access":"full","explore_access":"full","forum_access":"full","macro_access":"full","report_access":"full","ticket_editing":true,"ticket_merge":true,"view_access":"full","user_view_access":"full","voice_dashboard_access":true,"manage_contextual_workspaces":false,"manage_organization_fields":false,"manage_ticket_fields":false,"manage_ticket_forms":false,"manage_user_fields":false,"manage_automations":false,"manage_skills":false,"manage_slas":false,"manage_triggers":false},"team_member_count":1},"emitted_at":1668515343160} +{"stream":"schedules","data":{"id":4567312249615,"name":"Test Schedule","time_zone":"New Caledonia","created_at":"2022-03-25T10:23:34Z","updated_at":"2022-03-25T10:23:34Z","intervals":[{"start_time":1980,"end_time":2460},{"start_time":3420,"end_time":3900},{"start_time":4860,"end_time":5340},{"start_time":6300,"end_time":6780},{"start_time":7740,"end_time":8220}]},"emitted_at":1668515343777} +{"stream":"ticket_forms","data":{"url":"https://d3v-airbyte.zendesk.com/api/v2/ticket_forms/360000084116.json","id":360000084116,"name":"Default Ticket Form","raw_name":"Default Ticket Form","display_name":"Default Ticket Form","raw_display_name":"Default Ticket Form","end_user_visible":true,"position":1,"ticket_field_ids":[360002833076,360002833096,360002833116,360002833136,360002833156,360002833176,360002833196],"active":true,"default":true,"created_at":"2020-12-11T18:34:37Z","updated_at":"2020-12-11T18:34:37Z","in_all_brands":true,"restricted_brand_ids":[],"end_user_conditions":[],"agent_conditions":[]},"emitted_at":1668515344287} diff --git a/airbyte-integrations/connectors/source-zendesk-support/integration_tests/incremental_catalog.json b/airbyte-integrations/connectors/source-zendesk-support/integration_tests/incremental_catalog.json new file mode 100644 index 000000000000..a26d0f32e2d1 --- /dev/null +++ b/airbyte-integrations/connectors/source-zendesk-support/integration_tests/incremental_catalog.json @@ -0,0 +1,160 @@ +{ + "streams": [ + { + "stream": { + "name": "group_memberships", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["updated_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "groups", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["updated_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "macros", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["updated_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "organizations", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["updated_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "satisfaction_ratings", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["updated_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "ticket_audits", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "ticket_comments", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "ticket_fields", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["updated_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "ticket_forms", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["updated_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "ticket_metrics", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["updated_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "ticket_metric_events", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["time"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "tickets", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["generated_timestamp"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + }, + { + "stream": { + "name": "users", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["updated_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append" + } + ] +} diff --git a/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/source.py b/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/source.py index 2213c40c2dca..12b96ca1d321 100644 --- a/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/source.py +++ b/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/source.py @@ -6,6 +6,7 @@ from typing import Any, List, Mapping, Tuple import requests +from airbyte_cdk.models import SyncMode from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator @@ -31,13 +32,8 @@ Tickets, Users, UserSettingsStream, - UserSubscriptionStream, ) -# The Zendesk Subscription Plan gains complete access to all the streams -FULL_ACCESS_PLAN = "Enterprise" -FULL_ACCESS_ONLY_STREAMS = ["ticket_forms"] - class BasicApiTokenAuthenticator(TokenAuthenticator): """basic Authorization header""" @@ -109,32 +105,34 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]: :param config: A Mapping of the user input configuration as defined in the connector spec. """ args = self.convert_config2stream_args(config) - all_streams_mapping = { - # sorted in alphabet order - "group_membership": GroupMemberships(**args), - "groups": Groups(**args), - "macros": Macros(**args), - "organizations": Organizations(**args), - "satisfaction_ratings": SatisfactionRatings(**args), - "sla_policies": SlaPolicies(**args), - "tags": Tags(**args), - "ticket_audits": TicketAudits(**args), - "ticket_comments": TicketComments(**args), - "ticket_fields": TicketFields(**args), - "ticket_forms": TicketForms(**args), - "ticket_metrics": TicketMetrics(**args), - "ticket_metric_events": TicketMetricEvents(**args), - "tickets": Tickets(**args), - "users": Users(**args), - "brands": Brands(**args), - "custom_roles": CustomRoles(**args), - "schedules": Schedules(**args), - } - # check the users Zendesk Subscription Plan - subscription_plan = UserSubscriptionStream(**args).get_subscription_plan() - if subscription_plan != FULL_ACCESS_PLAN: - # only those the streams that are not listed in FULL_ACCESS_ONLY_STREAMS should be available - return [stream_cls for stream_name, stream_cls in all_streams_mapping.items() if stream_name not in FULL_ACCESS_ONLY_STREAMS] - else: - # all streams should be available for user, otherwise - return [stream_cls for stream_cls in all_streams_mapping.values()] + streams = [ + GroupMemberships(**args), + Groups(**args), + Macros(**args), + Organizations(**args), + SatisfactionRatings(**args), + SlaPolicies(**args), + Tags(**args), + TicketAudits(**args), + TicketComments(**args), + TicketFields(**args), + TicketMetrics(**args), + TicketMetricEvents(**args), + Tickets(**args), + Users(**args), + Brands(**args), + CustomRoles(**args), + Schedules(**args), + ] + ticket_forms_stream = TicketForms(**args) + # TicketForms stream is only available for Enterprise Plan users but Zendesk API does not provide + # a public API to get user's subscription plan. That's why we try to read at least one record and expose this stream + # in case of success or skip it otherwise + try: + for stream_slice in ticket_forms_stream.stream_slices(sync_mode=SyncMode.full_refresh): + for _ in ticket_forms_stream.read_records(sync_mode=SyncMode.full_refresh, stream_slice=stream_slice): + streams.append(ticket_forms_stream) + break + except Exception: + pass + return streams diff --git a/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/streams.py b/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/streams.py index 30bfa7269756..09366612938d 100644 --- a/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/streams.py +++ b/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/streams.py @@ -646,23 +646,3 @@ def get_settings(self) -> Mapping[str, Any]: for resp in self.read_records(SyncMode.full_refresh): return resp raise SourceZendeskException("not found settings") - - -class UserSubscriptionStream(SourceZendeskSupportFullRefreshStream): - """Stream for checking read permissions for streams""" - - def path(self, *args, **kwargs) -> str: - return "/api/v2/account/subscription.json" - - def next_page_token(self, *args, **kwargs) -> Optional[Mapping[str, Any]]: - return None - - def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]: - subscription_plan = response.json().get("subscription").get("plan_name") - if subscription_plan: - yield subscription_plan - - def get_subscription_plan(self) -> Mapping[str, Any]: - for result in self.read_records(SyncMode.full_refresh): - return result - raise SourceZendeskException("Could not read User's Subscription Plan.") diff --git a/airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py b/airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py index 3fb7c0f31e88..e67df539d464 100644 --- a/airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py +++ b/airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py @@ -40,7 +40,6 @@ Tickets, Users, UserSettingsStream, - UserSubscriptionStream, ) from test_data.data import TICKET_EVENTS_STREAM_RESPONSE from utils import read_full_refresh @@ -132,19 +131,17 @@ def test_check(response, check_passed): @pytest.mark.parametrize( - "response, expected_n_streams", + "ticket_forms_response, status_code, expected_n_streams", [ - ("Enterprise", 18), - # if restricted, TicketForms stream will not be listed - ("Other", 17), + ({"ticket_forms": [{"id": 1, "updated_at": "2021-07-08T00:05:45Z"}]}, 200, 18), + ({}, 403, 17), ], - ids=["full_access", "restricted_access"], + ids=["forms_accessible", "forms_inaccessible"], ) -def test_full_access_streams(response, expected_n_streams): - with patch.object(UserSubscriptionStream, "get_subscription_plan", return_value=response) as mock_method: - result = SourceZendeskSupport().streams(config=TEST_CONFIG) - mock_method.assert_called() - assert len(result) == expected_n_streams +def test_full_access_streams(requests_mock, ticket_forms_response, status_code, expected_n_streams): + requests_mock.get("/api/v2/ticket_forms", status_code=status_code, json=ticket_forms_response) + result = SourceZendeskSupport().streams(config=TEST_CONFIG) + assert len(result) == expected_n_streams @pytest.fixture(autouse=True) @@ -282,9 +279,9 @@ class TestAllStreams: ], ) def test_streams(self, expected_stream_cls): - with patch.object(UserSubscriptionStream, "get_subscription_plan", return_value="Enterprise") as mock_method: + with patch.object(TicketForms, "read_records", return_value=[{}]) as mocked_records: streams = SourceZendeskSupport().streams(TEST_CONFIG) - mock_method.assert_called() + mocked_records.assert_called() for stream in streams: if expected_stream_cls in streams: assert isinstance(stream, expected_stream_cls) diff --git a/docs/integrations/sources/zendesk-support.md b/docs/integrations/sources/zendesk-support.md index da30c73bea38..f7c662ecb9a6 100644 --- a/docs/integrations/sources/zendesk-support.md +++ b/docs/integrations/sources/zendesk-support.md @@ -59,7 +59,8 @@ The Zendesk connector ideally should not run into Zendesk API limitations under ## Changelog | Version | Date | Pull Request | Subject | -| :------- | :--------- | :------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +|:---------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `0.2.17` | 2022-11-15 | [00000](https://github.com/airbytehq/airbyte/pull/00000) | Revert changes from version 0.2.15, use a test read instead | | `0.2.16` | 2022-09-28 | [17326](https://github.com/airbytehq/airbyte/pull/17326) | Migrate to per-stream states. | | `0.2.15` | 2022-08-03 | [15233](https://github.com/airbytehq/airbyte/pull/15233) | Added `subscription plan` check on `streams discovery` step to remove streams that are not accessible for fetch due to subscription plan restrictions | | `0.2.14` | 2022-07-27 | [15036](https://github.com/airbytehq/airbyte/pull/15036) | Convert `ticket_audits.previous_value` values to string |