@coursebuilder/core
Version:
Core package for Course Builder
34 lines (31 loc) • 1.12 kB
TypeScript
import { z } from 'zod';
declare const priceSchema: z.ZodObject<{
id: z.ZodString;
productId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
nickname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
status: z.ZodDefault<z.ZodNumber>;
unitAmount: z.ZodEffects<z.ZodNumber, number, number>;
createdAt: z.ZodNullable<z.ZodDate>;
fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
}, "strip", z.ZodTypeAny, {
id: string;
status: number;
fields: Record<string, any>;
createdAt: Date | null;
unitAmount: number;
organizationId?: string | null | undefined;
productId?: string | null | undefined;
nickname?: string | null | undefined;
}, {
id: string;
createdAt: Date | null;
unitAmount: number;
organizationId?: string | null | undefined;
status?: number | undefined;
fields?: Record<string, any> | undefined;
productId?: string | null | undefined;
nickname?: string | null | undefined;
}>;
type Price = z.infer<typeof priceSchema>;
export { type Price, priceSchema };