10 lines
1.2 KiB
TypeScript
10 lines
1.2 KiB
TypeScript
import type { Prisma } from '../../generated/prisma';
|
|
import * as z from 'zod';
|
|
import { NotificationSelectObjectSchema as NotificationSelectObjectSchema } from './objects/NotificationSelect.schema';
|
|
import { NotificationIncludeObjectSchema as NotificationIncludeObjectSchema } from './objects/NotificationInclude.schema';
|
|
import { NotificationCreateInputObjectSchema as NotificationCreateInputObjectSchema } from './objects/NotificationCreateInput.schema';
|
|
import { NotificationUncheckedCreateInputObjectSchema as NotificationUncheckedCreateInputObjectSchema } from './objects/NotificationUncheckedCreateInput.schema';
|
|
|
|
export const NotificationCreateOneSchema: z.ZodType<Prisma.NotificationCreateArgs> = z.object({ select: NotificationSelectObjectSchema.optional(), include: NotificationIncludeObjectSchema.optional(), data: z.union([NotificationCreateInputObjectSchema, NotificationUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.NotificationCreateArgs>;
|
|
|
|
export const NotificationCreateOneZodSchema = z.object({ select: NotificationSelectObjectSchema.optional(), include: NotificationIncludeObjectSchema.optional(), data: z.union([NotificationCreateInputObjectSchema, NotificationUncheckedCreateInputObjectSchema]) }).strict(); |