@wix/auto_sdk_bookings_services 1.0.72 → 1.0.73
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-DYRSxPXw.d.ts → bookings-services-v2-service-services.universal-B_To7DFS.d.ts} +176 -13
- package/build/cjs/index.d.ts +70 -3
- package/build/cjs/index.js +469 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +415 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +203 -2
- package/build/cjs/meta.js +345 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-DYRSxPXw.d.mts → bookings-services-v2-service-services.universal-B_To7DFS.d.mts} +176 -13
- package/build/es/index.d.mts +70 -3
- package/build/es/index.mjs +463 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +409 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +203 -2
- package/build/es/meta.mjs +339 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-DYRSxPXw.d.ts → bookings-services-v2-service-services.universal-B_To7DFS.d.ts} +176 -13
- package/build/internal/cjs/index.d.ts +70 -3
- package/build/internal/cjs/index.js +469 -0
- 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 +415 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +203 -2
- package/build/internal/cjs/meta.js +345 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-DYRSxPXw.d.mts → bookings-services-v2-service-services.universal-B_To7DFS.d.mts} +176 -13
- package/build/internal/es/index.d.mts +70 -3
- package/build/internal/es/index.mjs +463 -0
- 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 +409 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +203 -2
- package/build/internal/es/meta.mjs +339 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { cq as CursorSearch, y as SearchServicesResponse } from './bookings-services-v2-service-services.universal-B_To7DFS.js';
|
|
2
|
+
export { an as Action, bD as ActionEvent, eh as ActionWithLiterals, bM as AddOn, bN as AddOnAddOnInfoOneOf, bp as AddOnDetails, A as AddOnGroup, bO as AddOnGroupDetail, dL as Address, dM as AddressHint, aR as AddressLocation, cs as Aggregation, cI as AggregationData, ct as AggregationKindOneOf, c$ as AggregationResults, d0 as AggregationResultsResultOneOf, cP as AggregationResultsScalarResult, ak as AggregationType, ee as AggregationTypeWithLiterals, b_ as ApplicationError, b7 as AvailabilityConstraints, d_ as BaseEventMetadata, dB as Behavior, dC as BehaviorBehaviorOneOf, dx as Benefit, dw as BenefitNotification, as as BenefitType, em as BenefitTypeWithLiterals, aY as BookAfterStartPolicy, d5 as BookingForm, aU as BookingPolicy, d3 as BookingPolicyWithServices, b$ as BulkActionMetadata, B as BulkCreateServicesOptions, bX as BulkCreateServicesRequest, k as BulkCreateServicesResponse, u as BulkDeleteServicesByFilterOptions, cf as BulkDeleteServicesByFilterRequest, v as BulkDeleteServicesByFilterResponse, s as BulkDeleteServicesOptions, ce as BulkDeleteServicesRequest, t as BulkDeleteServicesResponse, bY as BulkServiceResult, p as BulkUpdateServicesByFilterOptions, ca as BulkUpdateServicesByFilterRequest, q as BulkUpdateServicesByFilterResponse, n as BulkUpdateServicesOptions, c8 as BulkUpdateServicesRequest, o as BulkUpdateServicesResponse, aS as BusinessLocationOptions, db as BusinessLocations, dO as BusinessSchedule, b2 as CancellationFeePolicy, aZ as CancellationPolicy, b3 as CancellationWindow, b4 as CancellationWindowFeeOneOf, dJ as Categories, du as Category, dt as CategoryNotification, ar as CategoryNotificationEvent, el as CategoryNotificationEventWithLiterals, dV as ChangeContext, dW as ChangeContextPayloadOneOf, ap as CloneErrors, ej as CloneErrorsWithLiterals, ds as CloneServiceRequest, a4 as CloneServiceResponse, aO as CommonAddress, aP as CommonAddressStreetOneOf, eL as CommonSearchWithEntityContext, aM as Conferencing, d7 as ConnectedService, dT as ConsentPolicy, H as CountServicesOptions, d8 as CountServicesRequest, I as CountServicesResponse, C as CreateAddOnGroupOptions, bH as CreateAddOnGroupRequest, a as CreateAddOnGroupResponse, bS as CreateServiceRequest, bT as CreateServiceResponse, j as CreateServiceValidationErrors, au as CrudType, eo as CrudTypeWithLiterals, cl as CursorPaging, cH as CursorPagingMetadata, z as CursorQuery, d2 as CursorQueryPagingMethodOneOf, cr as CursorSearchPagingMethodOneOf, co as Cursors, aT as CustomLocationOptions, dc as CustomLocations, aI as CustomPayment, dd as CustomerLocations, cA as DateHistogramAggregation, cX as DateHistogramResult, cZ as DateHistogramResults, aw as DayOfWeek, eq as DayOfWeekWithLiterals, bt as Delete, b as DeleteAddOnGroupApplicationErrors, D as DeleteAddOnGroupOptions, bI as DeleteAddOnGroupRequest, bJ as DeleteAddOnGroupResponse, r as DeleteServiceOptions, cb as DeleteServiceRequest, cd as DeleteServiceResponse, Z as DisablePricingPlansForServiceApplicationErrors, X as DisablePricingPlansForServiceOptions, dp as DisablePricingPlansForServiceRequest, Y as DisablePricingPlansForServiceResponse, dz as Discount, dA as DiscountDiscountOneOf, bx as DomainEvent, by as DomainEventBodyOneOf, b8 as Duration, dv as Empty, W as EnablePricingPlansForServiceApplicationErrors, dm as EnablePricingPlansForServiceRequest, T as EnablePricingPlansForServiceResponse, bz as EntityCreatedEvent, bC as EntityDeletedEvent, bB as EntityUpdatedEvent, dy as EntryPass, at as Event, d$ as EventMetadata, en as EventWithLiterals, bk as ExtendedFields, bW as FieldViolation, aG as FixedPayment, aC as Form, d6 as FormDetails, aD as FormSettings, dN as GeoCoordinates, c2 as GetServiceAvailabilityConstraintsRequest, c3 as GetServiceAvailabilityConstraintsResponse, c0 as GetServiceRequest, c1 as GetServiceResponse, cE as GroupByAggregation, cF as GroupByAggregationKindOneOf, cY as GroupByValueResults, dE as HtmlSitePublished, bF as IdentificationData, bG as IdentificationDataIdOneOf, cv as IncludeMissingValuesOptions, aj as Interval, ed as IntervalWithLiterals, dn as InvalidPricingPlan, ao as InvalidSlugError, ei as InvalidSlugErrorWithLiterals, bZ as ItemMetadata, bm as Keyword, aW as LimitEarlyBookingPolicy, aX as LimitLateBookingPolicy, L as ListAddOnGroupsByServiceIdOptions, bL as ListAddOnGroupsByServiceIdRequest, e as ListAddOnGroupsByServiceIdResponse, dK as Locale, O as Location, aN as LocationOptionsOneOf, aa as LocationType, e4 as LocationTypeWithLiterals, c9 as MaskedService, ay as Media, az as MediaItem, aA as MediaItemItemOneOf, bE as MessageEnvelope, ag as MissingValues, ea as MissingValuesWithLiterals, al as Mode, ef as ModeWithLiterals, aH as Money, dl as MoveToNewLocationsOptions, dR as Multilingual, cD as NestedAggregation, cB as NestedAggregationItem, cC as NestedAggregationItemKindOneOf, cL as NestedAggregationResults, cM as NestedAggregationResultsResultOneOf, ai as NestedAggregationType, ec as NestedAggregationTypeWithLiterals, cU as NestedResultValue, cV as NestedResultValueResultOneOf, c_ as NestedResults, cQ as NestedValueAggregationResult, aL as OnlineBooking, dF as Page, ck as Paging, cn as PagingMetadataV2, cc as ParticipantNotification, b0 as ParticipantsPolicy, aE as Payment, aK as PaymentOptions, aF as PaymentRateOneOf, av as PlacementType, ep as PlacementTypeWithLiterals, aV as PolicyDescription, dI as Properties, dX as PropertiesChange, G as QueryBookingFormsApplicationErrors, E as QueryBookingFormsOptions, d4 as QueryBookingFormsRequest, F as QueryBookingFormsResponse, df as QueryCategoriesFilter, M as QueryCategoriesOptions, de as QueryCategoriesRequest, N as QueryCategoriesResponse, da as QueryLocationsFilter, J as QueryLocationsOptions, d9 as QueryLocationsRequest, K as QueryLocationsResponse, d1 as QueryPoliciesRequest, Q as QueryPoliciesResponse, dg as QueryServicesMultiLanguageRequest, dh as QueryServicesMultiLanguageResponse, cg as QueryServicesRequest, cm as QueryServicesResponse, ch as QueryV2, ci as QueryV2PagingMethodOneOf, cy as RangeAggregation, cK as RangeAggregationResult, cu as RangeBucket, cS as RangeResult, cO as RangeResults, a9 as RateType, e3 as RateTypeWithLiterals, bq as ReindexMessage, br as ReindexMessageActionOneOf, dj as RemovedLocationSessionsAction, dk as RemovedLocationSessionsActionActionOptionsOneOf, am as RequestedFields, eg as RequestedFieldsWithLiterals, a_ as ReschedulePolicy, ax as ResolutionMethod, er as ResolutionMethodWithLiterals, bd as ResourceGroup, be as ResourceIds, bh as ResourceType, b1 as ResourcesPolicy, bA as RestoreInfo, cW as Results, b5 as SaveCreditCardPolicy, cz as ScalarAggregation, cT as ScalarResult, ah as ScalarType, eb as ScalarTypeWithLiterals, b6 as Schedule, bu as Schema, cG as SearchDetails, cp as SearchServicesRequest, bl as SeoSchema, i as Service, c4 as ServiceAvailabilityConstraints, a5 as ServiceCreatedEnvelope, a6 as ServiceDeletedEnvelope, bf as ServiceResource, bg as ServiceResourceSelectionOneOf, e1 as ServiceSearchSpec, a8 as ServiceType, e2 as ServiceTypeWithLiterals, a7 as ServiceUpdatedEnvelope, w as ServicesQueryBuilder, e0 as ServicesQueryResult, bw as ServicesUrlsChanged, g as SetAddOnsForGroupApplicationErrors, S as SetAddOnsForGroupOptions, bP as SetAddOnsForGroupRequest, f as SetAddOnsForGroupResponse, a0 as SetCustomSlugApplicationErrors, bv as SetCustomSlugEvent, _ as SetCustomSlugOptions, dq as SetCustomSlugRequest, $ as SetCustomSlugResponse, a1 as SetCustomSlugValidationErrors, P as SetServiceLocationsOptions, di as SetServiceLocationsRequest, R as SetServiceLocationsResponse, bo as Settings, dZ as SiteCloned, dY as SiteCreated, dH as SitePropertiesEvent, dG as SitePropertiesNotification, bi as Slug, af as SortDirection, e9 as SortDirectionWithLiterals, ad as SortOrder, e7 as SortOrderWithLiterals, ae as SortType, e8 as SortTypeWithLiterals, cj as Sorting, dQ as SpecialHourPeriod, c5 as SplitInterval, ba as StaffMediaItem, bb as StaffMediaItemItemOneOf, b9 as StaffMember, bc as StaffMemberDetails, aq as Status, ek as StatusWithLiterals, aQ as StreetAddress, dS as SupportedLanguage, bn as Tag, dP as TimePeriod, dU as Translation, bj as URLs, d as UpdateAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, bK as UpdateAddOnGroupRequest, c as UpdateAddOnGroupResponse, l as UpdateService, c6 as UpdateServiceRequest, c7 as UpdateServiceResponse, m as UpdateServiceValidationErrors, bs as Upsert, dD as UserDomainInfoChangedEvent, aB as V2Category, ac as V2RequestedFields, e6 as V2RequestedFieldsWithLiterals, V as ValidateAddOnsSelectionOptions, bQ as ValidateAddOnsSelectionRequest, h as ValidateAddOnsSelectionResponse, bU as ValidateServiceRequest, bV as ValidateServiceResponse, a2 as ValidateSlugOptions, dr as ValidateSlugRequest, a3 as ValidateSlugResponse, bR as ValidationResult, cw as ValueAggregation, cx as ValueAggregationOptionsOneOf, cJ as ValueAggregationResult, cR as ValueResult, cN as ValueResults, aJ as VariedPayment, a$ as WaitlistPolicy, ab as WebhookIdentityType, e5 as WebhookIdentityTypeWithLiterals, eC as bulkCreateServices, eI as bulkDeleteServices, eJ as bulkDeleteServicesByFilter, eF as bulkUpdateServices, eG as bulkUpdateServicesByFilter, eW as cloneService, eO as countServices, ev as createAddOnGroup, eB as createService, ew as deleteAddOnGroup, eH as deleteService, eT as disablePricingPlansForService, eS as enablePricingPlansForService, eD as getService, ey as listAddOnGroupsByServiceId, es as onServiceCreated, et as onServiceDeleted, eu as onServiceUpdated, eN as queryBookingForms, eQ as queryCategories, eP as queryLocations, eM as queryPolicies, eK as queryServices, ez as setAddOnsForGroup, eU as setCustomSlug, eR as setServiceLocations, ex as updateAddOnGroup, eE as updateService, eA as validateAddOnsSelection, eV as validateSlug } from './bookings-services-v2-service-services.universal-B_To7DFS.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -53,20 +53,26 @@ __export(index_typings_exports, {
|
|
|
53
53
|
bulkUpdateServicesByFilter: () => bulkUpdateServicesByFilter2,
|
|
54
54
|
cloneService: () => cloneService2,
|
|
55
55
|
countServices: () => countServices2,
|
|
56
|
+
createAddOnGroup: () => createAddOnGroup2,
|
|
56
57
|
createService: () => createService2,
|
|
58
|
+
deleteAddOnGroup: () => deleteAddOnGroup2,
|
|
57
59
|
deleteService: () => deleteService2,
|
|
58
60
|
disablePricingPlansForService: () => disablePricingPlansForService2,
|
|
59
61
|
enablePricingPlansForService: () => enablePricingPlansForService2,
|
|
60
62
|
getService: () => getService2,
|
|
63
|
+
listAddOnGroupsByServiceId: () => listAddOnGroupsByServiceId2,
|
|
61
64
|
queryBookingForms: () => queryBookingForms2,
|
|
62
65
|
queryCategories: () => queryCategories2,
|
|
63
66
|
queryLocations: () => queryLocations2,
|
|
64
67
|
queryPolicies: () => queryPolicies2,
|
|
65
68
|
queryServices: () => queryServices2,
|
|
66
69
|
searchServices: () => searchServices2,
|
|
70
|
+
setAddOnsForGroup: () => setAddOnsForGroup2,
|
|
67
71
|
setCustomSlug: () => setCustomSlug2,
|
|
68
72
|
setServiceLocations: () => setServiceLocations2,
|
|
73
|
+
updateAddOnGroup: () => updateAddOnGroup2,
|
|
69
74
|
updateService: () => updateService2,
|
|
75
|
+
validateAddOnsSelection: () => validateAddOnsSelection2,
|
|
70
76
|
validateSlug: () => validateSlug2
|
|
71
77
|
});
|
|
72
78
|
module.exports = __toCommonJS(index_typings_exports);
|
|
@@ -196,7 +202,232 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
196
202
|
};
|
|
197
203
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
198
204
|
}
|
|
205
|
+
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
206
|
+
const domainToMappings = {
|
|
207
|
+
"*.dev.wix-code.com": [
|
|
208
|
+
{
|
|
209
|
+
srcPath: "/_api/services-2",
|
|
210
|
+
destPath: ""
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
srcPath: "/_api/bookings/v2/services",
|
|
214
|
+
destPath: "/v2/services"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"www.wixapis.com": [
|
|
218
|
+
{
|
|
219
|
+
srcPath: "/_api/bookings/v2/services",
|
|
220
|
+
destPath: "/v2/services"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
srcPath: "/bookings/v2/services",
|
|
224
|
+
destPath: "/v2/services"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
srcPath: "/bookings/v2/bulk/services",
|
|
228
|
+
destPath: "/v2/bulk/services"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"manage._base_domain_": [
|
|
232
|
+
{
|
|
233
|
+
srcPath: "/_api/bookings/v2/services",
|
|
234
|
+
destPath: "/v2/services"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
srcPath: "/_api/bookings/v2/bulk/services",
|
|
238
|
+
destPath: "/v2/bulk/services"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"editor._base_domain_": [
|
|
242
|
+
{
|
|
243
|
+
srcPath: "/_api/bookings/v2/services",
|
|
244
|
+
destPath: "/v2/services"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
srcPath: "/_api/bookings/v2/bulk/services",
|
|
248
|
+
destPath: "/v2/bulk/services"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"blocks._base_domain_": [
|
|
252
|
+
{
|
|
253
|
+
srcPath: "/_api/bookings/v2/services",
|
|
254
|
+
destPath: "/v2/services"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
srcPath: "/_api/bookings/v2/bulk/services",
|
|
258
|
+
destPath: "/v2/bulk/services"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"create.editorx": [
|
|
262
|
+
{
|
|
263
|
+
srcPath: "/_api/bookings/v2/services",
|
|
264
|
+
destPath: "/v2/services"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
srcPath: "/_api/bookings/v2/bulk/services",
|
|
268
|
+
destPath: "/v2/bulk/services"
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
_: [
|
|
272
|
+
{
|
|
273
|
+
srcPath: "/_api/bookings/v2/services",
|
|
274
|
+
destPath: "/v2/services"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"www._base_domain_": [
|
|
278
|
+
{
|
|
279
|
+
srcPath: "/_api/bookings/v2/services",
|
|
280
|
+
destPath: "/v2/services"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"bo._base_domain_": [
|
|
284
|
+
{
|
|
285
|
+
srcPath: "/_api/bookings/v2/services",
|
|
286
|
+
destPath: "/v2/services"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"wixbo.ai": [
|
|
290
|
+
{
|
|
291
|
+
srcPath: "/_api/bookings/v2/services",
|
|
292
|
+
destPath: "/v2/services"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"wix-bo.com": [
|
|
296
|
+
{
|
|
297
|
+
srcPath: "/_api/bookings/v2/services",
|
|
298
|
+
destPath: "/v2/services"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"editor.wixapps.net": [
|
|
302
|
+
{
|
|
303
|
+
srcPath: "/_api/bookings/v2/services",
|
|
304
|
+
destPath: "/v2/services"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"api._api_base_domain_": [
|
|
308
|
+
{
|
|
309
|
+
srcPath: "/services-2",
|
|
310
|
+
destPath: ""
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
};
|
|
314
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
315
|
+
}
|
|
199
316
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
|
|
317
|
+
function createAddOnGroup(payload) {
|
|
318
|
+
function __createAddOnGroup({ host }) {
|
|
319
|
+
const metadata = {
|
|
320
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
321
|
+
method: "POST",
|
|
322
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
323
|
+
packageName: PACKAGE_NAME,
|
|
324
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
325
|
+
protoPath: "/v2/services/add-on-groups/create",
|
|
326
|
+
data: payload,
|
|
327
|
+
host
|
|
328
|
+
}),
|
|
329
|
+
data: payload
|
|
330
|
+
};
|
|
331
|
+
return metadata;
|
|
332
|
+
}
|
|
333
|
+
return __createAddOnGroup;
|
|
334
|
+
}
|
|
335
|
+
function deleteAddOnGroup(payload) {
|
|
336
|
+
function __deleteAddOnGroup({ host }) {
|
|
337
|
+
const metadata = {
|
|
338
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
339
|
+
method: "POST",
|
|
340
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
341
|
+
packageName: PACKAGE_NAME,
|
|
342
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
343
|
+
protoPath: "/v2/services/add-on-groups/delete",
|
|
344
|
+
data: payload,
|
|
345
|
+
host
|
|
346
|
+
}),
|
|
347
|
+
data: payload
|
|
348
|
+
};
|
|
349
|
+
return metadata;
|
|
350
|
+
}
|
|
351
|
+
return __deleteAddOnGroup;
|
|
352
|
+
}
|
|
353
|
+
function updateAddOnGroup(payload) {
|
|
354
|
+
function __updateAddOnGroup({ host }) {
|
|
355
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
356
|
+
{
|
|
357
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
358
|
+
paths: [{ path: "mask" }]
|
|
359
|
+
}
|
|
360
|
+
]);
|
|
361
|
+
const metadata = {
|
|
362
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
363
|
+
method: "POST",
|
|
364
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
365
|
+
packageName: PACKAGE_NAME,
|
|
366
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
367
|
+
protoPath: "/v2/services/add-on-groups/update",
|
|
368
|
+
data: serializedData,
|
|
369
|
+
host
|
|
370
|
+
}),
|
|
371
|
+
data: serializedData
|
|
372
|
+
};
|
|
373
|
+
return metadata;
|
|
374
|
+
}
|
|
375
|
+
return __updateAddOnGroup;
|
|
376
|
+
}
|
|
377
|
+
function listAddOnGroupsByServiceId(payload) {
|
|
378
|
+
function __listAddOnGroupsByServiceId({ host }) {
|
|
379
|
+
const metadata = {
|
|
380
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
381
|
+
method: "POST",
|
|
382
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
383
|
+
packageName: PACKAGE_NAME,
|
|
384
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
385
|
+
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
386
|
+
data: payload,
|
|
387
|
+
host
|
|
388
|
+
}),
|
|
389
|
+
data: payload
|
|
390
|
+
};
|
|
391
|
+
return metadata;
|
|
392
|
+
}
|
|
393
|
+
return __listAddOnGroupsByServiceId;
|
|
394
|
+
}
|
|
395
|
+
function setAddOnsForGroup(payload) {
|
|
396
|
+
function __setAddOnsForGroup({ host }) {
|
|
397
|
+
const metadata = {
|
|
398
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
399
|
+
method: "POST",
|
|
400
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
401
|
+
packageName: PACKAGE_NAME,
|
|
402
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
403
|
+
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
404
|
+
data: payload,
|
|
405
|
+
host
|
|
406
|
+
}),
|
|
407
|
+
data: payload
|
|
408
|
+
};
|
|
409
|
+
return metadata;
|
|
410
|
+
}
|
|
411
|
+
return __setAddOnsForGroup;
|
|
412
|
+
}
|
|
413
|
+
function validateAddOnsSelection(payload) {
|
|
414
|
+
function __validateAddOnsSelection({ host }) {
|
|
415
|
+
const metadata = {
|
|
416
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
417
|
+
method: "POST",
|
|
418
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection",
|
|
419
|
+
packageName: PACKAGE_NAME,
|
|
420
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
421
|
+
protoPath: "/v2/services/add-on-groups/validate-add-ons-selection",
|
|
422
|
+
data: payload,
|
|
423
|
+
host
|
|
424
|
+
}),
|
|
425
|
+
data: payload
|
|
426
|
+
};
|
|
427
|
+
return metadata;
|
|
428
|
+
}
|
|
429
|
+
return __validateAddOnsSelection;
|
|
430
|
+
}
|
|
200
431
|
function createService(payload) {
|
|
201
432
|
function __createService({ host }) {
|
|
202
433
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1660,6 +1891,184 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
1660
1891
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
1661
1892
|
return ResolutionMethod2;
|
|
1662
1893
|
})(ResolutionMethod || {});
|
|
1894
|
+
async function createAddOnGroup2(addOnGroup, options) {
|
|
1895
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1896
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1897
|
+
addOnGroup,
|
|
1898
|
+
serviceId: options?.serviceId
|
|
1899
|
+
});
|
|
1900
|
+
const reqOpts = createAddOnGroup(payload);
|
|
1901
|
+
sideEffects?.onSiteCall?.();
|
|
1902
|
+
try {
|
|
1903
|
+
const result = await httpClient.request(reqOpts);
|
|
1904
|
+
sideEffects?.onSuccess?.(result);
|
|
1905
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1906
|
+
} catch (err) {
|
|
1907
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1908
|
+
err,
|
|
1909
|
+
{
|
|
1910
|
+
spreadPathsToArguments: {},
|
|
1911
|
+
explicitPathsToArguments: {
|
|
1912
|
+
addOnGroup: "$[0]",
|
|
1913
|
+
serviceId: "$[1].serviceId"
|
|
1914
|
+
},
|
|
1915
|
+
singleArgumentUnchanged: false
|
|
1916
|
+
},
|
|
1917
|
+
["addOnGroup", "options"]
|
|
1918
|
+
);
|
|
1919
|
+
sideEffects?.onError?.(err);
|
|
1920
|
+
throw transformedError;
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
1924
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1925
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1926
|
+
addOnGroupId,
|
|
1927
|
+
serviceId: options?.serviceId
|
|
1928
|
+
});
|
|
1929
|
+
const reqOpts = deleteAddOnGroup(payload);
|
|
1930
|
+
sideEffects?.onSiteCall?.();
|
|
1931
|
+
try {
|
|
1932
|
+
const result = await httpClient.request(reqOpts);
|
|
1933
|
+
sideEffects?.onSuccess?.(result);
|
|
1934
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1935
|
+
} catch (err) {
|
|
1936
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1937
|
+
err,
|
|
1938
|
+
{
|
|
1939
|
+
spreadPathsToArguments: {},
|
|
1940
|
+
explicitPathsToArguments: {
|
|
1941
|
+
addOnGroupId: "$[0]",
|
|
1942
|
+
serviceId: "$[1].serviceId"
|
|
1943
|
+
},
|
|
1944
|
+
singleArgumentUnchanged: false
|
|
1945
|
+
},
|
|
1946
|
+
["addOnGroupId", "options"]
|
|
1947
|
+
);
|
|
1948
|
+
sideEffects?.onError?.(err);
|
|
1949
|
+
throw transformedError;
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
async function updateAddOnGroup2(addOnGroup, options) {
|
|
1953
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1954
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1955
|
+
addOnGroup,
|
|
1956
|
+
serviceId: options?.serviceId
|
|
1957
|
+
});
|
|
1958
|
+
const reqOpts = updateAddOnGroup(payload);
|
|
1959
|
+
sideEffects?.onSiteCall?.();
|
|
1960
|
+
try {
|
|
1961
|
+
const result = await httpClient.request(reqOpts);
|
|
1962
|
+
sideEffects?.onSuccess?.(result);
|
|
1963
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1964
|
+
} catch (err) {
|
|
1965
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1966
|
+
err,
|
|
1967
|
+
{
|
|
1968
|
+
spreadPathsToArguments: {},
|
|
1969
|
+
explicitPathsToArguments: {
|
|
1970
|
+
addOnGroup: "$[0]",
|
|
1971
|
+
serviceId: "$[1].serviceId"
|
|
1972
|
+
},
|
|
1973
|
+
singleArgumentUnchanged: false
|
|
1974
|
+
},
|
|
1975
|
+
["addOnGroup", "options"]
|
|
1976
|
+
);
|
|
1977
|
+
sideEffects?.onError?.(err);
|
|
1978
|
+
throw transformedError;
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
1982
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1983
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1984
|
+
serviceId,
|
|
1985
|
+
groupIds: options?.groupIds
|
|
1986
|
+
});
|
|
1987
|
+
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
1988
|
+
sideEffects?.onSiteCall?.();
|
|
1989
|
+
try {
|
|
1990
|
+
const result = await httpClient.request(reqOpts);
|
|
1991
|
+
sideEffects?.onSuccess?.(result);
|
|
1992
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1993
|
+
} catch (err) {
|
|
1994
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1995
|
+
err,
|
|
1996
|
+
{
|
|
1997
|
+
spreadPathsToArguments: {},
|
|
1998
|
+
explicitPathsToArguments: {
|
|
1999
|
+
serviceId: "$[0]",
|
|
2000
|
+
groupIds: "$[1].groupIds"
|
|
2001
|
+
},
|
|
2002
|
+
singleArgumentUnchanged: false
|
|
2003
|
+
},
|
|
2004
|
+
["serviceId", "options"]
|
|
2005
|
+
);
|
|
2006
|
+
sideEffects?.onError?.(err);
|
|
2007
|
+
throw transformedError;
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
async function setAddOnsForGroup2(serviceId, options) {
|
|
2011
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2012
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2013
|
+
serviceId,
|
|
2014
|
+
groupId: options?.groupId,
|
|
2015
|
+
addOnIds: options?.addOnIds
|
|
2016
|
+
});
|
|
2017
|
+
const reqOpts = setAddOnsForGroup(payload);
|
|
2018
|
+
sideEffects?.onSiteCall?.();
|
|
2019
|
+
try {
|
|
2020
|
+
const result = await httpClient.request(reqOpts);
|
|
2021
|
+
sideEffects?.onSuccess?.(result);
|
|
2022
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2023
|
+
} catch (err) {
|
|
2024
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2025
|
+
err,
|
|
2026
|
+
{
|
|
2027
|
+
spreadPathsToArguments: {},
|
|
2028
|
+
explicitPathsToArguments: {
|
|
2029
|
+
serviceId: "$[0]",
|
|
2030
|
+
groupId: "$[1].groupId",
|
|
2031
|
+
addOnIds: "$[1].addOnIds"
|
|
2032
|
+
},
|
|
2033
|
+
singleArgumentUnchanged: false
|
|
2034
|
+
},
|
|
2035
|
+
["serviceId", "options"]
|
|
2036
|
+
);
|
|
2037
|
+
sideEffects?.onError?.(err);
|
|
2038
|
+
throw transformedError;
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
async function validateAddOnsSelection2(serviceId, options) {
|
|
2042
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2043
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2044
|
+
serviceId,
|
|
2045
|
+
groupId: options?.groupId,
|
|
2046
|
+
addOnIds: options?.addOnIds
|
|
2047
|
+
});
|
|
2048
|
+
const reqOpts = validateAddOnsSelection(payload);
|
|
2049
|
+
sideEffects?.onSiteCall?.();
|
|
2050
|
+
try {
|
|
2051
|
+
const result = await httpClient.request(reqOpts);
|
|
2052
|
+
sideEffects?.onSuccess?.(result);
|
|
2053
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2054
|
+
} catch (err) {
|
|
2055
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2056
|
+
err,
|
|
2057
|
+
{
|
|
2058
|
+
spreadPathsToArguments: {},
|
|
2059
|
+
explicitPathsToArguments: {
|
|
2060
|
+
serviceId: "$[0]",
|
|
2061
|
+
groupId: "$[1].groupId",
|
|
2062
|
+
addOnIds: "$[1].addOnIds"
|
|
2063
|
+
},
|
|
2064
|
+
singleArgumentUnchanged: false
|
|
2065
|
+
},
|
|
2066
|
+
["serviceId", "options"]
|
|
2067
|
+
);
|
|
2068
|
+
sideEffects?.onError?.(err);
|
|
2069
|
+
throw transformedError;
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
1663
2072
|
async function createService2(service) {
|
|
1664
2073
|
const { httpClient, sideEffects } = arguments[1];
|
|
1665
2074
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -2927,20 +3336,26 @@ async function cloneService2(sourceServiceId) {
|
|
|
2927
3336
|
bulkUpdateServicesByFilter,
|
|
2928
3337
|
cloneService,
|
|
2929
3338
|
countServices,
|
|
3339
|
+
createAddOnGroup,
|
|
2930
3340
|
createService,
|
|
3341
|
+
deleteAddOnGroup,
|
|
2931
3342
|
deleteService,
|
|
2932
3343
|
disablePricingPlansForService,
|
|
2933
3344
|
enablePricingPlansForService,
|
|
2934
3345
|
getService,
|
|
3346
|
+
listAddOnGroupsByServiceId,
|
|
2935
3347
|
queryBookingForms,
|
|
2936
3348
|
queryCategories,
|
|
2937
3349
|
queryLocations,
|
|
2938
3350
|
queryPolicies,
|
|
2939
3351
|
queryServices,
|
|
2940
3352
|
searchServices,
|
|
3353
|
+
setAddOnsForGroup,
|
|
2941
3354
|
setCustomSlug,
|
|
2942
3355
|
setServiceLocations,
|
|
3356
|
+
updateAddOnGroup,
|
|
2943
3357
|
updateService,
|
|
3358
|
+
validateAddOnsSelection,
|
|
2944
3359
|
validateSlug
|
|
2945
3360
|
});
|
|
2946
3361
|
//# sourceMappingURL=index.typings.js.map
|