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