UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

58 lines (55 loc) 2.18 kB
import { z } from 'zod'; declare const couponSchema: z.ZodObject<{ id: z.ZodString; code: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodNullable<z.ZodDate>; expires: z.ZodNullable<z.ZodDate>; fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>; maxUses: z.ZodDefault<z.ZodNumber>; default: z.ZodDefault<z.ZodBoolean>; merchantCouponId: z.ZodNullable<z.ZodOptional<z.ZodString>>; status: z.ZodDefault<z.ZodNumber>; usedCount: z.ZodDefault<z.ZodNumber>; percentageDiscount: z.ZodEffects<z.ZodNumber, number, number>; restrictedToProductId: z.ZodNullable<z.ZodOptional<z.ZodString>>; bulkPurchases: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>; redeemedBulkCouponPurchases: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>; bulkPurchaseId: z.ZodNullable<z.ZodOptional<z.ZodString>>; organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; }, "strip", z.ZodTypeAny, { id: string; status: number; fields: Record<string, any>; createdAt: Date | null; expires: Date | null; maxUses: number; default: boolean; usedCount: number; percentageDiscount: number; bulkPurchases: any[]; redeemedBulkCouponPurchases: any[]; organizationId?: string | null | undefined; code?: string | null | undefined; merchantCouponId?: string | null | undefined; restrictedToProductId?: string | null | undefined; bulkPurchaseId?: string | null | undefined; }, { id: string; createdAt: Date | null; expires: Date | null; percentageDiscount: number; organizationId?: string | null | undefined; code?: string | null | undefined; status?: number | undefined; fields?: Record<string, any> | undefined; maxUses?: number | undefined; default?: boolean | undefined; merchantCouponId?: string | null | undefined; usedCount?: number | undefined; restrictedToProductId?: string | null | undefined; bulkPurchases?: any[] | undefined; redeemedBulkCouponPurchases?: any[] | undefined; bulkPurchaseId?: string | null | undefined; }>; type Coupon = z.infer<typeof couponSchema>; export { type Coupon, couponSchema };