@wix/auto_sdk_bookings_availability-time-slots 1.0.285 → 1.0.286
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 +250 -250
- package/build/cjs/index.typings.js +5 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +250 -250
- 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 +250 -250
- package/build/es/index.typings.mjs +5 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +250 -250
- package/build/es/meta.mjs +5 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +275 -275
- package/build/internal/cjs/meta.d.ts +275 -275
- package/build/internal/es/index.typings.d.mts +275 -275
- package/build/internal/es/meta.d.mts +275 -275
- package/package.json +2 -2
|
@@ -474,256 +474,6 @@ interface GetEventTimeSlotResponse {
|
|
|
474
474
|
*/
|
|
475
475
|
timeZone?: string | null;
|
|
476
476
|
}
|
|
477
|
-
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
478
|
-
/**
|
|
479
|
-
* Services for which the multi-service time slots are returned.
|
|
480
|
-
* Each service can include its own resource filters.
|
|
481
|
-
*
|
|
482
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
483
|
-
*
|
|
484
|
-
* Min: 2 services
|
|
485
|
-
* Max: 40 services
|
|
486
|
-
* @maxSize 40
|
|
487
|
-
*/
|
|
488
|
-
services?: Service[];
|
|
489
|
-
/**
|
|
490
|
-
* Lower boundary for `localStartDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
491
|
-
* For example, `2026-01-30T13:30:00`.
|
|
492
|
-
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate`.
|
|
493
|
-
*
|
|
494
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
495
|
-
* @format LOCAL_DATE_TIME
|
|
496
|
-
*/
|
|
497
|
-
fromLocalDate?: string | null;
|
|
498
|
-
/**
|
|
499
|
-
* Upper boundary for `localToDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
500
|
-
* For example, `2026-01-30T13:30:00`.
|
|
501
|
-
* Each returned time slot has a `localEndDate` between `fromLocalDate` and `toLocalDate`.
|
|
502
|
-
*
|
|
503
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
504
|
-
* @format LOCAL_DATE_TIME
|
|
505
|
-
*/
|
|
506
|
-
toLocalDate?: string | null;
|
|
507
|
-
/**
|
|
508
|
-
* 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`.
|
|
509
|
-
*
|
|
510
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
511
|
-
*
|
|
512
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
513
|
-
* @minLength 1
|
|
514
|
-
* @maxLength 150
|
|
515
|
-
*/
|
|
516
|
-
timeZone?: string | null;
|
|
517
|
-
/**
|
|
518
|
-
* 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.
|
|
519
|
-
*
|
|
520
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
521
|
-
*/
|
|
522
|
-
location?: Location;
|
|
523
|
-
/**
|
|
524
|
-
* Whether the time slot is bookable according to all services' booking policies.
|
|
525
|
-
* If not specified, returns both bookable and non-bookable time slots.
|
|
526
|
-
*/
|
|
527
|
-
bookable?: boolean | null;
|
|
528
|
-
/**
|
|
529
|
-
* Indicators for service's booking policy violations.
|
|
530
|
-
* 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.
|
|
531
|
-
*/
|
|
532
|
-
bookingPolicyViolations?: BookingPolicyViolations;
|
|
533
|
-
/**
|
|
534
|
-
* Maximum number of slots to return for each day in the specified time range.
|
|
535
|
-
* If `bookable` filter isn't specified, bookable slots are returned first.
|
|
536
|
-
*/
|
|
537
|
-
timeSlotsPerDay?: number | null;
|
|
538
|
-
/**
|
|
539
|
-
* Cursor-based paging configuration.
|
|
540
|
-
* Enables fetching results in smaller chunks by setting a limit on the number of results.
|
|
541
|
-
* For consistent pagination behavior, use the same `limit` value throughout a pagination sequence.
|
|
542
|
-
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
543
|
-
*/
|
|
544
|
-
cursorPaging?: CursorPaging;
|
|
545
|
-
}
|
|
546
|
-
interface Service {
|
|
547
|
-
/**
|
|
548
|
-
* Service ID.
|
|
549
|
-
* @format GUID
|
|
550
|
-
*/
|
|
551
|
-
serviceId?: string;
|
|
552
|
-
/**
|
|
553
|
-
* Resource [type IDs](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction) to include in returned time slots.
|
|
554
|
-
* This is in addition to the specifically requested resources.
|
|
555
|
-
*
|
|
556
|
-
* <blockquote>
|
|
557
|
-
* Currently supported only for Staff Member resource type.
|
|
558
|
-
* Staff members belong to resource type ID `1cd44cf8-756f-41c3-bd90-3e2ffcaf1155`.
|
|
559
|
-
* </blockquote>
|
|
560
|
-
* @format GUID
|
|
561
|
-
* @maxSize 100
|
|
562
|
-
*/
|
|
563
|
-
includeResourceTypeIds?: string[];
|
|
564
|
-
/**
|
|
565
|
-
* Selected customer choices.
|
|
566
|
-
* If specified, the selected choices are used to calculate service configuration.
|
|
567
|
-
* If not specified, the service default configuration is used.
|
|
568
|
-
* Enforcing this field is the responsibility of the service plugin implementer, and not the Time Slots V2 API.
|
|
569
|
-
*
|
|
570
|
-
* 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.
|
|
571
|
-
*/
|
|
572
|
-
customerChoices?: V2CustomerChoices;
|
|
573
|
-
/**
|
|
574
|
-
* Resource types to filter time slots.
|
|
575
|
-
* Only returns time slots that have these specific resource types available.
|
|
576
|
-
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
577
|
-
* @maxSize 8
|
|
578
|
-
*/
|
|
579
|
-
resourceTypes?: ResourceType[];
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* Selected customer choices.
|
|
583
|
-
*
|
|
584
|
-
* These choices are selected by the customer during the book flow and used to calculate the service's availability configuration.
|
|
585
|
-
*/
|
|
586
|
-
interface V2CustomerChoices {
|
|
587
|
-
/**
|
|
588
|
-
* 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.
|
|
589
|
-
* 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.
|
|
590
|
-
*
|
|
591
|
-
* Min: `1` minute
|
|
592
|
-
* Max: `57600` minutes (40 days)
|
|
593
|
-
* Default: `15` minutes
|
|
594
|
-
* @min 1
|
|
595
|
-
* @max 57600
|
|
596
|
-
*/
|
|
597
|
-
durationInMinutes?: number | null;
|
|
598
|
-
/**
|
|
599
|
-
* Selected [add-on](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) IDs.
|
|
600
|
-
* 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.
|
|
601
|
-
*
|
|
602
|
-
* Max: 21 (3 add-on groups × 7 add-ons per group).
|
|
603
|
-
* @format GUID
|
|
604
|
-
* @maxSize 21
|
|
605
|
-
*/
|
|
606
|
-
addOnIds?: string[] | null;
|
|
607
|
-
/**
|
|
608
|
-
* Selected duration choice ID.
|
|
609
|
-
* @format GUID
|
|
610
|
-
*/
|
|
611
|
-
durationChoiceId?: string | null;
|
|
612
|
-
/**
|
|
613
|
-
* Gender the customer narrowed an "any staff member" selection to.
|
|
614
|
-
* Only time slots served by staff members of that gender are returned.
|
|
615
|
-
* Omit to keep "any staff member" unnarrowed.
|
|
616
|
-
*
|
|
617
|
-
* 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.
|
|
618
|
-
*/
|
|
619
|
-
requestedGender?: V2RequestedGenderValue;
|
|
620
|
-
}
|
|
621
|
-
/** Gender narrowing for an "any staff member" selection. */
|
|
622
|
-
interface V2RequestedGenderValue {
|
|
623
|
-
/** Gender the customer narrowed "any staff member" to. */
|
|
624
|
-
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
625
|
-
}
|
|
626
|
-
/**
|
|
627
|
-
* Selectable genders. Staff members of any other gender are reachable
|
|
628
|
-
* through plain "any staff member" or by name.
|
|
629
|
-
*/
|
|
630
|
-
declare enum RequestedGenderValueRequestedGender {
|
|
631
|
-
/**
|
|
632
|
-
* Any male staff member.
|
|
633
|
-
* @documentationMaturity preview
|
|
634
|
-
*/
|
|
635
|
-
ANY_MALE = "ANY_MALE",
|
|
636
|
-
/**
|
|
637
|
-
* Any female staff member.
|
|
638
|
-
* @documentationMaturity preview
|
|
639
|
-
*/
|
|
640
|
-
ANY_FEMALE = "ANY_FEMALE"
|
|
641
|
-
}
|
|
642
|
-
/** @enumType */
|
|
643
|
-
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender | 'ANY_MALE' | 'ANY_FEMALE';
|
|
644
|
-
interface ResourceType {
|
|
645
|
-
/**
|
|
646
|
-
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
647
|
-
* @format GUID
|
|
648
|
-
*/
|
|
649
|
-
resourceTypeId?: string | null;
|
|
650
|
-
/**
|
|
651
|
-
* Resource IDs.
|
|
652
|
-
* Available only if there is at least 1 resource available for the slot.
|
|
653
|
-
* @format GUID
|
|
654
|
-
* @maxSize 135
|
|
655
|
-
*/
|
|
656
|
-
resourceIds?: string[] | null;
|
|
657
|
-
}
|
|
658
|
-
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
659
|
-
/**
|
|
660
|
-
* Retrieved time slots.
|
|
661
|
-
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
662
|
-
* @maxSize 1000
|
|
663
|
-
*/
|
|
664
|
-
timeSlots?: TimeSlot[];
|
|
665
|
-
/**
|
|
666
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
667
|
-
* For example, `America/New_York` or `UTC`.
|
|
668
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
669
|
-
* @minLength 1
|
|
670
|
-
* @maxLength 150
|
|
671
|
-
*/
|
|
672
|
-
timeZone?: string | null;
|
|
673
|
-
/**
|
|
674
|
-
* Paging metadata for the next page of results.
|
|
675
|
-
* Contains a cursor if there are more than 1000 results.
|
|
676
|
-
*/
|
|
677
|
-
cursorPagingMetadata?: CursorPagingMetadata;
|
|
678
|
-
}
|
|
679
|
-
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
680
|
-
/**
|
|
681
|
-
* Services for which the multi-service time slots are returned.
|
|
682
|
-
* You can specify resource filters for each service.
|
|
683
|
-
* @minSize 2
|
|
684
|
-
* @maxSize 40
|
|
685
|
-
*/
|
|
686
|
-
services?: Service[];
|
|
687
|
-
/**
|
|
688
|
-
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
689
|
-
* For example, `2026-01-30T13:30:00`.
|
|
690
|
-
* @format LOCAL_DATE_TIME
|
|
691
|
-
*/
|
|
692
|
-
localStartDate?: string;
|
|
693
|
-
/**
|
|
694
|
-
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
695
|
-
* For example, `2026-01-30T13:30:00`.
|
|
696
|
-
* @format LOCAL_DATE_TIME
|
|
697
|
-
*/
|
|
698
|
-
localEndDate?: string;
|
|
699
|
-
/**
|
|
700
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
701
|
-
* For example, `America/New_York` or `UTC`.
|
|
702
|
-
*
|
|
703
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
704
|
-
* @minLength 1
|
|
705
|
-
* @maxLength 150
|
|
706
|
-
*/
|
|
707
|
-
timeZone?: string | null;
|
|
708
|
-
/**
|
|
709
|
-
* 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.
|
|
710
|
-
*
|
|
711
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
712
|
-
*/
|
|
713
|
-
location?: Location;
|
|
714
|
-
}
|
|
715
|
-
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
716
|
-
/** Retrieved time slot. */
|
|
717
|
-
timeSlot?: TimeSlot;
|
|
718
|
-
/**
|
|
719
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
720
|
-
* For example, `America/New_York` or `UTC`.
|
|
721
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
722
|
-
* @minLength 1
|
|
723
|
-
* @maxLength 150
|
|
724
|
-
*/
|
|
725
|
-
timeZone?: string | null;
|
|
726
|
-
}
|
|
727
477
|
interface ListAvailabilityTimeSlotsRequest {
|
|
728
478
|
/**
|
|
729
479
|
* Service ID for which to retrieve time slots. You must specify the ID of an appointment-based service.
|
|
@@ -866,6 +616,20 @@ declare enum RequestedGender {
|
|
|
866
616
|
}
|
|
867
617
|
/** @enumType */
|
|
868
618
|
type RequestedGenderWithLiterals = RequestedGender | 'ANY_MALE' | 'ANY_FEMALE';
|
|
619
|
+
interface ResourceType {
|
|
620
|
+
/**
|
|
621
|
+
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
622
|
+
* @format GUID
|
|
623
|
+
*/
|
|
624
|
+
resourceTypeId?: string | null;
|
|
625
|
+
/**
|
|
626
|
+
* Resource IDs.
|
|
627
|
+
* Available only if there is at least 1 resource available for the slot.
|
|
628
|
+
* @format GUID
|
|
629
|
+
* @maxSize 135
|
|
630
|
+
*/
|
|
631
|
+
resourceIds?: string[] | null;
|
|
632
|
+
}
|
|
869
633
|
interface ListAvailabilityTimeSlotsResponse {
|
|
870
634
|
/**
|
|
871
635
|
* Retrieved time slots.
|
|
@@ -987,6 +751,29 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
987
751
|
*/
|
|
988
752
|
resourceTypes?: ResourceType[];
|
|
989
753
|
}
|
|
754
|
+
/** Gender narrowing for an "any staff member" selection. */
|
|
755
|
+
interface V2RequestedGenderValue {
|
|
756
|
+
/** Gender the customer narrowed "any staff member" to. */
|
|
757
|
+
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Selectable genders. Staff members of any other gender are reachable
|
|
761
|
+
* through plain "any staff member" or by name.
|
|
762
|
+
*/
|
|
763
|
+
declare enum RequestedGenderValueRequestedGender {
|
|
764
|
+
/**
|
|
765
|
+
* Any male staff member.
|
|
766
|
+
* @documentationMaturity preview
|
|
767
|
+
*/
|
|
768
|
+
ANY_MALE = "ANY_MALE",
|
|
769
|
+
/**
|
|
770
|
+
* Any female staff member.
|
|
771
|
+
* @documentationMaturity preview
|
|
772
|
+
*/
|
|
773
|
+
ANY_FEMALE = "ANY_FEMALE"
|
|
774
|
+
}
|
|
775
|
+
/** @enumType */
|
|
776
|
+
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender | 'ANY_MALE' | 'ANY_FEMALE';
|
|
990
777
|
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
991
778
|
/**
|
|
992
779
|
* Selected add-on IDs.
|
|
@@ -1353,6 +1140,219 @@ interface BulkActionMetadata {
|
|
|
1353
1140
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1354
1141
|
undetailedFailures?: number;
|
|
1355
1142
|
}
|
|
1143
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
1144
|
+
/**
|
|
1145
|
+
* Services for which the multi-service time slots are returned.
|
|
1146
|
+
* Each service can include its own resource filters.
|
|
1147
|
+
*
|
|
1148
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1149
|
+
*
|
|
1150
|
+
* Min: 2 services
|
|
1151
|
+
* Max: 40 services
|
|
1152
|
+
* @maxSize 40
|
|
1153
|
+
*/
|
|
1154
|
+
services?: Service[];
|
|
1155
|
+
/**
|
|
1156
|
+
* Lower boundary for `localStartDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1157
|
+
* For example, `2026-01-30T13:30:00`.
|
|
1158
|
+
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate`.
|
|
1159
|
+
*
|
|
1160
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1161
|
+
* @format LOCAL_DATE_TIME
|
|
1162
|
+
*/
|
|
1163
|
+
fromLocalDate?: string | null;
|
|
1164
|
+
/**
|
|
1165
|
+
* Upper boundary for `localToDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1166
|
+
* For example, `2026-01-30T13:30:00`.
|
|
1167
|
+
* Each returned time slot has a `localEndDate` between `fromLocalDate` and `toLocalDate`.
|
|
1168
|
+
*
|
|
1169
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1170
|
+
* @format LOCAL_DATE_TIME
|
|
1171
|
+
*/
|
|
1172
|
+
toLocalDate?: string | null;
|
|
1173
|
+
/**
|
|
1174
|
+
* 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`.
|
|
1175
|
+
*
|
|
1176
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1177
|
+
*
|
|
1178
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1179
|
+
* @minLength 1
|
|
1180
|
+
* @maxLength 150
|
|
1181
|
+
*/
|
|
1182
|
+
timeZone?: string | null;
|
|
1183
|
+
/**
|
|
1184
|
+
* 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.
|
|
1185
|
+
*
|
|
1186
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1187
|
+
*/
|
|
1188
|
+
location?: Location;
|
|
1189
|
+
/**
|
|
1190
|
+
* Whether the time slot is bookable according to all services' booking policies.
|
|
1191
|
+
* If not specified, returns both bookable and non-bookable time slots.
|
|
1192
|
+
*/
|
|
1193
|
+
bookable?: boolean | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* Indicators for service's booking policy violations.
|
|
1196
|
+
* 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.
|
|
1197
|
+
*/
|
|
1198
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
1199
|
+
/**
|
|
1200
|
+
* Maximum number of slots to return for each day in the specified time range.
|
|
1201
|
+
* If `bookable` filter isn't specified, bookable slots are returned first.
|
|
1202
|
+
*/
|
|
1203
|
+
timeSlotsPerDay?: number | null;
|
|
1204
|
+
/**
|
|
1205
|
+
* Cursor-based paging configuration.
|
|
1206
|
+
* Enables fetching results in smaller chunks by setting a limit on the number of results.
|
|
1207
|
+
* For consistent pagination behavior, use the same `limit` value throughout a pagination sequence.
|
|
1208
|
+
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
1209
|
+
*/
|
|
1210
|
+
cursorPaging?: CursorPaging;
|
|
1211
|
+
}
|
|
1212
|
+
interface Service {
|
|
1213
|
+
/**
|
|
1214
|
+
* Service ID.
|
|
1215
|
+
* @format GUID
|
|
1216
|
+
*/
|
|
1217
|
+
serviceId?: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Resource [type IDs](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction) to include in returned time slots.
|
|
1220
|
+
* This is in addition to the specifically requested resources.
|
|
1221
|
+
*
|
|
1222
|
+
* <blockquote>
|
|
1223
|
+
* Currently supported only for Staff Member resource type.
|
|
1224
|
+
* Staff members belong to resource type ID `1cd44cf8-756f-41c3-bd90-3e2ffcaf1155`.
|
|
1225
|
+
* </blockquote>
|
|
1226
|
+
* @format GUID
|
|
1227
|
+
* @maxSize 100
|
|
1228
|
+
*/
|
|
1229
|
+
includeResourceTypeIds?: string[];
|
|
1230
|
+
/**
|
|
1231
|
+
* Selected customer choices.
|
|
1232
|
+
* If specified, the selected choices are used to calculate service configuration.
|
|
1233
|
+
* If not specified, the service default configuration is used.
|
|
1234
|
+
* Enforcing this field is the responsibility of the service plugin implementer, and not the Time Slots V2 API.
|
|
1235
|
+
*
|
|
1236
|
+
* 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.
|
|
1237
|
+
*/
|
|
1238
|
+
customerChoices?: V2CustomerChoices;
|
|
1239
|
+
/**
|
|
1240
|
+
* Resource types to filter time slots.
|
|
1241
|
+
* Only returns time slots that have these specific resource types available.
|
|
1242
|
+
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
1243
|
+
* @maxSize 8
|
|
1244
|
+
*/
|
|
1245
|
+
resourceTypes?: ResourceType[];
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Selected customer choices.
|
|
1249
|
+
*
|
|
1250
|
+
* These choices are selected by the customer during the book flow and used to calculate the service's availability configuration.
|
|
1251
|
+
*/
|
|
1252
|
+
interface V2CustomerChoices {
|
|
1253
|
+
/**
|
|
1254
|
+
* 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.
|
|
1255
|
+
* 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.
|
|
1256
|
+
*
|
|
1257
|
+
* Min: `1` minute
|
|
1258
|
+
* Max: `57600` minutes (40 days)
|
|
1259
|
+
* Default: `15` minutes
|
|
1260
|
+
* @min 1
|
|
1261
|
+
* @max 57600
|
|
1262
|
+
*/
|
|
1263
|
+
durationInMinutes?: number | null;
|
|
1264
|
+
/**
|
|
1265
|
+
* Selected [add-on](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) IDs.
|
|
1266
|
+
* 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.
|
|
1267
|
+
*
|
|
1268
|
+
* Max: 21 (3 add-on groups × 7 add-ons per group).
|
|
1269
|
+
* @format GUID
|
|
1270
|
+
* @maxSize 21
|
|
1271
|
+
*/
|
|
1272
|
+
addOnIds?: string[] | null;
|
|
1273
|
+
/**
|
|
1274
|
+
* Selected duration choice ID.
|
|
1275
|
+
* @format GUID
|
|
1276
|
+
*/
|
|
1277
|
+
durationChoiceId?: string | null;
|
|
1278
|
+
/**
|
|
1279
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
1280
|
+
* Only time slots served by staff members of that gender are returned.
|
|
1281
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
1282
|
+
*
|
|
1283
|
+
* 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.
|
|
1284
|
+
*/
|
|
1285
|
+
requestedGender?: V2RequestedGenderValue;
|
|
1286
|
+
}
|
|
1287
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
1288
|
+
/**
|
|
1289
|
+
* Retrieved time slots.
|
|
1290
|
+
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
1291
|
+
* @maxSize 1000
|
|
1292
|
+
*/
|
|
1293
|
+
timeSlots?: TimeSlot[];
|
|
1294
|
+
/**
|
|
1295
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
1296
|
+
* For example, `America/New_York` or `UTC`.
|
|
1297
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1298
|
+
* @minLength 1
|
|
1299
|
+
* @maxLength 150
|
|
1300
|
+
*/
|
|
1301
|
+
timeZone?: string | null;
|
|
1302
|
+
/**
|
|
1303
|
+
* Paging metadata for the next page of results.
|
|
1304
|
+
* Contains a cursor if there are more than 1000 results.
|
|
1305
|
+
*/
|
|
1306
|
+
cursorPagingMetadata?: CursorPagingMetadata;
|
|
1307
|
+
}
|
|
1308
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
1309
|
+
/**
|
|
1310
|
+
* Services for which the multi-service time slots are returned.
|
|
1311
|
+
* You can specify resource filters for each service.
|
|
1312
|
+
* @minSize 2
|
|
1313
|
+
* @maxSize 40
|
|
1314
|
+
*/
|
|
1315
|
+
services?: Service[];
|
|
1316
|
+
/**
|
|
1317
|
+
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1318
|
+
* For example, `2026-01-30T13:30:00`.
|
|
1319
|
+
* @format LOCAL_DATE_TIME
|
|
1320
|
+
*/
|
|
1321
|
+
localStartDate?: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1324
|
+
* For example, `2026-01-30T13:30:00`.
|
|
1325
|
+
* @format LOCAL_DATE_TIME
|
|
1326
|
+
*/
|
|
1327
|
+
localEndDate?: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
1330
|
+
* For example, `America/New_York` or `UTC`.
|
|
1331
|
+
*
|
|
1332
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1333
|
+
* @minLength 1
|
|
1334
|
+
* @maxLength 150
|
|
1335
|
+
*/
|
|
1336
|
+
timeZone?: string | null;
|
|
1337
|
+
/**
|
|
1338
|
+
* 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.
|
|
1339
|
+
*
|
|
1340
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1341
|
+
*/
|
|
1342
|
+
location?: Location;
|
|
1343
|
+
}
|
|
1344
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
1345
|
+
/** Retrieved time slot. */
|
|
1346
|
+
timeSlot?: TimeSlot;
|
|
1347
|
+
/**
|
|
1348
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
1349
|
+
* For example, `America/New_York` or `UTC`.
|
|
1350
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1351
|
+
* @minLength 1
|
|
1352
|
+
* @maxLength 150
|
|
1353
|
+
*/
|
|
1354
|
+
timeZone?: string | null;
|
|
1355
|
+
}
|
|
1356
1356
|
/** @docsIgnore */
|
|
1357
1357
|
type ListAvailabilityTimeSlotsApplicationErrors = {
|
|
1358
1358
|
code?: 'NO_IMPLEMENTERS_FOUND';
|
|
@@ -279,16 +279,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
|
279
279
|
LocationType2["CUSTOMER"] = "CUSTOMER";
|
|
280
280
|
return LocationType2;
|
|
281
281
|
})(LocationType || {});
|
|
282
|
-
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
283
|
-
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
284
|
-
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
285
|
-
return RequestedGenderValueRequestedGender2;
|
|
286
|
-
})(RequestedGenderValueRequestedGender || {});
|
|
287
282
|
var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
|
|
288
283
|
RequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
289
284
|
RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
290
285
|
return RequestedGender2;
|
|
291
286
|
})(RequestedGender || {});
|
|
287
|
+
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
288
|
+
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
289
|
+
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
290
|
+
return RequestedGenderValueRequestedGender2;
|
|
291
|
+
})(RequestedGenderValueRequestedGender || {});
|
|
292
292
|
var ReasonCode = /* @__PURE__ */ ((ReasonCode2) => {
|
|
293
293
|
ReasonCode2["NO_ASSIGNED_STAFF_OR_RESOURCES"] = "NO_ASSIGNED_STAFF_OR_RESOURCES";
|
|
294
294
|
ReasonCode2["SERVICE_AVAILABILITY_CONFIGURATION_MISSING"] = "SERVICE_AVAILABILITY_CONFIGURATION_MISSING";
|