Skip to content

Commit

Permalink
[enhancement] add include_custom_props to hubspot source (#404)
Browse files Browse the repository at this point in the history
* [enhancement] add include_custom_props to hubspot source

* make format
  • Loading branch information
cmpadden committed Mar 20, 2024
1 parent 9adf9c3 commit e060ed5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions sources/hubspot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
def hubspot(
api_key: str = dlt.secrets.value,
include_history: bool = False,
include_custom_props: bool = True,
) -> Sequence[DltResource]:
"""
A DLT source that retrieves data from the HubSpot API using the
Expand Down Expand Up @@ -86,7 +87,7 @@ def companies(
api_key: str = api_key,
include_history: bool = include_history,
props: Sequence[str] = DEFAULT_COMPANY_PROPS,
include_custom_props: bool = True,
include_custom_props: bool = include_custom_props,
) -> Iterator[TDataItems]:
"""Hubspot companies resource"""
yield from crm_objects(
Expand All @@ -102,7 +103,7 @@ def contacts(
api_key: str = api_key,
include_history: bool = include_history,
props: Sequence[str] = DEFAULT_CONTACT_PROPS,
include_custom_props: bool = True,
include_custom_props: bool = include_custom_props,
) -> Iterator[TDataItems]:
"""Hubspot contacts resource"""
yield from crm_objects(
Expand All @@ -118,7 +119,7 @@ def deals(
api_key: str = api_key,
include_history: bool = include_history,
props: Sequence[str] = DEFAULT_DEAL_PROPS,
include_custom_props: bool = True,
include_custom_props: bool = include_custom_props,
) -> Iterator[TDataItems]:
"""Hubspot deals resource"""
yield from crm_objects(
Expand All @@ -134,7 +135,7 @@ def tickets(
api_key: str = api_key,
include_history: bool = include_history,
props: Sequence[str] = DEFAULT_TICKET_PROPS,
include_custom_props: bool = True,
include_custom_props: bool = include_custom_props,
) -> Iterator[TDataItems]:
"""Hubspot tickets resource"""
yield from crm_objects(
Expand All @@ -150,7 +151,7 @@ def products(
api_key: str = api_key,
include_history: bool = include_history,
props: Sequence[str] = DEFAULT_PRODUCT_PROPS,
include_custom_props: bool = True,
include_custom_props: bool = include_custom_props,
) -> Iterator[TDataItems]:
"""Hubspot products resource"""
yield from crm_objects(
Expand All @@ -166,7 +167,7 @@ def quotes(
api_key: str = api_key,
include_history: bool = include_history,
props: Sequence[str] = DEFAULT_QUOTE_PROPS,
include_custom_props: bool = True,
include_custom_props: bool = include_custom_props,
) -> Iterator[TDataItems]:
"""Hubspot quotes resource"""
yield from crm_objects(
Expand Down

0 comments on commit e060ed5

Please sign in to comment.