@wix/auto_sdk_bookings_availability-time-slots 1.0.272 → 1.0.274
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 +277 -233
- package/build/cjs/index.typings.js +5 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +277 -233
- 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 +277 -233
- package/build/es/index.typings.mjs +5 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +277 -233
- package/build/es/meta.mjs +5 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +274 -281
- package/build/internal/cjs/meta.d.ts +274 -281
- package/build/internal/es/index.typings.d.mts +274 -281
- package/build/internal/es/meta.d.mts +274 -281
- package/package.json +2 -2
|
@@ -443,238 +443,6 @@ 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 narrowing for an "any staff member" selection. */
|
|
583
|
-
interface V2RequestedGenderValue {
|
|
584
|
-
/** Gender the customer narrowed "any staff member" to. */
|
|
585
|
-
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* Selectable genders. Staff members of any other gender are reachable
|
|
589
|
-
* through plain "any staff member" or by name.
|
|
590
|
-
*/
|
|
591
|
-
declare enum RequestedGenderValueRequestedGender {
|
|
592
|
-
}
|
|
593
|
-
/** @enumType */
|
|
594
|
-
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender;
|
|
595
|
-
interface ResourceType {
|
|
596
|
-
/**
|
|
597
|
-
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
598
|
-
* @format GUID
|
|
599
|
-
*/
|
|
600
|
-
resourceTypeId?: string | null;
|
|
601
|
-
/**
|
|
602
|
-
* Resource IDs.
|
|
603
|
-
* Available only if there is at least 1 resource available for the slot.
|
|
604
|
-
* @format GUID
|
|
605
|
-
* @maxSize 135
|
|
606
|
-
*/
|
|
607
|
-
resourceIds?: string[] | null;
|
|
608
|
-
}
|
|
609
|
-
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
610
|
-
/**
|
|
611
|
-
* Retrieved time slots.
|
|
612
|
-
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
613
|
-
* @maxSize 1000
|
|
614
|
-
*/
|
|
615
|
-
timeSlots?: TimeSlot[];
|
|
616
|
-
/**
|
|
617
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
618
|
-
* For example, `America/New_York` or `UTC`.
|
|
619
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
620
|
-
* @minLength 1
|
|
621
|
-
* @maxLength 150
|
|
622
|
-
*/
|
|
623
|
-
timeZone?: string | null;
|
|
624
|
-
/**
|
|
625
|
-
* Paging metadata for the next page of results.
|
|
626
|
-
* Contains a cursor if there are more than 1000 results.
|
|
627
|
-
*/
|
|
628
|
-
cursorPagingMetadata?: CursorPagingMetadata;
|
|
629
|
-
}
|
|
630
|
-
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
631
|
-
/**
|
|
632
|
-
* Services for which the multi-service time slots are returned.
|
|
633
|
-
* You can specify resource filters for each service.
|
|
634
|
-
* @minSize 2
|
|
635
|
-
* @maxSize 40
|
|
636
|
-
*/
|
|
637
|
-
services?: Service[];
|
|
638
|
-
/**
|
|
639
|
-
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
640
|
-
* For example, `2026-01-30T13:30:00`.
|
|
641
|
-
* @format LOCAL_DATE_TIME
|
|
642
|
-
*/
|
|
643
|
-
localStartDate?: string;
|
|
644
|
-
/**
|
|
645
|
-
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
646
|
-
* For example, `2026-01-30T13:30:00`.
|
|
647
|
-
* @format LOCAL_DATE_TIME
|
|
648
|
-
*/
|
|
649
|
-
localEndDate?: string;
|
|
650
|
-
/**
|
|
651
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
652
|
-
* For example, `America/New_York` or `UTC`.
|
|
653
|
-
*
|
|
654
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
655
|
-
* @minLength 1
|
|
656
|
-
* @maxLength 150
|
|
657
|
-
*/
|
|
658
|
-
timeZone?: string | null;
|
|
659
|
-
/**
|
|
660
|
-
* 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.
|
|
661
|
-
*
|
|
662
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
663
|
-
*/
|
|
664
|
-
location?: Location;
|
|
665
|
-
}
|
|
666
|
-
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
667
|
-
/** Retrieved time slot. */
|
|
668
|
-
timeSlot?: TimeSlot;
|
|
669
|
-
/**
|
|
670
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
671
|
-
* For example, `America/New_York` or `UTC`.
|
|
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
446
|
interface ListAvailabilityTimeSlotsRequest {
|
|
679
447
|
/**
|
|
680
448
|
* Service ID for which to retrieve time slots. You must specify the ID of an appointment-based service.
|
|
@@ -785,6 +553,14 @@ interface CustomerChoices {
|
|
|
785
553
|
* @format GUID
|
|
786
554
|
*/
|
|
787
555
|
durationChoiceId?: string | null;
|
|
556
|
+
/**
|
|
557
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
558
|
+
* Only time slots served by staff members of that gender are returned.
|
|
559
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
560
|
+
*
|
|
561
|
+
* 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.
|
|
562
|
+
*/
|
|
563
|
+
requestedGender?: RequestedGenderValue;
|
|
788
564
|
}
|
|
789
565
|
/** Gender narrowing for an "any staff member" selection. */
|
|
790
566
|
interface RequestedGenderValue {
|
|
@@ -796,9 +572,33 @@ interface RequestedGenderValue {
|
|
|
796
572
|
* through plain "any staff member" or by name.
|
|
797
573
|
*/
|
|
798
574
|
declare enum RequestedGender {
|
|
575
|
+
/**
|
|
576
|
+
* Any male staff member.
|
|
577
|
+
* @documentationMaturity preview
|
|
578
|
+
*/
|
|
579
|
+
ANY_MALE = "ANY_MALE",
|
|
580
|
+
/**
|
|
581
|
+
* Any female staff member.
|
|
582
|
+
* @documentationMaturity preview
|
|
583
|
+
*/
|
|
584
|
+
ANY_FEMALE = "ANY_FEMALE"
|
|
799
585
|
}
|
|
800
586
|
/** @enumType */
|
|
801
|
-
type RequestedGenderWithLiterals = RequestedGender;
|
|
587
|
+
type RequestedGenderWithLiterals = RequestedGender | 'ANY_MALE' | 'ANY_FEMALE';
|
|
588
|
+
interface ResourceType {
|
|
589
|
+
/**
|
|
590
|
+
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
591
|
+
* @format GUID
|
|
592
|
+
*/
|
|
593
|
+
resourceTypeId?: string | null;
|
|
594
|
+
/**
|
|
595
|
+
* Resource IDs.
|
|
596
|
+
* Available only if there is at least 1 resource available for the slot.
|
|
597
|
+
* @format GUID
|
|
598
|
+
* @maxSize 135
|
|
599
|
+
*/
|
|
600
|
+
resourceIds?: string[] | null;
|
|
601
|
+
}
|
|
802
602
|
interface ListAvailabilityTimeSlotsResponse {
|
|
803
603
|
/**
|
|
804
604
|
* Retrieved time slots.
|
|
@@ -920,6 +720,29 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
920
720
|
*/
|
|
921
721
|
resourceTypes?: ResourceType[];
|
|
922
722
|
}
|
|
723
|
+
/** Gender narrowing for an "any staff member" selection. */
|
|
724
|
+
interface V2RequestedGenderValue {
|
|
725
|
+
/** Gender the customer narrowed "any staff member" to. */
|
|
726
|
+
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* Selectable genders. Staff members of any other gender are reachable
|
|
730
|
+
* through plain "any staff member" or by name.
|
|
731
|
+
*/
|
|
732
|
+
declare enum RequestedGenderValueRequestedGender {
|
|
733
|
+
/**
|
|
734
|
+
* Any male staff member.
|
|
735
|
+
* @documentationMaturity preview
|
|
736
|
+
*/
|
|
737
|
+
ANY_MALE = "ANY_MALE",
|
|
738
|
+
/**
|
|
739
|
+
* Any female staff member.
|
|
740
|
+
* @documentationMaturity preview
|
|
741
|
+
*/
|
|
742
|
+
ANY_FEMALE = "ANY_FEMALE"
|
|
743
|
+
}
|
|
744
|
+
/** @enumType */
|
|
745
|
+
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender | 'ANY_MALE' | 'ANY_FEMALE';
|
|
923
746
|
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
924
747
|
/**
|
|
925
748
|
* Selected add-on IDs.
|
|
@@ -933,6 +756,14 @@ interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
|
933
756
|
* @format GUID
|
|
934
757
|
*/
|
|
935
758
|
durationChoiceId?: string | null;
|
|
759
|
+
/**
|
|
760
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
761
|
+
* Only time slots served by staff members of that gender are returned.
|
|
762
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
763
|
+
*
|
|
764
|
+
* 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.
|
|
765
|
+
*/
|
|
766
|
+
requestedGender?: V2RequestedGenderValue;
|
|
936
767
|
}
|
|
937
768
|
interface GetAvailabilityTimeSlotResponse {
|
|
938
769
|
/** Retrieved time slot. */
|
|
@@ -1278,6 +1109,219 @@ interface BulkActionMetadata {
|
|
|
1278
1109
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1279
1110
|
undetailedFailures?: number;
|
|
1280
1111
|
}
|
|
1112
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
1113
|
+
/**
|
|
1114
|
+
* Services for which the multi-service time slots are returned.
|
|
1115
|
+
* Each service can include its own resource filters.
|
|
1116
|
+
*
|
|
1117
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1118
|
+
*
|
|
1119
|
+
* Min: 2 services
|
|
1120
|
+
* Max: 40 services
|
|
1121
|
+
* @maxSize 40
|
|
1122
|
+
*/
|
|
1123
|
+
services?: Service[];
|
|
1124
|
+
/**
|
|
1125
|
+
* Lower boundary for `localStartDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1126
|
+
* For example, `2026-01-30T13:30:00`.
|
|
1127
|
+
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate`.
|
|
1128
|
+
*
|
|
1129
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1130
|
+
* @format LOCAL_DATE_TIME
|
|
1131
|
+
*/
|
|
1132
|
+
fromLocalDate?: string | null;
|
|
1133
|
+
/**
|
|
1134
|
+
* Upper boundary for `localToDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1135
|
+
* For example, `2026-01-30T13:30:00`.
|
|
1136
|
+
* Each returned time slot has a `localEndDate` between `fromLocalDate` and `toLocalDate`.
|
|
1137
|
+
*
|
|
1138
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1139
|
+
* @format LOCAL_DATE_TIME
|
|
1140
|
+
*/
|
|
1141
|
+
toLocalDate?: string | null;
|
|
1142
|
+
/**
|
|
1143
|
+
* 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`.
|
|
1144
|
+
*
|
|
1145
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1146
|
+
*
|
|
1147
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1148
|
+
* @minLength 1
|
|
1149
|
+
* @maxLength 150
|
|
1150
|
+
*/
|
|
1151
|
+
timeZone?: string | null;
|
|
1152
|
+
/**
|
|
1153
|
+
* 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.
|
|
1154
|
+
*
|
|
1155
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1156
|
+
*/
|
|
1157
|
+
location?: Location;
|
|
1158
|
+
/**
|
|
1159
|
+
* Whether the time slot is bookable according to all services' booking policies.
|
|
1160
|
+
* If not specified, returns both bookable and non-bookable time slots.
|
|
1161
|
+
*/
|
|
1162
|
+
bookable?: boolean | null;
|
|
1163
|
+
/**
|
|
1164
|
+
* Indicators for service's booking policy violations.
|
|
1165
|
+
* 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.
|
|
1166
|
+
*/
|
|
1167
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
1168
|
+
/**
|
|
1169
|
+
* Maximum number of slots to return for each day in the specified time range.
|
|
1170
|
+
* If `bookable` filter isn't specified, bookable slots are returned first.
|
|
1171
|
+
*/
|
|
1172
|
+
timeSlotsPerDay?: number | null;
|
|
1173
|
+
/**
|
|
1174
|
+
* Cursor-based paging configuration.
|
|
1175
|
+
* Enables fetching results in smaller chunks by setting a limit on the number of results.
|
|
1176
|
+
* For consistent pagination behavior, use the same `limit` value throughout a pagination sequence.
|
|
1177
|
+
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
1178
|
+
*/
|
|
1179
|
+
cursorPaging?: CursorPaging;
|
|
1180
|
+
}
|
|
1181
|
+
interface Service {
|
|
1182
|
+
/**
|
|
1183
|
+
* Service ID.
|
|
1184
|
+
* @format GUID
|
|
1185
|
+
*/
|
|
1186
|
+
serviceId?: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* Resource [type IDs](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction) to include in returned time slots.
|
|
1189
|
+
* This is in addition to the specifically requested resources.
|
|
1190
|
+
*
|
|
1191
|
+
* <blockquote>
|
|
1192
|
+
* Currently supported only for Staff Member resource type.
|
|
1193
|
+
* Staff members belong to resource type ID `1cd44cf8-756f-41c3-bd90-3e2ffcaf1155`.
|
|
1194
|
+
* </blockquote>
|
|
1195
|
+
* @format GUID
|
|
1196
|
+
* @maxSize 100
|
|
1197
|
+
*/
|
|
1198
|
+
includeResourceTypeIds?: string[];
|
|
1199
|
+
/**
|
|
1200
|
+
* Selected customer choices.
|
|
1201
|
+
* If specified, the selected choices are used to calculate service configuration.
|
|
1202
|
+
* If not specified, the service default configuration is used.
|
|
1203
|
+
* Enforcing this field is the responsibility of the service plugin implementer, and not the Time Slots V2 API.
|
|
1204
|
+
*
|
|
1205
|
+
* 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.
|
|
1206
|
+
*/
|
|
1207
|
+
customerChoices?: V2CustomerChoices;
|
|
1208
|
+
/**
|
|
1209
|
+
* Resource types to filter time slots.
|
|
1210
|
+
* Only returns time slots that have these specific resource types available.
|
|
1211
|
+
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
1212
|
+
* @maxSize 8
|
|
1213
|
+
*/
|
|
1214
|
+
resourceTypes?: ResourceType[];
|
|
1215
|
+
}
|
|
1216
|
+
/**
|
|
1217
|
+
* Selected customer choices.
|
|
1218
|
+
*
|
|
1219
|
+
* These choices are selected by the customer during the book flow and used to calculate the service's availability configuration.
|
|
1220
|
+
*/
|
|
1221
|
+
interface V2CustomerChoices {
|
|
1222
|
+
/**
|
|
1223
|
+
* 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.
|
|
1224
|
+
* 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.
|
|
1225
|
+
*
|
|
1226
|
+
* Min: `1` minute
|
|
1227
|
+
* Max: `57600` minutes (40 days)
|
|
1228
|
+
* Default: `15` minutes
|
|
1229
|
+
* @min 1
|
|
1230
|
+
* @max 57600
|
|
1231
|
+
*/
|
|
1232
|
+
durationInMinutes?: number | null;
|
|
1233
|
+
/**
|
|
1234
|
+
* Selected [add-on](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) IDs.
|
|
1235
|
+
* 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.
|
|
1236
|
+
*
|
|
1237
|
+
* Max: 21 (3 add-on groups × 7 add-ons per group).
|
|
1238
|
+
* @format GUID
|
|
1239
|
+
* @maxSize 21
|
|
1240
|
+
*/
|
|
1241
|
+
addOnIds?: string[] | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* Selected duration choice ID.
|
|
1244
|
+
* @format GUID
|
|
1245
|
+
*/
|
|
1246
|
+
durationChoiceId?: string | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
1249
|
+
* Only time slots served by staff members of that gender are returned.
|
|
1250
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
1251
|
+
*
|
|
1252
|
+
* 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.
|
|
1253
|
+
*/
|
|
1254
|
+
requestedGender?: V2RequestedGenderValue;
|
|
1255
|
+
}
|
|
1256
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
1257
|
+
/**
|
|
1258
|
+
* Retrieved time slots.
|
|
1259
|
+
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
1260
|
+
* @maxSize 1000
|
|
1261
|
+
*/
|
|
1262
|
+
timeSlots?: TimeSlot[];
|
|
1263
|
+
/**
|
|
1264
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
1265
|
+
* For example, `America/New_York` or `UTC`.
|
|
1266
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1267
|
+
* @minLength 1
|
|
1268
|
+
* @maxLength 150
|
|
1269
|
+
*/
|
|
1270
|
+
timeZone?: string | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* Paging metadata for the next page of results.
|
|
1273
|
+
* Contains a cursor if there are more than 1000 results.
|
|
1274
|
+
*/
|
|
1275
|
+
cursorPagingMetadata?: CursorPagingMetadata;
|
|
1276
|
+
}
|
|
1277
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
1278
|
+
/**
|
|
1279
|
+
* Services for which the multi-service time slots are returned.
|
|
1280
|
+
* You can specify resource filters for each service.
|
|
1281
|
+
* @minSize 2
|
|
1282
|
+
* @maxSize 40
|
|
1283
|
+
*/
|
|
1284
|
+
services?: Service[];
|
|
1285
|
+
/**
|
|
1286
|
+
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1287
|
+
* For example, `2026-01-30T13:30:00`.
|
|
1288
|
+
* @format LOCAL_DATE_TIME
|
|
1289
|
+
*/
|
|
1290
|
+
localStartDate?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1293
|
+
* For example, `2026-01-30T13:30:00`.
|
|
1294
|
+
* @format LOCAL_DATE_TIME
|
|
1295
|
+
*/
|
|
1296
|
+
localEndDate?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
1299
|
+
* For example, `America/New_York` or `UTC`.
|
|
1300
|
+
*
|
|
1301
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1302
|
+
* @minLength 1
|
|
1303
|
+
* @maxLength 150
|
|
1304
|
+
*/
|
|
1305
|
+
timeZone?: string | null;
|
|
1306
|
+
/**
|
|
1307
|
+
* 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.
|
|
1308
|
+
*
|
|
1309
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
1310
|
+
*/
|
|
1311
|
+
location?: Location;
|
|
1312
|
+
}
|
|
1313
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
1314
|
+
/** Retrieved time slot. */
|
|
1315
|
+
timeSlot?: TimeSlot;
|
|
1316
|
+
/**
|
|
1317
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
1318
|
+
* For example, `America/New_York` or `UTC`.
|
|
1319
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
1320
|
+
* @minLength 1
|
|
1321
|
+
* @maxLength 150
|
|
1322
|
+
*/
|
|
1323
|
+
timeZone?: string | null;
|
|
1324
|
+
}
|
|
1281
1325
|
/** @docsIgnore */
|
|
1282
1326
|
type ListAvailabilityTimeSlotsApplicationErrors = {
|
|
1283
1327
|
code?: 'NO_IMPLEMENTERS_FOUND';
|
|
@@ -275,16 +275,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
|
275
275
|
LocationType2["CUSTOMER"] = "CUSTOMER";
|
|
276
276
|
return LocationType2;
|
|
277
277
|
})(LocationType || {});
|
|
278
|
-
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
279
|
-
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
280
|
-
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
281
|
-
return RequestedGenderValueRequestedGender2;
|
|
282
|
-
})(RequestedGenderValueRequestedGender || {});
|
|
283
278
|
var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
|
|
284
279
|
RequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
285
280
|
RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
286
281
|
return RequestedGender2;
|
|
287
282
|
})(RequestedGender || {});
|
|
283
|
+
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
284
|
+
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
285
|
+
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
286
|
+
return RequestedGenderValueRequestedGender2;
|
|
287
|
+
})(RequestedGenderValueRequestedGender || {});
|
|
288
288
|
var ReasonCode = /* @__PURE__ */ ((ReasonCode2) => {
|
|
289
289
|
ReasonCode2["NO_ASSIGNED_STAFF_OR_RESOURCES"] = "NO_ASSIGNED_STAFF_OR_RESOURCES";
|
|
290
290
|
ReasonCode2["SERVICE_AVAILABILITY_CONFIGURATION_MISSING"] = "SERVICE_AVAILABILITY_CONFIGURATION_MISSING";
|