diff --git a/source-klaviyo/acmeCo/campaigns.schema.yaml b/source-klaviyo/acmeCo/campaigns.schema.yaml deleted file mode 100644 index 0bb30547bb..0000000000 --- a/source-klaviyo/acmeCo/campaigns.schema.yaml +++ /dev/null @@ -1,206 +0,0 @@ ---- -$schema: "http://json-schema.org/draft-07/schema#" -type: object -additionalProperties: true -required: - - id -properties: - type: - type: string - id: - type: 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 - is_local: - type: - - "null" - - boolean - send_past_recipients_immediately: - type: - - "null" - - boolean - options_throttled: - type: - - "null" - - object - properties: - datetime: - type: string - format: date-time - 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 - links: - type: - - "null" - - object - additionalProperties: true - properties: - self: - type: 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 - _meta: - type: object - properties: - row_id: - type: integer - required: - - row_id diff --git a/source-klaviyo/acmeCo/email_templates.schema.yaml b/source-klaviyo/acmeCo/email_templates.schema.yaml deleted file mode 100644 index ab931a6253..0000000000 --- a/source-klaviyo/acmeCo/email_templates.schema.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -$schema: "http://json-schema.org/draft-07/schema#" -type: object -additionalProperties: true -required: - - id -properties: - type: - type: string - id: - type: string - updated: - type: - - "null" - - string - format: date-time - attributes: - type: - - "null" - - object - additionalProperties: true - properties: - name: - type: string - editor_type: - type: - - "null" - - string - html: - type: string - 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 - _meta: - type: object - properties: - row_id: - type: integer - required: - - row_id diff --git a/source-klaviyo/acmeCo/events.schema.yaml b/source-klaviyo/acmeCo/events.schema.yaml deleted file mode 100644 index c1581de94f..0000000000 --- a/source-klaviyo/acmeCo/events.schema.yaml +++ /dev/null @@ -1,102 +0,0 @@ ---- -$schema: "http://json-schema.org/draft-07/schema#" -type: object -additionalProperties: true -required: - - id -properties: - type: - type: string - id: - type: string - datetime: - type: string - format: date-time - campaign_id: - type: - - "null" - - string - attributes: - type: - - "null" - - object - properties: - timestamp: - type: integer - event_properties: - type: - - "null" - - object - additionalProperties: true - datetime: - type: string - format: date-time - uuid: - type: string - links: - type: - - "null" - - object - properties: - self: - type: string - relationships: - type: - - "null" - - object - properties: - profile: - type: - - "null" - - object - properties: - data: - type: - - "null" - - object - properties: - type: - type: string - id: - type: string - links: - type: - - "null" - - object - additionalProperties: true - properties: - self: - type: string - related: - type: string - metric: - type: - - "null" - - object - properties: - data: - type: - - "null" - - object - properties: - type: - type: string - id: - type: string - links: - type: - - "null" - - object - additionalProperties: true - properties: - self: - type: string - related: - type: string - _meta: - type: object - properties: - row_id: - type: integer - required: - - row_id diff --git a/source-klaviyo/acmeCo/flow.yaml b/source-klaviyo/acmeCo/flow.yaml index 109522407d..70273deefa 100644 --- a/source-klaviyo/acmeCo/flow.yaml +++ b/source-klaviyo/acmeCo/flow.yaml @@ -1,34 +1,162 @@ --- collections: acmeCo/campaigns: - schema: campaigns.schema.yaml + schema: + $schema: "http://json-schema.org/draft-07/schema#" + type: object + additionalProperties: true + required: + - id + properties: + id: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true key: - /id acmeCo/email_templates: - schema: email_templates.schema.yaml + schema: + $schema: "http://json-schema.org/draft-07/schema#" + type: object + additionalProperties: true + required: + - id + properties: + id: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true key: - /id acmeCo/events: - schema: events.schema.yaml + schema: + $schema: "http://json-schema.org/draft-07/schema#" + type: object + additionalProperties: true + required: + - id + properties: + id: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true key: - /id acmeCo/flows: - schema: flows.schema.yaml + schema: + $schema: "http://json-schema.org/draft-07/schema#" + type: object + additionalProperties: true + required: + - id + properties: + id: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true key: - /id acmeCo/global_exclusions: - schema: global_exclusions.schema.yaml + schema: + $schema: "http://json-schema.org/draft-07/schema#" + type: object + additionalProperties: true + required: + - id + properties: + id: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true key: - /id acmeCo/lists: - schema: lists.schema.yaml + schema: + $schema: "http://json-schema.org/draft-07/schema#" + type: object + additionalProperties: true + required: + - id + properties: + id: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true key: - /id acmeCo/metrics: - schema: metrics.schema.yaml + schema: + $schema: "http://json-schema.org/draft-07/schema#" + type: object + additionalProperties: true + required: + - id + properties: + id: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true key: - /id acmeCo/profiles: - schema: profiles.schema.yaml + schema: + $schema: "http://json-schema.org/draft-07/schema#" + type: object + additionalProperties: true + required: + - id + properties: + id: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true key: - /id diff --git a/source-klaviyo/acmeCo/flows.schema.yaml b/source-klaviyo/acmeCo/flows.schema.yaml deleted file mode 100644 index 2c719c416b..0000000000 --- a/source-klaviyo/acmeCo/flows.schema.yaml +++ /dev/null @@ -1,106 +0,0 @@ ---- -$schema: "http://json-schema.org/draft-07/schema#" -type: object -additionalProperties: true -required: - - id -properties: - type: - type: string - id: - type: string - updated: - type: string - format: date-time - attributes: - type: - - "null" - - object - additionalProperties: true - properties: - name: - type: string - status: - type: string - archived: - type: boolean - created: - type: string - format: date-time - updated: - type: string - format: date-time - trigger_type: - type: string - links: - type: - - "null" - - object - additionalProperties: true - properties: - self: - type: string - relationships: - type: - - "null" - - object - additionalProperties: true - properties: - flow-actions: - type: - - "null" - - object - properties: - data: - type: array - items: - type: - - "null" - - object - additionalProperties: true - properties: - type: - type: string - id: - type: string - links: - type: - - "null" - - object - properties: - self: - type: string - related: - type: string - 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 - _meta: - type: object - properties: - row_id: - type: integer - required: - - row_id diff --git a/source-klaviyo/acmeCo/global_exclusions.schema.yaml b/source-klaviyo/acmeCo/global_exclusions.schema.yaml deleted file mode 100644 index bded43be01..0000000000 --- a/source-klaviyo/acmeCo/global_exclusions.schema.yaml +++ /dev/null @@ -1,345 +0,0 @@ ---- -$schema: "http://json-schema.org/draft-07/schema#" -type: object -additionalProperties: true -required: - - id -properties: - type: - type: - - "null" - - string - id: - type: string - updated: - type: - - "null" - - string - format: date-time - attributes: - type: - - "null" - - object - additionalProperties: true - properties: - email: - type: - - "null" - - string - phone_number: - type: - - "null" - - string - anonymous_id: - type: - - "null" - - string - external_id: - type: - - "null" - - string - first_name: - type: - - "null" - - string - last_name: - type: - - "null" - - string - organization: - type: - - "null" - - string - title: - type: - - "null" - - string - image: - type: - - "null" - - string - created: - type: - - "null" - - string - format: date-time - updated: - type: - - "null" - - string - format: date-time - last_event_date: - type: - - "null" - - string - format: date-time - location: - type: - - "null" - - object - properties: - address1: - type: - - "null" - - string - address2: - type: - - "null" - - string - city: - type: - - "null" - - string - country: - type: - - "null" - - string - latitude: - oneOf: - - type: "null" - - type: number - - type: string - longitude: - oneOf: - - type: "null" - - type: number - - type: string - region: - type: - - "null" - - string - zip: - type: - - "null" - - string - timezone: - type: - - "null" - - string - ip: - type: - - "null" - - string - properties: - type: - - "null" - - object - additionalProperties: true - subscriptions: - type: - - "null" - - object - properties: - email: - type: - - "null" - - object - properties: - marketing: - type: - - "null" - - object - properties: - can_receive_email_marketing: - type: boolean - consent: - type: string - timestamp: - type: - - "null" - - string - format: date-time - last_updated: - type: - - "null" - - string - format: date-time - method: - type: - - "null" - - string - method_detail: - type: - - "null" - - string - custom_method_detail: - type: - - "null" - - string - double_optin: - type: - - "null" - - boolean - suppressions: - type: - - "null" - - array - items: - type: - - "null" - - object - properties: - reason: - type: string - timestamp: - type: string - format: date-time - list_suppressions: - type: - - "null" - - array - items: - type: - - "null" - - object - properties: - list_id: - type: string - reason: - type: string - timestamp: - type: string - format: date-time - sms: - type: - - "null" - - object - properties: - marketing: - type: - - "null" - - object - properties: - can_receive_sms_marketing: - type: - - "null" - - boolean - consent: - type: - - "null" - - string - consent_timestamp: - type: - - "null" - - string - format: date-time - method: - type: - - "null" - - string - method_detail: - type: - - "null" - - string - last_updated: - type: - - "null" - - string - format: date-time - timestamp: - type: - - "null" - - string - format: date-time - predictive_analytics: - type: - - "null" - - object - properties: - historic_clv: - type: - - "null" - - number - predicted_clv: - type: - - "null" - - number - total_clv: - type: - - "null" - - number - historic_number_of_orders: - type: - - "null" - - integer - predicted_number_of_orders: - type: - - "null" - - number - average_days_between_orders: - type: - - "null" - - number - average_order_value: - type: - - "null" - - number - churn_probability: - type: - - "null" - - number - expected_date_of_next_order: - type: - - "null" - - string - links: - type: - - "null" - - object - properties: - self: - type: - - "null" - - string - relationships: - type: - - "null" - - object - properties: - lists: - type: - - "null" - - object - properties: - links: - type: - - "null" - - object - properties: - self: - type: - - "null" - - string - related: - type: - - "null" - - string - segments: - type: - - "null" - - object - properties: - links: - type: - - "null" - - object - properties: - self: - type: - - "null" - - string - related: - type: - - "null" - - string - segments: - type: - - "null" - - object - _meta: - type: object - properties: - row_id: - type: integer - required: - - row_id diff --git a/source-klaviyo/acmeCo/lists.schema.yaml b/source-klaviyo/acmeCo/lists.schema.yaml deleted file mode 100644 index 0eaa2003d1..0000000000 --- a/source-klaviyo/acmeCo/lists.schema.yaml +++ /dev/null @@ -1,97 +0,0 @@ ---- -$schema: "http://json-schema.org/draft-07/schema#" -type: object -additionalProperties: true -required: - - id -properties: - type: - type: string - id: - type: string - updated: - type: - - "null" - - string - format: date-time - attributes: - type: - - "null" - - object - properties: - name: - type: string - created: - type: - - "null" - - string - format: date-time - updated: - type: - - "null" - - string - format: date-time - opt_in_process: - type: - - "null" - - string - links: - type: - - "null" - - object - additionalProperties: true - properties: - self: - type: string - relationships: - type: - - "null" - - object - additionalProperties: true - properties: - profiles: - type: - - "null" - - object - properties: - links: - type: - - "null" - - object - properties: - self: - type: string - related: - type: string - 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 - _meta: - type: object - properties: - row_id: - type: integer - required: - - row_id diff --git a/source-klaviyo/acmeCo/metrics.schema.yaml b/source-klaviyo/acmeCo/metrics.schema.yaml deleted file mode 100644 index 133393a1e9..0000000000 --- a/source-klaviyo/acmeCo/metrics.schema.yaml +++ /dev/null @@ -1,47 +0,0 @@ ---- -$schema: "http://json-schema.org/draft-07/schema#" -type: object -additionalProperties: true -required: - - id -properties: - type: - type: string - id: - type: string - updated: - type: string - format: date-time - attributes: - type: - - "null" - - object - properties: - name: - type: string - created: - type: string - format: date-time - updated: - type: string - format: date-time - integration: - type: - - "null" - - object - additionalProperties: true - links: - type: - - "null" - - object - additionalProperties: true - properties: - self: - type: string - _meta: - type: object - properties: - row_id: - type: integer - required: - - row_id diff --git a/source-klaviyo/acmeCo/profiles.schema.yaml b/source-klaviyo/acmeCo/profiles.schema.yaml deleted file mode 100644 index bded43be01..0000000000 --- a/source-klaviyo/acmeCo/profiles.schema.yaml +++ /dev/null @@ -1,345 +0,0 @@ ---- -$schema: "http://json-schema.org/draft-07/schema#" -type: object -additionalProperties: true -required: - - id -properties: - type: - type: - - "null" - - string - id: - type: string - updated: - type: - - "null" - - string - format: date-time - attributes: - type: - - "null" - - object - additionalProperties: true - properties: - email: - type: - - "null" - - string - phone_number: - type: - - "null" - - string - anonymous_id: - type: - - "null" - - string - external_id: - type: - - "null" - - string - first_name: - type: - - "null" - - string - last_name: - type: - - "null" - - string - organization: - type: - - "null" - - string - title: - type: - - "null" - - string - image: - type: - - "null" - - string - created: - type: - - "null" - - string - format: date-time - updated: - type: - - "null" - - string - format: date-time - last_event_date: - type: - - "null" - - string - format: date-time - location: - type: - - "null" - - object - properties: - address1: - type: - - "null" - - string - address2: - type: - - "null" - - string - city: - type: - - "null" - - string - country: - type: - - "null" - - string - latitude: - oneOf: - - type: "null" - - type: number - - type: string - longitude: - oneOf: - - type: "null" - - type: number - - type: string - region: - type: - - "null" - - string - zip: - type: - - "null" - - string - timezone: - type: - - "null" - - string - ip: - type: - - "null" - - string - properties: - type: - - "null" - - object - additionalProperties: true - subscriptions: - type: - - "null" - - object - properties: - email: - type: - - "null" - - object - properties: - marketing: - type: - - "null" - - object - properties: - can_receive_email_marketing: - type: boolean - consent: - type: string - timestamp: - type: - - "null" - - string - format: date-time - last_updated: - type: - - "null" - - string - format: date-time - method: - type: - - "null" - - string - method_detail: - type: - - "null" - - string - custom_method_detail: - type: - - "null" - - string - double_optin: - type: - - "null" - - boolean - suppressions: - type: - - "null" - - array - items: - type: - - "null" - - object - properties: - reason: - type: string - timestamp: - type: string - format: date-time - list_suppressions: - type: - - "null" - - array - items: - type: - - "null" - - object - properties: - list_id: - type: string - reason: - type: string - timestamp: - type: string - format: date-time - sms: - type: - - "null" - - object - properties: - marketing: - type: - - "null" - - object - properties: - can_receive_sms_marketing: - type: - - "null" - - boolean - consent: - type: - - "null" - - string - consent_timestamp: - type: - - "null" - - string - format: date-time - method: - type: - - "null" - - string - method_detail: - type: - - "null" - - string - last_updated: - type: - - "null" - - string - format: date-time - timestamp: - type: - - "null" - - string - format: date-time - predictive_analytics: - type: - - "null" - - object - properties: - historic_clv: - type: - - "null" - - number - predicted_clv: - type: - - "null" - - number - total_clv: - type: - - "null" - - number - historic_number_of_orders: - type: - - "null" - - integer - predicted_number_of_orders: - type: - - "null" - - number - average_days_between_orders: - type: - - "null" - - number - average_order_value: - type: - - "null" - - number - churn_probability: - type: - - "null" - - number - expected_date_of_next_order: - type: - - "null" - - string - links: - type: - - "null" - - object - properties: - self: - type: - - "null" - - string - relationships: - type: - - "null" - - object - properties: - lists: - type: - - "null" - - object - properties: - links: - type: - - "null" - - object - properties: - self: - type: - - "null" - - string - related: - type: - - "null" - - string - segments: - type: - - "null" - - object - properties: - links: - type: - - "null" - - object - properties: - self: - type: - - "null" - - string - related: - type: - - "null" - - string - segments: - type: - - "null" - - object - _meta: - type: object - properties: - row_id: - type: integer - required: - - row_id diff --git a/source-klaviyo/source_klaviyo/schemas/campaigns.json b/source-klaviyo/source_klaviyo/schemas/campaigns.json index 8a631ee76d..822f2549c8 100644 --- a/source-klaviyo/source_klaviyo/schemas/campaigns.json +++ b/source-klaviyo/source_klaviyo/schemas/campaigns.json @@ -4,138 +4,6 @@ "additionalProperties": true, "required": ["id"], "properties": { - "type": { "type": "string" }, - "id": { "type": "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" - }, - "is_local": { "type": ["null", "boolean"] }, - "send_past_recipients_immediately": { - "type": ["null", "boolean"] - } - } - }, - "options_throttled": { - "type": ["null", "object"], - "properties": { - "datetime": { - "type": "string", - "format": "date-time" - }, - "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" } - } - }, - "links": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "self": { "type": "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" } - } - } - } - } - } - } + "id": { "type": "string" } } } diff --git a/source-klaviyo/source_klaviyo/schemas/email_templates.json b/source-klaviyo/source_klaviyo/schemas/email_templates.json index cf4061d5eb..822f2549c8 100644 --- a/source-klaviyo/source_klaviyo/schemas/email_templates.json +++ b/source-klaviyo/source_klaviyo/schemas/email_templates.json @@ -4,28 +4,6 @@ "additionalProperties": true, "required": ["id"], "properties": { - "type": { "type": "string" }, - "id": { "type": "string" }, - "updated": { "type": ["null", "string"], "format": "date-time" }, - "attributes": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "name": { "type": "string" }, - "editor_type": { "type": ["null", "string"] }, - "html": { "type": "string" }, - "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" } - } - } + "id": { "type": "string" } } } diff --git a/source-klaviyo/source_klaviyo/schemas/events.json b/source-klaviyo/source_klaviyo/schemas/events.json index fecd565cd0..822f2549c8 100644 --- a/source-klaviyo/source_klaviyo/schemas/events.json +++ b/source-klaviyo/source_klaviyo/schemas/events.json @@ -4,80 +4,6 @@ "additionalProperties": true, "required": ["id"], "properties": { - "type": { "type": "string" }, - "id": { "type": "string" }, - "datetime": { "type": "string", "format": "date-time" }, - "campaign_id": {"type":["null", "string"]}, - "attributes": { - "type": ["null", "object"], - "properties": { - "timestamp": { "type": "integer" }, - "event_properties": { - "type": ["null", "object"], - "additionalProperties": true - }, - "datetime": { "type": "string", "format": "date-time" }, - "uuid": { "type": "string" } - } - }, - "links": { - "type": ["null", "object"], - "properties": { - "self": { "type": "string" } - } - }, - "relationships": { - "type": ["null", "object"], - "properties": { - "profile": { - "type": ["null", "object"], - "properties": { - "data": { - "type": ["null", "object"], - "properties": { - "type": { "type": "string" }, - "id": { "type": "string" } - } - }, - "links": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "self": { - "type": "string" - }, - "related": { - "type": "string" - } - } - } - } - }, - "metric": { - "type": ["null", "object"], - "properties": { - "data": { - "type": ["null", "object"], - "properties": { - "type": { "type": "string" }, - "id": { "type": "string" } - } - }, - "links": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "self": { - "type": "string" - }, - "related": { - "type": "string" - } - } - } - } - } - } - } + "id": { "type": "string" } } } diff --git a/source-klaviyo/source_klaviyo/schemas/flows.json b/source-klaviyo/source_klaviyo/schemas/flows.json index 9a4b54309e..822f2549c8 100644 --- a/source-klaviyo/source_klaviyo/schemas/flows.json +++ b/source-klaviyo/source_klaviyo/schemas/flows.json @@ -4,78 +4,6 @@ "additionalProperties": true, "required": ["id"], "properties": { - "type": { "type": "string" }, - "id": { "type": "string" }, - "updated": { "type": "string", "format": "date-time" }, - "attributes": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "name": { "type": "string" }, - "status": { "type": "string" }, - "archived": { "type": "boolean" }, - "created": { "type": "string", "format": "date-time" }, - "updated": { "type": "string", "format": "date-time" }, - "trigger_type": { "type": "string" } - } - }, - "links": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "self": { "type": "string" } - } - }, - "relationships": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "flow-actions": { - "type": ["null", "object"], - "properties": { - "data": { - "type": "array", - "items": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "type": { "type": "string" }, - "id": { "type": "string" } - } - } - }, - "links": { - "type": ["null", "object"], - "properties": { - "self": { "type": "string" }, - "related": { "type": "string" } - } - } - } - }, - "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" } - } - } - } - } - } - } + "id": { "type": "string" } } } diff --git a/source-klaviyo/source_klaviyo/schemas/global_exclusions.json b/source-klaviyo/source_klaviyo/schemas/global_exclusions.json index e81f1f49df..822f2549c8 100644 --- a/source-klaviyo/source_klaviyo/schemas/global_exclusions.json +++ b/source-klaviyo/source_klaviyo/schemas/global_exclusions.json @@ -4,111 +4,6 @@ "additionalProperties": true, "required": ["id"], "properties": { - "type": { "type": ["null", "string"] }, - "id": { "type": "string" }, - "updated": { "type": ["null", "string"], "format": "date-time" }, - "attributes": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "email": { "type": ["null", "string"] }, - "phone_number": { "type": ["null", "string"] }, - "anonymous_id": { "type": ["null", "string"] }, - "external_id": { "type": ["null", "string"] }, - "first_name": { "type": ["null", "string"] }, - "last_name": { "type": ["null", "string"] }, - "organization": { "type": ["null", "string"] }, - "title": { "type": ["null", "string"] }, - "image": { "type": ["null", "string"] }, - "created": { "type": ["null", "string"], "format": "date-time" }, - "updated": { "type": ["null", "string"], "format": "date-time" }, - "last_event_date": { - "type": ["null", "string"], - "format": "date-time" - }, - "location": { - "type": ["null", "object"], - "properties": { - "address1": { "type": ["null", "string"] }, - "address2": { "type": ["null", "string"] }, - "city": { "type": ["null", "string"] }, - "country": { "type": ["null", "string"] }, - "latitude": { - "oneOf": [ - { "type": "null" }, - { "type": "number" }, - { "type": "string" } - ] - }, - "longitude": { - "oneOf": [ - { "type": "null" }, - { "type": "number" }, - { "type": "string" } - ] - }, - "region": { "type": ["null", "string"] }, - "zip": { "type": ["null", "string"] }, - "timezone": { "type": ["null", "string"] }, - "ip": { "type": ["null", "string"] } - } - }, - "properties": { - "type": ["null", "object"], - "additionalProperties": true - }, - "subscriptions": { "$ref": "subscriptions.json" }, - "predictive_analytics": { - "type": ["null", "object"], - "properties": { - "historic_clv": { "type": ["null", "number"] }, - "predicted_clv": { "type": ["null", "number"] }, - "total_clv": { "type": ["null", "number"] }, - "historic_number_of_orders": { "type": ["null", "integer"] }, - "predicted_number_of_orders": { "type": ["null", "number"] }, - "average_days_between_orders": { "type": ["null", "number"] }, - "average_order_value": { "type": ["null", "number"] }, - "churn_probability": { "type": ["null", "number"] }, - "expected_date_of_next_order": { "type": ["null", "string"] } - } - } - } - }, - "links": { - "type": ["null", "object"], - "properties": { - "self": { "type": ["null", "string"] } - } - }, - "relationships": { - "type": ["null", "object"], - "properties": { - "lists": { - "type": ["null", "object"], - "properties": { - "links": { - "type": ["null", "object"], - "properties": { - "self": { "type": ["null", "string"] }, - "related": { "type": ["null", "string"] } - } - } - } - }, - "segments": { - "type": ["null", "object"], - "properties": { - "links": { - "type": ["null", "object"], - "properties": { - "self": { "type": ["null", "string"] }, - "related": { "type": ["null", "string"] } - } - } - } - } - } - }, - "segments": { "type": ["null", "object"] } + "id": { "type": "string" } } } diff --git a/source-klaviyo/source_klaviyo/schemas/lists.json b/source-klaviyo/source_klaviyo/schemas/lists.json index 2ea00545fb..822f2549c8 100644 --- a/source-klaviyo/source_klaviyo/schemas/lists.json +++ b/source-klaviyo/source_klaviyo/schemas/lists.json @@ -4,64 +4,6 @@ "additionalProperties": true, "required": ["id"], "properties": { - "type": { "type": "string" }, - "id": { "type": "string" }, - "updated": { "type": ["null", "string"], "format": "date-time" }, - "attributes": { - "type": ["null", "object"], - "properties": { - "name": { "type": "string" }, - "created": { "type": ["null", "string"], "format": "date-time" }, - "updated": { "type": ["null", "string"], "format": "date-time" }, - "opt_in_process": { "type": ["null", "string"] } - } - }, - "links": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "self": { "type": "string" } - } - }, - "relationships": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "profiles": { - "type": ["null", "object"], - "properties": { - "links": { - "type": ["null", "object"], - "properties": { - "self": { "type": "string" }, - "related": { "type": "string" } - } - } - } - }, - "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" } - } - } - } - } - } - } + "id": { "type": "string" } } } diff --git a/source-klaviyo/source_klaviyo/schemas/metrics.json b/source-klaviyo/source_klaviyo/schemas/metrics.json index b60362c2fa..822f2549c8 100644 --- a/source-klaviyo/source_klaviyo/schemas/metrics.json +++ b/source-klaviyo/source_klaviyo/schemas/metrics.json @@ -4,27 +4,6 @@ "additionalProperties": true, "required": ["id"], "properties": { - "type": { "type": "string" }, - "id": { "type": "string" }, - "updated": { "type": "string", "format": "date-time" }, - "attributes": { - "type": ["null", "object"], - "properties": { - "name": { "type": "string" }, - "created": { "type": "string", "format": "date-time" }, - "updated": { "type": "string", "format": "date-time" }, - "integration": { - "type": ["null", "object"], - "additionalProperties": true - } - } - }, - "links": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "self": { "type": "string" } - } - } + "id": { "type": "string" } } } diff --git a/source-klaviyo/source_klaviyo/schemas/profiles.json b/source-klaviyo/source_klaviyo/schemas/profiles.json index e81f1f49df..cf3780339d 100644 --- a/source-klaviyo/source_klaviyo/schemas/profiles.json +++ b/source-klaviyo/source_klaviyo/schemas/profiles.json @@ -4,111 +4,5 @@ "additionalProperties": true, "required": ["id"], "properties": { - "type": { "type": ["null", "string"] }, - "id": { "type": "string" }, - "updated": { "type": ["null", "string"], "format": "date-time" }, - "attributes": { - "type": ["null", "object"], - "additionalProperties": true, - "properties": { - "email": { "type": ["null", "string"] }, - "phone_number": { "type": ["null", "string"] }, - "anonymous_id": { "type": ["null", "string"] }, - "external_id": { "type": ["null", "string"] }, - "first_name": { "type": ["null", "string"] }, - "last_name": { "type": ["null", "string"] }, - "organization": { "type": ["null", "string"] }, - "title": { "type": ["null", "string"] }, - "image": { "type": ["null", "string"] }, - "created": { "type": ["null", "string"], "format": "date-time" }, - "updated": { "type": ["null", "string"], "format": "date-time" }, - "last_event_date": { - "type": ["null", "string"], - "format": "date-time" - }, - "location": { - "type": ["null", "object"], - "properties": { - "address1": { "type": ["null", "string"] }, - "address2": { "type": ["null", "string"] }, - "city": { "type": ["null", "string"] }, - "country": { "type": ["null", "string"] }, - "latitude": { - "oneOf": [ - { "type": "null" }, - { "type": "number" }, - { "type": "string" } - ] - }, - "longitude": { - "oneOf": [ - { "type": "null" }, - { "type": "number" }, - { "type": "string" } - ] - }, - "region": { "type": ["null", "string"] }, - "zip": { "type": ["null", "string"] }, - "timezone": { "type": ["null", "string"] }, - "ip": { "type": ["null", "string"] } - } - }, - "properties": { - "type": ["null", "object"], - "additionalProperties": true - }, - "subscriptions": { "$ref": "subscriptions.json" }, - "predictive_analytics": { - "type": ["null", "object"], - "properties": { - "historic_clv": { "type": ["null", "number"] }, - "predicted_clv": { "type": ["null", "number"] }, - "total_clv": { "type": ["null", "number"] }, - "historic_number_of_orders": { "type": ["null", "integer"] }, - "predicted_number_of_orders": { "type": ["null", "number"] }, - "average_days_between_orders": { "type": ["null", "number"] }, - "average_order_value": { "type": ["null", "number"] }, - "churn_probability": { "type": ["null", "number"] }, - "expected_date_of_next_order": { "type": ["null", "string"] } - } - } - } - }, - "links": { - "type": ["null", "object"], - "properties": { - "self": { "type": ["null", "string"] } - } - }, - "relationships": { - "type": ["null", "object"], - "properties": { - "lists": { - "type": ["null", "object"], - "properties": { - "links": { - "type": ["null", "object"], - "properties": { - "self": { "type": ["null", "string"] }, - "related": { "type": ["null", "string"] } - } - } - } - }, - "segments": { - "type": ["null", "object"], - "properties": { - "links": { - "type": ["null", "object"], - "properties": { - "self": { "type": ["null", "string"] }, - "related": { "type": ["null", "string"] } - } - } - } - } - } - }, - "segments": { "type": ["null", "object"] } - } -} + "id": { "type": "string" } +}} diff --git a/source-klaviyo/source_klaviyo/schemas/shared/subscriptions.json b/source-klaviyo/source_klaviyo/schemas/shared/subscriptions.json deleted file mode 100644 index c8d1bb4629..0000000000 --- a/source-klaviyo/source_klaviyo/schemas/shared/subscriptions.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "type": ["null", "object"], - "properties": { - "email": { - "type": ["null", "object"], - "properties": { - "marketing": { - "type": ["null", "object"], - "properties": { - "can_receive_email_marketing": { - "type": "boolean" - }, - "consent": { - "type": "string" - }, - "timestamp": { - "type": ["null", "string"], - "format": "date-time" - }, - "last_updated": { - "type": ["null", "string"], - "format": "date-time" - }, - "method": { - "type": ["null", "string"] - }, - "method_detail": { - "type": ["null", "string"] - }, - "custom_method_detail": { - "type": ["null", "string"] - }, - "double_optin": { - "type": ["null", "boolean"] - }, - "suppressions": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "reason": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - } - } - } - }, - "list_suppressions": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "list_id": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - } - } - } - } - } - } - } - }, - "sms": { - "type": ["null", "object"], - "properties": { - "marketing": { - "type": ["null", "object"], - "properties": { - "can_receive_sms_marketing": { - "type": ["null", "boolean"] - }, - "consent": { - "type": ["null", "string"] - }, - "consent_timestamp": { - "type": ["null", "string"], - "format": "date-time" - }, - "method": { - "type": ["null", "string"] - }, - "method_detail": { - "type": ["null", "string"] - }, - "last_updated": { - "type": ["null", "string"], - "format": "date-time" - }, - "timestamp": { - "type": ["null", "string"], - "format": "date-time" - } - } - } - } - } - } -} diff --git a/source-klaviyo/tests/snapshots/source_klaviyo_tests_test_snapshots__discover__capture.stdout.json b/source-klaviyo/tests/snapshots/source_klaviyo_tests_test_snapshots__discover__capture.stdout.json index 018d4b7cde..7b35002914 100644 --- a/source-klaviyo/tests/snapshots/source_klaviyo_tests_test_snapshots__discover__capture.stdout.json +++ b/source-klaviyo/tests/snapshots/source_klaviyo_tests_test_snapshots__discover__capture.stdout.json @@ -15,293 +15,8 @@ ], "type": "object" }, - "attributes": { - "additionalProperties": true, - "properties": { - "archived": { - "type": "boolean" - }, - "audiences": { - "additionalProperties": true, - "properties": { - "excluded": { - "items": { - "type": [ - "null", - "string" - ] - }, - "type": [ - "null", - "array" - ] - }, - "included": { - "items": { - "type": [ - "null", - "string" - ] - }, - "type": [ - "null", - "array" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "channel": { - "type": "string" - }, - "created_at": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "message": { - "type": "string" - }, - "name": { - "type": "string" - }, - "scheduled_at": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "send_options": { - "properties": { - "ignore_unsubscribes": { - "type": [ - "null", - "boolean" - ] - }, - "use_smart_sending": { - "type": [ - "null", - "boolean" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "send_strategy": { - "additionalProperties": true, - "properties": { - "method": { - "type": "string" - }, - "options_static": { - "properties": { - "datetime": { - "format": "date-time", - "type": "string" - }, - "is_local": { - "type": [ - "null", - "boolean" - ] - }, - "send_past_recipients_immediately": { - "type": [ - "null", - "boolean" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "options_sto": { - "properties": { - "date": { - "format": "date", - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "options_throttled": { - "properties": { - "datetime": { - "format": "date-time", - "type": "string" - }, - "throttle_percentage": { - "type": "integer" - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "send_time": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "status": { - "type": "string" - }, - "tracking_options": { - "additionalProperties": true, - "properties": { - "is_add_utm": { - "type": [ - "null", - "boolean" - ] - }, - "is_tracking_clicks": { - "type": [ - "null", - "boolean" - ] - }, - "is_tracking_opens": { - "type": [ - "null", - "boolean" - ] - }, - "utm_params": { - "items": { - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "updated_at": { - "format": "date-time", - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, "id": { "type": "string" - }, - "links": { - "additionalProperties": true, - "properties": { - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "relationships": { - "additionalProperties": true, - "properties": { - "tags": { - "properties": { - "data": { - "items": { - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": "array" - }, - "links": { - "properties": { - "related": { - "type": "string" - }, - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": { - "type": "string" - }, - "updated_at": { - "format": "date-time", - "type": [ - "null", - "string" - ] } }, "required": [ @@ -338,139 +53,8 @@ ], "type": "object" }, - "attributes": { - "properties": { - "datetime": { - "format": "date-time", - "type": "string" - }, - "event_properties": { - "additionalProperties": true, - "type": [ - "null", - "object" - ] - }, - "timestamp": { - "type": "integer" - }, - "uuid": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "campaign_id": { - "type": [ - "null", - "string" - ] - }, - "datetime": { - "format": "date-time", - "type": "string" - }, "id": { "type": "string" - }, - "links": { - "properties": { - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "relationships": { - "properties": { - "metric": { - "properties": { - "data": { - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "links": { - "additionalProperties": true, - "properties": { - "related": { - "type": "string" - }, - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "profile": { - "properties": { - "data": { - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "links": { - "additionalProperties": true, - "properties": { - "related": { - "type": "string" - }, - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": { - "type": "string" } }, "required": [ @@ -507,514 +91,8 @@ ], "type": "object" }, - "attributes": { - "additionalProperties": true, - "properties": { - "anonymous_id": { - "type": [ - "null", - "string" - ] - }, - "created": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "email": { - "type": [ - "null", - "string" - ] - }, - "external_id": { - "type": [ - "null", - "string" - ] - }, - "first_name": { - "type": [ - "null", - "string" - ] - }, - "image": { - "type": [ - "null", - "string" - ] - }, - "last_event_date": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "last_name": { - "type": [ - "null", - "string" - ] - }, - "location": { - "properties": { - "address1": { - "type": [ - "null", - "string" - ] - }, - "address2": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "country": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "latitude": { - "oneOf": [ - { - "type": "null" - }, - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "longitude": { - "oneOf": [ - { - "type": "null" - }, - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "timezone": { - "type": [ - "null", - "string" - ] - }, - "zip": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "organization": { - "type": [ - "null", - "string" - ] - }, - "phone_number": { - "type": [ - "null", - "string" - ] - }, - "predictive_analytics": { - "properties": { - "average_days_between_orders": { - "type": [ - "null", - "number" - ] - }, - "average_order_value": { - "type": [ - "null", - "number" - ] - }, - "churn_probability": { - "type": [ - "null", - "number" - ] - }, - "expected_date_of_next_order": { - "type": [ - "null", - "string" - ] - }, - "historic_clv": { - "type": [ - "null", - "number" - ] - }, - "historic_number_of_orders": { - "type": [ - "null", - "integer" - ] - }, - "predicted_clv": { - "type": [ - "null", - "number" - ] - }, - "predicted_number_of_orders": { - "type": [ - "null", - "number" - ] - }, - "total_clv": { - "type": [ - "null", - "number" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "properties": { - "additionalProperties": true, - "type": [ - "null", - "object" - ] - }, - "subscriptions": { - "properties": { - "email": { - "properties": { - "marketing": { - "properties": { - "can_receive_email_marketing": { - "type": "boolean" - }, - "consent": { - "type": "string" - }, - "custom_method_detail": { - "type": [ - "null", - "string" - ] - }, - "double_optin": { - "type": [ - "null", - "boolean" - ] - }, - "last_updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "list_suppressions": { - "items": { - "properties": { - "list_id": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "timestamp": { - "format": "date-time", - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "method": { - "type": [ - "null", - "string" - ] - }, - "method_detail": { - "type": [ - "null", - "string" - ] - }, - "suppressions": { - "items": { - "properties": { - "reason": { - "type": "string" - }, - "timestamp": { - "format": "date-time", - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "timestamp": { - "format": "date-time", - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "sms": { - "properties": { - "marketing": { - "properties": { - "can_receive_sms_marketing": { - "type": [ - "null", - "boolean" - ] - }, - "consent": { - "type": [ - "null", - "string" - ] - }, - "consent_timestamp": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "last_updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "method": { - "type": [ - "null", - "string" - ] - }, - "method_detail": { - "type": [ - "null", - "string" - ] - }, - "timestamp": { - "format": "date-time", - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "title": { - "type": [ - "null", - "string" - ] - }, - "updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, "id": { "type": "string" - }, - "links": { - "properties": { - "self": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "relationships": { - "properties": { - "lists": { - "properties": { - "links": { - "properties": { - "related": { - "type": [ - "null", - "string" - ] - }, - "self": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "segments": { - "properties": { - "links": { - "properties": { - "related": { - "type": [ - "null", - "string" - ] - }, - "self": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "segments": { - "type": [ - "null", - "object" - ] - }, - "type": { - "type": [ - "null", - "string" - ] - }, - "updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] } }, "required": [ @@ -1051,131 +129,8 @@ ], "type": "object" }, - "attributes": { - "properties": { - "created": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "name": { - "type": "string" - }, - "opt_in_process": { - "type": [ - "null", - "string" - ] - }, - "updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, "id": { "type": "string" - }, - "links": { - "additionalProperties": true, - "properties": { - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "relationships": { - "additionalProperties": true, - "properties": { - "profiles": { - "properties": { - "links": { - "properties": { - "related": { - "type": "string" - }, - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "tags": { - "properties": { - "data": { - "items": { - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": "array" - }, - "links": { - "properties": { - "related": { - "type": "string" - }, - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": { - "type": "string" - }, - "updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] } }, "required": [ @@ -1212,53 +167,8 @@ ], "type": "object" }, - "attributes": { - "properties": { - "created": { - "format": "date-time", - "type": "string" - }, - "integration": { - "additionalProperties": true, - "type": [ - "null", - "object" - ] - }, - "name": { - "type": "string" - }, - "updated": { - "format": "date-time", - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, "id": { "type": "string" - }, - "links": { - "additionalProperties": true, - "properties": { - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": { - "type": "string" - }, - "updated": { - "format": "date-time", - "type": "string" } }, "required": [ @@ -1295,144 +205,8 @@ ], "type": "object" }, - "attributes": { - "additionalProperties": true, - "properties": { - "archived": { - "type": "boolean" - }, - "created": { - "format": "date-time", - "type": "string" - }, - "name": { - "type": "string" - }, - "status": { - "type": "string" - }, - "trigger_type": { - "type": "string" - }, - "updated": { - "format": "date-time", - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, "id": { "type": "string" - }, - "links": { - "additionalProperties": true, - "properties": { - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "relationships": { - "additionalProperties": true, - "properties": { - "flow-actions": { - "properties": { - "data": { - "items": { - "additionalProperties": true, - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": "array" - }, - "links": { - "properties": { - "related": { - "type": "string" - }, - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "tags": { - "properties": { - "data": { - "items": { - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": "array" - }, - "links": { - "properties": { - "related": { - "type": "string" - }, - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": { - "type": "string" - }, - "updated": { - "format": "date-time", - "type": "string" } }, "required": [ @@ -1469,77 +243,8 @@ ], "type": "object" }, - "attributes": { - "additionalProperties": true, - "properties": { - "company_id": { - "type": [ - "null", - "string" - ] - }, - "created": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "editor_type": { - "type": [ - "null", - "string" - ] - }, - "html": { - "type": "string" - }, - "name": { - "type": "string" - }, - "text": { - "type": [ - "null", - "string" - ] - }, - "updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, "id": { "type": "string" - }, - "links": { - "additionalProperties": true, - "properties": { - "self": { - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": { - "type": "string" - }, - "updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] } }, "required": [ @@ -1576,514 +281,8 @@ ], "type": "object" }, - "attributes": { - "additionalProperties": true, - "properties": { - "anonymous_id": { - "type": [ - "null", - "string" - ] - }, - "created": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "email": { - "type": [ - "null", - "string" - ] - }, - "external_id": { - "type": [ - "null", - "string" - ] - }, - "first_name": { - "type": [ - "null", - "string" - ] - }, - "image": { - "type": [ - "null", - "string" - ] - }, - "last_event_date": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "last_name": { - "type": [ - "null", - "string" - ] - }, - "location": { - "properties": { - "address1": { - "type": [ - "null", - "string" - ] - }, - "address2": { - "type": [ - "null", - "string" - ] - }, - "city": { - "type": [ - "null", - "string" - ] - }, - "country": { - "type": [ - "null", - "string" - ] - }, - "ip": { - "type": [ - "null", - "string" - ] - }, - "latitude": { - "oneOf": [ - { - "type": "null" - }, - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "longitude": { - "oneOf": [ - { - "type": "null" - }, - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "region": { - "type": [ - "null", - "string" - ] - }, - "timezone": { - "type": [ - "null", - "string" - ] - }, - "zip": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "organization": { - "type": [ - "null", - "string" - ] - }, - "phone_number": { - "type": [ - "null", - "string" - ] - }, - "predictive_analytics": { - "properties": { - "average_days_between_orders": { - "type": [ - "null", - "number" - ] - }, - "average_order_value": { - "type": [ - "null", - "number" - ] - }, - "churn_probability": { - "type": [ - "null", - "number" - ] - }, - "expected_date_of_next_order": { - "type": [ - "null", - "string" - ] - }, - "historic_clv": { - "type": [ - "null", - "number" - ] - }, - "historic_number_of_orders": { - "type": [ - "null", - "integer" - ] - }, - "predicted_clv": { - "type": [ - "null", - "number" - ] - }, - "predicted_number_of_orders": { - "type": [ - "null", - "number" - ] - }, - "total_clv": { - "type": [ - "null", - "number" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "properties": { - "additionalProperties": true, - "type": [ - "null", - "object" - ] - }, - "subscriptions": { - "properties": { - "email": { - "properties": { - "marketing": { - "properties": { - "can_receive_email_marketing": { - "type": "boolean" - }, - "consent": { - "type": "string" - }, - "custom_method_detail": { - "type": [ - "null", - "string" - ] - }, - "double_optin": { - "type": [ - "null", - "boolean" - ] - }, - "last_updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "list_suppressions": { - "items": { - "properties": { - "list_id": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "timestamp": { - "format": "date-time", - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "method": { - "type": [ - "null", - "string" - ] - }, - "method_detail": { - "type": [ - "null", - "string" - ] - }, - "suppressions": { - "items": { - "properties": { - "reason": { - "type": "string" - }, - "timestamp": { - "format": "date-time", - "type": "string" - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "timestamp": { - "format": "date-time", - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "sms": { - "properties": { - "marketing": { - "properties": { - "can_receive_sms_marketing": { - "type": [ - "null", - "boolean" - ] - }, - "consent": { - "type": [ - "null", - "string" - ] - }, - "consent_timestamp": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "last_updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] - }, - "method": { - "type": [ - "null", - "string" - ] - }, - "method_detail": { - "type": [ - "null", - "string" - ] - }, - "timestamp": { - "format": "date-time", - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "title": { - "type": [ - "null", - "string" - ] - }, - "updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, "id": { "type": "string" - }, - "links": { - "properties": { - "self": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "relationships": { - "properties": { - "lists": { - "properties": { - "links": { - "properties": { - "related": { - "type": [ - "null", - "string" - ] - }, - "self": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "segments": { - "properties": { - "links": { - "properties": { - "related": { - "type": [ - "null", - "string" - ] - }, - "self": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "segments": { - "type": [ - "null", - "object" - ] - }, - "type": { - "type": [ - "null", - "string" - ] - }, - "updated": { - "format": "date-time", - "type": [ - "null", - "string" - ] } }, "required": [