@wix/auto_sdk_bookings_services 1.0.72 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/{bookings-services-v2-service-services.universal-DYRSxPXw.d.ts → bookings-services-v2-service-services.universal-D6jEh8MN.d.ts} +332 -169
- package/build/cjs/index.d.ts +70 -3
- package/build/cjs/index.js +469 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +415 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +204 -3
- package/build/cjs/meta.js +345 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-DYRSxPXw.d.mts → bookings-services-v2-service-services.universal-D6jEh8MN.d.mts} +332 -169
- package/build/es/index.d.mts +70 -3
- package/build/es/index.mjs +463 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +409 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +204 -3
- package/build/es/meta.mjs +339 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-DYRSxPXw.d.ts → bookings-services-v2-service-services.universal-D6jEh8MN.d.ts} +332 -169
- package/build/internal/cjs/index.d.ts +70 -3
- package/build/internal/cjs/index.js +469 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +415 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +204 -3
- package/build/internal/cjs/meta.js +345 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-DYRSxPXw.d.mts → bookings-services-v2-service-services.universal-D6jEh8MN.d.mts} +332 -169
- package/build/internal/es/index.d.mts +70 -3
- package/build/internal/es/index.mjs +463 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +409 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +204 -3
- package/build/internal/es/meta.mjs +339 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { cf as CursorSearch, m as SearchServicesResponse } from './bookings-services-v2-service-services.universal-D6jEh8MN.js';
|
|
2
|
+
export { an as Action, bD as ActionEvent, eh as ActionWithLiterals, dU as AddOn, dV as AddOnAddOnInfoOneOf, bp as AddOnDetails, O as AddOnGroup, dW as AddOnGroupDetail, dA as Address, dB as AddressHint, aR as AddressLocation, ch as Aggregation, cx as AggregationData, ci as AggregationKindOneOf, cQ as AggregationResults, cR as AggregationResultsResultOneOf, cE as AggregationResultsScalarResult, ak as AggregationType, ee as AggregationTypeWithLiterals, bP as ApplicationError, b7 as AvailabilityConstraints, d_ as BaseEventMetadata, dq as Behavior, dr as BehaviorBehaviorOneOf, dl as Benefit, dk as BenefitNotification, as as BenefitType, em as BenefitTypeWithLiterals, aY as BookAfterStartPolicy, cW as BookingForm, aU as BookingPolicy, cU as BookingPolicyWithServices, bQ as BulkActionMetadata, B as BulkCreateServicesOptions, bM as BulkCreateServicesRequest, a as BulkCreateServicesResponse, i as BulkDeleteServicesByFilterOptions, c4 as BulkDeleteServicesByFilterRequest, j as BulkDeleteServicesByFilterResponse, g as BulkDeleteServicesOptions, c3 as BulkDeleteServicesRequest, h as BulkDeleteServicesResponse, bN as BulkServiceResult, e as BulkUpdateServicesByFilterOptions, b$ as BulkUpdateServicesByFilterRequest, f as BulkUpdateServicesByFilterResponse, c as BulkUpdateServicesOptions, bZ as BulkUpdateServicesRequest, d as BulkUpdateServicesResponse, aS as BusinessLocationOptions, d0 as BusinessLocations, dD as BusinessSchedule, b2 as CancellationFeePolicy, aZ as CancellationPolicy, b3 as CancellationWindow, b4 as CancellationWindowFeeOneOf, dy as Categories, di as Category, dh as CategoryNotification, ar as CategoryNotificationEvent, el as CategoryNotificationEventWithLiterals, dK as ChangeContext, dL as ChangeContextPayloadOneOf, ap as CloneErrors, ej as CloneErrorsWithLiterals, dg as CloneServiceRequest, N as CloneServiceResponse, aO as CommonAddress, aP as CommonAddressStreetOneOf, eF as CommonSearchWithEntityContext, aM as Conferencing, cY as ConnectedService, dI as ConsentPolicy, r as CountServicesOptions, cZ as CountServicesRequest, s as CountServicesResponse, P as CreateAddOnGroupOptions, dP as CreateAddOnGroupRequest, R as CreateAddOnGroupResponse, bH as CreateServiceRequest, bI as CreateServiceResponse, C as CreateServiceValidationErrors, au as CrudType, eo as CrudTypeWithLiterals, ca as CursorPaging, cw as CursorPagingMetadata, n as CursorQuery, cT as CursorQueryPagingMethodOneOf, cg as CursorSearchPagingMethodOneOf, cd as Cursors, aT as CustomLocationOptions, d1 as CustomLocations, aI as CustomPayment, d2 as CustomerLocations, cp as DateHistogramAggregation, cM as DateHistogramResult, cO as DateHistogramResults, aw as DayOfWeek, eq as DayOfWeekWithLiterals, bt as Delete, W as DeleteAddOnGroupApplicationErrors, T as DeleteAddOnGroupOptions, dQ as DeleteAddOnGroupRequest, dR as DeleteAddOnGroupResponse, D as DeleteServiceOptions, c0 as DeleteServiceRequest, c2 as DeleteServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, dd as DisablePricingPlansForServiceRequest, F as DisablePricingPlansForServiceResponse, dn as Discount, dp as DiscountDiscountOneOf, bx as DomainEvent, by as DomainEventBodyOneOf, b8 as Duration, dj as Empty, z as EnablePricingPlansForServiceApplicationErrors, db as EnablePricingPlansForServiceRequest, E as EnablePricingPlansForServiceResponse, bz as EntityCreatedEvent, bC as EntityDeletedEvent, bB as EntityUpdatedEvent, dm as EntryPass, at as Event, d$ as EventMetadata, en as EventWithLiterals, bk as ExtendedFields, bL as FieldViolation, aG as FixedPayment, aC as Form, cX as FormDetails, aD as FormSettings, dC as GeoCoordinates, bT as GetServiceAvailabilityConstraintsRequest, bU as GetServiceAvailabilityConstraintsResponse, bR as GetServiceRequest, bS as GetServiceResponse, ct as GroupByAggregation, cu as GroupByAggregationKindOneOf, cN as GroupByValueResults, dt as HtmlSitePublished, bF as IdentificationData, bG as IdentificationDataIdOneOf, ck as IncludeMissingValuesOptions, aj as Interval, ed as IntervalWithLiterals, dc as InvalidPricingPlan, ao as InvalidSlugError, ei as InvalidSlugErrorWithLiterals, bO as ItemMetadata, bm as Keyword, aW as LimitEarlyBookingPolicy, aX as LimitLateBookingPolicy, _ as ListAddOnGroupsByServiceIdOptions, dT as ListAddOnGroupsByServiceIdRequest, $ as ListAddOnGroupsByServiceIdResponse, dz as Locale, L as Location, aN as LocationOptionsOneOf, aa as LocationType, e4 as LocationTypeWithLiterals, b_ as MaskedService, ay as Media, az as MediaItem, aA as MediaItemItemOneOf, bE as MessageEnvelope, ag as MissingValues, ea as MissingValuesWithLiterals, al as Mode, ef as ModeWithLiterals, aH as Money, da as MoveToNewLocationsOptions, dG as Multilingual, cs as NestedAggregation, cq as NestedAggregationItem, cr as NestedAggregationItemKindOneOf, cA as NestedAggregationResults, cB as NestedAggregationResultsResultOneOf, ai as NestedAggregationType, ec as NestedAggregationTypeWithLiterals, cJ as NestedResultValue, cK as NestedResultValueResultOneOf, cP as NestedResults, cF as NestedValueAggregationResult, aL as OnlineBooking, du as Page, c9 as Paging, cc as PagingMetadataV2, c1 as ParticipantNotification, b0 as ParticipantsPolicy, aE as Payment, aK as PaymentOptions, aF as PaymentRateOneOf, av as PlacementType, ep as PlacementTypeWithLiterals, aV as PolicyDescription, dx as Properties, dM as PropertiesChange, q as QueryBookingFormsApplicationErrors, o as QueryBookingFormsOptions, cV as QueryBookingFormsRequest, p as QueryBookingFormsResponse, d4 as QueryCategoriesFilter, v as QueryCategoriesOptions, d3 as QueryCategoriesRequest, w as QueryCategoriesResponse, c$ as QueryLocationsFilter, t as QueryLocationsOptions, c_ as QueryLocationsRequest, u as QueryLocationsResponse, cS as QueryPoliciesRequest, Q as QueryPoliciesResponse, d5 as QueryServicesMultiLanguageRequest, d6 as QueryServicesMultiLanguageResponse, c5 as QueryServicesRequest, cb as QueryServicesResponse, c6 as QueryV2, c7 as QueryV2PagingMethodOneOf, cn as RangeAggregation, cz as RangeAggregationResult, cj as RangeBucket, cH as RangeResult, cD as RangeResults, a9 as RateType, e3 as RateTypeWithLiterals, bq as ReindexMessage, br as ReindexMessageActionOneOf, d8 as RemovedLocationSessionsAction, d9 as RemovedLocationSessionsActionActionOptionsOneOf, am as RequestedFields, eg as RequestedFieldsWithLiterals, a_ as ReschedulePolicy, ax as ResolutionMethod, er as ResolutionMethodWithLiterals, bd as ResourceGroup, be as ResourceIds, bh as ResourceType, b1 as ResourcesPolicy, bA as RestoreInfo, cL as Results, b5 as SaveCreditCardPolicy, co as ScalarAggregation, cI as ScalarResult, ah as ScalarType, eb as ScalarTypeWithLiterals, b6 as Schedule, bu as Schema, cv as SearchDetails, ce as SearchServicesRequest, bl as SeoSchema, S as Service, bV as ServiceAvailabilityConstraints, a5 as ServiceCreatedEnvelope, a6 as ServiceDeletedEnvelope, bf as ServiceResource, bg as ServiceResourceSelectionOneOf, e1 as ServiceSearchSpec, a8 as ServiceType, e2 as ServiceTypeWithLiterals, a7 as ServiceUpdatedEnvelope, k as ServicesQueryBuilder, e0 as ServicesQueryResult, bw as ServicesUrlsChanged, a2 as SetAddOnsForGroupApplicationErrors, a0 as SetAddOnsForGroupOptions, dX as SetAddOnsForGroupRequest, a1 as SetAddOnsForGroupResponse, J as SetCustomSlugApplicationErrors, bv as SetCustomSlugEvent, H as SetCustomSlugOptions, de as SetCustomSlugRequest, I as SetCustomSlugResponse, K as SetCustomSlugValidationErrors, x as SetServiceLocationsOptions, d7 as SetServiceLocationsRequest, y as SetServiceLocationsResponse, bo as Settings, dO as SiteCloned, dN as SiteCreated, dw as SitePropertiesEvent, dv as SitePropertiesNotification, bi as Slug, af as SortDirection, e9 as SortDirectionWithLiterals, ad as SortOrder, e7 as SortOrderWithLiterals, ae as SortType, e8 as SortTypeWithLiterals, c8 as Sorting, dF as SpecialHourPeriod, bW as SplitInterval, ba as StaffMediaItem, bb as StaffMediaItemItemOneOf, b9 as StaffMember, bc as StaffMemberDetails, aq as Status, ek as StatusWithLiterals, aQ as StreetAddress, dH as SupportedLanguage, bn as Tag, dE as TimePeriod, dJ as Translation, bj as URLs, Z as UpdateAddOnGroupApplicationErrors, X as UpdateAddOnGroupOptions, dS as UpdateAddOnGroupRequest, Y as UpdateAddOnGroupResponse, U as UpdateService, bX as UpdateServiceRequest, bY as UpdateServiceResponse, b as UpdateServiceValidationErrors, bs as Upsert, ds as UserDomainInfoChangedEvent, aB as V2Category, ac as V2RequestedFields, e6 as V2RequestedFieldsWithLiterals, a3 as ValidateAddOnsSelectionOptions, dY as ValidateAddOnsSelectionRequest, a4 as ValidateAddOnsSelectionResponse, bJ as ValidateServiceRequest, bK as ValidateServiceResponse, V as ValidateSlugOptions, df as ValidateSlugRequest, M as ValidateSlugResponse, dZ as ValidationResult, cl as ValueAggregation, cm as ValueAggregationOptionsOneOf, cy as ValueAggregationResult, cG as ValueResult, cC as ValueResults, aJ as VariedPayment, a$ as WaitlistPolicy, ab as WebhookIdentityType, e5 as WebhookIdentityTypeWithLiterals, ew as bulkCreateServices, eC as bulkDeleteServices, eD as bulkDeleteServicesByFilter, ez as bulkUpdateServices, eA as bulkUpdateServicesByFilter, eQ as cloneService, eI as countServices, eR as createAddOnGroup, ev as createService, eS as deleteAddOnGroup, eB as deleteService, eN as disablePricingPlansForService, eM as enablePricingPlansForService, ex as getService, eU as listAddOnGroupsByServiceId, es as onServiceCreated, et as onServiceDeleted, eu as onServiceUpdated, eH as queryBookingForms, eK as queryCategories, eJ as queryLocations, eG as queryPolicies, eE as queryServices, eV as setAddOnsForGroup, eO as setCustomSlug, eL as setServiceLocations, eT as updateAddOnGroup, ey as updateService, eW as validateAddOnsSelection, eP as validateSlug } from './bookings-services-v2-service-services.universal-D6jEh8MN.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -53,20 +53,26 @@ __export(index_typings_exports, {
|
|
|
53
53
|
bulkUpdateServicesByFilter: () => bulkUpdateServicesByFilter2,
|
|
54
54
|
cloneService: () => cloneService2,
|
|
55
55
|
countServices: () => countServices2,
|
|
56
|
+
createAddOnGroup: () => createAddOnGroup2,
|
|
56
57
|
createService: () => createService2,
|
|
58
|
+
deleteAddOnGroup: () => deleteAddOnGroup2,
|
|
57
59
|
deleteService: () => deleteService2,
|
|
58
60
|
disablePricingPlansForService: () => disablePricingPlansForService2,
|
|
59
61
|
enablePricingPlansForService: () => enablePricingPlansForService2,
|
|
60
62
|
getService: () => getService2,
|
|
63
|
+
listAddOnGroupsByServiceId: () => listAddOnGroupsByServiceId2,
|
|
61
64
|
queryBookingForms: () => queryBookingForms2,
|
|
62
65
|
queryCategories: () => queryCategories2,
|
|
63
66
|
queryLocations: () => queryLocations2,
|
|
64
67
|
queryPolicies: () => queryPolicies2,
|
|
65
68
|
queryServices: () => queryServices2,
|
|
66
69
|
searchServices: () => searchServices2,
|
|
70
|
+
setAddOnsForGroup: () => setAddOnsForGroup2,
|
|
67
71
|
setCustomSlug: () => setCustomSlug2,
|
|
68
72
|
setServiceLocations: () => setServiceLocations2,
|
|
73
|
+
updateAddOnGroup: () => updateAddOnGroup2,
|
|
69
74
|
updateService: () => updateService2,
|
|
75
|
+
validateAddOnsSelection: () => validateAddOnsSelection2,
|
|
70
76
|
validateSlug: () => validateSlug2
|
|
71
77
|
});
|
|
72
78
|
module.exports = __toCommonJS(index_typings_exports);
|
|
@@ -85,6 +91,117 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
85
91
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
86
92
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
87
93
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
94
|
+
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
95
|
+
const domainToMappings = {
|
|
96
|
+
"*.dev.wix-code.com": [
|
|
97
|
+
{
|
|
98
|
+
srcPath: "/_api/services-2",
|
|
99
|
+
destPath: ""
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
srcPath: "/_api/bookings/v2/services",
|
|
103
|
+
destPath: "/v2/services"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"www.wixapis.com": [
|
|
107
|
+
{
|
|
108
|
+
srcPath: "/_api/bookings/v2/services",
|
|
109
|
+
destPath: "/v2/services"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
srcPath: "/bookings/v2/services",
|
|
113
|
+
destPath: "/v2/services"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
srcPath: "/bookings/v2/bulk/services",
|
|
117
|
+
destPath: "/v2/bulk/services"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"manage._base_domain_": [
|
|
121
|
+
{
|
|
122
|
+
srcPath: "/_api/bookings/v2/services",
|
|
123
|
+
destPath: "/v2/services"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
srcPath: "/_api/bookings/v2/bulk/services",
|
|
127
|
+
destPath: "/v2/bulk/services"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"editor._base_domain_": [
|
|
131
|
+
{
|
|
132
|
+
srcPath: "/_api/bookings/v2/services",
|
|
133
|
+
destPath: "/v2/services"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
srcPath: "/_api/bookings/v2/bulk/services",
|
|
137
|
+
destPath: "/v2/bulk/services"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"blocks._base_domain_": [
|
|
141
|
+
{
|
|
142
|
+
srcPath: "/_api/bookings/v2/services",
|
|
143
|
+
destPath: "/v2/services"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
srcPath: "/_api/bookings/v2/bulk/services",
|
|
147
|
+
destPath: "/v2/bulk/services"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"create.editorx": [
|
|
151
|
+
{
|
|
152
|
+
srcPath: "/_api/bookings/v2/services",
|
|
153
|
+
destPath: "/v2/services"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
srcPath: "/_api/bookings/v2/bulk/services",
|
|
157
|
+
destPath: "/v2/bulk/services"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
_: [
|
|
161
|
+
{
|
|
162
|
+
srcPath: "/_api/bookings/v2/services",
|
|
163
|
+
destPath: "/v2/services"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"www._base_domain_": [
|
|
167
|
+
{
|
|
168
|
+
srcPath: "/_api/bookings/v2/services",
|
|
169
|
+
destPath: "/v2/services"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"bo._base_domain_": [
|
|
173
|
+
{
|
|
174
|
+
srcPath: "/_api/bookings/v2/services",
|
|
175
|
+
destPath: "/v2/services"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"wixbo.ai": [
|
|
179
|
+
{
|
|
180
|
+
srcPath: "/_api/bookings/v2/services",
|
|
181
|
+
destPath: "/v2/services"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"wix-bo.com": [
|
|
185
|
+
{
|
|
186
|
+
srcPath: "/_api/bookings/v2/services",
|
|
187
|
+
destPath: "/v2/services"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"editor.wixapps.net": [
|
|
191
|
+
{
|
|
192
|
+
srcPath: "/_api/bookings/v2/services",
|
|
193
|
+
destPath: "/v2/services"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"api._api_base_domain_": [
|
|
197
|
+
{
|
|
198
|
+
srcPath: "/services-2",
|
|
199
|
+
destPath: ""
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
};
|
|
203
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
204
|
+
}
|
|
88
205
|
function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
89
206
|
const domainToMappings = {
|
|
90
207
|
"*.dev.wix-code.com": [
|
|
@@ -1480,6 +1597,120 @@ function cloneService(payload) {
|
|
|
1480
1597
|
}
|
|
1481
1598
|
return __cloneService;
|
|
1482
1599
|
}
|
|
1600
|
+
function createAddOnGroup(payload) {
|
|
1601
|
+
function __createAddOnGroup({ host }) {
|
|
1602
|
+
const metadata = {
|
|
1603
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1604
|
+
method: "POST",
|
|
1605
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
1606
|
+
packageName: PACKAGE_NAME,
|
|
1607
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1608
|
+
protoPath: "/v2/services/add-on-groups/create",
|
|
1609
|
+
data: payload,
|
|
1610
|
+
host
|
|
1611
|
+
}),
|
|
1612
|
+
data: payload
|
|
1613
|
+
};
|
|
1614
|
+
return metadata;
|
|
1615
|
+
}
|
|
1616
|
+
return __createAddOnGroup;
|
|
1617
|
+
}
|
|
1618
|
+
function deleteAddOnGroup(payload) {
|
|
1619
|
+
function __deleteAddOnGroup({ host }) {
|
|
1620
|
+
const metadata = {
|
|
1621
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1622
|
+
method: "POST",
|
|
1623
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
1624
|
+
packageName: PACKAGE_NAME,
|
|
1625
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1626
|
+
protoPath: "/v2/services/add-on-groups/delete",
|
|
1627
|
+
data: payload,
|
|
1628
|
+
host
|
|
1629
|
+
}),
|
|
1630
|
+
data: payload
|
|
1631
|
+
};
|
|
1632
|
+
return metadata;
|
|
1633
|
+
}
|
|
1634
|
+
return __deleteAddOnGroup;
|
|
1635
|
+
}
|
|
1636
|
+
function updateAddOnGroup(payload) {
|
|
1637
|
+
function __updateAddOnGroup({ host }) {
|
|
1638
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1639
|
+
{
|
|
1640
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1641
|
+
paths: [{ path: "mask" }]
|
|
1642
|
+
}
|
|
1643
|
+
]);
|
|
1644
|
+
const metadata = {
|
|
1645
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1646
|
+
method: "POST",
|
|
1647
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
1648
|
+
packageName: PACKAGE_NAME,
|
|
1649
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1650
|
+
protoPath: "/v2/services/add-on-groups/update",
|
|
1651
|
+
data: serializedData,
|
|
1652
|
+
host
|
|
1653
|
+
}),
|
|
1654
|
+
data: serializedData
|
|
1655
|
+
};
|
|
1656
|
+
return metadata;
|
|
1657
|
+
}
|
|
1658
|
+
return __updateAddOnGroup;
|
|
1659
|
+
}
|
|
1660
|
+
function listAddOnGroupsByServiceId(payload) {
|
|
1661
|
+
function __listAddOnGroupsByServiceId({ host }) {
|
|
1662
|
+
const metadata = {
|
|
1663
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1664
|
+
method: "POST",
|
|
1665
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
1666
|
+
packageName: PACKAGE_NAME,
|
|
1667
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1668
|
+
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
1669
|
+
data: payload,
|
|
1670
|
+
host
|
|
1671
|
+
}),
|
|
1672
|
+
data: payload
|
|
1673
|
+
};
|
|
1674
|
+
return metadata;
|
|
1675
|
+
}
|
|
1676
|
+
return __listAddOnGroupsByServiceId;
|
|
1677
|
+
}
|
|
1678
|
+
function setAddOnsForGroup(payload) {
|
|
1679
|
+
function __setAddOnsForGroup({ host }) {
|
|
1680
|
+
const metadata = {
|
|
1681
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1682
|
+
method: "POST",
|
|
1683
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
1684
|
+
packageName: PACKAGE_NAME,
|
|
1685
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1686
|
+
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
1687
|
+
data: payload,
|
|
1688
|
+
host
|
|
1689
|
+
}),
|
|
1690
|
+
data: payload
|
|
1691
|
+
};
|
|
1692
|
+
return metadata;
|
|
1693
|
+
}
|
|
1694
|
+
return __setAddOnsForGroup;
|
|
1695
|
+
}
|
|
1696
|
+
function validateAddOnsSelection(payload) {
|
|
1697
|
+
function __validateAddOnsSelection({ host }) {
|
|
1698
|
+
const metadata = {
|
|
1699
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1700
|
+
method: "POST",
|
|
1701
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection",
|
|
1702
|
+
packageName: PACKAGE_NAME,
|
|
1703
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1704
|
+
protoPath: "/v2/services/add-on-groups/validate-add-ons-selection",
|
|
1705
|
+
data: payload,
|
|
1706
|
+
host
|
|
1707
|
+
}),
|
|
1708
|
+
data: payload
|
|
1709
|
+
};
|
|
1710
|
+
return metadata;
|
|
1711
|
+
}
|
|
1712
|
+
return __validateAddOnsSelection;
|
|
1713
|
+
}
|
|
1483
1714
|
|
|
1484
1715
|
// src/bookings-services-v2-service-services.universal.ts
|
|
1485
1716
|
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
@@ -2892,6 +3123,184 @@ async function cloneService2(sourceServiceId) {
|
|
|
2892
3123
|
throw transformedError;
|
|
2893
3124
|
}
|
|
2894
3125
|
}
|
|
3126
|
+
async function createAddOnGroup2(addOnGroup, options) {
|
|
3127
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3128
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3129
|
+
addOnGroup,
|
|
3130
|
+
serviceId: options?.serviceId
|
|
3131
|
+
});
|
|
3132
|
+
const reqOpts = createAddOnGroup(payload);
|
|
3133
|
+
sideEffects?.onSiteCall?.();
|
|
3134
|
+
try {
|
|
3135
|
+
const result = await httpClient.request(reqOpts);
|
|
3136
|
+
sideEffects?.onSuccess?.(result);
|
|
3137
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3138
|
+
} catch (err) {
|
|
3139
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3140
|
+
err,
|
|
3141
|
+
{
|
|
3142
|
+
spreadPathsToArguments: {},
|
|
3143
|
+
explicitPathsToArguments: {
|
|
3144
|
+
addOnGroup: "$[0]",
|
|
3145
|
+
serviceId: "$[1].serviceId"
|
|
3146
|
+
},
|
|
3147
|
+
singleArgumentUnchanged: false
|
|
3148
|
+
},
|
|
3149
|
+
["addOnGroup", "options"]
|
|
3150
|
+
);
|
|
3151
|
+
sideEffects?.onError?.(err);
|
|
3152
|
+
throw transformedError;
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
3156
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3157
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3158
|
+
addOnGroupId,
|
|
3159
|
+
serviceId: options?.serviceId
|
|
3160
|
+
});
|
|
3161
|
+
const reqOpts = deleteAddOnGroup(payload);
|
|
3162
|
+
sideEffects?.onSiteCall?.();
|
|
3163
|
+
try {
|
|
3164
|
+
const result = await httpClient.request(reqOpts);
|
|
3165
|
+
sideEffects?.onSuccess?.(result);
|
|
3166
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3167
|
+
} catch (err) {
|
|
3168
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3169
|
+
err,
|
|
3170
|
+
{
|
|
3171
|
+
spreadPathsToArguments: {},
|
|
3172
|
+
explicitPathsToArguments: {
|
|
3173
|
+
addOnGroupId: "$[0]",
|
|
3174
|
+
serviceId: "$[1].serviceId"
|
|
3175
|
+
},
|
|
3176
|
+
singleArgumentUnchanged: false
|
|
3177
|
+
},
|
|
3178
|
+
["addOnGroupId", "options"]
|
|
3179
|
+
);
|
|
3180
|
+
sideEffects?.onError?.(err);
|
|
3181
|
+
throw transformedError;
|
|
3182
|
+
}
|
|
3183
|
+
}
|
|
3184
|
+
async function updateAddOnGroup2(addOnGroup, options) {
|
|
3185
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3186
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3187
|
+
addOnGroup,
|
|
3188
|
+
serviceId: options?.serviceId
|
|
3189
|
+
});
|
|
3190
|
+
const reqOpts = updateAddOnGroup(payload);
|
|
3191
|
+
sideEffects?.onSiteCall?.();
|
|
3192
|
+
try {
|
|
3193
|
+
const result = await httpClient.request(reqOpts);
|
|
3194
|
+
sideEffects?.onSuccess?.(result);
|
|
3195
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3196
|
+
} catch (err) {
|
|
3197
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3198
|
+
err,
|
|
3199
|
+
{
|
|
3200
|
+
spreadPathsToArguments: {},
|
|
3201
|
+
explicitPathsToArguments: {
|
|
3202
|
+
addOnGroup: "$[0]",
|
|
3203
|
+
serviceId: "$[1].serviceId"
|
|
3204
|
+
},
|
|
3205
|
+
singleArgumentUnchanged: false
|
|
3206
|
+
},
|
|
3207
|
+
["addOnGroup", "options"]
|
|
3208
|
+
);
|
|
3209
|
+
sideEffects?.onError?.(err);
|
|
3210
|
+
throw transformedError;
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
3214
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3215
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3216
|
+
serviceId,
|
|
3217
|
+
groupIds: options?.groupIds
|
|
3218
|
+
});
|
|
3219
|
+
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
3220
|
+
sideEffects?.onSiteCall?.();
|
|
3221
|
+
try {
|
|
3222
|
+
const result = await httpClient.request(reqOpts);
|
|
3223
|
+
sideEffects?.onSuccess?.(result);
|
|
3224
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3225
|
+
} catch (err) {
|
|
3226
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3227
|
+
err,
|
|
3228
|
+
{
|
|
3229
|
+
spreadPathsToArguments: {},
|
|
3230
|
+
explicitPathsToArguments: {
|
|
3231
|
+
serviceId: "$[0]",
|
|
3232
|
+
groupIds: "$[1].groupIds"
|
|
3233
|
+
},
|
|
3234
|
+
singleArgumentUnchanged: false
|
|
3235
|
+
},
|
|
3236
|
+
["serviceId", "options"]
|
|
3237
|
+
);
|
|
3238
|
+
sideEffects?.onError?.(err);
|
|
3239
|
+
throw transformedError;
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3242
|
+
async function setAddOnsForGroup2(serviceId, options) {
|
|
3243
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3244
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3245
|
+
serviceId,
|
|
3246
|
+
groupId: options?.groupId,
|
|
3247
|
+
addOnIds: options?.addOnIds
|
|
3248
|
+
});
|
|
3249
|
+
const reqOpts = setAddOnsForGroup(payload);
|
|
3250
|
+
sideEffects?.onSiteCall?.();
|
|
3251
|
+
try {
|
|
3252
|
+
const result = await httpClient.request(reqOpts);
|
|
3253
|
+
sideEffects?.onSuccess?.(result);
|
|
3254
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3255
|
+
} catch (err) {
|
|
3256
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3257
|
+
err,
|
|
3258
|
+
{
|
|
3259
|
+
spreadPathsToArguments: {},
|
|
3260
|
+
explicitPathsToArguments: {
|
|
3261
|
+
serviceId: "$[0]",
|
|
3262
|
+
groupId: "$[1].groupId",
|
|
3263
|
+
addOnIds: "$[1].addOnIds"
|
|
3264
|
+
},
|
|
3265
|
+
singleArgumentUnchanged: false
|
|
3266
|
+
},
|
|
3267
|
+
["serviceId", "options"]
|
|
3268
|
+
);
|
|
3269
|
+
sideEffects?.onError?.(err);
|
|
3270
|
+
throw transformedError;
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
async function validateAddOnsSelection2(serviceId, options) {
|
|
3274
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3275
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3276
|
+
serviceId,
|
|
3277
|
+
groupId: options?.groupId,
|
|
3278
|
+
addOnIds: options?.addOnIds
|
|
3279
|
+
});
|
|
3280
|
+
const reqOpts = validateAddOnsSelection(payload);
|
|
3281
|
+
sideEffects?.onSiteCall?.();
|
|
3282
|
+
try {
|
|
3283
|
+
const result = await httpClient.request(reqOpts);
|
|
3284
|
+
sideEffects?.onSuccess?.(result);
|
|
3285
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3286
|
+
} catch (err) {
|
|
3287
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3288
|
+
err,
|
|
3289
|
+
{
|
|
3290
|
+
spreadPathsToArguments: {},
|
|
3291
|
+
explicitPathsToArguments: {
|
|
3292
|
+
serviceId: "$[0]",
|
|
3293
|
+
groupId: "$[1].groupId",
|
|
3294
|
+
addOnIds: "$[1].addOnIds"
|
|
3295
|
+
},
|
|
3296
|
+
singleArgumentUnchanged: false
|
|
3297
|
+
},
|
|
3298
|
+
["serviceId", "options"]
|
|
3299
|
+
);
|
|
3300
|
+
sideEffects?.onError?.(err);
|
|
3301
|
+
throw transformedError;
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
2895
3304
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2896
3305
|
0 && (module.exports = {
|
|
2897
3306
|
Action,
|
|
@@ -2927,20 +3336,26 @@ async function cloneService2(sourceServiceId) {
|
|
|
2927
3336
|
bulkUpdateServicesByFilter,
|
|
2928
3337
|
cloneService,
|
|
2929
3338
|
countServices,
|
|
3339
|
+
createAddOnGroup,
|
|
2930
3340
|
createService,
|
|
3341
|
+
deleteAddOnGroup,
|
|
2931
3342
|
deleteService,
|
|
2932
3343
|
disablePricingPlansForService,
|
|
2933
3344
|
enablePricingPlansForService,
|
|
2934
3345
|
getService,
|
|
3346
|
+
listAddOnGroupsByServiceId,
|
|
2935
3347
|
queryBookingForms,
|
|
2936
3348
|
queryCategories,
|
|
2937
3349
|
queryLocations,
|
|
2938
3350
|
queryPolicies,
|
|
2939
3351
|
queryServices,
|
|
2940
3352
|
searchServices,
|
|
3353
|
+
setAddOnsForGroup,
|
|
2941
3354
|
setCustomSlug,
|
|
2942
3355
|
setServiceLocations,
|
|
3356
|
+
updateAddOnGroup,
|
|
2943
3357
|
updateService,
|
|
3358
|
+
validateAddOnsSelection,
|
|
2944
3359
|
validateSlug
|
|
2945
3360
|
});
|
|
2946
3361
|
//# sourceMappingURL=index.typings.js.map
|