feat(api): add schedule series and calendar endpoints
This commit is contained in:
@ -356,6 +356,60 @@ const doc = {
|
||||
planning_verificator: {
|
||||
$user_id: 'User ID (required, UUID)'
|
||||
},
|
||||
scheduleRecurrence: {
|
||||
$type: { "@enum": ["daily", "weekly", "monthly"] },
|
||||
$interval: 1,
|
||||
$daysOfWeek: ["MO", "WE", "FR"]
|
||||
},
|
||||
scheduleSeriesCreate: {
|
||||
$roomId: "uuid-string",
|
||||
$doctorId: "uuid-string",
|
||||
$title: "Practice Schedule",
|
||||
$timezone: "Asia/Jakarta",
|
||||
$startDate: "2026-03-20",
|
||||
$untilDate: "2026-06-30",
|
||||
$startTimeLocal: "09:00:00",
|
||||
$endTimeLocal: "12:00:00",
|
||||
$recurrence: { $ref: "#/components/schemas/scheduleRecurrence" }
|
||||
},
|
||||
scheduleSeriesUpdate: {
|
||||
$roomId: "uuid-string",
|
||||
$doctorId: "uuid-string",
|
||||
$title: "Practice Schedule Updated",
|
||||
$timezone: "Asia/Jakarta",
|
||||
$startDate: "2026-03-20",
|
||||
$untilDate: "2026-07-31",
|
||||
$startTimeLocal: "10:00:00",
|
||||
$endTimeLocal: "13:00:00",
|
||||
$recurrence: { $ref: "#/components/schemas/scheduleRecurrence" }
|
||||
},
|
||||
scheduleExceptionCreate: {
|
||||
$occurrenceDate: "2026-03-24",
|
||||
$isCancelled: false,
|
||||
$overrideRoomId: "uuid-string",
|
||||
$overrideDoctorId: "uuid-string",
|
||||
$overrideTitle: "Override Practice",
|
||||
$overrideStartAt: "2026-03-24T10:00:00.000Z",
|
||||
$overrideEndAt: "2026-03-24T12:30:00.000Z"
|
||||
},
|
||||
scheduleCalendarResource: {
|
||||
$id: "room-1:doctor-1",
|
||||
$roomId: "room-1",
|
||||
$roomName: "Room 1",
|
||||
$doctorId: "doctor-1",
|
||||
$doctorName: "Dr A"
|
||||
},
|
||||
scheduleCalendarEvent: {
|
||||
$id: "occ:series-101:2026-03-20",
|
||||
$seriesId: "series-101",
|
||||
$resourceId: "room-1:doctor-1",
|
||||
$title: "Practice",
|
||||
$startAt: "2026-03-20T09:00:00+07:00",
|
||||
$endAt: "2026-03-20T12:00:00+07:00",
|
||||
$isRecurring: true,
|
||||
$isException: false,
|
||||
$status: "confirmed"
|
||||
},
|
||||
},
|
||||
parameters: {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user