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