@wix/auto_sdk_bookings_services 1.0.71 → 1.0.72
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/index.d.ts +50 -29
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.mts +50 -29
- package/build/es/index.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +50 -29
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/es/index.d.mts +50 -29
- package/build/internal/es/index.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { S as Service, C as CreateServiceValidationErrors, B as BulkCreateServicesOptions, a as BulkCreateServicesResponse, U as UpdateService, b as UpdateServiceValidationErrors, c as BulkUpdateServicesOptions, d as BulkUpdateServicesResponse, e as BulkUpdateServicesByFilterOptions, f as BulkUpdateServicesByFilterResponse, D as DeleteServiceOptions, g as BulkDeleteServicesOptions, h as BulkDeleteServicesResponse, i as BulkDeleteServicesByFilterOptions, j as BulkDeleteServicesByFilterResponse, k as ServicesQueryBuilder, l as ServiceSearch, m as SearchServicesResponse, n as CursorQuery, Q as QueryPoliciesResponse, o as QueryBookingFormsOptions, p as QueryBookingFormsResponse, q as QueryBookingFormsApplicationErrors, r as CountServicesOptions, s as CountServicesResponse, t as QueryLocationsOptions, u as QueryLocationsResponse, v as QueryCategoriesOptions, w as QueryCategoriesResponse, L as Location, x as SetServiceLocationsOptions, y as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, z as EnablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, F as DisablePricingPlansForServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, H as SetCustomSlugOptions, I as SetCustomSlugResponse, J as SetCustomSlugApplicationErrors, K as SetCustomSlugValidationErrors, V as ValidateSlugOptions, M as ValidateSlugResponse, N as CloneServiceResponse, O as ServiceCreatedEnvelope, P as ServiceDeletedEnvelope, R as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-DYRSxPXw.mjs';
|
|
3
3
|
export { a8 as Action, bp as ActionEvent, bB as AddOn, bC as AddOnAddOnInfoOneOf, bb as AddOnDetails, ba as AddOnGroup, bD as AddOnGroupDetail, dC as Address, dD as AddressHint, aC as AddressLocation, cj as Aggregation, cz as AggregationData, ck as AggregationKindOneOf, cS as AggregationResults, cT as AggregationResultsResultOneOf, cG as AggregationResultsScalarResult, a5 as AggregationType, bR as ApplicationError, aU as AvailabilityConstraints, dR as BaseEventMetadata, ds as Behavior, dt as BehaviorBehaviorOneOf, dn as Benefit, dm as BenefitNotification, ad as BenefitType, aJ as BookAfterStartPolicy, cY as BookingForm, aF as BookingPolicy, cW as BookingPolicyWithServices, bS as BulkActionMetadata, bO as BulkCreateServicesRequest, c6 as BulkDeleteServicesByFilterRequest, c5 as BulkDeleteServicesRequest, bP as BulkServiceResult, c1 as BulkUpdateServicesByFilterRequest, b$ as BulkUpdateServicesRequest, aD as BusinessLocationOptions, d2 as BusinessLocations, dF as BusinessSchedule, aP as CancellationFeePolicy, aK as CancellationPolicy, aQ as CancellationWindow, aR as CancellationWindowFeeOneOf, dA as Categories, dk as Category, dj as CategoryNotification, ac as CategoryNotificationEvent, dM as ChangeContext, dN as ChangeContextPayloadOneOf, aa as CloneErrors, di as CloneServiceRequest, az as CommonAddress, aA as CommonAddressStreetOneOf, ax as Conferencing, c_ as ConnectedService, dK as ConsentPolicy, c$ as CountServicesRequest, bt as CreateAddOnGroupRequest, bu as CreateAddOnGroupResponse, bJ as CreateServiceRequest, bK as CreateServiceResponse, af as CrudType, cc as CursorPaging, cy as CursorPagingMetadata, cV as CursorQueryPagingMethodOneOf, ch as CursorSearch, ci as CursorSearchPagingMethodOneOf, cf as Cursors, aE as CustomLocationOptions, d3 as CustomLocations, at as CustomPayment, d4 as CustomerLocations, cr as DateHistogramAggregation, cO as DateHistogramResult, cQ as DateHistogramResults, ah as DayOfWeek, bf as Delete, bv as DeleteAddOnGroupRequest, bw as DeleteAddOnGroupResponse, c2 as DeleteServiceRequest, c4 as DeleteServiceResponse, df as DisablePricingPlansForServiceRequest, dq as Discount, dr as DiscountDiscountOneOf, bj as DomainEvent, bk as DomainEventBodyOneOf, aV as Duration, dl as Empty, dd as EnablePricingPlansForServiceRequest, bl as EntityCreatedEvent, bo as EntityDeletedEvent, bn as EntityUpdatedEvent, dp as EntryPass, ae as Event, dS as EventMetadata, b5 as ExtendedFields, bN as FieldViolation, ar as FixedPayment, an as Form, cZ as FormDetails, ao as FormSettings, dE as GeoCoordinates, bV as GetServiceAvailabilityConstraintsRequest, bW as GetServiceAvailabilityConstraintsResponse, bT as GetServiceRequest, bU as GetServiceResponse, cv as GroupByAggregation, cw as GroupByAggregationKindOneOf, cP as GroupByValueResults, dv as HtmlSitePublished, br as IdentificationData, bs as IdentificationDataIdOneOf, cm as IncludeMissingValuesOptions, a4 as Interval, de as InvalidPricingPlan, a9 as InvalidSlugError, bQ as ItemMetadata, b7 as Keyword, aH as LimitEarlyBookingPolicy, aI as LimitLateBookingPolicy, bz as ListAddOnGroupsByServiceIdRequest, bA as ListAddOnGroupsByServiceIdResponse, dB as Locale, ay as LocationOptionsOneOf, X as LocationType, c0 as MaskedService, aj as Media, ak as MediaItem, al as MediaItemItemOneOf, bq as MessageEnvelope, a1 as MissingValues, a6 as Mode, as as Money, dc as MoveToNewLocationsOptions, dI as Multilingual, cu as NestedAggregation, cs as NestedAggregationItem, ct as NestedAggregationItemKindOneOf, cC as NestedAggregationResults, cD as NestedAggregationResultsResultOneOf, a3 as NestedAggregationType, cL as NestedResultValue, cM as NestedResultValueResultOneOf, cR as NestedResults, cH as NestedValueAggregationResult, aw as OnlineBooking, dw as Page, cb as Paging, ce as PagingMetadataV2, c3 as ParticipantNotification, aN as ParticipantsPolicy, ap as Payment, av as PaymentOptions, aq as PaymentRateOneOf, ag as PlacementType, aG as PolicyDescription, dz as Properties, dO as PropertiesChange, cX as QueryBookingFormsRequest, d6 as QueryCategoriesFilter, d5 as QueryCategoriesRequest, d1 as QueryLocationsFilter, d0 as QueryLocationsRequest, cU as QueryPoliciesRequest, d7 as QueryServicesMultiLanguageRequest, d8 as QueryServicesMultiLanguageResponse, c7 as QueryServicesRequest, cd as QueryServicesResponse, c8 as QueryV2, c9 as QueryV2PagingMethodOneOf, cp as RangeAggregation, cB as RangeAggregationResult, cl as RangeBucket, cJ as RangeResult, cF as RangeResults, W as RateType, bc as ReindexMessage, bd as ReindexMessageActionOneOf, da as RemovedLocationSessionsAction, db as RemovedLocationSessionsActionActionOptionsOneOf, a7 as RequestedFields, aL as ReschedulePolicy, ai as ResolutionMethod, a_ as ResourceGroup, a$ as ResourceIds, b2 as ResourceType, aO as ResourcesPolicy, bm as RestoreInfo, cN as Results, aS as SaveCreditCardPolicy, cq as ScalarAggregation, cK as ScalarResult, a2 as ScalarType, aT as Schedule, bg as Schema, cx as SearchDetails, cg as SearchServicesRequest, b6 as SeoSchema, bX as ServiceAvailabilityConstraints, b0 as ServiceResource, b1 as ServiceResourceSelectionOneOf, dU as ServiceSearchSpec, T as ServiceType, dT as ServicesQueryResult, bi as ServicesUrlsChanged, bE as SetAddOnsForGroupRequest, bF as SetAddOnsForGroupResponse, bh as SetCustomSlugEvent, dg as SetCustomSlugRequest, d9 as SetServiceLocationsRequest, b9 as Settings, dQ as SiteCloned, dP as SiteCreated, dy as SitePropertiesEvent, dx as SitePropertiesNotification, b3 as Slug, a0 as SortDirection, _ as SortOrder, $ as SortType, ca as Sorting, dH as SpecialHourPeriod, bY as SplitInterval, aX as StaffMediaItem, aY as StaffMediaItemItemOneOf, aW as StaffMember, aZ as StaffMemberDetails, ab as Status, aB as StreetAddress, dJ as SupportedLanguage, b8 as Tag, dG as TimePeriod, dL as Translation, b4 as URLs, bx as UpdateAddOnGroupRequest, by as UpdateAddOnGroupResponse, bZ as UpdateServiceRequest, b_ as UpdateServiceResponse, be as Upsert, du as UserDomainInfoChangedEvent, am as V2Category, Z as V2RequestedFields, bG as ValidateAddOnsSelectionRequest, bH as ValidateAddOnsSelectionResponse, bL as ValidateServiceRequest, bM as ValidateServiceResponse, dh as ValidateSlugRequest, bI as ValidationResult, cn as ValueAggregation, co as ValueAggregationOptionsOneOf, cA as ValueAggregationResult, cI as ValueResult, cE as ValueResults, au as VariedPayment, aM as WaitlistPolicy, Y as WebhookIdentityType } from './bookings-services-v2-service-services.universal-DYRSxPXw.mjs';
|
|
4
4
|
|
|
5
|
+
type ServiceNonNullablePaths = `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.business.address.streetAddress.number` | `locations.${number}.business.address.streetAddress.name` | `locations.${number}.business.address.streetAddress.apt` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `mainSlug.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`;
|
|
5
6
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
6
7
|
interface CreateServiceSignature {
|
|
7
8
|
/**
|
|
@@ -50,8 +51,8 @@ interface CreateServiceSignature {
|
|
|
50
51
|
* @param - Service to create.
|
|
51
52
|
* @returns Created service.
|
|
52
53
|
*/
|
|
53
|
-
(service: Service): Promise<Service & {
|
|
54
|
-
__validationErrorsType?: CreateServiceValidationErrors
|
|
54
|
+
(service: Service): Promise<NonNullablePaths<Service, ServiceNonNullablePaths> & {
|
|
55
|
+
__validationErrorsType?: CreateServiceValidationErrors;
|
|
55
56
|
}>;
|
|
56
57
|
}
|
|
57
58
|
declare function bulkCreateServices$1(httpClient: HttpClient): BulkCreateServicesSignature;
|
|
@@ -65,7 +66,9 @@ interface BulkCreateServicesSignature {
|
|
|
65
66
|
* for more details.
|
|
66
67
|
* @param - Services to create.
|
|
67
68
|
*/
|
|
68
|
-
(services: Service[], options?: BulkCreateServicesOptions
|
|
69
|
+
(services: Service[], options?: BulkCreateServicesOptions): Promise<NonNullablePaths<BulkCreateServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
70
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
71
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
69
72
|
}
|
|
70
73
|
declare function getService$1(httpClient: HttpClient): GetServiceSignature;
|
|
71
74
|
interface GetServiceSignature {
|
|
@@ -74,7 +77,7 @@ interface GetServiceSignature {
|
|
|
74
77
|
* @param - ID of the service to retrieve.
|
|
75
78
|
* @returns Retrieved service.
|
|
76
79
|
*/
|
|
77
|
-
(serviceId: string): Promise<Service
|
|
80
|
+
(serviceId: string): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
78
81
|
}
|
|
79
82
|
declare function updateService$1(httpClient: HttpClient): UpdateServiceSignature;
|
|
80
83
|
interface UpdateServiceSignature {
|
|
@@ -98,8 +101,8 @@ interface UpdateServiceSignature {
|
|
|
98
101
|
* @param - Service ID.
|
|
99
102
|
* @returns Updated service.
|
|
100
103
|
*/
|
|
101
|
-
(_id: string, service: UpdateService): Promise<Service & {
|
|
102
|
-
__validationErrorsType?: UpdateServiceValidationErrors
|
|
104
|
+
(_id: string, service: NonNullablePaths<UpdateService, `revision`>): Promise<NonNullablePaths<Service, ServiceNonNullablePaths> & {
|
|
105
|
+
__validationErrorsType?: UpdateServiceValidationErrors;
|
|
103
106
|
}>;
|
|
104
107
|
}
|
|
105
108
|
declare function bulkUpdateServices$1(httpClient: HttpClient): BulkUpdateServicesSignature;
|
|
@@ -115,7 +118,9 @@ interface BulkUpdateServicesSignature {
|
|
|
115
118
|
* The call succeeds even if one or more individual services can't be updated.
|
|
116
119
|
* Information about failures is returned in `bulkActionMetadata`.
|
|
117
120
|
*/
|
|
118
|
-
(options?: BulkUpdateServicesOptions |
|
|
121
|
+
(options?: NonNullablePaths<BulkUpdateServicesOptions, `services.${number}.service` | `services.${number}.service._id` | `services.${number}.service.revision`>): Promise<NonNullablePaths<BulkUpdateServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
122
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
123
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
119
124
|
}
|
|
120
125
|
declare function bulkUpdateServicesByFilter$1(httpClient: HttpClient): BulkUpdateServicesByFilterSignature;
|
|
121
126
|
interface BulkUpdateServicesByFilterSignature {
|
|
@@ -135,7 +140,7 @@ interface BulkUpdateServicesByFilterSignature {
|
|
|
135
140
|
* Information about failures is returned in `bulkActionMetadata`.
|
|
136
141
|
* @param - Filter to identify the services to update.
|
|
137
142
|
*/
|
|
138
|
-
(filter: Record<string, any>, options: BulkUpdateServicesByFilterOptions): Promise<BulkUpdateServicesByFilterResponse
|
|
143
|
+
(filter: Record<string, any>, options: NonNullablePaths<BulkUpdateServicesByFilterOptions, `service`>): Promise<NonNullablePaths<BulkUpdateServicesByFilterResponse, `jobId`>>;
|
|
139
144
|
}
|
|
140
145
|
declare function deleteService$1(httpClient: HttpClient): DeleteServiceSignature;
|
|
141
146
|
interface DeleteServiceSignature {
|
|
@@ -148,7 +153,7 @@ interface DeleteServiceSignature {
|
|
|
148
153
|
* @param - ID of the service to delete.
|
|
149
154
|
* @param - Allows you to configure how to handle the deleted service's future sessions and how to notify the sessions participants.
|
|
150
155
|
*/
|
|
151
|
-
(serviceId: string, options?: DeleteServiceOptions
|
|
156
|
+
(serviceId: string, options?: DeleteServiceOptions): Promise<void>;
|
|
152
157
|
}
|
|
153
158
|
declare function bulkDeleteServices$1(httpClient: HttpClient): BulkDeleteServicesSignature;
|
|
154
159
|
interface BulkDeleteServicesSignature {
|
|
@@ -164,7 +169,9 @@ interface BulkDeleteServicesSignature {
|
|
|
164
169
|
* Information about failures is returned in `bulkActionMetadata`.
|
|
165
170
|
* @param - IDs of the services to delete.
|
|
166
171
|
*/
|
|
167
|
-
(ids: string[], options?: BulkDeleteServicesOptions
|
|
172
|
+
(ids: string[], options?: BulkDeleteServicesOptions): Promise<NonNullablePaths<BulkDeleteServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
173
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
174
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
168
175
|
}
|
|
169
176
|
declare function bulkDeleteServicesByFilter$1(httpClient: HttpClient): BulkDeleteServicesByFilterSignature;
|
|
170
177
|
interface BulkDeleteServicesByFilterSignature {
|
|
@@ -187,7 +194,7 @@ interface BulkDeleteServicesByFilterSignature {
|
|
|
187
194
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
188
195
|
* @param - Filter to identify the services that need to be deleted.
|
|
189
196
|
*/
|
|
190
|
-
(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions
|
|
197
|
+
(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions): Promise<NonNullablePaths<BulkDeleteServicesByFilterResponse, `jobId`>>;
|
|
191
198
|
}
|
|
192
199
|
declare function queryServices$1(httpClient: HttpClient): QueryServicesSignature;
|
|
193
200
|
interface QueryServicesSignature {
|
|
@@ -245,7 +252,9 @@ interface SearchServicesSignature {
|
|
|
245
252
|
*
|
|
246
253
|
* Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting)) for complete filter and sorting options.
|
|
247
254
|
*/
|
|
248
|
-
(search: ServiceSearch): Promise<SearchServicesResponse
|
|
255
|
+
(search: ServiceSearch): Promise<NonNullablePaths<SearchServicesResponse, {
|
|
256
|
+
[P in ServiceNonNullablePaths]: `services.${number}.${P}`;
|
|
257
|
+
}[ServiceNonNullablePaths] | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`>>;
|
|
249
258
|
}
|
|
250
259
|
declare function queryPolicies$1(httpClient: HttpClient): QueryPoliciesSignature;
|
|
251
260
|
interface QueryPoliciesSignature {
|
|
@@ -289,7 +298,9 @@ interface QueryPoliciesSignature {
|
|
|
289
298
|
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
290
299
|
* for all supported filters and sorting options.
|
|
291
300
|
*/
|
|
292
|
-
(query: CursorQuery): Promise<QueryPoliciesResponse
|
|
301
|
+
(query: CursorQuery): Promise<NonNullablePaths<QueryPoliciesResponse, `bookingPolicies` | `bookingPolicies.${number}.bookingPolicy._id` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.enabled` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.description` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.capacity` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicies.${number}.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicies.${number}.bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.saveCreditCardPolicy.enabled` | {
|
|
302
|
+
[P in ServiceNonNullablePaths]: `bookingPolicies.${number}.connectedServices.${number}.${P}`;
|
|
303
|
+
}[ServiceNonNullablePaths] | `bookingPolicies.${number}.totalServiceCount`>>;
|
|
293
304
|
}
|
|
294
305
|
declare function queryBookingForms$1(httpClient: HttpClient): QueryBookingFormsSignature;
|
|
295
306
|
interface QueryBookingFormsSignature {
|
|
@@ -339,8 +350,8 @@ interface QueryBookingFormsSignature {
|
|
|
339
350
|
* form filters ([REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object))
|
|
340
351
|
* for all supported filters and sorting options.
|
|
341
352
|
*/
|
|
342
|
-
(query: CursorQuery, options?: QueryBookingFormsOptions
|
|
343
|
-
__applicationErrorsType?: QueryBookingFormsApplicationErrors
|
|
353
|
+
(query: CursorQuery, options?: QueryBookingFormsOptions): Promise<NonNullablePaths<QueryBookingFormsResponse, `bookingForms` | `bookingForms.${number}.formDetails.formId` | `bookingForms.${number}.totalServiceCount` | `defaultBookingForm.formDetails.formId` | `defaultBookingForm.connectedServices` | `defaultBookingForm.totalServiceCount`> & {
|
|
354
|
+
__applicationErrorsType?: QueryBookingFormsApplicationErrors;
|
|
344
355
|
}>;
|
|
345
356
|
}
|
|
346
357
|
declare function countServices$1(httpClient: HttpClient): CountServicesSignature;
|
|
@@ -356,7 +367,7 @@ interface CountServicesSignature {
|
|
|
356
367
|
* To learn about working with filters in general, see
|
|
357
368
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)
|
|
358
369
|
*/
|
|
359
|
-
(options?: CountServicesOptions
|
|
370
|
+
(options?: CountServicesOptions): Promise<NonNullablePaths<CountServicesResponse, `count`>>;
|
|
360
371
|
}
|
|
361
372
|
declare function queryLocations$1(httpClient: HttpClient): QueryLocationsSignature;
|
|
362
373
|
interface QueryLocationsSignature {
|
|
@@ -386,7 +397,7 @@ interface QueryLocationsSignature {
|
|
|
386
397
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
387
398
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
388
399
|
*/
|
|
389
|
-
(options?: QueryLocationsOptions
|
|
400
|
+
(options?: QueryLocationsOptions): Promise<NonNullablePaths<QueryLocationsResponse, `businessLocations.exists` | `businessLocations.locations` | `businessLocations.locations.${number}.business._id` | `businessLocations.locations.${number}.business.name` | `businessLocations.locations.${number}.business.address.streetAddress.number` | `businessLocations.locations.${number}.business.address.streetAddress.name` | `businessLocations.locations.${number}.business.address.streetAddress.apt` | `businessLocations.locations.${number}.custom._id` | `businessLocations.locations.${number}._id` | `businessLocations.locations.${number}.type` | `customLocations.exists` | `customerLocations.exists`>>;
|
|
390
401
|
}
|
|
391
402
|
declare function queryCategories$1(httpClient: HttpClient): QueryCategoriesSignature;
|
|
392
403
|
interface QueryCategoriesSignature {
|
|
@@ -415,7 +426,7 @@ interface QueryCategoriesSignature {
|
|
|
415
426
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
416
427
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
417
428
|
*/
|
|
418
|
-
(options?: QueryCategoriesOptions
|
|
429
|
+
(options?: QueryCategoriesOptions): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}._id`>>;
|
|
419
430
|
}
|
|
420
431
|
declare function setServiceLocations$1(httpClient: HttpClient): SetServiceLocationsSignature;
|
|
421
432
|
interface SetServiceLocationsSignature {
|
|
@@ -471,7 +482,9 @@ interface SetServiceLocationsSignature {
|
|
|
471
482
|
* @param - ID of the service.
|
|
472
483
|
* @param - List of locations replacing existing service locations. Omitting an existing location removes it from the service. Specify `removedLocationSessionsAction` to determine the handling of future sessions scheduled at that location.
|
|
473
484
|
*/
|
|
474
|
-
(serviceId: string, locations: Location[], options?: SetServiceLocationsOptions
|
|
485
|
+
(serviceId: string, locations: Location[], options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, {
|
|
486
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
487
|
+
}[ServiceNonNullablePaths]>>;
|
|
475
488
|
}
|
|
476
489
|
declare function enablePricingPlansForService$1(httpClient: HttpClient): EnablePricingPlansForServiceSignature;
|
|
477
490
|
interface EnablePricingPlansForServiceSignature {
|
|
@@ -491,8 +504,10 @@ interface EnablePricingPlansForServiceSignature {
|
|
|
491
504
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
|
|
492
505
|
* to add to the service's `payment.pricingPlanIds` array.
|
|
493
506
|
*/
|
|
494
|
-
(serviceId: string, pricingPlanIds: string[]): Promise<EnablePricingPlansForServiceResponse
|
|
495
|
-
|
|
507
|
+
(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, {
|
|
508
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
509
|
+
}[ServiceNonNullablePaths]> & {
|
|
510
|
+
__applicationErrorsType?: EnablePricingPlansForServiceApplicationErrors;
|
|
496
511
|
}>;
|
|
497
512
|
}
|
|
498
513
|
declare function disablePricingPlansForService$1(httpClient: HttpClient): DisablePricingPlansForServiceSignature;
|
|
@@ -508,8 +523,10 @@ interface DisablePricingPlansForServiceSignature {
|
|
|
508
523
|
* able to book the service, as they will have no payment options available.
|
|
509
524
|
* @param - ID of the service to update.
|
|
510
525
|
*/
|
|
511
|
-
(serviceId: string, options?: DisablePricingPlansForServiceOptions
|
|
512
|
-
|
|
526
|
+
(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, {
|
|
527
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
528
|
+
}[ServiceNonNullablePaths]> & {
|
|
529
|
+
__applicationErrorsType?: DisablePricingPlansForServiceApplicationErrors;
|
|
513
530
|
}>;
|
|
514
531
|
}
|
|
515
532
|
declare function setCustomSlug$1(httpClient: HttpClient): SetCustomSlugSignature;
|
|
@@ -524,9 +541,11 @@ interface SetCustomSlugSignature {
|
|
|
524
541
|
* - Another service has used the slug in the past.
|
|
525
542
|
* @param - ID of the service for which to update the active slug.
|
|
526
543
|
*/
|
|
527
|
-
(serviceId: string, options?: SetCustomSlugOptions
|
|
528
|
-
|
|
529
|
-
|
|
544
|
+
(serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | {
|
|
545
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
546
|
+
}[ServiceNonNullablePaths]> & {
|
|
547
|
+
__applicationErrorsType?: SetCustomSlugApplicationErrors;
|
|
548
|
+
__validationErrorsType?: SetCustomSlugValidationErrors;
|
|
530
549
|
}>;
|
|
531
550
|
}
|
|
532
551
|
declare function validateSlug$1(httpClient: HttpClient): ValidateSlugSignature;
|
|
@@ -543,7 +562,7 @@ interface ValidateSlugSignature {
|
|
|
543
562
|
* The call fails if at least one of the checks fails.
|
|
544
563
|
* @param - IO of the service to check custom slug validity for.
|
|
545
564
|
*/
|
|
546
|
-
(serviceId: string, options?: ValidateSlugOptions
|
|
565
|
+
(serviceId: string, options?: ValidateSlugOptions): Promise<NonNullablePaths<ValidateSlugResponse, `valid` | `errors`>>;
|
|
547
566
|
}
|
|
548
567
|
declare function cloneService$1(httpClient: HttpClient): CloneServiceSignature;
|
|
549
568
|
interface CloneServiceSignature {
|
|
@@ -610,7 +629,9 @@ interface CloneServiceSignature {
|
|
|
610
629
|
* after cloning the service, customers will be unable to book the service.
|
|
611
630
|
* @param - ID of the service to clone.
|
|
612
631
|
*/
|
|
613
|
-
(sourceServiceId: string): Promise<CloneServiceResponse
|
|
632
|
+
(sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, {
|
|
633
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
634
|
+
}[ServiceNonNullablePaths] | `errors`>>;
|
|
614
635
|
}
|
|
615
636
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
616
637
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|