Files
DentalManagementMH05/packages/db/shared/schemas/objects/CloudFileWhereInput.schema.ts
Gitead 3e899376c3 feat: Select Procedures flow, batch-column NPI provider fix, auto PDF save
- Add 'Select Procedures' right-click option on appointment page (separate from Claims/PreAuth)
- Select Procedures form saves CDT codes + NPI provider to AppointmentProcedure storage
- Remove Save button from insurance claim form; Claims/PreAuth opens for insurance submission only
- Claims/PreAuth auto-prefills from saved procedures including NPI provider
- Batch-column: procedures npiProviderId takes priority over stale claim npiProviderId
- Batch-column: auto-save PDF to patient Documents after successful submission (no socket needed)
- Add npiProviderId column to AppointmentProcedure table (prisma db push)
- Fix 'invalid db creation invocation': guard staffId, npiProviderId, procedureDate as Date object, totalBilled NaN guard
- Add full error logging to batch-column catch block

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 00:25:24 -04:00

37 lines
3.4 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
import { BigIntFilterObjectSchema as BigIntFilterObjectSchema } from './BigIntFilter.schema';
import { IntNullableFilterObjectSchema as IntNullableFilterObjectSchema } from './IntNullableFilter.schema';
import { BoolFilterObjectSchema as BoolFilterObjectSchema } from './BoolFilter.schema';
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema';
import { UserScalarRelationFilterObjectSchema as UserScalarRelationFilterObjectSchema } from './UserScalarRelationFilter.schema';
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema';
import { CloudFolderNullableScalarRelationFilterObjectSchema as CloudFolderNullableScalarRelationFilterObjectSchema } from './CloudFolderNullableScalarRelationFilter.schema';
import { CloudFolderWhereInputObjectSchema as CloudFolderWhereInputObjectSchema } from './CloudFolderWhereInput.schema';
import { CloudFileChunkListRelationFilterObjectSchema as CloudFileChunkListRelationFilterObjectSchema } from './CloudFileChunkListRelationFilter.schema'
const cloudfilewhereinputSchema = z.object({
AND: z.union([z.lazy(() => CloudFileWhereInputObjectSchema), z.lazy(() => CloudFileWhereInputObjectSchema).array()]).optional(),
OR: z.lazy(() => CloudFileWhereInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => CloudFileWhereInputObjectSchema), z.lazy(() => CloudFileWhereInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
name: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
mimeType: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
fileSize: z.union([z.lazy(() => BigIntFilterObjectSchema), z.bigint()]).optional(),
folderId: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
isComplete: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
totalChunks: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
diskPath: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
updatedAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
user: z.union([z.lazy(() => UserScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInputObjectSchema)]).optional(),
folder: z.union([z.lazy(() => CloudFolderNullableScalarRelationFilterObjectSchema), z.lazy(() => CloudFolderWhereInputObjectSchema)]).optional(),
chunks: z.lazy(() => CloudFileChunkListRelationFilterObjectSchema).optional()
}).strict();
export const CloudFileWhereInputObjectSchema: z.ZodType<Prisma.CloudFileWhereInput> = cloudfilewhereinputSchema as unknown as z.ZodType<Prisma.CloudFileWhereInput>;
export const CloudFileWhereInputObjectZodSchema = cloudfilewhereinputSchema;