@wix/auto_sdk_bookings_availability-time-slots 1.0.184 → 1.0.185
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.
- package/build/cjs/meta.d.ts +402 -1
- package/build/cjs/meta.js +11 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +402 -1
- package/build/es/meta.mjs +10 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +402 -1
- package/build/internal/cjs/meta.js +11 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +402 -1
- package/build/internal/es/meta.mjs +10 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -252,6 +252,136 @@ interface NonBookableReasons {
|
|
|
252
252
|
/** Whether the related event is cancelled. */
|
|
253
253
|
eventCancelled?: boolean | null;
|
|
254
254
|
}
|
|
255
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
256
|
+
/**
|
|
257
|
+
* Services for which the multi-service time slots are returned.
|
|
258
|
+
* Each service can include its own resource filters.
|
|
259
|
+
*
|
|
260
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
261
|
+
*
|
|
262
|
+
* Min: 2 services
|
|
263
|
+
* Max: 8 services
|
|
264
|
+
* @maxSize 8
|
|
265
|
+
*/
|
|
266
|
+
services?: Service[];
|
|
267
|
+
/**
|
|
268
|
+
* Lower boundary for `localStartDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
269
|
+
* For example, `2026-01-30T13:30:00`.
|
|
270
|
+
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate`.
|
|
271
|
+
*
|
|
272
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
273
|
+
* @format LOCAL_DATE_TIME
|
|
274
|
+
*/
|
|
275
|
+
fromLocalDate?: string | null;
|
|
276
|
+
/**
|
|
277
|
+
* Upper boundary for `localToDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
278
|
+
* For example, `2026-01-30T13:30:00`.
|
|
279
|
+
* Each returned time slot has a `localEndDate` between `fromLocalDate` and `toLocalDate`.
|
|
280
|
+
*
|
|
281
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
282
|
+
* @format LOCAL_DATE_TIME
|
|
283
|
+
*/
|
|
284
|
+
toLocalDate?: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values. For example, `America/New_York` or `UTC`.
|
|
287
|
+
*
|
|
288
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
289
|
+
*
|
|
290
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
291
|
+
* @minLength 1
|
|
292
|
+
* @maxLength 150
|
|
293
|
+
*/
|
|
294
|
+
timeZone?: string | null;
|
|
295
|
+
/**
|
|
296
|
+
* Location for which the multi-service time slots are returned. If you filter by `{"type": "BUSINESS"}`, you must also specify a location ID. Filters for `location.name` and `location.formattedAddress` are ignored.
|
|
297
|
+
*
|
|
298
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
299
|
+
*/
|
|
300
|
+
location?: Location;
|
|
301
|
+
/**
|
|
302
|
+
* Whether the time slot is bookable according to all services' booking policies.
|
|
303
|
+
* If not specified, returns both bookable and non-bookable time slots.
|
|
304
|
+
*/
|
|
305
|
+
bookable?: boolean | null;
|
|
306
|
+
/**
|
|
307
|
+
* Indicators for service's booking policy violations.
|
|
308
|
+
* Allows filtering for time slots with specific violation types based on booking policies ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
|
|
309
|
+
*/
|
|
310
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
311
|
+
/**
|
|
312
|
+
* Maximum number of slots to return for each day in the specified time range.
|
|
313
|
+
* If `bookable` filter isn't specified, bookable slots are returned first.
|
|
314
|
+
*/
|
|
315
|
+
timeSlotsPerDay?: number | null;
|
|
316
|
+
/**
|
|
317
|
+
* Cursor-based paging configuration.
|
|
318
|
+
* Enables fetching results in smaller chunks by setting a limit on the number of results.
|
|
319
|
+
* For consistent pagination behavior, use the same `limit` value throughout a pagination sequence.
|
|
320
|
+
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
321
|
+
*/
|
|
322
|
+
cursorPaging?: CursorPaging;
|
|
323
|
+
}
|
|
324
|
+
interface Service {
|
|
325
|
+
/**
|
|
326
|
+
* Service ID.
|
|
327
|
+
* @format GUID
|
|
328
|
+
*/
|
|
329
|
+
serviceId?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Resource type IDs ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction)) to include in returned time slots.
|
|
332
|
+
* This is in addition to the specifically requested resources.
|
|
333
|
+
*
|
|
334
|
+
* <blockquote>
|
|
335
|
+
* Currently supported only for Staff Member resource type.
|
|
336
|
+
* Staff members belong to resource type ID `1cd44cf8-756f-41c3-bd90-3e2ffcaf1155`.
|
|
337
|
+
* </blockquote>
|
|
338
|
+
* @format GUID
|
|
339
|
+
* @maxSize 100
|
|
340
|
+
*/
|
|
341
|
+
includeResourceTypeIds?: string[];
|
|
342
|
+
/**
|
|
343
|
+
* Selected customer choices.
|
|
344
|
+
* If specified, the selected choices are used to calculate service configuration.
|
|
345
|
+
* If not specified, the service default configuration is used.
|
|
346
|
+
* Enforcing this field is the responsibility of the service plugin implementer, and not the Time Slots V2 API.
|
|
347
|
+
*/
|
|
348
|
+
customerChoices?: V2CustomerChoices;
|
|
349
|
+
/**
|
|
350
|
+
* Resource types to filter time slots.
|
|
351
|
+
* Only returns time slots that have these specific resource types available.
|
|
352
|
+
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
353
|
+
* @maxSize 3
|
|
354
|
+
*/
|
|
355
|
+
resourceTypes?: ResourceType[];
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Selected customer choices.
|
|
359
|
+
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
360
|
+
*/
|
|
361
|
+
interface V2CustomerChoices {
|
|
362
|
+
/**
|
|
363
|
+
* Selected customer duration in minutes.
|
|
364
|
+
* Min: `1` minute
|
|
365
|
+
* Max: `44639` minutes (30 days, 23 hours, and 59 minutes)
|
|
366
|
+
* Default: `15` minutes
|
|
367
|
+
* @min 1
|
|
368
|
+
* @max 44639
|
|
369
|
+
*/
|
|
370
|
+
durationInMinutes?: number | null;
|
|
371
|
+
/**
|
|
372
|
+
* Selected add-on IDs.
|
|
373
|
+
*
|
|
374
|
+
* Max: Calculated as the product of the maximum number of add-on groups multiplied by the maximum number of add-ons per group. Currently 21 (3 groups × 7 add-ons per group), but may change in the future.
|
|
375
|
+
* @format GUID
|
|
376
|
+
* @maxSize 21
|
|
377
|
+
*/
|
|
378
|
+
addOnIds?: string[] | null;
|
|
379
|
+
/**
|
|
380
|
+
* Selected duration choice ID.
|
|
381
|
+
* @format GUID
|
|
382
|
+
*/
|
|
383
|
+
durationChoiceId?: string | null;
|
|
384
|
+
}
|
|
255
385
|
interface ResourceType {
|
|
256
386
|
/**
|
|
257
387
|
* Resource type ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction)).
|
|
@@ -284,6 +414,27 @@ interface CursorPaging {
|
|
|
284
414
|
*/
|
|
285
415
|
cursor?: string | null;
|
|
286
416
|
}
|
|
417
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
418
|
+
/**
|
|
419
|
+
* Retrieved time slots.
|
|
420
|
+
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
421
|
+
* @maxSize 1000
|
|
422
|
+
*/
|
|
423
|
+
timeSlots?: TimeSlot[];
|
|
424
|
+
/**
|
|
425
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
426
|
+
* For example, `America/New_York` or `UTC`.
|
|
427
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
428
|
+
* @minLength 1
|
|
429
|
+
* @maxLength 150
|
|
430
|
+
*/
|
|
431
|
+
timeZone?: string | null;
|
|
432
|
+
/**
|
|
433
|
+
* Paging metadata for the next page of results.
|
|
434
|
+
* Contains a cursor if there are more than 1000 results.
|
|
435
|
+
*/
|
|
436
|
+
cursorPagingMetadata?: CursorPagingMetadata;
|
|
437
|
+
}
|
|
287
438
|
interface CursorPagingMetadata {
|
|
288
439
|
/** Offset that was requested. */
|
|
289
440
|
cursors?: Cursors;
|
|
@@ -300,6 +451,54 @@ interface Cursors {
|
|
|
300
451
|
/** Cursor pointing to previous page in the list of results. */
|
|
301
452
|
prev?: string | null;
|
|
302
453
|
}
|
|
454
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
455
|
+
/**
|
|
456
|
+
* Services for which the multi-service time slots are returned.
|
|
457
|
+
* You can specify resource filters for each service.
|
|
458
|
+
* @minSize 2
|
|
459
|
+
* @maxSize 8
|
|
460
|
+
*/
|
|
461
|
+
services?: Service[];
|
|
462
|
+
/**
|
|
463
|
+
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
464
|
+
* For example, `2026-01-30T13:30:00`.
|
|
465
|
+
* @format LOCAL_DATE_TIME
|
|
466
|
+
*/
|
|
467
|
+
localStartDate?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
470
|
+
* For example, `2026-01-30T13:30:00`.
|
|
471
|
+
* @format LOCAL_DATE_TIME
|
|
472
|
+
*/
|
|
473
|
+
localEndDate?: string;
|
|
474
|
+
/**
|
|
475
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
476
|
+
* For example, `America/New_York` or `UTC`.
|
|
477
|
+
*
|
|
478
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
479
|
+
* @minLength 1
|
|
480
|
+
* @maxLength 150
|
|
481
|
+
*/
|
|
482
|
+
timeZone?: string | null;
|
|
483
|
+
/**
|
|
484
|
+
* Location for which the multi-service time slots are returned. If you filter by `{"type": "BUSINESS"}`, you must also specify a location ID. A filter for `location.name` is ignored.
|
|
485
|
+
*
|
|
486
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
487
|
+
*/
|
|
488
|
+
location?: Location;
|
|
489
|
+
}
|
|
490
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
491
|
+
/** Retrieved time slot. */
|
|
492
|
+
timeSlot?: TimeSlot;
|
|
493
|
+
/**
|
|
494
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
495
|
+
* For example, `America/New_York` or `UTC`.
|
|
496
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
497
|
+
* @minLength 1
|
|
498
|
+
* @maxLength 150
|
|
499
|
+
*/
|
|
500
|
+
timeZone?: string | null;
|
|
501
|
+
}
|
|
303
502
|
interface ListAvailabilityTimeSlotsRequest {
|
|
304
503
|
/**
|
|
305
504
|
* Service ID for which to retrieve time slots. You must specify the ID of an appointment-based service.
|
|
@@ -380,6 +579,32 @@ interface ListAvailabilityTimeSlotsRequest {
|
|
|
380
579
|
*/
|
|
381
580
|
resourceTypes?: ResourceType[];
|
|
382
581
|
}
|
|
582
|
+
/**
|
|
583
|
+
* Selected customer choices.
|
|
584
|
+
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
585
|
+
*/
|
|
586
|
+
interface CustomerChoices {
|
|
587
|
+
/**
|
|
588
|
+
* The selected customer duration in minutes.
|
|
589
|
+
* Min: `1 minute`
|
|
590
|
+
* Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)
|
|
591
|
+
* @min 1
|
|
592
|
+
* @max 44639
|
|
593
|
+
*/
|
|
594
|
+
durationInMinutes?: number | null;
|
|
595
|
+
/**
|
|
596
|
+
* The selected add-ons IDs.
|
|
597
|
+
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
|
598
|
+
* @format GUID
|
|
599
|
+
* @maxSize 21
|
|
600
|
+
*/
|
|
601
|
+
addOnIds?: string[] | null;
|
|
602
|
+
/**
|
|
603
|
+
* The selected duration choice ID.
|
|
604
|
+
* @format GUID
|
|
605
|
+
*/
|
|
606
|
+
durationChoiceId?: string | null;
|
|
607
|
+
}
|
|
383
608
|
interface ListAvailabilityTimeSlotsResponse {
|
|
384
609
|
/**
|
|
385
610
|
* Retrieved time slots.
|
|
@@ -451,6 +676,20 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
451
676
|
*/
|
|
452
677
|
resourceTypes?: ResourceType[];
|
|
453
678
|
}
|
|
679
|
+
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
680
|
+
/**
|
|
681
|
+
* Selected add-on IDs.
|
|
682
|
+
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
|
683
|
+
* @format GUID
|
|
684
|
+
* @maxSize 21
|
|
685
|
+
*/
|
|
686
|
+
addOnIds?: string[] | null;
|
|
687
|
+
/**
|
|
688
|
+
* Selected duration choice ID.
|
|
689
|
+
* @format GUID
|
|
690
|
+
*/
|
|
691
|
+
durationChoiceId?: string | null;
|
|
692
|
+
}
|
|
454
693
|
interface GetAvailabilityTimeSlotResponse {
|
|
455
694
|
/** Retrieved time slot. */
|
|
456
695
|
timeSlot?: TimeSlot;
|
|
@@ -464,6 +703,168 @@ interface GetAvailabilityTimeSlotResponse {
|
|
|
464
703
|
*/
|
|
465
704
|
timeZone?: string | null;
|
|
466
705
|
}
|
|
706
|
+
interface ListEventTimeSlotsRequest {
|
|
707
|
+
/**
|
|
708
|
+
* Lower boundary for `localStartDate` to include in the response.
|
|
709
|
+
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate.
|
|
710
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
711
|
+
*
|
|
712
|
+
* Local start date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
713
|
+
* For example, `2026-01-30T13:30:00`.
|
|
714
|
+
* @format LOCAL_DATE_TIME
|
|
715
|
+
*/
|
|
716
|
+
fromLocalDate?: string | null;
|
|
717
|
+
/**
|
|
718
|
+
* Upper boundary for `localStartDate` to include in the response.
|
|
719
|
+
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate`.
|
|
720
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
721
|
+
*
|
|
722
|
+
* Local end date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
723
|
+
* For example, `2026-01-30T13:30:00`.
|
|
724
|
+
* @format LOCAL_DATE_TIME
|
|
725
|
+
*/
|
|
726
|
+
toLocalDate?: string | null;
|
|
727
|
+
/**
|
|
728
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
729
|
+
* For example, `America/New_York` or `UTC`.
|
|
730
|
+
*
|
|
731
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
732
|
+
* @maxLength 100
|
|
733
|
+
*/
|
|
734
|
+
timeZone?: string | null;
|
|
735
|
+
/**
|
|
736
|
+
* Optional service IDs to filter the response.
|
|
737
|
+
* If not provided, time slots for all services are returned.
|
|
738
|
+
* @format GUID
|
|
739
|
+
* @maxSize 100
|
|
740
|
+
*/
|
|
741
|
+
serviceIds?: string[] | null;
|
|
742
|
+
/**
|
|
743
|
+
* Whether to include time slots that aren't bookable according to the service's booking policy or that are fully booked.
|
|
744
|
+
* - `true`: Both bookable and non-bookable time slots are returned.
|
|
745
|
+
* - `false`: Only bookable time slots are returned.
|
|
746
|
+
*
|
|
747
|
+
* Default: `true`
|
|
748
|
+
*/
|
|
749
|
+
includeNonBookable?: boolean | null;
|
|
750
|
+
/**
|
|
751
|
+
* Minimum bookable capacity.
|
|
752
|
+
* Use to filter out sessions that can't accommodate the desired party size.
|
|
753
|
+
* @min 1
|
|
754
|
+
*/
|
|
755
|
+
minBookableCapacity?: number | null;
|
|
756
|
+
/**
|
|
757
|
+
* Optional filter to apply to the events, for example resource or location.
|
|
758
|
+
* See the [Events API Supported Filters and Sorting article](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting) for a complete list of filters.
|
|
759
|
+
*/
|
|
760
|
+
eventFilter?: Record<string, any> | null;
|
|
761
|
+
/**
|
|
762
|
+
* Maximum number of slots to return for each day in the specified time range.
|
|
763
|
+
* If both bookable and non-bookable slots exist on the same day, bookable slots are returned first.
|
|
764
|
+
*
|
|
765
|
+
* When you specify `maxSlotsPerDay`, you must also specify `toLocalDate`, and it must be no more than 1 month after `fromLocalDate`.
|
|
766
|
+
* @min 1
|
|
767
|
+
* @max 1000
|
|
768
|
+
*/
|
|
769
|
+
maxSlotsPerDay?: number | null;
|
|
770
|
+
/**
|
|
771
|
+
* Cursor-based paging configuration.
|
|
772
|
+
* Enables fetching results in smaller chunks by setting a limit on the number of returned items.
|
|
773
|
+
*/
|
|
774
|
+
cursorPaging?: CursorPaging;
|
|
775
|
+
/**
|
|
776
|
+
* Indicators for service's booking policy violations.
|
|
777
|
+
* Allows filtering for time slots with specific violation types based on booking policies ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
|
|
778
|
+
*/
|
|
779
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
780
|
+
}
|
|
781
|
+
interface ListEventTimeSlotsResponse {
|
|
782
|
+
/** Retrieved time slots matching the specified filters. */
|
|
783
|
+
timeSlots?: TimeSlot[];
|
|
784
|
+
/**
|
|
785
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
786
|
+
* For example, `America/New_York` or `UTC`.
|
|
787
|
+
*
|
|
788
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
789
|
+
* @minLength 1
|
|
790
|
+
* @maxLength 150
|
|
791
|
+
*/
|
|
792
|
+
timeZone?: string | null;
|
|
793
|
+
/**
|
|
794
|
+
* Paging metadata for the next page of results.
|
|
795
|
+
* Contains a cursor if more data is available.
|
|
796
|
+
*/
|
|
797
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
798
|
+
}
|
|
799
|
+
interface GetEventTimeSlotRequest {
|
|
800
|
+
/**
|
|
801
|
+
* Event ID.
|
|
802
|
+
* @minLength 36
|
|
803
|
+
* @maxLength 250
|
|
804
|
+
*/
|
|
805
|
+
eventId?: string | null;
|
|
806
|
+
/**
|
|
807
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
808
|
+
* For example, `America/New_York` or `UTC`.
|
|
809
|
+
*
|
|
810
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
811
|
+
* @maxLength 100
|
|
812
|
+
*/
|
|
813
|
+
timeZone?: string | null;
|
|
814
|
+
}
|
|
815
|
+
interface GetEventTimeSlotResponse {
|
|
816
|
+
/** The time slot. */
|
|
817
|
+
timeSlot?: TimeSlot;
|
|
818
|
+
/**
|
|
819
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
820
|
+
* For example, `America/New_York` or `UTC`.
|
|
821
|
+
*
|
|
822
|
+
* Default: `timeZone` specified in the business site properties ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties)).
|
|
823
|
+
* @minLength 1
|
|
824
|
+
* @maxLength 150
|
|
825
|
+
*/
|
|
826
|
+
timeZone?: string | null;
|
|
827
|
+
}
|
|
828
|
+
/** @docsIgnore */
|
|
829
|
+
type ListAvailabilityTimeSlotsApplicationErrors = {
|
|
830
|
+
code?: 'NO_IMPLEMENTERS_FOUND';
|
|
831
|
+
description?: string;
|
|
832
|
+
data?: Record<string, any>;
|
|
833
|
+
} | {
|
|
834
|
+
code?: 'MULTIPLE_IMPLEMENTERS_FOUND';
|
|
835
|
+
description?: string;
|
|
836
|
+
data?: Record<string, any>;
|
|
837
|
+
} | {
|
|
838
|
+
code?: 'MISSING_ARGUMENTS';
|
|
839
|
+
description?: string;
|
|
840
|
+
data?: Record<string, any>;
|
|
841
|
+
} | {
|
|
842
|
+
code?: 'UNAUTHORIZED_OPERATION';
|
|
843
|
+
description?: string;
|
|
844
|
+
data?: Record<string, any>;
|
|
845
|
+
} | {
|
|
846
|
+
code?: 'SERVICE_NOT_FOUND';
|
|
847
|
+
description?: string;
|
|
848
|
+
data?: Record<string, any>;
|
|
849
|
+
};
|
|
850
|
+
/** @docsIgnore */
|
|
851
|
+
type GetAvailabilityTimeSlotApplicationErrors = {
|
|
852
|
+
code?: 'SLOT_NOT_FOUND';
|
|
853
|
+
description?: string;
|
|
854
|
+
data?: Record<string, any>;
|
|
855
|
+
} | {
|
|
856
|
+
code?: 'NO_IMPLEMENTERS_FOUND';
|
|
857
|
+
description?: string;
|
|
858
|
+
data?: Record<string, any>;
|
|
859
|
+
} | {
|
|
860
|
+
code?: 'MULTIPLE_IMPLEMENTERS_FOUND';
|
|
861
|
+
description?: string;
|
|
862
|
+
data?: Record<string, any>;
|
|
863
|
+
} | {
|
|
864
|
+
code?: 'UNAUTHORIZED_OPERATION';
|
|
865
|
+
description?: string;
|
|
866
|
+
data?: Record<string, any>;
|
|
867
|
+
};
|
|
467
868
|
|
|
468
869
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
469
870
|
getUrl: (context: any) => string;
|
|
@@ -478,4 +879,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
478
879
|
declare function listAvailabilityTimeSlots(): __PublicMethodMetaInfo<'POST', {}, ListAvailabilityTimeSlotsRequest$1, ListAvailabilityTimeSlotsRequest, ListAvailabilityTimeSlotsResponse$1, ListAvailabilityTimeSlotsResponse>;
|
|
479
880
|
declare function getAvailabilityTimeSlot(): __PublicMethodMetaInfo<'POST', {}, GetAvailabilityTimeSlotRequest$1, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotResponse$1, GetAvailabilityTimeSlotResponse>;
|
|
480
881
|
|
|
481
|
-
export { type __PublicMethodMetaInfo, getAvailabilityTimeSlot, listAvailabilityTimeSlots };
|
|
882
|
+
export { type AvailableResources as AvailableResourcesOriginal, type BookingPolicyViolations as BookingPolicyViolationsOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomerChoices as CustomerChoicesOriginal, type EventInfo as EventInfoOriginal, type GetAvailabilityTimeSlotApplicationErrors as GetAvailabilityTimeSlotApplicationErrorsOriginal, type GetAvailabilityTimeSlotRequestCustomerChoices as GetAvailabilityTimeSlotRequestCustomerChoicesOriginal, type GetAvailabilityTimeSlotRequest as GetAvailabilityTimeSlotRequestOriginal, type GetAvailabilityTimeSlotResponse as GetAvailabilityTimeSlotResponseOriginal, type GetEventTimeSlotRequest as GetEventTimeSlotRequestOriginal, type GetEventTimeSlotResponse as GetEventTimeSlotResponseOriginal, type GetMultiServiceAvailabilityTimeSlotRequest as GetMultiServiceAvailabilityTimeSlotRequestOriginal, type GetMultiServiceAvailabilityTimeSlotResponse as GetMultiServiceAvailabilityTimeSlotResponseOriginal, type ListAvailabilityTimeSlotsApplicationErrors as ListAvailabilityTimeSlotsApplicationErrorsOriginal, type ListAvailabilityTimeSlotsRequest as ListAvailabilityTimeSlotsRequestOriginal, type ListAvailabilityTimeSlotsResponse as ListAvailabilityTimeSlotsResponseOriginal, type ListEventTimeSlotsRequest as ListEventTimeSlotsRequestOriginal, type ListEventTimeSlotsResponse as ListEventTimeSlotsResponseOriginal, type ListMultiServiceAvailabilityTimeSlotsRequest as ListMultiServiceAvailabilityTimeSlotsRequestOriginal, type ListMultiServiceAvailabilityTimeSlotsResponse as ListMultiServiceAvailabilityTimeSlotsResponseOriginal, type Location as LocationOriginal, LocationType as LocationTypeOriginal, type LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal, type NestedTimeSlot as NestedTimeSlotOriginal, type NonBookableReasons as NonBookableReasonsOriginal, type Resource as ResourceOriginal, type ResourceType as ResourceTypeOriginal, type Service as ServiceOriginal, type TimeSlot as TimeSlotOriginal, type V2CustomerChoices as V2CustomerChoicesOriginal, type WaitingList as WaitingListOriginal, type __PublicMethodMetaInfo, getAvailabilityTimeSlot, listAvailabilityTimeSlots };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
LocationTypeOriginal: () => LocationType,
|
|
23
24
|
getAvailabilityTimeSlot: () => getAvailabilityTimeSlot2,
|
|
24
25
|
listAvailabilityTimeSlots: () => listAvailabilityTimeSlots2
|
|
25
26
|
});
|
|
@@ -227,6 +228,15 @@ function getAvailabilityTimeSlot(payload) {
|
|
|
227
228
|
return __getAvailabilityTimeSlot;
|
|
228
229
|
}
|
|
229
230
|
|
|
231
|
+
// src/bookings-availability-v2-time-slot-availability-time-slots.types.ts
|
|
232
|
+
var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
233
|
+
LocationType2["UNKNOWN_LOCATION_TYPE"] = "UNKNOWN_LOCATION_TYPE";
|
|
234
|
+
LocationType2["BUSINESS"] = "BUSINESS";
|
|
235
|
+
LocationType2["CUSTOM"] = "CUSTOM";
|
|
236
|
+
LocationType2["CUSTOMER"] = "CUSTOMER";
|
|
237
|
+
return LocationType2;
|
|
238
|
+
})(LocationType || {});
|
|
239
|
+
|
|
230
240
|
// src/bookings-availability-v2-time-slot-availability-time-slots.meta.ts
|
|
231
241
|
function listAvailabilityTimeSlots2() {
|
|
232
242
|
const payload = {};
|
|
@@ -270,6 +280,7 @@ function getAvailabilityTimeSlot2() {
|
|
|
270
280
|
}
|
|
271
281
|
// Annotate the CommonJS export names for ESM import in node:
|
|
272
282
|
0 && (module.exports = {
|
|
283
|
+
LocationTypeOriginal,
|
|
273
284
|
getAvailabilityTimeSlot,
|
|
274
285
|
listAvailabilityTimeSlots
|
|
275
286
|
});
|