-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Klaviyo: added new keys to schema (#14947)
* feat: added new keys to schema * Rename Campaigns.json to campaigns.json * auto-bump connector version [ci skip] Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
- Loading branch information
1 parent
436de26
commit 2960421
Showing
13 changed files
with
184 additions
and
273 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
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
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,16 +1,38 @@ | ||
FROM python:3.9-slim | ||
FROM python:3.9.11-alpine3.15 as base | ||
|
||
# build and load all requirements | ||
FROM base as builder | ||
WORKDIR /airbyte/integration_code | ||
|
||
# upgrade pip to the latest version | ||
RUN apk --no-cache upgrade \ | ||
&& pip install --upgrade pip \ | ||
&& apk --no-cache add tzdata build-base | ||
|
||
# Bash is installed for more convenient debugging. | ||
RUN apt-get update && apt-get install -y bash && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY setup.py ./ | ||
# install necessary packages to a temporary folder | ||
RUN pip install --prefix=/install . | ||
|
||
# build a clean environment | ||
FROM base | ||
WORKDIR /airbyte/integration_code | ||
COPY source_klaviyo ./source_klaviyo | ||
|
||
# copy all loaded and built libraries to a pure basic image | ||
COPY --from=builder /install /usr/local | ||
# add default timezone settings | ||
COPY --from=builder /usr/share/zoneinfo/Etc/UTC /etc/localtime | ||
RUN echo "Etc/UTC" > /etc/timezone | ||
|
||
# bash is installed for more convenient debugging. | ||
RUN apk --no-cache add bash | ||
|
||
# copy payload code only | ||
COPY main.py ./ | ||
COPY setup.py ./ | ||
RUN pip install . | ||
COPY source_klaviyo ./source_klaviyo | ||
|
||
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" | ||
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] | ||
|
||
LABEL io.airbyte.version=0.1.6 | ||
LABEL io.airbyte.version=0.1.7 | ||
LABEL io.airbyte.name=airbyte/source-klaviyo |
139 changes: 0 additions & 139 deletions
139
airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas.py
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"object": { "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"] } | ||
} | ||
} | ||
}, | ||
"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"] } | ||
} | ||
} | ||
}, | ||
"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"] } | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/events.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"object": { "type": "string" }, | ||
"id": { "type": "string" }, | ||
"uuid": { "type": "string" }, | ||
"event_name": { "type": "string" }, | ||
"timestamp": { "type": "integer" }, | ||
"datetime": { "type": "string" }, | ||
"statistic_id": { "type": "string" }, | ||
"event_properties": { | ||
"type": "object", | ||
"properties": { | ||
"$value": { "type": "number" }, | ||
"items": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"object": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"sku": { "type": "string" }, | ||
"price": { "type": "integer" }, | ||
"quantity": { "type": "integer" } | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"person": { | ||
"type": "object", | ||
"properties": { | ||
"id": { "type": "string" }, | ||
"object": { "type": "string" }, | ||
"$email": { "type": "string" } | ||
} | ||
}, | ||
"flow_id": { "type": ["null", "string"] }, | ||
"campaign_id": { "type": ["null", "string"] }, | ||
"flow_message_id": { "type": ["null", "string"] } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/flows.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"object": { "type": "string" }, | ||
"id": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"status": { "type": "string" }, | ||
"created": { "type": "string", "format": "date-time" }, | ||
"updated": { "type": "string", "format": "date-time" }, | ||
"customer_filter": { "type": ["null", "object"] }, | ||
"trigger": { "type": "object" } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/global_exclusions.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"object": { "type": "string" }, | ||
"email": { "type": "string" }, | ||
"reason": { "type": "string" }, | ||
"timestamp": { "type": "string", "format": "date-time" } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/lists.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"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"] } | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
airbyte-integrations/connectors/source-klaviyo/source_klaviyo/schemas/metrics.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"object": { "type": "string" }, | ||
"id": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"created": { "type": "string", "format": "date-time" }, | ||
"updated": { "type": "string", "format": "date-time" }, | ||
"integration": { | ||
"type": "object", | ||
"properties": { | ||
"object": { "type": "string" }, | ||
"id": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"category": { "type": "string" } | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.