13 lines
1.0 KiB
TypeScript
13 lines
1.0 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema';
|
|
import { UserUpdateWithoutClaimsInputObjectSchema as UserUpdateWithoutClaimsInputObjectSchema } from './UserUpdateWithoutClaimsInput.schema';
|
|
import { UserUncheckedUpdateWithoutClaimsInputObjectSchema as UserUncheckedUpdateWithoutClaimsInputObjectSchema } from './UserUncheckedUpdateWithoutClaimsInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => UserWhereInputObjectSchema).optional(),
|
|
data: z.union([z.lazy(() => UserUpdateWithoutClaimsInputObjectSchema), z.lazy(() => UserUncheckedUpdateWithoutClaimsInputObjectSchema)])
|
|
}).strict();
|
|
export const UserUpdateToOneWithWhereWithoutClaimsInputObjectSchema: z.ZodType<Prisma.UserUpdateToOneWithWhereWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpdateToOneWithWhereWithoutClaimsInput>;
|
|
export const UserUpdateToOneWithWhereWithoutClaimsInputObjectZodSchema = makeSchema();
|