Files
DentalManagementMHAprilgg/packages/db/shared/schemas/createOneCommunication.schema.ts
2026-04-04 22:13:55 -04:00

10 lines
1.3 KiB
TypeScript

import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { CommunicationSelectObjectSchema as CommunicationSelectObjectSchema } from './objects/CommunicationSelect.schema';
import { CommunicationIncludeObjectSchema as CommunicationIncludeObjectSchema } from './objects/CommunicationInclude.schema';
import { CommunicationCreateInputObjectSchema as CommunicationCreateInputObjectSchema } from './objects/CommunicationCreateInput.schema';
import { CommunicationUncheckedCreateInputObjectSchema as CommunicationUncheckedCreateInputObjectSchema } from './objects/CommunicationUncheckedCreateInput.schema';
export const CommunicationCreateOneSchema: z.ZodType<Prisma.CommunicationCreateArgs> = z.object({ select: CommunicationSelectObjectSchema.optional(), include: CommunicationIncludeObjectSchema.optional(), data: z.union([CommunicationCreateInputObjectSchema, CommunicationUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.CommunicationCreateArgs>;
export const CommunicationCreateOneZodSchema = z.object({ select: CommunicationSelectObjectSchema.optional(), include: CommunicationIncludeObjectSchema.optional(), data: z.union([CommunicationCreateInputObjectSchema, CommunicationUncheckedCreateInputObjectSchema]) }).strict();