import * as z from 'zod'; import type { Prisma } from '../../../generated/prisma'; import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema'; import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema'; import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema'; import { BigIntFilterObjectSchema as BigIntFilterObjectSchema } from './BigIntFilter.schema'; import { IntNullableFilterObjectSchema as IntNullableFilterObjectSchema } from './IntNullableFilter.schema'; import { BoolFilterObjectSchema as BoolFilterObjectSchema } from './BoolFilter.schema'; import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema'; import { UserScalarRelationFilterObjectSchema as UserScalarRelationFilterObjectSchema } from './UserScalarRelationFilter.schema'; import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema'; import { CloudFolderNullableScalarRelationFilterObjectSchema as CloudFolderNullableScalarRelationFilterObjectSchema } from './CloudFolderNullableScalarRelationFilter.schema'; import { CloudFolderWhereInputObjectSchema as CloudFolderWhereInputObjectSchema } from './CloudFolderWhereInput.schema'; import { CloudFileChunkListRelationFilterObjectSchema as CloudFileChunkListRelationFilterObjectSchema } from './CloudFileChunkListRelationFilter.schema' const cloudfilewhereinputSchema = z.object({ AND: z.union([z.lazy(() => CloudFileWhereInputObjectSchema), z.lazy(() => CloudFileWhereInputObjectSchema).array()]).optional(), OR: z.lazy(() => CloudFileWhereInputObjectSchema).array().optional(), NOT: z.union([z.lazy(() => CloudFileWhereInputObjectSchema), z.lazy(() => CloudFileWhereInputObjectSchema).array()]).optional(), id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(), userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(), name: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(), mimeType: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(), fileSize: z.union([z.lazy(() => BigIntFilterObjectSchema), z.bigint()]).optional(), folderId: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(), isComplete: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(), totalChunks: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(), createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(), updatedAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(), user: z.union([z.lazy(() => UserScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInputObjectSchema)]).optional(), folder: z.union([z.lazy(() => CloudFolderNullableScalarRelationFilterObjectSchema), z.lazy(() => CloudFolderWhereInputObjectSchema)]).optional(), chunks: z.lazy(() => CloudFileChunkListRelationFilterObjectSchema).optional() }).strict(); export const CloudFileWhereInputObjectSchema: z.ZodType = cloudfilewhereinputSchema as unknown as z.ZodType; export const CloudFileWhereInputObjectZodSchema = cloudfilewhereinputSchema;