Skip to content

Commit

Permalink
fix types and add docs links
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 committed Mar 25, 2024
1 parent 8849f92 commit 1ff44d3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tap_gohighlevel/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
class ContactsStream(GoHighLevelStream):
"""Contacts stream."""

# https://highlevel.stoplight.io/docs/integrations/ab55933a57f6f-get-contacts
name = "contacts"
path = "contacts/"
primary_keys: t.ClassVar[list[str]] = ["id"]
Expand All @@ -30,7 +31,7 @@ def _get_default_params(self, context) -> dict | None:
th.Property("locationId", th.StringType),
th.Property("businessId", th.StringType),
th.Property("attributions", th.ArrayType(th.ObjectType())),
th.Property("followers", th.StringType),
th.Property("followers", th.ArrayType(th.StringType)),
th.Property("email", th.StringType),
th.Property("country", th.StringType),
th.Property("dndSettings", th.ObjectType()),
Expand Down Expand Up @@ -66,6 +67,7 @@ def _get_default_params(self, context) -> dict | None:
class CalendarsStream(GoHighLevelStream):
"""Calendars stream."""

# https://highlevel.stoplight.io/docs/integrations/e55dec1be7bee-get-calendars
name = "calendars"
path = "calendars/"
primary_keys: t.ClassVar[list[str]] = ["id"]
Expand Down Expand Up @@ -130,7 +132,7 @@ def _get_default_params(self, context) -> dict | None:
class OpportunitiesStream(GoHighLevelStream):
"""Opportunities stream."""

# https://highlevel..io/docs/integrations/a163e98c45b8d-search-opportunity
# https://highlevel.stoplight.io/docs/integrations/a163e98c45b8d-search-opportunity
name = "opportunities"
path = "opportunities/search"
primary_keys: t.ClassVar[list[str]] = ["id"]
Expand Down Expand Up @@ -243,9 +245,9 @@ def _get_default_params(self, context) -> dict | None:
th.Property("contactName", th.StringType),
th.Property("email", th.StringType),
th.Property("phone", th.StringType),
th.Property("dateAdded", th.DateTimeType),
th.Property("dateUpdated", th.DateTimeType),
th.Property("lastMessageDate", th.DateTimeType),
th.Property("dateAdded", th.IntegerType),
th.Property("dateUpdated", th.IntegerType),
th.Property("lastMessageDate", th.IntegerType),
th.Property("companyName", th.StringType),
th.Property("tags", th.ArrayType(th.StringType)),
th.Property("scoring", th.ArrayType(th.StringType)),
Expand Down

0 comments on commit 1ff44d3

Please sign in to comment.