@wix/auto_sdk_bookings_multi-service-availability-time-slots 1.0.133 → 1.0.135

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.
Files changed (129) hide show
  1. package/build/{cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts → bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal-B2t3dqyF.d.mts} +154 -33
  2. package/build/{internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts → bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal-B2t3dqyF.d.ts} +154 -33
  3. package/build/{es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → index.d.mts} +11 -8
  4. package/build/{internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → index.d.ts} +11 -8
  5. package/build/index.js +350 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +324 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts → internal/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal-B2t3dqyF.d.mts} +154 -33
  10. package/build/internal/{es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts → bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal-B2t3dqyF.d.ts} +154 -33
  11. package/build/{cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → internal/index.d.mts} +11 -8
  12. package/build/internal/{cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → index.d.ts} +11 -8
  13. package/build/internal/index.js +350 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +324 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +539 -0
  18. package/build/internal/meta.d.ts +539 -0
  19. package/build/internal/meta.js +270 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +242 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +539 -0
  24. package/build/meta.d.ts +539 -0
  25. package/build/meta.js +270 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +242 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
  40. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -10
  41. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
  42. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
  43. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -304
  44. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
  45. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
  46. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -66
  47. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -20
  49. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
  50. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -14
  51. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
  52. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1213
  53. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -290
  54. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
  65. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -6
  66. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
  67. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
  68. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -299
  69. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
  70. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
  71. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -38
  72. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
  73. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -14
  74. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
  75. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -11
  76. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
  77. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1213
  78. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -262
  79. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
  80. package/build/internal/cjs/index.d.ts +0 -1
  81. package/build/internal/cjs/index.js +0 -18
  82. package/build/internal/cjs/index.js.map +0 -1
  83. package/build/internal/cjs/index.typings.d.ts +0 -1
  84. package/build/internal/cjs/index.typings.js +0 -18
  85. package/build/internal/cjs/index.typings.js.map +0 -1
  86. package/build/internal/cjs/meta.d.ts +0 -1
  87. package/build/internal/cjs/meta.js +0 -18
  88. package/build/internal/cjs/meta.js.map +0 -1
  89. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
  90. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -10
  91. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
  92. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
  93. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -304
  94. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
  95. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
  96. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -66
  97. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
  98. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -20
  99. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
  100. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -14
  101. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
  102. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1213
  103. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -290
  104. package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
  105. package/build/internal/es/index.d.ts +0 -1
  106. package/build/internal/es/index.js +0 -2
  107. package/build/internal/es/index.js.map +0 -1
  108. package/build/internal/es/index.typings.d.ts +0 -1
  109. package/build/internal/es/index.typings.js +0 -2
  110. package/build/internal/es/index.typings.js.map +0 -1
  111. package/build/internal/es/meta.d.ts +0 -1
  112. package/build/internal/es/meta.js +0 -2
  113. package/build/internal/es/meta.js.map +0 -1
  114. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
  115. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -6
  116. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
  117. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
  118. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -299
  119. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
  120. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
  121. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -38
  122. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
  123. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -14
  124. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
  125. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -11
  126. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
  127. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1213
  128. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -262
  129. package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
@@ -1,262 +0,0 @@
1
- import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
- import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
3
- import * as ambassadorWixBookingsAvailabilityV2TimeSlot from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js';
4
- export var LocationType;
5
- (function (LocationType) {
6
- LocationType["UNKNOWN_LOCATION_TYPE"] = "UNKNOWN_LOCATION_TYPE";
7
- /** A business location, either the default business address, or locations defined for the business by the Business Info. */
8
- LocationType["BUSINESS"] = "BUSINESS";
9
- /** The location is unique to this service and isn't defined as one of the business locations. */
10
- LocationType["CUSTOM"] = "CUSTOM";
11
- /** The location can be determined by the customer and is not set up beforehand. */
12
- LocationType["CUSTOMER"] = "CUSTOMER";
13
- })(LocationType || (LocationType = {}));
14
- /**
15
- * Retrieves a list of multiService `TimeSlot`s that match the provided filters.
16
- *
17
- * <blockquote class="important">
18
- * <p><strong>Important:</strong><br/>
19
- * Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
20
- * </blockquote>
21
- *
22
- * The request body __must__ include either:
23
- * + All of the following filters: `service`.`serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.
24
- * + A `cursorPaging` with a valid `cursor` from previous response.
25
- *
26
- *
27
- * Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
28
- * represents the availability of the given sequence of services in a specific order, location, and within a given range of time.
29
- *
30
- * Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order
31
- * of the given services in request.
32
- * The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` exclusive,
33
- * and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.
34
- *
35
- * By default,
36
- * the response contains at most 1000 results.
37
- * If there are more than 1000 results, we return a `cursorPagingMetadata` with
38
- * a cursor for the next page of results, regardless of whether a `cursorPaging`
39
- * was provided in request.
40
- *
41
- * > __Notes:__
42
- * > + All nested time slots share the same location.
43
- * > + You can pass up to 8 services in request.
44
- *
45
- * ### AvailableResources in response:
46
- * The `TimeSlot`.`NestedTimeSlot`'s `AvailableResources` contains information about the resources that are available to provide the service
47
- * within the `NestedTimeSlot` range of time. Each `AvailableResources` contains information about available resources of the same type.
48
- *
49
- * <blockquote class="important">
50
- * <p><strong>Important:</strong><br/>
51
- * By default,
52
- * if you don't specify <code class="grey-background">service</code>.<code class="grey-background">includeResourceTypeIds</code>
53
- * or <code class="grey-background">service</code>.<code class="grey-background">resourceIds</code> filters in request,
54
- * we return TimeSlots with <code class="grey-background">NestedTimeSlot</code>s with an empty <code class="grey-background">AvailableResources</code>.
55
- * <br/><strong>Note:</strong><br/> Not specifying resources filters can be handy in case you want to avoid large response in flows that only
56
- * interested of whether the time slots are available. [Finding the next available slot within the next 3 months](https://bo.wix.com/wix-docs/rest/all-apis/service-availability/multi-service-availability-time-slots/sample-flows?localViewerId=inbari#all-apis_service-availability_multi-service-availability-time-slots_sample-flows_find-the-first-date-within-the-next-3-months-that-all-selected-services-are-available-for)
57
- * is an example for such flow.
58
- * </p>
59
- * </blockquote>
60
- *
61
- *
62
- * If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:
63
- * + provide `service`.`resourceIds` in request.
64
- * + provide `service`.`includeResourceTypeIds` in request.
65
- *
66
- * __Notes:__
67
- * + In both cases the returned `TimeSlot`.`NestedTimeSlot` contains __up__ to 10 `AvailableResources` that match the provided filters. Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
68
- * + If an `AvailableResources` has more available resources which are not listed within it, we return `AvailableResources`.`hasMoreAvailableResources` as true.
69
- * + If you wish to get the full available resources list for all `NestedTimeSlot` of a specific `TimeSlot`, you should call [GetMultiServiceAvailabilityTimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/multi-service-availability-time-slots/get-multi-service-availability-time-slot).
70
- *
71
- *
72
- * ### Availability VS Bookability
73
- * An `available` time slot is not necessarily `bookable`.
74
- * The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,
75
- * at a specific period of time.
76
- * Read more about [Availability VS Bookability](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/multi-service-availability-time-slots/introduction#all-apis_wix-service-availability_multi-service-availability-time-slots_introduction_availability-vs-bookability).
77
- *
78
- * By default,
79
- * + The response does not contains `unavailable` TimeSlots.For example, if there are no available resources to provide one of the services from `2024-01-30T14:30:00` to `2024-01-30T15:30:00`, we don't return TimeSlots with `NestedTimeSlot`.`localStartDate` within this range for this service.
80
- * + The response contains both `bookable` and `un-bookable` TimeSlots.For example, if one of the services has a booking policy which enforces booking the service up to 10 minutes before the session starts, we return TimeSlots with the violating `NestedTimeSlot`.`localStartDate`, with `bookable` as `false`. If you want to list only __bookable__ TimeSlots you should pass `bookable` as `true`.
81
- * + If booking one of the `NestedTimeSlot`s violates one of the corresponding service's booking policies, the `TimeSlot` returns with `bookable` as false. There is no indication which service's policy was violated.
82
- *
83
- * <blockquote class="important">
84
- * <p><strong>Important:</strong>
85
- * Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
86
- * Read more about <a href="https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/multi-service-availability-time-slots/introduction#all-apis_wix-service-availability_multi-service-availability-time-slots_introduction_daylight-saving-time-dst-handling">DST Handling</a></p>
87
- * </blockquote>
88
- *
89
- * ### ListAvailabilityTimeSlots runs with the following defaults:
90
- * + `localStartDate` is sorted in `ASC` order.
91
- * + `cursorPaging`.`limit` is `1000`.
92
- * @public
93
- * @documentationMaturity preview
94
- * @permissionId BOOKINGS.AVAILABILITY_READ_MULTI_SERVICE_TIME_SLOTS
95
- * @permissionScope Manage Stores
96
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
97
- * @permissionScope Read Bookings - Public Data
98
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
99
- * @permissionScope Manage Bookings Services and Settings
100
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
101
- * @permissionScope Read Bookings - Including Participants
102
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
103
- * @permissionScope Read Bookings - all read permissions
104
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
105
- * @permissionScope Read Bookings Calendar Availability
106
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
107
- * @permissionScope Manage Bookings - all permissions
108
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
109
- * @applicableIdentity APP
110
- * @applicableIdentity VISITOR
111
- * @fqn com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.ListMultiServiceAvailabilityTimeSlots
112
- */
113
- export async function listMultiServiceAvailabilityTimeSlots(options) {
114
- // @ts-ignore
115
- const { httpClient, sideEffects } = arguments[1];
116
- const payload = renameKeysFromSDKRequestToRESTRequest({
117
- services: options?.services,
118
- fromLocalDate: options?.fromLocalDate,
119
- toLocalDate: options?.toLocalDate,
120
- timeZone: options?.timeZone,
121
- location: options?.location,
122
- bookable: options?.bookable,
123
- bookingPolicyViolations: options?.bookingPolicyViolations,
124
- timeSlotsPerDay: options?.timeSlotsPerDay,
125
- cursorPaging: options?.cursorPaging,
126
- });
127
- const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.listMultiServiceAvailabilityTimeSlots(payload);
128
- sideEffects?.onSiteCall?.();
129
- try {
130
- const result = await httpClient.request(reqOpts);
131
- sideEffects?.onSuccess?.(result);
132
- return renameKeysFromRESTResponseToSDKResponse(result.data);
133
- }
134
- catch (err) {
135
- const transformedError = sdkTransformError(err, {
136
- spreadPathsToArguments: {},
137
- explicitPathsToArguments: {
138
- services: '$[0].services',
139
- fromLocalDate: '$[0].fromLocalDate',
140
- toLocalDate: '$[0].toLocalDate',
141
- timeZone: '$[0].timeZone',
142
- location: '$[0].location',
143
- bookable: '$[0].bookable',
144
- bookingPolicyViolations: '$[0].bookingPolicyViolations',
145
- timeSlotsPerDay: '$[0].timeSlotsPerDay',
146
- cursorPaging: '$[0].cursorPaging',
147
- },
148
- singleArgumentUnchanged: false,
149
- }, ['options']);
150
- sideEffects?.onError?.(err);
151
- throw transformedError;
152
- }
153
- }
154
- /**
155
- * Retrieves an available multiService `TimeSlot` that match the provided filters.
156
- *
157
- * Throws `SlotNotFound` if there is no such available time slot.
158
- *
159
- * <blockquote class="important">
160
- * <p><strong>Important:</strong><br/>
161
- * Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
162
- * </blockquote>
163
- *
164
- * By default,
165
- * if you don't provide a `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
166
- * we return for each `TimeSlot`.`NestedTimeSlot` all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide
167
- * the corresponding service within the time slot.
168
- *
169
- * If you specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
170
- * the returned `TimeSlot`.`NestedTimeSlot` for this service will contain only `AvailableResources` with at least one available resource
171
- * which match the given resources filters,
172
- * each contains all available resources out of those requested.
173
- *
174
- * + Notes:
175
- * + All nested time slots share the same location.
176
- * + You can pass up to 8 services.
177
- *
178
- * <blockquote class="tip">
179
- * <p><strong>Tip:</strong><br/>
180
- * Use this API in order to get the availability of a specific <code class="grey-background">TimeSlot</code> out of those returned from <code class="grey-background">ListMultiServiceAvailabilityTimeSlots</code> API.</p>
181
- * </blockquote>
182
- * @param services - Services for which the multiService TimeSlots are being returned for.
183
- * Each service contains its own resources filters within.
184
- *
185
- * MinSize: 2.
186
- * MaxSize: 8.
187
- * @param localStartDate - Local start date of the time slot, in ISO-8601 format.
188
- * For example, "2024-01-30T13:30:00".
189
- * @param localEndDate - Local end date of the time slot, in ISO-8601 format.
190
- * For example, "2024-01-30T14:30:00".
191
- * @param timeZone - Time zone, in IANA time zone format.
192
- * @param location - The location of the time slot.
193
- *
194
- * You must provide a specific `locationType`.
195
- * If locationType is `BUSINESS`, you __must__ also provide a `locationId`.
196
- *
197
- * <blockquote class="warning">
198
- * <p>Supports filtering by location type, or by location ID.
199
- * Other fields like <code class="grey-background">name</code> are ignored.</p>
200
- * </blockquote>
201
- * @public
202
- * @documentationMaturity preview
203
- * @requiredField localEndDate
204
- * @requiredField localStartDate
205
- * @requiredField location
206
- * @requiredField location.locationType
207
- * @requiredField services
208
- * @requiredField services.serviceId
209
- * @requiredField timeZone
210
- * @permissionId BOOKINGS.AVAILABILITY_READ_MULTI_SERVICE_TIME_SLOTS
211
- * @permissionScope Manage Stores
212
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
213
- * @permissionScope Read Bookings - Public Data
214
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
215
- * @permissionScope Manage Bookings Services and Settings
216
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
217
- * @permissionScope Read Bookings - Including Participants
218
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
219
- * @permissionScope Read Bookings - all read permissions
220
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
221
- * @permissionScope Read Bookings Calendar Availability
222
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
223
- * @permissionScope Manage Bookings - all permissions
224
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
225
- * @applicableIdentity APP
226
- * @applicableIdentity VISITOR
227
- * @fqn com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.GetMultiServiceAvailabilityTimeSlot
228
- */
229
- export async function getMultiServiceAvailabilityTimeSlot(services, localStartDate, localEndDate, timeZone, location) {
230
- // @ts-ignore
231
- const { httpClient, sideEffects } = arguments[5];
232
- const payload = renameKeysFromSDKRequestToRESTRequest({
233
- services: services,
234
- localStartDate: localStartDate,
235
- localEndDate: localEndDate,
236
- timeZone: timeZone,
237
- location: location,
238
- });
239
- const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.getMultiServiceAvailabilityTimeSlot(payload);
240
- sideEffects?.onSiteCall?.();
241
- try {
242
- const result = await httpClient.request(reqOpts);
243
- sideEffects?.onSuccess?.(result);
244
- return renameKeysFromRESTResponseToSDKResponse(result.data);
245
- }
246
- catch (err) {
247
- const transformedError = sdkTransformError(err, {
248
- spreadPathsToArguments: {},
249
- explicitPathsToArguments: {
250
- services: '$[0]',
251
- localStartDate: '$[1]',
252
- localEndDate: '$[2]',
253
- timeZone: '$[3]',
254
- location: '$[4]',
255
- },
256
- singleArgumentUnchanged: false,
257
- }, ['services', 'localStartDate', 'localEndDate', 'timeZone', 'location']);
258
- sideEffects?.onError?.(err);
259
- throw transformedError;
260
- }
261
- }
262
- //# sourceMappingURL=bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.ts"],"names":[],"mappings":"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"}
@@ -1 +0,0 @@
1
- export * from './src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4HAA0G"}
@@ -1 +0,0 @@
1
- export * from './src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js"), exports);
18
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8HAA4G"}
@@ -1 +0,0 @@
1
- export * from './src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js"), exports);
18
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yHAAuG"}
@@ -1,6 +0,0 @@
1
- import { listMultiServiceAvailabilityTimeSlots as publicListMultiServiceAvailabilityTimeSlots, getMultiServiceAvailabilityTimeSlot as publicGetMultiServiceAvailabilityTimeSlot } from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js';
2
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
- export declare const listMultiServiceAvailabilityTimeSlots: MaybeContext<BuildRESTFunction<typeof publicListMultiServiceAvailabilityTimeSlots> & typeof publicListMultiServiceAvailabilityTimeSlots>;
4
- export declare const getMultiServiceAvailabilityTimeSlot: MaybeContext<BuildRESTFunction<typeof publicGetMultiServiceAvailabilityTimeSlot> & typeof publicGetMultiServiceAvailabilityTimeSlot>;
5
- export { LocationType } from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';
6
- export { TimeSlot, Location, EventInfo, WaitingList, BookingPolicyViolations, AvailableResources, Resource, NestedTimeSlot, NonBookableReasons, ListMultiServiceAvailabilityTimeSlotsRequest, Service, V2CustomerChoices, CursorPaging, ListMultiServiceAvailabilityTimeSlotsResponse, CursorPagingMetadata, Cursors, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse, ListAvailabilityTimeSlotsRequest, CustomerChoices, ResourceType, ListAvailabilityTimeSlotsResponse, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotRequestCustomerChoices, GetAvailabilityTimeSlotResponse, ListEventTimeSlotsRequest, ListEventTimeSlotsResponse, GetEventTimeSlotRequest, GetEventTimeSlotResponse, ListMultiServiceAvailabilityTimeSlotsOptions, } from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocationType = exports.getMultiServiceAvailabilityTimeSlot = exports.listMultiServiceAvailabilityTimeSlots = void 0;
4
- const bookings_availability_v2_time_slot_multi_service_availability_time_slots_public_js_1 = require("./bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js");
5
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
- exports.listMultiServiceAvailabilityTimeSlots = (0, rest_modules_1.createRESTModule)(bookings_availability_v2_time_slot_multi_service_availability_time_slots_public_js_1.listMultiServiceAvailabilityTimeSlots);
7
- exports.getMultiServiceAvailabilityTimeSlot = (0, rest_modules_1.createRESTModule)(bookings_availability_v2_time_slot_multi_service_availability_time_slots_public_js_1.getMultiServiceAvailabilityTimeSlot);
8
- var bookings_availability_v2_time_slot_multi_service_availability_time_slots_universal_js_1 = require("./bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js");
9
- Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return bookings_availability_v2_time_slot_multi_service_availability_time_slots_universal_js_1.LocationType; } });
10
- //# sourceMappingURL=bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js","sourceRoot":"","sources":["../../../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.ts"],"names":[],"mappings":";;;AAAA,6LAG8F;AAC9F,gEAAiE;AAGpD,QAAA,qCAAqC,GAGhC,IAAA,+BAAgB,EAAC,0HAA2C,CAAC,CAAC;AACnE,QAAA,mCAAmC,GAG9B,IAAA,+BAAgB,EAAC,wHAAyC,CAAC,CAAC;AAE9E,iMAAuH;AAA9G,qLAAA,YAAY,OAAA"}
@@ -1,111 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Retrieves a list of multiService `TimeSlot`s that match the provided filters.
4
- *
5
- * <blockquote class="important">
6
- * <p><strong>Important:</strong><br/>
7
- * Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
8
- * </blockquote>
9
- *
10
- * The request body __must__ include either:
11
- * + All of the following filters: `service`.`serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.
12
- * + A `cursorPaging` with a valid `cursor` from previous response.
13
- *
14
- *
15
- * Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
16
- * represents the availability of the given sequence of services in a specific order, location, and within a given range of time.
17
- *
18
- * Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order
19
- * of the given services in request.
20
- * The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` exclusive,
21
- * and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.
22
- *
23
- * By default,
24
- * the response contains at most 1000 results.
25
- * If there are more than 1000 results, we return a `cursorPagingMetadata` with
26
- * a cursor for the next page of results, regardless of whether a `cursorPaging`
27
- * was provided in request.
28
- *
29
- * > __Notes:__
30
- * > + All nested time slots share the same location.
31
- * > + You can pass up to 8 services in request.
32
- *
33
- * ### AvailableResources in response:
34
- * The `TimeSlot`.`NestedTimeSlot`'s `AvailableResources` contains information about the resources that are available to provide the service
35
- * within the `NestedTimeSlot` range of time. Each `AvailableResources` contains information about available resources of the same type.
36
- *
37
- * <blockquote class="important">
38
- * <p><strong>Important:</strong><br/>
39
- * By default,
40
- * if you don't specify <code class="grey-background">service</code>.<code class="grey-background">includeResourceTypeIds</code>
41
- * or <code class="grey-background">service</code>.<code class="grey-background">resourceIds</code> filters in request,
42
- * we return TimeSlots with <code class="grey-background">NestedTimeSlot</code>s with an empty <code class="grey-background">AvailableResources</code>.
43
- * <br/><strong>Note:</strong><br/> Not specifying resources filters can be handy in case you want to avoid large response in flows that only
44
- * interested of whether the time slots are available. [Finding the next available slot within the next 3 months](https://bo.wix.com/wix-docs/rest/all-apis/service-availability/multi-service-availability-time-slots/sample-flows?localViewerId=inbari#all-apis_service-availability_multi-service-availability-time-slots_sample-flows_find-the-first-date-within-the-next-3-months-that-all-selected-services-are-available-for)
45
- * is an example for such flow.
46
- * </p>
47
- * </blockquote>
48
- *
49
- *
50
- * If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:
51
- * + provide `service`.`resourceIds` in request.
52
- * + provide `service`.`includeResourceTypeIds` in request.
53
- *
54
- * __Notes:__
55
- * + In both cases the returned `TimeSlot`.`NestedTimeSlot` contains __up__ to 10 `AvailableResources` that match the provided filters. Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
56
- * + If an `AvailableResources` has more available resources which are not listed within it, we return `AvailableResources`.`hasMoreAvailableResources` as true.
57
- * + If you wish to get the full available resources list for all `NestedTimeSlot` of a specific `TimeSlot`, you should call [GetMultiServiceAvailabilityTimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/multi-service-availability-time-slots/get-multi-service-availability-time-slot).
58
- *
59
- *
60
- * ### Availability VS Bookability
61
- * An `available` time slot is not necessarily `bookable`.
62
- * The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,
63
- * at a specific period of time.
64
- * Read more about [Availability VS Bookability](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/multi-service-availability-time-slots/introduction#all-apis_wix-service-availability_multi-service-availability-time-slots_introduction_availability-vs-bookability).
65
- *
66
- * By default,
67
- * + The response does not contains `unavailable` TimeSlots.For example, if there are no available resources to provide one of the services from `2024-01-30T14:30:00` to `2024-01-30T15:30:00`, we don't return TimeSlots with `NestedTimeSlot`.`localStartDate` within this range for this service.
68
- * + The response contains both `bookable` and `un-bookable` TimeSlots.For example, if one of the services has a booking policy which enforces booking the service up to 10 minutes before the session starts, we return TimeSlots with the violating `NestedTimeSlot`.`localStartDate`, with `bookable` as `false`. If you want to list only __bookable__ TimeSlots you should pass `bookable` as `true`.
69
- * + If booking one of the `NestedTimeSlot`s violates one of the corresponding service's booking policies, the `TimeSlot` returns with `bookable` as false. There is no indication which service's policy was violated.
70
- *
71
- * <blockquote class="important">
72
- * <p><strong>Important:</strong>
73
- * Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
74
- * Read more about <a href="https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/multi-service-availability-time-slots/introduction#all-apis_wix-service-availability_multi-service-availability-time-slots_introduction_daylight-saving-time-dst-handling">DST Handling</a></p>
75
- * </blockquote>
76
- *
77
- * ### ListAvailabilityTimeSlots runs with the following defaults:
78
- * + `localStartDate` is sorted in `ASC` order.
79
- * + `cursorPaging`.`limit` is `1000`.
80
- */
81
- export declare function listMultiServiceAvailabilityTimeSlots(payload: object): RequestOptionsFactory<any>;
82
- /**
83
- * Retrieves an available multiService `TimeSlot` that match the provided filters.
84
- *
85
- * Throws `SlotNotFound` if there is no such available time slot.
86
- *
87
- * <blockquote class="important">
88
- * <p><strong>Important:</strong><br/>
89
- * Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
90
- * </blockquote>
91
- *
92
- * By default,
93
- * if you don't provide a `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
94
- * we return for each `TimeSlot`.`NestedTimeSlot` all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide
95
- * the corresponding service within the time slot.
96
- *
97
- * If you specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
98
- * the returned `TimeSlot`.`NestedTimeSlot` for this service will contain only `AvailableResources` with at least one available resource
99
- * which match the given resources filters,
100
- * each contains all available resources out of those requested.
101
- *
102
- * + Notes:
103
- * + All nested time slots share the same location.
104
- * + You can pass up to 8 services.
105
- *
106
- * <blockquote class="tip">
107
- * <p><strong>Tip:</strong><br/>
108
- * Use this API in order to get the availability of a specific <code class="grey-background">TimeSlot</code> out of those returned from <code class="grey-background">ListMultiServiceAvailabilityTimeSlots</code> API.</p>
109
- * </blockquote>
110
- */
111
- export declare function getMultiServiceAvailabilityTimeSlot(payload: object): RequestOptionsFactory<any>;