Skip to content

Commit b85d0d1

Browse files
source-hubspot: ensure inline schemas, updated cdk, poetry (where possible) (#36642)
Co-authored-by: Christo Grabowski <[email protected]>
1 parent 8901f55 commit b85d0d1

37 files changed

+1730
-61
lines changed

airbyte-integrations/connectors/source-hubspot/metadata.yaml

+12-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
13-
dockerImageTag: 4.1.1
13+
dockerImageTag: 4.1.2
1414
dockerRepository: airbyte/source-hubspot
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/hubspot
1616
githubIssueLabel: source-hubspot
@@ -32,24 +32,31 @@ data:
3232
breakingChanges:
3333
4.0.0:
3434
message: >-
35-
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.
35+
This update brings extended schema with data type changes for the streams
36+
`Deals Property History` and `Companies Property History`. Users will need
37+
to refresh their schema and reset their streams after upgrading.
3638
upgradeDeadline: 2024-03-10
3739
scopedImpact:
3840
- scopeType: stream
3941
impactedScopes:
4042
["deals_property_history", "companies_property_history"]
4143
3.0.0:
4244
message: >-
43-
This update brings extended schema with data type changes for the Marketing Emails stream.
45+
This update brings extended schema with data type changes for the Marketing
46+
Emails stream.
4447
Users will need to refresh it and reset this stream after upgrading.
4548
upgradeDeadline: 2024-02-12
4649
scopedImpact:
4750
- scopeType: stream
4851
impactedScopes: ["marketing_emails"]
4952
2.0.0:
5053
message: >-
51-
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.
52-
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`.
54+
This version replaces the `Property History` stream in favor of creating
55+
3 different streams: `Contacts`, `Companies`, and `Deals`, which can now
56+
all fetch their property history.
57+
It will affect only users who use `Property History` stream, who will need
58+
to fix schema conflicts and sync `Contacts Property History` stream instead
59+
of `Property History`.
5360
upgradeDeadline: 2024-01-15
5461
suggestedStreams:
5562
streams:

airbyte-integrations/connectors/source-hubspot/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "4.1.1"
6+
version = "4.1.2"
77
name = "source-hubspot"
88
description = "Source implementation for HubSpot."
99
authors = [ "Airbyte <[email protected]>",]

airbyte-integrations/connectors/source-hubspot/source_hubspot/schemas/campaigns.json

+48
Original file line numberDiff line numberDiff line change
@@ -3,149 +3,197 @@
33
"type": ["null", "object"],
44
"properties": {
55
"appId": {
6+
"description": "The unique identifier of the application associated with the campaign data.",
67
"type": ["null", "integer"]
78
},
89
"appName": {
10+
"description": "The name of the application associated with the campaign data.",
911
"type": ["null", "string"]
1012
},
1113
"contentId": {
14+
"description": "The unique identifier of the content associated with the campaign.",
1215
"type": ["null", "integer"]
1316
},
1417
"counters": {
18+
"description": "Object containing different counters related to the campaign's performance.",
1519
"type": ["null", "object"],
1620
"properties": {
1721
"open": {
22+
"description": "Number of email opens.",
1823
"type": ["null", "integer"]
1924
},
2025
"processed": {
26+
"description": "Number of emails processed by the campaign.",
2127
"type": ["null", "integer"]
2228
},
2329
"sent": {
30+
"description": "Number of emails sent.",
2431
"type": ["null", "integer"]
2532
},
2633
"deferred": {
34+
"description": "Number of deferred emails.",
2735
"type": ["null", "integer"]
2836
},
2937
"unsubscribed": {
38+
"description": "Number of recipients unsubscribed from the campaign.",
3039
"type": ["null", "integer"]
3140
},
3241
"statuschange": {
42+
"description": "Number of status changes related to the campaign.",
3343
"type": ["null", "integer"]
3444
},
3545
"bounce": {
46+
"description": "Number of bounced emails.",
3647
"type": ["null", "integer"]
3748
},
3849
"mta_dropped": {
50+
"description": "Number of emails dropped at the MTA level.",
3951
"type": ["null", "integer"]
4052
},
4153
"dropped": {
54+
"description": "Number of dropped emails.",
4255
"type": ["null", "integer"]
4356
},
4457
"suppressed": {
58+
"description": "Number of emails suppressed from sending.",
4559
"type": ["null", "integer"]
4660
},
4761
"click": {
62+
"description": "Number of clicks on the campaign.",
4863
"type": ["null", "integer"]
4964
},
5065
"delivered": {
66+
"description": "Number of successfully delivered emails.",
5167
"type": ["null", "integer"]
5268
},
5369
"forward": {
70+
"description": "Number of emails forwarded by recipients.",
5471
"type": ["null", "integer"]
5572
},
5673
"print": {
74+
"description": "Number of emails printed by recipients.",
5775
"type": ["null", "integer"]
5876
},
5977
"reply": {
78+
"description": "Number of replies received to the campaign.",
6079
"type": ["null", "integer"]
6180
},
6281
"spamreport": {
82+
"description": "Number of spam reports received for the campaign.",
6383
"type": ["null", "integer"]
6484
}
6585
}
6686
},
6787
"counters_open": {
88+
"description": "Alias for the open counter value.",
6889
"type": ["null", "integer"]
6990
},
7091
"counters_processed": {
92+
"description": "Alias for the processed counter value.",
7193
"type": ["null", "integer"]
7294
},
7395
"counters_sent": {
96+
"description": "Alias for the sent counter value.",
7497
"type": ["null", "integer"]
7598
},
7699
"counters_deferred": {
100+
"description": "Alias for the deferred counter value.",
77101
"type": ["null", "integer"]
78102
},
79103
"counters_unsubscribed": {
104+
"description": "Alias for the unsubscribed counter value.",
80105
"type": ["null", "integer"]
81106
},
82107
"counters_statuschange": {
108+
"description": "Alias for the status change counter value.",
83109
"type": ["null", "integer"]
84110
},
85111
"counters_bounce": {
112+
"description": "Alias for the bounce counter value.",
86113
"type": ["null", "integer"]
87114
},
88115
"counters_mta_dropped": {
116+
"description": "Alias for the MTA dropped counter value.",
89117
"type": ["null", "integer"]
90118
},
91119
"counters_dropped": {
120+
"description": "Alias for the dropped counter value.",
92121
"type": ["null", "integer"]
93122
},
94123
"counters_suppressed": {
124+
"description": "Alias for the suppressed counter value.",
95125
"type": ["null", "integer"]
96126
},
97127
"counters_click": {
128+
"description": "Alias for the click counter value.",
98129
"type": ["null", "integer"]
99130
},
100131
"counters_delivered": {
132+
"description": "Alias for the delivered counter value.",
101133
"type": ["null", "integer"]
102134
},
103135
"counters_forward": {
136+
"description": "Alias for the forward counter value.",
104137
"type": ["null", "integer"]
105138
},
106139
"counters_print": {
140+
"description": "Alias for the print counter value.",
107141
"type": ["null", "integer"]
108142
},
109143
"counters_reply": {
144+
"description": "Alias for the reply counter value.",
110145
"type": ["null", "integer"]
111146
},
112147
"counters_spamreport": {
148+
"description": "Alias for the spam report counter value.",
113149
"type": ["null", "integer"]
114150
},
115151
"id": {
152+
"description": "The unique identifier of the campaign.",
116153
"type": ["null", "integer"]
117154
},
118155
"lastProcessingFinishedAt": {
156+
"description": "Timestamp indicating when the last processing of the campaign was finished.",
119157
"type": ["null", "integer"]
120158
},
121159
"lastProcessingStateChangeAt": {
160+
"description": "Timestamp indicating the last state change time of the processing state.",
122161
"type": ["null", "integer"]
123162
},
124163
"lastProcessingStartedAt": {
164+
"description": "Timestamp indicating when the last processing of the campaign started.",
125165
"type": ["null", "integer"]
126166
},
127167
"processingState": {
168+
"description": "Current processing state of the campaign.",
128169
"type": ["null", "string"]
129170
},
130171
"name": {
172+
"description": "The name of the campaign.",
131173
"type": ["null", "string"]
132174
},
133175
"numIncluded": {
176+
"description": "Number of recipients included in the campaign.",
134177
"type": ["null", "integer"]
135178
},
136179
"numQueued": {
180+
"description": "Number of emails queued for sending.",
137181
"type": ["null", "integer"]
138182
},
139183
"subType": {
184+
"description": "Subtype of the campaign.",
140185
"type": ["null", "string"]
141186
},
142187
"subject": {
188+
"description": "The subject line of the campaign.",
143189
"type": ["null", "string"]
144190
},
145191
"type": {
192+
"description": "Type classification of the campaign.",
146193
"type": ["null", "string"]
147194
},
148195
"lastUpdatedTime": {
196+
"description": "Timestamp indicating when the campaign data was last updated.",
149197
"type": ["null", "integer"]
150198
}
151199
}

airbyte-integrations/connectors/source-hubspot/source_hubspot/schemas/companies.json

+6
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,28 @@
33
"type": ["null", "object"],
44
"properties": {
55
"id": {
6+
"description": "Unique identifier for the company",
67
"type": ["null", "string"]
78
},
89
"createdAt": {
10+
"description": "Date and time when the company was created",
911
"type": ["null", "string"],
1012
"format": "date-time"
1113
},
1214
"updatedAt": {
15+
"description": "Date and time when the company was last updated",
1316
"type": ["null", "string"],
1417
"format": "date-time"
1518
},
1619
"archived": {
20+
"description": "Indicates whether the company is archived or active",
1721
"type": ["null", "boolean"]
1822
},
1923
"contacts": {
24+
"description": "List of contacts associated with the company",
2025
"type": ["null", "array"],
2126
"items": {
27+
"description": "Details of individual contacts",
2228
"type": "string"
2329
}
2430
}

airbyte-integrations/connectors/source-hubspot/source_hubspot/schemas/companies_property_history.json

+8
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,37 @@
44
"additionalProperties": true,
55
"properties": {
66
"updatedByUserId": {
7+
"description": "The user ID of the user who initiated the property update.",
78
"type": ["null", "number"]
89
},
910
"timestamp": {
11+
"description": "The date and time when the property update occurred.",
1012
"type": ["null", "string"],
1113
"format": "date-time",
1214
"airbyte_type": "timestamp_with_timezone"
1315
},
1416
"property": {
17+
"description": "The specific property that was updated in the company record.",
1518
"type": ["null", "string"]
1619
},
1720
"companyId": {
21+
"description": "The unique identifier of the company to which the property history record belongs.",
1822
"type": ["null", "string"]
1923
},
2024
"sourceType": {
25+
"description": "The type of the source that updated the property in the company record.",
2126
"type": ["null", "string"]
2227
},
2328
"sourceId": {
29+
"description": "The identifier of the source that updated the property in the company record.",
2430
"type": ["null", "string"]
2531
},
2632
"value": {
33+
"description": "The new value of the property after the update.",
2734
"type": ["null", "string"]
2835
},
2936
"archived": {
37+
"description": "Flag indicating if the company property history record is archived or not.",
3038
"type": ["null", "boolean"]
3139
}
3240
}

0 commit comments

Comments
 (0)