feat: add schedule column labels, office hours enforcement, and appointment move fix
- Schedule columns default to labels A–F (localStorage, per-browser, click to rename) - Settings → Advanced → Office Hours: configure Doctors (A-C) and Hygienists (D-F) AM/PM hours per weekday - Gray out schedule slots outside office hours; override dialog for manual exceptions - Override Office Hours toggle: select specific dates where all slots are open - Fix appointment move: send only real DB fields to avoid Zod strict-mode rejection of computed fields (hasProcedures, hasClaimWithNumber) - Fix backend PUT /appointments: safe error logging to prevent Prisma error crashing Node inspect - Add OfficeHours Prisma model and GET/PUT /api/office-hours route Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,10 @@ import { BackupDestinationUpdateManyWithoutUserNestedInputObjectSchema as Backup
|
||||
import { NotificationUpdateManyWithoutUserNestedInputObjectSchema as NotificationUpdateManyWithoutUserNestedInputObjectSchema } from './NotificationUpdateManyWithoutUserNestedInput.schema';
|
||||
import { CloudFolderUpdateManyWithoutUserNestedInputObjectSchema as CloudFolderUpdateManyWithoutUserNestedInputObjectSchema } from './CloudFolderUpdateManyWithoutUserNestedInput.schema';
|
||||
import { CloudFileUpdateManyWithoutUserNestedInputObjectSchema as CloudFileUpdateManyWithoutUserNestedInputObjectSchema } from './CloudFileUpdateManyWithoutUserNestedInput.schema';
|
||||
import { CommunicationUpdateManyWithoutUserNestedInputObjectSchema as CommunicationUpdateManyWithoutUserNestedInputObjectSchema } from './CommunicationUpdateManyWithoutUserNestedInput.schema'
|
||||
import { CommunicationUpdateManyWithoutUserNestedInputObjectSchema as CommunicationUpdateManyWithoutUserNestedInputObjectSchema } from './CommunicationUpdateManyWithoutUserNestedInput.schema';
|
||||
import { TwilioSettingsUpdateOneWithoutUserNestedInputObjectSchema as TwilioSettingsUpdateOneWithoutUserNestedInputObjectSchema } from './TwilioSettingsUpdateOneWithoutUserNestedInput.schema';
|
||||
import { AiSettingsUpdateOneWithoutUserNestedInputObjectSchema as AiSettingsUpdateOneWithoutUserNestedInputObjectSchema } from './AiSettingsUpdateOneWithoutUserNestedInput.schema';
|
||||
import { OfficeHoursUpdateOneWithoutUserNestedInputObjectSchema as OfficeHoursUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeHoursUpdateOneWithoutUserNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
username: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
@@ -33,7 +36,10 @@ const makeSchema = () => z.object({
|
||||
notifications: z.lazy(() => NotificationUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
cloudFiles: z.lazy(() => CloudFileUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationUpdateManyWithoutUserNestedInputObjectSchema).optional()
|
||||
communications: z.lazy(() => CommunicationUpdateManyWithoutUserNestedInputObjectSchema).optional(),
|
||||
twilioSettings: z.lazy(() => TwilioSettingsUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
aiSettings: z.lazy(() => AiSettingsUpdateOneWithoutUserNestedInputObjectSchema).optional(),
|
||||
officeHours: z.lazy(() => OfficeHoursUpdateOneWithoutUserNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const UserUpdateInputObjectSchema: z.ZodType<Prisma.UserUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpdateInput>;
|
||||
export const UserUpdateInputObjectZodSchema = makeSchema();
|
||||
|
||||
Reference in New Issue
Block a user