airbyte-source-iterable 0.7.2__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airbyte_source_iterable-1.0.1/.airbyte-pypi-readme.md +7 -0
- airbyte_source_iterable-1.0.1/PKG-INFO +29 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/pyproject.toml +2 -2
- airbyte_source_iterable-1.0.1/source_iterable/components.py +126 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/manifest.yaml +3 -1
- airbyte_source_iterable-1.0.1/source_iterable/schemas/users.json +159 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/streams.py +6 -1
- airbyte_source_iterable-0.7.2/PKG-INFO +0 -126
- airbyte_source_iterable-0.7.2/README.md +0 -104
- airbyte_source_iterable-0.7.2/source_iterable/components.py +0 -23
- airbyte_source_iterable-0.7.2/source_iterable/schemas/users.json +0 -458
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/__init__.py +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/run.py +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/campaigns.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/campaigns_metrics.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/channels.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/email_bounce.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/email_click.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/email_complaint.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/email_open.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/email_send.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/email_send_skip.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/email_subscribe.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/email_unsubscribe.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/events.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/list_users.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/lists.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/message_types.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/metadata.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/templates.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/slice_generators.py +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/source.py +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/spec.json +0 -0
- {airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/utils.py +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Iterable
|
|
2
|
+
|
|
3
|
+
This package contains the Airbyte Iterable connector.
|
|
4
|
+
|
|
5
|
+
Airbyte is open-source data movement for ELT pipelines and AI agents. It moves data from APIs, databases, and files to warehouses, lakes, and AI applications.
|
|
6
|
+
|
|
7
|
+
Airbyte provides a catalog of 600+ connectors for APIs, databases, data warehouses, data lakes, and AI applications. Use this package with [PyAirbyte](https://docs.airbyte.com/developers/pyairbyte) to run the connector from Python.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: airbyte-source-iterable
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: Source implementation for Iterable.
|
|
5
|
+
Home-page: https://airbyte.com
|
|
6
|
+
License: ELv2
|
|
7
|
+
Author: Airbyte
|
|
8
|
+
Author-email: contact@airbyte.io
|
|
9
|
+
Requires-Python: >=3.9,<3.12
|
|
10
|
+
Classifier: License :: Other/Proprietary License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Requires-Dist: airbyte-cdk (>=3,<4)
|
|
16
|
+
Requires-Dist: pendulum (==2.1.2)
|
|
17
|
+
Requires-Dist: python-dateutil (==2.8.2)
|
|
18
|
+
Project-URL: Documentation, https://docs.airbyte.com/integrations/sources/iterable
|
|
19
|
+
Project-URL: Repository, https://github.com/airbytehq/airbyte
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# Iterable
|
|
23
|
+
|
|
24
|
+
This package contains the Airbyte Iterable connector.
|
|
25
|
+
|
|
26
|
+
Airbyte is open-source data movement for ELT pipelines and AI agents. It moves data from APIs, databases, and files to warehouses, lakes, and AI applications.
|
|
27
|
+
|
|
28
|
+
Airbyte provides a catalog of 600+ connectors for APIs, databases, data warehouses, data lakes, and AI applications. Use this package with [PyAirbyte](https://docs.airbyte.com/developers/pyairbyte) to run the connector from Python.
|
|
29
|
+
|
|
@@ -3,12 +3,12 @@ requires = [ "poetry-core>=1.0.0",]
|
|
|
3
3
|
build-backend = "poetry.core.masonry.api"
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
|
-
version = "0.
|
|
6
|
+
version = "1.0.1"
|
|
7
7
|
name = "airbyte-source-iterable"
|
|
8
8
|
description = "Source implementation for Iterable."
|
|
9
9
|
authors = [ "Airbyte <contact@airbyte.io>",]
|
|
10
10
|
license = "ELv2"
|
|
11
|
-
readme = "
|
|
11
|
+
readme = ".airbyte-pypi-readme.md"
|
|
12
12
|
documentation = "https://docs.airbyte.com/integrations/sources/iterable"
|
|
13
13
|
homepage = "https://airbyte.com"
|
|
14
14
|
repository = "https://github.com/airbytehq/airbyte"
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing import Any, Iterable, Mapping
|
|
8
|
+
|
|
9
|
+
import requests
|
|
10
|
+
|
|
11
|
+
from airbyte_cdk.sources.declarative.extractors.dpath_extractor import DpathExtractor
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass
|
|
15
|
+
class EventsRecordExtractor(DpathExtractor):
|
|
16
|
+
common_fields = ("itblInternal", "_type", "createdAt", "email")
|
|
17
|
+
|
|
18
|
+
def extract_records(self, response: requests.Response) -> Iterable[Mapping[str, Any]]:
|
|
19
|
+
jsonl_records = super().extract_records(response=response)
|
|
20
|
+
for record_dict in jsonl_records:
|
|
21
|
+
record_dict_common_fields = {}
|
|
22
|
+
for field in self.common_fields:
|
|
23
|
+
record_dict_common_fields[field] = record_dict.pop(field, None)
|
|
24
|
+
yield {**record_dict_common_fields, "data": record_dict}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@dataclass
|
|
28
|
+
class UsersRecordExtractor(DpathExtractor):
|
|
29
|
+
"""Extracts user records, keeping standard Iterable-managed fields at the top level
|
|
30
|
+
and placing all custom/tenant-specific dataFields into a generic `data` object.
|
|
31
|
+
|
|
32
|
+
Standard fields are those documented at:
|
|
33
|
+
https://support.iterable.com/hc/en-us/articles/217744303-User-Profile-Fields-Used-by-Iterable
|
|
34
|
+
|
|
35
|
+
The Iterable export API flattens nested objects into dotted keys (e.g.
|
|
36
|
+
`itblInternal.emailDomain`), so Iterable-internal fields are listed in their flat
|
|
37
|
+
dotted form. Keys not listed here - including Iterable-internal dotted keys that
|
|
38
|
+
are not declared in the stream schema - are routed into `data` so destinations
|
|
39
|
+
that materialize only declared fields never drop them.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
# Fields documented by Iterable as managed or used for sending messages.
|
|
43
|
+
# Reference: https://support.iterable.com/hc/en-us/articles/217744303
|
|
44
|
+
STANDARD_FIELDS = frozenset(
|
|
45
|
+
{
|
|
46
|
+
# Unique identifiers
|
|
47
|
+
"email",
|
|
48
|
+
"userId",
|
|
49
|
+
# Managed by Iterable
|
|
50
|
+
"emailListIds",
|
|
51
|
+
"itblUserId",
|
|
52
|
+
"knownLitigatorFilter",
|
|
53
|
+
"profileUpdatedAt",
|
|
54
|
+
"receivedSMSDisclaimer",
|
|
55
|
+
"signupDate",
|
|
56
|
+
"signupSource",
|
|
57
|
+
"subscribedMessageTypeIds",
|
|
58
|
+
"unsubscribedChannelIds",
|
|
59
|
+
"unsubscribedMessageTypeIds",
|
|
60
|
+
"userListIds",
|
|
61
|
+
# Geolocation fields populated by Iterable from the user's IP
|
|
62
|
+
"city",
|
|
63
|
+
"region",
|
|
64
|
+
# Fields used for sending messages
|
|
65
|
+
"country",
|
|
66
|
+
"devices",
|
|
67
|
+
"ip",
|
|
68
|
+
"locale",
|
|
69
|
+
"phoneNumber",
|
|
70
|
+
"profile",
|
|
71
|
+
"timeZone",
|
|
72
|
+
"whatsAppPhoneNumber",
|
|
73
|
+
# Iterable-internal fields (the export returns them as flat dotted keys)
|
|
74
|
+
"itblInternal.emailDomain",
|
|
75
|
+
"itblInternal.phoneCountry",
|
|
76
|
+
"itblInternal.phoneType",
|
|
77
|
+
"itblInternal.documentCreatedAt",
|
|
78
|
+
"itblInternal.documentUpdatedAt",
|
|
79
|
+
"itblInternal.isUnknownUser",
|
|
80
|
+
"itblDS.brandAffinityLabel",
|
|
81
|
+
"itblDS.predictiveGoals",
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
# The export API emits these as space-separated timestamps ("2021-04-14 16:52:31 +00:00")
|
|
86
|
+
# while the schema declares format: date-time (RFC3339); normalize so typed destinations
|
|
87
|
+
# do not null the values into _airbyte_meta.changes.
|
|
88
|
+
TIMESTAMP_FIELDS = (
|
|
89
|
+
"signupDate",
|
|
90
|
+
"profileUpdatedAt",
|
|
91
|
+
"itblInternal.documentCreatedAt",
|
|
92
|
+
"itblInternal.documentUpdatedAt",
|
|
93
|
+
)
|
|
94
|
+
_TIMESTAMP_FORMATS = (
|
|
95
|
+
"%Y-%m-%d %H:%M:%S %z",
|
|
96
|
+
"%Y-%m-%dT%H:%M:%S%z",
|
|
97
|
+
"%Y-%m-%d %H:%M:%S.%f %z",
|
|
98
|
+
"%Y-%m-%dT%H:%M:%S.%f%z",
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
@classmethod
|
|
102
|
+
def _normalize_timestamp(cls, value: Any) -> Any:
|
|
103
|
+
if not isinstance(value, str):
|
|
104
|
+
return value
|
|
105
|
+
for fmt in cls._TIMESTAMP_FORMATS:
|
|
106
|
+
try:
|
|
107
|
+
return datetime.strptime(value, fmt).isoformat()
|
|
108
|
+
except ValueError:
|
|
109
|
+
continue
|
|
110
|
+
return value
|
|
111
|
+
|
|
112
|
+
def extract_records(self, response: requests.Response) -> Iterable[Mapping[str, Any]]:
|
|
113
|
+
jsonl_records = super().extract_records(response=response)
|
|
114
|
+
for record_dict in jsonl_records:
|
|
115
|
+
standard: dict[str, Any] = {}
|
|
116
|
+
data: dict[str, Any] = {}
|
|
117
|
+
for key, value in record_dict.items():
|
|
118
|
+
if key in self.STANDARD_FIELDS:
|
|
119
|
+
standard[key] = value
|
|
120
|
+
else:
|
|
121
|
+
data[key] = value
|
|
122
|
+
for field in self.TIMESTAMP_FIELDS:
|
|
123
|
+
if field in standard:
|
|
124
|
+
standard[field] = self._normalize_timestamp(standard[field])
|
|
125
|
+
standard["data"] = data
|
|
126
|
+
yield standard
|
{airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/manifest.yaml
RENAMED
|
@@ -315,7 +315,7 @@ streams:
|
|
|
315
315
|
record_selector:
|
|
316
316
|
type: RecordSelector
|
|
317
317
|
extractor:
|
|
318
|
-
|
|
318
|
+
class_name: source_iterable.components.UsersRecordExtractor
|
|
319
319
|
field_path: []
|
|
320
320
|
partition_router: []
|
|
321
321
|
primary_key: []
|
|
@@ -344,6 +344,8 @@ streams:
|
|
|
344
344
|
cursor_datetime_formats:
|
|
345
345
|
- "%Y-%m-%d %H:%M:%S %z"
|
|
346
346
|
- "%Y-%m-%dT%H:%M:%S%z"
|
|
347
|
+
- "%Y-%m-%d %H:%M:%S.%f %z"
|
|
348
|
+
- "%Y-%m-%dT%H:%M:%S.%f%z"
|
|
347
349
|
- name: events
|
|
348
350
|
primary_key: []
|
|
349
351
|
retriever:
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"email": {
|
|
4
|
+
"description": "User's email address (unique identifier).",
|
|
5
|
+
"type": ["null", "string"]
|
|
6
|
+
},
|
|
7
|
+
"userId": {
|
|
8
|
+
"description": "User's unique identifier assigned by the tenant.",
|
|
9
|
+
"type": ["null", "string"]
|
|
10
|
+
},
|
|
11
|
+
"emailListIds": {
|
|
12
|
+
"description": "List of static list IDs the user is a member of (email-based projects).",
|
|
13
|
+
"type": ["null", "array"],
|
|
14
|
+
"items": {
|
|
15
|
+
"type": ["null", "integer"]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"itblUserId": {
|
|
19
|
+
"description": "Iterable's internal unique user identifier.",
|
|
20
|
+
"type": ["null", "string"]
|
|
21
|
+
},
|
|
22
|
+
"knownLitigatorFilter": {
|
|
23
|
+
"description": "Known litigator confidence level (LT1, LT2, or LT3).",
|
|
24
|
+
"type": ["null", "string"]
|
|
25
|
+
},
|
|
26
|
+
"profileUpdatedAt": {
|
|
27
|
+
"description": "Date and time when the profile was last updated.",
|
|
28
|
+
"type": ["null", "string"],
|
|
29
|
+
"format": "date-time",
|
|
30
|
+
"airbyte_type": "timestamp_with_timezone"
|
|
31
|
+
},
|
|
32
|
+
"receivedSMSDisclaimer": {
|
|
33
|
+
"description": "Whether the user has received an SMS with opt-out instructions.",
|
|
34
|
+
"type": ["null", "boolean"]
|
|
35
|
+
},
|
|
36
|
+
"signupDate": {
|
|
37
|
+
"description": "Date and time when the user profile was created.",
|
|
38
|
+
"type": ["null", "string"],
|
|
39
|
+
"format": "date-time",
|
|
40
|
+
"airbyte_type": "timestamp_with_timezone"
|
|
41
|
+
},
|
|
42
|
+
"signupSource": {
|
|
43
|
+
"description": "How the contact was created in Iterable (e.g. API, IMPORT).",
|
|
44
|
+
"type": ["null", "string"]
|
|
45
|
+
},
|
|
46
|
+
"subscribedMessageTypeIds": {
|
|
47
|
+
"description": "List of opt-in message type IDs the user has subscribed to.",
|
|
48
|
+
"type": ["null", "array"],
|
|
49
|
+
"items": {
|
|
50
|
+
"type": ["null", "integer"]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"unsubscribedChannelIds": {
|
|
54
|
+
"description": "List of channel IDs the user has unsubscribed from.",
|
|
55
|
+
"type": ["null", "array"],
|
|
56
|
+
"items": {
|
|
57
|
+
"type": ["null", "integer"]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"unsubscribedMessageTypeIds": {
|
|
61
|
+
"description": "List of opt-out message type IDs the user has unsubscribed from.",
|
|
62
|
+
"type": ["null", "array"],
|
|
63
|
+
"items": {
|
|
64
|
+
"type": ["null", "integer"]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"userListIds": {
|
|
68
|
+
"description": "List of static list IDs the user is a member of (userId/hybrid projects).",
|
|
69
|
+
"type": ["null", "array"],
|
|
70
|
+
"items": {
|
|
71
|
+
"type": ["null", "integer"]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"country": {
|
|
75
|
+
"description": "User's country.",
|
|
76
|
+
"type": ["null", "string"]
|
|
77
|
+
},
|
|
78
|
+
"city": {
|
|
79
|
+
"description": "User's city, populated by Iterable from the user's IP address when the Overwrite Location Fields project setting is on.",
|
|
80
|
+
"type": ["null", "string"]
|
|
81
|
+
},
|
|
82
|
+
"region": {
|
|
83
|
+
"description": "User's region, populated by Iterable from the user's IP address when the Overwrite Location Fields project setting is on.",
|
|
84
|
+
"type": ["null", "string"]
|
|
85
|
+
},
|
|
86
|
+
"devices": {
|
|
87
|
+
"description": "Devices registered for push notifications.",
|
|
88
|
+
"type": ["null", "array"],
|
|
89
|
+
"items": {
|
|
90
|
+
"type": ["null", "object"]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"ip": {
|
|
94
|
+
"description": "User's IP address.",
|
|
95
|
+
"type": ["null", "string"]
|
|
96
|
+
},
|
|
97
|
+
"locale": {
|
|
98
|
+
"description": "User's locale.",
|
|
99
|
+
"type": ["null", "string"]
|
|
100
|
+
},
|
|
101
|
+
"phoneNumber": {
|
|
102
|
+
"description": "User's phone number used for SMS.",
|
|
103
|
+
"type": ["null", "string"]
|
|
104
|
+
},
|
|
105
|
+
"whatsAppPhoneNumber": {
|
|
106
|
+
"description": "User's phone number used as the recipient identifier for WhatsApp campaigns.",
|
|
107
|
+
"type": ["null", "string"]
|
|
108
|
+
},
|
|
109
|
+
"profile": {
|
|
110
|
+
"description": "Profile data used for message personalization.",
|
|
111
|
+
"type": ["null", "object"]
|
|
112
|
+
},
|
|
113
|
+
"timeZone": {
|
|
114
|
+
"description": "User's time zone.",
|
|
115
|
+
"type": ["null", "string"]
|
|
116
|
+
},
|
|
117
|
+
"itblInternal.emailDomain": {
|
|
118
|
+
"description": "Domain of the user's email address (managed by Iterable).",
|
|
119
|
+
"type": ["null", "string"]
|
|
120
|
+
},
|
|
121
|
+
"itblInternal.phoneCountry": {
|
|
122
|
+
"description": "ISO-3166 country code for the user's phone number.",
|
|
123
|
+
"type": ["null", "string"]
|
|
124
|
+
},
|
|
125
|
+
"itblInternal.phoneType": {
|
|
126
|
+
"description": "Type of phone number (MOBILE, FIXED_LINE, VOIP, etc.).",
|
|
127
|
+
"type": ["null", "string"]
|
|
128
|
+
},
|
|
129
|
+
"itblInternal.documentCreatedAt": {
|
|
130
|
+
"description": "Timestamp when the user document was created internally.",
|
|
131
|
+
"type": ["null", "string"],
|
|
132
|
+
"format": "date-time",
|
|
133
|
+
"airbyte_type": "timestamp_with_timezone"
|
|
134
|
+
},
|
|
135
|
+
"itblInternal.documentUpdatedAt": {
|
|
136
|
+
"description": "Timestamp when the user document was last updated internally.",
|
|
137
|
+
"type": ["null", "string"],
|
|
138
|
+
"format": "date-time",
|
|
139
|
+
"airbyte_type": "timestamp_with_timezone"
|
|
140
|
+
},
|
|
141
|
+
"itblInternal.isUnknownUser": {
|
|
142
|
+
"description": "Whether the user is flagged as unknown by Iterable.",
|
|
143
|
+
"type": ["null", "boolean"]
|
|
144
|
+
},
|
|
145
|
+
"itblDS.brandAffinityLabel": {
|
|
146
|
+
"description": "Contact's engagement level as determined by Brand Affinity.",
|
|
147
|
+
"type": ["null", "string"]
|
|
148
|
+
},
|
|
149
|
+
"itblDS.predictiveGoals": {
|
|
150
|
+
"description": "User conversion scores for Predictive Goals.",
|
|
151
|
+
"type": ["null", "object"]
|
|
152
|
+
},
|
|
153
|
+
"data": {
|
|
154
|
+
"description": "Custom data fields specific to the tenant. Contains all non-standard user profile fields.",
|
|
155
|
+
"type": ["null", "object"]
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"type": ["null", "object"]
|
|
159
|
+
}
|
|
@@ -14,6 +14,7 @@ from pendulum.datetime import DateTime
|
|
|
14
14
|
from requests import HTTPError
|
|
15
15
|
from requests.exceptions import ChunkedEncodingError
|
|
16
16
|
|
|
17
|
+
from airbyte_cdk import AirbyteTracedException, FailureType
|
|
17
18
|
from airbyte_cdk.models import SyncMode
|
|
18
19
|
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
|
|
19
20
|
from airbyte_cdk.sources.streams.core import CheckpointMixin, package_name_from_class
|
|
@@ -372,7 +373,11 @@ class IterableExportStreamAdjustableRange(IterableExportStream, ABC):
|
|
|
372
373
|
self.logger.warn("ChunkedEncodingError occurred, decrease days range and try again")
|
|
373
374
|
stream_slice = self._adjustable_generator.reduce_range()
|
|
374
375
|
else:
|
|
375
|
-
raise
|
|
376
|
+
raise AirbyteTracedException(
|
|
377
|
+
message="Iterable Export API response repeatedly closed for the selected event window.",
|
|
378
|
+
internal_message=f"ChunkedEncodingError: Reached maximum number of retries: {self.CHUNKED_ENCODING_ERROR_RETRIES}",
|
|
379
|
+
failure_type=FailureType.system_error,
|
|
380
|
+
)
|
|
376
381
|
|
|
377
382
|
|
|
378
383
|
class IterableExportEventsStreamAdjustableRange(IterableExportStreamAdjustableRange, ABC):
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: airbyte-source-iterable
|
|
3
|
-
Version: 0.7.2
|
|
4
|
-
Summary: Source implementation for Iterable.
|
|
5
|
-
Home-page: https://airbyte.com
|
|
6
|
-
License: ELv2
|
|
7
|
-
Author: Airbyte
|
|
8
|
-
Author-email: contact@airbyte.io
|
|
9
|
-
Requires-Python: >=3.9,<3.12
|
|
10
|
-
Classifier: License :: Other/Proprietary License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
-
Requires-Dist: airbyte-cdk (>=3,<4)
|
|
16
|
-
Requires-Dist: pendulum (==2.1.2)
|
|
17
|
-
Requires-Dist: python-dateutil (==2.8.2)
|
|
18
|
-
Project-URL: Documentation, https://docs.airbyte.com/integrations/sources/iterable
|
|
19
|
-
Project-URL: Repository, https://github.com/airbytehq/airbyte
|
|
20
|
-
Description-Content-Type: text/markdown
|
|
21
|
-
|
|
22
|
-
# Iterable source connector
|
|
23
|
-
|
|
24
|
-
This is the repository for the Iterable source connector, written in Python.
|
|
25
|
-
For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/iterable).
|
|
26
|
-
|
|
27
|
-
## Local development
|
|
28
|
-
|
|
29
|
-
### Prerequisites
|
|
30
|
-
|
|
31
|
-
- Python (~=3.9)
|
|
32
|
-
- Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)
|
|
33
|
-
|
|
34
|
-
### Installing the connector
|
|
35
|
-
|
|
36
|
-
From this connector directory, run:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
poetry install --with dev
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Create credentials
|
|
43
|
-
|
|
44
|
-
**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/iterable)
|
|
45
|
-
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_iterable/spec.yaml` file.
|
|
46
|
-
Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
|
|
47
|
-
See `sample_files/sample_config.json` for a sample config file.
|
|
48
|
-
|
|
49
|
-
### Locally running the connector
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
poetry run source-iterable spec
|
|
53
|
-
poetry run source-iterable check --config secrets/config.json
|
|
54
|
-
poetry run source-iterable discover --config secrets/config.json
|
|
55
|
-
poetry run source-iterable read --config secrets/config.json --catalog integration_tests/configured_catalog.json
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Running unit tests
|
|
59
|
-
|
|
60
|
-
To run unit tests locally, from the connector directory run:
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
poetry run pytest unit_tests
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Building the docker image
|
|
67
|
-
|
|
68
|
-
1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)
|
|
69
|
-
2. Run the following command to build the docker image:
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
airbyte-ci connectors --name=source-iterable build
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
An image will be available on your host with the tag `airbyte/source-iterable:dev`.
|
|
76
|
-
|
|
77
|
-
### Running as a docker container
|
|
78
|
-
|
|
79
|
-
Then run any of the connector commands as follows:
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
docker run --rm airbyte/source-iterable:dev spec
|
|
83
|
-
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-iterable:dev check --config /secrets/config.json
|
|
84
|
-
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-iterable:dev discover --config /secrets/config.json
|
|
85
|
-
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-iterable:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Running our CI test suite
|
|
89
|
-
|
|
90
|
-
You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
airbyte-ci connectors --name=source-iterable test
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Customizing acceptance Tests
|
|
97
|
-
|
|
98
|
-
Customize `acceptance-test-config.yml` file to configure acceptance tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
|
|
99
|
-
If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
|
|
100
|
-
|
|
101
|
-
### Dependency Management
|
|
102
|
-
|
|
103
|
-
All of your dependencies should be managed via Poetry.
|
|
104
|
-
To add a new dependency, run:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
poetry add <package-name>
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Please commit the changes to `pyproject.toml` and `poetry.lock` files.
|
|
111
|
-
|
|
112
|
-
## Publishing a new version of the connector
|
|
113
|
-
|
|
114
|
-
You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
|
|
115
|
-
|
|
116
|
-
1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-iterable test`
|
|
117
|
-
2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
|
|
118
|
-
- bump the `dockerImageTag` value in in `metadata.yaml`
|
|
119
|
-
- bump the `version` value in `pyproject.toml`
|
|
120
|
-
3. Make sure the `metadata.yaml` content is up to date.
|
|
121
|
-
4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/iterable.md`).
|
|
122
|
-
5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
|
|
123
|
-
6. Pat yourself on the back for being an awesome contributor.
|
|
124
|
-
7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
|
|
125
|
-
8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.
|
|
126
|
-
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# Iterable source connector
|
|
2
|
-
|
|
3
|
-
This is the repository for the Iterable source connector, written in Python.
|
|
4
|
-
For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/iterable).
|
|
5
|
-
|
|
6
|
-
## Local development
|
|
7
|
-
|
|
8
|
-
### Prerequisites
|
|
9
|
-
|
|
10
|
-
- Python (~=3.9)
|
|
11
|
-
- Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)
|
|
12
|
-
|
|
13
|
-
### Installing the connector
|
|
14
|
-
|
|
15
|
-
From this connector directory, run:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
poetry install --with dev
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Create credentials
|
|
22
|
-
|
|
23
|
-
**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/iterable)
|
|
24
|
-
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_iterable/spec.yaml` file.
|
|
25
|
-
Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
|
|
26
|
-
See `sample_files/sample_config.json` for a sample config file.
|
|
27
|
-
|
|
28
|
-
### Locally running the connector
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
poetry run source-iterable spec
|
|
32
|
-
poetry run source-iterable check --config secrets/config.json
|
|
33
|
-
poetry run source-iterable discover --config secrets/config.json
|
|
34
|
-
poetry run source-iterable read --config secrets/config.json --catalog integration_tests/configured_catalog.json
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Running unit tests
|
|
38
|
-
|
|
39
|
-
To run unit tests locally, from the connector directory run:
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
poetry run pytest unit_tests
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Building the docker image
|
|
46
|
-
|
|
47
|
-
1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)
|
|
48
|
-
2. Run the following command to build the docker image:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
airbyte-ci connectors --name=source-iterable build
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
An image will be available on your host with the tag `airbyte/source-iterable:dev`.
|
|
55
|
-
|
|
56
|
-
### Running as a docker container
|
|
57
|
-
|
|
58
|
-
Then run any of the connector commands as follows:
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
docker run --rm airbyte/source-iterable:dev spec
|
|
62
|
-
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-iterable:dev check --config /secrets/config.json
|
|
63
|
-
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-iterable:dev discover --config /secrets/config.json
|
|
64
|
-
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-iterable:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Running our CI test suite
|
|
68
|
-
|
|
69
|
-
You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
airbyte-ci connectors --name=source-iterable test
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Customizing acceptance Tests
|
|
76
|
-
|
|
77
|
-
Customize `acceptance-test-config.yml` file to configure acceptance tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
|
|
78
|
-
If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
|
|
79
|
-
|
|
80
|
-
### Dependency Management
|
|
81
|
-
|
|
82
|
-
All of your dependencies should be managed via Poetry.
|
|
83
|
-
To add a new dependency, run:
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
poetry add <package-name>
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Please commit the changes to `pyproject.toml` and `poetry.lock` files.
|
|
90
|
-
|
|
91
|
-
## Publishing a new version of the connector
|
|
92
|
-
|
|
93
|
-
You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
|
|
94
|
-
|
|
95
|
-
1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-iterable test`
|
|
96
|
-
2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
|
|
97
|
-
- bump the `dockerImageTag` value in in `metadata.yaml`
|
|
98
|
-
- bump the `version` value in `pyproject.toml`
|
|
99
|
-
3. Make sure the `metadata.yaml` content is up to date.
|
|
100
|
-
4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/iterable.md`).
|
|
101
|
-
5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
|
|
102
|
-
6. Pat yourself on the back for being an awesome contributor.
|
|
103
|
-
7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
|
|
104
|
-
8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
|
|
3
|
-
#
|
|
4
|
-
|
|
5
|
-
from dataclasses import dataclass
|
|
6
|
-
from typing import Any, Iterable, Mapping
|
|
7
|
-
|
|
8
|
-
import requests
|
|
9
|
-
|
|
10
|
-
from airbyte_cdk.sources.declarative.extractors.dpath_extractor import DpathExtractor
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@dataclass
|
|
14
|
-
class EventsRecordExtractor(DpathExtractor):
|
|
15
|
-
common_fields = ("itblInternal", "_type", "createdAt", "email")
|
|
16
|
-
|
|
17
|
-
def extract_records(self, response: requests.Response) -> Iterable[Mapping[str, Any]]:
|
|
18
|
-
jsonl_records = super().extract_records(response=response)
|
|
19
|
-
for record_dict in jsonl_records:
|
|
20
|
-
record_dict_common_fields = {}
|
|
21
|
-
for field in self.common_fields:
|
|
22
|
-
record_dict_common_fields[field] = record_dict.pop(field, None)
|
|
23
|
-
yield {**record_dict_common_fields, "data": record_dict}
|
|
@@ -1,458 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"properties": {
|
|
3
|
-
"country": {
|
|
4
|
-
"description": "Country name.",
|
|
5
|
-
"type": ["null", "string"]
|
|
6
|
-
},
|
|
7
|
-
"firstOrderDate": {
|
|
8
|
-
"description": "Date and time of the first order.",
|
|
9
|
-
"type": ["null", "string"],
|
|
10
|
-
"format": "date-time"
|
|
11
|
-
},
|
|
12
|
-
"addresses": {
|
|
13
|
-
"description": "List of addresses associated with the user",
|
|
14
|
-
"type": ["null", "array"],
|
|
15
|
-
"items": {
|
|
16
|
-
"type": ["null", "object"],
|
|
17
|
-
"properties": {
|
|
18
|
-
"first_name": {
|
|
19
|
-
"description": "First name of the user associated with the address.",
|
|
20
|
-
"type": ["null", "string"]
|
|
21
|
-
},
|
|
22
|
-
"city": {
|
|
23
|
-
"description": "City name.",
|
|
24
|
-
"type": ["null", "string"]
|
|
25
|
-
},
|
|
26
|
-
"name": {
|
|
27
|
-
"description": "Full name associated with the address.",
|
|
28
|
-
"type": ["null", "string"]
|
|
29
|
-
},
|
|
30
|
-
"zip": {
|
|
31
|
-
"description": "Postal code or ZIP code.",
|
|
32
|
-
"type": ["null", "string"]
|
|
33
|
-
},
|
|
34
|
-
"country": {
|
|
35
|
-
"description": "Country name of the address.",
|
|
36
|
-
"type": ["null", "string"]
|
|
37
|
-
},
|
|
38
|
-
"address1": {
|
|
39
|
-
"description": "Address line 1.",
|
|
40
|
-
"type": ["null", "string"]
|
|
41
|
-
},
|
|
42
|
-
"address2": {
|
|
43
|
-
"description": "Address line 2.",
|
|
44
|
-
"type": ["null", "string"]
|
|
45
|
-
},
|
|
46
|
-
"company": {
|
|
47
|
-
"description": "Company name associated with the address.",
|
|
48
|
-
"type": ["null", "string"]
|
|
49
|
-
},
|
|
50
|
-
"country_code": {
|
|
51
|
-
"description": "Country code of the address.",
|
|
52
|
-
"type": ["null", "string"]
|
|
53
|
-
},
|
|
54
|
-
"default": {
|
|
55
|
-
"description": "Indicates if this is the default address.",
|
|
56
|
-
"type": ["null", "boolean"]
|
|
57
|
-
},
|
|
58
|
-
"id": {
|
|
59
|
-
"description": "Unique identifier for the address.",
|
|
60
|
-
"type": ["null", "string"]
|
|
61
|
-
},
|
|
62
|
-
"last_name": {
|
|
63
|
-
"description": "Last name of the user associated with the address.",
|
|
64
|
-
"type": ["null", "string"]
|
|
65
|
-
},
|
|
66
|
-
"province": {
|
|
67
|
-
"description": "Province or state of the address.",
|
|
68
|
-
"type": ["null", "string"]
|
|
69
|
-
},
|
|
70
|
-
"province_code": {
|
|
71
|
-
"description": "Province or state code of the address.",
|
|
72
|
-
"type": ["null", "string"]
|
|
73
|
-
},
|
|
74
|
-
"country_name": {
|
|
75
|
-
"description": "Full name of the country.",
|
|
76
|
-
"type": ["null", "string"]
|
|
77
|
-
},
|
|
78
|
-
"phone": {
|
|
79
|
-
"description": "Contact phone number.",
|
|
80
|
-
"type": ["null", "string"]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"emailAcquiredDate": {
|
|
86
|
-
"description": "Date and time when the email was acquired.",
|
|
87
|
-
"type": ["null", "string"],
|
|
88
|
-
"format": "date-time"
|
|
89
|
-
},
|
|
90
|
-
"emailSegmentStatus": {
|
|
91
|
-
"description": "Status of the email segment.",
|
|
92
|
-
"type": ["null", "string"]
|
|
93
|
-
},
|
|
94
|
-
"admin_graphql_api_id": {
|
|
95
|
-
"description": "Admin GraphQL API ID.",
|
|
96
|
-
"type": ["null", "string"]
|
|
97
|
-
},
|
|
98
|
-
"id": {
|
|
99
|
-
"description": "User ID.",
|
|
100
|
-
"type": ["null", "string"]
|
|
101
|
-
},
|
|
102
|
-
"mostRecentEmailList": {
|
|
103
|
-
"description": "Most recent email list the user is part of.",
|
|
104
|
-
"type": ["null", "string"]
|
|
105
|
-
},
|
|
106
|
-
"mostRecentEmailSegment": {
|
|
107
|
-
"description": "Most recent email segment the user is part of.",
|
|
108
|
-
"type": ["null", "string"]
|
|
109
|
-
},
|
|
110
|
-
"aov": {
|
|
111
|
-
"description": "Average order value.",
|
|
112
|
-
"type": ["null", "number"]
|
|
113
|
-
},
|
|
114
|
-
"firstCampaign": {
|
|
115
|
-
"description": "First campaign the user interacted with.",
|
|
116
|
-
"type": ["null", "string"]
|
|
117
|
-
},
|
|
118
|
-
"thirdMostRecentOrderDate": {
|
|
119
|
-
"description": "Date and time of the third most recent order.",
|
|
120
|
-
"type": ["null", "string"],
|
|
121
|
-
"format": "date-time"
|
|
122
|
-
},
|
|
123
|
-
"firstPurchaseDate": {
|
|
124
|
-
"description": "Date and time of the first purchase made by the user.",
|
|
125
|
-
"type": ["null", "string"],
|
|
126
|
-
"format": "date-time"
|
|
127
|
-
},
|
|
128
|
-
"firstMedium": {
|
|
129
|
-
"description": "First medium through which the user interacted.",
|
|
130
|
-
"type": ["null", "string"]
|
|
131
|
-
},
|
|
132
|
-
"default_address": {
|
|
133
|
-
"description": "Default address of the user",
|
|
134
|
-
"type": ["null", "object"],
|
|
135
|
-
"properties": {
|
|
136
|
-
"first_name": {
|
|
137
|
-
"description": "First name of the user associated with the address.",
|
|
138
|
-
"type": ["null", "string"]
|
|
139
|
-
},
|
|
140
|
-
"city": {
|
|
141
|
-
"description": "City name.",
|
|
142
|
-
"type": ["null", "string"]
|
|
143
|
-
},
|
|
144
|
-
"name": {
|
|
145
|
-
"description": "Full name associated with the address.",
|
|
146
|
-
"type": ["null", "string"]
|
|
147
|
-
},
|
|
148
|
-
"zip": {
|
|
149
|
-
"description": "Postal code or ZIP code.",
|
|
150
|
-
"type": ["null", "string"]
|
|
151
|
-
},
|
|
152
|
-
"country": {
|
|
153
|
-
"description": "Country name of the address.",
|
|
154
|
-
"type": ["null", "string"]
|
|
155
|
-
},
|
|
156
|
-
"address2": {
|
|
157
|
-
"description": "Address line 2.",
|
|
158
|
-
"type": ["null", "string"]
|
|
159
|
-
},
|
|
160
|
-
"company": {
|
|
161
|
-
"description": "Company name associated with the address.",
|
|
162
|
-
"type": ["null", "string"]
|
|
163
|
-
},
|
|
164
|
-
"country_code": {
|
|
165
|
-
"description": "Country code of the address.",
|
|
166
|
-
"type": ["null", "string"]
|
|
167
|
-
},
|
|
168
|
-
"id": {
|
|
169
|
-
"description": "Unique identifier for the address.",
|
|
170
|
-
"type": ["null", "string"]
|
|
171
|
-
},
|
|
172
|
-
"last_name": {
|
|
173
|
-
"description": "Last name of the user associated with the address.",
|
|
174
|
-
"type": ["null", "string"]
|
|
175
|
-
},
|
|
176
|
-
"address1": {
|
|
177
|
-
"description": "Address line 1.",
|
|
178
|
-
"type": ["null", "string"]
|
|
179
|
-
},
|
|
180
|
-
"default": {
|
|
181
|
-
"description": "Indicates if this is the default address.",
|
|
182
|
-
"type": ["null", "boolean"]
|
|
183
|
-
},
|
|
184
|
-
"province": {
|
|
185
|
-
"description": "Province or state of the address.",
|
|
186
|
-
"type": ["null", "string"]
|
|
187
|
-
},
|
|
188
|
-
"province_code": {
|
|
189
|
-
"description": "Province or state code of the address.",
|
|
190
|
-
"type": ["null", "string"]
|
|
191
|
-
},
|
|
192
|
-
"country_name": {
|
|
193
|
-
"description": "Full name of the country.",
|
|
194
|
-
"type": ["null", "string"]
|
|
195
|
-
},
|
|
196
|
-
"phone": {
|
|
197
|
-
"description": "Contact phone number.",
|
|
198
|
-
"type": ["null", "string"]
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
"emailListIds": {
|
|
203
|
-
"description": "List of email list IDs subscribed by the user",
|
|
204
|
-
"type": ["null", "array"],
|
|
205
|
-
"items": {
|
|
206
|
-
"description": "IDs of the email lists associated with the user."
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
"accepts_marketing": {
|
|
210
|
-
"description": "Indicates whether the user has consented to receive marketing communications.",
|
|
211
|
-
"type": ["null", "boolean"]
|
|
212
|
-
},
|
|
213
|
-
"secondMostRecentOrderDate": {
|
|
214
|
-
"description": "Date and time of the second most recent order.",
|
|
215
|
-
"type": ["null", "string"],
|
|
216
|
-
"format": "date-time"
|
|
217
|
-
},
|
|
218
|
-
"state": {
|
|
219
|
-
"description": "State name.",
|
|
220
|
-
"type": ["null", "string"]
|
|
221
|
-
},
|
|
222
|
-
"mostRecentCampaign": {
|
|
223
|
-
"description": "Most recent campaign the user interacted with.",
|
|
224
|
-
"type": ["null", "string"]
|
|
225
|
-
},
|
|
226
|
-
"zip": {
|
|
227
|
-
"description": "Postal code or ZIP code.",
|
|
228
|
-
"type": ["null", "string"]
|
|
229
|
-
},
|
|
230
|
-
"total_spent": {
|
|
231
|
-
"description": "Total amount spent by the user.",
|
|
232
|
-
"type": ["null", "number"]
|
|
233
|
-
},
|
|
234
|
-
"mostRecentOrderDate": {
|
|
235
|
-
"description": "Date and time of the most recent order.",
|
|
236
|
-
"type": ["null", "string"],
|
|
237
|
-
"format": "date-time"
|
|
238
|
-
},
|
|
239
|
-
"last_order_id": {
|
|
240
|
-
"description": "ID of the user's last order.",
|
|
241
|
-
"type": ["null", "string"]
|
|
242
|
-
},
|
|
243
|
-
"tax_exempt": {
|
|
244
|
-
"description": "Indicates if the user is tax exempt.",
|
|
245
|
-
"type": ["null", "boolean"]
|
|
246
|
-
},
|
|
247
|
-
"mostRecentSource": {
|
|
248
|
-
"description": "Most recent source of user interaction.",
|
|
249
|
-
"type": ["null", "string"]
|
|
250
|
-
},
|
|
251
|
-
"twelveMonthLtr": {
|
|
252
|
-
"description": "Lifetime total revenue for the past twelve months.",
|
|
253
|
-
"type": ["null", "integer"]
|
|
254
|
-
},
|
|
255
|
-
"verified_email": {
|
|
256
|
-
"description": "Indicates if the user's email address is verified.",
|
|
257
|
-
"type": ["null", "boolean"]
|
|
258
|
-
},
|
|
259
|
-
"mostRecentMedium": {
|
|
260
|
-
"description": "Most recent medium of user interaction.",
|
|
261
|
-
"type": ["null", "string"]
|
|
262
|
-
},
|
|
263
|
-
"orders_count": {
|
|
264
|
-
"description": "Total number of orders made by the user.",
|
|
265
|
-
"type": ["null", "integer"]
|
|
266
|
-
},
|
|
267
|
-
"firstName": {
|
|
268
|
-
"description": "User's first name.",
|
|
269
|
-
"type": ["null", "string"]
|
|
270
|
-
},
|
|
271
|
-
"lastInteractionTs": {
|
|
272
|
-
"description": "Date and time of the last interaction with the user.",
|
|
273
|
-
"type": ["null", "string"],
|
|
274
|
-
"format": "date-time"
|
|
275
|
-
},
|
|
276
|
-
"boughtSas": {
|
|
277
|
-
"description": "Indicates if the user has purchased a specific product or service.",
|
|
278
|
-
"type": ["null", "boolean"]
|
|
279
|
-
},
|
|
280
|
-
"secondMostRecentOrderCards": {
|
|
281
|
-
"description": "Details of the second most recent order cards related to the user",
|
|
282
|
-
"type": ["null", "array"],
|
|
283
|
-
"items": {
|
|
284
|
-
"description": "Details of the second most recent order cards."
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
"unsubscribedChannelIds": {
|
|
288
|
-
"description": "List of channel IDs the user has unsubscribed from",
|
|
289
|
-
"type": ["null", "array"],
|
|
290
|
-
"items": {
|
|
291
|
-
"description": "IDs of the channels from which the user unsubscribed."
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
"lastName": {
|
|
295
|
-
"description": "User's last name.",
|
|
296
|
-
"type": ["null", "string"]
|
|
297
|
-
},
|
|
298
|
-
"last_order_name": {
|
|
299
|
-
"description": "Name of the user's last order.",
|
|
300
|
-
"type": ["null", "string"]
|
|
301
|
-
},
|
|
302
|
-
"secondOrderDate": {
|
|
303
|
-
"description": "Date and time of the second order.",
|
|
304
|
-
"type": ["null", "string"],
|
|
305
|
-
"format": "date-time"
|
|
306
|
-
},
|
|
307
|
-
"hasAccount": {
|
|
308
|
-
"description": "Indicates if the user has an account.",
|
|
309
|
-
"type": ["null", "boolean"]
|
|
310
|
-
},
|
|
311
|
-
"city": {
|
|
312
|
-
"description": "City name.",
|
|
313
|
-
"type": ["null", "string"]
|
|
314
|
-
},
|
|
315
|
-
"mostRecentOrderCards": {
|
|
316
|
-
"description": "Details of the most recent order cards related to the user",
|
|
317
|
-
"type": ["null", "array"],
|
|
318
|
-
"items": {
|
|
319
|
-
"description": "Details of the most recent order cards."
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
"itblInternal": {
|
|
323
|
-
"description": "Internal details specific to the platform",
|
|
324
|
-
"type": ["null", "object"],
|
|
325
|
-
"properties": {
|
|
326
|
-
"emailDomain": {
|
|
327
|
-
"description": "Domain of the user's email address.",
|
|
328
|
-
"type": ["null", "string"]
|
|
329
|
-
},
|
|
330
|
-
"documentUpdatedAt": {
|
|
331
|
-
"description": "Date and time when the document was last updated.",
|
|
332
|
-
"type": ["null", "string"],
|
|
333
|
-
"format": "date-time"
|
|
334
|
-
},
|
|
335
|
-
"documentCreatedAt": {
|
|
336
|
-
"description": "Date and time when the document was created.",
|
|
337
|
-
"type": ["null", "string"],
|
|
338
|
-
"format": "date-time"
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
"hasReminder": {
|
|
343
|
-
"description": "Indicates if the user has set a reminder.",
|
|
344
|
-
"type": ["null", "boolean"]
|
|
345
|
-
},
|
|
346
|
-
"thirdOrderDate": {
|
|
347
|
-
"description": "Date and time of the third order.",
|
|
348
|
-
"type": ["null", "string"],
|
|
349
|
-
"format": "date-time"
|
|
350
|
-
},
|
|
351
|
-
"subscribedMessageTypeIds": {
|
|
352
|
-
"description": "List of message type IDs user has subscribed to",
|
|
353
|
-
"type": ["null", "array"],
|
|
354
|
-
"items": {
|
|
355
|
-
"description": "IDs of the message types the user is subscribed to."
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
"firstSource": {
|
|
359
|
-
"description": "First source of user interaction.",
|
|
360
|
-
"type": ["null", "string"]
|
|
361
|
-
},
|
|
362
|
-
"unsubscribedMessageTypeIds": {
|
|
363
|
-
"description": "List of message type IDs the user has unsubscribed from",
|
|
364
|
-
"type": ["null", "array"],
|
|
365
|
-
"items": {
|
|
366
|
-
"description": "IDs of the message types from which the user unsubscribed."
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
"first_name": {
|
|
370
|
-
"description": "User's first name.",
|
|
371
|
-
"type": ["null", "string"]
|
|
372
|
-
},
|
|
373
|
-
"email": {
|
|
374
|
-
"description": "User's email address.",
|
|
375
|
-
"type": ["null", "string"]
|
|
376
|
-
},
|
|
377
|
-
"thirdMostRecentOrderCards": {
|
|
378
|
-
"description": "Details of the third most recent order cards related to the user",
|
|
379
|
-
"type": ["null", "array"],
|
|
380
|
-
"items": {
|
|
381
|
-
"description": "Details of the third most recent order cards."
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
"profileUpdatedAt": {
|
|
385
|
-
"description": "Date and time when the profile was last updated.",
|
|
386
|
-
"type": ["null", "string"],
|
|
387
|
-
"format": "date-time"
|
|
388
|
-
},
|
|
389
|
-
"signupDate": {
|
|
390
|
-
"description": "Date and time when the user signed up.",
|
|
391
|
-
"type": ["null", "string"],
|
|
392
|
-
"format": "date-time"
|
|
393
|
-
},
|
|
394
|
-
"businessLines": {
|
|
395
|
-
"description": "List of business lines the user is associated with",
|
|
396
|
-
"type": ["null", "array"],
|
|
397
|
-
"items": {
|
|
398
|
-
"description": "Business lines associated with the user."
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
"secondOrderCards": {
|
|
402
|
-
"description": "Details of the second order cards related to the user",
|
|
403
|
-
"type": ["null", "array"],
|
|
404
|
-
"items": {
|
|
405
|
-
"description": "Details of the second order cards."
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
"address1": {
|
|
409
|
-
"description": "Primary address line of the user.",
|
|
410
|
-
"type": ["null", "string"]
|
|
411
|
-
},
|
|
412
|
-
"last_name": {
|
|
413
|
-
"description": "User's last name.",
|
|
414
|
-
"type": ["null", "string"]
|
|
415
|
-
},
|
|
416
|
-
"ltr": {
|
|
417
|
-
"description": "Lifetime total revenue.",
|
|
418
|
-
"type": ["null", "integer"]
|
|
419
|
-
},
|
|
420
|
-
"userId": {
|
|
421
|
-
"description": "User's unique identifier.",
|
|
422
|
-
"type": ["null", "string"]
|
|
423
|
-
},
|
|
424
|
-
"shopify_created_at": {
|
|
425
|
-
"description": "Date and time when the user was created in Shopify.",
|
|
426
|
-
"type": ["null", "string"],
|
|
427
|
-
"format": "date-time"
|
|
428
|
-
},
|
|
429
|
-
"signupSource": {
|
|
430
|
-
"description": "Source through which the user signed up.",
|
|
431
|
-
"type": ["null", "string"]
|
|
432
|
-
},
|
|
433
|
-
"thirdOrderCards": {
|
|
434
|
-
"description": "Details of the third order cards related to the user",
|
|
435
|
-
"type": ["null", "array"],
|
|
436
|
-
"items": {
|
|
437
|
-
"description": "Details of the third order cards."
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
"firstOrderCards": {
|
|
441
|
-
"description": "Details of the first order cards related to the user",
|
|
442
|
-
"type": ["null", "array"],
|
|
443
|
-
"items": {
|
|
444
|
-
"description": "Details of the first order cards."
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
"totalOrders": {
|
|
448
|
-
"description": "Total number of orders made by the user.",
|
|
449
|
-
"type": ["null", "integer"]
|
|
450
|
-
},
|
|
451
|
-
"shopify_updated_at": {
|
|
452
|
-
"description": "Date and time when the user was last updated in Shopify.",
|
|
453
|
-
"type": ["null", "string"],
|
|
454
|
-
"format": "date-time"
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
"type": ["null", "object"]
|
|
458
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/events.json
RENAMED
|
File without changes
|
|
File without changes
|
{airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/schemas/lists.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{airbyte_source_iterable-0.7.2 → airbyte_source_iterable-1.0.1}/source_iterable/slice_generators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|