@wix/auto_sdk_bookings_services 1.0.64 → 1.0.66
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-D4FwlNie.d.ts → bookings-services-v2-service-services.universal-o2tHvpTk.d.ts} +230 -160
- package/build/cjs/index.d.ts +47 -25
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +202 -134
- package/build/es/{bookings-services-v2-service-services.universal-D4FwlNie.d.mts → bookings-services-v2-service-services.universal-o2tHvpTk.d.mts} +230 -160
- package/build/es/index.d.mts +47 -25
- package/build/es/index.mjs.map +1 -1
- package/build/es/meta.d.mts +202 -134
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-D4FwlNie.d.ts → bookings-services-v2-service-services.universal-o2tHvpTk.d.ts} +230 -160
- package/build/internal/cjs/index.d.ts +47 -25
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +202 -134
- package/build/internal/es/{bookings-services-v2-service-services.universal-D4FwlNie.d.mts → bookings-services-v2-service-services.universal-o2tHvpTk.d.mts} +230 -160
- package/build/internal/es/index.d.mts +47 -25
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +202 -134
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { S as Service, B as BulkCreateServicesOptions,
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { S as Service, a as ServiceNonNullablePaths, B as BulkCreateServicesOptions, b as BulkCreateServicesResponse, U as UpdateService, 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, C as CursorQuery, Q as QueryPoliciesResponse, n as QueryBookingFormsOptions, o as QueryBookingFormsResponse, p as CountServicesOptions, q as CountServicesResponse, r as QueryLocationsOptions, s as QueryLocationsResponse, t as QueryCategoriesOptions, u as QueryCategoriesResponse, L as Location, v as SetServiceLocationsOptions, w as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, x as DisablePricingPlansForServiceOptions, y as DisablePricingPlansForServiceResponse, z as SetCustomSlugOptions, A as SetCustomSlugResponse, V as ValidateSlugOptions, F as ValidateSlugResponse, G as CloneServiceResponse, H as ServiceCreatedEnvelope, I as ServiceDeletedEnvelope, J as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-o2tHvpTk.mjs';
|
|
3
|
+
export { a2 as Action, bj as ActionEvent, bv as AddOn, bw as AddOnAddOnInfoOneOf, b5 as AddOnDetails, b4 as AddOnGroup, bx as AddOnGroupDetail, dw as Address, dx as AddressHint, aw as AddressLocation, cd as Aggregation, ct as AggregationData, ce as AggregationKindOneOf, cM as AggregationResults, cN as AggregationResultsResultOneOf, cA as AggregationResultsScalarResult, $ as AggregationType, bL as ApplicationError, aO as AvailabilityConstraints, dL as BaseEventMetadata, dl as Behavior, dm as BehaviorBehaviorOneOf, dh as Benefit, dg as BenefitNotification, a7 as BenefitType, aD as BookAfterStartPolicy, cS as BookingForm, az as BookingPolicy, cQ as BookingPolicyWithServices, bM as BulkActionMetadata, bI as BulkCreateServicesRequest, c0 as BulkDeleteServicesByFilterRequest, b$ as BulkDeleteServicesRequest, bJ as BulkServiceResult, bX as BulkUpdateServicesByFilterRequest, bV as BulkUpdateServicesRequest, ax as BusinessLocationOptions, cY as BusinessLocations, dz as BusinessSchedule, aJ as CancellationFeePolicy, aE as CancellationPolicy, aK as CancellationWindow, aL as CancellationWindowFeeOneOf, du as Categories, de as Category, dd as CategoryNotification, a6 as CategoryNotificationEvent, dG as ChangeContext, dH as ChangeContextPayloadOneOf, a4 as CloneErrors, dc as CloneServiceRequest, at as CommonAddress, au as CommonAddressStreetOneOf, ar as Conferencing, cU as ConnectedService, dE as ConsentPolicy, cV as CountServicesRequest, bn as CreateAddOnGroupRequest, bo as CreateAddOnGroupResponse, bD as CreateServiceRequest, bE as CreateServiceResponse, a9 as CrudType, c6 as CursorPaging, cs as CursorPagingMetadata, cP as CursorQueryPagingMethodOneOf, cb as CursorSearch, cc as CursorSearchPagingMethodOneOf, c9 as Cursors, ay as CustomLocationOptions, cZ as CustomLocations, an as CustomPayment, c_ as CustomerLocations, cl as DateHistogramAggregation, cI as DateHistogramResult, cK as DateHistogramResults, ab as DayOfWeek, b9 as Delete, bp as DeleteAddOnGroupRequest, bq as DeleteAddOnGroupResponse, bY as DeleteServiceRequest, b_ as DeleteServiceResponse, d9 as DisablePricingPlansForServiceRequest, dj as Discount, dk as DiscountDiscountOneOf, bd as DomainEvent, be as DomainEventBodyOneOf, aP as Duration, df as Empty, d7 as EnablePricingPlansForServiceRequest, bf as EntityCreatedEvent, bi as EntityDeletedEvent, bh as EntityUpdatedEvent, di as EntryPass, a8 as Event, dM as EventMetadata, a$ as ExtendedFields, bH as FieldViolation, al as FixedPayment, ah as Form, cT as FormDetails, ai as FormSettings, dy as GeoCoordinates, bP as GetServiceAvailabilityConstraintsRequest, bQ as GetServiceAvailabilityConstraintsResponse, bN as GetServiceRequest, bO as GetServiceResponse, cp as GroupByAggregation, cq as GroupByAggregationKindOneOf, cJ as GroupByValueResults, dp as HtmlSitePublished, bl as IdentificationData, bm as IdentificationDataIdOneOf, cg as IncludeMissingValuesOptions, _ as Interval, d8 as InvalidPricingPlan, a3 as InvalidSlugError, bK as ItemMetadata, b1 as Keyword, aB as LimitEarlyBookingPolicy, aC as LimitLateBookingPolicy, bt as ListAddOnGroupsByServiceIdRequest, bu as ListAddOnGroupsByServiceIdResponse, dv as Locale, as as LocationOptionsOneOf, M as LocationType, bW as MaskedService, ad as Media, ae as MediaItem, af as MediaItemItemOneOf, bk as MessageEnvelope, X as MissingValues, a0 as Mode, am as Money, d6 as MoveToNewLocationsOptions, dC as Multilingual, co as NestedAggregation, cm as NestedAggregationItem, cn as NestedAggregationItemKindOneOf, cw as NestedAggregationResults, cx as NestedAggregationResultsResultOneOf, Z as NestedAggregationType, cF as NestedResultValue, cG as NestedResultValueResultOneOf, cL as NestedResults, cB as NestedValueAggregationResult, aq as OnlineBooking, dq as Page, c5 as Paging, c8 as PagingMetadataV2, bZ as ParticipantNotification, aH as ParticipantsPolicy, aj as Payment, ap as PaymentOptions, ak as PaymentRateOneOf, aa as PlacementType, aA as PolicyDescription, dt as Properties, dI as PropertiesChange, cR as QueryBookingFormsRequest, d0 as QueryCategoriesFilter, c$ as QueryCategoriesRequest, cX as QueryLocationsFilter, cW as QueryLocationsRequest, cO as QueryPoliciesRequest, d1 as QueryServicesMultiLanguageRequest, d2 as QueryServicesMultiLanguageResponse, c1 as QueryServicesRequest, c7 as QueryServicesResponse, c2 as QueryV2, c3 as QueryV2PagingMethodOneOf, cj as RangeAggregation, cv as RangeAggregationResult, cf as RangeBucket, cD as RangeResult, cz as RangeResults, R as RateType, b6 as ReindexMessage, b7 as ReindexMessageActionOneOf, d4 as RemovedLocationSessionsAction, d5 as RemovedLocationSessionsActionActionOptionsOneOf, a1 as RequestedFields, aF as ReschedulePolicy, ac as ResolutionMethod, aU as ResourceGroup, aV as ResourceIds, aY as ResourceType, aI as ResourcesPolicy, bg as RestoreInfo, cH as Results, aM as SaveCreditCardPolicy, ck as ScalarAggregation, cE as ScalarResult, Y as ScalarType, aN as Schedule, ba as Schema, cr as SearchDetails, ca as SearchServicesRequest, b0 as SeoSchema, bR as ServiceAvailabilityConstraints, aW as ServiceResource, aX as ServiceResourceSelectionOneOf, dO as ServiceSearchSpec, K as ServiceType, dN as ServicesQueryResult, bc as ServicesUrlsChanged, by as SetAddOnsForGroupRequest, bz as SetAddOnsForGroupResponse, bb as SetCustomSlugEvent, da as SetCustomSlugRequest, d3 as SetServiceLocationsRequest, b3 as Settings, dK as SiteCloned, dJ as SiteCreated, ds as SitePropertiesEvent, dr as SitePropertiesNotification, aZ as Slug, T as SortDirection, O as SortOrder, P as SortType, c4 as Sorting, dB as SpecialHourPeriod, bS as SplitInterval, aR as StaffMediaItem, aS as StaffMediaItemItemOneOf, aQ as StaffMember, aT as StaffMemberDetails, a5 as Status, av as StreetAddress, dD as SupportedLanguage, b2 as Tag, dA as TimePeriod, dF as Translation, a_ as URLs, br as UpdateAddOnGroupRequest, bs as UpdateAddOnGroupResponse, bT as UpdateServiceRequest, bU as UpdateServiceResponse, b8 as Upsert, dn as UserDomainInfoChangedEvent, ag as V2Category, N as V2RequestedFields, bA as ValidateAddOnsSelectionRequest, bB as ValidateAddOnsSelectionResponse, bF as ValidateServiceRequest, bG as ValidateServiceResponse, db as ValidateSlugRequest, bC as ValidationResult, ch as ValueAggregation, ci as ValueAggregationOptionsOneOf, cu as ValueAggregationResult, cC as ValueResult, cy as ValueResults, ao as VariedPayment, aG as WaitlistPolicy, W as WebhookIdentityType } from './bookings-services-v2-service-services.universal-o2tHvpTk.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
6
6
|
interface CreateServiceSignature {
|
|
@@ -50,7 +50,7 @@ interface CreateServiceSignature {
|
|
|
50
50
|
* @param - Service to create.
|
|
51
51
|
* @returns Created service.
|
|
52
52
|
*/
|
|
53
|
-
(service: Service): Promise<Service
|
|
53
|
+
(service: Service): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
54
54
|
}
|
|
55
55
|
declare function bulkCreateServices$1(httpClient: HttpClient): BulkCreateServicesSignature;
|
|
56
56
|
interface BulkCreateServicesSignature {
|
|
@@ -63,7 +63,9 @@ interface BulkCreateServicesSignature {
|
|
|
63
63
|
* for more details.
|
|
64
64
|
* @param - Services to create.
|
|
65
65
|
*/
|
|
66
|
-
(services: Service[], options?: BulkCreateServicesOptions
|
|
66
|
+
(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` | {
|
|
67
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
68
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
67
69
|
}
|
|
68
70
|
declare function getService$1(httpClient: HttpClient): GetServiceSignature;
|
|
69
71
|
interface GetServiceSignature {
|
|
@@ -72,7 +74,7 @@ interface GetServiceSignature {
|
|
|
72
74
|
* @param - ID of the service to retrieve.
|
|
73
75
|
* @returns Retrieved service.
|
|
74
76
|
*/
|
|
75
|
-
(serviceId: string): Promise<Service
|
|
77
|
+
(serviceId: string): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
76
78
|
}
|
|
77
79
|
declare function updateService$1(httpClient: HttpClient): UpdateServiceSignature;
|
|
78
80
|
interface UpdateServiceSignature {
|
|
@@ -96,7 +98,7 @@ interface UpdateServiceSignature {
|
|
|
96
98
|
* @param - Service ID.
|
|
97
99
|
* @returns Updated service.
|
|
98
100
|
*/
|
|
99
|
-
(_id: string, service: UpdateService): Promise<Service
|
|
101
|
+
(_id: string, service: NonNullablePaths<UpdateService, `revision`>): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
100
102
|
}
|
|
101
103
|
declare function bulkUpdateServices$1(httpClient: HttpClient): BulkUpdateServicesSignature;
|
|
102
104
|
interface BulkUpdateServicesSignature {
|
|
@@ -111,7 +113,9 @@ interface BulkUpdateServicesSignature {
|
|
|
111
113
|
* The call succeeds even if one or more individual services can't be updated.
|
|
112
114
|
* Information about failures is returned in `bulkActionMetadata`.
|
|
113
115
|
*/
|
|
114
|
-
(options?: BulkUpdateServicesOptions |
|
|
116
|
+
(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` | {
|
|
117
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
118
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
115
119
|
}
|
|
116
120
|
declare function bulkUpdateServicesByFilter$1(httpClient: HttpClient): BulkUpdateServicesByFilterSignature;
|
|
117
121
|
interface BulkUpdateServicesByFilterSignature {
|
|
@@ -131,7 +135,7 @@ interface BulkUpdateServicesByFilterSignature {
|
|
|
131
135
|
* Information about failures is returned in `bulkActionMetadata`.
|
|
132
136
|
* @param - Filter to identify the services to update.
|
|
133
137
|
*/
|
|
134
|
-
(filter: Record<string, any>, options: BulkUpdateServicesByFilterOptions): Promise<BulkUpdateServicesByFilterResponse
|
|
138
|
+
(filter: Record<string, any>, options: NonNullablePaths<BulkUpdateServicesByFilterOptions, `service`>): Promise<NonNullablePaths<BulkUpdateServicesByFilterResponse, `jobId`>>;
|
|
135
139
|
}
|
|
136
140
|
declare function deleteService$1(httpClient: HttpClient): DeleteServiceSignature;
|
|
137
141
|
interface DeleteServiceSignature {
|
|
@@ -144,7 +148,7 @@ interface DeleteServiceSignature {
|
|
|
144
148
|
* @param - ID of the service to delete.
|
|
145
149
|
* @param - Allows you to configure how to handle the deleted service's future sessions and how to notify the sessions participants.
|
|
146
150
|
*/
|
|
147
|
-
(serviceId: string, options?: DeleteServiceOptions
|
|
151
|
+
(serviceId: string, options?: DeleteServiceOptions): Promise<void>;
|
|
148
152
|
}
|
|
149
153
|
declare function bulkDeleteServices$1(httpClient: HttpClient): BulkDeleteServicesSignature;
|
|
150
154
|
interface BulkDeleteServicesSignature {
|
|
@@ -160,7 +164,9 @@ interface BulkDeleteServicesSignature {
|
|
|
160
164
|
* Information about failures is returned in `bulkActionMetadata`.
|
|
161
165
|
* @param - IDs of the services to delete.
|
|
162
166
|
*/
|
|
163
|
-
(ids: string[], options?: BulkDeleteServicesOptions
|
|
167
|
+
(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` | {
|
|
168
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
169
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
164
170
|
}
|
|
165
171
|
declare function bulkDeleteServicesByFilter$1(httpClient: HttpClient): BulkDeleteServicesByFilterSignature;
|
|
166
172
|
interface BulkDeleteServicesByFilterSignature {
|
|
@@ -183,7 +189,7 @@ interface BulkDeleteServicesByFilterSignature {
|
|
|
183
189
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
184
190
|
* @param - Filter to identify the services that need to be deleted.
|
|
185
191
|
*/
|
|
186
|
-
(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions
|
|
192
|
+
(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions): Promise<NonNullablePaths<BulkDeleteServicesByFilterResponse, `jobId`>>;
|
|
187
193
|
}
|
|
188
194
|
declare function queryServices$1(httpClient: HttpClient): QueryServicesSignature;
|
|
189
195
|
interface QueryServicesSignature {
|
|
@@ -237,9 +243,13 @@ interface SearchServicesSignature {
|
|
|
237
243
|
* ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language))
|
|
238
244
|
* and *Sorting and Paging*
|
|
239
245
|
* ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language#the-sort-array) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging)).
|
|
240
|
-
* @param -
|
|
246
|
+
* @param - Search criteria including filter, sort, aggregations, and paging options.
|
|
247
|
+
*
|
|
248
|
+
* 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.
|
|
241
249
|
*/
|
|
242
|
-
(search: ServiceSearch): Promise<SearchServicesResponse
|
|
250
|
+
(search: ServiceSearch): Promise<NonNullablePaths<SearchServicesResponse, {
|
|
251
|
+
[P in ServiceNonNullablePaths]: `services.${number}.${P}`;
|
|
252
|
+
}[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`>>;
|
|
243
253
|
}
|
|
244
254
|
declare function queryPolicies$1(httpClient: HttpClient): QueryPoliciesSignature;
|
|
245
255
|
interface QueryPoliciesSignature {
|
|
@@ -283,7 +293,9 @@ interface QueryPoliciesSignature {
|
|
|
283
293
|
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
284
294
|
* for all supported filters and sorting options.
|
|
285
295
|
*/
|
|
286
|
-
(query: CursorQuery): Promise<QueryPoliciesResponse
|
|
296
|
+
(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` | {
|
|
297
|
+
[P in ServiceNonNullablePaths]: `bookingPolicies.${number}.connectedServices.${number}.${P}`;
|
|
298
|
+
}[ServiceNonNullablePaths] | `bookingPolicies.${number}.totalServiceCount`>>;
|
|
287
299
|
}
|
|
288
300
|
declare function queryBookingForms$1(httpClient: HttpClient): QueryBookingFormsSignature;
|
|
289
301
|
interface QueryBookingFormsSignature {
|
|
@@ -333,7 +345,7 @@ interface QueryBookingFormsSignature {
|
|
|
333
345
|
* form filters ([REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object))
|
|
334
346
|
* for all supported filters and sorting options.
|
|
335
347
|
*/
|
|
336
|
-
(query: CursorQuery, options?: QueryBookingFormsOptions
|
|
348
|
+
(query: CursorQuery, options?: QueryBookingFormsOptions): Promise<NonNullablePaths<QueryBookingFormsResponse, `bookingForms` | `bookingForms.${number}.formDetails.formId` | `bookingForms.${number}.totalServiceCount` | `defaultBookingForm.formDetails.formId` | `defaultBookingForm.connectedServices` | `defaultBookingForm.totalServiceCount`>>;
|
|
337
349
|
}
|
|
338
350
|
declare function countServices$1(httpClient: HttpClient): CountServicesSignature;
|
|
339
351
|
interface CountServicesSignature {
|
|
@@ -348,7 +360,7 @@ interface CountServicesSignature {
|
|
|
348
360
|
* To learn about working with filters in general, see
|
|
349
361
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)
|
|
350
362
|
*/
|
|
351
|
-
(options?: CountServicesOptions
|
|
363
|
+
(options?: CountServicesOptions): Promise<NonNullablePaths<CountServicesResponse, `count`>>;
|
|
352
364
|
}
|
|
353
365
|
declare function queryLocations$1(httpClient: HttpClient): QueryLocationsSignature;
|
|
354
366
|
interface QueryLocationsSignature {
|
|
@@ -378,7 +390,7 @@ interface QueryLocationsSignature {
|
|
|
378
390
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
379
391
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
380
392
|
*/
|
|
381
|
-
(options?: QueryLocationsOptions
|
|
393
|
+
(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`>>;
|
|
382
394
|
}
|
|
383
395
|
declare function queryCategories$1(httpClient: HttpClient): QueryCategoriesSignature;
|
|
384
396
|
interface QueryCategoriesSignature {
|
|
@@ -407,7 +419,7 @@ interface QueryCategoriesSignature {
|
|
|
407
419
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
408
420
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
409
421
|
*/
|
|
410
|
-
(options?: QueryCategoriesOptions
|
|
422
|
+
(options?: QueryCategoriesOptions): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}._id`>>;
|
|
411
423
|
}
|
|
412
424
|
declare function setServiceLocations$1(httpClient: HttpClient): SetServiceLocationsSignature;
|
|
413
425
|
interface SetServiceLocationsSignature {
|
|
@@ -463,7 +475,9 @@ interface SetServiceLocationsSignature {
|
|
|
463
475
|
* @param - ID of the service.
|
|
464
476
|
* @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.
|
|
465
477
|
*/
|
|
466
|
-
(serviceId: string, locations: Location[], options?: SetServiceLocationsOptions
|
|
478
|
+
(serviceId: string, locations: Location[], options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, {
|
|
479
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
480
|
+
}[ServiceNonNullablePaths]>>;
|
|
467
481
|
}
|
|
468
482
|
declare function enablePricingPlansForService$1(httpClient: HttpClient): EnablePricingPlansForServiceSignature;
|
|
469
483
|
interface EnablePricingPlansForServiceSignature {
|
|
@@ -483,7 +497,9 @@ interface EnablePricingPlansForServiceSignature {
|
|
|
483
497
|
* ([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))
|
|
484
498
|
* to add to the service's `payment.pricingPlanIds` array.
|
|
485
499
|
*/
|
|
486
|
-
(serviceId: string, pricingPlanIds: string[]): Promise<EnablePricingPlansForServiceResponse
|
|
500
|
+
(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, {
|
|
501
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
502
|
+
}[ServiceNonNullablePaths]>>;
|
|
487
503
|
}
|
|
488
504
|
declare function disablePricingPlansForService$1(httpClient: HttpClient): DisablePricingPlansForServiceSignature;
|
|
489
505
|
interface DisablePricingPlansForServiceSignature {
|
|
@@ -498,7 +514,9 @@ interface DisablePricingPlansForServiceSignature {
|
|
|
498
514
|
* able to book the service, as they will have no payment options available.
|
|
499
515
|
* @param - ID of the service to update.
|
|
500
516
|
*/
|
|
501
|
-
(serviceId: string, options?: DisablePricingPlansForServiceOptions
|
|
517
|
+
(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, {
|
|
518
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
519
|
+
}[ServiceNonNullablePaths]>>;
|
|
502
520
|
}
|
|
503
521
|
declare function setCustomSlug$1(httpClient: HttpClient): SetCustomSlugSignature;
|
|
504
522
|
interface SetCustomSlugSignature {
|
|
@@ -512,7 +530,9 @@ interface SetCustomSlugSignature {
|
|
|
512
530
|
* - Another service has used the slug in the past.
|
|
513
531
|
* @param - ID of the service for which to update the active slug.
|
|
514
532
|
*/
|
|
515
|
-
(serviceId: string, options?: SetCustomSlugOptions
|
|
533
|
+
(serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | {
|
|
534
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
535
|
+
}[ServiceNonNullablePaths]>>;
|
|
516
536
|
}
|
|
517
537
|
declare function validateSlug$1(httpClient: HttpClient): ValidateSlugSignature;
|
|
518
538
|
interface ValidateSlugSignature {
|
|
@@ -528,7 +548,7 @@ interface ValidateSlugSignature {
|
|
|
528
548
|
* The call fails if at least one of the checks fails.
|
|
529
549
|
* @param - IO of the service to check custom slug validity for.
|
|
530
550
|
*/
|
|
531
|
-
(serviceId: string, options?: ValidateSlugOptions
|
|
551
|
+
(serviceId: string, options?: ValidateSlugOptions): Promise<NonNullablePaths<ValidateSlugResponse, `valid` | `errors`>>;
|
|
532
552
|
}
|
|
533
553
|
declare function cloneService$1(httpClient: HttpClient): CloneServiceSignature;
|
|
534
554
|
interface CloneServiceSignature {
|
|
@@ -595,7 +615,9 @@ interface CloneServiceSignature {
|
|
|
595
615
|
* after cloning the service, customers will be unable to book the service.
|
|
596
616
|
* @param - ID of the service to clone.
|
|
597
617
|
*/
|
|
598
|
-
(sourceServiceId: string): Promise<CloneServiceResponse
|
|
618
|
+
(sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, {
|
|
619
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
620
|
+
}[ServiceNonNullablePaths] | `errors`>>;
|
|
599
621
|
}
|
|
600
622
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
601
623
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|