16 lines
1.8 KiB
TypeScript
16 lines
1.8 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PaymentUpdateWithoutServiceLineTransactionsInputObjectSchema as PaymentUpdateWithoutServiceLineTransactionsInputObjectSchema } from './PaymentUpdateWithoutServiceLineTransactionsInput.schema';
|
|
import { PaymentUncheckedUpdateWithoutServiceLineTransactionsInputObjectSchema as PaymentUncheckedUpdateWithoutServiceLineTransactionsInputObjectSchema } from './PaymentUncheckedUpdateWithoutServiceLineTransactionsInput.schema';
|
|
import { PaymentCreateWithoutServiceLineTransactionsInputObjectSchema as PaymentCreateWithoutServiceLineTransactionsInputObjectSchema } from './PaymentCreateWithoutServiceLineTransactionsInput.schema';
|
|
import { PaymentUncheckedCreateWithoutServiceLineTransactionsInputObjectSchema as PaymentUncheckedCreateWithoutServiceLineTransactionsInputObjectSchema } from './PaymentUncheckedCreateWithoutServiceLineTransactionsInput.schema';
|
|
import { PaymentWhereInputObjectSchema as PaymentWhereInputObjectSchema } from './PaymentWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => PaymentUpdateWithoutServiceLineTransactionsInputObjectSchema), z.lazy(() => PaymentUncheckedUpdateWithoutServiceLineTransactionsInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => PaymentCreateWithoutServiceLineTransactionsInputObjectSchema), z.lazy(() => PaymentUncheckedCreateWithoutServiceLineTransactionsInputObjectSchema)]),
|
|
where: z.lazy(() => PaymentWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const PaymentUpsertWithoutServiceLineTransactionsInputObjectSchema: z.ZodType<Prisma.PaymentUpsertWithoutServiceLineTransactionsInput> = makeSchema() as unknown as z.ZodType<Prisma.PaymentUpsertWithoutServiceLineTransactionsInput>;
|
|
export const PaymentUpsertWithoutServiceLineTransactionsInputObjectZodSchema = makeSchema();
|