/*** * * 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 * ***/ /*** * DataEvaluationOptions.schema.json * Generated on 2026-03-20T21:11:42.812Z * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. ***/ /** * If true then all triggered webhook types will be sent */ export type WebhooksEnabled = boolean export type EnabledWebhookTypes = ("user.created" | "coupon.created" | "reward.created" | "referral.started" | "referral.converted" | "user.reward.balance.changed" | "email.referred.reward.earned" | "email.referral.started" | "email.referral.paid" | "email.referral.rewardLimitReached" | "referral.automoderation.complete" | "referral.ended" | "theme.publish.finished")[] /** * If true then all applicable active programs will be triggered */ export type ProgramEvaluationEnabled = boolean export type EnabledProgramIds = string[] export type AnalyticsTrackingEnabled = boolean export type CollectionName = ("userCreated" | "userReferralProgramLoaded" | "userReferralProgramEngagement" | "userReferralShareLinkClicked" | "userReferralCreated" | "userApprovedReferralCreated" | "userReferralModerated" | "userReferralConverted" | "userApprovedReferralConverted" | "userReferralEnded" | "rewardCreated" | "rewardRedeemed" | "programEvaluated" | "userActivity" | "programGoal") export type AnalyticsEventCollections = { collectionName?: CollectionName [k: string]: unknown }[] export interface DataEvaluationOptions { webhooks?: (WebhooksEnabled | { enabledWebhookTypes: EnabledWebhookTypes }) programs?: (ProgramEvaluationEnabled | { enabledProgramIds: EnabledProgramIds }) analytics?: (AnalyticsTrackingEnabled | { enabledAnalyticsEventCollections: AnalyticsEventCollections }) }