UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

31 lines (28 loc) 963 B
import { z } from 'zod'; declare const upgradableProductSchema: z.ZodObject<{ upgradableToId: z.ZodString; upgradableFromId: z.ZodString; position: z.ZodDefault<z.ZodNumber>; metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>; createdAt: z.ZodNullable<z.ZodDate>; updatedAt: z.ZodNullable<z.ZodDate>; deletedAt: z.ZodNullable<z.ZodDate>; }, "strip", z.ZodTypeAny, { createdAt: Date | null; position: number; metadata: Record<string, any>; updatedAt: Date | null; deletedAt: Date | null; upgradableToId: string; upgradableFromId: string; }, { createdAt: Date | null; updatedAt: Date | null; deletedAt: Date | null; upgradableToId: string; upgradableFromId: string; position?: number | undefined; metadata?: Record<string, any> | undefined; }>; type UpgradableProduct = z.infer<typeof upgradableProductSchema>; export { type UpgradableProduct, upgradableProductSchema };