@wix/auto_sdk_bookings_service-options-and-variants 1.0.27 → 1.0.28
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-Ctu6ajbD.d.ts → bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.d.ts} +2 -1
- package/build/cjs/index.d.ts +13 -9
- 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-Ctu6ajbD.d.mts → bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.d.mts} +2 -1
- package/build/es/index.d.mts +13 -9
- 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-Ctu6ajbD.d.ts → bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.d.ts} +2 -1
- package/build/internal/cjs/index.d.ts +13 -9
- 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-Ctu6ajbD.d.mts → bookings-catalog-v1-service-options-and-variants-service-options-and-variants.universal-BW9LdRJ-.d.mts} +2 -1
- package/build/internal/es/index.d.mts +13 -9
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +2 -2
|
@@ -869,6 +869,7 @@ 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`;
|
|
872
873
|
interface UpdateServiceOptionsAndVariants {
|
|
873
874
|
/**
|
|
874
875
|
* ID of the `serviceOptionsAndVariants` object.
|
|
@@ -971,4 +972,4 @@ interface ServiceOptionsAndVariantsListQueryBuilder {
|
|
|
971
972
|
find: () => Promise<ServiceOptionsAndVariantsListQueryResult>;
|
|
972
973
|
}
|
|
973
974
|
|
|
974
|
-
export { type
|
|
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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
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,
|
|
3
|
-
export {
|
|
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-.js';
|
|
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-.js';
|
|
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: ServiceOptionsAndVariants): Promise<ServiceOptionsAndVariants
|
|
62
|
+
(serviceOptionsAndVariants: NonNullablePaths<ServiceOptionsAndVariants, `options` | `serviceId` | `variants`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths>>;
|
|
63
63
|
}
|
|
64
64
|
declare function cloneServiceOptionsAndVariants$1(httpClient: HttpClient): CloneServiceOptionsAndVariantsSignature;
|
|
65
65
|
interface CloneServiceOptionsAndVariantsSignature {
|
|
@@ -80,7 +80,9 @@ 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<CloneServiceOptionsAndVariantsResponse
|
|
83
|
+
(cloneFromId: string, targetServiceId: string): Promise<NonNullablePaths<CloneServiceOptionsAndVariantsResponse, {
|
|
84
|
+
[P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceOptionsAndVariants.${P}`;
|
|
85
|
+
}[ServiceOptionsAndVariantsNonNullablePaths]>>;
|
|
84
86
|
}
|
|
85
87
|
declare function getServiceOptionsAndVariants$1(httpClient: HttpClient): GetServiceOptionsAndVariantsSignature;
|
|
86
88
|
interface GetServiceOptionsAndVariantsSignature {
|
|
@@ -89,7 +91,7 @@ interface GetServiceOptionsAndVariantsSignature {
|
|
|
89
91
|
* @param - ID of the `serviceOptionsAndVariants` object to retrieve.
|
|
90
92
|
* @returns Retrieved `serviceOptionsAndVariants` object.
|
|
91
93
|
*/
|
|
92
|
-
(serviceOptionsAndVariantsId: string): Promise<ServiceOptionsAndVariants
|
|
94
|
+
(serviceOptionsAndVariantsId: string): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths>>;
|
|
93
95
|
}
|
|
94
96
|
declare function getServiceOptionsAndVariantsByServiceId$1(httpClient: HttpClient): GetServiceOptionsAndVariantsByServiceIdSignature;
|
|
95
97
|
interface GetServiceOptionsAndVariantsByServiceIdSignature {
|
|
@@ -98,7 +100,9 @@ interface GetServiceOptionsAndVariantsByServiceIdSignature {
|
|
|
98
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)).
|
|
99
101
|
* @param - ID of the service to retrieve options and variants for.
|
|
100
102
|
*/
|
|
101
|
-
(serviceId: string): Promise<GetServiceOptionsAndVariantsByServiceIdResponse
|
|
103
|
+
(serviceId: string): Promise<NonNullablePaths<GetServiceOptionsAndVariantsByServiceIdResponse, {
|
|
104
|
+
[P in ServiceOptionsAndVariantsNonNullablePaths]: `serviceVariants.${P}`;
|
|
105
|
+
}[ServiceOptionsAndVariantsNonNullablePaths]>>;
|
|
102
106
|
}
|
|
103
107
|
declare function updateServiceOptionsAndVariants$1(httpClient: HttpClient): UpdateServiceOptionsAndVariantsSignature;
|
|
104
108
|
interface UpdateServiceOptionsAndVariantsSignature {
|
|
@@ -118,7 +122,7 @@ interface UpdateServiceOptionsAndVariantsSignature {
|
|
|
118
122
|
* @param - Options for updating the service options and variants.
|
|
119
123
|
* @returns Updated `serviceOptionsAndVariants` object.
|
|
120
124
|
*/
|
|
121
|
-
(_id: string, serviceOptionsAndVariants: UpdateServiceOptionsAndVariants): Promise<ServiceOptionsAndVariants
|
|
125
|
+
(_id: string, serviceOptionsAndVariants: NonNullablePaths<UpdateServiceOptionsAndVariants, `revision`>): Promise<NonNullablePaths<ServiceOptionsAndVariants, ServiceOptionsAndVariantsNonNullablePaths>>;
|
|
122
126
|
}
|
|
123
127
|
declare function deleteServiceOptionsAndVariants$1(httpClient: HttpClient): DeleteServiceOptionsAndVariantsSignature;
|
|
124
128
|
interface DeleteServiceOptionsAndVariantsSignature {
|
|
@@ -134,7 +138,7 @@ interface DeleteServiceOptionsAndVariantsSignature {
|
|
|
134
138
|
* @param - ID of the `serviceOptionsAndVariants` object to delete.
|
|
135
139
|
* @param - Options for deleting the service options and variants.
|
|
136
140
|
*/
|
|
137
|
-
(serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions
|
|
141
|
+
(serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions): Promise<void>;
|
|
138
142
|
}
|
|
139
143
|
declare function queryServiceOptionsAndVariants$1(httpClient: HttpClient): QueryServiceOptionsAndVariantsSignature;
|
|
140
144
|
interface QueryServiceOptionsAndVariantsSignature {
|