Skip to content

Commit f1304fa

Browse files
subodh1810gl-pix
authored andcommitted
format zendesk sunshine connector (#4658)
1 parent 86f05e4 commit f1304fa

File tree

4 files changed

+10
-33
lines changed

4 files changed

+10
-33
lines changed

airbyte-integrations/connectors/source-zendesk-sunshine/integration_tests/configured_catalog.json

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@
3434
}
3535
}
3636
},
37-
"supported_sync_modes": [
38-
"full_refresh",
39-
"incremental"
40-
],
37+
"supported_sync_modes": ["full_refresh", "incremental"],
4138
"source_defined_cursor": true,
4239
"default_cursor_field": []
4340
},
@@ -71,10 +68,7 @@
7168
}
7269
}
7370
},
74-
"supported_sync_modes": [
75-
"full_refresh",
76-
"incremental"
77-
],
71+
"supported_sync_modes": ["full_refresh", "incremental"],
7872
"source_defined_cursor": true,
7973
"default_cursor_field": ["updated_at"]
8074
},
@@ -105,10 +99,7 @@
10599
}
106100
}
107101
},
108-
"supported_sync_modes": [
109-
"full_refresh",
110-
"incremental"
111-
],
102+
"supported_sync_modes": ["full_refresh", "incremental"],
112103
"source_defined_cursor": true,
113104
"default_cursor_field": []
114105
},
@@ -139,10 +130,7 @@
139130
}
140131
}
141132
},
142-
"supported_sync_modes": [
143-
"full_refresh",
144-
"incremental"
145-
],
133+
"supported_sync_modes": ["full_refresh", "incremental"],
146134
"source_defined_cursor": true,
147135
"default_cursor_field": []
148136
},
@@ -217,10 +205,7 @@
217205
}
218206
}
219207
},
220-
"supported_sync_modes": [
221-
"full_refresh",
222-
"incremental"
223-
],
208+
"supported_sync_modes": ["full_refresh", "incremental"],
224209
"source_defined_cursor": true,
225210
"default_cursor_field": []
226211
},
@@ -245,10 +230,7 @@
245230
}
246231
}
247232
},
248-
"supported_sync_modes": [
249-
"full_refresh",
250-
"incremental"
251-
],
233+
"supported_sync_modes": ["full_refresh", "incremental"],
252234
"source_defined_cursor": true,
253235
"default_cursor_field": []
254236
},

airbyte-integrations/connectors/source-zendesk-sunshine/source_zendesk_sunshine/source.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,7 @@
3333
from airbyte_cdk.sources.streams import Stream
3434
from airbyte_cdk.sources.streams.http.auth import TokenAuthenticator
3535

36-
from .streams import (
37-
Limits,
38-
ObjectRecords,
39-
ObjectTypePolicies,
40-
ObjectTypes,
41-
RelationshipRecords,
42-
RelationshipTypes,
43-
)
36+
from .streams import Limits, ObjectRecords, ObjectTypePolicies, ObjectTypes, RelationshipRecords, RelationshipTypes
4437

4538

4639
class Base64HttpAuthenticator(TokenAuthenticator):

airbyte-integrations/connectors/source-zendesk-sunshine/source_zendesk_sunshine/spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"$schema": "http://json-schema.org/draft-07/schema#",
55
"title": "Zendesk Sunshine Spec",
66
"type": "object",
7-
"required": ["api_token", "email", "start_date" ,"subdomain"],
7+
"required": ["api_token", "email", "start_date", "subdomain"],
88
"additionalProperties": false,
99
"properties": {
1010
"api_token": {

airbyte-integrations/connectors/source-zendesk-sunshine/source_zendesk_sunshine/streams.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ class ObjectRecords(IncrementalSunshineStream):
108108
To support Incremental for this stream I had to use `query` endpoint instead of `objects/records` -
109109
this allows me to use date filters. This is the only way to have incremental support.
110110
"""
111+
111112
http_method = "POST"
112113

113114
def request_body_json(
@@ -213,6 +214,7 @@ class Jobs(SunshineStream):
213214
This stream is dynamic. The data can exist today, but may be absent tomorrow.
214215
Since we need to have some data in the stream this stream is disabled.
215216
"""
217+
216218
def path(self, **kwargs) -> str:
217219
return "jobs"
218220

0 commit comments

Comments
 (0)