/*** * * SaaSquatch Type Definitions * * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. * * Generated on 2026-03-20T21:11:42.771Z * ***/ /*** * UserAnalyticEvent.schema.json * Generated on 2026-03-20T21:11:43.549Z * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. ***/ /** * Defines the event fields our system recognizes as a purchase event */ export type PaymentEventFieldsSchema = (({ type?: "USER_REFERRAL_PROGRAM_LOADED_EVENT" meta: { engagementMedium: EngagementMedium [k: string]: unknown } [k: string]: unknown } | { type?: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT" meta: { engagementMedium: EngagementMedium shareMedium: ShareMedium [k: string]: unknown } [k: string]: unknown }) & { id: UserID accountId: AccountID programId: ProgramID type: AnalyticType [k: string]: unknown }) /** * This interface was referenced by `undefined`'s JSON-Schema * via the `definition` "engagement". */ export type EngagementMedium = ("NOCONTENT" | "EMBED" | "HOSTED" | "MOBILE" | "POPUP" | "DEMO_EMBED" | "DEMO" | "EMPTY" | "EMAIL" | "PORTAL" | "UNKNOWN") /** * This interface was referenced by `undefined`'s JSON-Schema * via the `definition` "share". */ export type ShareMedium = ("FACEBOOK" | "TWITTER" | "EMAIL" | "DIRECT" | "LINKEDIN" | "SMS" | "FBMESSENGER" | "WHATSAPP" | "LINEMESSENGER" | "PINTEREST" | "REMINDER" | "UNKNOWN") export type UserID = string export type AccountID = string export type ProgramID = string export type AnalyticType = ("USER_REFERRAL_PROGRAM_LOADED_EVENT" | "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT")