UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

21 lines (18 loc) 862 B
import { z } from 'zod'; declare const FULL_PRICE_COUPON_REDEEMED_EVENT = "commerce/full-price-coupon-redeemed"; type FullPriceCouponRedeemed = { name: typeof FULL_PRICE_COUPON_REDEEMED_EVENT; data: FullPriceCouponRedeemedEvent; }; declare const FullPriceCouponRedeemedEventSchema: z.ZodObject<{ purchaseId: z.ZodString; productType: z.ZodEnum<["live", "self-paced", "membership", "cohort"]>; }, "strip", z.ZodTypeAny, { purchaseId: string; productType: "live" | "self-paced" | "membership" | "cohort"; }, { purchaseId: string; productType: "live" | "self-paced" | "membership" | "cohort"; }>; type FullPriceCouponRedeemedEvent = z.infer<typeof FullPriceCouponRedeemedEventSchema>; export { FULL_PRICE_COUPON_REDEEMED_EVENT, type FullPriceCouponRedeemed, type FullPriceCouponRedeemedEvent, FullPriceCouponRedeemedEventSchema };