@wix/auto_sdk_bookings_services 1.0.70 → 1.0.71

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.
@@ -1,8 +1,7 @@
1
- import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
1
+ import { HttpClient, 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.js';
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.js';
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`;
6
5
  declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
7
6
  interface CreateServiceSignature {
8
7
  /**
@@ -51,8 +50,8 @@ interface CreateServiceSignature {
51
50
  * @param - Service to create.
52
51
  * @returns Created service.
53
52
  */
54
- (service: Service): Promise<NonNullablePaths<Service, ServiceNonNullablePaths> & {
55
- __validationErrorsType?: CreateServiceValidationErrors;
53
+ (service: Service): Promise<Service & {
54
+ __validationErrorsType?: CreateServiceValidationErrors | undefined;
56
55
  }>;
57
56
  }
58
57
  declare function bulkCreateServices$1(httpClient: HttpClient): BulkCreateServicesSignature;
@@ -66,9 +65,7 @@ interface BulkCreateServicesSignature {
66
65
  * for more details.
67
66
  * @param - Services to create.
68
67
  */
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`>>;
68
+ (services: Service[], options?: BulkCreateServicesOptions | undefined): Promise<BulkCreateServicesResponse>;
72
69
  }
73
70
  declare function getService$1(httpClient: HttpClient): GetServiceSignature;
74
71
  interface GetServiceSignature {
@@ -77,7 +74,7 @@ interface GetServiceSignature {
77
74
  * @param - ID of the service to retrieve.
78
75
  * @returns Retrieved service.
79
76
  */
80
- (serviceId: string): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
77
+ (serviceId: string): Promise<Service>;
81
78
  }
82
79
  declare function updateService$1(httpClient: HttpClient): UpdateServiceSignature;
83
80
  interface UpdateServiceSignature {
@@ -101,8 +98,8 @@ interface UpdateServiceSignature {
101
98
  * @param - Service ID.
102
99
  * @returns Updated service.
103
100
  */
104
- (_id: string, service: NonNullablePaths<UpdateService, `revision`>): Promise<NonNullablePaths<Service, ServiceNonNullablePaths> & {
105
- __validationErrorsType?: UpdateServiceValidationErrors;
101
+ (_id: string, service: UpdateService): Promise<Service & {
102
+ __validationErrorsType?: UpdateServiceValidationErrors | undefined;
106
103
  }>;
107
104
  }
108
105
  declare function bulkUpdateServices$1(httpClient: HttpClient): BulkUpdateServicesSignature;
@@ -118,9 +115,7 @@ interface BulkUpdateServicesSignature {
118
115
  * The call succeeds even if one or more individual services can't be updated.
119
116
  * Information about failures is returned in `bulkActionMetadata`.
120
117
  */
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`>>;
118
+ (options?: BulkUpdateServicesOptions | undefined): Promise<BulkUpdateServicesResponse>;
124
119
  }
125
120
  declare function bulkUpdateServicesByFilter$1(httpClient: HttpClient): BulkUpdateServicesByFilterSignature;
126
121
  interface BulkUpdateServicesByFilterSignature {
@@ -140,7 +135,7 @@ interface BulkUpdateServicesByFilterSignature {
140
135
  * Information about failures is returned in `bulkActionMetadata`.
141
136
  * @param - Filter to identify the services to update.
142
137
  */
143
- (filter: Record<string, any>, options: NonNullablePaths<BulkUpdateServicesByFilterOptions, `service`>): Promise<NonNullablePaths<BulkUpdateServicesByFilterResponse, `jobId`>>;
138
+ (filter: Record<string, any>, options: BulkUpdateServicesByFilterOptions): Promise<BulkUpdateServicesByFilterResponse>;
144
139
  }
145
140
  declare function deleteService$1(httpClient: HttpClient): DeleteServiceSignature;
146
141
  interface DeleteServiceSignature {
@@ -153,7 +148,7 @@ interface DeleteServiceSignature {
153
148
  * @param - ID of the service to delete.
154
149
  * @param - Allows you to configure how to handle the deleted service's future sessions and how to notify the sessions participants.
155
150
  */
156
- (serviceId: string, options?: DeleteServiceOptions): Promise<void>;
151
+ (serviceId: string, options?: DeleteServiceOptions | undefined): Promise<void>;
157
152
  }
158
153
  declare function bulkDeleteServices$1(httpClient: HttpClient): BulkDeleteServicesSignature;
159
154
  interface BulkDeleteServicesSignature {
@@ -169,9 +164,7 @@ interface BulkDeleteServicesSignature {
169
164
  * Information about failures is returned in `bulkActionMetadata`.
170
165
  * @param - IDs of the services to delete.
171
166
  */
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`>>;
167
+ (ids: string[], options?: BulkDeleteServicesOptions | undefined): Promise<BulkDeleteServicesResponse>;
175
168
  }
176
169
  declare function bulkDeleteServicesByFilter$1(httpClient: HttpClient): BulkDeleteServicesByFilterSignature;
177
170
  interface BulkDeleteServicesByFilterSignature {
@@ -194,7 +187,7 @@ interface BulkDeleteServicesByFilterSignature {
194
187
  * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
195
188
  * @param - Filter to identify the services that need to be deleted.
196
189
  */
197
- (filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions): Promise<NonNullablePaths<BulkDeleteServicesByFilterResponse, `jobId`>>;
190
+ (filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions | undefined): Promise<BulkDeleteServicesByFilterResponse>;
198
191
  }
199
192
  declare function queryServices$1(httpClient: HttpClient): QueryServicesSignature;
200
193
  interface QueryServicesSignature {
@@ -252,9 +245,7 @@ interface SearchServicesSignature {
252
245
  *
253
246
  * 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.
254
247
  */
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`>>;
248
+ (search: ServiceSearch): Promise<SearchServicesResponse>;
258
249
  }
259
250
  declare function queryPolicies$1(httpClient: HttpClient): QueryPoliciesSignature;
260
251
  interface QueryPoliciesSignature {
@@ -298,9 +289,7 @@ interface QueryPoliciesSignature {
298
289
  * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
299
290
  * for all supported filters and sorting options.
300
291
  */
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`>>;
292
+ (query: CursorQuery): Promise<QueryPoliciesResponse>;
304
293
  }
305
294
  declare function queryBookingForms$1(httpClient: HttpClient): QueryBookingFormsSignature;
306
295
  interface QueryBookingFormsSignature {
@@ -350,8 +339,8 @@ interface QueryBookingFormsSignature {
350
339
  * form filters ([REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object))
351
340
  * for all supported filters and sorting options.
352
341
  */
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;
342
+ (query: CursorQuery, options?: QueryBookingFormsOptions | undefined): Promise<QueryBookingFormsResponse & {
343
+ __applicationErrorsType?: QueryBookingFormsApplicationErrors | undefined;
355
344
  }>;
356
345
  }
357
346
  declare function countServices$1(httpClient: HttpClient): CountServicesSignature;
@@ -367,7 +356,7 @@ interface CountServicesSignature {
367
356
  * To learn about working with filters in general, see
368
357
  * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)
369
358
  */
370
- (options?: CountServicesOptions): Promise<NonNullablePaths<CountServicesResponse, `count`>>;
359
+ (options?: CountServicesOptions | undefined): Promise<CountServicesResponse>;
371
360
  }
372
361
  declare function queryLocations$1(httpClient: HttpClient): QueryLocationsSignature;
373
362
  interface QueryLocationsSignature {
@@ -397,7 +386,7 @@ interface QueryLocationsSignature {
397
386
  * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
398
387
  * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
399
388
  */
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`>>;
389
+ (options?: QueryLocationsOptions | undefined): Promise<QueryLocationsResponse>;
401
390
  }
402
391
  declare function queryCategories$1(httpClient: HttpClient): QueryCategoriesSignature;
403
392
  interface QueryCategoriesSignature {
@@ -426,7 +415,7 @@ interface QueryCategoriesSignature {
426
415
  * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
427
416
  * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
428
417
  */
429
- (options?: QueryCategoriesOptions): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}._id`>>;
418
+ (options?: QueryCategoriesOptions | undefined): Promise<QueryCategoriesResponse>;
430
419
  }
431
420
  declare function setServiceLocations$1(httpClient: HttpClient): SetServiceLocationsSignature;
432
421
  interface SetServiceLocationsSignature {
@@ -482,9 +471,7 @@ interface SetServiceLocationsSignature {
482
471
  * @param - ID of the service.
483
472
  * @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.
484
473
  */
485
- (serviceId: string, locations: Location[], options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, {
486
- [P in ServiceNonNullablePaths]: `service.${P}`;
487
- }[ServiceNonNullablePaths]>>;
474
+ (serviceId: string, locations: Location[], options?: SetServiceLocationsOptions | undefined): Promise<SetServiceLocationsResponse>;
488
475
  }
489
476
  declare function enablePricingPlansForService$1(httpClient: HttpClient): EnablePricingPlansForServiceSignature;
490
477
  interface EnablePricingPlansForServiceSignature {
@@ -504,10 +491,8 @@ interface EnablePricingPlansForServiceSignature {
504
491
  * ([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))
505
492
  * to add to the service's `payment.pricingPlanIds` array.
506
493
  */
507
- (serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, {
508
- [P in ServiceNonNullablePaths]: `service.${P}`;
509
- }[ServiceNonNullablePaths]> & {
510
- __applicationErrorsType?: EnablePricingPlansForServiceApplicationErrors;
494
+ (serviceId: string, pricingPlanIds: string[]): Promise<EnablePricingPlansForServiceResponse & {
495
+ __applicationErrorsType?: EnablePricingPlansForServiceApplicationErrors | undefined;
511
496
  }>;
512
497
  }
513
498
  declare function disablePricingPlansForService$1(httpClient: HttpClient): DisablePricingPlansForServiceSignature;
@@ -523,10 +508,8 @@ interface DisablePricingPlansForServiceSignature {
523
508
  * able to book the service, as they will have no payment options available.
524
509
  * @param - ID of the service to update.
525
510
  */
526
- (serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, {
527
- [P in ServiceNonNullablePaths]: `service.${P}`;
528
- }[ServiceNonNullablePaths]> & {
529
- __applicationErrorsType?: DisablePricingPlansForServiceApplicationErrors;
511
+ (serviceId: string, options?: DisablePricingPlansForServiceOptions | undefined): Promise<DisablePricingPlansForServiceResponse & {
512
+ __applicationErrorsType?: DisablePricingPlansForServiceApplicationErrors | undefined;
530
513
  }>;
531
514
  }
532
515
  declare function setCustomSlug$1(httpClient: HttpClient): SetCustomSlugSignature;
@@ -541,11 +524,9 @@ interface SetCustomSlugSignature {
541
524
  * - Another service has used the slug in the past.
542
525
  * @param - ID of the service for which to update the active slug.
543
526
  */
544
- (serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | {
545
- [P in ServiceNonNullablePaths]: `service.${P}`;
546
- }[ServiceNonNullablePaths]> & {
547
- __applicationErrorsType?: SetCustomSlugApplicationErrors;
548
- __validationErrorsType?: SetCustomSlugValidationErrors;
527
+ (serviceId: string, options?: SetCustomSlugOptions | undefined): Promise<SetCustomSlugResponse & {
528
+ __applicationErrorsType?: SetCustomSlugApplicationErrors | undefined;
529
+ __validationErrorsType?: SetCustomSlugValidationErrors | undefined;
549
530
  }>;
550
531
  }
551
532
  declare function validateSlug$1(httpClient: HttpClient): ValidateSlugSignature;
@@ -562,7 +543,7 @@ interface ValidateSlugSignature {
562
543
  * The call fails if at least one of the checks fails.
563
544
  * @param - IO of the service to check custom slug validity for.
564
545
  */
565
- (serviceId: string, options?: ValidateSlugOptions): Promise<NonNullablePaths<ValidateSlugResponse, `valid` | `errors`>>;
546
+ (serviceId: string, options?: ValidateSlugOptions | undefined): Promise<ValidateSlugResponse>;
566
547
  }
567
548
  declare function cloneService$1(httpClient: HttpClient): CloneServiceSignature;
568
549
  interface CloneServiceSignature {
@@ -629,9 +610,7 @@ interface CloneServiceSignature {
629
610
  * after cloning the service, customers will be unable to book the service.
630
611
  * @param - ID of the service to clone.
631
612
  */
632
- (sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, {
633
- [P in ServiceNonNullablePaths]: `service.${P}`;
634
- }[ServiceNonNullablePaths] | `errors`>>;
613
+ (sourceServiceId: string): Promise<CloneServiceResponse>;
635
614
  }
636
615
  declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
637
616
  declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;