@wix/auto_sdk_bookings_service-options-and-variants 1.0.33 → 1.0.35
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.
- package/build/cjs/index.d.ts +14 -9
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.mts +14 -9
- package/build/es/index.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/es/index.d.mts +14 -9
- package/build/internal/es/index.mjs.map +1 -1
- package/package.json +3 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { ServiceOptionsAndVariants, CreateServiceOptionsAndVariantsApplicationErrors, CloneServiceOptionsAndVariantsResponse, GetServiceOptionsAndVariantsByServiceIdResponse, UpdateServiceOptionsAndVariants, UpdateServiceOptionsAndVariantsApplicationErrors, DeleteServiceOptionsAndVariantsOptions, ServiceOptionsAndVariantsListQueryBuilder, ServiceOptionsAndVariantsCreatedEnvelope, ServiceOptionsAndVariantsDeletedEnvelope, ServiceOptionsAndVariantsUpdatedEnvelope } from './index.typings.mjs';
|
|
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.mjs';
|
|
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`;
|
|
5
6
|
declare function createServiceOptionsAndVariants$1(httpClient: HttpClient): CreateServiceOptionsAndVariantsSignature;
|
|
6
7
|
interface CreateServiceOptionsAndVariantsSignature {
|
|
7
8
|
/**
|
|
@@ -59,8 +60,8 @@ interface CreateServiceOptionsAndVariantsSignature {
|
|
|
59
60
|
* @param - Service options and variants to create.
|
|
60
61
|
* @returns Information about the created service options and variants.
|
|
61
62
|
*/
|
|
62
|
-
(serviceOptionsAndVariants: ServiceOptionsAndVariants): Promise<ServiceOptionsAndVariants & {
|
|
63
|
-
__applicationErrorsType?: CreateServiceOptionsAndVariantsApplicationErrors
|
|
63
|
+
(serviceOptionsAndVariants: NonNullablePaths<ServiceOptionsAndVariants, `options` | `serviceId` | `variants`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths> & {
|
|
64
|
+
__applicationErrorsType?: CreateServiceOptionsAndVariantsApplicationErrors;
|
|
64
65
|
}>;
|
|
65
66
|
}
|
|
66
67
|
declare function cloneServiceOptionsAndVariants$1(httpClient: HttpClient): CloneServiceOptionsAndVariantsSignature;
|
|
@@ -82,7 +83,9 @@ interface CloneServiceOptionsAndVariantsSignature {
|
|
|
82
83
|
* @param - ID of the service to which the cloned `serviceOptionsAndVariants` are
|
|
83
84
|
* connected.
|
|
84
85
|
*/
|
|
85
|
-
(cloneFromId: string, targetServiceId: string): Promise<CloneServiceOptionsAndVariantsResponse
|
|
86
|
+
(cloneFromId: string, targetServiceId: string): Promise<NonNullablePaths<CloneServiceOptionsAndVariantsResponse, {
|
|
87
|
+
[P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceOptionsAndVariants.${P}`;
|
|
88
|
+
}[ServiceOptionsAndVariantsNonNullablePaths]>>;
|
|
86
89
|
}
|
|
87
90
|
declare function getServiceOptionsAndVariants$1(httpClient: HttpClient): GetServiceOptionsAndVariantsSignature;
|
|
88
91
|
interface GetServiceOptionsAndVariantsSignature {
|
|
@@ -91,7 +94,7 @@ interface GetServiceOptionsAndVariantsSignature {
|
|
|
91
94
|
* @param - ID of the `serviceOptionsAndVariants` object to retrieve.
|
|
92
95
|
* @returns Retrieved `serviceOptionsAndVariants` object.
|
|
93
96
|
*/
|
|
94
|
-
(serviceOptionsAndVariantsId: string): Promise<ServiceOptionsAndVariants
|
|
97
|
+
(serviceOptionsAndVariantsId: string): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths>>;
|
|
95
98
|
}
|
|
96
99
|
declare function getServiceOptionsAndVariantsByServiceId$1(httpClient: HttpClient): GetServiceOptionsAndVariantsByServiceIdSignature;
|
|
97
100
|
interface GetServiceOptionsAndVariantsByServiceIdSignature {
|
|
@@ -100,7 +103,9 @@ interface GetServiceOptionsAndVariantsByServiceIdSignature {
|
|
|
100
103
|
* ([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
104
|
* @param - ID of the service to retrieve options and variants for.
|
|
102
105
|
*/
|
|
103
|
-
(serviceId: string): Promise<GetServiceOptionsAndVariantsByServiceIdResponse
|
|
106
|
+
(serviceId: string): Promise<NonNullablePaths<GetServiceOptionsAndVariantsByServiceIdResponse, {
|
|
107
|
+
[P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceVariants.${P}`;
|
|
108
|
+
}[ServiceOptionsAndVariantsNonNullablePaths]>>;
|
|
104
109
|
}
|
|
105
110
|
declare function updateServiceOptionsAndVariants$1(httpClient: HttpClient): UpdateServiceOptionsAndVariantsSignature;
|
|
106
111
|
interface UpdateServiceOptionsAndVariantsSignature {
|
|
@@ -120,8 +125,8 @@ interface UpdateServiceOptionsAndVariantsSignature {
|
|
|
120
125
|
* @param - Options for updating the service options and variants.
|
|
121
126
|
* @returns Updated `serviceOptionsAndVariants` object.
|
|
122
127
|
*/
|
|
123
|
-
(_id: string, serviceOptionsAndVariants: UpdateServiceOptionsAndVariants): Promise<ServiceOptionsAndVariants & {
|
|
124
|
-
__applicationErrorsType?: UpdateServiceOptionsAndVariantsApplicationErrors
|
|
128
|
+
(_id: string, serviceOptionsAndVariants: NonNullablePaths<UpdateServiceOptionsAndVariants, `revision`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths> & {
|
|
129
|
+
__applicationErrorsType?: UpdateServiceOptionsAndVariantsApplicationErrors;
|
|
125
130
|
}>;
|
|
126
131
|
}
|
|
127
132
|
declare function deleteServiceOptionsAndVariants$1(httpClient: HttpClient): DeleteServiceOptionsAndVariantsSignature;
|
|
@@ -138,7 +143,7 @@ interface DeleteServiceOptionsAndVariantsSignature {
|
|
|
138
143
|
* @param - ID of the `serviceOptionsAndVariants` object to delete.
|
|
139
144
|
* @param - Options for deleting the service options and variants.
|
|
140
145
|
*/
|
|
141
|
-
(serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions
|
|
146
|
+
(serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions): Promise<void>;
|
|
142
147
|
}
|
|
143
148
|
declare function queryServiceOptionsAndVariants$1(httpClient: HttpClient): QueryServiceOptionsAndVariantsSignature;
|
|
144
149
|
interface QueryServiceOptionsAndVariantsSignature {
|