@coursebuilder/core
Version:
Core package for Course Builder
24 lines (21 loc) • 896 B
TypeScript
import { z } from 'zod';
declare const NEW_PURCHASE_CREATED_EVENT = "commerce/new-purchase-created";
type NewPurchaseCreated = {
name: typeof NEW_PURCHASE_CREATED_EVENT;
data: NewPurchaseCreatedEvent;
};
declare const NewPurchaseCreatedEventSchema: z.ZodObject<{
purchaseId: z.ZodString;
checkoutSessionId: z.ZodString;
productType: z.ZodEnum<["live", "self-paced", "membership", "cohort"]>;
}, "strip", z.ZodTypeAny, {
purchaseId: string;
checkoutSessionId: string;
productType: "live" | "self-paced" | "membership" | "cohort";
}, {
purchaseId: string;
checkoutSessionId: string;
productType: "live" | "self-paced" | "membership" | "cohort";
}>;
type NewPurchaseCreatedEvent = z.infer<typeof NewPurchaseCreatedEventSchema>;
export { NEW_PURCHASE_CREATED_EVENT, type NewPurchaseCreated, type NewPurchaseCreatedEvent, NewPurchaseCreatedEventSchema };