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