15 lines
1.4 KiB
TypeScript
15 lines
1.4 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PaymentCreateWithoutClaimInputObjectSchema as PaymentCreateWithoutClaimInputObjectSchema } from './PaymentCreateWithoutClaimInput.schema';
|
|
import { PaymentUncheckedCreateWithoutClaimInputObjectSchema as PaymentUncheckedCreateWithoutClaimInputObjectSchema } from './PaymentUncheckedCreateWithoutClaimInput.schema';
|
|
import { PaymentCreateOrConnectWithoutClaimInputObjectSchema as PaymentCreateOrConnectWithoutClaimInputObjectSchema } from './PaymentCreateOrConnectWithoutClaimInput.schema';
|
|
import { PaymentWhereUniqueInputObjectSchema as PaymentWhereUniqueInputObjectSchema } from './PaymentWhereUniqueInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
create: z.union([z.lazy(() => PaymentCreateWithoutClaimInputObjectSchema), z.lazy(() => PaymentUncheckedCreateWithoutClaimInputObjectSchema)]).optional(),
|
|
connectOrCreate: z.lazy(() => PaymentCreateOrConnectWithoutClaimInputObjectSchema).optional(),
|
|
connect: z.lazy(() => PaymentWhereUniqueInputObjectSchema).optional()
|
|
}).strict();
|
|
export const PaymentUncheckedCreateNestedOneWithoutClaimInputObjectSchema: z.ZodType<Prisma.PaymentUncheckedCreateNestedOneWithoutClaimInput> = makeSchema() as unknown as z.ZodType<Prisma.PaymentUncheckedCreateNestedOneWithoutClaimInput>;
|
|
export const PaymentUncheckedCreateNestedOneWithoutClaimInputObjectZodSchema = makeSchema();
|