Files
DentalManagementMH05/packages/db/shared/schemas/objects/AppointmentMinAggregateInput.schema.ts
Gitead 5e3cfef52b feat: label AI-rescheduled appointments and add manual confirm option
- 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>
2026-05-11 19:23:36 -04:00

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 AppointmentMinAggregateInputObjectSchema: z.ZodType<Prisma.AppointmentMinAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentMinAggregateInputType>;
export const AppointmentMinAggregateInputObjectZodSchema = makeSchema();