16 lines
1.5 KiB
TypeScript
16 lines
1.5 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { CloudFileUpdateWithoutChunksInputObjectSchema as CloudFileUpdateWithoutChunksInputObjectSchema } from './CloudFileUpdateWithoutChunksInput.schema';
|
|
import { CloudFileUncheckedUpdateWithoutChunksInputObjectSchema as CloudFileUncheckedUpdateWithoutChunksInputObjectSchema } from './CloudFileUncheckedUpdateWithoutChunksInput.schema';
|
|
import { CloudFileCreateWithoutChunksInputObjectSchema as CloudFileCreateWithoutChunksInputObjectSchema } from './CloudFileCreateWithoutChunksInput.schema';
|
|
import { CloudFileUncheckedCreateWithoutChunksInputObjectSchema as CloudFileUncheckedCreateWithoutChunksInputObjectSchema } from './CloudFileUncheckedCreateWithoutChunksInput.schema';
|
|
import { CloudFileWhereInputObjectSchema as CloudFileWhereInputObjectSchema } from './CloudFileWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => CloudFileUpdateWithoutChunksInputObjectSchema), z.lazy(() => CloudFileUncheckedUpdateWithoutChunksInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => CloudFileCreateWithoutChunksInputObjectSchema), z.lazy(() => CloudFileUncheckedCreateWithoutChunksInputObjectSchema)]),
|
|
where: z.lazy(() => CloudFileWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const CloudFileUpsertWithoutChunksInputObjectSchema: z.ZodType<Prisma.CloudFileUpsertWithoutChunksInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFileUpsertWithoutChunksInput>;
|
|
export const CloudFileUpsertWithoutChunksInputObjectZodSchema = makeSchema();
|