@wix/auto_sdk_bookings_availability-calendar 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts +111 -18
  2. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +1 -1
  3. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +122 -18
  4. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +4 -0
  5. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +1 -1
  6. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts +111 -18
  7. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +1 -1
  8. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +122 -18
  9. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +4 -0
  10. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +1 -1
  11. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts +111 -18
  12. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +1 -1
  13. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +122 -18
  14. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +4 -0
  15. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +1 -1
  16. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts +111 -18
  17. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +1 -1
  18. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +122 -18
  19. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +4 -0
  20. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +1 -1
  21. package/package.json +2 -2
@@ -82,29 +82,39 @@ export interface Slot {
82
82
  /**
83
83
  * ID for the slot's corresponding event, when the event is either a single event
84
84
  * or a specific event generated from a recurring event.
85
+ * @minLength 36
86
+ * @maxLength 250
85
87
  */
86
88
  eventId?: string | null;
87
89
  }
88
90
  export interface SlotResource {
89
91
  /**
90
92
  * Resource ID.
93
+ * @format GUID
91
94
  * @readonly
92
95
  */
93
96
  id?: string | null;
94
- /** Resource name. Read only. */
97
+ /**
98
+ * Resource name. Read only.
99
+ * @maxLength 1200
100
+ */
95
101
  name?: string | null;
96
102
  }
97
103
  export interface Location {
98
104
  /**
99
105
  * Business location ID. Available only for locations that are business locations,
100
106
  * meaning the `location_type` is `"OWNER_BUSINESS"`.
107
+ * @format GUID
101
108
  */
102
109
  id?: string | null;
103
110
  /** Location name. */
104
111
  name?: string | null;
105
112
  /** The full address of this location. */
106
113
  formattedAddress?: string | null;
107
- /** The full translated address of this location. */
114
+ /**
115
+ * The full translated address of this location.
116
+ * @maxLength 512
117
+ */
108
118
  formattedAddressTranslated?: string | null;
109
119
  /**
110
120
  * Location type.
@@ -140,8 +150,11 @@ export interface BookingPolicyViolations {
140
150
  bookOnlineDisabled?: boolean | null;
141
151
  }
142
152
  export interface NestedTimeSlot {
153
+ /** @format GUID */
143
154
  serviceId?: string;
155
+ /** @maxLength 30 */
144
156
  start?: string;
157
+ /** @maxLength 30 */
145
158
  end?: string;
146
159
  resource?: SlotResource;
147
160
  /** Schedule ID. */
@@ -197,7 +210,10 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
197
210
  export interface QueryV2PagingMethodOneOf {
198
211
  }
199
212
  export interface Sorting {
200
- /** Name of the field to sort by. */
213
+ /**
214
+ * Name of the field to sort by.
215
+ * @maxLength 512
216
+ */
201
217
  fieldName?: string;
202
218
  /** Sort order. */
203
219
  order?: SortOrder;
@@ -207,13 +223,17 @@ export declare enum SortOrder {
207
223
  DESC = "DESC"
208
224
  }
209
225
  export interface CursorPaging {
210
- /** Maximum number of items to return in the results. */
226
+ /**
227
+ * Maximum number of items to return in the results.
228
+ * @max 100
229
+ */
211
230
  limit?: number | null;
212
231
  /**
213
232
  * Pointer to the next or previous page in the list of results.
214
233
  *
215
234
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
216
235
  * Not relevant for the first request.
236
+ * @maxLength 16000
217
237
  */
218
238
  cursor?: string | null;
219
239
  }
@@ -226,6 +246,8 @@ export interface CustomerChoices {
226
246
  * The selected customer duration in minutes.
227
247
  * Min: `1 minute`
228
248
  * Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)
249
+ * @min 1
250
+ * @max 44639
229
251
  */
230
252
  durationInMinutes?: number | null;
231
253
  }
@@ -246,9 +268,15 @@ export interface PagingMetadataV2 {
246
268
  cursors?: Cursors;
247
269
  }
248
270
  export interface Cursors {
249
- /** Cursor string pointing to the next page in the list of results. */
271
+ /**
272
+ * Cursor string pointing to the next page in the list of results.
273
+ * @maxLength 16000
274
+ */
250
275
  next?: string | null;
251
- /** Cursor pointing to the previous page in the list of results. */
276
+ /**
277
+ * Cursor pointing to the previous page in the list of results.
278
+ * @maxLength 16000
279
+ */
252
280
  prev?: string | null;
253
281
  }
254
282
  export interface GetSlotAvailabilityRequest {
@@ -276,7 +304,10 @@ export interface BookingPolicySettings {
276
304
  maxParticipantsPerBooking?: number | null;
277
305
  }
278
306
  export interface GetScheduleAvailabilityRequest {
279
- /** The schedule ID for which availability is being checked. */
307
+ /**
308
+ * The schedule ID for which availability is being checked.
309
+ * @format GUID
310
+ */
280
311
  scheduleId: string;
281
312
  }
282
313
  export interface GetScheduleAvailabilityResponse {
@@ -295,8 +326,11 @@ export interface ScheduleAvailability {
295
326
  bookingPolicyViolations?: BookingPolicyViolations;
296
327
  }
297
328
  export interface CalculateMultiSlotAvailabilityRequest {
329
+ /** @maxLength 30 */
298
330
  from?: string;
331
+ /** @maxLength 30 */
299
332
  to?: string;
333
+ /** @maxLength 30 */
300
334
  timeZone?: string;
301
335
  /** TODO good definition of what bookable means https://github.com/wix-private/scheduler/pull/18267/files?file-filters%5B%5D=.proto&show-viewed-files=true#r1199809006 */
302
336
  bookable?: boolean | null;
@@ -310,6 +344,10 @@ export interface CalculateMultiSlotAvailabilityRequest {
310
344
  * must be set, and must have locationType. If locationType is `OWNER_BUSINESS`, must have location_id
311
345
  */
312
346
  location?: Location;
347
+ /**
348
+ * @minSize 1
349
+ * @maxSize 6
350
+ */
313
351
  slots?: RuleBasedConstraints[];
314
352
  /**
315
353
  * Maximum number of slots to load for each date. For example, if `slots_per_day` is set to `3`,
@@ -324,6 +362,7 @@ export interface CalculateMultiSlotAvailabilityRequest {
324
362
  cursorPaging?: CursorPaging;
325
363
  }
326
364
  export interface RuleBasedConstraints {
365
+ /** @format GUID */
327
366
  serviceId?: string;
328
367
  resourcesFilter?: ResourcesFilter;
329
368
  /** will be passed to availability-2, and to the availability-constraints SPI */
@@ -341,6 +380,8 @@ export interface V2CustomerChoices {
341
380
  * The selected customer duration in minutes.
342
381
  * Min: `1 minute`
343
382
  * Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)
383
+ * @min 1
384
+ * @max 44639
344
385
  */
345
386
  durationInMinutes?: number | null;
346
387
  }
@@ -365,19 +406,26 @@ export interface GetAvailabilityTimeSlotRequest {
365
406
  /**
366
407
  * Service ID of the time slot.
367
408
  * Currently supported only for services of type `APPOINTMENT`.
409
+ * @format GUID
368
410
  */
369
411
  serviceId?: string;
370
412
  /**
371
413
  * Local start date of the time slot, in ISO-8601 format.
372
414
  * For example, "2024-01-30T13:30:00".
415
+ * @format LOCAL_DATE_TIME
373
416
  */
374
417
  localStartDate?: string;
375
418
  /**
376
419
  * Local end date of the time slot, in ISO-8601 format.
377
420
  * For example, "2024-01-30T14:30:00".
421
+ * @format LOCAL_DATE_TIME
378
422
  */
379
423
  localEndDate?: string;
380
- /** Time zone, in IANA time zone format. */
424
+ /**
425
+ * Time zone, in IANA time zone format.
426
+ * @minLength 1
427
+ * @maxLength 150
428
+ */
381
429
  timeZone?: string | null;
382
430
  /**
383
431
  * The location of the time slot.
@@ -397,6 +445,8 @@ export interface GetAvailabilityTimeSlotRequest {
397
445
  * If specified,
398
446
  * the returned `TimeSlot` contains only the available resources out of provided list.
399
447
  * Otherwise, the returned `TimeSlot` returned with all possible `AvailableResources`.
448
+ * @format GUID
449
+ * @maxSize 135
400
450
  */
401
451
  resourceIds?: string[];
402
452
  /**
@@ -404,16 +454,27 @@ export interface GetAvailabilityTimeSlotRequest {
404
454
  *
405
455
  * If specified in request, the returned `TimeSlot` contains only the `AvailableResources` with `ResourceTypeId`
406
456
  * out of those specified, each contains all the available resources of this type.
457
+ * @format GUID
458
+ * @maxSize 100
407
459
  */
408
460
  includeResourceTypeIds?: string[];
409
461
  fromV2?: boolean | null;
410
462
  }
411
463
  export interface TimeSlotLocation {
412
- /** Business Location ID. Present only if the location is a business location. */
464
+ /**
465
+ * Business Location ID. Present only if the location is a business location.
466
+ * @format GUID
467
+ */
413
468
  id?: string | null;
414
- /** The location name. */
469
+ /**
470
+ * The location name.
471
+ * @maxLength 250
472
+ */
415
473
  name?: string | null;
416
- /** A string representation for the full address of the location. */
474
+ /**
475
+ * A string representation for the full address of the location.
476
+ * @maxLength 300
477
+ */
417
478
  formattedAddress?: string | null;
418
479
  /**
419
480
  * The type of location:
@@ -435,7 +496,11 @@ export declare enum LocationLocationType {
435
496
  export interface GetAvailabilityTimeSlotResponse {
436
497
  /** Time slot. */
437
498
  timeSlot?: TimeSlot;
438
- /** Time zone, in IANA time zone format. */
499
+ /**
500
+ * Time zone, in IANA time zone format.
501
+ * @minLength 1
502
+ * @maxLength 150
503
+ */
439
504
  timeZone?: string | null;
440
505
  }
441
506
  /**
@@ -462,16 +527,19 @@ export interface TimeSlot {
462
527
  *
463
528
  * > Not returned from `MultiServiceAvailabilityTimeSlots` API calls.
464
529
  * > Instead, each nested time slot has its own serviceId.
530
+ * @format GUID
465
531
  */
466
532
  serviceId?: string | null;
467
533
  /**
468
534
  * Local start date of the time slot in ISO-8601 format.
469
535
  * For example, "2024-01-30T13:30:00".
536
+ * @format LOCAL_DATE_TIME
470
537
  */
471
538
  localStartDate?: string | null;
472
539
  /**
473
540
  * Local end date of the time slot in ISO-8601 format.
474
541
  * For example, "2024-01-30T14:30:00".
542
+ * @format LOCAL_DATE_TIME
475
543
  */
476
544
  localEndDate?: string | null;
477
545
  /**
@@ -483,11 +551,16 @@ export interface TimeSlot {
483
551
  bookable?: boolean | null;
484
552
  /** The geographic location of the slot. */
485
553
  location?: TimeSlotLocation;
486
- /** Total number of spots for the slot. */
554
+ /**
555
+ * Total number of spots for the slot.
556
+ * @min 1
557
+ * @max 1000
558
+ */
487
559
  totalCapacity?: number | null;
488
560
  /**
489
561
  * Remaining number of spots for the slot.
490
562
  * For example, for an appointment service with total capacity of 1 spot and one booked spot, the remaining capacity will be 0.
563
+ * @max 1000
491
564
  */
492
565
  remainingCapacity?: number | null;
493
566
  /**
@@ -508,6 +581,7 @@ export interface TimeSlot {
508
581
  /**
509
582
  * > Nested time slots.
510
583
  * > Returned only from `MultiServiceAvailabilityTimeSlots` API calls.
584
+ * @maxSize 8
511
585
  */
512
586
  nestedTimeSlots?: Service_availabilityNestedTimeSlot[];
513
587
  }
@@ -515,7 +589,10 @@ export interface TimeSlot {
515
589
  export interface EventInfo {
516
590
  }
517
591
  export interface WaitingList {
518
- /** Total number of spots in this wait list. */
592
+ /**
593
+ * Total number of spots in this wait list.
594
+ * @min 1
595
+ */
519
596
  totalCapacity?: number | null;
520
597
  /**
521
598
  * Number of remaining spots for this wait list.
@@ -533,7 +610,10 @@ export interface Service_availabilityBookingPolicyViolations {
533
610
  bookOnlineDisabled?: boolean | null;
534
611
  }
535
612
  export interface AvailableResources {
536
- /** Resource type ID. */
613
+ /**
614
+ * Resource type ID.
615
+ * @format GUID
616
+ */
537
617
  resourceTypeId?: string | null;
538
618
  /**
539
619
  * Available resources for the time slot.
@@ -563,27 +643,40 @@ export interface AvailableResources {
563
643
  hasMoreAvailableResources?: boolean | null;
564
644
  }
565
645
  export interface Resource {
566
- /** Resource ID. */
646
+ /**
647
+ * Resource ID.
648
+ * @format GUID
649
+ */
567
650
  id?: string;
568
- /** Resource name. */
651
+ /**
652
+ * Resource name.
653
+ * @minLength 1
654
+ * @maxLength 40
655
+ */
569
656
  name?: string | null;
570
657
  }
571
658
  export interface Service_availabilityNestedTimeSlot {
572
- /** Service ID of the nested time slot. */
659
+ /**
660
+ * Service ID of the nested time slot.
661
+ * @format GUID
662
+ */
573
663
  serviceId?: string;
574
664
  /**
575
665
  * Local start date of the nested time slot in ISO-8601 format.
576
666
  * For example, "2024-01-30T13:30:00".
667
+ * @format LOCAL_DATE_TIME
577
668
  */
578
669
  localStartDate?: string;
579
670
  /**
580
671
  * Local end date of the nested time slot in ISO-8601 format.
581
672
  * For example, "2024-01-30T14:30:00".
673
+ * @format LOCAL_DATE_TIME
582
674
  */
583
675
  localEndDate?: string;
584
676
  /**
585
677
  * List of `AvailableResources` for the nested time slot.
586
678
  * Each `AvailableResources` contains information about available resources of the same type.
679
+ * @maxSize 10
587
680
  */
588
681
  availableResources?: AvailableResources[];
589
682
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-availability-v1-slot-availability-availability-calendar.types.js","sourceRoot":"","sources":["../../../../src/bookings-availability-v1-slot-availability-availability-calendar.types.ts"],"names":[],"mappings":";;;AAyHA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAyFD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA8OD,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,uEAA+C,CAAA;IAC/C,4HAA4H;IAC5H,6CAAqB,CAAA;IACrB,iGAAiG;IACjG,yCAAiB,CAAA;IACjB,mFAAmF;IACnF,6CAAqB,CAAA;AACvB,CAAC,EARW,oBAAoB,oCAApB,oBAAoB,QAQ/B"}
1
+ {"version":3,"file":"bookings-availability-v1-slot-availability-availability-calendar.types.js","sourceRoot":"","sources":["../../../../src/bookings-availability-v1-slot-availability-availability-calendar.types.ts"],"names":[],"mappings":";;;AAmIA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AA+FD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA2RD,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,uEAA+C,CAAA;IAC/C,4HAA4H;IAC5H,6CAAqB,CAAA;IACrB,iGAAiG;IACjG,yCAAiB,CAAA;IACjB,mFAAmF;IACnF,6CAAqB,CAAA;AACvB,CAAC,EARW,oBAAoB,oCAApB,oBAAoB,QAQ/B"}