@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.
- 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
- 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
- package/build/{es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → index.d.mts} +11 -8
- package/build/{internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → index.d.ts} +11 -8
- package/build/index.js +350 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +324 -0
- package/build/index.mjs.map +1 -0
- 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
- 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
- package/build/{cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → internal/index.d.mts} +11 -8
- package/build/internal/{cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → index.d.ts} +11 -8
- package/build/internal/index.js +350 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +324 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +539 -0
- package/build/internal/meta.d.ts +539 -0
- package/build/internal/meta.js +270 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +242 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +539 -0
- package/build/meta.d.ts +539 -0
- package/build/meta.js +270 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +242 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -10
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -304
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -66
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -20
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -14
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1213
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -290
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -6
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -299
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -38
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -14
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -11
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1213
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -262
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -10
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -304
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -66
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -20
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -14
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1213
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -290
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -6
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -299
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -38
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -14
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -11
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1213
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -262
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
@@ -0,0 +1,350 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
|
20
|
+
// index.ts
|
21
|
+
var index_exports = {};
|
22
|
+
__export(index_exports, {
|
23
|
+
LocationType: () => LocationType,
|
24
|
+
getMultiServiceAvailabilityTimeSlot: () => getMultiServiceAvailabilityTimeSlot4,
|
25
|
+
listMultiServiceAvailabilityTimeSlots: () => listMultiServiceAvailabilityTimeSlots4
|
26
|
+
});
|
27
|
+
module.exports = __toCommonJS(index_exports);
|
28
|
+
|
29
|
+
// src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.ts
|
30
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
31
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
32
|
+
|
33
|
+
// src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.ts
|
34
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
35
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
36
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
37
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
38
|
+
function resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl(opts) {
|
39
|
+
const domainToMappings = {
|
40
|
+
"www.wixapis.com": [
|
41
|
+
{
|
42
|
+
srcPath: "/_api/service-availability/v2/time-slots",
|
43
|
+
destPath: "/v2/time-slots"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
srcPath: "/_api/service-availability/v2/multi-service-time-slots",
|
47
|
+
destPath: "/v2/multi-service-time-slots"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
srcPath: "/service-availability/v2/time-slots",
|
51
|
+
destPath: "/v2/time-slots"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
srcPath: "/service-availability/v2/multi-service-time-slots",
|
55
|
+
destPath: "/v2/multi-service-time-slots"
|
56
|
+
}
|
57
|
+
],
|
58
|
+
"*.dev.wix-code.com": [
|
59
|
+
{
|
60
|
+
srcPath: "/_api/service-availability/v2/time-slots",
|
61
|
+
destPath: "/v2/time-slots"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
srcPath: "/_api/service-availability/v2/multi-service-time-slots",
|
65
|
+
destPath: "/v2/multi-service-time-slots"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
srcPath: "/service-availability/v2/time-slots",
|
69
|
+
destPath: "/v2/time-slots"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
srcPath: "/service-availability/v2/multi-service-time-slots",
|
73
|
+
destPath: "/v2/multi-service-time-slots"
|
74
|
+
}
|
75
|
+
],
|
76
|
+
"manage._base_domain_": [
|
77
|
+
{
|
78
|
+
srcPath: "/_api/service-availability/v2/time-slots",
|
79
|
+
destPath: "/v2/time-slots"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
srcPath: "/_api/service-availability/v2/multi-service-time-slots",
|
83
|
+
destPath: "/v2/multi-service-time-slots"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
srcPath: "/service-availability/v2/multi-service-time-slots",
|
87
|
+
destPath: "/v2/multi-service-time-slots"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
srcPath: "/service-availability/v2/time-slots",
|
91
|
+
destPath: "/v2/time-slots"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"www._base_domain_": [
|
95
|
+
{
|
96
|
+
srcPath: "/_api/service-availability/v2/time-slots",
|
97
|
+
destPath: "/v2/time-slots"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
srcPath: "/_api/service-availability/v2/multi-service-time-slots",
|
101
|
+
destPath: "/v2/multi-service-time-slots"
|
102
|
+
}
|
103
|
+
],
|
104
|
+
_: [
|
105
|
+
{
|
106
|
+
srcPath: "/_api/service-availability/v2/time-slots",
|
107
|
+
destPath: "/v2/time-slots"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
srcPath: "/_api/service-availability/v2/multi-service-time-slots",
|
111
|
+
destPath: "/v2/multi-service-time-slots"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
srcPath: "/_api/service-availability/v2/time-slots/event",
|
115
|
+
destPath: "/v2/time-slots/event"
|
116
|
+
}
|
117
|
+
],
|
118
|
+
"editor._base_domain_": [
|
119
|
+
{
|
120
|
+
srcPath: "/_api/service-availability/v2/multi-service-time-slots",
|
121
|
+
destPath: "/v2/multi-service-time-slots"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
srcPath: "/_api/service-availability/v2/time-slots",
|
125
|
+
destPath: "/v2/time-slots"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
srcPath: "/_api/service-availability/v2/time-slots/event",
|
129
|
+
destPath: "/v2/time-slots/event"
|
130
|
+
}
|
131
|
+
],
|
132
|
+
"blocks._base_domain_": [
|
133
|
+
{
|
134
|
+
srcPath: "/_api/service-availability/v2/multi-service-time-slots",
|
135
|
+
destPath: "/v2/multi-service-time-slots"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
srcPath: "/_api/service-availability/v2/time-slots",
|
139
|
+
destPath: "/v2/time-slots"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
srcPath: "/_api/service-availability/v2/time-slots/event",
|
143
|
+
destPath: "/v2/time-slots/event"
|
144
|
+
}
|
145
|
+
],
|
146
|
+
"create.editorx": [
|
147
|
+
{
|
148
|
+
srcPath: "/_api/service-availability/v2/multi-service-time-slots",
|
149
|
+
destPath: "/v2/multi-service-time-slots"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
srcPath: "/_api/service-availability/v2/time-slots",
|
153
|
+
destPath: "/v2/time-slots"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
srcPath: "/_api/service-availability/v2/time-slots/event",
|
157
|
+
destPath: "/v2/time-slots/event"
|
158
|
+
}
|
159
|
+
],
|
160
|
+
"editor.wixapps.net": [
|
161
|
+
{
|
162
|
+
srcPath: "/_api/service-availability/v2/time-slots/event",
|
163
|
+
destPath: "/v2/time-slots/event"
|
164
|
+
}
|
165
|
+
]
|
166
|
+
};
|
167
|
+
return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
168
|
+
}
|
169
|
+
var PACKAGE_NAME = "@wix/auto_sdk_bookings_multi-service-availability-time-slots";
|
170
|
+
function listMultiServiceAvailabilityTimeSlots(payload) {
|
171
|
+
function __listMultiServiceAvailabilityTimeSlots({ host }) {
|
172
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
173
|
+
{
|
174
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
175
|
+
paths: [{ path: "bookingPolicyViolations.earliestBookingDate" }]
|
176
|
+
}
|
177
|
+
]);
|
178
|
+
const metadata = {
|
179
|
+
entityFqdn: "wix.bookings.availability.v2.time_slot",
|
180
|
+
method: "POST",
|
181
|
+
methodFqn: "com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.ListMultiServiceAvailabilityTimeSlots",
|
182
|
+
packageName: PACKAGE_NAME,
|
183
|
+
url: resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl(
|
184
|
+
{
|
185
|
+
protoPath: "/v2/multi-service-time-slots",
|
186
|
+
data: serializedData,
|
187
|
+
host
|
188
|
+
}
|
189
|
+
),
|
190
|
+
data: serializedData,
|
191
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
192
|
+
{
|
193
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
194
|
+
paths: [
|
195
|
+
{ path: "timeSlots.bookingPolicyViolations.earliestBookingDate" }
|
196
|
+
]
|
197
|
+
}
|
198
|
+
])
|
199
|
+
};
|
200
|
+
return metadata;
|
201
|
+
}
|
202
|
+
return __listMultiServiceAvailabilityTimeSlots;
|
203
|
+
}
|
204
|
+
function getMultiServiceAvailabilityTimeSlot(payload) {
|
205
|
+
function __getMultiServiceAvailabilityTimeSlot({ host }) {
|
206
|
+
const metadata = {
|
207
|
+
entityFqdn: "wix.bookings.availability.v2.time_slot",
|
208
|
+
method: "POST",
|
209
|
+
methodFqn: "com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.GetMultiServiceAvailabilityTimeSlot",
|
210
|
+
packageName: PACKAGE_NAME,
|
211
|
+
url: resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl(
|
212
|
+
{ protoPath: "/v2/multi-service-time-slots/get", data: payload, host }
|
213
|
+
),
|
214
|
+
data: payload,
|
215
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
216
|
+
{
|
217
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
218
|
+
paths: [
|
219
|
+
{ path: "timeSlot.bookingPolicyViolations.earliestBookingDate" }
|
220
|
+
]
|
221
|
+
}
|
222
|
+
])
|
223
|
+
};
|
224
|
+
return metadata;
|
225
|
+
}
|
226
|
+
return __getMultiServiceAvailabilityTimeSlot;
|
227
|
+
}
|
228
|
+
|
229
|
+
// src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.ts
|
230
|
+
var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
231
|
+
LocationType2["UNKNOWN_LOCATION_TYPE"] = "UNKNOWN_LOCATION_TYPE";
|
232
|
+
LocationType2["BUSINESS"] = "BUSINESS";
|
233
|
+
LocationType2["CUSTOM"] = "CUSTOM";
|
234
|
+
LocationType2["CUSTOMER"] = "CUSTOMER";
|
235
|
+
return LocationType2;
|
236
|
+
})(LocationType || {});
|
237
|
+
async function listMultiServiceAvailabilityTimeSlots2(options) {
|
238
|
+
const { httpClient, sideEffects } = arguments[1];
|
239
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
240
|
+
services: options?.services,
|
241
|
+
fromLocalDate: options?.fromLocalDate,
|
242
|
+
toLocalDate: options?.toLocalDate,
|
243
|
+
timeZone: options?.timeZone,
|
244
|
+
location: options?.location,
|
245
|
+
bookable: options?.bookable,
|
246
|
+
bookingPolicyViolations: options?.bookingPolicyViolations,
|
247
|
+
timeSlotsPerDay: options?.timeSlotsPerDay,
|
248
|
+
cursorPaging: options?.cursorPaging
|
249
|
+
});
|
250
|
+
const reqOpts = listMultiServiceAvailabilityTimeSlots(
|
251
|
+
payload
|
252
|
+
);
|
253
|
+
sideEffects?.onSiteCall?.();
|
254
|
+
try {
|
255
|
+
const result = await httpClient.request(reqOpts);
|
256
|
+
sideEffects?.onSuccess?.(result);
|
257
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
258
|
+
} catch (err) {
|
259
|
+
const transformedError = (0, import_transform_error.transformError)(
|
260
|
+
err,
|
261
|
+
{
|
262
|
+
spreadPathsToArguments: {},
|
263
|
+
explicitPathsToArguments: {
|
264
|
+
services: "$[0].services",
|
265
|
+
fromLocalDate: "$[0].fromLocalDate",
|
266
|
+
toLocalDate: "$[0].toLocalDate",
|
267
|
+
timeZone: "$[0].timeZone",
|
268
|
+
location: "$[0].location",
|
269
|
+
bookable: "$[0].bookable",
|
270
|
+
bookingPolicyViolations: "$[0].bookingPolicyViolations",
|
271
|
+
timeSlotsPerDay: "$[0].timeSlotsPerDay",
|
272
|
+
cursorPaging: "$[0].cursorPaging"
|
273
|
+
},
|
274
|
+
singleArgumentUnchanged: false
|
275
|
+
},
|
276
|
+
["options"]
|
277
|
+
);
|
278
|
+
sideEffects?.onError?.(err);
|
279
|
+
throw transformedError;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
async function getMultiServiceAvailabilityTimeSlot2(services, localStartDate, localEndDate, timeZone, location) {
|
283
|
+
const { httpClient, sideEffects } = arguments[5];
|
284
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
285
|
+
services,
|
286
|
+
localStartDate,
|
287
|
+
localEndDate,
|
288
|
+
timeZone,
|
289
|
+
location
|
290
|
+
});
|
291
|
+
const reqOpts = getMultiServiceAvailabilityTimeSlot(
|
292
|
+
payload
|
293
|
+
);
|
294
|
+
sideEffects?.onSiteCall?.();
|
295
|
+
try {
|
296
|
+
const result = await httpClient.request(reqOpts);
|
297
|
+
sideEffects?.onSuccess?.(result);
|
298
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
299
|
+
} catch (err) {
|
300
|
+
const transformedError = (0, import_transform_error.transformError)(
|
301
|
+
err,
|
302
|
+
{
|
303
|
+
spreadPathsToArguments: {},
|
304
|
+
explicitPathsToArguments: {
|
305
|
+
services: "$[0]",
|
306
|
+
localStartDate: "$[1]",
|
307
|
+
localEndDate: "$[2]",
|
308
|
+
timeZone: "$[3]",
|
309
|
+
location: "$[4]"
|
310
|
+
},
|
311
|
+
singleArgumentUnchanged: false
|
312
|
+
},
|
313
|
+
["services", "localStartDate", "localEndDate", "timeZone", "location"]
|
314
|
+
);
|
315
|
+
sideEffects?.onError?.(err);
|
316
|
+
throw transformedError;
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
// src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.ts
|
321
|
+
function listMultiServiceAvailabilityTimeSlots3(httpClient) {
|
322
|
+
return (options) => listMultiServiceAvailabilityTimeSlots2(
|
323
|
+
options,
|
324
|
+
// @ts-ignore
|
325
|
+
{ httpClient }
|
326
|
+
);
|
327
|
+
}
|
328
|
+
function getMultiServiceAvailabilityTimeSlot3(httpClient) {
|
329
|
+
return (services, localStartDate, localEndDate, timeZone, location) => getMultiServiceAvailabilityTimeSlot2(
|
330
|
+
services,
|
331
|
+
localStartDate,
|
332
|
+
localEndDate,
|
333
|
+
timeZone,
|
334
|
+
location,
|
335
|
+
// @ts-ignore
|
336
|
+
{ httpClient }
|
337
|
+
);
|
338
|
+
}
|
339
|
+
|
340
|
+
// src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.ts
|
341
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
342
|
+
var listMultiServiceAvailabilityTimeSlots4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(listMultiServiceAvailabilityTimeSlots3);
|
343
|
+
var getMultiServiceAvailabilityTimeSlot4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(getMultiServiceAvailabilityTimeSlot3);
|
344
|
+
// Annotate the CommonJS export names for ESM import in node:
|
345
|
+
0 && (module.exports = {
|
346
|
+
LocationType,
|
347
|
+
getMultiServiceAvailabilityTimeSlot,
|
348
|
+
listMultiServiceAvailabilityTimeSlots
|
349
|
+
});
|
350
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.ts","../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.ts","../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.ts","../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.ts"],"sourcesContent":["export * from './src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixBookingsAvailabilityV2TimeSlot from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js';\n\n/**\n * The `TimeSlot` object represents the availability information\n * for an `Appointment` service's specific slot, including:\n *\n * 1. Whether the slot is bookable for the given service?\n *\n * 2. In what location the service is available for this slot?\n *\n * 3. Which available resources can provide the service for this slot?\n *\n * 4. Does booking the slot for the service violates any of the service booking policies?\n *\n * 5. What is the total capacity and remaining capacity of the service at the time of the calculation of the `TimeSlot`?\n *\n * > __Note:__\n * > When the `TimeSlot` has a non empty `NestedTimeSlots`, it represents the availability information\n * > for a given list of `Appointment` services within a specific time slot.\n */\nexport interface TimeSlot {\n /**\n * Service ID.\n *\n * > Not returned from `MultiServiceAvailabilityTimeSlots` API calls.\n * > Instead, each nested time slot has its own serviceId.\n * @format GUID\n */\n serviceId?: string | null;\n /**\n * Local start date of the time slot in ISO-8601 format.\n * For example, \"2024-01-30T13:30:00\".\n * @format LOCAL_DATE_TIME\n */\n localStartDate?: string | null;\n /**\n * Local end date of the time slot in ISO-8601 format.\n * For example, \"2024-01-30T14:30:00\".\n * @format LOCAL_DATE_TIME\n */\n localEndDate?: string | null;\n /**\n * Whether the slot is bookable according to the service's booking policies.\n *\n * If booking this time slot does not violates any of the service's booking policies,\n * the returned value is `true`. Otherwise, returns `false`.\n */\n bookable?: boolean | null;\n /** The geographic location of the slot. */\n location?: Location;\n /** The event information if the time slot is an event based slot. */\n eventInfo?: EventInfo;\n /**\n * Total number of spots for the slot.\n * @min 1\n * @max 1000\n */\n totalCapacity?: number | null;\n /**\n * Remaining number of spots for the slot.\n * For example, for an appointment service with total capacity of 1 spot and one booked spot, the remaining capacity will be 0.\n * @max 1000\n */\n remainingCapacity?: number | null;\n /**\n * Number of spots in the slot that are available for booking.\n * This is calculated as the remaining capacity minus the spots reserved for the waiting list.\n */\n bookableCapacity?: number | null;\n /**\n * Indicators for booking policy violations for the slot.\n *\n * Each nested field is checked on its own. i.e. if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined\n * we will return also slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.\n */\n bookingPolicyViolations?: BookingPolicyViolations;\n /**\n * List of `AvailableResources` for the time slot.\n * Each `AvailableResources` contains information about available resources of the same type.\n *\n * > Not returned from `MultiServiceAvailabilityTimeSlots` API calls.\n * > Instead, each nested time slot has its own available resources.\n */\n availableResources?: AvailableResources[];\n /**\n * > Nested time slots.\n * > Returned only from `MultiServiceAvailabilityTimeSlots` API calls.\n * @maxSize 8\n */\n nestedTimeSlots?: NestedTimeSlot[];\n /** Reasons why the time slot is not available for booking. */\n nonBookableReasons?: NonBookableReasons;\n}\n\nexport interface Location {\n /**\n * Business Location ID. Present only if the location is a business location.\n * @format GUID\n */\n _id?: string | null;\n /** The location name. */\n name?: string | null;\n /** A string representation for the full address of the location. */\n formattedAddress?: string | null;\n /**\n * The type of location:\n * - `CUSTOM`: The location is specific to this service, and is not derived from the business location.\n * - `BUSINESS`: A business location, either the default business address, or locations defined for the business by the Business Info.\n * - `CUSTOMER`: The location is determined by the customer and is not set up beforehand.\n */\n locationType?: LocationTypeWithLiterals;\n}\n\nexport enum LocationType {\n UNKNOWN_LOCATION_TYPE = 'UNKNOWN_LOCATION_TYPE',\n /** A business location, either the default business address, or locations defined for the business by the Business Info. */\n BUSINESS = 'BUSINESS',\n /** The location is unique to this service and isn't defined as one of the business locations. */\n CUSTOM = 'CUSTOM',\n /** The location can be determined by the customer and is not set up beforehand. */\n CUSTOMER = 'CUSTOMER',\n}\n\n/** @enumType */\nexport type LocationTypeWithLiterals =\n | LocationType\n | 'UNKNOWN_LOCATION_TYPE'\n | 'BUSINESS'\n | 'CUSTOM'\n | 'CUSTOMER';\n\n/** relevant for event based slots, and not for availability based slots */\nexport interface EventInfo {\n /**\n * The event ID.\n * @minLength 36\n * @maxLength 250\n */\n eventId?: string | null;\n /** Waiting list details for the event, if enabled in the service's booking policy. */\n waitingList?: WaitingList;\n}\n\nexport interface WaitingList {\n /**\n * Total number of spots in the waiting list.\n * @min 1\n */\n totalCapacity?: number | null;\n /**\n * Number of remaining spots in the waiting list.\n * For example, a yoga event with a capacity of `10` and `3` registrants will have a `remainingCapacity` of `7`.\n */\n remainingCapacity?: number | null;\n}\n\nexport interface BookingPolicyViolations {\n /** Bookings policy violation. Too early to book this slot. */\n tooEarlyToBook?: boolean | null;\n /** The earliest time at which booking for this slot is allowed, in UTC format (`YYYY-MM-DDThh:mm:ss.sssZ`). */\n earliestBookingDate?: Date | null;\n /** Bookings policy violation. Too late to book this slot. */\n tooLateToBook?: boolean | null;\n /** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */\n bookOnlineDisabled?: boolean | null;\n}\n\nexport interface AvailableResources {\n /**\n * Resource type ID.\n * @format GUID\n */\n resourceTypeId?: string | null;\n /**\n * Available resources for the time slot.\n *\n * + When returned from `ListAvailabilityTimeSlots`, empty by default.\n * + + If you provided `includeResourceTypeIds` or `resourceIds` in request,\n * contains __up__ to 10 available resources out of those provided.\n *\n * + When returned from `GetAvailabilityTimeSlots`, contains all available resources by default.\n * + + If you provided `includeResourceTypeIds` or `resourceIds` in request,\n * contains all of the available resources out of those provided.\n *\n *\n * > + When returned from `ListMultiServiceAvailabilityTimeSlots`, empty by default.\n * > + + If you provided `includeResourceTypeIds` or `resourceIds` in request,\n * > contains __up__ to 10 available resources out of those provided.\n *\n * > + When returned from `GetMultiServiceAvailabilityTimeSlots`, contains all available resources by default.\n * > + + If you provided `includeResourceTypeIds` or `resourceIds` in request,\n * > contains all of the available resources out of those provided.\n */\n resources?: Resource[];\n /**\n * Whether there are more available resources for the slot that are not listed in `resources` due to size limitations.\n * @readonly\n */\n hasMoreAvailableResources?: boolean | null;\n}\n\nexport interface Resource {\n /**\n * Resource ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Resource name.\n * @minLength 1\n */\n name?: string | null;\n}\n\nexport interface NestedTimeSlot {\n /**\n * Service ID of the nested time slot.\n * @format GUID\n */\n serviceId?: string;\n /**\n * Local start date of the nested time slot in ISO-8601 format.\n * For example, \"2024-01-30T13:30:00\".\n * @format LOCAL_DATE_TIME\n */\n localStartDate?: string;\n /**\n * Local end date of the nested time slot in ISO-8601 format.\n * For example, \"2024-01-30T14:30:00\".\n * @format LOCAL_DATE_TIME\n */\n localEndDate?: string;\n /**\n * List of `AvailableResources` for the nested time slot.\n * Each `AvailableResources` contains information about available resources of the same type.\n * @maxSize 10\n */\n availableResources?: AvailableResources[];\n}\n\nexport interface NonBookableReasons {\n /** The slot is fully booked with no remaining capacity. */\n noRemainingCapacity?: boolean | null;\n /** Booking this slot would violate the service's booking policy. */\n violatesBookingPolicy?: boolean | null;\n /** The slot is reserved for the waiting list and not available for direct booking. */\n reservedForWaitingList?: boolean | null;\n}\n\nexport interface ListMultiServiceAvailabilityTimeSlotsRequest {\n /**\n * Services for which the multiService time slots are being returned for.\n * Each service contains its own resources filters within.\n *\n * MinSize: `2`.\n * MaxSize: `8`.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @maxSize 8\n */\n services?: Service[];\n /**\n * Lower boundary for `localStartDate` to include in response, in ISO-8601 format.\n * For example, \"2024-01-30T13:30:00\".\n *\n * Each returned `TimeSlot` in response has a `localStartDate`\n * within the provided `fromLocalDate` and `toLocalDate` exclusive.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @format LOCAL_DATE_TIME\n */\n fromLocalDate?: string | null;\n /**\n * Upper boundary for `localStartDate` to include in response, in ISO-8601 format.\n * For example, \"2024-01-30T14:30:00\".\n *\n * Each returned `TimeSlot` in response has a `localStartDate`\n * within the provided `fromLocalDate` and `toLocalDate` exclusive.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @format LOCAL_DATE_TIME\n */\n toLocalDate?: string | null;\n /**\n * Time zone, in IANA time zone format.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * Location for which the multiService TimeSlots are being returned for.\n *\n * You can specify location or location type for which the TimeSlots will be returned for.\n * If locationType is `BUSINESS`, you __must__ provide a locationId.\n *\n * <blockquote class=\"warning\">\n * <p><strong>warning:</strong><br/>\n * Supports filtering by location type, or by location ID. </br>\n * Other fields like <code class=\"grey-background\">name</code> are ignored.</p>\n * </blockquote>\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n */\n location?: Location;\n /**\n * Whether the `TimeSlot` is bookable according to all of the services booking policies.\n *\n * If booking any of the `TimeSlot`.`NestedTimeSlot`s violates any of its services bookings policies,\n * returns as `false`. Otherwise, returns as `true`.\n *\n * > __Note:__\n * > A `TimeSlot` with a `NestedTimeSlot` that doesn't meet its service's bookings policies will be returned with `bookable` = false,\n * > while a `TimeSlot` with no available resources will not be returned at all.\n */\n bookable?: boolean | null;\n /**\n * Indicators for service's booking policy violations for booking the `TimeSlot`.\n *\n * A bookable time slot must not violate any policy,\n * therefor, this filter is only relevant when `bookable` filter is false.\n *\n * Each nested field is checked on all `NestedTimeSlot`s. For example, if only one of the `NestedTimeSlot`'s\n * has a service with `tooEarlyToBook` same as in the request, we return the `TimeSlot` regardless of whether\n * the other `NestedTimeSlots` has the same `tooEarlyToBook` as in request.\n *\n * Each nested field is checked on its own. For example, if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined\n * we return slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.\n */\n bookingPolicyViolations?: BookingPolicyViolations;\n /**\n * Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,\n * we return at most 3 available TimeSlots for each day within the date range specified in request.\n *\n * By default,\n * if `bookable` filter was not specified,\n * and a day has both `bookable` and `un-bookable` slots, `bookable` slots are returned first.\n *\n * If the number of `bookable` slots is less than the requested `timeSlotsPerDay`,\n * `un-bookable` slots will be returned according to the specified filters.\n */\n timeSlotsPerDay?: number | null;\n /**\n * CursorPaging.\n *\n * Enables you to fetch TimeSlots in smaller, more manageable chunks\n * by setting a limit on the number of results returned in response.\n * This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.\n *\n * If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`\n * with a cursor pointing to next page of results. In order to fetch the next page of results, you should pass the\n * returned cursor to the next call as `cursorPaging`.`cursor`.\n *\n * For the first call, you should only specify the `limit` for the results page.\n * For each following call, you should only pass the previous returned cursor as `cursorPaging`.`cursor`\n * the `cursorPaging`.`limit`. You may pass a different `limit`.\n * No need to specify any additional parameters.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * If you only provide a <code class=\"grey-background\">cursorPaging</code>. <code class=\"grey-background\">cursor</code>,\n * the response will contain the default size of results which is `1000`.\n * </p>\n * </blockquote>\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Service {\n /**\n * Service ID.\n * @format GUID\n */\n serviceId?: string;\n /**\n * Resources to include in response.\n * @format GUID\n * @maxSize 135\n */\n resourceIds?: string[];\n /**\n * The resource type ID's to include in returned time slots.\n * This is in addition to the specifically requested resources.\n *\n * <blockquote class=\"important\">\n * Currently supported only for Staff Member resource type.\n * Staff Member type ID: 1cd44cf8-756f-41c3-bd90-3e2ffcaf1155\n * </blockquote>\n * @format GUID\n * @maxSize 100\n */\n includeResourceTypeIds?: string[];\n /**\n * Selected customer choices.\n * If specified, the selected choices will be used to calculate service configuration.\n * If not specified, the service default configuration will be used.\n * Enforcing this field is the responsibility of the SPI implementer, and not by the Availability API.\n */\n customerChoices?: V2CustomerChoices;\n}\n\n/**\n * Selected customer choices.\n * These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.\n */\nexport interface V2CustomerChoices {\n /**\n * The selected customer duration in minutes.\n * Min: `1 minute`\n * Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)\n * @min 1\n * @max 44639\n */\n durationInMinutes?: number | null;\n /**\n * The selected add-ons IDs.\n * Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.\n * @format GUID\n * @maxSize 21\n */\n addOnIds?: string[] | null;\n /**\n * The selected duration choice ID.\n * @format GUID\n */\n durationChoiceId?: string | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of results to load.\n *\n * Default: `1000`.\n * Max: `1000`.\n * @max 1000\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface ListMultiServiceAvailabilityTimeSlotsResponse {\n /**\n * Time slots.\n * @maxSize 1000\n */\n timeSlots?: TimeSlot[];\n /**\n * Time zone, in IANA time zone format.\n * Shared for all TimeSlots in response.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * CursorPagingMetaData.\n * Contains information about the next page of results.\n *\n * By default,\n * if there are more than 1000 results,\n * the response will contain a `cursorPagingMetaData` with a cursor to the next page of results.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * <code class=\"grey-background\">count</code> is not supported.</p>\n * </blockquote>\n */\n cursorPagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface GetMultiServiceAvailabilityTimeSlotRequest {\n /**\n * Services for which the multiService TimeSlots are being returned for.\n * Each service contains its own resources filters within.\n *\n * MinSize: 2.\n * MaxSize: 8.\n * @minSize 2\n * @maxSize 8\n */\n services: Service[];\n /**\n * Local start date of the time slot, in ISO-8601 format.\n * For example, \"2024-01-30T13:30:00\".\n * @format LOCAL_DATE_TIME\n */\n localStartDate: string;\n /**\n * Local end date of the time slot, in ISO-8601 format.\n * For example, \"2024-01-30T14:30:00\".\n * @format LOCAL_DATE_TIME\n */\n localEndDate: string;\n /**\n * Time zone, in IANA time zone format.\n * @minLength 1\n * @maxLength 150\n */\n timeZone: string | null;\n /**\n * The location of the time slot.\n *\n * You must provide a specific `locationType`.\n * If locationType is `BUSINESS`, you __must__ also provide a `locationId`.\n *\n * <blockquote class=\"warning\">\n * <p>Supports filtering by location type, or by location ID.\n * Other fields like <code class=\"grey-background\">name</code> are ignored.</p>\n * </blockquote>\n */\n location: Location;\n}\n\nexport interface GetMultiServiceAvailabilityTimeSlotResponse {\n /** Time slot. */\n timeSlot?: TimeSlot;\n /**\n * The time zone, in IANA time zone format.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n}\n\nexport interface ListAvailabilityTimeSlotsRequest {\n /**\n * Service ID for which the time slots are being returned for.\n * Currently supported only for services of type `APPOINTMENT`.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @format GUID\n */\n serviceId?: string | null;\n /**\n * Lower boundary for `localStartDate` to include in response, in ISO-8601 format.\n * For example, \"2024-01-30T13:30:00\".\n *\n * Each returned `TimeSlot` in response has a `localStartDate`\n * within the provided `fromLocalDate` and `toLocalDate` exclusive.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @format LOCAL_DATE_TIME\n */\n fromLocalDate?: string | null;\n /**\n * Upper boundary for `localStartDate` to include in response, in ISO-8601 format.\n * For example, \"2024-01-30T14:30:00\".\n *\n * Each returned `TimeSlot` in response has a `localStartDate`\n * within the provided `fromLocalDate` and `toLocalDate` exclusive.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @format LOCAL_DATE_TIME\n */\n toLocalDate?: string | null;\n /**\n * Time zone, in IANA time zone format.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * Locations to include in response.\n *\n * By default,\n * if no locations are provided,\n * the response contains TimeSlots for all locations where the service is available.\n *\n * You can specify locations or location types for which the time slots will be returned for.\n * If locationType is `BUSINESS`, you __must__ provide a locationId.\n *\n * <blockquote class=\"warning\">\n * <p><strong>warning:</strong><br/>\n * Supports filtering by location type, or by location ID. </br>\n * Other fields like <code class=\"grey-background\">name</code> are ignored.</p>\n * </blockquote>\n * @maxSize 5\n */\n locations?: Location[];\n /**\n * Resources to include in response.\n *\n * If specified,\n * the returned TimeSlots will contain __up__ to 10 available resources out of the provided list.\n * Otherwise, the returned TimeSlots returns with an empty `AvailableResources`.\n * @format GUID\n * @maxSize 135\n * @deprecated\n */\n resourceIds?: string[];\n /**\n * Resource type ID's to include in response, this is in addition to the requested `resourceIds`.\n *\n * If specified in request, the returned TimeSlots will contain __up__ to 10 `AvailableResources` with `ResourceTypeId`\n * out of those specified, each contains __up__ to 10 available resources of this type.\n * @format GUID\n * @maxSize 100\n */\n includeResourceTypeIds?: string[];\n /**\n * Whether the `TimeSlot` is bookable according to the service's booking policies.\n *\n * If booking this `TimeSlot` does not violates any of the service's booking policies,\n * returns as `true`. Otherwise, returns as `false`.\n *\n * > __Note:__\n * > A time slot that doesn't meet the service's bookings policies will be returned with `bookable` = false,\n * > while a time slot with no available resources will not be returned at all.\n */\n bookable?: boolean | null;\n /**\n * Indicators for service's booking policy violations for booking the `TimeSlot`.\n *\n * A bookable time slot must not violate any policy,\n * therefor, this filter is only relevant when `bookable` filter is false.\n *\n * Each nested field is checked on its own. i.e. if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined\n * we return slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.\n */\n bookingPolicyViolations?: BookingPolicyViolations;\n /**\n * Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,\n * we return at most 3 available TimeSlots for each day within the date range specified in request.\n *\n * By default,\n * if `bookable` filter was not specified,\n * and a day has both `bookable` and `un-bookable` slots, `bookable` slots are returned first.\n *\n * If the number of `bookable` slots is less than the requested `timeSlotsPerDay`,\n * `un-bookable` slots will be returned according to the specified filters.\n */\n timeSlotsPerDay?: number | null;\n /**\n * CursorPaging.\n *\n * Enables you to fetch results in smaller, more manageable chunks\n * by setting a limit on the number of results returned in response.\n * This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.\n *\n * If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`\n * with a cursor pointing to next page of results. In order to fetch the next page of results, you should pass the\n * returned cursor to the next call as `cursorPaging`.`cursor`.\n *\n * For the first call, you should only specify the `limit` for the results page.\n * For each following call, you should only pass `cursorPaging`.`cursor` with the returned cursor from previous call, and\n * a `cursorPaging`.`limit`.\n * No need to specify any additional parameters.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * If you only provide a <code class=\"grey-background\">cursorPaging</code>. <code class=\"grey-background\">cursor</code>,\n * the response will contain the default size of results which is `1000`.\n * </p>\n * </blockquote>\n */\n cursorPaging?: CursorPaging;\n /**\n * resources filter\n * If specified, only time slots with these resources will be returned.\n * @maxSize 3\n */\n resourceTypes?: ResourceType[];\n}\n\n/**\n * Selected customer choices.\n * These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.\n */\nexport interface CustomerChoices {\n /**\n * The selected customer duration in minutes.\n * Min: `1 minute`\n * Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)\n * @min 1\n * @max 44639\n */\n durationInMinutes?: number | null;\n /**\n * The selected add-ons IDs.\n * Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.\n * @format GUID\n * @maxSize 21\n */\n addOnIds?: string[] | null;\n /**\n * The selected duration choice ID.\n * @format GUID\n */\n durationChoiceId?: string | null;\n}\n\nexport interface ResourceType {\n /**\n * Resource type ID.\n * @format GUID\n */\n resourceTypeId?: string | null;\n /**\n * Resource IDs.\n * The response will contain only slots that have at least one of the specified resources.\n * @format GUID\n * @minSize 1\n * @maxSize 135\n */\n resourceIds?: string[] | null;\n}\n\nexport interface ListAvailabilityTimeSlotsResponse {\n /**\n * Time slots.\n * @maxSize 1000\n */\n timeSlots?: TimeSlot[];\n /**\n * Time zone, in IANA time zone format.\n * Shared for all TimeSlots in response.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * CursorPagingMetaData.\n * Contains information about the next page of results.\n *\n * By default,\n * if there are more than 1000 results,\n * the response will contain a `cursorPagingMetaData` with a cursor to the next page of results.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * <code class=\"grey-background\">count</code> is not supported.</p>\n * </blockquote>\n */\n cursorPagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface GetAvailabilityTimeSlotRequest {\n /**\n * Service ID of the time slot.\n * Currently supported only for services of type `APPOINTMENT`.\n * @format GUID\n */\n serviceId?: string;\n /**\n * Local start date of the time slot, in ISO-8601 format.\n * For example, \"2024-01-30T13:30:00\".\n * @format LOCAL_DATE_TIME\n */\n localStartDate?: string;\n /**\n * Local end date of the time slot, in ISO-8601 format.\n * For example, \"2024-01-30T14:30:00\".\n * @format LOCAL_DATE_TIME\n */\n localEndDate?: string;\n /**\n * Time zone, in IANA time zone format.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * The location of the time slot.\n *\n * You must provide a specific `locationType`.\n * If locationType is `BUSINESS`, you __must__ also provide a `locationId`.\n *\n * <blockquote class=\"warning\">\n * <p>Supports filtering by location type, or by location ID.\n * Other fields like <code class=\"grey-background\">name</code> are ignored.</p>\n * </blockquote>\n */\n location?: Location;\n /**\n * Resources to include in response.\n *\n * If specified,\n * the returned `TimeSlot` contains only the available resources out of provided list.\n * Otherwise, the returned `TimeSlot` returned with all possible `AvailableResources`.\n * @format GUID\n * @maxSize 135\n */\n resourceIds?: string[];\n /**\n * Resource type IDs to include in response, this is in addition to the requested `resourceIds`.\n *\n * If specified in request, the returned `TimeSlot` contains only the `AvailableResources` with `ResourceTypeId`\n * out of those specified, each contains all the available resources of this type.\n * @format GUID\n * @maxSize 100\n */\n includeResourceTypeIds?: string[];\n}\n\nexport interface GetAvailabilityTimeSlotRequestCustomerChoices {\n /**\n * The selected add-ons IDs.\n * Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.\n * @format GUID\n * @maxSize 21\n */\n addOnIds?: string[] | null;\n /**\n * The selected duration choice ID.\n * @format GUID\n */\n durationChoiceId?: string | null;\n}\n\nexport interface GetAvailabilityTimeSlotResponse {\n /** Time slot. */\n timeSlot?: TimeSlot;\n /**\n * Time zone, in IANA time zone format.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n}\n\nexport interface ListEventTimeSlotsRequest {\n /**\n * Local start date for which event time slots are returned, in ISO-8601 format.\n * E.g., \"2024-01-30T13:30:00\".\n * Required, unless `cursorPaging` is provided.\n * @format LOCAL_DATE_TIME\n */\n fromLocalDate?: string | null;\n /**\n * Local end date for which event time slots are returned, in ISO-8601 format.\n * E.g., \"2024-01-30T13:30:00\".\n * Required, unless `cursorPaging` is provided.\n * @format LOCAL_DATE_TIME\n */\n toLocalDate?: string | null;\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n *\n * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).\n * @maxLength 100\n */\n timeZone?: string | null;\n /**\n * Optional service IDs to filter by.\n * If not provided, time slots for all services are returned.\n * @format GUID\n * @maxSize 100\n */\n serviceIds?: string[] | null;\n /**\n * Whether to filter bookable slots only.\n * A bookable slot is a slot that has remaining capacity and also satisfies the booking policy.\n * Default false: Only bookable slots are returned.\n */\n includeNonBookable?: boolean | null;\n /**\n * Filter event time slots by the minimum bookable capacity.\n * @min 1\n */\n minBookableCapacity?: number | null;\n /**\n * Optional filter to apply to the events. E.g., resource, location, etc.\n * See the Events API [Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting) for more information.\n */\n eventFilter?: Record<string, any> | null;\n /**\n * The maximum number of time slots to return for each day.\n * For example, if `maxSlotsPerDay` is set to `1`, at most 1 available slot is returned for each day.\n * When a day has both bookable and non-bookable slots, bookable slots are returned first.\n * If `maxSlotsPerDay` is provided, `toLocalDate` must also be provided and must be at most 1 month after `fromLocalDate`.\n * @min 1\n * @max 1\n */\n maxSlotsPerDay?: number | null;\n /** Cursor to retrieve the next page of results. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface ListEventTimeSlotsResponse {\n /** Retrieved time slots matching the specified filters. */\n timeSlots?: TimeSlot[];\n /**\n * The time slots time zone.\n * Either provided explicitly or default to the business time zone.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface GetEventTimeSlotRequest {\n /**\n * The event ID.\n * @minLength 36\n * @maxLength 250\n */\n eventId?: string | null;\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n *\n * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).\n * @maxLength 100\n */\n timeZone?: string | null;\n}\n\nexport interface GetEventTimeSlotResponse {\n /** The time slot. */\n timeSlot?: TimeSlot;\n /**\n * The time slot time zone.\n * Either provided explicitly or default to the business time zone.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n}\n\ntype TimeSlotNonNullablePaths =\n | `location.locationType`\n | `availableResources`\n | `nestedTimeSlots`\n | `nestedTimeSlots.${number}.serviceId`\n | `nestedTimeSlots.${number}.localStartDate`\n | `nestedTimeSlots.${number}.localEndDate`;\n\n/**\n * Retrieves a list of multiService `TimeSlot`s that match the provided filters.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * Currently supported only for services of type <code class=\"grey-background\">APPOINTMENT</code>.</p>\n * </blockquote>\n *\n * The request body __must__ include either:\n * + All of the following filters: `service`.`serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.\n * + A `cursorPaging` with a valid `cursor` from previous response.\n *\n *\n * Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response\n * represents the availability of the given sequence of services in a specific order, location, and within a given range of time.\n *\n * Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order\n * of the given services in request.\n * The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` exclusive,\n * and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.\n *\n * By default,\n * the response contains at most 1000 results.\n * If there are more than 1000 results, we return a `cursorPagingMetadata` with\n * a cursor for the next page of results, regardless of whether a `cursorPaging`\n * was provided in request.\n *\n * > __Notes:__\n * > + All nested time slots share the same location.\n * > + You can pass up to 8 services in request.\n *\n * ### AvailableResources in response:\n * The `TimeSlot`.`NestedTimeSlot`'s `AvailableResources` contains information about the resources that are available to provide the service\n * within the `NestedTimeSlot` range of time. Each `AvailableResources` contains information about available resources of the same type.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * By default,\n * if you don't specify <code class=\"grey-background\">service</code>.<code class=\"grey-background\">includeResourceTypeIds</code>\n * or <code class=\"grey-background\">service</code>.<code class=\"grey-background\">resourceIds</code> filters in request,\n * we return TimeSlots with <code class=\"grey-background\">NestedTimeSlot</code>s with an empty <code class=\"grey-background\">AvailableResources</code>.\n * <br/><strong>Note:</strong><br/> Not specifying resources filters can be handy in case you want to avoid large response in flows that only\n * 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)\n * is an example for such flow.\n * </p>\n * </blockquote>\n *\n *\n * If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:\n * + provide `service`.`resourceIds` in request.\n * + provide `service`.`includeResourceTypeIds` in request.\n *\n * __Notes:__\n * + 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.\n * + If an `AvailableResources` has more available resources which are not listed within it, we return `AvailableResources`.`hasMoreAvailableResources` as true.\n * + 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).\n *\n *\n * ### Availability VS Bookability\n * An `available` time slot is not necessarily `bookable`.\n * The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,\n * at a specific period of time.\n * 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).\n *\n * By default,\n * + 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.\n * + 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`.\n * + 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.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong>\n * Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.\n * 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>\n * </blockquote>\n *\n * ### ListAvailabilityTimeSlots runs with the following defaults:\n * + `localStartDate` is sorted in `ASC` order.\n * + `cursorPaging`.`limit` is `1000`.\n * @public\n * @documentationMaturity preview\n * @permissionId BOOKINGS.AVAILABILITY_READ_MULTI_SERVICE_TIME_SLOTS\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read Bookings - Public Data\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC\n * @permissionScope Manage Bookings Services and Settings\n * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Read Bookings - all read permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS\n * @permissionScope Read Bookings Calendar Availability\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.ListMultiServiceAvailabilityTimeSlots\n */\nexport async function listMultiServiceAvailabilityTimeSlots(\n options?: ListMultiServiceAvailabilityTimeSlotsOptions\n): Promise<\n NonNullablePaths<\n ListMultiServiceAvailabilityTimeSlotsResponse,\n {\n [P in TimeSlotNonNullablePaths]: `timeSlots.${number}.${P}`;\n }[TimeSlotNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n services: options?.services,\n fromLocalDate: options?.fromLocalDate,\n toLocalDate: options?.toLocalDate,\n timeZone: options?.timeZone,\n location: options?.location,\n bookable: options?.bookable,\n bookingPolicyViolations: options?.bookingPolicyViolations,\n timeSlotsPerDay: options?.timeSlotsPerDay,\n cursorPaging: options?.cursorPaging,\n });\n\n const reqOpts =\n ambassadorWixBookingsAvailabilityV2TimeSlot.listMultiServiceAvailabilityTimeSlots(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n services: '$[0].services',\n fromLocalDate: '$[0].fromLocalDate',\n toLocalDate: '$[0].toLocalDate',\n timeZone: '$[0].timeZone',\n location: '$[0].location',\n bookable: '$[0].bookable',\n bookingPolicyViolations: '$[0].bookingPolicyViolations',\n timeSlotsPerDay: '$[0].timeSlotsPerDay',\n cursorPaging: '$[0].cursorPaging',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListMultiServiceAvailabilityTimeSlotsOptions {\n /**\n * Services for which the multiService time slots are being returned for.\n * Each service contains its own resources filters within.\n *\n * MinSize: `2`.\n * MaxSize: `8`.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @maxSize 8\n */\n services?: Service[];\n /**\n * Lower boundary for `localStartDate` to include in response, in ISO-8601 format.\n * For example, \"2024-01-30T13:30:00\".\n *\n * Each returned `TimeSlot` in response has a `localStartDate`\n * within the provided `fromLocalDate` and `toLocalDate` exclusive.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @format LOCAL_DATE_TIME\n */\n fromLocalDate?: string | null;\n /**\n * Upper boundary for `localStartDate` to include in response, in ISO-8601 format.\n * For example, \"2024-01-30T14:30:00\".\n *\n * Each returned `TimeSlot` in response has a `localStartDate`\n * within the provided `fromLocalDate` and `toLocalDate` exclusive.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @format LOCAL_DATE_TIME\n */\n toLocalDate?: string | null;\n /**\n * Time zone, in IANA time zone format.\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * Location for which the multiService TimeSlots are being returned for.\n *\n * You can specify location or location type for which the TimeSlots will be returned for.\n * If locationType is `BUSINESS`, you __must__ provide a locationId.\n *\n * <blockquote class=\"warning\">\n * <p><strong>warning:</strong><br/>\n * Supports filtering by location type, or by location ID. </br>\n * Other fields like <code class=\"grey-background\">name</code> are ignored.</p>\n * </blockquote>\n *\n * Required, unless `cursorPaging`.`cursor` is provided.\n */\n location?: Location;\n /**\n * Whether the `TimeSlot` is bookable according to all of the services booking policies.\n *\n * If booking any of the `TimeSlot`.`NestedTimeSlot`s violates any of its services bookings policies,\n * returns as `false`. Otherwise, returns as `true`.\n *\n * > __Note:__\n * > A `TimeSlot` with a `NestedTimeSlot` that doesn't meet its service's bookings policies will be returned with `bookable` = false,\n * > while a `TimeSlot` with no available resources will not be returned at all.\n */\n bookable?: boolean | null;\n /**\n * Indicators for service's booking policy violations for booking the `TimeSlot`.\n *\n * A bookable time slot must not violate any policy,\n * therefor, this filter is only relevant when `bookable` filter is false.\n *\n * Each nested field is checked on all `NestedTimeSlot`s. For example, if only one of the `NestedTimeSlot`'s\n * has a service with `tooEarlyToBook` same as in the request, we return the `TimeSlot` regardless of whether\n * the other `NestedTimeSlots` has the same `tooEarlyToBook` as in request.\n *\n * Each nested field is checked on its own. For example, if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined\n * we return slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.\n */\n bookingPolicyViolations?: BookingPolicyViolations;\n /**\n * Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,\n * we return at most 3 available TimeSlots for each day within the date range specified in request.\n *\n * By default,\n * if `bookable` filter was not specified,\n * and a day has both `bookable` and `un-bookable` slots, `bookable` slots are returned first.\n *\n * If the number of `bookable` slots is less than the requested `timeSlotsPerDay`,\n * `un-bookable` slots will be returned according to the specified filters.\n */\n timeSlotsPerDay?: number | null;\n /**\n * CursorPaging.\n *\n * Enables you to fetch TimeSlots in smaller, more manageable chunks\n * by setting a limit on the number of results returned in response.\n * This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.\n *\n * If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`\n * with a cursor pointing to next page of results. In order to fetch the next page of results, you should pass the\n * returned cursor to the next call as `cursorPaging`.`cursor`.\n *\n * For the first call, you should only specify the `limit` for the results page.\n * For each following call, you should only pass the previous returned cursor as `cursorPaging`.`cursor`\n * the `cursorPaging`.`limit`. You may pass a different `limit`.\n * No need to specify any additional parameters.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * If you only provide a <code class=\"grey-background\">cursorPaging</code>. <code class=\"grey-background\">cursor</code>,\n * the response will contain the default size of results which is `1000`.\n * </p>\n * </blockquote>\n */\n cursorPaging?: CursorPaging;\n}\n\n/**\n * Retrieves an available multiService `TimeSlot` that match the provided filters.\n *\n * Throws `SlotNotFound` if there is no such available time slot.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * Currently supported only for services of type <code class=\"grey-background\">APPOINTMENT</code>.</p>\n * </blockquote>\n *\n * By default,\n * if you don't provide a `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,\n * we return for each `TimeSlot`.`NestedTimeSlot` all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide\n * the corresponding service within the time slot.\n *\n * If you specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,\n * the returned `TimeSlot`.`NestedTimeSlot` for this service will contain only `AvailableResources` with at least one available resource\n * which match the given resources filters,\n * each contains all available resources out of those requested.\n *\n * + Notes:\n * + All nested time slots share the same location.\n * + You can pass up to 8 services.\n *\n * <blockquote class=\"tip\">\n * <p><strong>Tip:</strong><br/>\n * 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>\n * </blockquote>\n * @param services - Services for which the multiService TimeSlots are being returned for.\n * Each service contains its own resources filters within.\n *\n * MinSize: 2.\n * MaxSize: 8.\n * @param localStartDate - Local start date of the time slot, in ISO-8601 format.\n * For example, \"2024-01-30T13:30:00\".\n * @param localEndDate - Local end date of the time slot, in ISO-8601 format.\n * For example, \"2024-01-30T14:30:00\".\n * @param timeZone - Time zone, in IANA time zone format.\n * @param location - The location of the time slot.\n *\n * You must provide a specific `locationType`.\n * If locationType is `BUSINESS`, you __must__ also provide a `locationId`.\n *\n * <blockquote class=\"warning\">\n * <p>Supports filtering by location type, or by location ID.\n * Other fields like <code class=\"grey-background\">name</code> are ignored.</p>\n * </blockquote>\n * @public\n * @documentationMaturity preview\n * @requiredField localEndDate\n * @requiredField localStartDate\n * @requiredField location\n * @requiredField location.locationType\n * @requiredField services\n * @requiredField services.serviceId\n * @requiredField timeZone\n * @permissionId BOOKINGS.AVAILABILITY_READ_MULTI_SERVICE_TIME_SLOTS\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read Bookings - Public Data\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC\n * @permissionScope Manage Bookings Services and Settings\n * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Read Bookings - all read permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS\n * @permissionScope Read Bookings Calendar Availability\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.GetMultiServiceAvailabilityTimeSlot\n */\nexport async function getMultiServiceAvailabilityTimeSlot(\n services: NonNullablePaths<Service, `serviceId`>[],\n localStartDate: string,\n localEndDate: string,\n timeZone: string,\n location: NonNullablePaths<Location, `locationType`>\n): Promise<\n NonNullablePaths<\n GetMultiServiceAvailabilityTimeSlotResponse,\n {\n [P in TimeSlotNonNullablePaths]: `timeSlot.${P}`;\n }[TimeSlotNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[5] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n services: services,\n localStartDate: localStartDate,\n localEndDate: localEndDate,\n timeZone: timeZone,\n location: location,\n });\n\n const reqOpts =\n ambassadorWixBookingsAvailabilityV2TimeSlot.getMultiServiceAvailabilityTimeSlot(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n services: '$[0]',\n localStartDate: '$[1]',\n localEndDate: '$[2]',\n timeZone: '$[3]',\n location: '$[4]',\n },\n singleArgumentUnchanged: false,\n },\n ['services', 'localStartDate', 'localEndDate', 'timeZone', 'location']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/_api/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n {\n srcPath: '/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n {\n srcPath: '/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n {\n srcPath: '/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n {\n srcPath: '/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n ],\n _: [\n {\n srcPath: '/_api/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/time-slots/event',\n destPath: '/v2/time-slots/event',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/time-slots/event',\n destPath: '/v2/time-slots/event',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/time-slots/event',\n destPath: '/v2/time-slots/event',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/service-availability/v2/multi-service-time-slots',\n destPath: '/v2/multi-service-time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/time-slots',\n destPath: '/v2/time-slots',\n },\n {\n srcPath: '/_api/service-availability/v2/time-slots/event',\n destPath: '/v2/time-slots/event',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/service-availability/v2/time-slots/event',\n destPath: '/v2/time-slots/event',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME =\n '@wix/auto_sdk_bookings_multi-service-availability-time-slots';\n\n/**\n * Retrieves a list of multiService `TimeSlot`s that match the provided filters.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * Currently supported only for services of type <code class=\"grey-background\">APPOINTMENT</code>.</p>\n * </blockquote>\n *\n * The request body __must__ include either:\n * + All of the following filters: `service`.`serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.\n * + A `cursorPaging` with a valid `cursor` from previous response.\n *\n *\n * Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response\n * represents the availability of the given sequence of services in a specific order, location, and within a given range of time.\n *\n * Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order\n * of the given services in request.\n * The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` exclusive,\n * and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.\n *\n * By default,\n * the response contains at most 1000 results.\n * If there are more than 1000 results, we return a `cursorPagingMetadata` with\n * a cursor for the next page of results, regardless of whether a `cursorPaging`\n * was provided in request.\n *\n * > __Notes:__\n * > + All nested time slots share the same location.\n * > + You can pass up to 8 services in request.\n *\n * ### AvailableResources in response:\n * The `TimeSlot`.`NestedTimeSlot`'s `AvailableResources` contains information about the resources that are available to provide the service\n * within the `NestedTimeSlot` range of time. Each `AvailableResources` contains information about available resources of the same type.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * By default,\n * if you don't specify <code class=\"grey-background\">service</code>.<code class=\"grey-background\">includeResourceTypeIds</code>\n * or <code class=\"grey-background\">service</code>.<code class=\"grey-background\">resourceIds</code> filters in request,\n * we return TimeSlots with <code class=\"grey-background\">NestedTimeSlot</code>s with an empty <code class=\"grey-background\">AvailableResources</code>.\n * <br/><strong>Note:</strong><br/> Not specifying resources filters can be handy in case you want to avoid large response in flows that only\n * 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)\n * is an example for such flow.\n * </p>\n * </blockquote>\n *\n *\n * If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:\n * + provide `service`.`resourceIds` in request.\n * + provide `service`.`includeResourceTypeIds` in request.\n *\n * __Notes:__\n * + 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.\n * + If an `AvailableResources` has more available resources which are not listed within it, we return `AvailableResources`.`hasMoreAvailableResources` as true.\n * + 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).\n *\n *\n * ### Availability VS Bookability\n * An `available` time slot is not necessarily `bookable`.\n * The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,\n * at a specific period of time.\n * 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).\n *\n * By default,\n * + 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.\n * + 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`.\n * + 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.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong>\n * Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.\n * 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>\n * </blockquote>\n *\n * ### ListAvailabilityTimeSlots runs with the following defaults:\n * + `localStartDate` is sorted in `ASC` order.\n * + `cursorPaging`.`limit` is `1000`.\n */\nexport function listMultiServiceAvailabilityTimeSlots(\n payload: object\n): RequestOptionsFactory<any> {\n function __listMultiServiceAvailabilityTimeSlots({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'bookingPolicyViolations.earliestBookingDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.availability.v2.time_slot',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.ListMultiServiceAvailabilityTimeSlots',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl(\n {\n protoPath: '/v2/multi-service-time-slots',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'timeSlots.bookingPolicyViolations.earliestBookingDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listMultiServiceAvailabilityTimeSlots;\n}\n\n/**\n * Retrieves an available multiService `TimeSlot` that match the provided filters.\n *\n * Throws `SlotNotFound` if there is no such available time slot.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * Currently supported only for services of type <code class=\"grey-background\">APPOINTMENT</code>.</p>\n * </blockquote>\n *\n * By default,\n * if you don't provide a `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,\n * we return for each `TimeSlot`.`NestedTimeSlot` all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide\n * the corresponding service within the time slot.\n *\n * If you specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,\n * the returned `TimeSlot`.`NestedTimeSlot` for this service will contain only `AvailableResources` with at least one available resource\n * which match the given resources filters,\n * each contains all available resources out of those requested.\n *\n * + Notes:\n * + All nested time slots share the same location.\n * + You can pass up to 8 services.\n *\n * <blockquote class=\"tip\">\n * <p><strong>Tip:</strong><br/>\n * 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>\n * </blockquote>\n */\nexport function getMultiServiceAvailabilityTimeSlot(\n payload: object\n): RequestOptionsFactory<any> {\n function __getMultiServiceAvailabilityTimeSlot({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.availability.v2.time_slot',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.GetMultiServiceAvailabilityTimeSlot',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl(\n { protoPath: '/v2/multi-service-time-slots/get', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'timeSlot.bookingPolicyViolations.earliestBookingDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getMultiServiceAvailabilityTimeSlot;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n GetMultiServiceAvailabilityTimeSlotResponse,\n ListMultiServiceAvailabilityTimeSlotsOptions,\n ListMultiServiceAvailabilityTimeSlotsResponse,\n Location,\n Service,\n getMultiServiceAvailabilityTimeSlot as universalGetMultiServiceAvailabilityTimeSlot,\n listMultiServiceAvailabilityTimeSlots as universalListMultiServiceAvailabilityTimeSlots,\n} from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/bookings' };\n\nexport function listMultiServiceAvailabilityTimeSlots(\n httpClient: HttpClient\n): ListMultiServiceAvailabilityTimeSlotsSignature {\n return (options?: ListMultiServiceAvailabilityTimeSlotsOptions) =>\n universalListMultiServiceAvailabilityTimeSlots(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListMultiServiceAvailabilityTimeSlotsSignature {\n /**\n * Retrieves a list of multiService `TimeSlot`s that match the provided filters.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * Currently supported only for services of type <code class=\"grey-background\">APPOINTMENT</code>.</p>\n * </blockquote>\n *\n * The request body __must__ include either:\n * + All of the following filters: `service`.`serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.\n * + A `cursorPaging` with a valid `cursor` from previous response.\n *\n *\n * Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response\n * represents the availability of the given sequence of services in a specific order, location, and within a given range of time.\n *\n * Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order\n * of the given services in request.\n * The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` exclusive,\n * and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.\n *\n * By default,\n * the response contains at most 1000 results.\n * If there are more than 1000 results, we return a `cursorPagingMetadata` with\n * a cursor for the next page of results, regardless of whether a `cursorPaging`\n * was provided in request.\n *\n * > __Notes:__\n * > + All nested time slots share the same location.\n * > + You can pass up to 8 services in request.\n *\n * ### AvailableResources in response:\n * The `TimeSlot`.`NestedTimeSlot`'s `AvailableResources` contains information about the resources that are available to provide the service\n * within the `NestedTimeSlot` range of time. Each `AvailableResources` contains information about available resources of the same type.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * By default,\n * if you don't specify <code class=\"grey-background\">service</code>.<code class=\"grey-background\">includeResourceTypeIds</code>\n * or <code class=\"grey-background\">service</code>.<code class=\"grey-background\">resourceIds</code> filters in request,\n * we return TimeSlots with <code class=\"grey-background\">NestedTimeSlot</code>s with an empty <code class=\"grey-background\">AvailableResources</code>.\n * <br/><strong>Note:</strong><br/> Not specifying resources filters can be handy in case you want to avoid large response in flows that only\n * 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)\n * is an example for such flow.\n * </p>\n * </blockquote>\n *\n *\n * If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:\n * + provide `service`.`resourceIds` in request.\n * + provide `service`.`includeResourceTypeIds` in request.\n *\n * __Notes:__\n * + 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.\n * + If an `AvailableResources` has more available resources which are not listed within it, we return `AvailableResources`.`hasMoreAvailableResources` as true.\n * + 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).\n *\n *\n * ### Availability VS Bookability\n * An `available` time slot is not necessarily `bookable`.\n * The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,\n * at a specific period of time.\n * 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).\n *\n * By default,\n * + 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.\n * + 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`.\n * + 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.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong>\n * Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.\n * 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>\n * </blockquote>\n *\n * ### ListAvailabilityTimeSlots runs with the following defaults:\n * + `localStartDate` is sorted in `ASC` order.\n * + `cursorPaging`.`limit` is `1000`.\n */\n (\n options?: ListMultiServiceAvailabilityTimeSlotsOptions | undefined\n ): Promise<ListMultiServiceAvailabilityTimeSlotsResponse>;\n}\n\nexport function getMultiServiceAvailabilityTimeSlot(\n httpClient: HttpClient\n): GetMultiServiceAvailabilityTimeSlotSignature {\n return (\n services: NonNullablePaths<Service, `serviceId`>[],\n localStartDate: string,\n localEndDate: string,\n timeZone: string,\n location: NonNullablePaths<Location, `locationType`>\n ) =>\n universalGetMultiServiceAvailabilityTimeSlot(\n services,\n localStartDate,\n localEndDate,\n timeZone,\n location,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetMultiServiceAvailabilityTimeSlotSignature {\n /**\n * Retrieves an available multiService `TimeSlot` that match the provided filters.\n *\n * Throws `SlotNotFound` if there is no such available time slot.\n *\n * <blockquote class=\"important\">\n * <p><strong>Important:</strong><br/>\n * Currently supported only for services of type <code class=\"grey-background\">APPOINTMENT</code>.</p>\n * </blockquote>\n *\n * By default,\n * if you don't provide a `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,\n * we return for each `TimeSlot`.`NestedTimeSlot` all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide\n * the corresponding service within the time slot.\n *\n * If you specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,\n * the returned `TimeSlot`.`NestedTimeSlot` for this service will contain only `AvailableResources` with at least one available resource\n * which match the given resources filters,\n * each contains all available resources out of those requested.\n *\n * + Notes:\n * + All nested time slots share the same location.\n * + You can pass up to 8 services.\n *\n * <blockquote class=\"tip\">\n * <p><strong>Tip:</strong><br/>\n * 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>\n * </blockquote>\n * @param - Services for which the multiService TimeSlots are being returned for.\n * Each service contains its own resources filters within.\n *\n * MinSize: 2.\n * MaxSize: 8.\n * @param - Local start date of the time slot, in ISO-8601 format.\n * For example, \"2024-01-30T13:30:00\".\n * @param - Local end date of the time slot, in ISO-8601 format.\n * For example, \"2024-01-30T14:30:00\".\n * @param - Time zone, in IANA time zone format.\n * @param - The location of the time slot.\n *\n * You must provide a specific `locationType`.\n * If locationType is `BUSINESS`, you __must__ also provide a `locationId`.\n *\n * <blockquote class=\"warning\">\n * <p>Supports filtering by location type, or by location ID.\n * Other fields like <code class=\"grey-background\">name</code> are ignored.</p>\n * </blockquote>\n */\n (\n services: Service[],\n localStartDate: string,\n localEndDate: string,\n timeZone: string,\n location: Location\n ): Promise<GetMultiServiceAvailabilityTimeSlotResponse>;\n}\n\nexport {\n AvailableResources,\n BookingPolicyViolations,\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n CustomerChoices,\n EventInfo,\n GetAvailabilityTimeSlotRequest,\n GetAvailabilityTimeSlotRequestCustomerChoices,\n GetAvailabilityTimeSlotResponse,\n GetEventTimeSlotRequest,\n GetEventTimeSlotResponse,\n GetMultiServiceAvailabilityTimeSlotRequest,\n GetMultiServiceAvailabilityTimeSlotResponse,\n ListAvailabilityTimeSlotsRequest,\n ListAvailabilityTimeSlotsResponse,\n ListEventTimeSlotsRequest,\n ListEventTimeSlotsResponse,\n ListMultiServiceAvailabilityTimeSlotsOptions,\n ListMultiServiceAvailabilityTimeSlotsRequest,\n ListMultiServiceAvailabilityTimeSlotsResponse,\n Location,\n LocationType,\n NestedTimeSlot,\n NonBookableReasons,\n Resource,\n ResourceType,\n Service,\n TimeSlot,\n V2CustomerChoices,\n WaitingList,\n} from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';\n","import {\n listMultiServiceAvailabilityTimeSlots as publicListMultiServiceAvailabilityTimeSlots,\n getMultiServiceAvailabilityTimeSlot as publicGetMultiServiceAvailabilityTimeSlot,\n} from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const listMultiServiceAvailabilityTimeSlots: MaybeContext<\n BuildRESTFunction<typeof publicListMultiServiceAvailabilityTimeSlots> &\n typeof publicListMultiServiceAvailabilityTimeSlots\n> = /*#__PURE__*/ createRESTModule(publicListMultiServiceAvailabilityTimeSlots);\nexport const getMultiServiceAvailabilityTimeSlot: MaybeContext<\n BuildRESTFunction<typeof publicGetMultiServiceAvailabilityTimeSlot> &\n typeof publicGetMultiServiceAvailabilityTimeSlot\n> = /*#__PURE__*/ createRESTModule(publicGetMultiServiceAvailabilityTimeSlot);\n\nexport { LocationType } from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';\nexport {\n TimeSlot,\n Location,\n EventInfo,\n WaitingList,\n BookingPolicyViolations,\n AvailableResources,\n Resource,\n NestedTimeSlot,\n NonBookableReasons,\n ListMultiServiceAvailabilityTimeSlotsRequest,\n Service,\n V2CustomerChoices,\n CursorPaging,\n ListMultiServiceAvailabilityTimeSlotsResponse,\n CursorPagingMetadata,\n Cursors,\n GetMultiServiceAvailabilityTimeSlotRequest,\n GetMultiServiceAvailabilityTimeSlotResponse,\n ListAvailabilityTimeSlotsRequest,\n CustomerChoices,\n ResourceType,\n ListAvailabilityTimeSlotsResponse,\n GetAvailabilityTimeSlotRequest,\n GetAvailabilityTimeSlotRequestCustomerChoices,\n GetAvailabilityTimeSlotResponse,\n ListEventTimeSlotsRequest,\n ListEventTimeSlotsResponse,\n GetEventTimeSlotRequest,\n GetEventTimeSlotResponse,\n ListMultiServiceAvailabilityTimeSlotsOptions,\n} from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';\n"],"mappings":"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","names":["getMultiServiceAvailabilityTimeSlot","listMultiServiceAvailabilityTimeSlots","import_timestamp","payload","LocationType","listMultiServiceAvailabilityTimeSlots","sdkTransformError","getMultiServiceAvailabilityTimeSlot","listMultiServiceAvailabilityTimeSlots","getMultiServiceAvailabilityTimeSlot","import_rest_modules","listMultiServiceAvailabilityTimeSlots","getMultiServiceAvailabilityTimeSlot"]}
|