13 lines
1.1 KiB
TypeScript
13 lines
1.1 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { CloudFileWhereUniqueInputObjectSchema as CloudFileWhereUniqueInputObjectSchema } from './CloudFileWhereUniqueInput.schema';
|
|
import { CloudFileCreateWithoutChunksInputObjectSchema as CloudFileCreateWithoutChunksInputObjectSchema } from './CloudFileCreateWithoutChunksInput.schema';
|
|
import { CloudFileUncheckedCreateWithoutChunksInputObjectSchema as CloudFileUncheckedCreateWithoutChunksInputObjectSchema } from './CloudFileUncheckedCreateWithoutChunksInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => CloudFileWhereUniqueInputObjectSchema),
|
|
create: z.union([z.lazy(() => CloudFileCreateWithoutChunksInputObjectSchema), z.lazy(() => CloudFileUncheckedCreateWithoutChunksInputObjectSchema)])
|
|
}).strict();
|
|
export const CloudFileCreateOrConnectWithoutChunksInputObjectSchema: z.ZodType<Prisma.CloudFileCreateOrConnectWithoutChunksInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFileCreateOrConnectWithoutChunksInput>;
|
|
export const CloudFileCreateOrConnectWithoutChunksInputObjectZodSchema = makeSchema();
|