Skip to content

Commit 500e5c9

Browse files
committed
[update] integration with scheduler updated
1 parent e8ab015 commit 500e5c9

1 file changed

Lines changed: 25 additions & 15 deletions

File tree

docs/guides/integration-with-widgets.md

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Scheduler event:
133133
}
134134
~~~
135135

136-
Booking slot:
136+
Booking slots:
137137

138138
~~~json
139139
{
@@ -246,7 +246,7 @@ Scheduler event:
246246
]
247247
~~~
248248

249-
Booking slot:
249+
Booking slots:
250250

251251
~~~json
252252
{
@@ -274,7 +274,7 @@ Booking slot:
274274

275275
When a single occurrence is removed from a recurring event in Scheduler, we need to update Booking rules to reflect this removal. This is done by creating a special rule for the removed date, using an empty time interval and the dates property (which has higher priority than days).
276276

277-
Scheduler event:
277+
Scheduler events:
278278

279279
~~~json
280280
[
@@ -296,20 +296,27 @@ Scheduler event:
296296
]
297297
~~~
298298

299-
Booking slot:
299+
Booking slots:
300300

301301
~~~json
302302
{
303-
"from": "09:00",
304-
"to": "17:00",
305-
"days": [4, 5, 6, 0] // Thursday to Sunday
306-
},
307-
{
308-
"from": "00:00",
309-
"to": "00:00",
310-
"dates": [
311-
1742688000000 // 2025-03-23 00:00:00 (deleted occurrence)
312-
]
303+
"id": 5,
304+
"slotSize":60,
305+
"slotGap":10,
306+
"slots":[
307+
{
308+
"from": "09:00",
309+
"to": "17:00",
310+
"days": [4, 5, 6, 0] // Thursday to Sunday
311+
},
312+
{
313+
"from": "00:00",
314+
"to": "00:00",
315+
"dates": [
316+
1742688000000 // 2025-03-23 00:00:00 (deleted occurrence)
317+
]
318+
}
319+
]
313320
}
314321
~~~
315322

@@ -321,7 +328,7 @@ Scheduler event:
321328

322329
~~~json
323330
{
324-
"id": "ffbe7628-25f4-4cbe-9127-3bc779d6bafa",
331+
"doctor_id": 5,
325332
"start_date": "2025-03-17 09:00:00",
326333
"end_date": "2027-03-13 00:00:00",
327334
"rrule": "INTERVAL=1;FREQ=WEEKLY;BYDAY=SU,MO,TU,WE,TH,FR,SA",
@@ -333,6 +340,9 @@ Booking slots:
333340

334341
~~~json
335342
{
343+
"id": 5,
344+
"slotSize":60,
345+
"slotGap":10,
336346
"slots": [
337347
{ "from": "09:00", "to": "17:00", "days": [0, 1, 2, 3, 4, 5, 6] },
338348
{ "from": "00:00", "to": "00:00", "dates": [

0 commit comments

Comments
 (0)