16 lines
1.8 KiB
TypeScript
16 lines
1.8 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { BackupDestinationWhereUniqueInputObjectSchema as BackupDestinationWhereUniqueInputObjectSchema } from './BackupDestinationWhereUniqueInput.schema';
|
|
import { BackupDestinationUpdateWithoutUserInputObjectSchema as BackupDestinationUpdateWithoutUserInputObjectSchema } from './BackupDestinationUpdateWithoutUserInput.schema';
|
|
import { BackupDestinationUncheckedUpdateWithoutUserInputObjectSchema as BackupDestinationUncheckedUpdateWithoutUserInputObjectSchema } from './BackupDestinationUncheckedUpdateWithoutUserInput.schema';
|
|
import { BackupDestinationCreateWithoutUserInputObjectSchema as BackupDestinationCreateWithoutUserInputObjectSchema } from './BackupDestinationCreateWithoutUserInput.schema';
|
|
import { BackupDestinationUncheckedCreateWithoutUserInputObjectSchema as BackupDestinationUncheckedCreateWithoutUserInputObjectSchema } from './BackupDestinationUncheckedCreateWithoutUserInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => BackupDestinationWhereUniqueInputObjectSchema),
|
|
update: z.union([z.lazy(() => BackupDestinationUpdateWithoutUserInputObjectSchema), z.lazy(() => BackupDestinationUncheckedUpdateWithoutUserInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => BackupDestinationCreateWithoutUserInputObjectSchema), z.lazy(() => BackupDestinationUncheckedCreateWithoutUserInputObjectSchema)])
|
|
}).strict();
|
|
export const BackupDestinationUpsertWithWhereUniqueWithoutUserInputObjectSchema: z.ZodType<Prisma.BackupDestinationUpsertWithWhereUniqueWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.BackupDestinationUpsertWithWhereUniqueWithoutUserInput>;
|
|
export const BackupDestinationUpsertWithWhereUniqueWithoutUserInputObjectZodSchema = makeSchema();
|