4128a9b4fb
* refactor: use explicit type annotations for TUpdateInputSchema to reduce type inference complexity This change significantly reduces TypeScript type-checking time by: 1. Defining explicit TypeScript types instead of using z.infer<> on complex schema chains 2. Using z.ZodType<T> annotations on schemas to prevent TypeScript from inferring through .extend(), .partial(), .merge() chains 3. Removing the dependency on EventTypeSchema from @calcom/prisma/zod/modelSchema which pulls in many dependencies The schema still validates all fields at runtime - only the compile-time type inference is optimized. Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * fix: update BookingFieldInput and users types to fix type errors - BookingFieldInput now includes name, hidden, required properties with index signature - users type changed from (string | number)[] to number[] - Zod schema updated to use z.array(z.number()) for users field - Removed unused stringOrNumber import Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * fix: handle bookingFields null case with Prisma.DbNull for JSON field compatibility Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * fix: remove index signature from BookingFieldInput for API v2 DTO compatibility Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * chore: remove useless JSDoc comments per PR feedback Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * test: add unit tests for aiPhoneCallConfig transformation in ZUpdateInputSchema Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * test: add unit tests for bookingFields null to Prisma.DbNull transformation Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * chore: remove comments from update.handler.test.ts Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * refactor: scope test describe block to update.handler per PR feedback Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>