@wix/auto_sdk_bookings_service-options-and-variants 1.0.32 → 1.0.33
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 +9 -14
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.mts +9 -14
- package/build/es/index.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +9 -14
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/es/index.d.mts +9 -14
- package/build/internal/es/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, 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`;
|
|
6
5
|
declare function createServiceOptionsAndVariants$1(httpClient: HttpClient): CreateServiceOptionsAndVariantsSignature;
|
|
7
6
|
interface CreateServiceOptionsAndVariantsSignature {
|
|
8
7
|
/**
|
|
@@ -60,8 +59,8 @@ 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:
|
|
64
|
-
__applicationErrorsType?: CreateServiceOptionsAndVariantsApplicationErrors;
|
|
62
|
+
(serviceOptionsAndVariants: ServiceOptionsAndVariants): Promise<ServiceOptionsAndVariants & {
|
|
63
|
+
__applicationErrorsType?: CreateServiceOptionsAndVariantsApplicationErrors | undefined;
|
|
65
64
|
}>;
|
|
66
65
|
}
|
|
67
66
|
declare function cloneServiceOptionsAndVariants$1(httpClient: HttpClient): CloneServiceOptionsAndVariantsSignature;
|
|
@@ -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<
|
|
87
|
-
[P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceOptionsAndVariants.${P}`;
|
|
88
|
-
}[ServiceOptionsAndVariantsNonNullablePaths]>>;
|
|
85
|
+
(cloneFromId: string, targetServiceId: string): Promise<CloneServiceOptionsAndVariantsResponse>;
|
|
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<
|
|
94
|
+
(serviceOptionsAndVariantsId: string): Promise<ServiceOptionsAndVariants>;
|
|
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<
|
|
107
|
-
[P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceVariants.${P}`;
|
|
108
|
-
}[ServiceOptionsAndVariantsNonNullablePaths]>>;
|
|
103
|
+
(serviceId: string): Promise<GetServiceOptionsAndVariantsByServiceIdResponse>;
|
|
109
104
|
}
|
|
110
105
|
declare function updateServiceOptionsAndVariants$1(httpClient: HttpClient): UpdateServiceOptionsAndVariantsSignature;
|
|
111
106
|
interface UpdateServiceOptionsAndVariantsSignature {
|
|
@@ -125,8 +120,8 @@ 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:
|
|
129
|
-
__applicationErrorsType?: UpdateServiceOptionsAndVariantsApplicationErrors;
|
|
123
|
+
(_id: string, serviceOptionsAndVariants: UpdateServiceOptionsAndVariants): Promise<ServiceOptionsAndVariants & {
|
|
124
|
+
__applicationErrorsType?: UpdateServiceOptionsAndVariantsApplicationErrors | undefined;
|
|
130
125
|
}>;
|
|
131
126
|
}
|
|
132
127
|
declare function deleteServiceOptionsAndVariants$1(httpClient: HttpClient): DeleteServiceOptionsAndVariantsSignature;
|
|
@@ -143,7 +138,7 @@ interface DeleteServiceOptionsAndVariantsSignature {
|
|
|
143
138
|
* @param - ID of the `serviceOptionsAndVariants` object to delete.
|
|
144
139
|
* @param - Options for deleting the service options and variants.
|
|
145
140
|
*/
|
|
146
|
-
(serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions): Promise<void>;
|
|
141
|
+
(serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions | undefined): Promise<void>;
|
|
147
142
|
}
|
|
148
143
|
declare function queryServiceOptionsAndVariants$1(httpClient: HttpClient): QueryServiceOptionsAndVariantsSignature;
|
|
149
144
|
interface QueryServiceOptionsAndVariantsSignature {
|