@wix/auto_sdk_bookings_availability-time-slots 1.0.270 → 1.0.271
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 +232 -232
- package/build/cjs/index.typings.js +5 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +232 -232
- 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 +232 -232
- package/build/es/index.typings.mjs +5 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +232 -232
- package/build/es/meta.mjs +5 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +278 -278
- package/build/internal/cjs/meta.d.ts +278 -278
- package/build/internal/es/index.typings.d.mts +278 -278
- package/build/internal/es/meta.d.mts +278 -278
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -444,238 +444,6 @@ 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 narrowing for an "any staff member" selection. */
|
|
584
|
-
interface V2RequestedGenderValue {
|
|
585
|
-
/** Gender the customer narrowed "any staff member" to. */
|
|
586
|
-
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
587
|
-
}
|
|
588
|
-
/**
|
|
589
|
-
* Selectable genders. Staff members of any other gender are reachable
|
|
590
|
-
* through plain "any staff member" or by name.
|
|
591
|
-
*/
|
|
592
|
-
declare enum RequestedGenderValueRequestedGender {
|
|
593
|
-
}
|
|
594
|
-
/** @enumType */
|
|
595
|
-
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender;
|
|
596
|
-
interface ResourceType {
|
|
597
|
-
/**
|
|
598
|
-
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
599
|
-
* @format GUID
|
|
600
|
-
*/
|
|
601
|
-
resourceTypeId?: string | null;
|
|
602
|
-
/**
|
|
603
|
-
* Resource IDs.
|
|
604
|
-
* Available only if there is at least 1 resource available for the slot.
|
|
605
|
-
* @format GUID
|
|
606
|
-
* @maxSize 135
|
|
607
|
-
*/
|
|
608
|
-
resourceIds?: string[] | null;
|
|
609
|
-
}
|
|
610
|
-
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
611
|
-
/**
|
|
612
|
-
* Retrieved time slots.
|
|
613
|
-
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
614
|
-
* @maxSize 1000
|
|
615
|
-
*/
|
|
616
|
-
timeSlots?: TimeSlot[];
|
|
617
|
-
/**
|
|
618
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
619
|
-
* For example, `America/New_York` or `UTC`.
|
|
620
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
621
|
-
* @minLength 1
|
|
622
|
-
* @maxLength 150
|
|
623
|
-
*/
|
|
624
|
-
timeZone?: string | null;
|
|
625
|
-
/**
|
|
626
|
-
* Paging metadata for the next page of results.
|
|
627
|
-
* Contains a cursor if there are more than 1000 results.
|
|
628
|
-
*/
|
|
629
|
-
cursorPagingMetadata?: CursorPagingMetadata;
|
|
630
|
-
}
|
|
631
|
-
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
632
|
-
/**
|
|
633
|
-
* Services for which the multi-service time slots are returned.
|
|
634
|
-
* You can specify resource filters for each service.
|
|
635
|
-
* @minSize 2
|
|
636
|
-
* @maxSize 40
|
|
637
|
-
*/
|
|
638
|
-
services?: Service[];
|
|
639
|
-
/**
|
|
640
|
-
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
641
|
-
* For example, `2026-01-30T13:30:00`.
|
|
642
|
-
* @format LOCAL_DATE_TIME
|
|
643
|
-
*/
|
|
644
|
-
localStartDate?: string;
|
|
645
|
-
/**
|
|
646
|
-
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
647
|
-
* For example, `2026-01-30T13:30:00`.
|
|
648
|
-
* @format LOCAL_DATE_TIME
|
|
649
|
-
*/
|
|
650
|
-
localEndDate?: string;
|
|
651
|
-
/**
|
|
652
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
653
|
-
* For example, `America/New_York` or `UTC`.
|
|
654
|
-
*
|
|
655
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
656
|
-
* @minLength 1
|
|
657
|
-
* @maxLength 150
|
|
658
|
-
*/
|
|
659
|
-
timeZone?: string | null;
|
|
660
|
-
/**
|
|
661
|
-
* 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.
|
|
662
|
-
*
|
|
663
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
664
|
-
*/
|
|
665
|
-
location?: Location;
|
|
666
|
-
}
|
|
667
|
-
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
668
|
-
/** Retrieved time slot. */
|
|
669
|
-
timeSlot?: TimeSlot;
|
|
670
|
-
/**
|
|
671
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
672
|
-
* For example, `America/New_York` or `UTC`.
|
|
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
447
|
interface ListAvailabilityTimeSlotsRequest {
|
|
680
448
|
/**
|
|
681
449
|
* Service ID for which to retrieve time slots. You must specify the ID of an appointment-based service.
|
|
@@ -800,6 +568,20 @@ declare enum RequestedGender {
|
|
|
800
568
|
}
|
|
801
569
|
/** @enumType */
|
|
802
570
|
type RequestedGenderWithLiterals = RequestedGender;
|
|
571
|
+
interface ResourceType {
|
|
572
|
+
/**
|
|
573
|
+
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
574
|
+
* @format GUID
|
|
575
|
+
*/
|
|
576
|
+
resourceTypeId?: string | null;
|
|
577
|
+
/**
|
|
578
|
+
* Resource IDs.
|
|
579
|
+
* Available only if there is at least 1 resource available for the slot.
|
|
580
|
+
* @format GUID
|
|
581
|
+
* @maxSize 135
|
|
582
|
+
*/
|
|
583
|
+
resourceIds?: string[] | null;
|
|
584
|
+
}
|
|
803
585
|
interface ListAvailabilityTimeSlotsResponse {
|
|
804
586
|
/**
|
|
805
587
|
* Retrieved time slots.
|
|
@@ -921,6 +703,19 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
921
703
|
*/
|
|
922
704
|
resourceTypes?: ResourceType[];
|
|
923
705
|
}
|
|
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;
|
|
924
719
|
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
925
720
|
/**
|
|
926
721
|
* Selected add-on IDs.
|
|
@@ -1279,6 +1074,211 @@ interface BulkActionMetadata {
|
|
|
1279
1074
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1280
1075
|
undetailedFailures?: number;
|
|
1281
1076
|
}
|
|
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
1282
|
/** @docsIgnore */
|
|
1283
1283
|
type ListAvailabilityTimeSlotsApplicationErrors = {
|
|
1284
1284
|
code?: 'NO_IMPLEMENTERS_FOUND';
|
package/build/es/meta.mjs
CHANGED
|
@@ -238,16 +238,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
|
238
238
|
LocationType2["CUSTOMER"] = "CUSTOMER";
|
|
239
239
|
return LocationType2;
|
|
240
240
|
})(LocationType || {});
|
|
241
|
-
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
242
|
-
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
243
|
-
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
244
|
-
return RequestedGenderValueRequestedGender2;
|
|
245
|
-
})(RequestedGenderValueRequestedGender || {});
|
|
246
241
|
var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
|
|
247
242
|
RequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
248
243
|
RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
249
244
|
return RequestedGender2;
|
|
250
245
|
})(RequestedGender || {});
|
|
246
|
+
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
247
|
+
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
248
|
+
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
249
|
+
return RequestedGenderValueRequestedGender2;
|
|
250
|
+
})(RequestedGenderValueRequestedGender || {});
|
|
251
251
|
var ReasonCode = /* @__PURE__ */ ((ReasonCode2) => {
|
|
252
252
|
ReasonCode2["NO_ASSIGNED_STAFF_OR_RESOURCES"] = "NO_ASSIGNED_STAFF_OR_RESOURCES";
|
|
253
253
|
ReasonCode2["SERVICE_AVAILABILITY_CONFIGURATION_MISSING"] = "SERVICE_AVAILABILITY_CONFIGURATION_MISSING";
|