13 lines
1.0 KiB
TypeScript
13 lines
1.0 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { StaffWhereInputObjectSchema as StaffWhereInputObjectSchema } from './StaffWhereInput.schema';
|
|
import { StaffUpdateWithoutClaimsInputObjectSchema as StaffUpdateWithoutClaimsInputObjectSchema } from './StaffUpdateWithoutClaimsInput.schema';
|
|
import { StaffUncheckedUpdateWithoutClaimsInputObjectSchema as StaffUncheckedUpdateWithoutClaimsInputObjectSchema } from './StaffUncheckedUpdateWithoutClaimsInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => StaffWhereInputObjectSchema).optional(),
|
|
data: z.union([z.lazy(() => StaffUpdateWithoutClaimsInputObjectSchema), z.lazy(() => StaffUncheckedUpdateWithoutClaimsInputObjectSchema)])
|
|
}).strict();
|
|
export const StaffUpdateToOneWithWhereWithoutClaimsInputObjectSchema: z.ZodType<Prisma.StaffUpdateToOneWithWhereWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffUpdateToOneWithWhereWithoutClaimsInput>;
|
|
export const StaffUpdateToOneWithWhereWithoutClaimsInputObjectZodSchema = makeSchema();
|