@wix/auto_sdk_bookings_availability-time-slots 1.0.271 → 1.0.273
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/index.js +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +274 -230
- package/build/cjs/index.typings.js +5 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +274 -230
- package/build/cjs/meta.js +5 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +5 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +274 -230
- package/build/es/index.typings.mjs +5 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +274 -230
- package/build/es/meta.mjs +5 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +277 -284
- package/build/internal/cjs/meta.d.ts +277 -284
- package/build/internal/es/index.typings.d.mts +277 -284
- package/build/internal/es/meta.d.mts +277 -284
- package/package.json +2 -2
|
@@ -443,6 +443,256 @@ interface GetEventTimeSlotResponse {
|
|
|
443
443
|
*/
|
|
444
444
|
timeZone?: string | null;
|
|
445
445
|
}
|
|
446
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
447
|
+
/**
|
|
448
|
+
* Services for which the multi-service time slots are returned.
|
|
449
|
+
* Each service can include its own resource filters.
|
|
450
|
+
*
|
|
451
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
452
|
+
*
|
|
453
|
+
* Min: 2 services
|
|
454
|
+
* Max: 40 services
|
|
455
|
+
* @maxSize 40
|
|
456
|
+
*/
|
|
457
|
+
services?: Service[];
|
|
458
|
+
/**
|
|
459
|
+
* Lower boundary for `localStartDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
460
|
+
* For example, `2026-01-30T13:30:00`.
|
|
461
|
+
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate`.
|
|
462
|
+
*
|
|
463
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
464
|
+
* @format LOCAL_DATE_TIME
|
|
465
|
+
*/
|
|
466
|
+
fromLocalDate?: string | null;
|
|
467
|
+
/**
|
|
468
|
+
* Upper boundary for `localToDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
469
|
+
* For example, `2026-01-30T13:30:00`.
|
|
470
|
+
* Each returned time slot has a `localEndDate` between `fromLocalDate` and `toLocalDate`.
|
|
471
|
+
*
|
|
472
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
473
|
+
* @format LOCAL_DATE_TIME
|
|
474
|
+
*/
|
|
475
|
+
toLocalDate?: string | null;
|
|
476
|
+
/**
|
|
477
|
+
* 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`.
|
|
478
|
+
*
|
|
479
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
480
|
+
*
|
|
481
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
482
|
+
* @minLength 1
|
|
483
|
+
* @maxLength 150
|
|
484
|
+
*/
|
|
485
|
+
timeZone?: string | null;
|
|
486
|
+
/**
|
|
487
|
+
* 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.
|
|
488
|
+
*
|
|
489
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
490
|
+
*/
|
|
491
|
+
location?: Location;
|
|
492
|
+
/**
|
|
493
|
+
* Whether the time slot is bookable according to all services' booking policies.
|
|
494
|
+
* If not specified, returns both bookable and non-bookable time slots.
|
|
495
|
+
*/
|
|
496
|
+
bookable?: boolean | null;
|
|
497
|
+
/**
|
|
498
|
+
* Indicators for service's booking policy violations.
|
|
499
|
+
* Allows filtering for time slots with specific violation types based on [booking policies](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
|
|
500
|
+
*/
|
|
501
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
502
|
+
/**
|
|
503
|
+
* Maximum number of slots to return for each day in the specified time range.
|
|
504
|
+
* If `bookable` filter isn't specified, bookable slots are returned first.
|
|
505
|
+
*/
|
|
506
|
+
timeSlotsPerDay?: number | null;
|
|
507
|
+
/**
|
|
508
|
+
* Cursor-based paging configuration.
|
|
509
|
+
* Enables fetching results in smaller chunks by setting a limit on the number of results.
|
|
510
|
+
* For consistent pagination behavior, use the same `limit` value throughout a pagination sequence.
|
|
511
|
+
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
512
|
+
*/
|
|
513
|
+
cursorPaging?: CursorPaging;
|
|
514
|
+
}
|
|
515
|
+
interface Service {
|
|
516
|
+
/**
|
|
517
|
+
* Service ID.
|
|
518
|
+
* @format GUID
|
|
519
|
+
*/
|
|
520
|
+
serviceId?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Resource [type IDs](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction) to include in returned time slots.
|
|
523
|
+
* This is in addition to the specifically requested resources.
|
|
524
|
+
*
|
|
525
|
+
* <blockquote>
|
|
526
|
+
* Currently supported only for Staff Member resource type.
|
|
527
|
+
* Staff members belong to resource type ID `1cd44cf8-756f-41c3-bd90-3e2ffcaf1155`.
|
|
528
|
+
* </blockquote>
|
|
529
|
+
* @format GUID
|
|
530
|
+
* @maxSize 100
|
|
531
|
+
*/
|
|
532
|
+
includeResourceTypeIds?: string[];
|
|
533
|
+
/**
|
|
534
|
+
* Selected customer choices.
|
|
535
|
+
* If specified, the selected choices are used to calculate service configuration.
|
|
536
|
+
* If not specified, the service default configuration is used.
|
|
537
|
+
* Enforcing this field is the responsibility of the service plugin implementer, and not the Time Slots V2 API.
|
|
538
|
+
*
|
|
539
|
+
* When using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction), we recommend passing only `addOnIds` and omitting `durationInMinutes`. Wix Bookings then calculates the total duration automatically. If you specify both `addOnIds` and `durationInMinutes`, `durationInMinutes` must equal the service duration plus all selected add-on durations.
|
|
540
|
+
*/
|
|
541
|
+
customerChoices?: V2CustomerChoices;
|
|
542
|
+
/**
|
|
543
|
+
* Resource types to filter time slots.
|
|
544
|
+
* Only returns time slots that have these specific resource types available.
|
|
545
|
+
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
546
|
+
* @maxSize 8
|
|
547
|
+
*/
|
|
548
|
+
resourceTypes?: ResourceType[];
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Selected customer choices.
|
|
552
|
+
*
|
|
553
|
+
* These choices are selected by the customer during the book flow and used to calculate the service's availability configuration.
|
|
554
|
+
*/
|
|
555
|
+
interface V2CustomerChoices {
|
|
556
|
+
/**
|
|
557
|
+
* Selected duration in minutes, based on a [service variant](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction) the customer chose.
|
|
558
|
+
* When using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction), we recommend passing only `addOnIds` instead of `durationInMinutes`. Wix Bookings then calculates the total duration automatically. If you specify both `addOnIds` and `durationInMinutes`, `durationInMinutes` must equal the service duration plus all selected add-on durations.
|
|
559
|
+
*
|
|
560
|
+
* Min: `1` minute
|
|
561
|
+
* Max: `57600` minutes (40 days)
|
|
562
|
+
* Default: `15` minutes
|
|
563
|
+
* @min 1
|
|
564
|
+
* @max 57600
|
|
565
|
+
*/
|
|
566
|
+
durationInMinutes?: number | null;
|
|
567
|
+
/**
|
|
568
|
+
* Selected [add-on](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) IDs.
|
|
569
|
+
* When specifying this field, we recommend omitting `durationInMinutes`. Wix Bookings then calculates the total duration based on the service duration plus all selected add-on durations.
|
|
570
|
+
*
|
|
571
|
+
* Max: 21 (3 add-on groups × 7 add-ons per group).
|
|
572
|
+
* @format GUID
|
|
573
|
+
* @maxSize 21
|
|
574
|
+
*/
|
|
575
|
+
addOnIds?: string[] | null;
|
|
576
|
+
/**
|
|
577
|
+
* Selected duration choice ID.
|
|
578
|
+
* @format GUID
|
|
579
|
+
*/
|
|
580
|
+
durationChoiceId?: string | null;
|
|
581
|
+
/**
|
|
582
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
583
|
+
* Only time slots served by staff members of that gender are returned.
|
|
584
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
585
|
+
*
|
|
586
|
+
* Requires `genderPubliclyAccessible` to be enabled in the business's [staff member settings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction). The call fails with `REQUESTED_GENDER_NOT_ALLOWED` when it's disabled.
|
|
587
|
+
*/
|
|
588
|
+
requestedGender?: V2RequestedGenderValue;
|
|
589
|
+
}
|
|
590
|
+
/** Gender narrowing for an "any staff member" selection. */
|
|
591
|
+
interface V2RequestedGenderValue {
|
|
592
|
+
/** Gender the customer narrowed "any staff member" to. */
|
|
593
|
+
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Selectable genders. Staff members of any other gender are reachable
|
|
597
|
+
* through plain "any staff member" or by name.
|
|
598
|
+
*/
|
|
599
|
+
declare enum RequestedGenderValueRequestedGender {
|
|
600
|
+
/**
|
|
601
|
+
* Any male staff member.
|
|
602
|
+
* @documentationMaturity preview
|
|
603
|
+
*/
|
|
604
|
+
ANY_MALE = "ANY_MALE",
|
|
605
|
+
/**
|
|
606
|
+
* Any female staff member.
|
|
607
|
+
* @documentationMaturity preview
|
|
608
|
+
*/
|
|
609
|
+
ANY_FEMALE = "ANY_FEMALE"
|
|
610
|
+
}
|
|
611
|
+
/** @enumType */
|
|
612
|
+
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender | 'ANY_MALE' | 'ANY_FEMALE';
|
|
613
|
+
interface ResourceType {
|
|
614
|
+
/**
|
|
615
|
+
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
616
|
+
* @format GUID
|
|
617
|
+
*/
|
|
618
|
+
resourceTypeId?: string | null;
|
|
619
|
+
/**
|
|
620
|
+
* Resource IDs.
|
|
621
|
+
* Available only if there is at least 1 resource available for the slot.
|
|
622
|
+
* @format GUID
|
|
623
|
+
* @maxSize 135
|
|
624
|
+
*/
|
|
625
|
+
resourceIds?: string[] | null;
|
|
626
|
+
}
|
|
627
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
628
|
+
/**
|
|
629
|
+
* Retrieved time slots.
|
|
630
|
+
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
631
|
+
* @maxSize 1000
|
|
632
|
+
*/
|
|
633
|
+
timeSlots?: TimeSlot[];
|
|
634
|
+
/**
|
|
635
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
636
|
+
* For example, `America/New_York` or `UTC`.
|
|
637
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
638
|
+
* @minLength 1
|
|
639
|
+
* @maxLength 150
|
|
640
|
+
*/
|
|
641
|
+
timeZone?: string | null;
|
|
642
|
+
/**
|
|
643
|
+
* Paging metadata for the next page of results.
|
|
644
|
+
* Contains a cursor if there are more than 1000 results.
|
|
645
|
+
*/
|
|
646
|
+
cursorPagingMetadata?: CursorPagingMetadata;
|
|
647
|
+
}
|
|
648
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
649
|
+
/**
|
|
650
|
+
* Services for which the multi-service time slots are returned.
|
|
651
|
+
* You can specify resource filters for each service.
|
|
652
|
+
* @minSize 2
|
|
653
|
+
* @maxSize 40
|
|
654
|
+
*/
|
|
655
|
+
services?: Service[];
|
|
656
|
+
/**
|
|
657
|
+
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
658
|
+
* For example, `2026-01-30T13:30:00`.
|
|
659
|
+
* @format LOCAL_DATE_TIME
|
|
660
|
+
*/
|
|
661
|
+
localStartDate?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
664
|
+
* For example, `2026-01-30T13:30:00`.
|
|
665
|
+
* @format LOCAL_DATE_TIME
|
|
666
|
+
*/
|
|
667
|
+
localEndDate?: string;
|
|
668
|
+
/**
|
|
669
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
670
|
+
* For example, `America/New_York` or `UTC`.
|
|
671
|
+
*
|
|
672
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
673
|
+
* @minLength 1
|
|
674
|
+
* @maxLength 150
|
|
675
|
+
*/
|
|
676
|
+
timeZone?: string | null;
|
|
677
|
+
/**
|
|
678
|
+
* 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.
|
|
679
|
+
*
|
|
680
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
681
|
+
*/
|
|
682
|
+
location?: Location;
|
|
683
|
+
}
|
|
684
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
685
|
+
/** Retrieved time slot. */
|
|
686
|
+
timeSlot?: TimeSlot;
|
|
687
|
+
/**
|
|
688
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
689
|
+
* For example, `America/New_York` or `UTC`.
|
|
690
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
691
|
+
* @minLength 1
|
|
692
|
+
* @maxLength 150
|
|
693
|
+
*/
|
|
694
|
+
timeZone?: string | null;
|
|
695
|
+
}
|
|
446
696
|
interface ListAvailabilityTimeSlotsRequest {
|
|
447
697
|
/**
|
|
448
698
|
* Service ID for which to retrieve time slots. You must specify the ID of an appointment-based service.
|
|
@@ -553,6 +803,14 @@ interface CustomerChoices {
|
|
|
553
803
|
* @format GUID
|
|
554
804
|
*/
|
|
555
805
|
durationChoiceId?: string | null;
|
|
806
|
+
/**
|
|
807
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
808
|
+
* Only time slots served by staff members of that gender are returned.
|
|
809
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
810
|
+
*
|
|
811
|
+
* Requires `genderPubliclyAccessible` to be enabled in the business's [staff member settings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction). The call fails with `REQUESTED_GENDER_NOT_ALLOWED` when it's disabled.
|
|
812
|
+
*/
|
|
813
|
+
requestedGender?: RequestedGenderValue;
|
|
556
814
|
}
|
|
557
815
|
/** Gender narrowing for an "any staff member" selection. */
|
|
558
816
|
interface RequestedGenderValue {
|
|
@@ -564,23 +822,19 @@ interface RequestedGenderValue {
|
|
|
564
822
|
* through plain "any staff member" or by name.
|
|
565
823
|
*/
|
|
566
824
|
declare enum RequestedGender {
|
|
567
|
-
}
|
|
568
|
-
/** @enumType */
|
|
569
|
-
type RequestedGenderWithLiterals = RequestedGender;
|
|
570
|
-
interface ResourceType {
|
|
571
825
|
/**
|
|
572
|
-
*
|
|
573
|
-
* @
|
|
826
|
+
* Any male staff member.
|
|
827
|
+
* @documentationMaturity preview
|
|
574
828
|
*/
|
|
575
|
-
|
|
829
|
+
ANY_MALE = "ANY_MALE",
|
|
576
830
|
/**
|
|
577
|
-
*
|
|
578
|
-
*
|
|
579
|
-
* @format GUID
|
|
580
|
-
* @maxSize 135
|
|
831
|
+
* Any female staff member.
|
|
832
|
+
* @documentationMaturity preview
|
|
581
833
|
*/
|
|
582
|
-
|
|
834
|
+
ANY_FEMALE = "ANY_FEMALE"
|
|
583
835
|
}
|
|
836
|
+
/** @enumType */
|
|
837
|
+
type RequestedGenderWithLiterals = RequestedGender | 'ANY_MALE' | 'ANY_FEMALE';
|
|
584
838
|
interface ListAvailabilityTimeSlotsResponse {
|
|
585
839
|
/**
|
|
586
840
|
* Retrieved time slots.
|
|
@@ -702,19 +956,6 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
702
956
|
*/
|
|
703
957
|
resourceTypes?: ResourceType[];
|
|
704
958
|
}
|
|
705
|
-
/** Gender narrowing for an "any staff member" selection. */
|
|
706
|
-
interface V2RequestedGenderValue {
|
|
707
|
-
/** Gender the customer narrowed "any staff member" to. */
|
|
708
|
-
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* Selectable genders. Staff members of any other gender are reachable
|
|
712
|
-
* through plain "any staff member" or by name.
|
|
713
|
-
*/
|
|
714
|
-
declare enum RequestedGenderValueRequestedGender {
|
|
715
|
-
}
|
|
716
|
-
/** @enumType */
|
|
717
|
-
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender;
|
|
718
959
|
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
719
960
|
/**
|
|
720
961
|
* Selected add-on IDs.
|
|
@@ -728,6 +969,14 @@ interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
|
728
969
|
* @format GUID
|
|
729
970
|
*/
|
|
730
971
|
durationChoiceId?: string | null;
|
|
972
|
+
/**
|
|
973
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
974
|
+
* Only time slots served by staff members of that gender are returned.
|
|
975
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
976
|
+
*
|
|
977
|
+
* Requires `genderPubliclyAccessible` to be enabled in the business's [staff member settings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction). The call fails with `REQUESTED_GENDER_NOT_ALLOWED` when it's disabled.
|
|
978
|
+
*/
|
|
979
|
+
requestedGender?: V2RequestedGenderValue;
|
|
731
980
|
}
|
|
732
981
|
interface GetAvailabilityTimeSlotResponse {
|
|
733
982
|
/** Retrieved time slot. */
|
|
@@ -1073,211 +1322,6 @@ interface BulkActionMetadata {
|
|
|
1073
1322
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1074
1323
|
undetailedFailures?: number;
|
|
1075
1324
|
}
|
|
1076
|
-
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
1077
|
-
/**
|
|
1078
|
-
* Services for which the multi-service time slots are returned.
|
|
1079
|
-
* Each service can include its own resource filters.
|
|
1080
|
-
*
|
|
1081
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
1082
|
-
*
|
|
1083
|
-
* Min: 2 services
|
|
1084
|
-
* Max: 40 services
|
|
1085
|
-
* @maxSize 40
|
|
1086
|
-
*/
|
|
1087
|
-
services?: Service[];
|
|
1088
|
-
/**
|
|
1089
|
-
* Lower boundary for `localStartDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1090
|
-
* For example, `2026-01-30T13:30:00`.
|
|
1091
|
-
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate`.
|
|
1092
|
-
*
|
|
1093
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
1094
|
-
* @format LOCAL_DATE_TIME
|
|
1095
|
-
*/
|
|
1096
|
-
fromLocalDate?: string | null;
|
|
1097
|
-
/**
|
|
1098
|
-
* Upper boundary for `localToDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1099
|
-
* For example, `2026-01-30T13:30:00`.
|
|
1100
|
-
* Each returned time slot has a `localEndDate` between `fromLocalDate` and `toLocalDate`.
|
|
1101
|
-
*
|
|
1102
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
1103
|
-
* @format LOCAL_DATE_TIME
|
|
1104
|
-
*/
|
|
1105
|
-
toLocalDate?: string | null;
|
|
1106
|
-
/**
|
|
1107
|
-
* 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`.
|
|
1108
|
-
*
|
|
1109
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
1110
|
-
*
|
|
1111
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1112
|
-
* @minLength 1
|
|
1113
|
-
* @maxLength 150
|
|
1114
|
-
*/
|
|
1115
|
-
timeZone?: string | null;
|
|
1116
|
-
/**
|
|
1117
|
-
* 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.
|
|
1118
|
-
*
|
|
1119
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
1120
|
-
*/
|
|
1121
|
-
location?: Location;
|
|
1122
|
-
/**
|
|
1123
|
-
* Whether the time slot is bookable according to all services' booking policies.
|
|
1124
|
-
* If not specified, returns both bookable and non-bookable time slots.
|
|
1125
|
-
*/
|
|
1126
|
-
bookable?: boolean | null;
|
|
1127
|
-
/**
|
|
1128
|
-
* Indicators for service's booking policy violations.
|
|
1129
|
-
* Allows filtering for time slots with specific violation types based on [booking policies](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
|
|
1130
|
-
*/
|
|
1131
|
-
bookingPolicyViolations?: BookingPolicyViolations;
|
|
1132
|
-
/**
|
|
1133
|
-
* Maximum number of slots to return for each day in the specified time range.
|
|
1134
|
-
* If `bookable` filter isn't specified, bookable slots are returned first.
|
|
1135
|
-
*/
|
|
1136
|
-
timeSlotsPerDay?: number | null;
|
|
1137
|
-
/**
|
|
1138
|
-
* Cursor-based paging configuration.
|
|
1139
|
-
* Enables fetching results in smaller chunks by setting a limit on the number of results.
|
|
1140
|
-
* For consistent pagination behavior, use the same `limit` value throughout a pagination sequence.
|
|
1141
|
-
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
1142
|
-
*/
|
|
1143
|
-
cursorPaging?: CursorPaging;
|
|
1144
|
-
}
|
|
1145
|
-
interface Service {
|
|
1146
|
-
/**
|
|
1147
|
-
* Service ID.
|
|
1148
|
-
* @format GUID
|
|
1149
|
-
*/
|
|
1150
|
-
serviceId?: string;
|
|
1151
|
-
/**
|
|
1152
|
-
* Resource [type IDs](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction) to include in returned time slots.
|
|
1153
|
-
* This is in addition to the specifically requested resources.
|
|
1154
|
-
*
|
|
1155
|
-
* <blockquote>
|
|
1156
|
-
* Currently supported only for Staff Member resource type.
|
|
1157
|
-
* Staff members belong to resource type ID `1cd44cf8-756f-41c3-bd90-3e2ffcaf1155`.
|
|
1158
|
-
* </blockquote>
|
|
1159
|
-
* @format GUID
|
|
1160
|
-
* @maxSize 100
|
|
1161
|
-
*/
|
|
1162
|
-
includeResourceTypeIds?: string[];
|
|
1163
|
-
/**
|
|
1164
|
-
* Selected customer choices.
|
|
1165
|
-
* If specified, the selected choices are used to calculate service configuration.
|
|
1166
|
-
* If not specified, the service default configuration is used.
|
|
1167
|
-
* Enforcing this field is the responsibility of the service plugin implementer, and not the Time Slots V2 API.
|
|
1168
|
-
*
|
|
1169
|
-
* When using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction), we recommend passing only `addOnIds` and omitting `durationInMinutes`. Wix Bookings then calculates the total duration automatically. If you specify both `addOnIds` and `durationInMinutes`, `durationInMinutes` must equal the service duration plus all selected add-on durations.
|
|
1170
|
-
*/
|
|
1171
|
-
customerChoices?: V2CustomerChoices;
|
|
1172
|
-
/**
|
|
1173
|
-
* Resource types to filter time slots.
|
|
1174
|
-
* Only returns time slots that have these specific resource types available.
|
|
1175
|
-
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
1176
|
-
* @maxSize 8
|
|
1177
|
-
*/
|
|
1178
|
-
resourceTypes?: ResourceType[];
|
|
1179
|
-
}
|
|
1180
|
-
/**
|
|
1181
|
-
* Selected customer choices.
|
|
1182
|
-
*
|
|
1183
|
-
* These choices are selected by the customer during the book flow and used to calculate the service's availability configuration.
|
|
1184
|
-
*/
|
|
1185
|
-
interface V2CustomerChoices {
|
|
1186
|
-
/**
|
|
1187
|
-
* Selected duration in minutes, based on a [service variant](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction) the customer chose.
|
|
1188
|
-
* When using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction), we recommend passing only `addOnIds` instead of `durationInMinutes`. Wix Bookings then calculates the total duration automatically. If you specify both `addOnIds` and `durationInMinutes`, `durationInMinutes` must equal the service duration plus all selected add-on durations.
|
|
1189
|
-
*
|
|
1190
|
-
* Min: `1` minute
|
|
1191
|
-
* Max: `57600` minutes (40 days)
|
|
1192
|
-
* Default: `15` minutes
|
|
1193
|
-
* @min 1
|
|
1194
|
-
* @max 57600
|
|
1195
|
-
*/
|
|
1196
|
-
durationInMinutes?: number | null;
|
|
1197
|
-
/**
|
|
1198
|
-
* Selected [add-on](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) IDs.
|
|
1199
|
-
* When specifying this field, we recommend omitting `durationInMinutes`. Wix Bookings then calculates the total duration based on the service duration plus all selected add-on durations.
|
|
1200
|
-
*
|
|
1201
|
-
* Max: 21 (3 add-on groups × 7 add-ons per group).
|
|
1202
|
-
* @format GUID
|
|
1203
|
-
* @maxSize 21
|
|
1204
|
-
*/
|
|
1205
|
-
addOnIds?: string[] | null;
|
|
1206
|
-
/**
|
|
1207
|
-
* Selected duration choice ID.
|
|
1208
|
-
* @format GUID
|
|
1209
|
-
*/
|
|
1210
|
-
durationChoiceId?: string | null;
|
|
1211
|
-
}
|
|
1212
|
-
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
1213
|
-
/**
|
|
1214
|
-
* Retrieved time slots.
|
|
1215
|
-
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
1216
|
-
* @maxSize 1000
|
|
1217
|
-
*/
|
|
1218
|
-
timeSlots?: TimeSlot[];
|
|
1219
|
-
/**
|
|
1220
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
1221
|
-
* For example, `America/New_York` or `UTC`.
|
|
1222
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1223
|
-
* @minLength 1
|
|
1224
|
-
* @maxLength 150
|
|
1225
|
-
*/
|
|
1226
|
-
timeZone?: string | null;
|
|
1227
|
-
/**
|
|
1228
|
-
* Paging metadata for the next page of results.
|
|
1229
|
-
* Contains a cursor if there are more than 1000 results.
|
|
1230
|
-
*/
|
|
1231
|
-
cursorPagingMetadata?: CursorPagingMetadata;
|
|
1232
|
-
}
|
|
1233
|
-
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
1234
|
-
/**
|
|
1235
|
-
* Services for which the multi-service time slots are returned.
|
|
1236
|
-
* You can specify resource filters for each service.
|
|
1237
|
-
* @minSize 2
|
|
1238
|
-
* @maxSize 40
|
|
1239
|
-
*/
|
|
1240
|
-
services?: Service[];
|
|
1241
|
-
/**
|
|
1242
|
-
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1243
|
-
* For example, `2026-01-30T13:30:00`.
|
|
1244
|
-
* @format LOCAL_DATE_TIME
|
|
1245
|
-
*/
|
|
1246
|
-
localStartDate?: string;
|
|
1247
|
-
/**
|
|
1248
|
-
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1249
|
-
* For example, `2026-01-30T13:30:00`.
|
|
1250
|
-
* @format LOCAL_DATE_TIME
|
|
1251
|
-
*/
|
|
1252
|
-
localEndDate?: string;
|
|
1253
|
-
/**
|
|
1254
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
1255
|
-
* For example, `America/New_York` or `UTC`.
|
|
1256
|
-
*
|
|
1257
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1258
|
-
* @minLength 1
|
|
1259
|
-
* @maxLength 150
|
|
1260
|
-
*/
|
|
1261
|
-
timeZone?: string | null;
|
|
1262
|
-
/**
|
|
1263
|
-
* 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.
|
|
1264
|
-
*
|
|
1265
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
1266
|
-
*/
|
|
1267
|
-
location?: Location;
|
|
1268
|
-
}
|
|
1269
|
-
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
1270
|
-
/** Retrieved time slot. */
|
|
1271
|
-
timeSlot?: TimeSlot;
|
|
1272
|
-
/**
|
|
1273
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
1274
|
-
* For example, `America/New_York` or `UTC`.
|
|
1275
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1276
|
-
* @minLength 1
|
|
1277
|
-
* @maxLength 150
|
|
1278
|
-
*/
|
|
1279
|
-
timeZone?: string | null;
|
|
1280
|
-
}
|
|
1281
1325
|
/** @docsIgnore */
|
|
1282
1326
|
type ListAvailabilityTimeSlotsApplicationErrors = {
|
|
1283
1327
|
code?: 'NO_IMPLEMENTERS_FOUND';
|
|
@@ -245,16 +245,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
|
245
245
|
LocationType2["CUSTOMER"] = "CUSTOMER";
|
|
246
246
|
return LocationType2;
|
|
247
247
|
})(LocationType || {});
|
|
248
|
-
var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
|
|
249
|
-
RequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
250
|
-
RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
251
|
-
return RequestedGender2;
|
|
252
|
-
})(RequestedGender || {});
|
|
253
248
|
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
254
249
|
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
255
250
|
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
256
251
|
return RequestedGenderValueRequestedGender2;
|
|
257
252
|
})(RequestedGenderValueRequestedGender || {});
|
|
253
|
+
var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
|
|
254
|
+
RequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
255
|
+
RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
256
|
+
return RequestedGender2;
|
|
257
|
+
})(RequestedGender || {});
|
|
258
258
|
var ReasonCode = /* @__PURE__ */ ((ReasonCode2) => {
|
|
259
259
|
ReasonCode2["NO_ASSIGNED_STAFF_OR_RESOURCES"] = "NO_ASSIGNED_STAFF_OR_RESOURCES";
|
|
260
260
|
ReasonCode2["SERVICE_AVAILABILITY_CONFIGURATION_MISSING"] = "SERVICE_AVAILABILITY_CONFIGURATION_MISSING";
|