Skip to content

Commit

Permalink
source-hubspot-native: add more email event types
Browse files Browse the repository at this point in the history
We've encountered even more email event types and expand the model to
include them.

Interestingly, the `SUPPRESSED` type isn't documented in HubSpot's docs
but we have seen it used in existing records. The similarly named
`SUPPRESSION` type is listed in the docs; I'm not sure if this is a typo
on HubSpot's end, or if they have an undocumented `SUPPRESSED` type. If
it turns out `SUPPRESSION` is a HubSpot typo, we can remove it later.
  • Loading branch information
Alex-Bair committed Oct 18, 2024
1 parent 8c9035c commit 2d18e9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source-hubspot-native/source_hubspot_native/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,12 @@ class EmailEvent(BaseDocument, extra="allow"):
"BOUNCE",
"OPEN",
"CLICK",
"PRINT",
"FORWARD",
"STATUSCHANGE",
"SPAMREPORT",
"SUPPRESSED",
"SUPPRESSION", # "SUPPRESSION" is documented in HubSpot's docs, but "SUPPRESSED" isn't. We've seen "SUPPRESSED" events, so "SUPPRESSION" events might not actually occur.
"UNBOUNCE", # This is not actually a type reported by HubSpot, but the absence of the "type" field means its an UNBOUNCE type.
] = Field(
default="UNBOUNCE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1128,10 +1128,12 @@
"BOUNCE",
"OPEN",
"CLICK",
"PRINT",
"FORWARD",
"STATUSCHANGE",
"SPAMREPORT",
"SUPPRESSED",
"SUPPRESSION",
"UNBOUNCE"
],
"title": "Type",
Expand Down

0 comments on commit 2d18e9f

Please sign in to comment.