Skip to content

Commit

Permalink
source-hubspot: ensure inline schemas, updated cdk, poetry (where pos…
Browse files Browse the repository at this point in the history
…sible) (#36642)

Co-authored-by: Christo Grabowski <108154848+ChristoGrab@users.noreply.github.com>
  • Loading branch information
bleonard and ChristoGrab committed Apr 30, 2024
1 parent 8901f55 commit b85d0d1
Show file tree
Hide file tree
Showing 37 changed files with 1,730 additions and 61 deletions.
17 changes: 12 additions & 5 deletions airbyte-integrations/connectors/source-hubspot/metadata.yaml
Expand Up @@ -10,7 +10,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
dockerImageTag: 4.1.1
dockerImageTag: 4.1.2
dockerRepository: airbyte/source-hubspot
documentationUrl: https://docs.airbyte.com/integrations/sources/hubspot
githubIssueLabel: source-hubspot
Expand All @@ -32,24 +32,31 @@ data:
breakingChanges:
4.0.0:
message: >-
This update brings extended schema with data type changes for the streams `Deals Property History` and `Companies Property History`. Users will need to refresh their schema and reset their streams after upgrading.
This update brings extended schema with data type changes for the streams
`Deals Property History` and `Companies Property History`. Users will need
to refresh their schema and reset their streams after upgrading.
upgradeDeadline: 2024-03-10
scopedImpact:
- scopeType: stream
impactedScopes:
["deals_property_history", "companies_property_history"]
3.0.0:
message: >-
This update brings extended schema with data type changes for the Marketing Emails stream.
This update brings extended schema with data type changes for the Marketing
Emails stream.
Users will need to refresh it and reset this stream after upgrading.
upgradeDeadline: 2024-02-12
scopedImpact:
- scopeType: stream
impactedScopes: ["marketing_emails"]
2.0.0:
message: >-
This version replaces the `Property History` stream in favor of creating 3 different streams: `Contacts`, `Companies`, and `Deals`, which can now all fetch their property history.
It will affect only users who use `Property History` stream, who will need to fix schema conflicts and sync `Contacts Property History` stream instead of `Property History`.
This version replaces the `Property History` stream in favor of creating
3 different streams: `Contacts`, `Companies`, and `Deals`, which can now
all fetch their property history.
It will affect only users who use `Property History` stream, who will need
to fix schema conflicts and sync `Contacts Property History` stream instead
of `Property History`.
upgradeDeadline: 2024-01-15
suggestedStreams:
streams:
Expand Down
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "4.1.1"
version = "4.1.2"
name = "source-hubspot"
description = "Source implementation for HubSpot."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand Down
Expand Up @@ -3,149 +3,197 @@
"type": ["null", "object"],
"properties": {
"appId": {
"description": "The unique identifier of the application associated with the campaign data.",
"type": ["null", "integer"]
},
"appName": {
"description": "The name of the application associated with the campaign data.",
"type": ["null", "string"]
},
"contentId": {
"description": "The unique identifier of the content associated with the campaign.",
"type": ["null", "integer"]
},
"counters": {
"description": "Object containing different counters related to the campaign's performance.",
"type": ["null", "object"],
"properties": {
"open": {
"description": "Number of email opens.",
"type": ["null", "integer"]
},
"processed": {
"description": "Number of emails processed by the campaign.",
"type": ["null", "integer"]
},
"sent": {
"description": "Number of emails sent.",
"type": ["null", "integer"]
},
"deferred": {
"description": "Number of deferred emails.",
"type": ["null", "integer"]
},
"unsubscribed": {
"description": "Number of recipients unsubscribed from the campaign.",
"type": ["null", "integer"]
},
"statuschange": {
"description": "Number of status changes related to the campaign.",
"type": ["null", "integer"]
},
"bounce": {
"description": "Number of bounced emails.",
"type": ["null", "integer"]
},
"mta_dropped": {
"description": "Number of emails dropped at the MTA level.",
"type": ["null", "integer"]
},
"dropped": {
"description": "Number of dropped emails.",
"type": ["null", "integer"]
},
"suppressed": {
"description": "Number of emails suppressed from sending.",
"type": ["null", "integer"]
},
"click": {
"description": "Number of clicks on the campaign.",
"type": ["null", "integer"]
},
"delivered": {
"description": "Number of successfully delivered emails.",
"type": ["null", "integer"]
},
"forward": {
"description": "Number of emails forwarded by recipients.",
"type": ["null", "integer"]
},
"print": {
"description": "Number of emails printed by recipients.",
"type": ["null", "integer"]
},
"reply": {
"description": "Number of replies received to the campaign.",
"type": ["null", "integer"]
},
"spamreport": {
"description": "Number of spam reports received for the campaign.",
"type": ["null", "integer"]
}
}
},
"counters_open": {
"description": "Alias for the open counter value.",
"type": ["null", "integer"]
},
"counters_processed": {
"description": "Alias for the processed counter value.",
"type": ["null", "integer"]
},
"counters_sent": {
"description": "Alias for the sent counter value.",
"type": ["null", "integer"]
},
"counters_deferred": {
"description": "Alias for the deferred counter value.",
"type": ["null", "integer"]
},
"counters_unsubscribed": {
"description": "Alias for the unsubscribed counter value.",
"type": ["null", "integer"]
},
"counters_statuschange": {
"description": "Alias for the status change counter value.",
"type": ["null", "integer"]
},
"counters_bounce": {
"description": "Alias for the bounce counter value.",
"type": ["null", "integer"]
},
"counters_mta_dropped": {
"description": "Alias for the MTA dropped counter value.",
"type": ["null", "integer"]
},
"counters_dropped": {
"description": "Alias for the dropped counter value.",
"type": ["null", "integer"]
},
"counters_suppressed": {
"description": "Alias for the suppressed counter value.",
"type": ["null", "integer"]
},
"counters_click": {
"description": "Alias for the click counter value.",
"type": ["null", "integer"]
},
"counters_delivered": {
"description": "Alias for the delivered counter value.",
"type": ["null", "integer"]
},
"counters_forward": {
"description": "Alias for the forward counter value.",
"type": ["null", "integer"]
},
"counters_print": {
"description": "Alias for the print counter value.",
"type": ["null", "integer"]
},
"counters_reply": {
"description": "Alias for the reply counter value.",
"type": ["null", "integer"]
},
"counters_spamreport": {
"description": "Alias for the spam report counter value.",
"type": ["null", "integer"]
},
"id": {
"description": "The unique identifier of the campaign.",
"type": ["null", "integer"]
},
"lastProcessingFinishedAt": {
"description": "Timestamp indicating when the last processing of the campaign was finished.",
"type": ["null", "integer"]
},
"lastProcessingStateChangeAt": {
"description": "Timestamp indicating the last state change time of the processing state.",
"type": ["null", "integer"]
},
"lastProcessingStartedAt": {
"description": "Timestamp indicating when the last processing of the campaign started.",
"type": ["null", "integer"]
},
"processingState": {
"description": "Current processing state of the campaign.",
"type": ["null", "string"]
},
"name": {
"description": "The name of the campaign.",
"type": ["null", "string"]
},
"numIncluded": {
"description": "Number of recipients included in the campaign.",
"type": ["null", "integer"]
},
"numQueued": {
"description": "Number of emails queued for sending.",
"type": ["null", "integer"]
},
"subType": {
"description": "Subtype of the campaign.",
"type": ["null", "string"]
},
"subject": {
"description": "The subject line of the campaign.",
"type": ["null", "string"]
},
"type": {
"description": "Type classification of the campaign.",
"type": ["null", "string"]
},
"lastUpdatedTime": {
"description": "Timestamp indicating when the campaign data was last updated.",
"type": ["null", "integer"]
}
}
Expand Down
Expand Up @@ -3,22 +3,28 @@
"type": ["null", "object"],
"properties": {
"id": {
"description": "Unique identifier for the company",
"type": ["null", "string"]
},
"createdAt": {
"description": "Date and time when the company was created",
"type": ["null", "string"],
"format": "date-time"
},
"updatedAt": {
"description": "Date and time when the company was last updated",
"type": ["null", "string"],
"format": "date-time"
},
"archived": {
"description": "Indicates whether the company is archived or active",
"type": ["null", "boolean"]
},
"contacts": {
"description": "List of contacts associated with the company",
"type": ["null", "array"],
"items": {
"description": "Details of individual contacts",
"type": "string"
}
}
Expand Down
Expand Up @@ -4,29 +4,37 @@
"additionalProperties": true,
"properties": {
"updatedByUserId": {
"description": "The user ID of the user who initiated the property update.",
"type": ["null", "number"]
},
"timestamp": {
"description": "The date and time when the property update occurred.",
"type": ["null", "string"],
"format": "date-time",
"airbyte_type": "timestamp_with_timezone"
},
"property": {
"description": "The specific property that was updated in the company record.",
"type": ["null", "string"]
},
"companyId": {
"description": "The unique identifier of the company to which the property history record belongs.",
"type": ["null", "string"]
},
"sourceType": {
"description": "The type of the source that updated the property in the company record.",
"type": ["null", "string"]
},
"sourceId": {
"description": "The identifier of the source that updated the property in the company record.",
"type": ["null", "string"]
},
"value": {
"description": "The new value of the property after the update.",
"type": ["null", "string"]
},
"archived": {
"description": "Flag indicating if the company property history record is archived or not.",
"type": ["null", "boolean"]
}
}
Expand Down

0 comments on commit b85d0d1

Please sign in to comment.