16 lines
1.4 KiB
TypeScript
16 lines
1.4 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { StaffUpdateWithoutClaimsInputObjectSchema as StaffUpdateWithoutClaimsInputObjectSchema } from './StaffUpdateWithoutClaimsInput.schema';
|
|
import { StaffUncheckedUpdateWithoutClaimsInputObjectSchema as StaffUncheckedUpdateWithoutClaimsInputObjectSchema } from './StaffUncheckedUpdateWithoutClaimsInput.schema';
|
|
import { StaffCreateWithoutClaimsInputObjectSchema as StaffCreateWithoutClaimsInputObjectSchema } from './StaffCreateWithoutClaimsInput.schema';
|
|
import { StaffUncheckedCreateWithoutClaimsInputObjectSchema as StaffUncheckedCreateWithoutClaimsInputObjectSchema } from './StaffUncheckedCreateWithoutClaimsInput.schema';
|
|
import { StaffWhereInputObjectSchema as StaffWhereInputObjectSchema } from './StaffWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => StaffUpdateWithoutClaimsInputObjectSchema), z.lazy(() => StaffUncheckedUpdateWithoutClaimsInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => StaffCreateWithoutClaimsInputObjectSchema), z.lazy(() => StaffUncheckedCreateWithoutClaimsInputObjectSchema)]),
|
|
where: z.lazy(() => StaffWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const StaffUpsertWithoutClaimsInputObjectSchema: z.ZodType<Prisma.StaffUpsertWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffUpsertWithoutClaimsInput>;
|
|
export const StaffUpsertWithoutClaimsInputObjectZodSchema = makeSchema();
|