@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.
- package/build/cjs/{bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.d.ts → bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-Ctu6ajbD.d.ts} +1 -2
- package/build/cjs/index.d.ts +9 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/es/{bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.d.mts → bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-Ctu6ajbD.d.mts} +1 -2
- package/build/es/index.d.mts +9 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/internal/cjs/{bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.d.ts → bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-Ctu6ajbD.d.ts} +1 -2
- package/build/internal/cjs/index.d.ts +9 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/{bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.d.mts → bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-Ctu6ajbD.d.mts} +1 -2
- package/build/internal/es/index.d.mts +9 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +3 -3
|
@@ -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
|
|
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,
|
|
2
|
-
import { S as ServiceOptionsAndVariants,
|
|
3
|
-
export {
|
|
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:
|
|
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<
|
|
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<
|
|
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<
|
|
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:
|
|
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 {
|