forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use latest api version for klaviyo (#190)
* feat: klaviyo v2 - campaigns - flows * feat: klaviyo v2 - events - lists * feat: klaviyo v2 - metrics * feat: klaviyo v2 - profiles - global_exclusions - email_templates * feat: klaviyo v2 - segments - segments profiles * feat: klaviyo v2 - add subscriptions for profiles and global exclusions * feat: klaviyo v2 - fix global_exclusions stream * feat: klaviyo v2 - fix flows archive issue
- Loading branch information
Showing
12 changed files
with
1,093 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
175 changes: 130 additions & 45 deletions
175
airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/campaigns.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,140 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"object": { "type": "string" }, | ||
"type": { "type": "string" }, | ||
"id": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"created": { "type": ["null", "string"], "format": "date-time" }, | ||
"updated": { "type": ["null", "string"], "format": "date-time" }, | ||
"status": { "type": "string" }, | ||
"status_id": { "type": "integer" }, | ||
"status_label": { "type": "string" }, | ||
"from_name": { "type": "string" }, | ||
"from_email": { "type": "string" }, | ||
"num_recipients": { "type": "integer" }, | ||
"lists": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"object": { "type": "string" }, | ||
"id": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"created": { "type": "string", "format": "date-time" }, | ||
"updated": { "type": "string", "format": "date-time" }, | ||
"person_count": { "type": "integer" }, | ||
"list_type": { "type": "string" }, | ||
"folder": { "type": ["null", "string"] } | ||
} | ||
"updated_at": { "type": ["null", "string"], "format": "date-time" }, | ||
"attributes": { | ||
"type": ["null", "object"], | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { "type": "string" }, | ||
"status": { "type": "string" }, | ||
"archived": { "type": "boolean" }, | ||
"channel": { "type": "string" }, | ||
"audiences": { | ||
"type": ["null", "object"], | ||
"additionalProperties": true, | ||
"properties": { | ||
"included": { | ||
"type": ["null", "array"], | ||
"items": { | ||
"type": ["null", "string"] | ||
} | ||
}, | ||
"excluded": { | ||
"type": ["null", "array"], | ||
"items": { | ||
"type": ["null", "string"] | ||
} | ||
} | ||
} | ||
}, | ||
"send_options": { | ||
"type": ["null", "object"], | ||
"properties": { | ||
"ignore_unsubscribes": { "type": ["null", "boolean"] }, | ||
"use_smart_sending": { "type": ["null", "boolean"] } | ||
} | ||
}, | ||
"message": { "type": "string" }, | ||
"tracking_options": { | ||
"type": ["null", "object"], | ||
"additionalProperties": true, | ||
"properties": { | ||
"is_tracking_opens": { "type": ["null", "boolean"] }, | ||
"is_tracking_clicks": { "type": ["null", "boolean"] }, | ||
"is_add_utm": { "type": ["null", "boolean"] }, | ||
"utm_params": { | ||
"type": ["null", "array"], | ||
"items": { | ||
"type": ["null", "object"], | ||
"properties": { | ||
"name": { "type": "string" }, | ||
"value": { "type": "string" } | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"send_strategy": { | ||
"type": ["null", "object"], | ||
"additionalProperties": true, | ||
"properties": { | ||
"method": { "type": "string" }, | ||
"options_static": { | ||
"type": ["null", "object"], | ||
"properties": { | ||
"datetime": { | ||
"type": "string", | ||
"format": "date-time", | ||
"airbyte_type": "timestamp_without_timezone" | ||
}, | ||
"is_local": { "type": ["null", "boolean"] }, | ||
"send_past_recipients_immediately": { | ||
"type": ["null", "boolean"] | ||
} | ||
} | ||
}, | ||
"options_throttled": { | ||
"type": ["null", "object"], | ||
"properties": { | ||
"datetime": { | ||
"type": "string", | ||
"format": "date-time", | ||
"airbyte_type": "timestamp_without_timezone" | ||
}, | ||
"throttle_percentage": { "type": "integer" } | ||
} | ||
}, | ||
"options_sto": { | ||
"type": ["null", "object"], | ||
"properties": { | ||
"date": { "type": "string", "format": "date" } | ||
} | ||
} | ||
} | ||
}, | ||
"created_at": { "type": ["null", "string"], "format": "date-time" }, | ||
"scheduled_at": { "type": ["null", "string"], "format": "date-time" }, | ||
"updated_at": { "type": ["null", "string"], "format": "date-time" }, | ||
"send_time": { "type": ["null", "string"], "format": "date-time" } | ||
} | ||
}, | ||
"excluded_lists": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"object": { "type": "string" }, | ||
"id": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"created": { "type": "string", "format": "date-time" }, | ||
"updated": { "type": "string", "format": "date-time" }, | ||
"person_count": { "type": "integer" }, | ||
"list_type": { "type": "string" }, | ||
"folder": { "type": ["null", "string"] } | ||
} | ||
"links": { | ||
"type": ["null", "object"], | ||
"additionalProperties": true, | ||
"properties": { | ||
"self": { "type": "string" } | ||
} | ||
}, | ||
"is_segmented": { "type": "boolean" }, | ||
"send_time": { "type": ["null", "string"], "format": "date-time" }, | ||
"sent_at": { "type": ["null", "string"], "format": "date-time" }, | ||
"campaign_type": { "type": "string" }, | ||
"subject": { "type": ["null", "string"] }, | ||
"message_type": { "type": "string" }, | ||
"template_id": { "type": ["null", "string"] } | ||
"relationships": { | ||
"type": ["null", "object"], | ||
"additionalProperties": true, | ||
"properties": { | ||
"tags": { | ||
"type": ["null", "object"], | ||
"properties": { | ||
"data": { | ||
"type": "array", | ||
"items": { | ||
"type": ["null", "object"], | ||
"properties": { | ||
"type": { "type": "string" }, | ||
"id": { "type": "string" } | ||
} | ||
} | ||
}, | ||
"links": { | ||
"type": ["null", "object"], | ||
"properties": { | ||
"self": { "type": "string" }, | ||
"related": { "type": "string" } | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
90 changes: 71 additions & 19 deletions
90
airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/email_templates.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,79 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"object": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"updated": { | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"format": "date-time" | ||
}, | ||
"attributes": { | ||
"type": [ | ||
"null", | ||
"object" | ||
], | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"id": { | ||
}, | ||
"editor_type": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"html": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": ["null", "string"] | ||
}, | ||
"html": { | ||
"type": ["null", "string"] | ||
}, | ||
"is_writeable": { | ||
"type": ["null", "boolean"] | ||
}, | ||
"created": { | ||
"type": "string", "format": "date-time" | ||
}, | ||
"updated": { | ||
"type": "string", "format": "date-time" | ||
}, | ||
"text": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"created": { | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"format": "date-time" | ||
}, | ||
"updated": { | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"format": "date-time" | ||
}, | ||
"company_id": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
} | ||
} | ||
}, | ||
"links": { | ||
"type": [ | ||
"null", | ||
"object" | ||
], | ||
"additionalProperties": true, | ||
"properties": { | ||
"self": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.