Skip to content

Commit 72ee783

Browse files
authored
Source Klaviyo: Add missing fields to stream schemas (#34998)
1 parent 623d481 commit 72ee783

File tree

12 files changed

+560
-62
lines changed

12 files changed

+560
-62
lines changed

airbyte-integrations/connectors/source-klaviyo/integration_tests/expected_records.jsonl

Lines changed: 6 additions & 29 deletions
Large diffs are not rendered by default.

airbyte-integrations/connectors/source-klaviyo/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ data:
88
definitionId: 95e8cffd-b8c4-4039-968e-d32fb4a69bde
99
connectorBuildOptions:
1010
baseImage: docker.io/airbyte/python-connector-base:1.1.0@sha256:bd98f6505c6764b1b5f99d3aedc23dfc9e9af631a62533f60eb32b1d3dbab20c
11-
dockerImageTag: 2.1.0
11+
dockerImageTag: 2.1.1
1212
dockerRepository: airbyte/source-klaviyo
1313
githubIssueLabel: source-klaviyo
1414
icon: klaviyo.svg

airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/campaigns.json

Lines changed: 96 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
23
"type": "object",
34
"additionalProperties": true,
45
"properties": {
@@ -15,22 +16,84 @@
1516
"channel": { "type": "string" },
1617
"audiences": {
1718
"type": ["null", "object"],
18-
"additionalProperties": true
19+
"additionalProperties": true,
20+
"included": {
21+
"type": ["null", "array"],
22+
"items": {
23+
"type": ["null", "string"]
24+
}
25+
},
26+
"excluded": {
27+
"type": ["null", "array"],
28+
"items": {
29+
"type": ["null", "string"]
30+
}
31+
}
1932
},
2033
"send_options": {
2134
"type": ["null", "object"],
2235
"properties": {
23-
"use_smart_sending": { "type": "boolean" }
36+
"ignore_unsubscribes": { "type": ["null", "boolean"] },
37+
"use_smart_sending": { "type": ["null", "boolean"] }
2438
}
2539
},
2640
"message": { "type": "string" },
2741
"tracking_options": {
2842
"type": ["null", "object"],
29-
"additionalProperties": true
43+
"additionalProperties": true,
44+
"properties": {
45+
"is_tracking_opens": { "type": ["null", "boolean"] },
46+
"is_tracking_clicks": { "type": ["null", "boolean"] },
47+
"is_add_utm": { "type": ["null", "boolean"] },
48+
"utm_params": {
49+
"type": ["null", "array"],
50+
"items": {
51+
"type": ["null", "object"],
52+
"properties": {
53+
"name": { "type": "string" },
54+
"value": { "type": "string" }
55+
}
56+
}
57+
}
58+
}
3059
},
3160
"send_strategy": {
3261
"type": ["null", "object"],
33-
"additionalProperties": true
62+
"additionalProperties": true,
63+
"properties": {
64+
"method": { "type": "string" },
65+
"options_static": {
66+
"type": ["null", "object"],
67+
"properties": {
68+
"datetime": {
69+
"type": "string",
70+
"format": "date-time",
71+
"airbyte_type": "timestamp_without_timezone"
72+
},
73+
"is_local": { "type": ["null", "boolean"] },
74+
"send_past_recipients_immediately": {
75+
"type": ["null", "boolean"]
76+
}
77+
}
78+
},
79+
"options_throttled": {
80+
"type": ["null", "object"],
81+
"properties": {
82+
"datetime": {
83+
"type": "string",
84+
"format": "date-time",
85+
"airbyte_type": "timestamp_without_timezone"
86+
},
87+
"throttle_percentage": { "type": "integer" }
88+
}
89+
},
90+
"options_sto": {
91+
"type": ["null", "object"],
92+
"properties": {
93+
"date": { "type": "string", "format": "date" }
94+
}
95+
}
96+
}
3497
},
3598
"created_at": { "type": ["null", "string"], "format": "date-time" },
3699
"scheduled_at": { "type": ["null", "string"], "format": "date-time" },
@@ -40,11 +103,38 @@
40103
},
41104
"links": {
42105
"type": ["null", "object"],
43-
"additionalProperties": true
106+
"additionalProperties": true,
107+
"properties": {
108+
"self": { "type": "string" }
109+
}
44110
},
45111
"relationships": {
46112
"type": ["null", "object"],
47-
"additionalProperties": true
113+
"additionalProperties": true,
114+
"properties": {
115+
"tags": {
116+
"type": ["null", "object"],
117+
"properties": {
118+
"data": {
119+
"type": "array",
120+
"items": {
121+
"type": ["null", "object"],
122+
"properties": {
123+
"type": { "type": "string" },
124+
"id": { "type": "string" }
125+
}
126+
}
127+
},
128+
"links": {
129+
"type": ["null", "object"],
130+
"properties": {
131+
"self": { "type": "string" },
132+
"related": { "type": "string" }
133+
}
134+
}
135+
}
136+
}
137+
}
48138
}
49139
}
50140
}

airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/email_templates.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
23
"type": "object",
34
"additionalProperties": true,
45
"properties": {
@@ -20,7 +21,10 @@
2021
},
2122
"links": {
2223
"type": ["null", "object"],
23-
"additionalProperties": true
24+
"additionalProperties": true,
25+
"properties": {
26+
"self": { "type": "string" }
27+
}
2428
}
2529
}
2630
}

airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/events.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
23
"type": "object",
34
"additionalProperties": true,
45
"properties": {
@@ -38,7 +39,15 @@
3839
},
3940
"links": {
4041
"type": ["null", "object"],
41-
"additionalProperties": true
42+
"additionalProperties": true,
43+
"properties": {
44+
"self": {
45+
"type": "string"
46+
},
47+
"related": {
48+
"type": "string"
49+
}
50+
}
4251
}
4352
}
4453
},
@@ -54,7 +63,15 @@
5463
},
5564
"links": {
5665
"type": ["null", "object"],
57-
"additionalProperties": true
66+
"additionalProperties": true,
67+
"properties": {
68+
"self": {
69+
"type": "string"
70+
},
71+
"related": {
72+
"type": "string"
73+
}
74+
}
5875
}
5976
}
6077
}

airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/flows.json

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
23
"type": "object",
34
"additionalProperties": true,
45
"properties": {
@@ -19,11 +20,61 @@
1920
},
2021
"links": {
2122
"type": ["null", "object"],
22-
"additionalProperties": true
23+
"additionalProperties": true,
24+
"properties": {
25+
"self": { "type": "string" }
26+
}
2327
},
2428
"relationships": {
2529
"type": ["null", "object"],
26-
"additionalProperties": true
30+
"additionalProperties": true,
31+
"properties": {
32+
"flow-actions": {
33+
"type": ["null", "object"],
34+
"properties": {
35+
"data": {
36+
"type": "array",
37+
"items": {
38+
"type": ["null", "object"],
39+
"additionalProperties": true,
40+
"properties": {
41+
"type": { "type": "string" },
42+
"id": { "type": "string" }
43+
}
44+
}
45+
},
46+
"links": {
47+
"type": ["null", "object"],
48+
"properties": {
49+
"self": { "type": "string" },
50+
"related": { "type": "string" }
51+
}
52+
}
53+
}
54+
},
55+
"tags": {
56+
"type": ["null", "object"],
57+
"properties": {
58+
"data": {
59+
"type": "array",
60+
"items": {
61+
"type": ["null", "object"],
62+
"properties": {
63+
"type": { "type": "string" },
64+
"id": { "type": "string" }
65+
}
66+
}
67+
},
68+
"links": {
69+
"type": ["null", "object"],
70+
"properties": {
71+
"self": { "type": "string" },
72+
"related": { "type": "string" }
73+
}
74+
}
75+
}
76+
}
77+
}
2778
}
2879
}
2980
}

0 commit comments

Comments
 (0)