@wix/auto_sdk_bookings_services 1.0.68 → 1.0.70

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.
Files changed (29) hide show
  1. package/build/cjs/{bookings-services-v2-service-services.universal-Cy9SqUQp.d.ts → bookings-services-v2-service-services.universal-DYRSxPXw.d.ts} +835 -2
  2. package/build/cjs/index.d.ts +58 -24
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +48 -0
  5. package/build/cjs/index.typings.js +2946 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -1
  8. package/build/es/{bookings-services-v2-service-services.universal-Cy9SqUQp.d.mts → bookings-services-v2-service-services.universal-DYRSxPXw.d.mts} +835 -2
  9. package/build/es/index.d.mts +58 -24
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/index.typings.d.mts +48 -0
  12. package/build/es/index.typings.mjs +2875 -0
  13. package/build/es/index.typings.mjs.map +1 -0
  14. package/build/es/meta.d.mts +1 -1
  15. package/build/internal/cjs/{bookings-services-v2-service-services.universal-Cy9SqUQp.d.ts → bookings-services-v2-service-services.universal-DYRSxPXw.d.ts} +835 -2
  16. package/build/internal/cjs/index.d.ts +58 -24
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/index.typings.d.ts +48 -0
  19. package/build/internal/cjs/index.typings.js +2946 -0
  20. package/build/internal/cjs/index.typings.js.map +1 -0
  21. package/build/internal/cjs/meta.d.ts +1 -1
  22. package/build/internal/es/{bookings-services-v2-service-services.universal-Cy9SqUQp.d.mts → bookings-services-v2-service-services.universal-DYRSxPXw.d.mts} +835 -2
  23. package/build/internal/es/index.d.mts +58 -24
  24. package/build/internal/es/index.mjs.map +1 -1
  25. package/build/internal/es/index.typings.d.mts +48 -0
  26. package/build/internal/es/index.typings.mjs +2875 -0
  27. package/build/internal/es/index.typings.mjs.map +1 -0
  28. package/build/internal/es/meta.d.mts +1 -1
  29. package/package.json +2 -2
@@ -1,7 +1,8 @@
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-Cy9SqUQp.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-Cy9SqUQp.js';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
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
+ 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`;
5
6
  declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
6
7
  interface CreateServiceSignature {
7
8
  /**
@@ -50,7 +51,9 @@ interface CreateServiceSignature {
50
51
  * @param - Service to create.
51
52
  * @returns Created service.
52
53
  */
53
- (service: Service): Promise<Service>;
54
+ (service: Service): Promise<NonNullablePaths<Service, ServiceNonNullablePaths> & {
55
+ __validationErrorsType?: CreateServiceValidationErrors;
56
+ }>;
54
57
  }
55
58
  declare function bulkCreateServices$1(httpClient: HttpClient): BulkCreateServicesSignature;
56
59
  interface BulkCreateServicesSignature {
@@ -63,7 +66,9 @@ interface BulkCreateServicesSignature {
63
66
  * for more details.
64
67
  * @param - Services to create.
65
68
  */
66
- (services: Service[], options?: BulkCreateServicesOptions | undefined): Promise<BulkCreateServicesResponse>;
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`>>;
67
72
  }
68
73
  declare function getService$1(httpClient: HttpClient): GetServiceSignature;
69
74
  interface GetServiceSignature {
@@ -72,7 +77,7 @@ interface GetServiceSignature {
72
77
  * @param - ID of the service to retrieve.
73
78
  * @returns Retrieved service.
74
79
  */
75
- (serviceId: string): Promise<Service>;
80
+ (serviceId: string): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
76
81
  }
77
82
  declare function updateService$1(httpClient: HttpClient): UpdateServiceSignature;
78
83
  interface UpdateServiceSignature {
@@ -96,7 +101,9 @@ interface UpdateServiceSignature {
96
101
  * @param - Service ID.
97
102
  * @returns Updated service.
98
103
  */
99
- (_id: string, service: UpdateService): Promise<Service>;
104
+ (_id: string, service: NonNullablePaths<UpdateService, `revision`>): Promise<NonNullablePaths<Service, ServiceNonNullablePaths> & {
105
+ __validationErrorsType?: UpdateServiceValidationErrors;
106
+ }>;
100
107
  }
101
108
  declare function bulkUpdateServices$1(httpClient: HttpClient): BulkUpdateServicesSignature;
102
109
  interface BulkUpdateServicesSignature {
@@ -111,7 +118,9 @@ interface BulkUpdateServicesSignature {
111
118
  * The call succeeds even if one or more individual services can't be updated.
112
119
  * Information about failures is returned in `bulkActionMetadata`.
113
120
  */
114
- (options?: BulkUpdateServicesOptions | undefined): Promise<BulkUpdateServicesResponse>;
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`>>;
115
124
  }
116
125
  declare function bulkUpdateServicesByFilter$1(httpClient: HttpClient): BulkUpdateServicesByFilterSignature;
117
126
  interface BulkUpdateServicesByFilterSignature {
@@ -131,7 +140,7 @@ interface BulkUpdateServicesByFilterSignature {
131
140
  * Information about failures is returned in `bulkActionMetadata`.
132
141
  * @param - Filter to identify the services to update.
133
142
  */
134
- (filter: Record<string, any>, options: BulkUpdateServicesByFilterOptions): Promise<BulkUpdateServicesByFilterResponse>;
143
+ (filter: Record<string, any>, options: NonNullablePaths<BulkUpdateServicesByFilterOptions, `service`>): Promise<NonNullablePaths<BulkUpdateServicesByFilterResponse, `jobId`>>;
135
144
  }
136
145
  declare function deleteService$1(httpClient: HttpClient): DeleteServiceSignature;
137
146
  interface DeleteServiceSignature {
@@ -144,7 +153,7 @@ interface DeleteServiceSignature {
144
153
  * @param - ID of the service to delete.
145
154
  * @param - Allows you to configure how to handle the deleted service's future sessions and how to notify the sessions participants.
146
155
  */
147
- (serviceId: string, options?: DeleteServiceOptions | undefined): Promise<void>;
156
+ (serviceId: string, options?: DeleteServiceOptions): Promise<void>;
148
157
  }
149
158
  declare function bulkDeleteServices$1(httpClient: HttpClient): BulkDeleteServicesSignature;
150
159
  interface BulkDeleteServicesSignature {
@@ -160,7 +169,9 @@ interface BulkDeleteServicesSignature {
160
169
  * Information about failures is returned in `bulkActionMetadata`.
161
170
  * @param - IDs of the services to delete.
162
171
  */
163
- (ids: string[], options?: BulkDeleteServicesOptions | undefined): Promise<BulkDeleteServicesResponse>;
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`>>;
164
175
  }
165
176
  declare function bulkDeleteServicesByFilter$1(httpClient: HttpClient): BulkDeleteServicesByFilterSignature;
166
177
  interface BulkDeleteServicesByFilterSignature {
@@ -183,7 +194,7 @@ interface BulkDeleteServicesByFilterSignature {
183
194
  * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
184
195
  * @param - Filter to identify the services that need to be deleted.
185
196
  */
186
- (filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions | undefined): Promise<BulkDeleteServicesByFilterResponse>;
197
+ (filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions): Promise<NonNullablePaths<BulkDeleteServicesByFilterResponse, `jobId`>>;
187
198
  }
188
199
  declare function queryServices$1(httpClient: HttpClient): QueryServicesSignature;
189
200
  interface QueryServicesSignature {
@@ -241,7 +252,9 @@ interface SearchServicesSignature {
241
252
  *
242
253
  * Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting)) for complete filter and sorting options.
243
254
  */
244
- (search: ServiceSearch): Promise<SearchServicesResponse>;
255
+ (search: ServiceSearch): Promise<NonNullablePaths<SearchServicesResponse, {
256
+ [P in ServiceNonNullablePaths]: `services.${number}.${P}`;
257
+ }[ServiceNonNullablePaths] | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`>>;
245
258
  }
246
259
  declare function queryPolicies$1(httpClient: HttpClient): QueryPoliciesSignature;
247
260
  interface QueryPoliciesSignature {
@@ -285,7 +298,9 @@ interface QueryPoliciesSignature {
285
298
  * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
286
299
  * for all supported filters and sorting options.
287
300
  */
288
- (query: CursorQuery): Promise<QueryPoliciesResponse>;
301
+ (query: CursorQuery): Promise<NonNullablePaths<QueryPoliciesResponse, `bookingPolicies` | `bookingPolicies.${number}.bookingPolicy._id` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.enabled` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.description` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.capacity` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicies.${number}.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicies.${number}.bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.saveCreditCardPolicy.enabled` | {
302
+ [P in ServiceNonNullablePaths]: `bookingPolicies.${number}.connectedServices.${number}.${P}`;
303
+ }[ServiceNonNullablePaths] | `bookingPolicies.${number}.totalServiceCount`>>;
289
304
  }
290
305
  declare function queryBookingForms$1(httpClient: HttpClient): QueryBookingFormsSignature;
291
306
  interface QueryBookingFormsSignature {
@@ -335,7 +350,9 @@ interface QueryBookingFormsSignature {
335
350
  * form filters ([REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object))
336
351
  * for all supported filters and sorting options.
337
352
  */
338
- (query: CursorQuery, options?: QueryBookingFormsOptions | undefined): Promise<QueryBookingFormsResponse>;
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;
355
+ }>;
339
356
  }
340
357
  declare function countServices$1(httpClient: HttpClient): CountServicesSignature;
341
358
  interface CountServicesSignature {
@@ -350,7 +367,7 @@ interface CountServicesSignature {
350
367
  * To learn about working with filters in general, see
351
368
  * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)
352
369
  */
353
- (options?: CountServicesOptions | undefined): Promise<CountServicesResponse>;
370
+ (options?: CountServicesOptions): Promise<NonNullablePaths<CountServicesResponse, `count`>>;
354
371
  }
355
372
  declare function queryLocations$1(httpClient: HttpClient): QueryLocationsSignature;
356
373
  interface QueryLocationsSignature {
@@ -380,7 +397,7 @@ interface QueryLocationsSignature {
380
397
  * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
381
398
  * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
382
399
  */
383
- (options?: QueryLocationsOptions | undefined): Promise<QueryLocationsResponse>;
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`>>;
384
401
  }
385
402
  declare function queryCategories$1(httpClient: HttpClient): QueryCategoriesSignature;
386
403
  interface QueryCategoriesSignature {
@@ -409,7 +426,7 @@ interface QueryCategoriesSignature {
409
426
  * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
410
427
  * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
411
428
  */
412
- (options?: QueryCategoriesOptions | undefined): Promise<QueryCategoriesResponse>;
429
+ (options?: QueryCategoriesOptions): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}._id`>>;
413
430
  }
414
431
  declare function setServiceLocations$1(httpClient: HttpClient): SetServiceLocationsSignature;
415
432
  interface SetServiceLocationsSignature {
@@ -465,7 +482,9 @@ interface SetServiceLocationsSignature {
465
482
  * @param - ID of the service.
466
483
  * @param - List of locations replacing existing service locations. Omitting an existing location removes it from the service. Specify `removedLocationSessionsAction` to determine the handling of future sessions scheduled at that location.
467
484
  */
468
- (serviceId: string, locations: Location[], options?: SetServiceLocationsOptions | undefined): Promise<SetServiceLocationsResponse>;
485
+ (serviceId: string, locations: Location[], options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, {
486
+ [P in ServiceNonNullablePaths]: `service.${P}`;
487
+ }[ServiceNonNullablePaths]>>;
469
488
  }
470
489
  declare function enablePricingPlansForService$1(httpClient: HttpClient): EnablePricingPlansForServiceSignature;
471
490
  interface EnablePricingPlansForServiceSignature {
@@ -485,7 +504,11 @@ interface EnablePricingPlansForServiceSignature {
485
504
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
486
505
  * to add to the service's `payment.pricingPlanIds` array.
487
506
  */
488
- (serviceId: string, pricingPlanIds: string[]): Promise<EnablePricingPlansForServiceResponse>;
507
+ (serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, {
508
+ [P in ServiceNonNullablePaths]: `service.${P}`;
509
+ }[ServiceNonNullablePaths]> & {
510
+ __applicationErrorsType?: EnablePricingPlansForServiceApplicationErrors;
511
+ }>;
489
512
  }
490
513
  declare function disablePricingPlansForService$1(httpClient: HttpClient): DisablePricingPlansForServiceSignature;
491
514
  interface DisablePricingPlansForServiceSignature {
@@ -500,7 +523,11 @@ interface DisablePricingPlansForServiceSignature {
500
523
  * able to book the service, as they will have no payment options available.
501
524
  * @param - ID of the service to update.
502
525
  */
503
- (serviceId: string, options?: DisablePricingPlansForServiceOptions | undefined): Promise<DisablePricingPlansForServiceResponse>;
526
+ (serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, {
527
+ [P in ServiceNonNullablePaths]: `service.${P}`;
528
+ }[ServiceNonNullablePaths]> & {
529
+ __applicationErrorsType?: DisablePricingPlansForServiceApplicationErrors;
530
+ }>;
504
531
  }
505
532
  declare function setCustomSlug$1(httpClient: HttpClient): SetCustomSlugSignature;
506
533
  interface SetCustomSlugSignature {
@@ -514,7 +541,12 @@ interface SetCustomSlugSignature {
514
541
  * - Another service has used the slug in the past.
515
542
  * @param - ID of the service for which to update the active slug.
516
543
  */
517
- (serviceId: string, options?: SetCustomSlugOptions | undefined): Promise<SetCustomSlugResponse>;
544
+ (serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | {
545
+ [P in ServiceNonNullablePaths]: `service.${P}`;
546
+ }[ServiceNonNullablePaths]> & {
547
+ __applicationErrorsType?: SetCustomSlugApplicationErrors;
548
+ __validationErrorsType?: SetCustomSlugValidationErrors;
549
+ }>;
518
550
  }
519
551
  declare function validateSlug$1(httpClient: HttpClient): ValidateSlugSignature;
520
552
  interface ValidateSlugSignature {
@@ -530,7 +562,7 @@ interface ValidateSlugSignature {
530
562
  * The call fails if at least one of the checks fails.
531
563
  * @param - IO of the service to check custom slug validity for.
532
564
  */
533
- (serviceId: string, options?: ValidateSlugOptions | undefined): Promise<ValidateSlugResponse>;
565
+ (serviceId: string, options?: ValidateSlugOptions): Promise<NonNullablePaths<ValidateSlugResponse, `valid` | `errors`>>;
534
566
  }
535
567
  declare function cloneService$1(httpClient: HttpClient): CloneServiceSignature;
536
568
  interface CloneServiceSignature {
@@ -597,7 +629,9 @@ interface CloneServiceSignature {
597
629
  * after cloning the service, customers will be unable to book the service.
598
630
  * @param - ID of the service to clone.
599
631
  */
600
- (sourceServiceId: string): Promise<CloneServiceResponse>;
632
+ (sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, {
633
+ [P in ServiceNonNullablePaths]: `service.${P}`;
634
+ }[ServiceNonNullablePaths] | `errors`>>;
601
635
  }
602
636
  declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
603
637
  declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;