Skip to content

Commit 0e96158

Browse files
committed
add calls, emails, and meetings
1 parent ec434b8 commit 0e96158

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

sources/hubspot/settings.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Hubspot source settings and constants"""
2+
23
from typing import Dict
34
from dlt.common import pendulum
45
from dlt.common.data_types import TDataType
@@ -9,6 +10,9 @@
910
CRM_CONTACTS_ENDPOINT = "/crm/v3/objects/contacts"
1011
CRM_COMPANIES_ENDPOINT = "/crm/v3/objects/companies"
1112
CRM_DEALS_ENDPOINT = "/crm/v3/objects/deals"
13+
CRM_CALLS_ENDPOINT = "/crm/v3/objects/calls"
14+
CRM_EMAILS_ENDPOINT = "/crm/v3/objects/emails"
15+
CRM_MEETINGS_ENDPOINT = "/crm/v3/objects/meetings"
1216
CRM_PRODUCTS_ENDPOINT = "/crm/v3/objects/products"
1317
CRM_TICKETS_ENDPOINT = "/crm/v3/objects/tickets"
1418
CRM_QUOTES_ENDPOINT = "/crm/v3/objects/quotes"
@@ -23,6 +27,9 @@
2327
"contact": CRM_CONTACTS_ENDPOINT,
2428
"company": CRM_COMPANIES_ENDPOINT,
2529
"deal": CRM_DEALS_ENDPOINT,
30+
"call": CRM_CALLS_ENDPOINT,
31+
"email": CRM_EMAILS_ENDPOINT,
32+
"meeting": CRM_MEETINGS_ENDPOINT,
2633
"product": CRM_PRODUCTS_ENDPOINT,
2734
"ticket": CRM_TICKETS_ENDPOINT,
2835
"quote": CRM_QUOTES_ENDPOINT,
@@ -33,6 +40,9 @@
3340
"contact": ["deals", "products", "tickets", "quotes"],
3441
"company": ["contacts", "deals", "products", "tickets", "quotes"],
3542
"deal": [],
43+
"call": [],
44+
"email": [],
45+
"meeting": [],
3646
"product": [],
3747
"ticket": [],
3848
"quote": [],
@@ -45,6 +55,9 @@
4555
"companies": "company",
4656
"contacts": "contact",
4757
"deals": "deal",
58+
"calls": "call",
59+
"emails": "email",
60+
"meetings": "meeting",
4861
"tickets": "ticket",
4962
"products": "product",
5063
"quotes": "quote",
@@ -82,6 +95,39 @@
8295
"pipeline",
8396
]
8497

98+
DEFAULT_CALL_PROPS = [
99+
"hs_object_id",
100+
"hs_createdate",
101+
"hs_call_title",
102+
"hs_body_preview",
103+
"hs_activity_type",
104+
"hubspot_owner_id",
105+
"hs_lastmodifieddate",
106+
]
107+
108+
DEFAULT_EMAIL_PROPS = [
109+
"hs_object_id",
110+
"hs_createdate",
111+
"hs_email_subject",
112+
"hs_body_preview",
113+
"hs_email_from_email",
114+
"hs_email_to_email",
115+
"hs_email_status",
116+
"hubspot_owner_id",
117+
"hs_lastmodifieddate",
118+
]
119+
120+
DEFAULT_MEETING_PROPS = [
121+
"hs_object_id",
122+
"hs_createdate",
123+
"hs_meeting_title",
124+
"hs_body_preview",
125+
"hs_meeting_start_time",
126+
"hs_activity_type",
127+
"hubspot_owner_id",
128+
"hs_lastmodifieddate",
129+
]
130+
85131
DEFAULT_TICKET_PROPS = [
86132
"createdate",
87133
"content",
@@ -117,6 +163,9 @@
117163
"company": DEFAULT_COMPANY_PROPS,
118164
"contact": DEFAULT_CONTACT_PROPS,
119165
"deal": DEFAULT_DEAL_PROPS,
166+
"call": DEFAULT_CALL_PROPS,
167+
"email": DEFAULT_EMAIL_PROPS,
168+
"meeting": DEFAULT_MEETING_PROPS,
120169
"ticket": DEFAULT_TICKET_PROPS,
121170
"product": DEFAULT_PRODUCT_PROPS,
122171
"quote": DEFAULT_QUOTE_PROPS,
@@ -126,6 +175,9 @@
126175
"company": "hs_lastmodifieddate",
127176
"contact": "lastmodifieddate",
128177
"deal": "hs_lastmodifieddate",
178+
"call": "hs_lastmodifieddate",
179+
"email": "hs_lastmodifieddate",
180+
"meeting": "hs_lastmodifieddate",
129181
"ticket": "hs_lastmodifieddate",
130182
"product": "hs_lastmodifieddate",
131183
"quote": "hs_lastmodifieddate",

0 commit comments

Comments
 (0)