Skip to content

Commit

Permalink
TDL-19802: Add new streams talk_phone_numbers and ticket_metrics_event (
Browse files Browse the repository at this point in the history
#111)

* TDL-19802: Add new streams talk_phone_numbers and ticket_metrics_event

* resolevd pylint error

* add unittest

* add unitests for both newly added streams

* add streams in base.py

* remove exception

* exclude ola field from test_all_field test case

* remove token field from talk_pjone_numbers all field test case

* updated start_date in base.py

* ignore talk_phone_numbers for bookmark test

* add new fields

* change start date

* change start date

* add backoff for connectionReseterror and chunkencoding error

* add backoff for connectionReseterror and chunkencoding error

* add backoff for connectionReseterror and Protocol error

* connection reset error

* remove backoffs

* revert http changes and all fields test

* revert http changes

* revert http changes

* use builtin libraries

* merge with master

* adjust integration tests

* adjust pagination test

* make time as date-time format

* chnagelog and version bump

---------

Co-authored-by: Jay Tilala <jay.tilala@CDSYS.LOCAL>
Co-authored-by: kethan1122 <kcherukuri@talend.com>
  • Loading branch information
3 people authored Jun 14, 2023
1 parent 038acbe commit 7153890
Showing 11 changed files with 410 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## 2.1.0
* Adds new streams `talk_phone_numbers` and `ticket_metric_events` [#111](https://github.com/singer-io/tap-zendesk/pull/111)
## 2.0.1
* Adds backoff/retry for `ProtocolError` and `ChunkedEncodingError` [#131](https://github.com/singer-io/tap-zendesk/pull/131)
## 2.0.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
from setuptools import setup

setup(name='tap-zendesk',
version='2.0.1',
version='2.1.0',
description='Singer.io tap for extracting data from the Zendesk API',
author='Stitch',
url='https://singer.io',
207 changes: 207 additions & 0 deletions tap_zendesk/schemas/talk_phone_numbers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
{
"type": [
"null",
"object"
],
"properties": {
"capabilities": {
"type": [
"null",
"object"
],
"properties": {
"sms": {
"type": [
"null",
"boolean"
]
},
"mms": {
"type": [
"null",
"boolean"
]
},
"voice": {
"type": [
"null",
"boolean"
]
}
}
},
"categorised_greetings": {
"properties": { },
"type": [
"null",
"object"
]
},
"categorised_greetings_with_sub_settings": {
"properties": { },
"type": [
"null",
"object"
]
},
"country_code": {
"type": [
"null",
"string"
]
},
"created_at": {
"type": [
"null",
"string"
],
"format": "date-time"
},
"default_greeting_ids": {
"type": ["null", "array"],
"items": {
"type": [
"null",
"string"
]
}
},
"default_group_id": {
"type": [
"null",
"integer"
]
},
"display_number": {
"type": [
"null",
"string"
]
},
"external": {
"type": [
"null",
"boolean"
]
},
"greeting_ids": {
"type": ["null", "array"],
"items": {
"type": [
"null",
"integer"
]
}
},
"group_ids": {
"type": ["null", "array"],
"items": {
"type": [
"null",
"integer"
]
}
},
"id": {
"type": [
"integer"
]
},
"ivr_id": {
"type": [
"null",
"integer"
]
},
"line_type": {
"type": [
"null",
"string"
]
},
"location": {
"type": [
"null",
"string"
]
},
"name": {
"type": [
"null",
"string"
]
},
"nickname": {
"type": [
"null",
"string"
]
},
"number": {
"type": [
"null",
"string"
]
},
"outbound_enabled": {
"type": [
"null",
"boolean"
]
},
"priority": {
"type": [
"null",
"integer"
]
},
"recorded": {
"type": [
"null",
"boolean"
]
},
"schedule_id": {
"type": [
"null",
"integer"
]
},
"sms_enabled": {
"type": [
"null",
"boolean"
]
},
"sms_group_id": {
"type": [
"null",
"integer"
]
},
"token": {
"type": [
"null",
"string"
]
},
"toll_free": {
"type": [
"null",
"boolean"
]
},
"transcription": {
"type": [
"null",
"boolean"
]
},
"voice_enabled": {
"type": [
"null",
"boolean"
]
}
}
}
116 changes: 116 additions & 0 deletions tap_zendesk/schemas/ticket_metric_events.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"type": [
"null",
"object"
],
"properties": {
"id": {
"type": [
"integer"
]
},
"instance_id": {
"type": [
"null",
"integer"
]
},
"metric": {
"type": [
"null",
"string"
]
},
"ticket_id": {
"type": [
"null",
"integer"
]
},
"time": {
"type": [
"null",
"string"
],
"format": "date-time"
},
"type": {
"type": [
"null",
"string"
]
},
"sla": {
"type": [
"null",
"object"
],
"properties": {
"target": {
"type": [
"null",
"integer"
]
},
"business_hours": {
"type": [
"null",
"boolean"
]
},
"policy": {
"type": [
"null",
"object"
],
"properties": {
"id": {
"type": [
"null",
"integer"
]
},
"title": {
"type": [
"null",
"string"
]
},
"description": {
"type": [
"null",
"string"
]
}
}
}
}
},
"status": {
"type": [
"null",
"object"
],
"properties": {
"calendar": {
"type": [
"null",
"integer"
]
},
"business": {
"type": [
"null",
"integer"
]
}
}
},
"deleted": {
"type": [
"null",
"boolean"
]
}
}
}
Loading

0 comments on commit 7153890

Please sign in to comment.