initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PaymentArgsObjectSchema as PaymentArgsObjectSchema } from './PaymentArgs.schema';
|
||||
import { ServiceLineArgsObjectSchema as ServiceLineArgsObjectSchema } from './ServiceLineArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.boolean().optional(),
|
||||
paymentId: z.boolean().optional(),
|
||||
serviceLineId: z.boolean().optional(),
|
||||
transactionId: z.boolean().optional(),
|
||||
paidAmount: z.boolean().optional(),
|
||||
adjustedAmount: z.boolean().optional(),
|
||||
method: z.boolean().optional(),
|
||||
receivedDate: z.boolean().optional(),
|
||||
payerName: z.boolean().optional(),
|
||||
notes: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
payment: z.union([z.boolean(), z.lazy(() => PaymentArgsObjectSchema)]).optional(),
|
||||
serviceLine: z.union([z.boolean(), z.lazy(() => ServiceLineArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const ServiceLineTransactionSelectObjectSchema: z.ZodType<Prisma.ServiceLineTransactionSelect> = makeSchema() as unknown as z.ZodType<Prisma.ServiceLineTransactionSelect>;
|
||||
export const ServiceLineTransactionSelectObjectZodSchema = makeSchema();
|
||||
Reference in New Issue
Block a user