@wix/auto_sdk_bookings_availability-time-slots 1.0.243 → 1.0.244
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +83 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +152 -3
- package/build/cjs/index.typings.js +74 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +109 -4
- package/build/cjs/meta.js +53 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +10 -10
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +82 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +152 -3
- package/build/es/index.typings.mjs +73 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +109 -4
- package/build/es/meta.mjs +52 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +10 -10
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +37 -3
- package/build/internal/cjs/index.js +83 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +188 -3
- package/build/internal/cjs/index.typings.js +74 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +109 -4
- package/build/internal/cjs/meta.js +53 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +10 -10
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +37 -3
- package/build/internal/es/index.mjs +82 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +188 -3
- package/build/internal/es/index.typings.mjs +73 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +109 -4
- package/build/internal/es/meta.mjs +52 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +10 -10
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { ListAvailabilityTimeSlotsOptions, ListAvailabilityTimeSlotsResponse, ListAvailabilityTimeSlotsApplicationErrors, Location, GetAvailabilityTimeSlotOptions, GetAvailabilityTimeSlotResponse, GetAvailabilityTimeSlotApplicationErrors } from './index.typings.js';
|
|
3
|
-
export { AvailableResources, BookingPolicyViolations, CursorPaging, CursorPagingMetadata, Cursors, CustomerChoices, EventInfo, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotRequestCustomerChoices, GetEventTimeSlotRequest, GetEventTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse, ListAvailabilityTimeSlotsRequest, ListEventTimeSlotsRequest, ListEventTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsRequest, ListMultiServiceAvailabilityTimeSlotsResponse, LocationType, LocationTypeWithLiterals, NestedTimeSlot, NonBookableReasons, Resource, ResourceType, Service, TimeSlot, V2CustomerChoices, WaitingList } from './index.typings.js';
|
|
3
|
+
export { AvailableResources, BookingPolicyViolations, CursorPaging, CursorPagingMetadata, Cursors, CustomerChoices, EventInfo, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotRequestCustomerChoices, GetEventTimeSlotRequest, GetEventTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse, ListAvailabilityTimeSlotEndOptions, ListAvailabilityTimeSlotEndOptionsApplicationErrors, ListAvailabilityTimeSlotEndOptionsRequest, ListAvailabilityTimeSlotEndOptionsResponse, ListAvailabilityTimeSlotsRequest, ListEventTimeSlotsRequest, ListEventTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsRequest, ListMultiServiceAvailabilityTimeSlotsResponse, LocationType, LocationTypeWithLiterals, NestedTimeSlot, NonBookableReasons, Resource, ResourceType, Service, TimeSlot, V2CustomerChoices, WaitingList } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function listAvailabilityTimeSlots$1(httpClient: HttpClient): ListAvailabilityTimeSlotsSignature;
|
|
6
6
|
interface ListAvailabilityTimeSlotsSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -22,6 +22,7 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
LocationType: () => LocationType,
|
|
24
24
|
getAvailabilityTimeSlot: () => getAvailabilityTimeSlot4,
|
|
25
|
+
listAvailabilityTimeSlotEndOptions: () => listAvailabilityTimeSlotEndOptions4,
|
|
25
26
|
listAvailabilityTimeSlots: () => listAvailabilityTimeSlots4
|
|
26
27
|
});
|
|
27
28
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -202,6 +203,37 @@ function listAvailabilityTimeSlots(payload) {
|
|
|
202
203
|
}
|
|
203
204
|
return __listAvailabilityTimeSlots;
|
|
204
205
|
}
|
|
206
|
+
function listAvailabilityTimeSlotEndOptions(payload) {
|
|
207
|
+
function __listAvailabilityTimeSlotEndOptions({ host }) {
|
|
208
|
+
const metadata = {
|
|
209
|
+
entityFqdn: "wix.bookings.availability.v2.time_slot",
|
|
210
|
+
method: "POST",
|
|
211
|
+
methodFqn: "com.wixpress.bookings.availability.v2.AvailabilityTimeSlots.ListAvailabilityTimeSlotEndOptions",
|
|
212
|
+
packageName: PACKAGE_NAME,
|
|
213
|
+
migrationOptions: {
|
|
214
|
+
optInTransformResponse: true
|
|
215
|
+
},
|
|
216
|
+
url: resolveComWixpressBookingsAvailabilityV2AvailabilityTimeSlotsUrl({
|
|
217
|
+
protoPath: "/v2/time-slots/end-options",
|
|
218
|
+
data: payload,
|
|
219
|
+
host
|
|
220
|
+
}),
|
|
221
|
+
data: payload,
|
|
222
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
223
|
+
{
|
|
224
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
225
|
+
paths: [
|
|
226
|
+
{
|
|
227
|
+
path: "endOptions.bookingPolicyViolations.earliestBookingDate"
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
])
|
|
232
|
+
};
|
|
233
|
+
return metadata;
|
|
234
|
+
}
|
|
235
|
+
return __listAvailabilityTimeSlotEndOptions;
|
|
236
|
+
}
|
|
205
237
|
function getAvailabilityTimeSlot(payload) {
|
|
206
238
|
function __getAvailabilityTimeSlot({ host }) {
|
|
207
239
|
const metadata = {
|
|
@@ -290,6 +322,47 @@ async function listAvailabilityTimeSlots2(options) {
|
|
|
290
322
|
throw transformedError;
|
|
291
323
|
}
|
|
292
324
|
}
|
|
325
|
+
async function listAvailabilityTimeSlotEndOptions2(serviceId, options) {
|
|
326
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
327
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
328
|
+
serviceId,
|
|
329
|
+
localStartDate: options?.localStartDate,
|
|
330
|
+
maxLocalEndDate: options?.maxLocalEndDate,
|
|
331
|
+
timeZone: options?.timeZone,
|
|
332
|
+
location: options?.location,
|
|
333
|
+
customerChoices: options?.customerChoices,
|
|
334
|
+
resourceTypes: options?.resourceTypes
|
|
335
|
+
});
|
|
336
|
+
const reqOpts = listAvailabilityTimeSlotEndOptions(
|
|
337
|
+
payload
|
|
338
|
+
);
|
|
339
|
+
sideEffects?.onSiteCall?.();
|
|
340
|
+
try {
|
|
341
|
+
const result = await httpClient.request(reqOpts);
|
|
342
|
+
sideEffects?.onSuccess?.(result);
|
|
343
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
344
|
+
} catch (err) {
|
|
345
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
346
|
+
err,
|
|
347
|
+
{
|
|
348
|
+
spreadPathsToArguments: {},
|
|
349
|
+
explicitPathsToArguments: {
|
|
350
|
+
serviceId: "$[0]",
|
|
351
|
+
localStartDate: "$[1].localStartDate",
|
|
352
|
+
maxLocalEndDate: "$[1].maxLocalEndDate",
|
|
353
|
+
timeZone: "$[1].timeZone",
|
|
354
|
+
location: "$[1].location",
|
|
355
|
+
customerChoices: "$[1].customerChoices",
|
|
356
|
+
resourceTypes: "$[1].resourceTypes"
|
|
357
|
+
},
|
|
358
|
+
singleArgumentUnchanged: false
|
|
359
|
+
},
|
|
360
|
+
["serviceId", "options"]
|
|
361
|
+
);
|
|
362
|
+
sideEffects?.onError?.(err);
|
|
363
|
+
throw transformedError;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
293
366
|
async function getAvailabilityTimeSlot2(serviceId, localStartDate, localEndDate, timeZone, location, options) {
|
|
294
367
|
const { httpClient, sideEffects } = arguments[6];
|
|
295
368
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -347,6 +420,14 @@ function listAvailabilityTimeSlots3(httpClient) {
|
|
|
347
420
|
{ httpClient }
|
|
348
421
|
);
|
|
349
422
|
}
|
|
423
|
+
function listAvailabilityTimeSlotEndOptions3(httpClient) {
|
|
424
|
+
return (serviceId, options) => listAvailabilityTimeSlotEndOptions2(
|
|
425
|
+
serviceId,
|
|
426
|
+
options,
|
|
427
|
+
// @ts-ignore
|
|
428
|
+
{ httpClient }
|
|
429
|
+
);
|
|
430
|
+
}
|
|
350
431
|
function getAvailabilityTimeSlot3(httpClient) {
|
|
351
432
|
return (serviceId, localStartDate, localEndDate, timeZone, location, options) => getAvailabilityTimeSlot2(
|
|
352
433
|
serviceId,
|
|
@@ -363,11 +444,13 @@ function getAvailabilityTimeSlot3(httpClient) {
|
|
|
363
444
|
// src/bookings-availability-v2-time-slot-availability-time-slots.context.ts
|
|
364
445
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
365
446
|
var listAvailabilityTimeSlots4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(listAvailabilityTimeSlots3);
|
|
447
|
+
var listAvailabilityTimeSlotEndOptions4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(listAvailabilityTimeSlotEndOptions3);
|
|
366
448
|
var getAvailabilityTimeSlot4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(getAvailabilityTimeSlot3);
|
|
367
449
|
// Annotate the CommonJS export names for ESM import in node:
|
|
368
450
|
0 && (module.exports = {
|
|
369
451
|
LocationType,
|
|
370
452
|
getAvailabilityTimeSlot,
|
|
453
|
+
listAvailabilityTimeSlotEndOptions,
|
|
371
454
|
listAvailabilityTimeSlots
|
|
372
455
|
});
|
|
373
456
|
//# sourceMappingURL=index.js.map
|