Skip to content

Commit

Permalink
🎉 add associations companies to deals, ticket and contacts stream (fr…
Browse files Browse the repository at this point in the history
…om PR 9027) (#10631)

* Added associations to some CRM Object streams in Hubspot connector

* Added associations in the relevant schemas

* fix eof

* bump connector version

Co-authored-by: ksoenandar <[email protected]>
  • Loading branch information
marcosmarxm and ksoenandar authored Feb 24, 2022
1 parent fd74769 commit 47c4f23
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
- name: HubSpot
sourceDefinitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
dockerRepository: airbyte/source-hubspot
dockerImageTag: 0.1.43
dockerImageTag: 0.1.44
documentationUrl: https://docs.airbyte.io/integrations/sources/hubspot
icon: hubspot.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3281,7 +3281,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-hubspot:0.1.43"
- dockerImage: "airbyte/source-hubspot:0.1.44"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/hubspot"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-hubspot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_hubspot ./source_hubspot
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.43
LABEL io.airbyte.version=0.1.44
LABEL io.airbyte.name=airbyte/source-hubspot
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
},
"archived": {
"type": ["null", "boolean"]
},
"companies": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
"companies": {
"type": ["null", "array"],
"items": {
"type": ["null", "integer"]
"type": ["null", "string"]
}
},
"contacts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"type": ["null", "integer"]
}
},
"companies": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"deals": {
"type": ["null", "array"],
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ class Deals(CRMSearchStream):

entity = "deal"
last_modified_field = "hs_lastmodifieddate"
associations = ["contacts"]
associations = ["contacts", "companies"]

def __init__(self, **kwargs):
super().__init__(**kwargs)
Expand Down Expand Up @@ -1288,7 +1288,7 @@ class Companies(CRMSearchStream):
class Contacts(CRMSearchStream):
entity = "contact"
last_modified_field = "lastmodifieddate"
associations = ["contacts"]
associations = ["contacts", "companies"]


class EngagementsCalls(CRMSearchStream):
Expand Down Expand Up @@ -1336,7 +1336,7 @@ class Products(CRMObjectIncrementalStream):

class Tickets(CRMObjectIncrementalStream):
entity = "ticket"
associations = ["contacts", "deals"]
associations = ["contacts", "deals", "companies"]


class Quotes(CRMObjectIncrementalStream):
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/hubspot.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ If you are using Oauth, most of the streams require the appropriate [scopes](htt

| Version | Date | Pull Request | Subject |
|:--------|:-----------| :--- |:-----------------------------------------------------------------------------------------------------------------------------------------------|
| 0.1.44 | 2022-02-24 | [9027](https://github.com/airbytehq/airbyte/pull/9027) | Add associations companies to deals, ticket and contact stream |
| 0.1.43 | 2022-02-24 | [10576](https://github.com/airbytehq/airbyte/pull/10576) | Cast timestamp to date/datetime|
| 0.1.42 | 2022-02-22 | [10492](https://github.com/airbytehq/airbyte/pull/10492) | Add `date-time` format to datetime fields|
| 0.1.41 | 2022-02-21 | [10177](https://github.com/airbytehq/airbyte/pull/10177) | Migrate to CDK |
Expand Down

0 comments on commit 47c4f23

Please sign in to comment.