13 lines
1.0 KiB
TypeScript
13 lines
1.0 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { StaffWhereUniqueInputObjectSchema as StaffWhereUniqueInputObjectSchema } from './StaffWhereUniqueInput.schema';
|
|
import { StaffCreateWithoutClaimsInputObjectSchema as StaffCreateWithoutClaimsInputObjectSchema } from './StaffCreateWithoutClaimsInput.schema';
|
|
import { StaffUncheckedCreateWithoutClaimsInputObjectSchema as StaffUncheckedCreateWithoutClaimsInputObjectSchema } from './StaffUncheckedCreateWithoutClaimsInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => StaffWhereUniqueInputObjectSchema),
|
|
create: z.union([z.lazy(() => StaffCreateWithoutClaimsInputObjectSchema), z.lazy(() => StaffUncheckedCreateWithoutClaimsInputObjectSchema)])
|
|
}).strict();
|
|
export const StaffCreateOrConnectWithoutClaimsInputObjectSchema: z.ZodType<Prisma.StaffCreateOrConnectWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffCreateOrConnectWithoutClaimsInput>;
|
|
export const StaffCreateOrConnectWithoutClaimsInputObjectZodSchema = makeSchema();
|