/*** * * 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 * ***/ /*** * ReferralClassicDisabled.schema.json * Generated on 2026-03-20T21:11:43.711Z * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. ***/ /** * The unique referral identifier */ export type ReferralId = string /** * This user's unique identifier */ export type UserId = string /** * The unique identifier of the account this user belongs to */ export type AccountId = string /** * The referrers code that was used by the referred for the referral */ export type ReferralCodeUsed = string /** * The sharelink that was used by the referred for the referral */ export type ShareLinkUsed = string /** * The date this referral was created */ export type DateReferralStarted = number /** * The date the referral converted */ export type DateReferralConverted = (number | null) /** * The date this referral was last modified for any reason (e.g. converted, reward added, etc.) */ export type DateReferralModified = (number | null) /** * The date a user was added to or removed from the referral (e.g. removed as a result of user deletion) */ export type DateUserModified = (number | null) /** * The Id of the program this code was created for */ export type ProgramId = (string | null) /** * Sent whenever a referral event happens and the classic program is disabled */ export interface ClassicDisabledReferralWebhookSchema { id: ReferralId referrer: ReferrerUser referred: ReferredUser referralCodeUsed?: ReferralCodeUsed shareLinkUsed?: ShareLinkUsed dateReferralStarted: DateReferralStarted dateConverted?: DateReferralConverted dateModified?: DateReferralModified dateUserModified?: DateUserModified programId?: ProgramId } /** * The referrer user in who initiated this referral */ export interface ReferrerUser { id: UserId accountId: AccountId } /** * The referred user who initiated this referral */ export interface ReferredUser { id: UserId accountId: AccountId }