15 lines
1.4 KiB
TypeScript
15 lines
1.4 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { ClaimCreateWithoutServiceLinesInputObjectSchema as ClaimCreateWithoutServiceLinesInputObjectSchema } from './ClaimCreateWithoutServiceLinesInput.schema';
|
|
import { ClaimUncheckedCreateWithoutServiceLinesInputObjectSchema as ClaimUncheckedCreateWithoutServiceLinesInputObjectSchema } from './ClaimUncheckedCreateWithoutServiceLinesInput.schema';
|
|
import { ClaimCreateOrConnectWithoutServiceLinesInputObjectSchema as ClaimCreateOrConnectWithoutServiceLinesInputObjectSchema } from './ClaimCreateOrConnectWithoutServiceLinesInput.schema';
|
|
import { ClaimWhereUniqueInputObjectSchema as ClaimWhereUniqueInputObjectSchema } from './ClaimWhereUniqueInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
create: z.union([z.lazy(() => ClaimCreateWithoutServiceLinesInputObjectSchema), z.lazy(() => ClaimUncheckedCreateWithoutServiceLinesInputObjectSchema)]).optional(),
|
|
connectOrCreate: z.lazy(() => ClaimCreateOrConnectWithoutServiceLinesInputObjectSchema).optional(),
|
|
connect: z.lazy(() => ClaimWhereUniqueInputObjectSchema).optional()
|
|
}).strict();
|
|
export const ClaimCreateNestedOneWithoutServiceLinesInputObjectSchema: z.ZodType<Prisma.ClaimCreateNestedOneWithoutServiceLinesInput> = makeSchema() as unknown as z.ZodType<Prisma.ClaimCreateNestedOneWithoutServiceLinesInput>;
|
|
export const ClaimCreateNestedOneWithoutServiceLinesInputObjectZodSchema = makeSchema();
|