Variable updatePhysicianScheduleSchemaConst
updatePhysicianScheduleSchema: ZodObject<
{
rules: ZodOptional<
ZodArray<
ZodObject<
{
weekday: ZodNumber;
startMinute: ZodNumber;
endMinute: ZodNumber;
timezone: ZodOptional<ZodNullable<ZodString>>;
effectiveFrom: ZodOptional<ZodNullable<ZodString>>;
effectiveUntil: ZodOptional<ZodNullable<ZodString>>;
intervalWeeks: ZodOptional<ZodNullable<ZodNumber>>;
specialty: ZodOptional<ZodNullable<ZodString>>;
active: ZodOptional<ZodNullable<ZodBoolean>>;
id: ZodOptional<ZodString>;
},
$strict,
>,
>,
>;
exceptions: ZodOptional<
ZodArray<
ZodObject<
{
date: ZodString;
endDate: ZodOptional<ZodNullable<ZodString>>;
kind: ZodEnum<{ block: "block"; open: "open" }>;
startMinute: ZodOptional<ZodNullable<ZodNumber>>;
endMinute: ZodOptional<ZodNullable<ZodNumber>>;
specialty: ZodOptional<ZodNullable<ZodString>>;
reason: ZodOptional<ZodNullable<ZodString>>;
id: ZodOptional<ZodString>;
},
$strict,
>,
>,
>;
deletedRuleIds: ZodOptional<ZodArray<ZodString>>;
deletedExceptionIds: ZodOptional<ZodArray<ZodString>>;
timezone: ZodOptional<ZodNullable<ZodString>>;
},
$strict,
> = ...
Body of
PATCH /v1/physicians/{id}/schedule— a CHANGE SET, the way a calendar edits: rows with anid(from a prior read) are updated, rows without are created, and the two id lists are deleted. Rows not mentioned are untouched, however far in the future they lie. Any field may be omitted.This is what
diffSchedulein./scheduleproduces from an edited document, and what the platform's own calendars send.