diff --git a/airbyte-config-oss/init-oss/src/main/resources/seed/oss_catalog.json b/airbyte-config-oss/init-oss/src/main/resources/seed/oss_catalog.json
index 71ed5f20d35ca..469648953eec2 100644
--- a/airbyte-config-oss/init-oss/src/main/resources/seed/oss_catalog.json
+++ b/airbyte-config-oss/init-oss/src/main/resources/seed/oss_catalog.json
@@ -17071,7 +17071,7 @@
"sourceDefinitionId": "b03a9f3e-22a5-11eb-adc1-0242ac120002",
"name": "Mailchimp",
"dockerRepository": "airbyte/source-mailchimp",
- "dockerImageTag": "0.3.5",
+ "dockerImageTag": "0.4.0",
"documentationUrl": "https://docs.airbyte.com/integrations/sources/mailchimp",
"icon": "mailchimp.svg",
"sourceType": "api",
diff --git a/airbyte-config-oss/init-oss/src/main/resources/seed/source_definitions.yaml b/airbyte-config-oss/init-oss/src/main/resources/seed/source_definitions.yaml
index 0a15bca65398b..74dd25a06bd4c 100644
--- a/airbyte-config-oss/init-oss/src/main/resources/seed/source_definitions.yaml
+++ b/airbyte-config-oss/init-oss/src/main/resources/seed/source_definitions.yaml
@@ -1161,7 +1161,7 @@
- name: Mailchimp
sourceDefinitionId: b03a9f3e-22a5-11eb-adc1-0242ac120002
dockerRepository: airbyte/source-mailchimp
- dockerImageTag: 0.3.5
+ dockerImageTag: 0.4.0
documentationUrl: https://docs.airbyte.com/integrations/sources/mailchimp
icon: mailchimp.svg
sourceType: api
diff --git a/airbyte-config-oss/init-oss/src/main/resources/seed/source_specs.yaml b/airbyte-config-oss/init-oss/src/main/resources/seed/source_specs.yaml
index a1a22153004d8..0d397e53a8a25 100644
--- a/airbyte-config-oss/init-oss/src/main/resources/seed/source_specs.yaml
+++ b/airbyte-config-oss/init-oss/src/main/resources/seed/source_specs.yaml
@@ -8328,7 +8328,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
-- dockerImage: "airbyte/source-mailchimp:0.3.5"
+- dockerImage: "airbyte/source-mailchimp:0.4.0"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/mailchimp"
connectionSpecification:
diff --git a/airbyte-integrations/connectors/source-mailchimp/Dockerfile b/airbyte-integrations/connectors/source-mailchimp/Dockerfile
index 193609f6a4a2a..7c28dd411edd4 100644
--- a/airbyte-integrations/connectors/source-mailchimp/Dockerfile
+++ b/airbyte-integrations/connectors/source-mailchimp/Dockerfile
@@ -12,5 +12,5 @@ COPY main.py ./
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
-LABEL io.airbyte.version=0.3.5
+LABEL io.airbyte.version=0.4.0
LABEL io.airbyte.name=airbyte/source-mailchimp
diff --git a/airbyte-integrations/connectors/source-mailchimp/acceptance-test-config.yml b/airbyte-integrations/connectors/source-mailchimp/acceptance-test-config.yml
index f8a0383b8ac09..12461751e83a2 100644
--- a/airbyte-integrations/connectors/source-mailchimp/acceptance-test-config.yml
+++ b/airbyte-integrations/connectors/source-mailchimp/acceptance-test-config.yml
@@ -41,15 +41,15 @@ acceptance_tests:
fail_on_extra_columns: false
incremental:
tests:
- - config_path: "secrets/config.json"
- configured_catalog_path: "integration_tests/configured_catalog.json"
- future_state:
- future_state_path: "integration_tests/state.json"
- cursor_paths:
- lists: ["date_created"]
- campaigns: ["create_time"]
- email_activity: ["49d68626f3", "timestamp"]
- reports: ["send_time"]
+ - config_path: "secrets/config.json"
+ configured_catalog_path: "integration_tests/configured_catalog.json"
+ future_state:
+ future_state_path: "integration_tests/state.json"
+ cursor_paths:
+ automations: ["create_time"]
+ lists: ["date_created"]
+ campaigns: ["create_time"]
+ email_activity: ["49d68626f3", "timestamp"]
# Email activities stream has working campaigns with email newsletters.
# Due to this sequential_reads test could be failed.
full_refresh:
diff --git a/airbyte-integrations/connectors/source-mailchimp/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-mailchimp/integration_tests/configured_catalog.json
index b940ec8e0f599..8baade2f96afa 100644
--- a/airbyte-integrations/connectors/source-mailchimp/integration_tests/configured_catalog.json
+++ b/airbyte-integrations/connectors/source-mailchimp/integration_tests/configured_catalog.json
@@ -1,5 +1,19 @@
{
"streams": [
+ {
+ "stream": {
+ "name": "automations",
+ "json_schema": {},
+ "supported_sync_modes": ["full_refresh", "incremental"],
+ "source_defined_cursor": true,
+ "default_cursor_field": ["create_time"],
+ "source_defined_primary_key": [["id"]]
+ },
+ "sync_mode": "incremental",
+ "cursor_field": ["create_time"],
+ "primary_key": [["id"]],
+ "destination_sync_mode": "append"
+ },
{
"stream": {
"name": "campaigns",
diff --git a/airbyte-integrations/connectors/source-mailchimp/integration_tests/configured_catalog_without_email_activities.json b/airbyte-integrations/connectors/source-mailchimp/integration_tests/configured_catalog_without_email_activities.json
index d1c17cde43784..2fcb0f2f22741 100644
--- a/airbyte-integrations/connectors/source-mailchimp/integration_tests/configured_catalog_without_email_activities.json
+++ b/airbyte-integrations/connectors/source-mailchimp/integration_tests/configured_catalog_without_email_activities.json
@@ -1,5 +1,19 @@
{
"streams": [
+ {
+ "stream": {
+ "name": "automations",
+ "json_schema": {},
+ "supported_sync_modes": ["full_refresh", "incremental"],
+ "source_defined_cursor": true,
+ "default_cursor_field": ["create_time"],
+ "source_defined_primary_key": [["id"]]
+ },
+ "sync_mode": "incremental",
+ "cursor_field": ["create_time"],
+ "primary_key": [["id"]],
+ "destination_sync_mode": "append"
+ },
{
"stream": {
"name": "campaigns",
diff --git a/airbyte-integrations/connectors/source-mailchimp/integration_tests/state.json b/airbyte-integrations/connectors/source-mailchimp/integration_tests/state.json
index 519e2032847f5..77791e908b748 100644
--- a/airbyte-integrations/connectors/source-mailchimp/integration_tests/state.json
+++ b/airbyte-integrations/connectors/source-mailchimp/integration_tests/state.json
@@ -13,6 +13,13 @@
"stream_descriptor": { "name": "lists" }
}
},
+ {
+ "type": "STREAM",
+ "stream": {
+ "stream_state": { "create_time": "2220-11-23T05:42:11+00:00" },
+ "stream_descriptor": { "name": "automations" }
+ }
+ },
{
"type": "STREAM",
"stream": {
diff --git a/airbyte-integrations/connectors/source-mailchimp/sample_files/catalog.json b/airbyte-integrations/connectors/source-mailchimp/sample_files/catalog.json
index 2f5d60b791ec0..46dba2fd858b3 100644
--- a/airbyte-integrations/connectors/source-mailchimp/sample_files/catalog.json
+++ b/airbyte-integrations/connectors/source-mailchimp/sample_files/catalog.json
@@ -791,6 +791,219 @@
}
}
},
+ {
+ "name": "Automations",
+ "supported_sync_modes": ["full_refresh", "incremental"],
+ "source_defined_cursor": true,
+ "default_cursor_field": "create_time",
+ "json_schema": {
+ "type": "object",
+ "title": "Automation",
+ "description": "A summary of an individual automation's settings and content.",
+ "properties": {
+ "id": {
+ "type": ["null", "string"]
+ },
+ "create_time": {
+ "type": ["null", "string"]
+ },
+ "start_time": {
+ "type": ["null", "string"]
+ },
+ "status": {
+ "type": ["null", "string"]
+ },
+ "emails_sent": {
+ "type": ["null", "number"]
+ },
+ "recipients": {
+ "type": ["null", "object"],
+ "properties": {
+ "list_id": {
+ "type": ["null", "string"]
+ },
+ "list_is_active": {
+ "type": ["null", "boolean"]
+ },
+ "list_name": {
+ "type": ["null", "string"]
+ },
+ "segment_opts": {
+ "type": ["null", "object"],
+ "properties": {
+ "saved_segment_id": {
+ "type": ["null", "number"]
+ },
+ "match": {
+ "type": ["null", "string"]
+ },
+ "conditions": {
+ "type": ["null", "array"],
+ "items": {}
+ }
+ }
+ },
+ "store_id": {
+ "type": ["null", "string"]
+ }
+ }
+ },
+ "settings": {
+ "type": ["null", "object"],
+ "properties": {
+ "title": {
+ "type": ["null", "string"]
+ },
+ "from_name": {
+ "type": ["null", "string"]
+ },
+ "reply_to": {
+ "type": ["null", "string"]
+ },
+ "use_conversation": {
+ "type": ["null", "boolean"]
+ },
+ "to_name": {
+ "type": ["null", "string"]
+ },
+ "authenticate": {
+ "type": ["null", "boolean"]
+ },
+ "auto_footer": {
+ "type": ["null", "boolean"]
+ },
+ "inline_css": {
+ "type": ["null", "boolean"]
+ }
+ }
+ },
+ "tracking": {
+ "type": ["null", "object"],
+ "properties": {
+ "opens": {
+ "type": ["null", "boolean"]
+ },
+ "html_clicks": {
+ "type": ["null", "boolean"]
+ },
+ "text_clicks": {
+ "type": ["null", "boolean"]
+ },
+ "goal_tracking": {
+ "type": ["null", "boolean"]
+ },
+ "ecomm360": {
+ "type": ["null", "boolean"]
+ },
+ "google_analytics": {
+ "type": ["null", "string"]
+ },
+ "clicktale": {
+ "type": ["null", "string"]
+ },
+ "salesforce": {
+ "type": ["null", "object"],
+ "properties": {
+ "campaign": {
+ "type": ["null", "boolean"]
+ },
+ "notes": {
+ "type": ["null", "boolean"]
+ }
+ }
+ },
+ "capsule": {
+ "type": ["null", "object"],
+ "properties": {
+ "notes": {
+ "type": ["null", "boolean"]
+ }
+ }
+ }
+ }
+ },
+ "trigger_settings": {
+ "type": ["null", "object"],
+ "properties": {
+ "workflow_type": {
+ "type": ["null", "string"]
+ },
+ "workflow_title": {
+ "type": ["null", "string"]
+ },
+ "runtime": {
+ "type": ["null", "object"],
+ "properties": {
+ "days": {
+ "type": ["null", "array"],
+ "items": {
+ "type": ["null", "string"]
+ }
+ },
+ "hours": {
+ "type": ["null", "object"],
+ "properties": {
+ "type": {
+ "type": ["null", "string"]
+ }
+ }
+ }
+ }
+ },
+ "workflow_emails_count": {
+ "type": ["null", "number"]
+ }
+ }
+ },
+ "report_summary": {
+ "type": ["null", "object"],
+ "properties": {
+ "opens": {
+ "type": ["null", "number"]
+ },
+ "unique_opens": {
+ "type": ["null", "number"]
+ },
+ "open_rate": {
+ "type": ["null", "number"]
+ },
+ "clicks": {
+ "type": ["null", "number"]
+ },
+ "subscriber_clicks": {
+ "type": ["null", "number"]
+ },
+ "click_rate": {
+ "type": ["null", "number"]
+ }
+ }
+ },
+ "_links": {
+ "type": ["null", "array"],
+ "items": {
+ "type": ["null", "object"],
+ "properties": {
+ "rel": {
+ "type": ["null", "string"]
+ },
+ "href": {
+ "type": ["null", "string"]
+ },
+ "method": {
+ "type": ["null", "string"]
+ },
+ "targetSchema": {
+ "type": ["null", "string"]
+ },
+ "schema": {
+ "type": ["null", "string"]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
{
"name": "Lists",
"supported_sync_modes": ["full_refresh", "incremental"],
diff --git a/airbyte-integrations/connectors/source-mailchimp/sample_files/configured_catalog.json b/airbyte-integrations/connectors/source-mailchimp/sample_files/configured_catalog.json
index ff565d564dd19..a4cb2fb0af1f3 100644
--- a/airbyte-integrations/connectors/source-mailchimp/sample_files/configured_catalog.json
+++ b/airbyte-integrations/connectors/source-mailchimp/sample_files/configured_catalog.json
@@ -744,6 +744,224 @@
"cursor_field": ["create_time"],
"destination_sync_mode": "append"
},
+ {
+ "stream": {
+ "name": "automations",
+ "json_schema": {
+ "type": "object",
+ "title": "Automation",
+ "description": "A summary of an individual campaign's settings and content.",
+ "properties": {
+ "id": {
+ "type": ["null", "string"]
+ },
+ "create_time": {
+ "type": ["null", "string"]
+ },
+ "start_time": {
+ "type": ["null", "string"]
+ },
+ "status": {
+ "type": ["null", "string"]
+ },
+ "emails_sent": {
+ "type": ["null", "number"]
+ },
+ "recipients": {
+ "type": ["null", "object"],
+ "properties": {
+ "list_id": {
+ "type": ["null", "string"]
+ },
+ "list_is_active": {
+ "type": ["null", "boolean"]
+ },
+ "list_name": {
+ "type": ["null", "string"]
+ },
+ "segment_opts": {
+ "type": ["null", "object"],
+ "properties": {
+ "saved_segment_id": {
+ "type": ["null", "number"]
+ },
+ "match": {
+ "type": ["null", "string"]
+ },
+ "conditions": {
+ "type": ["null", "array"],
+ "items": {}
+ }
+ }
+ },
+ "store_id": {
+ "type": ["null", "string"]
+ }
+ }
+ },
+ "settings": {
+ "type": ["null", "object"],
+ "properties": {
+ "title": {
+ "type": ["null", "string"]
+ },
+ "from_name": {
+ "type": ["null", "string"]
+ },
+ "reply_to": {
+ "type": ["null", "string"]
+ },
+ "use_conversation": {
+ "type": ["null", "boolean"]
+ },
+ "to_name": {
+ "type": ["null", "string"]
+ },
+ "authenticate": {
+ "type": ["null", "boolean"]
+ },
+ "auto_footer": {
+ "type": ["null", "boolean"]
+ },
+ "inline_css": {
+ "type": ["null", "boolean"]
+ }
+ }
+ },
+ "tracking": {
+ "type": ["null", "object"],
+ "properties": {
+ "opens": {
+ "type": ["null", "boolean"]
+ },
+ "html_clicks": {
+ "type": ["null", "boolean"]
+ },
+ "text_clicks": {
+ "type": ["null", "boolean"]
+ },
+ "goal_tracking": {
+ "type": ["null", "boolean"]
+ },
+ "ecomm360": {
+ "type": ["null", "boolean"]
+ },
+ "google_analytics": {
+ "type": ["null", "string"]
+ },
+ "clicktale": {
+ "type": ["null", "string"]
+ },
+ "salesforce": {
+ "type": ["null", "object"],
+ "properties": {
+ "campaign": {
+ "type": ["null", "boolean"]
+ },
+ "notes": {
+ "type": ["null", "boolean"]
+ }
+ }
+ },
+ "capsule": {
+ "type": ["null", "object"],
+ "properties": {
+ "notes": {
+ "type": ["null", "boolean"]
+ }
+ }
+ }
+ }
+ },
+ "trigger_settings": {
+ "type": ["null", "object"],
+ "properties": {
+ "workflow_type": {
+ "type": ["null", "string"]
+ },
+ "workflow_title": {
+ "type": ["null", "string"]
+ },
+ "runtime": {
+ "type": ["null", "object"],
+ "properties": {
+ "days": {
+ "type": ["null", "array"],
+ "items": {
+ "type": ["null", "string"]
+ }
+ },
+ "hours": {
+ "type": ["null", "object"],
+ "properties": {
+ "type": {
+ "type": ["null", "string"]
+ }
+ }
+ }
+ }
+ },
+ "workflow_emails_count": {
+ "type": ["null", "number"]
+ }
+ }
+ },
+ "report_summary": {
+ "type": ["null", "object"],
+ "properties": {
+ "opens": {
+ "type": ["null", "number"]
+ },
+ "unique_opens": {
+ "type": ["null", "number"]
+ },
+ "open_rate": {
+ "type": ["null", "number"]
+ },
+ "clicks": {
+ "type": ["null", "number"]
+ },
+ "subscriber_clicks": {
+ "type": ["null", "number"]
+ },
+ "click_rate": {
+ "type": ["null", "number"]
+ }
+ }
+ },
+ "_links": {
+ "type": ["null", "array"],
+ "items": {
+ "type": ["null", "object"],
+ "properties": {
+ "rel": {
+ "type": ["null", "string"]
+ },
+ "href": {
+ "type": ["null", "string"]
+ },
+ "method": {
+ "type": ["null", "string"]
+ },
+ "targetSchema": {
+ "type": ["null", "string"]
+ },
+ "schema": {
+ "type": ["null", "string"]
+ }
+ }
+ }
+ }
+ }
+ },
+ "supported_sync_modes": ["full_refresh", "incremental"],
+ "source_defined_cursor": true,
+ "default_cursor_field": ["create_time"]
+ },
+ "sync_mode": "incremental",
+ "cursor_field": ["create_time"],
+ "destination_sync_mode": "append"
+ },
{
"stream": {
"name": "lists",
diff --git a/airbyte-integrations/connectors/source-mailchimp/sample_files/state.json b/airbyte-integrations/connectors/source-mailchimp/sample_files/state.json
index da4fe3c4c6c3c..d01435a925303 100644
--- a/airbyte-integrations/connectors/source-mailchimp/sample_files/state.json
+++ b/airbyte-integrations/connectors/source-mailchimp/sample_files/state.json
@@ -1,6 +1,7 @@
{
"campaigns": { "create_time": "2020-11-23T05:42:11+00:00" },
"lists": { "date_created": "2020-09-25T04:47:31+00:00" },
+ "automations": { "create_time": "2020-11-23T05:42:11+00:00" },
"email_activity": {
"49d68626f3": { "timestamp": "2020-11-23T05:42:10+00:00" }
},
diff --git a/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/schemas/automations.json b/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/schemas/automations.json
new file mode 100644
index 0000000000000..234d6e6965a50
--- /dev/null
+++ b/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/schemas/automations.json
@@ -0,0 +1,208 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "title": "Automations",
+ "additionalProperties": true,
+ "properties": {
+ "id": {
+ "type": ["null", "string"]
+ },
+ "create_time": {
+ "type": ["null", "string"]
+ },
+ "start_time": {
+ "type": ["null", "string"]
+ },
+ "status": {
+ "type": ["null", "string"]
+ },
+ "emails_sent": {
+ "type": ["null", "number"]
+ },
+ "recipients": {
+ "type": ["null", "object"],
+ "properties": {
+ "list_id": {
+ "type": ["null", "string"]
+ },
+ "list_is_active": {
+ "type": ["null", "boolean"]
+ },
+ "list_name": {
+ "type": ["null", "string"]
+ },
+ "segment_opts": {
+ "type": ["null", "object"],
+ "properties": {
+ "saved_segment_id": {
+ "type": ["null", "number"]
+ },
+ "match": {
+ "type": ["null", "string"]
+ },
+ "conditions": {
+ "type": ["null", "array"],
+ "items": {}
+ }
+ }
+ },
+ "store_id": {
+ "type": ["null", "string"]
+ }
+ }
+ },
+ "settings": {
+ "type": ["null", "object"],
+ "properties": {
+ "title": {
+ "type": ["null", "string"]
+ },
+ "from_name": {
+ "type": ["null", "string"]
+ },
+ "reply_to": {
+ "type": ["null", "string"]
+ },
+ "use_conversation": {
+ "type": ["null", "boolean"]
+ },
+ "to_name": {
+ "type": ["null", "string"]
+ },
+ "authenticate": {
+ "type": ["null", "boolean"]
+ },
+ "auto_footer": {
+ "type": ["null", "boolean"]
+ },
+ "inline_css": {
+ "type": ["null", "boolean"]
+ }
+ }
+ },
+ "tracking": {
+ "type": ["null", "object"],
+ "properties": {
+ "opens": {
+ "type": ["null", "boolean"]
+ },
+ "html_clicks": {
+ "type": ["null", "boolean"]
+ },
+ "text_clicks": {
+ "type": ["null", "boolean"]
+ },
+ "goal_tracking": {
+ "type": ["null", "boolean"]
+ },
+ "ecomm360": {
+ "type": ["null", "boolean"]
+ },
+ "google_analytics": {
+ "type": ["null", "string"]
+ },
+ "clicktale": {
+ "type": ["null", "string"]
+ },
+ "salesforce": {
+ "type": ["null", "object"],
+ "properties": {
+ "campaign": {
+ "type": ["null", "boolean"]
+ },
+ "notes": {
+ "type": ["null", "boolean"]
+ }
+ }
+ },
+ "capsule": {
+ "type": ["null", "object"],
+ "properties": {
+ "notes": {
+ "type": ["null", "boolean"]
+ }
+ }
+ }
+ }
+ },
+ "trigger_settings": {
+ "type": ["null", "object"],
+ "properties": {
+ "workflow_type": {
+ "type": ["null", "string"]
+ },
+ "workflow_title": {
+ "type": ["null", "string"]
+ },
+ "runtime": {
+ "type": ["null", "object"],
+ "properties": {
+ "days": {
+ "type": ["null", "array"],
+ "items": {
+ "type": ["null", "string"]
+ }
+ },
+ "hours": {
+ "type": ["null", "object"],
+ "properties": {
+ "type": {
+ "type": ["null", "string"]
+ }
+ }
+ }
+ }
+ },
+ "workflow_emails_count": {
+ "type": ["null", "number"]
+ }
+ }
+ },
+ "report_summary": {
+ "type": ["null", "object"],
+ "properties": {
+ "opens": {
+ "type": ["null", "number"]
+ },
+ "unique_opens": {
+ "type": ["null", "number"]
+ },
+ "open_rate": {
+ "type": ["null", "number"]
+ },
+ "clicks": {
+ "type": ["null", "number"]
+ },
+ "subscriber_clicks": {
+ "type": ["null", "number"]
+ },
+ "click_rate": {
+ "type": ["null", "number"]
+ }
+ }
+ },
+ "_links": {
+ "type": ["null", "array"],
+ "items": {
+ "type": ["null", "object"],
+ "properties": {
+ "rel": {
+ "type": ["null", "string"]
+ },
+ "href": {
+ "type": ["null", "string"]
+ },
+ "method": {
+ "type": ["null", "string"]
+ },
+ "targetSchema": {
+ "type": ["null", "string"]
+ },
+ "schema": {
+ "type": ["null", "string"]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/source.py b/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/source.py
index fff7fcb1cc50d..223f645778903 100644
--- a/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/source.py
+++ b/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/source.py
@@ -13,7 +13,7 @@
from airbyte_cdk.sources.streams.http.auth import TokenAuthenticator
from requests.auth import AuthBase
-from .streams import Campaigns, EmailActivity, Lists, Reports
+from .streams import Automations, Campaigns, EmailActivity, Lists, Reports
class MailChimpAuthenticator:
@@ -67,6 +67,7 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]:
return [
Lists(authenticator=authenticator),
Campaigns(authenticator=authenticator),
+ Automations(authenticator=authenticator),
EmailActivity(authenticator=authenticator, campaign_id=campaign_id),
Reports(authenticator=authenticator),
]
diff --git a/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/streams.py b/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/streams.py
index 1e78ce85d713f..1fc9e37aa55ca 100644
--- a/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/streams.py
+++ b/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/streams.py
@@ -129,6 +129,16 @@ def path(self, **kwargs) -> str:
return "campaigns"
+class Automations(IncrementalMailChimpStream):
+ """Doc Link: https://mailchimp.com/developer/marketing/api/automation/get-automation-info/"""
+
+ cursor_field = "create_time"
+ data_field = "automations"
+
+ def path(self, **kwargs) -> str:
+ return "automations"
+
+
class EmailActivity(IncrementalMailChimpStream):
cursor_field = "timestamp"
filter_field = "since"
@@ -188,6 +198,7 @@ def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapp
for activity_item in item.pop("activity", []):
yield {**item, **activity_item}
+
class Reports(IncrementalMailChimpStream):
cursor_field = "send_time"
data_field = "reports"
diff --git a/airbyte-integrations/connectors/source-mailchimp/unit_tests/test_source.py b/airbyte-integrations/connectors/source-mailchimp/unit_tests/test_source.py
index 16438c0677531..22625f877a66b 100644
--- a/airbyte-integrations/connectors/source-mailchimp/unit_tests/test_source.py
+++ b/airbyte-integrations/connectors/source-mailchimp/unit_tests/test_source.py
@@ -66,4 +66,4 @@ def test_wrong_config(wrong_config):
def test_streams_count(config):
streams = SourceMailchimp().streams(config)
- assert len(streams) == 4
+ assert len(streams) == 5
diff --git a/connectors.md b/connectors.md
index b105ea534c1ac..918e0b7e23c3c 100644
--- a/connectors.md
+++ b/connectors.md
@@ -133,7 +133,7 @@
| **Linnworks** |
| Source | airbyte/source-linnworks:0.1.5 | alpha | [docs](https://docs.airbyte.com/integrations/sources/linnworks) | [connectors/source/linnworks](https://github.com/airbytehq/airbyte/issues?q=is:open+is:issue+label:connectors/source/linnworks) | [source-linnworks](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-linnworks) | `7b86879e-26c5-4ef6-a5ce-2be5c7b46d1e` |
| **Lokalise** |
| Source | airbyte/source-lokalise:0.1.0 | alpha | [docs](https://docs.airbyte.com/integrations/sources/lokalise) | [connectors/source/lokalise](https://github.com/airbytehq/airbyte/issues?q=is:open+is:issue+label:connectors/source/lokalise) | [source-lokalise](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-lokalise) | `45e0b135-615c-40ac-b38e-e65b0944197f` |
| **Looker** |
| Source | airbyte/source-looker:0.2.8 | alpha | [docs](https://docs.airbyte.com/integrations/sources/looker) | [connectors/source/looker](https://github.com/airbytehq/airbyte/issues?q=is:open+is:issue+label:connectors/source/looker) | [source-looker](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-looker) | `00405b19-9768-4e0c-b1ae-9fc2ee2b2a8c` |
-| **Mailchimp** |
| Source | airbyte/source-mailchimp:0.3.5 | generally_available | [docs](https://docs.airbyte.com/integrations/sources/mailchimp) | [connectors/source/mailchimp](https://github.com/airbytehq/airbyte/issues?q=is:open+is:issue+label:connectors/source/mailchimp) | [source-mailchimp](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-mailchimp) | `b03a9f3e-22a5-11eb-adc1-0242ac120002` |
+| **Mailchimp** |
| Source | airbyte/source-mailchimp:0.4.0 | generally_available | [docs](https://docs.airbyte.com/integrations/sources/mailchimp) | [connectors/source/mailchimp](https://github.com/airbytehq/airbyte/issues?q=is:open+is:issue+label:connectors/source/mailchimp) | [source-mailchimp](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-mailchimp) | `b03a9f3e-22a5-11eb-adc1-0242ac120002` |
| **MailerLite** |
| Source | airbyte/source-mailerlite:0.1.0 | alpha | [docs](https://docs.airbyte.com/integrations/sources/mailerlite) | [connectors/source/mailerlite](https://github.com/airbytehq/airbyte/issues?q=is:open+is:issue+label:connectors/source/mailerlite) | [source-mailerlite](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-mailerlite) | `dc3b9003-2432-4e93-a7f4-4620b0f14674` |
| **MailerSend** |
| Source | airbyte/source-mailersend:0.1.0 | alpha | [docs](https://docs.airbyte.com/integrations/sources/mailersend) | [connectors/source/mailersend](https://github.com/airbytehq/airbyte/issues?q=is:open+is:issue+label:connectors/source/mailersend) | [source-mailersend](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-mailersend) | `2707d529-3c04-46eb-9c7e-40d4038df6f7` |
| **Mailgun** |
| Source | airbyte/source-mailgun:0.1.1 | alpha | [docs](https://docs.airbyte.com/integrations/sources/mailgun) | [connectors/source/mailgun](https://github.com/airbytehq/airbyte/issues?q=is:open+is:issue+label:connectors/source/mailgun) | [source-mailgun](https://github.com/airbytehq/airbyte/tree/master/airbyte-integrations/connectors/source-mailgun) | `5b9cb09e-1003-4f9c-983d-5779d1b2cd51` |
diff --git a/docs/integrations/sources/mailchimp.md b/docs/integrations/sources/mailchimp.md
index a16e8c5c777a2..e60096c9ca433 100644
--- a/docs/integrations/sources/mailchimp.md
+++ b/docs/integrations/sources/mailchimp.md
@@ -230,6 +230,7 @@ Now that you have set up the Mailchimp source connector, check out the following
| Version | Date | Pull Request | Subject |
|---------|------------|----------------------------------------------------------|----------------------------------------------------------------------------|
+| 0.4.0 | 2023-04-11 | [23290](https://github.com/airbytehq/airbyte/pull/23290) | Add Automations stream |
| 0.3.5 | 2023-02-28 | [23464](https://github.com/airbytehq/airbyte/pull/23464) | Add Reports stream |
| 0.3.4 | 2023-02-06 | [22405](https://github.com/airbytehq/airbyte/pull/22405) | Revert extra logging |
| 0.3.3 | 2023-02-01 | [22228](https://github.com/airbytehq/airbyte/pull/22228) | Add extra logging |
@@ -253,4 +254,3 @@ Now that you have set up the Mailchimp source connector, check out the following
| 0.2.1 | 2021-04-03 | [2726](https://github.com/airbytehq/airbyte/pull/2726) | Fix base connector versioning |
| 0.2.0 | 2021-03-09 | [2238](https://github.com/airbytehq/airbyte/pull/2238) | Protocol allows future/unknown properties |
| 0.1.4 | 2020-11-30 | [1046](https://github.com/airbytehq/airbyte/pull/1046) | Add connectors using an index YAML file |
-