Skip to content

Commit

Permalink
feat: use latest api version for klaviyo (#190)
Browse files Browse the repository at this point in the history
* 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
am6010 committed Jul 4, 2024
1 parent db8de24 commit ac66d0c
Show file tree
Hide file tree
Showing 12 changed files with 1,093 additions and 182 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-klaviyo/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from setuptools import find_packages, setup

MAIN_REQUIREMENTS = ["airbyte-cdk~=0.1"]
MAIN_REQUIREMENTS = ["airbyte-cdk==0.67"]

TEST_REQUIREMENTS = ["pytest~=6.1", "pytest-mock", "connector-acceptance-test", "requests_mock~=1.8"]

Expand Down
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" }
}
}
}
}
}
}
}
}
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"
}
}
}
}
}
}
Loading

0 comments on commit ac66d0c

Please sign in to comment.