@wix/auto_sdk_bookings_service-options-and-variants 1.0.35 → 1.0.37

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.
@@ -2,7 +2,6 @@ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTF
2
2
  import { ServiceOptionsAndVariants, CreateServiceOptionsAndVariantsApplicationErrors, CloneServiceOptionsAndVariantsResponse, GetServiceOptionsAndVariantsByServiceIdResponse, UpdateServiceOptionsAndVariants, UpdateServiceOptionsAndVariantsApplicationErrors, DeleteServiceOptionsAndVariantsOptions, ServiceOptionsAndVariantsListQueryBuilder, ServiceOptionsAndVariantsCreatedEnvelope, ServiceOptionsAndVariantsDeletedEnvelope, ServiceOptionsAndVariantsUpdatedEnvelope } from './index.typings.js';
3
3
  export { ActionEvent, Address, AddressHint, BaseEventMetadata, BusinessSchedule, Categories, ChangeContext, ChangeContextPayloadOneOf, CloneServiceOptionsAndVariantsRequest, ConsentPolicy, CreateServiceOptionsAndVariantsRequest, CreateServiceOptionsAndVariantsResponse, CursorPaging, Cursors, CustomServiceOption, DayOfWeek, DeleteServiceOptionsAndVariantsRequest, DeleteServiceOptionsAndVariantsResponse, DomainEvent, DomainEventBodyOneOf, Duration, DurationServiceOption, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GeoCoordinates, GetServiceOptionsAndVariantsByServiceIdRequest, GetServiceOptionsAndVariantsRequest, GetServiceOptionsAndVariantsResponse, IdentificationData, IdentificationDataIdOneOf, Locale, MessageEnvelope, Money, Multilingual, Paging, PagingMetadataV2, PlacementType, Properties, PropertiesChange, QueryServiceOptionsAndVariantsRequest, QueryServiceOptionsAndVariantsResponse, QueryV2, QueryV2PagingMethodOneOf, ResolutionMethod, RestoreInfo, ServiceChoice, ServiceChoiceChoiceOneOf, ServiceOption, ServiceOptionOptionSpecificDataOneOf, ServiceOptionType, ServiceOptions, ServiceOptionsAndVariantsListQueryResult, ServiceVariant, ServiceVariants, SiteCloned, SiteCreated, SitePropertiesEvent, SitePropertiesNotification, SortOrder, Sorting, SpecialHourPeriod, SupportedLanguage, TimePeriod, Translation, UpdateServiceOptionsAndVariantsRequest, UpdateServiceOptionsAndVariantsResponse, WebhookIdentityType } from './index.typings.js';
4
4
 
5
- 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`;
6
5
  declare function createServiceOptionsAndVariants$1(httpClient: HttpClient): CreateServiceOptionsAndVariantsSignature;
7
6
  interface CreateServiceOptionsAndVariantsSignature {
8
7
  /**
@@ -60,7 +59,7 @@ interface CreateServiceOptionsAndVariantsSignature {
60
59
  * @param - Service options and variants to create.
61
60
  * @returns Information about the created service options and variants.
62
61
  */
63
- (serviceOptionsAndVariants: NonNullablePaths<ServiceOptionsAndVariants, `options` | `serviceId` | `variants`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths> & {
62
+ (serviceOptionsAndVariants: NonNullablePaths<ServiceOptionsAndVariants, `options` | `serviceId` | `variants`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, `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`> & {
64
63
  __applicationErrorsType?: CreateServiceOptionsAndVariantsApplicationErrors;
65
64
  }>;
66
65
  }
@@ -83,9 +82,7 @@ interface CloneServiceOptionsAndVariantsSignature {
83
82
  * @param - ID of the service to which the cloned `serviceOptionsAndVariants` are
84
83
  * connected.
85
84
  */
86
- (cloneFromId: string, targetServiceId: string): Promise<NonNullablePaths<CloneServiceOptionsAndVariantsResponse, {
87
- [P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceOptionsAndVariants.${P}`;
88
- }[ServiceOptionsAndVariantsNonNullablePaths]>>;
85
+ (cloneFromId: string, targetServiceId: string): Promise<NonNullablePaths<CloneServiceOptionsAndVariantsResponse, `serviceOptionsAndVariants.options.values` | `serviceOptionsAndVariants.options.values.${number}.customData.name` | `serviceOptionsAndVariants.options.values.${number}._id` | `serviceOptionsAndVariants.options.values.${number}.type` | `serviceOptionsAndVariants.variants.values` | `serviceOptionsAndVariants.variants.values.${number}.price.value` | `serviceOptionsAndVariants.variants.values.${number}.price.currency`>>;
89
86
  }
90
87
  declare function getServiceOptionsAndVariants$1(httpClient: HttpClient): GetServiceOptionsAndVariantsSignature;
91
88
  interface GetServiceOptionsAndVariantsSignature {
@@ -94,7 +91,7 @@ interface GetServiceOptionsAndVariantsSignature {
94
91
  * @param - ID of the `serviceOptionsAndVariants` object to retrieve.
95
92
  * @returns Retrieved `serviceOptionsAndVariants` object.
96
93
  */
97
- (serviceOptionsAndVariantsId: string): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths>>;
94
+ (serviceOptionsAndVariantsId: string): Promise<NonNullablePaths<ServiceOptionsAndVariants, `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`>>;
98
95
  }
99
96
  declare function getServiceOptionsAndVariantsByServiceId$1(httpClient: HttpClient): GetServiceOptionsAndVariantsByServiceIdSignature;
100
97
  interface GetServiceOptionsAndVariantsByServiceIdSignature {
@@ -103,9 +100,7 @@ interface GetServiceOptionsAndVariantsByServiceIdSignature {
103
100
  * ([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)).
104
101
  * @param - ID of the service to retrieve options and variants for.
105
102
  */
106
- (serviceId: string): Promise<NonNullablePaths<GetServiceOptionsAndVariantsByServiceIdResponse, {
107
- [P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceVariants.${P}`;
108
- }[ServiceOptionsAndVariantsNonNullablePaths]>>;
103
+ (serviceId: string): Promise<NonNullablePaths<GetServiceOptionsAndVariantsByServiceIdResponse, `serviceVariants.options.values` | `serviceVariants.options.values.${number}.customData.name` | `serviceVariants.options.values.${number}._id` | `serviceVariants.options.values.${number}.type` | `serviceVariants.variants.values` | `serviceVariants.variants.values.${number}.price.value` | `serviceVariants.variants.values.${number}.price.currency`>>;
109
104
  }
110
105
  declare function updateServiceOptionsAndVariants$1(httpClient: HttpClient): UpdateServiceOptionsAndVariantsSignature;
111
106
  interface UpdateServiceOptionsAndVariantsSignature {
@@ -125,7 +120,7 @@ interface UpdateServiceOptionsAndVariantsSignature {
125
120
  * @param - Options for updating the service options and variants.
126
121
  * @returns Updated `serviceOptionsAndVariants` object.
127
122
  */
128
- (_id: string, serviceOptionsAndVariants: NonNullablePaths<UpdateServiceOptionsAndVariants, `revision`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths> & {
123
+ (_id: string, serviceOptionsAndVariants: NonNullablePaths<UpdateServiceOptionsAndVariants, `revision`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, `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`> & {
129
124
  __applicationErrorsType?: UpdateServiceOptionsAndVariantsApplicationErrors;
130
125
  }>;
131
126
  }