Kaizen
Browse modulesBookingsbookings/sharedSchemas and constants

Variable: createBookingWithScheduleInputSchema

const createBookingWithScheduleInputSchema: ZodObject<{
  bookingTypeId: ZodString;
  capacityUnits: ZodDefault<ZodNumber>;
  organizationId: ZodString;
  partyEmail: ZodOptional<ZodString>;
  partyName: ZodOptional<ZodString>;
  partyRef: ZodOptional<ZodString>;
  payload: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
  schedule: ZodOptional<ZodObject<{
     endsAt: ZodCoercedDate<unknown>;
     resourceId: ZodString;
     startsAt: ZodCoercedDate<unknown>;
     timeZone: ZodString;
  }, $strip>>;
}, $strip>;

Defined in: shared/bookings/schemas.ts:43

Extended create-booking input that also accepts an optional schedule. When provided the service writes a BookingSchedules row at isBlocking: false (a draft never blocks — spec §6.6 truth table).