@wix/auto_sdk_bookings_services 1.0.75 → 1.0.76
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/{bookings-services-v2-service-services.universal-CEp6lBCA.d.ts → bookings-services-v2-service-services.universal-B0U0yEd2.d.ts} +1 -62
- package/build/cjs/index.d.ts +3 -12
- package/build/cjs/index.js +8 -60
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +8 -51
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -37
- package/build/cjs/meta.js +8 -38
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-CEp6lBCA.d.mts → bookings-services-v2-service-services.universal-B0U0yEd2.d.mts} +1 -62
- package/build/es/index.d.mts +3 -12
- package/build/es/index.mjs +8 -59
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +8 -50
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -37
- package/build/es/meta.mjs +8 -37
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-CEp6lBCA.d.ts → bookings-services-v2-service-services.universal-B0U0yEd2.d.ts} +1 -62
- package/build/internal/cjs/index.d.ts +3 -12
- package/build/internal/cjs/index.js +8 -60
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +8 -51
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -37
- package/build/internal/cjs/meta.js +8 -38
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-CEp6lBCA.d.mts → bookings-services-v2-service-services.universal-B0U0yEd2.d.mts} +1 -62
- package/build/internal/es/index.d.mts +3 -12
- package/build/internal/es/index.mjs +8 -59
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +8 -50
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -37
- package/build/internal/es/meta.mjs +8 -37
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bF as CreateAddOnGroupRequest$1, a as CreateAddOnGroupResponse$1, bG as DeleteAddOnGroupRequest$1, bH as DeleteAddOnGroupResponse$1, bI as UpdateAddOnGroupRequest$1, c as UpdateAddOnGroupResponse$1, bJ as ListAddOnGroupsByServiceIdRequest$1, e as ListAddOnGroupsByServiceIdResponse$1, bN as SetAddOnsForGroupRequest$1, f as SetAddOnsForGroupResponse$1, bO as CreateServiceRequest$1, bP as CreateServiceResponse$1, bT as BulkCreateServicesRequest$1, j as BulkCreateServicesResponse$1, bY as GetServiceRequest$1, bZ as GetServiceResponse$1, c2 as UpdateServiceRequest$1, c3 as UpdateServiceResponse$1, c4 as BulkUpdateServicesRequest$1, n as BulkUpdateServicesResponse$1, c6 as BulkUpdateServicesByFilterRequest$1, p as BulkUpdateServicesByFilterResponse$1, c7 as DeleteServiceRequest$1, c9 as DeleteServiceResponse$1, ca as BulkDeleteServicesRequest$1, s as BulkDeleteServicesResponse$1, cb as BulkDeleteServicesByFilterRequest$1, u as BulkDeleteServicesByFilterResponse$1, cc as QueryServicesRequest$1, ci as QueryServicesResponse$1, cl as SearchServicesRequest$1, x as SearchServicesResponse$1, cZ as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, d0 as QueryBookingFormsRequest$1, E as QueryBookingFormsResponse$1, d4 as CountServicesRequest$1, H as CountServicesResponse$1, d5 as QueryLocationsRequest$1, J as QueryLocationsResponse$1, da as QueryCategoriesRequest$1, M as QueryCategoriesResponse$1, de as SetServiceLocationsRequest$1, P as SetServiceLocationsResponse$1, di as EnablePricingPlansForServiceRequest$1, R as EnablePricingPlansForServiceResponse$1, dk as DisablePricingPlansForServiceRequest$1, W as DisablePricingPlansForServiceResponse$1, dl as SetCustomSlugRequest$1, Z as SetCustomSlugResponse$1, dm as ValidateSlugRequest$1, a1 as ValidateSlugResponse$1, dn as CloneServiceRequest$1, a2 as CloneServiceResponse$1 } from './bookings-services-v2-service-services.universal-B0U0yEd2.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
@@ -1250,40 +1250,6 @@ interface SetAddOnsForGroupResponse {
|
|
|
1250
1250
|
/** The updated AddOnGroup. */
|
|
1251
1251
|
addOnGroup?: AddOnGroup;
|
|
1252
1252
|
}
|
|
1253
|
-
interface ValidateAddOnsSelectionRequest {
|
|
1254
|
-
/**
|
|
1255
|
-
* The service ID to validate AddOns against.
|
|
1256
|
-
* @format GUID
|
|
1257
|
-
*/
|
|
1258
|
-
serviceId: string | null;
|
|
1259
|
-
/**
|
|
1260
|
-
* The group ID to validate AddOns against.
|
|
1261
|
-
* @format GUID
|
|
1262
|
-
*/
|
|
1263
|
-
groupId: string | null;
|
|
1264
|
-
/**
|
|
1265
|
-
* The IDs of AddOns to validate.
|
|
1266
|
-
* @format GUID
|
|
1267
|
-
* @minSize 1
|
|
1268
|
-
* @maxSize 7
|
|
1269
|
-
*/
|
|
1270
|
-
addOnIds: string[] | null;
|
|
1271
|
-
}
|
|
1272
|
-
interface ValidateAddOnsSelectionResponse {
|
|
1273
|
-
/** The validation result. */
|
|
1274
|
-
result?: ValidationResult;
|
|
1275
|
-
}
|
|
1276
|
-
interface ValidationResult {
|
|
1277
|
-
/** Whether the AddOns selection is valid. */
|
|
1278
|
-
valid?: boolean | null;
|
|
1279
|
-
/**
|
|
1280
|
-
* A validation error message.
|
|
1281
|
-
* This field should populated when `valid` is `false`.
|
|
1282
|
-
* @minLength 1
|
|
1283
|
-
* @maxLength 300
|
|
1284
|
-
*/
|
|
1285
|
-
message?: string | null;
|
|
1286
|
-
}
|
|
1287
1253
|
interface CreateServiceRequest {
|
|
1288
1254
|
/** Service to create. */
|
|
1289
1255
|
service: Service;
|
|
@@ -2578,7 +2544,6 @@ declare function deleteAddOnGroup(): __PublicMethodMetaInfo<'POST', {}, DeleteAd
|
|
|
2578
2544
|
declare function updateAddOnGroup(): __PublicMethodMetaInfo<'POST', {}, UpdateAddOnGroupRequest$1, UpdateAddOnGroupRequest, UpdateAddOnGroupResponse$1, UpdateAddOnGroupResponse>;
|
|
2579
2545
|
declare function listAddOnGroupsByServiceId(): __PublicMethodMetaInfo<'POST', {}, ListAddOnGroupsByServiceIdRequest$1, ListAddOnGroupsByServiceIdRequest, ListAddOnGroupsByServiceIdResponse$1, ListAddOnGroupsByServiceIdResponse>;
|
|
2580
2546
|
declare function setAddOnsForGroup(): __PublicMethodMetaInfo<'POST', {}, SetAddOnsForGroupRequest$1, SetAddOnsForGroupRequest, SetAddOnsForGroupResponse$1, SetAddOnsForGroupResponse>;
|
|
2581
|
-
declare function validateAddOnsSelection(): __PublicMethodMetaInfo<'POST', {}, ValidateAddOnsSelectionRequest$1, ValidateAddOnsSelectionRequest, ValidateAddOnsSelectionResponse$1, ValidateAddOnsSelectionResponse>;
|
|
2582
2547
|
declare function createService(): __PublicMethodMetaInfo<'POST', {}, CreateServiceRequest$1, CreateServiceRequest, CreateServiceResponse$1, CreateServiceResponse>;
|
|
2583
2548
|
declare function bulkCreateServices(): __PublicMethodMetaInfo<'POST', {}, BulkCreateServicesRequest$1, BulkCreateServicesRequest, BulkCreateServicesResponse$1, BulkCreateServicesResponse>;
|
|
2584
2549
|
declare function getService(): __PublicMethodMetaInfo<'GET', {
|
|
@@ -2616,4 +2581,4 @@ declare function setCustomSlug(): __PublicMethodMetaInfo<'POST', {
|
|
|
2616
2581
|
declare function validateSlug(): __PublicMethodMetaInfo<'POST', {}, ValidateSlugRequest$1, ValidateSlugRequest, ValidateSlugResponse$1, ValidateSlugResponse>;
|
|
2617
2582
|
declare function cloneService(): __PublicMethodMetaInfo<'POST', {}, CloneServiceRequest$1, CloneServiceRequest, CloneServiceResponse$1, CloneServiceResponse>;
|
|
2618
2583
|
|
|
2619
|
-
export { type __PublicMethodMetaInfo, bulkCreateServices, bulkDeleteServices, bulkDeleteServicesByFilter, bulkUpdateServices, bulkUpdateServicesByFilter, cloneService, countServices, createAddOnGroup, createService, deleteAddOnGroup, deleteService, disablePricingPlansForService, enablePricingPlansForService, getService, listAddOnGroupsByServiceId, queryBookingForms, queryCategories, queryLocations, queryPolicies, queryServices, searchServices, setAddOnsForGroup, setCustomSlug, setServiceLocations, updateAddOnGroup, updateService,
|
|
2584
|
+
export { type __PublicMethodMetaInfo, bulkCreateServices, bulkDeleteServices, bulkDeleteServicesByFilter, bulkUpdateServices, bulkUpdateServicesByFilter, cloneService, countServices, createAddOnGroup, createService, deleteAddOnGroup, deleteService, disablePricingPlansForService, enablePricingPlansForService, getService, listAddOnGroupsByServiceId, queryBookingForms, queryCategories, queryLocations, queryPolicies, queryServices, searchServices, setAddOnsForGroup, setCustomSlug, setServiceLocations, updateAddOnGroup, updateService, validateSlug };
|
|
@@ -31,6 +31,10 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
31
31
|
{
|
|
32
32
|
srcPath: "/bookings/v2/bulk/services",
|
|
33
33
|
destPath: "/v2/bulk/services"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/bookings/services/v2/bulk/services",
|
|
37
|
+
destPath: "/v2/bulk/services"
|
|
34
38
|
}
|
|
35
39
|
],
|
|
36
40
|
"manage._base_domain_": [
|
|
@@ -142,6 +146,10 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
|
142
146
|
{
|
|
143
147
|
srcPath: "/bookings/v2/bulk/services",
|
|
144
148
|
destPath: "/v2/bulk/services"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
srcPath: "/bookings/services/v2/bulk/services",
|
|
152
|
+
destPath: "/v2/bulk/services"
|
|
145
153
|
}
|
|
146
154
|
],
|
|
147
155
|
"manage._base_domain_": [
|
|
@@ -326,24 +334,6 @@ function setAddOnsForGroup(payload) {
|
|
|
326
334
|
}
|
|
327
335
|
return __setAddOnsForGroup;
|
|
328
336
|
}
|
|
329
|
-
function validateAddOnsSelection(payload) {
|
|
330
|
-
function __validateAddOnsSelection({ host }) {
|
|
331
|
-
const metadata = {
|
|
332
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
333
|
-
method: "POST",
|
|
334
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection",
|
|
335
|
-
packageName: PACKAGE_NAME,
|
|
336
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
337
|
-
protoPath: "/v2/services/add-on-groups/validate-add-ons-selection",
|
|
338
|
-
data: payload,
|
|
339
|
-
host
|
|
340
|
-
}),
|
|
341
|
-
data: payload
|
|
342
|
-
};
|
|
343
|
-
return metadata;
|
|
344
|
-
}
|
|
345
|
-
return __validateAddOnsSelection;
|
|
346
|
-
}
|
|
347
337
|
function createService(payload) {
|
|
348
338
|
function __createService({ host }) {
|
|
349
339
|
const serializedData = transformPaths(payload, [
|
|
@@ -1719,24 +1709,6 @@ function setAddOnsForGroup2() {
|
|
|
1719
1709
|
__originalResponseType: null
|
|
1720
1710
|
};
|
|
1721
1711
|
}
|
|
1722
|
-
function validateAddOnsSelection2() {
|
|
1723
|
-
const payload = {};
|
|
1724
|
-
const getRequestOptions = validateAddOnsSelection(payload);
|
|
1725
|
-
const getUrl = (context) => {
|
|
1726
|
-
const { url } = getRequestOptions(context);
|
|
1727
|
-
return url;
|
|
1728
|
-
};
|
|
1729
|
-
return {
|
|
1730
|
-
getUrl,
|
|
1731
|
-
httpMethod: "POST",
|
|
1732
|
-
path: "/v2/services/add-on-groups/validate-add-ons-selection",
|
|
1733
|
-
pathParams: {},
|
|
1734
|
-
__requestType: null,
|
|
1735
|
-
__originalRequestType: null,
|
|
1736
|
-
__responseType: null,
|
|
1737
|
-
__originalResponseType: null
|
|
1738
|
-
};
|
|
1739
|
-
}
|
|
1740
1712
|
function createService2() {
|
|
1741
1713
|
const payload = {};
|
|
1742
1714
|
const getRequestOptions = createService(payload);
|
|
@@ -2164,7 +2136,6 @@ export {
|
|
|
2164
2136
|
setServiceLocations2 as setServiceLocations,
|
|
2165
2137
|
updateAddOnGroup2 as updateAddOnGroup,
|
|
2166
2138
|
updateService2 as updateService,
|
|
2167
|
-
validateAddOnsSelection2 as validateAddOnsSelection,
|
|
2168
2139
|
validateSlug2 as validateSlug
|
|
2169
2140
|
};
|
|
2170
2141
|
//# sourceMappingURL=meta.mjs.map
|