@wix/bookings 1.0.14 → 1.0.16

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.
Files changed (43) hide show
  1. package/build/cjs/index.d.ts +2 -1
  2. package/build/cjs/index.js +3 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/bookings-calendar-v1-session.http.d.ts +49 -26
  5. package/build/cjs/src/bookings-calendar-v1-session.http.js +49 -26
  6. package/build/cjs/src/bookings-calendar-v1-session.http.js.map +1 -1
  7. package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +86 -68
  8. package/build/cjs/src/bookings-calendar-v1-session.universal.js +49 -26
  9. package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
  10. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +64 -0
  11. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js +296 -0
  12. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -0
  13. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +11 -0
  14. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js +69 -0
  15. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -0
  16. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +1831 -0
  17. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js +197 -0
  18. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -0
  19. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +1992 -0
  20. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +685 -0
  21. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -0
  22. package/build/es/index.d.ts +2 -1
  23. package/build/es/index.js +2 -1
  24. package/build/es/index.js.map +1 -1
  25. package/build/es/src/bookings-calendar-v1-session.http.d.ts +49 -26
  26. package/build/es/src/bookings-calendar-v1-session.http.js +49 -26
  27. package/build/es/src/bookings-calendar-v1-session.http.js.map +1 -1
  28. package/build/es/src/bookings-calendar-v1-session.universal.d.ts +86 -68
  29. package/build/es/src/bookings-calendar-v1-session.universal.js +49 -26
  30. package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
  31. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +64 -0
  32. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js +286 -0
  33. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -0
  34. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +11 -0
  35. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js +38 -0
  36. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -0
  37. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +1831 -0
  38. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js +194 -0
  39. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -0
  40. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +1992 -0
  41. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +656 -0
  42. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -0
  43. package/package.json +2 -2
@@ -0,0 +1,286 @@
1
+ import { toURLSearchParams } from '@wix/metro-runtime';
2
+ import { serializer } from '@wix/metro-runtime/ambassador';
3
+ import { resolveUrl } from '@wix/metro-runtime';
4
+ const _cloneServiceOptionsAndVariantsRequest = {};
5
+ const _cloneServiceOptionsAndVariantsResponse = {};
6
+ const _createServiceOptionsAndVariantsRequest = {};
7
+ const _createServiceOptionsAndVariantsResponse = {};
8
+ const _deleteServiceOptionsAndVariantsRequest = {};
9
+ const _deleteServiceOptionsAndVariantsResponse = {};
10
+ const _getServiceOptionsAndVariantsByServiceIdRequest = {};
11
+ const _getServiceOptionsAndVariantsByServiceIdResponse = {};
12
+ const _getServiceOptionsAndVariantsRequest = {};
13
+ const _getServiceOptionsAndVariantsResponse = {};
14
+ const _queryServiceOptionsAndVariantsRequest = {};
15
+ const _queryServiceOptionsAndVariantsResponse = {};
16
+ const _updateServiceOptionsAndVariantsRequest = {
17
+ mask: 'google.protobuf.FieldMask',
18
+ };
19
+ const _updateServiceOptionsAndVariantsResponse = {};
20
+ function resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl(opts) {
21
+ const domainToMappings = {
22
+ 'manage._base_domain_': [
23
+ {
24
+ srcPath: '/_api/v1/service-options-and-variants',
25
+ destPath: '/v1/serviceOptionsAndVariants',
26
+ },
27
+ {
28
+ srcPath: '/_api/v1/serviceOptionsAndVariants',
29
+ destPath: '/v1/serviceOptionsAndVariants',
30
+ },
31
+ {
32
+ srcPath: '/_api/bookings/v1/service-options-and-variants',
33
+ destPath: '',
34
+ },
35
+ ],
36
+ _: [
37
+ {
38
+ srcPath: '/_api/v1/service-options-and-variants',
39
+ destPath: '/v1/serviceOptionsAndVariants',
40
+ },
41
+ {
42
+ srcPath: '/_api/v1/serviceOptionsAndVariants',
43
+ destPath: '/v1/serviceOptionsAndVariants',
44
+ },
45
+ ],
46
+ '*.dev.wix-code.com': [
47
+ {
48
+ srcPath: '/_api/v1/service-options-and-variants',
49
+ destPath: '/v1/serviceOptionsAndVariants',
50
+ },
51
+ ],
52
+ 'editor._base_domain_': [
53
+ {
54
+ srcPath: '/_api/v1/service-options-and-variants',
55
+ destPath: '/v1/serviceOptionsAndVariants',
56
+ },
57
+ {
58
+ srcPath: '/_api/bookings/v1/service-options-and-variants',
59
+ destPath: '/api',
60
+ },
61
+ ],
62
+ 'blocks._base_domain_': [
63
+ {
64
+ srcPath: '/_api/v1/service-options-and-variants',
65
+ destPath: '/v1/serviceOptionsAndVariants',
66
+ },
67
+ {
68
+ srcPath: '/_api/bookings/v1/service-options-and-variants',
69
+ destPath: '/api',
70
+ },
71
+ ],
72
+ 'create.editorx': [
73
+ {
74
+ srcPath: '/_api/v1/service-options-and-variants',
75
+ destPath: '/v1/serviceOptionsAndVariants',
76
+ },
77
+ {
78
+ srcPath: '/_api/bookings/v1/service-options-and-variants',
79
+ destPath: '/api',
80
+ },
81
+ ],
82
+ 'www.wixapis.com': [
83
+ {
84
+ srcPath: '/bookings/v1/serviceOptionsAndVariants',
85
+ destPath: '/v1/serviceOptionsAndVariants',
86
+ },
87
+ ],
88
+ };
89
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
90
+ }
91
+ /**
92
+ * Creates options and variants for a service. Note that only a single
93
+ * `serviceOptionsAndVariants` object is supported per service.
94
+ *
95
+ *
96
+ * Currently, only a single option is supported per `serviceOptionsAndVariants` object.
97
+ *
98
+ * Before creating the `serviceOptionsAndVariants` object you need to calculate
99
+ * all variants, since you must pass them in the `variants` array of the
100
+ * request. Variants aren't automatically calculated from the options. Currently,
101
+ * services are limited to a single option. Therefore, the variants
102
+ * array is equal to the list of all choices for custom options,
103
+ * or all staff members providing the service for staff member based options.
104
+ */
105
+ export function createServiceOptionsAndVariants(payload) {
106
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_createServiceOptionsAndVariantsRequest, {});
107
+ const { fromJSON: fromRes } = serializer(_createServiceOptionsAndVariantsResponse, {});
108
+ function __createServiceOptionsAndVariants({ host }) {
109
+ const serializedData = toReq(payload);
110
+ const metadata = {
111
+ method: 'POST',
112
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
113
+ protoPath: '/v1/serviceOptionsAndVariants',
114
+ data: serializedData,
115
+ host,
116
+ }),
117
+ data: serializedData,
118
+ transformResponse: fromRes,
119
+ };
120
+ return metadata;
121
+ }
122
+ __createServiceOptionsAndVariants.fromReq = fromReq;
123
+ return __createServiceOptionsAndVariants;
124
+ }
125
+ /**
126
+ * Clones a `serviceOptionsAndVariants` object. This endpoint can be called, for example, when duplicating a service.
127
+ * The result is a deep clone in which all Service Options and Service Variants are duplicated. Each Service Option
128
+ * in the clone will have a newly generated ID that is copied to all Service Choices of the Service Variants in the
129
+ * clone. The clone will reference the service provided in the request by `target_service_id`.
130
+ */
131
+ export function cloneServiceOptionsAndVariants(payload) {
132
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_cloneServiceOptionsAndVariantsRequest, {});
133
+ const { fromJSON: fromRes } = serializer(_cloneServiceOptionsAndVariantsResponse, {});
134
+ function __cloneServiceOptionsAndVariants({ host }) {
135
+ const serializedData = toReq(payload);
136
+ const metadata = {
137
+ method: 'POST',
138
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
139
+ protoPath: '/v1/serviceOptionsAndVariants/{cloneFromId}/clone',
140
+ data: serializedData,
141
+ host,
142
+ }),
143
+ data: serializedData,
144
+ transformResponse: fromRes,
145
+ };
146
+ return metadata;
147
+ }
148
+ __cloneServiceOptionsAndVariants.fromReq = fromReq;
149
+ return __cloneServiceOptionsAndVariants;
150
+ }
151
+ /** Retrieves a `serviceOptionsAndVariants` object. */
152
+ export function getServiceOptionsAndVariants(payload) {
153
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_getServiceOptionsAndVariantsRequest, {});
154
+ const { fromJSON: fromRes } = serializer(_getServiceOptionsAndVariantsResponse, {});
155
+ function __getServiceOptionsAndVariants({ host }) {
156
+ const serializedData = toReq(payload);
157
+ const metadata = {
158
+ method: 'GET',
159
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
160
+ protoPath: '/v1/serviceOptionsAndVariants/{serviceOptionsAndVariantsId}',
161
+ data: serializedData,
162
+ host,
163
+ }),
164
+ params: toURLSearchParams(serializedData),
165
+ transformResponse: fromRes,
166
+ };
167
+ return metadata;
168
+ }
169
+ __getServiceOptionsAndVariants.fromReq = fromReq;
170
+ return __getServiceOptionsAndVariants;
171
+ }
172
+ /** Retrieves a service's options and variants by `service_id`. */
173
+ export function getServiceOptionsAndVariantsByServiceId(payload) {
174
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_getServiceOptionsAndVariantsByServiceIdRequest, {});
175
+ const { fromJSON: fromRes } = serializer(_getServiceOptionsAndVariantsByServiceIdResponse, {});
176
+ function __getServiceOptionsAndVariantsByServiceId({ host }) {
177
+ const serializedData = toReq(payload);
178
+ const metadata = {
179
+ method: 'GET',
180
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
181
+ protoPath: '/v1/serviceOptionsAndVariants/service_id/{serviceId}',
182
+ data: serializedData,
183
+ host,
184
+ }),
185
+ params: toURLSearchParams(serializedData),
186
+ transformResponse: fromRes,
187
+ };
188
+ return metadata;
189
+ }
190
+ __getServiceOptionsAndVariantsByServiceId.fromReq = fromReq;
191
+ return __getServiceOptionsAndVariantsByServiceId;
192
+ }
193
+ /**
194
+ * Updates the specified fields of the `serviceOptionsAndVariants` object.
195
+ *
196
+ * Currently, only a single option is supported per `serviceOptionsAndVariants` object.
197
+ *
198
+ * If you want to update `variants`, you must pass the full list of supported variants.
199
+ *
200
+ * If you want to update `options`, you must pass the full list of supported options.
201
+ */
202
+ export function updateServiceOptionsAndVariants(payload) {
203
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateServiceOptionsAndVariantsRequest, {});
204
+ const { fromJSON: fromRes } = serializer(_updateServiceOptionsAndVariantsResponse, {});
205
+ function __updateServiceOptionsAndVariants({ host }) {
206
+ const serializedData = toReq(payload);
207
+ const metadata = {
208
+ method: 'PATCH',
209
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
210
+ protoPath: '/v1/serviceOptionsAndVariants/{serviceOptionsAndVariants.id}',
211
+ data: serializedData,
212
+ host,
213
+ }),
214
+ data: serializedData,
215
+ transformResponse: fromRes,
216
+ };
217
+ return metadata;
218
+ }
219
+ __updateServiceOptionsAndVariants.fromReq = fromReq;
220
+ return __updateServiceOptionsAndVariants;
221
+ }
222
+ /**
223
+ * Deletes a `serviceOptionsAndVariants` object.
224
+ *
225
+ *
226
+ * Since each service has only a single `serviceOptionsAndVariants` object, the
227
+ * service won't have any supported options and variants any longer. Instead
228
+ * the standard Wix Bookings service price calculation will be used.
229
+ */
230
+ export function deleteServiceOptionsAndVariants(payload) {
231
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_deleteServiceOptionsAndVariantsRequest, {});
232
+ const { fromJSON: fromRes } = serializer(_deleteServiceOptionsAndVariantsResponse, {});
233
+ function __deleteServiceOptionsAndVariants({ host }) {
234
+ const serializedData = toReq(payload);
235
+ const metadata = {
236
+ method: 'DELETE',
237
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
238
+ protoPath: '/v1/serviceOptionsAndVariants/{serviceOptionsAndVariantsId}',
239
+ data: serializedData,
240
+ host,
241
+ }),
242
+ params: toURLSearchParams(serializedData),
243
+ transformResponse: fromRes,
244
+ };
245
+ return metadata;
246
+ }
247
+ __deleteServiceOptionsAndVariants.fromReq = fromReq;
248
+ return __deleteServiceOptionsAndVariants;
249
+ }
250
+ /**
251
+ * Retrieves a list of `serviceOptionsAndVariants`, given the provided paging, filtering, and sorting.
252
+ *
253
+ * Query Service Options And Variants runs with these defaults, which you can override:
254
+ *
255
+ * - `id` is sorted in `ASC` order
256
+ * - `cursorPaging.limit` is `100`
257
+ *
258
+ * For a detailed list of supported filtering operations see
259
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
260
+ *
261
+ * To learn about working with _Query_ endpoints, see
262
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
263
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
264
+ * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
265
+ */
266
+ export function queryServiceOptionsAndVariants(payload) {
267
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryServiceOptionsAndVariantsRequest, {});
268
+ const { fromJSON: fromRes } = serializer(_queryServiceOptionsAndVariantsResponse, {});
269
+ function __queryServiceOptionsAndVariants({ host }) {
270
+ const serializedData = toReq(payload);
271
+ const metadata = {
272
+ method: 'POST',
273
+ url: resolveWixBookingsCatalogV1ServiceOptionsAndVariantsServiceUrl({
274
+ protoPath: '/v1/serviceOptionsAndVariants/query',
275
+ data: serializedData,
276
+ host,
277
+ }),
278
+ data: serializedData,
279
+ transformResponse: fromRes,
280
+ };
281
+ return metadata;
282
+ }
283
+ __queryServiceOptionsAndVariants.fromReq = fromReq;
284
+ return __queryServiceOptionsAndVariants;
285
+ }
286
+ //# sourceMappingURL=bookings-catalog-v1-service-options-and-variants.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-catalog-v1-service-options-and-variants.http.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-service-options-and-variants.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAoBhD,MAAM,sCAAsC,GAAG,EAAE,CAAC;AAClD,MAAM,uCAAuC,GAAG,EAAE,CAAC;AACnD,MAAM,uCAAuC,GAAG,EAAE,CAAC;AACnD,MAAM,wCAAwC,GAAG,EAAE,CAAC;AACpD,MAAM,uCAAuC,GAAG,EAAE,CAAC;AACnD,MAAM,wCAAwC,GAAG,EAAE,CAAC;AACpD,MAAM,+CAA+C,GAAG,EAAE,CAAC;AAC3D,MAAM,gDAAgD,GAAG,EAAE,CAAC;AAC5D,MAAM,oCAAoC,GAAG,EAAE,CAAC;AAChD,MAAM,qCAAqC,GAAG,EAAE,CAAC;AACjD,MAAM,sCAAsC,GAAG,EAAE,CAAC;AAClD,MAAM,uCAAuC,GAAG,EAAE,CAAC;AACnD,MAAM,uCAAuC,GAAG;IAC9C,IAAI,EAAE,2BAA2B;CAClC,CAAC;AACF,MAAM,wCAAwC,GAAG,EAAE,CAAC;AAEpD,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBA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AAO,gCAAgC,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { ServiceOptionsAndVariants, UpdateServiceOptionsAndVariants, DeleteServiceOptionsAndVariantsOptions, UpdateServiceOptionsAndVariantsOptions } from './bookings-catalog-v1-service-options-and-variants.universal';
3
+ export declare function createServiceOptionsAndVariants(httpClient: HttpClient): (serviceOptionsAndVariants: ServiceOptionsAndVariants) => Promise<import("./bookings-catalog-v1-service-options-and-variants.universal").CreateServiceOptionsAndVariantsResponse>;
4
+ export declare function cloneServiceOptionsAndVariants(httpClient: HttpClient): (cloneFromId: string, targetServiceId: string) => Promise<import("./bookings-catalog-v1-service-options-and-variants.universal").CloneServiceOptionsAndVariantsResponse>;
5
+ export declare function getServiceOptionsAndVariants(httpClient: HttpClient): (serviceOptionsAndVariantsId: string) => Promise<ServiceOptionsAndVariants>;
6
+ export declare function getServiceOptionsAndVariantsByServiceId(httpClient: HttpClient): (serviceId: string) => Promise<import("./bookings-catalog-v1-service-options-and-variants.universal").GetServiceOptionsAndVariantsByServiceIdResponse>;
7
+ export declare function updateServiceOptionsAndVariants(httpClient: HttpClient): (_id: string | null, serviceOptionsAndVariants: UpdateServiceOptionsAndVariants, options?: UpdateServiceOptionsAndVariantsOptions | undefined) => Promise<ServiceOptionsAndVariants>;
8
+ export declare function deleteServiceOptionsAndVariants(httpClient: HttpClient): (serviceOptionsAndVariantsId: string, options?: DeleteServiceOptionsAndVariantsOptions | undefined) => Promise<void>;
9
+ export declare function queryServiceOptionsAndVariants(httpClient: HttpClient): () => import("./bookings-catalog-v1-service-options-and-variants.universal").ServiceOptionsAndVariantsListQueryBuilder;
10
+ export { ServiceOptionType, SortOrder, Day, Transparency, RecurringIntervalType, LocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, ResourceStatus, Event, ServiceStatus, ServiceNotificationEvent, CalendarType, Status, SessionType, PlacementType, ResolutionMethod, } from './bookings-catalog-v1-service-options-and-variants.universal';
11
+ export { ServiceOptionsAndVariants, ServiceOption, ServiceOptionOptionSpecificDataOneOf, CustomServiceOption, ServiceVariant, ServiceChoice, ServiceChoiceChoiceOneOf, Money, ServiceOptions, ServiceVariants, CreateServiceOptionsAndVariantsRequest, CreateServiceOptionsAndVariantsResponse, CloneServiceOptionsAndVariantsRequest, CloneServiceOptionsAndVariantsResponse, GetServiceOptionsAndVariantsRequest, GetServiceOptionsAndVariantsResponse, GetServiceOptionsAndVariantsByServiceIdRequest, GetServiceOptionsAndVariantsByServiceIdResponse, UpdateServiceOptionsAndVariantsRequest, UpdateServiceOptionsAndVariantsResponse, DeleteServiceOptionsAndVariantsRequest, DeleteServiceOptionsAndVariantsResponse, QueryServiceOptionsAndVariantsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServiceOptionsAndVariantsResponse, PagingMetadataV2, Cursors, ResourceNotification, Resource, Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, Empty, ServiceNotification, Service, ServiceInfo, Media, MediaItem, MediaItemItemOneOf, BookingPolicy, FutureBookingPolicy, WaitingListPolicy, BookingsApprovalPolicy, PaymentOptions, SeoSchema, Keyword, Tag, Settings, BusinessServicesPolicy, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, SitePropertiesNotification, SitePropertiesEvent, Properties, Categories, Locale, V4Address, AddressHint, GeoCoordinates, Multilingual, SupportedLanguage, ConsentPolicy, Translation, ChangeContext, ChangeContextPayloadOneOf, PropertiesChange, SiteCreated, SiteCloned, UpdateServiceOptionsAndVariants, UpdateServiceOptionsAndVariantsOptions, DeleteServiceOptionsAndVariantsOptions, ServiceOptionsAndVariantsListQueryResult, ServiceOptionsAndVariantsListQueryBuilder, } from './bookings-catalog-v1-service-options-and-variants.universal';
@@ -0,0 +1,38 @@
1
+ import { createServiceOptionsAndVariants as universalCreateServiceOptionsAndVariants, cloneServiceOptionsAndVariants as universalCloneServiceOptionsAndVariants, getServiceOptionsAndVariants as universalGetServiceOptionsAndVariants, getServiceOptionsAndVariantsByServiceId as universalGetServiceOptionsAndVariantsByServiceId, updateServiceOptionsAndVariants as universalUpdateServiceOptionsAndVariants, deleteServiceOptionsAndVariants as universalDeleteServiceOptionsAndVariants, queryServiceOptionsAndVariants as universalQueryServiceOptionsAndVariants, } from './bookings-catalog-v1-service-options-and-variants.universal';
2
+ export function createServiceOptionsAndVariants(httpClient) {
3
+ return (serviceOptionsAndVariants) => universalCreateServiceOptionsAndVariants(serviceOptionsAndVariants,
4
+ // @ts-ignore
5
+ { httpClient });
6
+ }
7
+ export function cloneServiceOptionsAndVariants(httpClient) {
8
+ return (cloneFromId, targetServiceId) => universalCloneServiceOptionsAndVariants(cloneFromId, targetServiceId,
9
+ // @ts-ignore
10
+ { httpClient });
11
+ }
12
+ export function getServiceOptionsAndVariants(httpClient) {
13
+ return (serviceOptionsAndVariantsId) => universalGetServiceOptionsAndVariants(serviceOptionsAndVariantsId,
14
+ // @ts-ignore
15
+ { httpClient });
16
+ }
17
+ export function getServiceOptionsAndVariantsByServiceId(httpClient) {
18
+ return (serviceId) => universalGetServiceOptionsAndVariantsByServiceId(serviceId,
19
+ // @ts-ignore
20
+ { httpClient });
21
+ }
22
+ export function updateServiceOptionsAndVariants(httpClient) {
23
+ return (_id, serviceOptionsAndVariants, options) => universalUpdateServiceOptionsAndVariants(_id, serviceOptionsAndVariants, options,
24
+ // @ts-ignore
25
+ { httpClient });
26
+ }
27
+ export function deleteServiceOptionsAndVariants(httpClient) {
28
+ return (serviceOptionsAndVariantsId, options) => universalDeleteServiceOptionsAndVariants(serviceOptionsAndVariantsId, options,
29
+ // @ts-ignore
30
+ { httpClient });
31
+ }
32
+ export function queryServiceOptionsAndVariants(httpClient) {
33
+ return () => universalQueryServiceOptionsAndVariants(
34
+ // @ts-ignore
35
+ { httpClient });
36
+ }
37
+ export { ServiceOptionType, SortOrder, Day, Transparency, RecurringIntervalType, LocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, ResourceStatus, Event, ServiceStatus, ServiceNotificationEvent, CalendarType, Status, SessionType, PlacementType, ResolutionMethod, } from './bookings-catalog-v1-service-options-and-variants.universal';
38
+ //# sourceMappingURL=bookings-catalog-v1-service-options-and-variants.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-catalog-v1-service-options-and-variants.public.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-service-options-and-variants.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,+BAA+B,IAAI,wCAAwC,EAC3E,8BAA8B,IAAI,uCAAuC,EACzE,4BAA4B,IAAI,qCAAqC,EACrE,uCAAuC,IAAI,gDAAgD,EAC3F,+BAA+B,IAAI,wCAAwC,EAC3E,+BAA+B,IAAI,wCAAwC,EAC3E,8BAA8B,IAAI,uCAAuC,GAK1E,MAAM,8DAA8D,CAAC;AAEtE,MAAM,UAAU,+BAA+B,CAAC,UAAsB;IACpE,OAAO,CAAC,yBAAoD,EAAE,EAAE,CAC9D,wCAAwC,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