@wix/auto_sdk_bookings_service-options-and-variants 1.0.28 → 1.0.30

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.
@@ -869,7 +869,6 @@ interface ServiceOptionsAndVariantsUpdatedEnvelope {
869
869
  entity: ServiceOptionsAndVariants;
870
870
  metadata: EventMetadata;
871
871
  }
872
- type ServiceOptionsAndVariantsNonNullablePaths = `options.values` | `options.values.${number}.customData.name` | `options.values.${number}._id` | `options.values.${number}.type` | `variants.values` | `variants.values.${number}.price.value` | `variants.values.${number}.price.currency` | `minPrice.value` | `minPrice.currency` | `maxPrice.value` | `maxPrice.currency`;
873
872
  interface UpdateServiceOptionsAndVariants {
874
873
  /**
875
874
  * ID of the `serviceOptionsAndVariants` object.
@@ -972,4 +971,4 @@ interface ServiceOptionsAndVariantsListQueryBuilder {
972
971
  find: () => Promise<ServiceOptionsAndVariantsListQueryResult>;
973
972
  }
974
973
 
975
- export { type ActionEvent as $, type DeleteServiceOptionsAndVariantsRequest as A, type DeleteServiceOptionsAndVariantsResponse as B, type CloneServiceOptionsAndVariantsResponse as C, type DeleteServiceOptionsAndVariantsOptions as D, type ExtendedFields as E, type QueryV2 as F, type GetServiceOptionsAndVariantsByServiceIdResponse as G, type QueryV2PagingMethodOneOf as H, type Sorting as I, type Paging as J, type CursorPaging as K, type QueryServiceOptionsAndVariantsResponse as L, type Money as M, type PagingMetadataV2 as N, type Cursors as O, PlacementType as P, type QueryServiceOptionsAndVariantsRequest as Q, ResolutionMethod as R, type ServiceOptionsAndVariants as S, type DomainEvent as T, type UpdateServiceOptionsAndVariants as U, type DomainEventBodyOneOf as V, WebhookIdentityType as W, type EntityCreatedEvent as X, type RestoreInfo as Y, type EntityUpdatedEvent as Z, type EntityDeletedEvent as _, type ServiceOptionsAndVariantsNonNullablePaths as a, type Empty as a0, type SitePropertiesNotification as a1, type SitePropertiesEvent as a2, type Properties as a3, type Categories as a4, type Locale as a5, type Address as a6, type AddressHint as a7, type GeoCoordinates as a8, type BusinessSchedule as a9, type TimePeriod as aa, type SpecialHourPeriod as ab, type Multilingual as ac, type SupportedLanguage as ad, type ConsentPolicy as ae, type Translation as af, type ChangeContext as ag, type ChangeContextPayloadOneOf as ah, type PropertiesChange as ai, type SiteCreated as aj, type SiteCloned as ak, type MessageEnvelope as al, type IdentificationData as am, type IdentificationDataIdOneOf as an, type BaseEventMetadata as ao, type EventMetadata as ap, type ServiceOptionsAndVariantsListQueryResult as aq, type ServiceOptionsAndVariantsListQueryBuilder as b, type ServiceOptionsAndVariantsCreatedEnvelope as c, type ServiceOptionsAndVariantsDeletedEnvelope as d, type ServiceOptionsAndVariantsUpdatedEnvelope as e, ServiceOptionType as f, SortOrder as g, DayOfWeek as h, type ServiceOption as i, type ServiceOptionOptionSpecificDataOneOf as j, type CustomServiceOption as k, type DurationServiceOption as l, type ServiceVariant as m, type ServiceChoice as n, type ServiceChoiceChoiceOneOf as o, type Duration as p, type ServiceOptions as q, type ServiceVariants as r, type CreateServiceOptionsAndVariantsRequest as s, type CreateServiceOptionsAndVariantsResponse as t, type CloneServiceOptionsAndVariantsRequest as u, type GetServiceOptionsAndVariantsRequest as v, type GetServiceOptionsAndVariantsResponse as w, type GetServiceOptionsAndVariantsByServiceIdRequest as x, type UpdateServiceOptionsAndVariantsRequest as y, type UpdateServiceOptionsAndVariantsResponse as z };
974
+ export { type Empty as $, type DeleteServiceOptionsAndVariantsResponse as A, type QueryV2 as B, type CloneServiceOptionsAndVariantsResponse as C, type DeleteServiceOptionsAndVariantsOptions as D, type ExtendedFields as E, type QueryV2PagingMethodOneOf as F, type GetServiceOptionsAndVariantsByServiceIdResponse as G, type Sorting as H, type Paging as I, type CursorPaging as J, type QueryServiceOptionsAndVariantsResponse as K, type PagingMetadataV2 as L, type Money as M, type Cursors as N, type DomainEvent as O, PlacementType as P, type QueryServiceOptionsAndVariantsRequest as Q, ResolutionMethod as R, type ServiceOptionsAndVariants as S, type DomainEventBodyOneOf as T, type UpdateServiceOptionsAndVariants as U, type EntityCreatedEvent as V, WebhookIdentityType as W, type RestoreInfo as X, type EntityUpdatedEvent as Y, type EntityDeletedEvent as Z, type ActionEvent as _, type ServiceOptionsAndVariantsListQueryBuilder as a, type SitePropertiesNotification as a0, type SitePropertiesEvent as a1, type Properties as a2, type Categories as a3, type Locale as a4, type Address as a5, type AddressHint as a6, type GeoCoordinates as a7, type BusinessSchedule as a8, type TimePeriod as a9, type SpecialHourPeriod as aa, type Multilingual as ab, type SupportedLanguage as ac, type ConsentPolicy as ad, type Translation as ae, type ChangeContext as af, type ChangeContextPayloadOneOf as ag, type PropertiesChange as ah, type SiteCreated as ai, type SiteCloned as aj, type MessageEnvelope as ak, type IdentificationData as al, type IdentificationDataIdOneOf as am, type BaseEventMetadata as an, type EventMetadata as ao, type ServiceOptionsAndVariantsListQueryResult as ap, type ServiceOptionsAndVariantsCreatedEnvelope as b, type ServiceOptionsAndVariantsDeletedEnvelope as c, type ServiceOptionsAndVariantsUpdatedEnvelope as d, ServiceOptionType as e, SortOrder as f, DayOfWeek as g, type ServiceOption as h, type ServiceOptionOptionSpecificDataOneOf as i, type CustomServiceOption as j, type DurationServiceOption as k, type ServiceVariant as l, type ServiceChoice as m, type ServiceChoiceChoiceOneOf as n, type Duration as o, type ServiceOptions as p, type ServiceVariants as q, type CreateServiceOptionsAndVariantsRequest as r, type CreateServiceOptionsAndVariantsResponse as s, type CloneServiceOptionsAndVariantsRequest as t, type GetServiceOptionsAndVariantsRequest as u, type GetServiceOptionsAndVariantsResponse as v, type GetServiceOptionsAndVariantsByServiceIdRequest as w, type UpdateServiceOptionsAndVariantsRequest as x, type UpdateServiceOptionsAndVariantsResponse as y, type DeleteServiceOptionsAndVariantsRequest as z };
@@ -1,6 +1,6 @@
1
- import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { S as ServiceOptionsAndVariants, a as ServiceOptionsAndVariantsNonNullablePaths, C as CloneServiceOptionsAndVariantsResponse, G as GetServiceOptionsAndVariantsByServiceIdResponse, U as UpdateServiceOptionsAndVariants, D as DeleteServiceOptionsAndVariantsOptions, b as ServiceOptionsAndVariantsListQueryBuilder, c as ServiceOptionsAndVariantsCreatedEnvelope, d as ServiceOptionsAndVariantsDeletedEnvelope, e as ServiceOptionsAndVariantsUpdatedEnvelope } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.mjs';
3
- export { $ as ActionEvent, a6 as Address, a7 as AddressHint, ao as BaseEventMetadata, a9 as BusinessSchedule, a4 as Categories, ag as ChangeContext, ah as ChangeContextPayloadOneOf, u as CloneServiceOptionsAndVariantsRequest, ae as ConsentPolicy, s as CreateServiceOptionsAndVariantsRequest, t as CreateServiceOptionsAndVariantsResponse, K as CursorPaging, O as Cursors, k as CustomServiceOption, h as DayOfWeek, A as DeleteServiceOptionsAndVariantsRequest, B as DeleteServiceOptionsAndVariantsResponse, T as DomainEvent, V as DomainEventBodyOneOf, p as Duration, l as DurationServiceOption, a0 as Empty, X as EntityCreatedEvent, _ as EntityDeletedEvent, Z as EntityUpdatedEvent, ap as EventMetadata, E as ExtendedFields, a8 as GeoCoordinates, x as GetServiceOptionsAndVariantsByServiceIdRequest, v as GetServiceOptionsAndVariantsRequest, w as GetServiceOptionsAndVariantsResponse, am as IdentificationData, an as IdentificationDataIdOneOf, a5 as Locale, al as MessageEnvelope, M as Money, ac as Multilingual, J as Paging, N as PagingMetadataV2, P as PlacementType, a3 as Properties, ai as PropertiesChange, Q as QueryServiceOptionsAndVariantsRequest, L as QueryServiceOptionsAndVariantsResponse, F as QueryV2, H as QueryV2PagingMethodOneOf, R as ResolutionMethod, Y as RestoreInfo, n as ServiceChoice, o as ServiceChoiceChoiceOneOf, i as ServiceOption, j as ServiceOptionOptionSpecificDataOneOf, f as ServiceOptionType, q as ServiceOptions, aq as ServiceOptionsAndVariantsListQueryResult, m as ServiceVariant, r as ServiceVariants, ak as SiteCloned, aj as SiteCreated, a2 as SitePropertiesEvent, a1 as SitePropertiesNotification, g as SortOrder, I as Sorting, ab as SpecialHourPeriod, ad as SupportedLanguage, aa as TimePeriod, af as Translation, y as UpdateServiceOptionsAndVariantsRequest, z as UpdateServiceOptionsAndVariantsResponse, W as WebhookIdentityType } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.mjs';
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { S as ServiceOptionsAndVariants, C as CloneServiceOptionsAndVariantsResponse, G as GetServiceOptionsAndVariantsByServiceIdResponse, U as UpdateServiceOptionsAndVariants, D as DeleteServiceOptionsAndVariantsOptions, a as ServiceOptionsAndVariantsListQueryBuilder, b as ServiceOptionsAndVariantsCreatedEnvelope, c as ServiceOptionsAndVariantsDeletedEnvelope, d as ServiceOptionsAndVariantsUpdatedEnvelope } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-Ctu6ajbD.mjs';
3
+ export { _ as ActionEvent, a5 as Address, a6 as AddressHint, an as BaseEventMetadata, a8 as BusinessSchedule, a3 as Categories, af as ChangeContext, ag as ChangeContextPayloadOneOf, t as CloneServiceOptionsAndVariantsRequest, ad as ConsentPolicy, r as CreateServiceOptionsAndVariantsRequest, s as CreateServiceOptionsAndVariantsResponse, J as CursorPaging, N as Cursors, j as CustomServiceOption, g as DayOfWeek, z as DeleteServiceOptionsAndVariantsRequest, A as DeleteServiceOptionsAndVariantsResponse, O as DomainEvent, T as DomainEventBodyOneOf, o as Duration, k as DurationServiceOption, $ as Empty, V as EntityCreatedEvent, Z as EntityDeletedEvent, Y as EntityUpdatedEvent, ao as EventMetadata, E as ExtendedFields, a7 as GeoCoordinates, w as GetServiceOptionsAndVariantsByServiceIdRequest, u as GetServiceOptionsAndVariantsRequest, v as GetServiceOptionsAndVariantsResponse, al as IdentificationData, am as IdentificationDataIdOneOf, a4 as Locale, ak as MessageEnvelope, M as Money, ab as Multilingual, I as Paging, L as PagingMetadataV2, P as PlacementType, a2 as Properties, ah as PropertiesChange, Q as QueryServiceOptionsAndVariantsRequest, K as QueryServiceOptionsAndVariantsResponse, B as QueryV2, F as QueryV2PagingMethodOneOf, R as ResolutionMethod, X as RestoreInfo, m as ServiceChoice, n as ServiceChoiceChoiceOneOf, h as ServiceOption, i as ServiceOptionOptionSpecificDataOneOf, e as ServiceOptionType, p as ServiceOptions, ap as ServiceOptionsAndVariantsListQueryResult, l as ServiceVariant, q as ServiceVariants, aj as SiteCloned, ai as SiteCreated, a1 as SitePropertiesEvent, a0 as SitePropertiesNotification, f as SortOrder, H as Sorting, aa as SpecialHourPeriod, ac as SupportedLanguage, a9 as TimePeriod, ae as Translation, x as UpdateServiceOptionsAndVariantsRequest, y as UpdateServiceOptionsAndVariantsResponse, W as WebhookIdentityType } from './bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-Ctu6ajbD.mjs';
4
4
 
5
5
  declare function createServiceOptionsAndVariants$1(httpClient: HttpClient): CreateServiceOptionsAndVariantsSignature;
6
6
  interface CreateServiceOptionsAndVariantsSignature {
@@ -59,7 +59,7 @@ interface CreateServiceOptionsAndVariantsSignature {
59
59
  * @param - Service options and variants to create.
60
60
  * @returns Information about the created service options and variants.
61
61
  */
62
- (serviceOptionsAndVariants: NonNullablePaths<ServiceOptionsAndVariants, `options` | `serviceId` | `variants`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths>>;
62
+ (serviceOptionsAndVariants: ServiceOptionsAndVariants): Promise<ServiceOptionsAndVariants>;
63
63
  }
64
64
  declare function cloneServiceOptionsAndVariants$1(httpClient: HttpClient): CloneServiceOptionsAndVariantsSignature;
65
65
  interface CloneServiceOptionsAndVariantsSignature {
@@ -80,9 +80,7 @@ interface CloneServiceOptionsAndVariantsSignature {
80
80
  * @param - ID of the service to which the cloned `serviceOptionsAndVariants` are
81
81
  * connected.
82
82
  */
83
- (cloneFromId: string, targetServiceId: string): Promise<NonNullablePaths<CloneServiceOptionsAndVariantsResponse, {
84
- [P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceOptionsAndVariants.${P}`;
85
- }[ServiceOptionsAndVariantsNonNullablePaths]>>;
83
+ (cloneFromId: string, targetServiceId: string): Promise<CloneServiceOptionsAndVariantsResponse>;
86
84
  }
87
85
  declare function getServiceOptionsAndVariants$1(httpClient: HttpClient): GetServiceOptionsAndVariantsSignature;
88
86
  interface GetServiceOptionsAndVariantsSignature {
@@ -91,7 +89,7 @@ interface GetServiceOptionsAndVariantsSignature {
91
89
  * @param - ID of the `serviceOptionsAndVariants` object to retrieve.
92
90
  * @returns Retrieved `serviceOptionsAndVariants` object.
93
91
  */
94
- (serviceOptionsAndVariantsId: string): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths>>;
92
+ (serviceOptionsAndVariantsId: string): Promise<ServiceOptionsAndVariants>;
95
93
  }
96
94
  declare function getServiceOptionsAndVariantsByServiceId$1(httpClient: HttpClient): GetServiceOptionsAndVariantsByServiceIdSignature;
97
95
  interface GetServiceOptionsAndVariantsByServiceIdSignature {
@@ -100,9 +98,7 @@ interface GetServiceOptionsAndVariantsByServiceIdSignature {
100
98
  * ([SDK](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction) | [REST](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction)).
101
99
  * @param - ID of the service to retrieve options and variants for.
102
100
  */
103
- (serviceId: string): Promise<NonNullablePaths<GetServiceOptionsAndVariantsByServiceIdResponse, {
104
- [P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceVariants.${P}`;
105
- }[ServiceOptionsAndVariantsNonNullablePaths]>>;
101
+ (serviceId: string): Promise<GetServiceOptionsAndVariantsByServiceIdResponse>;
106
102
  }
107
103
  declare function updateServiceOptionsAndVariants$1(httpClient: HttpClient): UpdateServiceOptionsAndVariantsSignature;
108
104
  interface UpdateServiceOptionsAndVariantsSignature {
@@ -122,7 +118,7 @@ interface UpdateServiceOptionsAndVariantsSignature {
122
118
  * @param - Options for updating the service options and variants.
123
119
  * @returns Updated `serviceOptionsAndVariants` object.
124
120
  */
125
- (_id: string, serviceOptionsAndVariants: NonNullablePaths<UpdateServiceOptionsAndVariants, `revision`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths>>;
121
+ (_id: string, serviceOptionsAndVariants: UpdateServiceOptionsAndVariants): Promise<ServiceOptionsAndVariants>;
126
122
  }
127
123
  declare function deleteServiceOptionsAndVariants$1(httpClient: HttpClient): DeleteServiceOptionsAndVariantsSignature;
128
124
  interface DeleteServiceOptionsAndVariantsSignature {
@@ -138,7 +134,7 @@ interface DeleteServiceOptionsAndVariantsSignature {
138
134
  * @param - ID of the `serviceOptionsAndVariants` object to delete.
139
135
  * @param - Options for deleting the service options and variants.
140
136
  */
141
- (serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions): Promise<void>;
137
+ (serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions | undefined): Promise<void>;
142
138
  }
143
139
  declare function queryServiceOptionsAndVariants$1(httpClient: HttpClient): QueryServiceOptionsAndVariantsSignature;
144
140
  interface QueryServiceOptionsAndVariantsSignature {