@wix/auto_sdk_bookings_services 1.0.115 → 1.0.116
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-KorTqIDU.d.ts → bookings-services-v2-service-services.universal-DKi7EvxV.d.ts} +377 -377
- package/build/cjs/index.d.ts +60 -60
- package/build/cjs/index.js +316 -316
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +245 -245
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +138 -138
- package/build/cjs/meta.js +185 -185
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-KorTqIDU.d.mts → bookings-services-v2-service-services.universal-DKi7EvxV.d.mts} +377 -377
- package/build/es/index.d.mts +60 -60
- package/build/es/index.mjs +316 -316
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +245 -245
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +138 -138
- package/build/es/meta.mjs +185 -185
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-KorTqIDU.d.ts → bookings-services-v2-service-services.universal-DKi7EvxV.d.ts} +377 -377
- package/build/internal/cjs/index.d.ts +60 -60
- package/build/internal/cjs/index.js +316 -316
- 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 +245 -245
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +138 -138
- package/build/internal/cjs/meta.js +185 -185
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-KorTqIDU.d.mts → bookings-services-v2-service-services.universal-DKi7EvxV.d.mts} +377 -377
- package/build/internal/es/index.d.mts +60 -60
- package/build/internal/es/index.mjs +316 -316
- 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 +245 -245
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +138 -138
- package/build/internal/es/meta.mjs +185 -185
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { am as Action, bC as ActionEvent, ef as ActionWithLiterals,
|
|
1
|
+
import { ce as CursorSearch, m as SearchServicesResponse } from './bookings-services-v2-service-services.universal-DKi7EvxV.js';
|
|
2
|
+
export { am as Action, bC as ActionEvent, ef as ActionWithLiterals, dT as AddOn, dU as AddOnAddOnInfoOneOf, bo as AddOnDetails, O as AddOnGroup, dV as AddOnGroupDetail, a8 as AddOnPaymentOptions, e1 as AddOnPaymentOptionsWithLiterals, dz as Address, dA as AddressHint, aQ as AddressLocation, cg as Aggregation, cw as AggregationData, ch as AggregationKindOneOf, cP as AggregationResults, cQ as AggregationResultsResultOneOf, cD as AggregationResultsScalarResult, aj as AggregationType, ec as AggregationTypeWithLiterals, bO as ApplicationError, b6 as AvailabilityConstraints, dX as BaseEventMetadata, dp as Behavior, dq as BehaviorBehaviorOneOf, dk as Benefit, dj as BenefitNotification, ar as BenefitType, ek as BenefitTypeWithLiterals, aX as BookAfterStartPolicy, cV as BookingForm, aT as BookingPolicy, cT as BookingPolicyWithServices, bP as BulkActionMetadata, B as BulkCreateServicesOptions, bL as BulkCreateServicesRequest, a as BulkCreateServicesResponse, i as BulkDeleteServicesByFilterOptions, c3 as BulkDeleteServicesByFilterRequest, j as BulkDeleteServicesByFilterResponse, g as BulkDeleteServicesOptions, c2 as BulkDeleteServicesRequest, h as BulkDeleteServicesResponse, bM as BulkServiceResult, e as BulkUpdateServicesByFilterOptions, b_ as BulkUpdateServicesByFilterRequest, f as BulkUpdateServicesByFilterResponse, c as BulkUpdateServicesOptions, bY as BulkUpdateServicesRequest, d as BulkUpdateServicesResponse, aR as BusinessLocationOptions, c$ as BusinessLocations, dC as BusinessSchedule, b1 as CancellationFeePolicy, aY as CancellationPolicy, b2 as CancellationWindow, b3 as CancellationWindowFeeOneOf, dx as Categories, dh as Category, dg as CategoryNotification, aq as CategoryNotificationEvent, ej as CategoryNotificationEventWithLiterals, dJ as ChangeContext, dK as ChangeContextPayloadOneOf, ao as CloneErrors, eh as CloneErrorsWithLiterals, df as CloneServiceRequest, N as CloneServiceResponse, aN as CommonAddress, aO as CommonAddressStreetOneOf, eq as CommonSearchWithEntityContext, aL as Conferencing, cX as ConnectedService, dH as ConsentPolicy, r as CountServicesOptions, cY as CountServicesRequest, s as CountServicesResponse, P as CreateAddOnGroupOptions, dO as CreateAddOnGroupRequest, R as CreateAddOnGroupResponse, bG as CreateServiceRequest, bH as CreateServiceResponse, C as CreateServiceValidationErrors, at as CrudType, em as CrudTypeWithLiterals, c9 as CursorPaging, cv as CursorPagingMetadata, n as CursorQuery, cS as CursorQueryPagingMethodOneOf, cf as CursorSearchPagingMethodOneOf, cc as Cursors, aS as CustomLocationOptions, d0 as CustomLocations, aH as CustomPayment, d1 as CustomerLocations, co as DateHistogramAggregation, cL as DateHistogramResult, cN as DateHistogramResults, av as DayOfWeek, eo as DayOfWeekWithLiterals, bs as Delete, W as DeleteAddOnGroupApplicationErrors, T as DeleteAddOnGroupOptions, dP as DeleteAddOnGroupRequest, dQ as DeleteAddOnGroupResponse, D as DeleteServiceOptions, b$ as DeleteServiceRequest, c1 as DeleteServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, dc as DisablePricingPlansForServiceRequest, F as DisablePricingPlansForServiceResponse, dm as Discount, dn as DiscountDiscountOneOf, bw as DomainEvent, bx as DomainEventBodyOneOf, b7 as Duration, di as Empty, z as EnablePricingPlansForServiceApplicationErrors, da as EnablePricingPlansForServiceRequest, E as EnablePricingPlansForServiceResponse, by as EntityCreatedEvent, bB as EntityDeletedEvent, bA as EntityUpdatedEvent, dl as EntryPass, as as Event, dY as EventMetadata, el as EventWithLiterals, bj as ExtendedFields, bK as FieldViolation, aF as FixedPayment, aB as Form, cW as FormDetails, aC as FormSettings, dB as GeoCoordinates, bS as GetServiceAvailabilityConstraintsRequest, bT as GetServiceAvailabilityConstraintsResponse, bQ as GetServiceRequest, bR as GetServiceResponse, cs as GroupByAggregation, ct as GroupByAggregationKindOneOf, cM as GroupByValueResults, ds as HtmlSitePublished, bE as IdentificationData, bF as IdentificationDataIdOneOf, cj as IncludeMissingValuesOptions, ai as Interval, eb as IntervalWithLiterals, db as InvalidPricingPlan, an as InvalidSlugError, eg as InvalidSlugErrorWithLiterals, bN as ItemMetadata, bl as Keyword, aV as LimitEarlyBookingPolicy, aW as LimitLateBookingPolicy, _ as ListAddOnGroupsByServiceIdOptions, dS as ListAddOnGroupsByServiceIdRequest, $ as ListAddOnGroupsByServiceIdResponse, dy as Locale, L as Location, aM as LocationOptionsOneOf, a9 as LocationType, e2 as LocationTypeWithLiterals, bZ as MaskedService, ax as Media, ay as MediaItem, az as MediaItemItemOneOf, bD as MessageEnvelope, af as MissingValues, e8 as MissingValuesWithLiterals, ak as Mode, ed as ModeWithLiterals, aG as Money, d9 as MoveToNewLocationsOptions, dF as Multilingual, cr as NestedAggregation, cp as NestedAggregationItem, cq as NestedAggregationItemKindOneOf, cz as NestedAggregationResults, cA as NestedAggregationResultsResultOneOf, ah as NestedAggregationType, ea as NestedAggregationTypeWithLiterals, cI as NestedResultValue, cJ as NestedResultValueResultOneOf, cO as NestedResults, cE as NestedValueAggregationResult, aK as OnlineBooking, dt as Page, c8 as Paging, cb as PagingMetadataV2, c0 as ParticipantNotification, a$ as ParticipantsPolicy, aD as Payment, aJ as PaymentOptions, aE as PaymentRateOneOf, au as PlacementType, en as PlacementTypeWithLiterals, aU as PolicyDescription, dw as Properties, dL as PropertiesChange, q as QueryBookingFormsApplicationErrors, o as QueryBookingFormsOptions, cU as QueryBookingFormsRequest, p as QueryBookingFormsResponse, d3 as QueryCategoriesFilter, v as QueryCategoriesOptions, d2 as QueryCategoriesRequest, w as QueryCategoriesResponse, c_ as QueryLocationsFilter, t as QueryLocationsOptions, cZ as QueryLocationsRequest, u as QueryLocationsResponse, cR as QueryPoliciesRequest, Q as QueryPoliciesResponse, d4 as QueryServicesMultiLanguageRequest, d5 as QueryServicesMultiLanguageResponse, c4 as QueryServicesRequest, ca as QueryServicesResponse, c5 as QueryV2, c6 as QueryV2PagingMethodOneOf, cm as RangeAggregation, cy as RangeAggregationResult, ci as RangeBucket, cG as RangeResult, cC as RangeResults, a7 as RateType, e0 as RateTypeWithLiterals, bp as ReindexMessage, bq as ReindexMessageActionOneOf, d7 as RemovedLocationSessionsAction, d8 as RemovedLocationSessionsActionActionOptionsOneOf, al as RequestedFields, ee as RequestedFieldsWithLiterals, aZ as ReschedulePolicy, aw as ResolutionMethod, ep as ResolutionMethodWithLiterals, bc as ResourceGroup, bd as ResourceIds, bg as ResourceType, b0 as ResourcesPolicy, bz as RestoreInfo, cK as Results, b4 as SaveCreditCardPolicy, cn as ScalarAggregation, cH as ScalarResult, ag as ScalarType, e9 as ScalarTypeWithLiterals, b5 as Schedule, bt as Schema, cu as SearchDetails, cd as SearchServicesRequest, bk as SeoSchema, S as Service, bU as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, be as ServiceResource, bf as ServiceResourceSelectionOneOf, d_ as ServiceSearchSpec, a6 as ServiceType, d$ as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, k as ServicesQueryBuilder, dZ as ServicesQueryResult, bv as ServicesUrlsChanged, a2 as SetAddOnsForGroupApplicationErrors, a0 as SetAddOnsForGroupOptions, dW as SetAddOnsForGroupRequest, a1 as SetAddOnsForGroupResponse, J as SetCustomSlugApplicationErrors, bu as SetCustomSlugEvent, H as SetCustomSlugOptions, dd as SetCustomSlugRequest, I as SetCustomSlugResponse, K as SetCustomSlugValidationErrors, x as SetServiceLocationsOptions, d6 as SetServiceLocationsRequest, y as SetServiceLocationsResponse, bn as Settings, dN as SiteCloned, dM as SiteCreated, dv as SitePropertiesEvent, du as SitePropertiesNotification, bh as Slug, ae as SortDirection, e7 as SortDirectionWithLiterals, ac as SortOrder, e5 as SortOrderWithLiterals, ad as SortType, e6 as SortTypeWithLiterals, c7 as Sorting, dE as SpecialHourPeriod, bV as SplitInterval, b9 as StaffMediaItem, ba as StaffMediaItemItemOneOf, b8 as StaffMember, bb as StaffMemberDetails, ap as Status, ei as StatusWithLiterals, aP as StreetAddress, dG as SupportedLanguage, bm as Tag, dD as TimePeriod, dI as Translation, bi as URLs, Z as UpdateAddOnGroupApplicationErrors, X as UpdateAddOnGroupOptions, dR as UpdateAddOnGroupRequest, Y as UpdateAddOnGroupResponse, U as UpdateService, bW as UpdateServiceRequest, bX as UpdateServiceResponse, b as UpdateServiceValidationErrors, br as Upsert, dr as UserDomainInfoChangedEvent, aA as V2Category, ab as V2RequestedFields, e4 as V2RequestedFieldsWithLiterals, bI as ValidateServiceRequest, bJ as ValidateServiceResponse, V as ValidateSlugOptions, de as ValidateSlugRequest, M as ValidateSlugResponse, ck as ValueAggregation, cl as ValueAggregationOptionsOneOf, cx as ValueAggregationResult, cF as ValueResult, cB as ValueResults, aI as VariedPayment, a_ as WaitlistPolicy, aa as WebhookIdentityType, e3 as WebhookIdentityTypeWithLiterals, ev as bulkCreateServices, eB as bulkDeleteServices, eC as bulkDeleteServicesByFilter, ey as bulkUpdateServices, ez as bulkUpdateServicesByFilter, eO as cloneService, eG as countServices, eP as createAddOnGroup, eu as createService, eQ as deleteAddOnGroup, eA as deleteService, eL as disablePricingPlansForService, eK as enablePricingPlansForService, ew as getService, eS as listAddOnGroupsByServiceId, er as onServiceCreated, es as onServiceDeleted, et as onServiceUpdated, eF as queryBookingForms, eI as queryCategories, eH as queryLocations, eE as queryPolicies, eD as queryServices, eT as setAddOnsForGroup, eM as setCustomSlug, eJ as setServiceLocations, eR as updateAddOnGroup, ex as updateService, eN as validateSlug } from './bookings-services-v2-service-services.universal-DKi7EvxV.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -91,7 +91,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
91
91
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
92
92
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
93
93
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
94
|
-
function
|
|
94
|
+
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
95
95
|
const domainToMappings = {
|
|
96
96
|
"*.dev.wix-code.com": [
|
|
97
97
|
{
|
|
@@ -206,7 +206,7 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
206
206
|
};
|
|
207
207
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
210
210
|
const domainToMappings = {
|
|
211
211
|
"*.dev.wix-code.com": [
|
|
212
212
|
{
|
|
@@ -322,102 +322,6 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
|
322
322
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
323
323
|
}
|
|
324
324
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
|
|
325
|
-
function createAddOnGroup(payload) {
|
|
326
|
-
function __createAddOnGroup({ host }) {
|
|
327
|
-
const metadata = {
|
|
328
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
329
|
-
method: "POST",
|
|
330
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
331
|
-
packageName: PACKAGE_NAME,
|
|
332
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
333
|
-
protoPath: "/v2/services/add-on-groups/create",
|
|
334
|
-
data: payload,
|
|
335
|
-
host
|
|
336
|
-
}),
|
|
337
|
-
data: payload
|
|
338
|
-
};
|
|
339
|
-
return metadata;
|
|
340
|
-
}
|
|
341
|
-
return __createAddOnGroup;
|
|
342
|
-
}
|
|
343
|
-
function deleteAddOnGroup(payload) {
|
|
344
|
-
function __deleteAddOnGroup({ host }) {
|
|
345
|
-
const metadata = {
|
|
346
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
347
|
-
method: "POST",
|
|
348
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
349
|
-
packageName: PACKAGE_NAME,
|
|
350
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
351
|
-
protoPath: "/v2/services/add-on-groups/delete",
|
|
352
|
-
data: payload,
|
|
353
|
-
host
|
|
354
|
-
}),
|
|
355
|
-
data: payload
|
|
356
|
-
};
|
|
357
|
-
return metadata;
|
|
358
|
-
}
|
|
359
|
-
return __deleteAddOnGroup;
|
|
360
|
-
}
|
|
361
|
-
function updateAddOnGroup(payload) {
|
|
362
|
-
function __updateAddOnGroup({ host }) {
|
|
363
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
364
|
-
{
|
|
365
|
-
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
366
|
-
paths: [{ path: "mask" }]
|
|
367
|
-
}
|
|
368
|
-
]);
|
|
369
|
-
const metadata = {
|
|
370
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
371
|
-
method: "POST",
|
|
372
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
373
|
-
packageName: PACKAGE_NAME,
|
|
374
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
375
|
-
protoPath: "/v2/services/add-on-groups/update",
|
|
376
|
-
data: serializedData,
|
|
377
|
-
host
|
|
378
|
-
}),
|
|
379
|
-
data: serializedData
|
|
380
|
-
};
|
|
381
|
-
return metadata;
|
|
382
|
-
}
|
|
383
|
-
return __updateAddOnGroup;
|
|
384
|
-
}
|
|
385
|
-
function listAddOnGroupsByServiceId(payload) {
|
|
386
|
-
function __listAddOnGroupsByServiceId({ host }) {
|
|
387
|
-
const metadata = {
|
|
388
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
389
|
-
method: "POST",
|
|
390
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
391
|
-
packageName: PACKAGE_NAME,
|
|
392
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
393
|
-
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
394
|
-
data: payload,
|
|
395
|
-
host
|
|
396
|
-
}),
|
|
397
|
-
data: payload
|
|
398
|
-
};
|
|
399
|
-
return metadata;
|
|
400
|
-
}
|
|
401
|
-
return __listAddOnGroupsByServiceId;
|
|
402
|
-
}
|
|
403
|
-
function setAddOnsForGroup(payload) {
|
|
404
|
-
function __setAddOnsForGroup({ host }) {
|
|
405
|
-
const metadata = {
|
|
406
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
407
|
-
method: "POST",
|
|
408
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
409
|
-
packageName: PACKAGE_NAME,
|
|
410
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
411
|
-
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
412
|
-
data: payload,
|
|
413
|
-
host
|
|
414
|
-
}),
|
|
415
|
-
data: payload
|
|
416
|
-
};
|
|
417
|
-
return metadata;
|
|
418
|
-
}
|
|
419
|
-
return __setAddOnsForGroup;
|
|
420
|
-
}
|
|
421
325
|
function createService(payload) {
|
|
422
326
|
function __createService({ host }) {
|
|
423
327
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1701,6 +1605,102 @@ function cloneService(payload) {
|
|
|
1701
1605
|
}
|
|
1702
1606
|
return __cloneService;
|
|
1703
1607
|
}
|
|
1608
|
+
function createAddOnGroup(payload) {
|
|
1609
|
+
function __createAddOnGroup({ host }) {
|
|
1610
|
+
const metadata = {
|
|
1611
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1612
|
+
method: "POST",
|
|
1613
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
1614
|
+
packageName: PACKAGE_NAME,
|
|
1615
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1616
|
+
protoPath: "/v2/services/add-on-groups/create",
|
|
1617
|
+
data: payload,
|
|
1618
|
+
host
|
|
1619
|
+
}),
|
|
1620
|
+
data: payload
|
|
1621
|
+
};
|
|
1622
|
+
return metadata;
|
|
1623
|
+
}
|
|
1624
|
+
return __createAddOnGroup;
|
|
1625
|
+
}
|
|
1626
|
+
function deleteAddOnGroup(payload) {
|
|
1627
|
+
function __deleteAddOnGroup({ host }) {
|
|
1628
|
+
const metadata = {
|
|
1629
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1630
|
+
method: "POST",
|
|
1631
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
1632
|
+
packageName: PACKAGE_NAME,
|
|
1633
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1634
|
+
protoPath: "/v2/services/add-on-groups/delete",
|
|
1635
|
+
data: payload,
|
|
1636
|
+
host
|
|
1637
|
+
}),
|
|
1638
|
+
data: payload
|
|
1639
|
+
};
|
|
1640
|
+
return metadata;
|
|
1641
|
+
}
|
|
1642
|
+
return __deleteAddOnGroup;
|
|
1643
|
+
}
|
|
1644
|
+
function updateAddOnGroup(payload) {
|
|
1645
|
+
function __updateAddOnGroup({ host }) {
|
|
1646
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1647
|
+
{
|
|
1648
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1649
|
+
paths: [{ path: "mask" }]
|
|
1650
|
+
}
|
|
1651
|
+
]);
|
|
1652
|
+
const metadata = {
|
|
1653
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1654
|
+
method: "POST",
|
|
1655
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
1656
|
+
packageName: PACKAGE_NAME,
|
|
1657
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1658
|
+
protoPath: "/v2/services/add-on-groups/update",
|
|
1659
|
+
data: serializedData,
|
|
1660
|
+
host
|
|
1661
|
+
}),
|
|
1662
|
+
data: serializedData
|
|
1663
|
+
};
|
|
1664
|
+
return metadata;
|
|
1665
|
+
}
|
|
1666
|
+
return __updateAddOnGroup;
|
|
1667
|
+
}
|
|
1668
|
+
function listAddOnGroupsByServiceId(payload) {
|
|
1669
|
+
function __listAddOnGroupsByServiceId({ host }) {
|
|
1670
|
+
const metadata = {
|
|
1671
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1672
|
+
method: "POST",
|
|
1673
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
1674
|
+
packageName: PACKAGE_NAME,
|
|
1675
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1676
|
+
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
1677
|
+
data: payload,
|
|
1678
|
+
host
|
|
1679
|
+
}),
|
|
1680
|
+
data: payload
|
|
1681
|
+
};
|
|
1682
|
+
return metadata;
|
|
1683
|
+
}
|
|
1684
|
+
return __listAddOnGroupsByServiceId;
|
|
1685
|
+
}
|
|
1686
|
+
function setAddOnsForGroup(payload) {
|
|
1687
|
+
function __setAddOnsForGroup({ host }) {
|
|
1688
|
+
const metadata = {
|
|
1689
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1690
|
+
method: "POST",
|
|
1691
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
1692
|
+
packageName: PACKAGE_NAME,
|
|
1693
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1694
|
+
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
1695
|
+
data: payload,
|
|
1696
|
+
host
|
|
1697
|
+
}),
|
|
1698
|
+
data: payload
|
|
1699
|
+
};
|
|
1700
|
+
return metadata;
|
|
1701
|
+
}
|
|
1702
|
+
return __setAddOnsForGroup;
|
|
1703
|
+
}
|
|
1704
1704
|
|
|
1705
1705
|
// src/bookings-services-v2-service-services.universal.ts
|
|
1706
1706
|
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
@@ -1887,153 +1887,6 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
1887
1887
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
1888
1888
|
return ResolutionMethod2;
|
|
1889
1889
|
})(ResolutionMethod || {});
|
|
1890
|
-
async function createAddOnGroup2(addOnGroup, options) {
|
|
1891
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1892
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1893
|
-
addOnGroup,
|
|
1894
|
-
serviceId: options?.serviceId
|
|
1895
|
-
});
|
|
1896
|
-
const reqOpts = createAddOnGroup(payload);
|
|
1897
|
-
sideEffects?.onSiteCall?.();
|
|
1898
|
-
try {
|
|
1899
|
-
const result = await httpClient.request(reqOpts);
|
|
1900
|
-
sideEffects?.onSuccess?.(result);
|
|
1901
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1902
|
-
} catch (err) {
|
|
1903
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1904
|
-
err,
|
|
1905
|
-
{
|
|
1906
|
-
spreadPathsToArguments: {},
|
|
1907
|
-
explicitPathsToArguments: {
|
|
1908
|
-
addOnGroup: "$[0]",
|
|
1909
|
-
serviceId: "$[1].serviceId"
|
|
1910
|
-
},
|
|
1911
|
-
singleArgumentUnchanged: false
|
|
1912
|
-
},
|
|
1913
|
-
["addOnGroup", "options"]
|
|
1914
|
-
);
|
|
1915
|
-
sideEffects?.onError?.(err);
|
|
1916
|
-
throw transformedError;
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
1920
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1921
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1922
|
-
addOnGroupId,
|
|
1923
|
-
serviceId: options?.serviceId
|
|
1924
|
-
});
|
|
1925
|
-
const reqOpts = deleteAddOnGroup(payload);
|
|
1926
|
-
sideEffects?.onSiteCall?.();
|
|
1927
|
-
try {
|
|
1928
|
-
const result = await httpClient.request(reqOpts);
|
|
1929
|
-
sideEffects?.onSuccess?.(result);
|
|
1930
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1931
|
-
} catch (err) {
|
|
1932
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1933
|
-
err,
|
|
1934
|
-
{
|
|
1935
|
-
spreadPathsToArguments: {},
|
|
1936
|
-
explicitPathsToArguments: {
|
|
1937
|
-
addOnGroupId: "$[0]",
|
|
1938
|
-
serviceId: "$[1].serviceId"
|
|
1939
|
-
},
|
|
1940
|
-
singleArgumentUnchanged: false
|
|
1941
|
-
},
|
|
1942
|
-
["addOnGroupId", "options"]
|
|
1943
|
-
);
|
|
1944
|
-
sideEffects?.onError?.(err);
|
|
1945
|
-
throw transformedError;
|
|
1946
|
-
}
|
|
1947
|
-
}
|
|
1948
|
-
async function updateAddOnGroup2(addOnGroup, options) {
|
|
1949
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1950
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1951
|
-
addOnGroup,
|
|
1952
|
-
serviceId: options?.serviceId
|
|
1953
|
-
});
|
|
1954
|
-
const reqOpts = updateAddOnGroup(payload);
|
|
1955
|
-
sideEffects?.onSiteCall?.();
|
|
1956
|
-
try {
|
|
1957
|
-
const result = await httpClient.request(reqOpts);
|
|
1958
|
-
sideEffects?.onSuccess?.(result);
|
|
1959
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1960
|
-
} catch (err) {
|
|
1961
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1962
|
-
err,
|
|
1963
|
-
{
|
|
1964
|
-
spreadPathsToArguments: {},
|
|
1965
|
-
explicitPathsToArguments: {
|
|
1966
|
-
addOnGroup: "$[0]",
|
|
1967
|
-
serviceId: "$[1].serviceId"
|
|
1968
|
-
},
|
|
1969
|
-
singleArgumentUnchanged: false
|
|
1970
|
-
},
|
|
1971
|
-
["addOnGroup", "options"]
|
|
1972
|
-
);
|
|
1973
|
-
sideEffects?.onError?.(err);
|
|
1974
|
-
throw transformedError;
|
|
1975
|
-
}
|
|
1976
|
-
}
|
|
1977
|
-
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
1978
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1979
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1980
|
-
serviceId,
|
|
1981
|
-
groupIds: options?.groupIds
|
|
1982
|
-
});
|
|
1983
|
-
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
1984
|
-
sideEffects?.onSiteCall?.();
|
|
1985
|
-
try {
|
|
1986
|
-
const result = await httpClient.request(reqOpts);
|
|
1987
|
-
sideEffects?.onSuccess?.(result);
|
|
1988
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1989
|
-
} catch (err) {
|
|
1990
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1991
|
-
err,
|
|
1992
|
-
{
|
|
1993
|
-
spreadPathsToArguments: {},
|
|
1994
|
-
explicitPathsToArguments: {
|
|
1995
|
-
serviceId: "$[0]",
|
|
1996
|
-
groupIds: "$[1].groupIds"
|
|
1997
|
-
},
|
|
1998
|
-
singleArgumentUnchanged: false
|
|
1999
|
-
},
|
|
2000
|
-
["serviceId", "options"]
|
|
2001
|
-
);
|
|
2002
|
-
sideEffects?.onError?.(err);
|
|
2003
|
-
throw transformedError;
|
|
2004
|
-
}
|
|
2005
|
-
}
|
|
2006
|
-
async function setAddOnsForGroup2(serviceId, options) {
|
|
2007
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2008
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2009
|
-
serviceId,
|
|
2010
|
-
groupId: options?.groupId,
|
|
2011
|
-
addOnIds: options?.addOnIds
|
|
2012
|
-
});
|
|
2013
|
-
const reqOpts = setAddOnsForGroup(payload);
|
|
2014
|
-
sideEffects?.onSiteCall?.();
|
|
2015
|
-
try {
|
|
2016
|
-
const result = await httpClient.request(reqOpts);
|
|
2017
|
-
sideEffects?.onSuccess?.(result);
|
|
2018
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2019
|
-
} catch (err) {
|
|
2020
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2021
|
-
err,
|
|
2022
|
-
{
|
|
2023
|
-
spreadPathsToArguments: {},
|
|
2024
|
-
explicitPathsToArguments: {
|
|
2025
|
-
serviceId: "$[0]",
|
|
2026
|
-
groupId: "$[1].groupId",
|
|
2027
|
-
addOnIds: "$[1].addOnIds"
|
|
2028
|
-
},
|
|
2029
|
-
singleArgumentUnchanged: false
|
|
2030
|
-
},
|
|
2031
|
-
["serviceId", "options"]
|
|
2032
|
-
);
|
|
2033
|
-
sideEffects?.onError?.(err);
|
|
2034
|
-
throw transformedError;
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
1890
|
async function createService2(service) {
|
|
2038
1891
|
const { httpClient, sideEffects } = arguments[1];
|
|
2039
1892
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -3266,6 +3119,153 @@ async function cloneService2(sourceServiceId) {
|
|
|
3266
3119
|
throw transformedError;
|
|
3267
3120
|
}
|
|
3268
3121
|
}
|
|
3122
|
+
async function createAddOnGroup2(addOnGroup, options) {
|
|
3123
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3124
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3125
|
+
addOnGroup,
|
|
3126
|
+
serviceId: options?.serviceId
|
|
3127
|
+
});
|
|
3128
|
+
const reqOpts = createAddOnGroup(payload);
|
|
3129
|
+
sideEffects?.onSiteCall?.();
|
|
3130
|
+
try {
|
|
3131
|
+
const result = await httpClient.request(reqOpts);
|
|
3132
|
+
sideEffects?.onSuccess?.(result);
|
|
3133
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3134
|
+
} catch (err) {
|
|
3135
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3136
|
+
err,
|
|
3137
|
+
{
|
|
3138
|
+
spreadPathsToArguments: {},
|
|
3139
|
+
explicitPathsToArguments: {
|
|
3140
|
+
addOnGroup: "$[0]",
|
|
3141
|
+
serviceId: "$[1].serviceId"
|
|
3142
|
+
},
|
|
3143
|
+
singleArgumentUnchanged: false
|
|
3144
|
+
},
|
|
3145
|
+
["addOnGroup", "options"]
|
|
3146
|
+
);
|
|
3147
|
+
sideEffects?.onError?.(err);
|
|
3148
|
+
throw transformedError;
|
|
3149
|
+
}
|
|
3150
|
+
}
|
|
3151
|
+
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
3152
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3153
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3154
|
+
addOnGroupId,
|
|
3155
|
+
serviceId: options?.serviceId
|
|
3156
|
+
});
|
|
3157
|
+
const reqOpts = deleteAddOnGroup(payload);
|
|
3158
|
+
sideEffects?.onSiteCall?.();
|
|
3159
|
+
try {
|
|
3160
|
+
const result = await httpClient.request(reqOpts);
|
|
3161
|
+
sideEffects?.onSuccess?.(result);
|
|
3162
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3163
|
+
} catch (err) {
|
|
3164
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3165
|
+
err,
|
|
3166
|
+
{
|
|
3167
|
+
spreadPathsToArguments: {},
|
|
3168
|
+
explicitPathsToArguments: {
|
|
3169
|
+
addOnGroupId: "$[0]",
|
|
3170
|
+
serviceId: "$[1].serviceId"
|
|
3171
|
+
},
|
|
3172
|
+
singleArgumentUnchanged: false
|
|
3173
|
+
},
|
|
3174
|
+
["addOnGroupId", "options"]
|
|
3175
|
+
);
|
|
3176
|
+
sideEffects?.onError?.(err);
|
|
3177
|
+
throw transformedError;
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
async function updateAddOnGroup2(addOnGroup, options) {
|
|
3181
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3182
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3183
|
+
addOnGroup,
|
|
3184
|
+
serviceId: options?.serviceId
|
|
3185
|
+
});
|
|
3186
|
+
const reqOpts = updateAddOnGroup(payload);
|
|
3187
|
+
sideEffects?.onSiteCall?.();
|
|
3188
|
+
try {
|
|
3189
|
+
const result = await httpClient.request(reqOpts);
|
|
3190
|
+
sideEffects?.onSuccess?.(result);
|
|
3191
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3192
|
+
} catch (err) {
|
|
3193
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3194
|
+
err,
|
|
3195
|
+
{
|
|
3196
|
+
spreadPathsToArguments: {},
|
|
3197
|
+
explicitPathsToArguments: {
|
|
3198
|
+
addOnGroup: "$[0]",
|
|
3199
|
+
serviceId: "$[1].serviceId"
|
|
3200
|
+
},
|
|
3201
|
+
singleArgumentUnchanged: false
|
|
3202
|
+
},
|
|
3203
|
+
["addOnGroup", "options"]
|
|
3204
|
+
);
|
|
3205
|
+
sideEffects?.onError?.(err);
|
|
3206
|
+
throw transformedError;
|
|
3207
|
+
}
|
|
3208
|
+
}
|
|
3209
|
+
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
3210
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3211
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3212
|
+
serviceId,
|
|
3213
|
+
groupIds: options?.groupIds
|
|
3214
|
+
});
|
|
3215
|
+
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
3216
|
+
sideEffects?.onSiteCall?.();
|
|
3217
|
+
try {
|
|
3218
|
+
const result = await httpClient.request(reqOpts);
|
|
3219
|
+
sideEffects?.onSuccess?.(result);
|
|
3220
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3221
|
+
} catch (err) {
|
|
3222
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3223
|
+
err,
|
|
3224
|
+
{
|
|
3225
|
+
spreadPathsToArguments: {},
|
|
3226
|
+
explicitPathsToArguments: {
|
|
3227
|
+
serviceId: "$[0]",
|
|
3228
|
+
groupIds: "$[1].groupIds"
|
|
3229
|
+
},
|
|
3230
|
+
singleArgumentUnchanged: false
|
|
3231
|
+
},
|
|
3232
|
+
["serviceId", "options"]
|
|
3233
|
+
);
|
|
3234
|
+
sideEffects?.onError?.(err);
|
|
3235
|
+
throw transformedError;
|
|
3236
|
+
}
|
|
3237
|
+
}
|
|
3238
|
+
async function setAddOnsForGroup2(serviceId, options) {
|
|
3239
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3240
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3241
|
+
serviceId,
|
|
3242
|
+
groupId: options?.groupId,
|
|
3243
|
+
addOnIds: options?.addOnIds
|
|
3244
|
+
});
|
|
3245
|
+
const reqOpts = setAddOnsForGroup(payload);
|
|
3246
|
+
sideEffects?.onSiteCall?.();
|
|
3247
|
+
try {
|
|
3248
|
+
const result = await httpClient.request(reqOpts);
|
|
3249
|
+
sideEffects?.onSuccess?.(result);
|
|
3250
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3251
|
+
} catch (err) {
|
|
3252
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3253
|
+
err,
|
|
3254
|
+
{
|
|
3255
|
+
spreadPathsToArguments: {},
|
|
3256
|
+
explicitPathsToArguments: {
|
|
3257
|
+
serviceId: "$[0]",
|
|
3258
|
+
groupId: "$[1].groupId",
|
|
3259
|
+
addOnIds: "$[1].addOnIds"
|
|
3260
|
+
},
|
|
3261
|
+
singleArgumentUnchanged: false
|
|
3262
|
+
},
|
|
3263
|
+
["serviceId", "options"]
|
|
3264
|
+
);
|
|
3265
|
+
sideEffects?.onError?.(err);
|
|
3266
|
+
throw transformedError;
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
3269
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3270
3270
|
0 && (module.exports = {
|
|
3271
3271
|
Action,
|