@wix/auto_sdk_bookings_availability-time-slots 1.0.243 → 1.0.245
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 +81 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +148 -3
- package/build/cjs/index.typings.js +72 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +107 -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 +80 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +148 -3
- package/build/es/index.typings.mjs +71 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +107 -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 +81 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +184 -3
- package/build/internal/cjs/index.typings.js +72 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +107 -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 +80 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +184 -3
- package/build/internal/es/index.typings.mjs +71 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +107 -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,45 @@ 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
|
+
resourceTypes: options?.resourceTypes
|
|
334
|
+
});
|
|
335
|
+
const reqOpts = listAvailabilityTimeSlotEndOptions(
|
|
336
|
+
payload
|
|
337
|
+
);
|
|
338
|
+
sideEffects?.onSiteCall?.();
|
|
339
|
+
try {
|
|
340
|
+
const result = await httpClient.request(reqOpts);
|
|
341
|
+
sideEffects?.onSuccess?.(result);
|
|
342
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
343
|
+
} catch (err) {
|
|
344
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
345
|
+
err,
|
|
346
|
+
{
|
|
347
|
+
spreadPathsToArguments: {},
|
|
348
|
+
explicitPathsToArguments: {
|
|
349
|
+
serviceId: "$[0]",
|
|
350
|
+
localStartDate: "$[1].localStartDate",
|
|
351
|
+
maxLocalEndDate: "$[1].maxLocalEndDate",
|
|
352
|
+
timeZone: "$[1].timeZone",
|
|
353
|
+
location: "$[1].location",
|
|
354
|
+
resourceTypes: "$[1].resourceTypes"
|
|
355
|
+
},
|
|
356
|
+
singleArgumentUnchanged: false
|
|
357
|
+
},
|
|
358
|
+
["serviceId", "options"]
|
|
359
|
+
);
|
|
360
|
+
sideEffects?.onError?.(err);
|
|
361
|
+
throw transformedError;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
293
364
|
async function getAvailabilityTimeSlot2(serviceId, localStartDate, localEndDate, timeZone, location, options) {
|
|
294
365
|
const { httpClient, sideEffects } = arguments[6];
|
|
295
366
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -347,6 +418,14 @@ function listAvailabilityTimeSlots3(httpClient) {
|
|
|
347
418
|
{ httpClient }
|
|
348
419
|
);
|
|
349
420
|
}
|
|
421
|
+
function listAvailabilityTimeSlotEndOptions3(httpClient) {
|
|
422
|
+
return (serviceId, options) => listAvailabilityTimeSlotEndOptions2(
|
|
423
|
+
serviceId,
|
|
424
|
+
options,
|
|
425
|
+
// @ts-ignore
|
|
426
|
+
{ httpClient }
|
|
427
|
+
);
|
|
428
|
+
}
|
|
350
429
|
function getAvailabilityTimeSlot3(httpClient) {
|
|
351
430
|
return (serviceId, localStartDate, localEndDate, timeZone, location, options) => getAvailabilityTimeSlot2(
|
|
352
431
|
serviceId,
|
|
@@ -363,11 +442,13 @@ function getAvailabilityTimeSlot3(httpClient) {
|
|
|
363
442
|
// src/bookings-availability-v2-time-slot-availability-time-slots.context.ts
|
|
364
443
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
365
444
|
var listAvailabilityTimeSlots4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(listAvailabilityTimeSlots3);
|
|
445
|
+
var listAvailabilityTimeSlotEndOptions4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(listAvailabilityTimeSlotEndOptions3);
|
|
366
446
|
var getAvailabilityTimeSlot4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(getAvailabilityTimeSlot3);
|
|
367
447
|
// Annotate the CommonJS export names for ESM import in node:
|
|
368
448
|
0 && (module.exports = {
|
|
369
449
|
LocationType,
|
|
370
450
|
getAvailabilityTimeSlot,
|
|
451
|
+
listAvailabilityTimeSlotEndOptions,
|
|
371
452
|
listAvailabilityTimeSlots
|
|
372
453
|
});
|
|
373
454
|
//# sourceMappingURL=index.js.map
|