@hogsend/cli 0.13.2 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -13992,6 +13992,17 @@ var trackedLinks = pgTable(
13992
13992
  emailSendId: uuid("email_send_id").notNull().references(() => emailSends.id, { onDelete: "cascade" }),
13993
13993
  originalUrl: text("original_url").notNull(),
13994
13994
  clickCount: integer("click_count").notNull().default(0),
13995
+ // Semantic link metadata, lifted from the template's data-hs-* attributes
13996
+ // at send time. NULL for plain tracked links. `event` is the consumer event
13997
+ // name emitted at click time; `eventProperties` its scalar payload.
13998
+ event: text("event"),
13999
+ eventProperties: jsonb("event_properties").$type(),
14000
+ // Set exactly once by the click route when the semantic event is emitted —
14001
+ // the per-link emit-once gate today, and the provisional-then-confirm
14002
+ // anchor later (a confirm flow can re-emit without a migration).
14003
+ semanticEmittedAt: timestamp("semantic_emitted_at", {
14004
+ withTimezone: true
14005
+ }),
13995
14006
  ...timestamps
13996
14007
  },
13997
14008
  (table) => [index("tracked_links_email_send_id_idx").on(table.emailSendId)]
@@ -15104,6 +15115,7 @@ var WEBHOOK_EVENT_TYPES = [
15104
15115
  "email.delivered",
15105
15116
  "email.opened",
15106
15117
  "email.clicked",
15118
+ "email.action",
15107
15119
  "email.bounced",
15108
15120
  "email.complained",
15109
15121
  "journey.completed",