@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.
@@ -1,6 +1,6 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { S as Service, B as BulkCreateServicesOptions, a as BulkCreateServicesResponse, U as UpdateService, b as BulkUpdateServicesOptions, c as BulkUpdateServicesResponse, d as BulkUpdateServicesByFilterOptions, e as BulkUpdateServicesByFilterResponse, D as DeleteServiceOptions, f as BulkDeleteServicesOptions, g as BulkDeleteServicesResponse, h as BulkDeleteServicesByFilterOptions, i as BulkDeleteServicesByFilterResponse, j as ServicesQueryBuilder, k as ServiceSearch, l as SearchServicesResponse, C as CursorQuery, Q as QueryPoliciesResponse, m as QueryBookingFormsOptions, n as QueryBookingFormsResponse, o as CountServicesOptions, p as CountServicesResponse, q as QueryLocationsOptions, r as QueryLocationsResponse, s as QueryCategoriesOptions, t as QueryCategoriesResponse, L as Location, u as SetServiceLocationsOptions, v as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, w as DisablePricingPlansForServiceOptions, x as DisablePricingPlansForServiceResponse, y as SetCustomSlugOptions, z as SetCustomSlugResponse, V as ValidateSlugOptions, A as ValidateSlugResponse, F as CloneServiceResponse, G as ServiceCreatedEnvelope, H as ServiceDeletedEnvelope, I as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-D4FwlNie.js';
3
- export { a1 as Action, bi as ActionEvent, bu as AddOn, bv as AddOnAddOnInfoOneOf, b4 as AddOnDetails, b3 as AddOnGroup, bw as AddOnGroupDetail, dv as Address, dw as AddressHint, av as AddressLocation, cc as Aggregation, cs as AggregationData, cd as AggregationKindOneOf, cL as AggregationResults, cM as AggregationResultsResultOneOf, cz as AggregationResultsScalarResult, _ as AggregationType, bK as ApplicationError, aN as AvailabilityConstraints, dK as BaseEventMetadata, dk as Behavior, dl as BehaviorBehaviorOneOf, dg as Benefit, df as BenefitNotification, a6 as BenefitType, aC as BookAfterStartPolicy, cR as BookingForm, ay as BookingPolicy, cP as BookingPolicyWithServices, bL as BulkActionMetadata, bH as BulkCreateServicesRequest, b$ as BulkDeleteServicesByFilterRequest, b_ as BulkDeleteServicesRequest, bI as BulkServiceResult, bW as BulkUpdateServicesByFilterRequest, bU as BulkUpdateServicesRequest, aw as BusinessLocationOptions, cX as BusinessLocations, dy as BusinessSchedule, aI as CancellationFeePolicy, aD as CancellationPolicy, aJ as CancellationWindow, aK as CancellationWindowFeeOneOf, dt as Categories, dd as Category, dc as CategoryNotification, a5 as CategoryNotificationEvent, dF as ChangeContext, dG as ChangeContextPayloadOneOf, a3 as CloneErrors, db as CloneServiceRequest, as as CommonAddress, at as CommonAddressStreetOneOf, aq as Conferencing, cT as ConnectedService, dD as ConsentPolicy, cU as CountServicesRequest, bm as CreateAddOnGroupRequest, bn as CreateAddOnGroupResponse, bC as CreateServiceRequest, bD as CreateServiceResponse, a8 as CrudType, c5 as CursorPaging, cr as CursorPagingMetadata, cO as CursorQueryPagingMethodOneOf, ca as CursorSearch, cb as CursorSearchPagingMethodOneOf, c8 as Cursors, ax as CustomLocationOptions, cY as CustomLocations, am as CustomPayment, cZ as CustomerLocations, ck as DateHistogramAggregation, cH as DateHistogramResult, cJ as DateHistogramResults, aa as DayOfWeek, b8 as Delete, bo as DeleteAddOnGroupRequest, bp as DeleteAddOnGroupResponse, bX as DeleteServiceRequest, bZ as DeleteServiceResponse, d8 as DisablePricingPlansForServiceRequest, di as Discount, dj as DiscountDiscountOneOf, bc as DomainEvent, bd as DomainEventBodyOneOf, aO as Duration, de as Empty, d6 as EnablePricingPlansForServiceRequest, be as EntityCreatedEvent, bh as EntityDeletedEvent, bg as EntityUpdatedEvent, dh as EntryPass, a7 as Event, dL as EventMetadata, a_ as ExtendedFields, bG as FieldViolation, ak as FixedPayment, ag as Form, cS as FormDetails, ah as FormSettings, dx as GeoCoordinates, bO as GetServiceAvailabilityConstraintsRequest, bP as GetServiceAvailabilityConstraintsResponse, bM as GetServiceRequest, bN as GetServiceResponse, co as GroupByAggregation, cp as GroupByAggregationKindOneOf, cI as GroupByValueResults, dn as HtmlSitePublished, bk as IdentificationData, bl as IdentificationDataIdOneOf, cf as IncludeMissingValuesOptions, Z as Interval, d7 as InvalidPricingPlan, a2 as InvalidSlugError, bJ as ItemMetadata, b0 as Keyword, aA as LimitEarlyBookingPolicy, aB as LimitLateBookingPolicy, bs as ListAddOnGroupsByServiceIdRequest, bt as ListAddOnGroupsByServiceIdResponse, du as Locale, ar as LocationOptionsOneOf, K as LocationType, bV as MaskedService, ac as Media, ad as MediaItem, ae as MediaItemItemOneOf, bj as MessageEnvelope, T as MissingValues, $ as Mode, al as Money, d5 as MoveToNewLocationsOptions, dB as Multilingual, cn as NestedAggregation, cl as NestedAggregationItem, cm as NestedAggregationItemKindOneOf, cv as NestedAggregationResults, cw as NestedAggregationResultsResultOneOf, Y as NestedAggregationType, cE as NestedResultValue, cF as NestedResultValueResultOneOf, cK as NestedResults, cA as NestedValueAggregationResult, ap as OnlineBooking, dp as Page, c4 as Paging, c7 as PagingMetadataV2, bY as ParticipantNotification, aG as ParticipantsPolicy, ai as Payment, ao as PaymentOptions, aj as PaymentRateOneOf, a9 as PlacementType, az as PolicyDescription, ds as Properties, dH as PropertiesChange, cQ as QueryBookingFormsRequest, c$ as QueryCategoriesFilter, c_ as QueryCategoriesRequest, cW as QueryLocationsFilter, cV as QueryLocationsRequest, cN as QueryPoliciesRequest, d0 as QueryServicesMultiLanguageRequest, d1 as QueryServicesMultiLanguageResponse, c0 as QueryServicesRequest, c6 as QueryServicesResponse, c1 as QueryV2, c2 as QueryV2PagingMethodOneOf, ci as RangeAggregation, cu as RangeAggregationResult, ce as RangeBucket, cC as RangeResult, cy as RangeResults, R as RateType, b5 as ReindexMessage, b6 as ReindexMessageActionOneOf, d3 as RemovedLocationSessionsAction, d4 as RemovedLocationSessionsActionActionOptionsOneOf, a0 as RequestedFields, aE as ReschedulePolicy, ab as ResolutionMethod, aT as ResourceGroup, aU as ResourceIds, aX as ResourceType, aH as ResourcesPolicy, bf as RestoreInfo, cG as Results, aL as SaveCreditCardPolicy, cj as ScalarAggregation, cD as ScalarResult, X as ScalarType, aM as Schedule, b9 as Schema, cq as SearchDetails, c9 as SearchServicesRequest, a$ as SeoSchema, bQ as ServiceAvailabilityConstraints, aV as ServiceResource, aW as ServiceResourceSelectionOneOf, dN as ServiceSearchSpec, J as ServiceType, dM as ServicesQueryResult, bb as ServicesUrlsChanged, bx as SetAddOnsForGroupRequest, by as SetAddOnsForGroupResponse, ba as SetCustomSlugEvent, d9 as SetCustomSlugRequest, d2 as SetServiceLocationsRequest, b2 as Settings, dJ as SiteCloned, dI as SiteCreated, dr as SitePropertiesEvent, dq as SitePropertiesNotification, aY as Slug, P as SortDirection, N as SortOrder, O as SortType, c3 as Sorting, dA as SpecialHourPeriod, bR as SplitInterval, aQ as StaffMediaItem, aR as StaffMediaItemItemOneOf, aP as StaffMember, aS as StaffMemberDetails, a4 as Status, au as StreetAddress, dC as SupportedLanguage, b1 as Tag, dz as TimePeriod, dE as Translation, aZ as URLs, bq as UpdateAddOnGroupRequest, br as UpdateAddOnGroupResponse, bS as UpdateServiceRequest, bT as UpdateServiceResponse, b7 as Upsert, dm as UserDomainInfoChangedEvent, af as V2Category, M as V2RequestedFields, bz as ValidateAddOnsSelectionRequest, bA as ValidateAddOnsSelectionResponse, bE as ValidateServiceRequest, bF as ValidateServiceResponse, da as ValidateSlugRequest, bB as ValidationResult, cg as ValueAggregation, ch as ValueAggregationOptionsOneOf, ct as ValueAggregationResult, cB as ValueResult, cx as ValueResults, an as VariedPayment, aF as WaitlistPolicy, W as WebhookIdentityType } from './bookings-services-v2-service-services.universal-D4FwlNie.js';
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.js';
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.js';
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 | undefined): Promise<BulkCreateServicesResponse>;
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 | undefined): Promise<BulkUpdateServicesResponse>;
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 | undefined): Promise<void>;
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 | undefined): Promise<BulkDeleteServicesResponse>;
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 | undefined): Promise<BulkDeleteServicesByFilterResponse>;
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 - WQL, search or aggregation expression.
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 | undefined): Promise<QueryBookingFormsResponse>;
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 | undefined): Promise<CountServicesResponse>;
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 | undefined): Promise<QueryLocationsResponse>;
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 | undefined): Promise<QueryCategoriesResponse>;
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 | undefined): Promise<SetServiceLocationsResponse>;
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 | undefined): Promise<DisablePricingPlansForServiceResponse>;
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 | undefined): Promise<SetCustomSlugResponse>;
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 | undefined): Promise<ValidateSlugResponse>;
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">;