From 58d81b25005b883394cd346eb27d6527f7b2430a Mon Sep 17 00:00:00 2001 From: Marcos Marx Date: Wed, 20 Oct 2021 21:02:18 -0300 Subject: [PATCH] Publish PR 5840: hubspot connector add stream (#7220) * Add new marketing emails (with statistics) stream * Update docs and changelog * bump version in config files * run format Co-authored-by: n0rritt --- .../36c891d9-4bd9-43ac-bad2-10e12756272c.json | 2 +- .../resources/seed/source_definitions.yaml | 2 +- .../schemas/marketing_emails.json | 206 ++++-------------- .../source_smartsheets/source.py | 1 - 4 files changed, 45 insertions(+), 166 deletions(-) diff --git a/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/36c891d9-4bd9-43ac-bad2-10e12756272c.json b/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/36c891d9-4bd9-43ac-bad2-10e12756272c.json index c41f60b64366..9b8b8dbbce1f 100644 --- a/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/36c891d9-4bd9-43ac-bad2-10e12756272c.json +++ b/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/36c891d9-4bd9-43ac-bad2-10e12756272c.json @@ -2,7 +2,7 @@ "sourceDefinitionId": "36c891d9-4bd9-43ac-bad2-10e12756272c", "name": "Hubspot", "dockerRepository": "airbyte/source-hubspot", - "dockerImageTag": "0.1.17", + "dockerImageTag": "0.1.18", "documentationUrl": "https://docs.airbyte.io/integrations/sources/hubspot", "icon": "hubspot.svg" } diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml index 96565960fe58..c544295a1260 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -161,7 +161,7 @@ - sourceDefinitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c name: Hubspot dockerRepository: airbyte/source-hubspot - dockerImageTag: 0.1.17 + dockerImageTag: 0.1.18 documentationUrl: https://docs.airbyte.io/integrations/sources/hubspot icon: hubspot.svg sourceType: api diff --git a/airbyte-integrations/connectors/source-hubspot/source_hubspot/schemas/marketing_emails.json b/airbyte-integrations/connectors/source-hubspot/source_hubspot/schemas/marketing_emails.json index 29cff48bfc5b..b2cdd4573c6f 100644 --- a/airbyte-integrations/connectors/source-hubspot/source_hubspot/schemas/marketing_emails.json +++ b/airbyte-integrations/connectors/source-hubspot/source_hubspot/schemas/marketing_emails.json @@ -35,10 +35,7 @@ "allEmailCampaignIds": { "type": ["null", "array"], "items": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] } }, "analyticsPageId": { @@ -162,7 +159,7 @@ } }, "mailingListsIncluded": { - "type": ["null", "string"], + "type": ["null", "array"], "items": { "type": ["null", "integer"] } @@ -189,7 +186,7 @@ "type": ["null", "string"] }, "primaryEmailCampaignId": { - "type": ["null", "string"] + "type": ["null", "integer"] }, "processingStatus": { "type": ["null", "string"] @@ -222,252 +219,135 @@ "type": ["null", "string"] }, "smartEmailFields": { - "type": ["null", "string"] + "type": ["null", "object"] }, "state": { "type": ["null", "string"] }, "stats": { - "type": [ - "null", - "object" - ], + "type": ["null", "object"], "properties": { "counters": { - "type": [ - "null", - "object" - ], + "type": ["null", "object"], "properties": { "open": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "delivered": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "bounce": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "unsubscribed": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "click": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "dropped": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "selected": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "spamreport": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "suppressed": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "hardbounced": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "softbounced": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "pending": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "contactslost": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "notsent": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] } } }, "deviceBreakdown": { - "type": [ - "null", - "object" - ], + "type": ["null", "object"], "properties": { "open_device_type": { - "type": [ - "null", - "object" - ], + "type": ["null", "object"], "properties": { "computer": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "mobile": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "unknown": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] } } }, "click_device_type": { - "type": [ - "null", - "object" - ], + "type": ["null", "object"], "properties": { "computer": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "mobile": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] }, "unknown": { - "type": [ - "null", - "integer" - ] + "type": ["null", "integer"] } } } } }, "failedToLoad": { - "type": [ - "null", - "boolean" - ] + "type": ["null", "boolean"] }, "ratios": { - "type": [ - "null", - "object" - ], + "type": ["null", "object"], "properties": { "clickratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "clickthroughratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "deliveredratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "openratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "unsubscribedratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "spamreportratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "bounceratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "hardbounceratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "softbounceratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "contactslostratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "pendingratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] }, "notsentratio": { - "type": [ - "null", - "number" - ] + "type": ["null", "number"] } } } diff --git a/airbyte-integrations/connectors/source-smartsheets/source_smartsheets/source.py b/airbyte-integrations/connectors/source-smartsheets/source_smartsheets/source.py index 56f80fd8e7fc..7fb968465255 100644 --- a/airbyte-integrations/connectors/source-smartsheets/source_smartsheets/source.py +++ b/airbyte-integrations/connectors/source-smartsheets/source_smartsheets/source.py @@ -19,7 +19,6 @@ Status, Type, ) - # helpers from airbyte_cdk.sources import Source