- Add movedByAi boolean column to Appointment table (default false) - reschedule-graph: set movedByAi=true when AI moves an appointment - PATCH /api/appointments/:id/confirm endpoint clears the movedByAi flag - Schedule grid: show teal AI badge on appointment cards where movedByAi=true - Right-click context menu: 'Manually Confirmed' removes the AI badge via the confirm endpoint Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
990 B
TypeScript
24 lines
990 B
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
|
|
const makeSchema = () => z.object({
|
|
id: z.literal(true).optional(),
|
|
patientId: z.literal(true).optional(),
|
|
userId: z.literal(true).optional(),
|
|
staffId: z.literal(true).optional(),
|
|
title: z.literal(true).optional(),
|
|
date: z.literal(true).optional(),
|
|
startTime: z.literal(true).optional(),
|
|
endTime: z.literal(true).optional(),
|
|
type: z.literal(true).optional(),
|
|
notes: z.literal(true).optional(),
|
|
procedureCodeNotes: z.literal(true).optional(),
|
|
status: z.literal(true).optional(),
|
|
movedByAi: z.literal(true).optional(),
|
|
createdAt: z.literal(true).optional(),
|
|
eligibilityStatus: z.literal(true).optional()
|
|
}).strict();
|
|
export const AppointmentMaxAggregateInputObjectSchema: z.ZodType<Prisma.AppointmentMaxAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentMaxAggregateInputType>;
|
|
export const AppointmentMaxAggregateInputObjectZodSchema = makeSchema();
|