@wix/bookings 1.0.14 → 1.0.15

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 +49 -26
  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 +49 -26
  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
@@ -150,26 +150,31 @@ const _updateSessionResponse = { session: '_session' };
150
150
  /**
151
151
  * Creates a session.
152
152
  *
153
+ *
154
+ * The `createSession()` function returns a Promise that resolves when a session is created.
153
155
  * A session is one of the following:
154
- * + `"EVENT"`: Reserved period of time on any [schedule](wix-bookings-backend.sessions/introduction#schedules). For example, an appointment, class, or course. Events are visible in the Dashboard in the Bookings app's [**Booking Calendar**](https://support.wix.com/en/article/wix-bookings-about-the-wix-bookings-calendar) page. Set `type` to `"EVENT"` when creating sessions that reserve time on a service's schedule, or when creating a blocked time for a resource.
155
- * + `"WORKING_HOURS"`: Placeholder for available time on a resource’s schedule. Set `type` to `"WORKING_HOURS"` when creating sessions for resource availability.
156
+ * + `EVENT`: Reserved period of time on any schedule. For example, an appointment, class, or course. Events are visible in the Dashboard in the Bookings app's [Booking Calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-bookings-calendar) page. Set `type` to `EVENT` when creating sessions that reserve time on a service's schedule, or when creating a blocked time for a resource.
157
+ * + `WORKING_HOURS`: Placeholder for available time on a resource’s schedule. Set `type` to `WORKING_HOURS` when creating sessions for resource availability.
156
158
  *
157
159
  * Sessions belong to a schedule. Schedules are owned by a resource or a service.
158
160
  *
159
161
  * A session may be an individual session or a recurring session.
160
162
  * An individual session has a discrete start and end date, while a recurring session defines a series of repeating sessions. An instance of a recurring session is a specific session in a series of repeating sessions, generated according to the recurrence rule.
163
+ *
161
164
  * The `start` and `end` properties set the time and duration of the session. For non-recurring sessions, you can use either the `timestamp` or `localDateTime` properties.
162
- * For recurring sessions, use the `localDateTime` property only. For recurring sessions, the `start` property sets the date and time of the first recurring session, subject to the recurrence rule. For example, if you set the `start` to Saturday, May 1 and your recurrence rule says every second Monday, then the first session will only be on Monday, May 10.
165
+ * For recurring sessions, use the `localDateTime` property only.
166
+ *
167
+ * For recurring sessions, the `start` property sets the date and time of the first recurring session, subject to the recurrence rule. For example, if you set the `start` to Saturday, May 1 and your recurrence rule says every second Monday, then the first session will only be on Monday, May 10.
163
168
  *
164
169
  * The `year`, `monthOfYear` and `dayOfMonth` properties in the `end` property are used with the `hourOfDay` and `minutesOfHour` properties to set the duration of each session relative to the `start`.
170
+ *
165
171
  * The `UNTIL` keyword in the `recurrence` property sets the date for the last recurring session.
166
172
  *
167
- * You can create a session that blocks hours on the resource's calendar, making the resource unavailable.
168
- * Create a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
173
+ * You can create a session that blocks hours on the resource's calendar, making the resource unavailable, by creating a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
169
174
  *
170
175
  * >**Notes:**
171
176
  * > + For properties where there is no explicit timezone information, the timezone used is the business’s timezone.
172
- * > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can create a session. You can override the permissions by setting the `suppressAuth` option to `true`.
177
+ * > + This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
173
178
  * @param session - The session to create.
174
179
  * @public
175
180
  * @documentationMaturity preview
@@ -225,7 +230,10 @@ export function createSession(session) {
225
230
  /**
226
231
  * Updates a session.
227
232
  *
228
- * When you update a recurring session, only the future instances of the recurrence will be updated. Changing an individual instance's `start` or `end` time will change the way updates to `start` and `end` on the recurring session affect the session instance:
233
+ *
234
+ * The `updateSession()` function returns a Promise that resolves to the updated session.
235
+ *
236
+ * When you update a recurring session, only the future instances of the recurrence will be updated. Changing an individual instance's `start` or `end` time will change the way updates to `start` and `end` on the recurring session pattern definition affect the session instance:
229
237
  * |Change made to the instance | Effect of changes made to the recurrence
230
238
  * |--|--|
231
239
  * |Instance `start` time changed.|Changes to the recurring session's `start` or `end` time will not update the instance.|
@@ -238,7 +246,7 @@ export function createSession(session) {
238
246
  *
239
247
  * >**Notes:**
240
248
  * > + Where there is no explicit timezone information, the timezone used is the business’s timezone.
241
- * > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can update a session. You can override the permissions by setting the `suppressAuth` option to `true`.
249
+ * > + This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
242
250
  * @param _id - Session ID.
243
251
  * @public
244
252
  * @documentationMaturity preview
@@ -298,12 +306,17 @@ export function updateSession(_id, session, options) {
298
306
  /**
299
307
  * Deletes a session.
300
308
  *
301
- * Use the `participantNotification` property to send an email to the participants when the session is deleted.
302
- * When deleting a session of type `"EVENT"` where a booking exists, the booking's status is updated to `"CANCELED"`.
303
- * To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` property in the parameters.
309
+ *
310
+ * The `deleteSession()` function returns a Promise that resolves when the session has been deleted.
311
+ *
312
+ * Use the `options.participantNotification` property to send an email notification to the participants when the session is deleted.
313
+ *
314
+ * When deleting a session of type `EVENT` where a booking exists, the booking's status is updated to `CANCELED`.
315
+ *
316
+ * To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` parameter.
304
317
  * When deleting a recurrence, only future instances of the recurrence are deleted.
305
318
  *
306
- * >**Note:** Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can delete a session. You can override the permissions by setting the `suppressAuth` option to `true`.
319
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
307
320
  * @param sessionId - The ID of the session to delete.
308
321
  * @public
309
322
  * @documentationMaturity preview
@@ -359,29 +372,31 @@ export function deleteSession(sessionId, options) {
359
372
  /**
360
373
  * Retrieves a list of sessions, given the provided time range, filtering, and paging.
361
374
  *
362
- * Query Sessions runs with these defaults, which you can override:
375
+ *
376
+ * The `querySessions()` function builds a query to retrieve a list of sessions, and returns a `SessionQueryBuilder` object.
377
+ *
378
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
379
+ *
380
+ * You can refine the query by chaining `SessionQueryBuilder` functions to the query, before chaining `find()`. These enable you to filter and control the results a query returns.
381
+ *
382
+ * The `querySessions()` function runs with these defaults, which you can override:
363
383
  * - All session types are returned.
364
- * - `instances` is true. This means only single sessions and instances of recurring sessions are returned.
384
+ * - `options.instances` is true. This means only single sessions and instances of recurring sessions are returned.
365
385
  * - Session objects are returned with the fields specified in the `NO_PI` fieldset. This means they don't contain personal information.
366
- * - `query.cursorPaging.limit` is `100`.
367
386
  *
368
387
  * Note the following limitations, which you can't override:
369
388
  * - Sessions are always sorted by `start.timestamp` in `ASC` order.
370
389
  * - The maximum time range you can query is 1 year.
371
390
  *
372
- * To query only for events, set `type` to `EVENT`. An event is a single or recurring session that appears in a calendar, for example an appointment or a class.
373
- *
374
- * To query for recurring session pattern definitions, set `instances` to `false`. In this case, you don't need to specify a time range.
391
+ * To query only for events, set `options.type` to `EVENT`. An event is a single or recurring session that appears in a calendar, for example an appointment or a class.
375
392
  *
376
- * To return session objects including personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
393
+ * To query for recurring session pattern definitions, set `options.instances` to `false`. In this case, you don't need to specify a time range.
377
394
  *
378
- * For details on fieldsets, see [Sessions: Supported Fieldsets](#fieldsets).
395
+ * To return session objects including personal information, use the `ALL_PI` fieldset.
379
396
  *
380
- * For field support for filters, see [Sessions: Supported Filters](#filtering).
397
+ * For details on fieldsets, see [Sessions: Supported Fieldsets](https://www.wix.com/velo/reference/wix-bookings-v2/sessions/fieldsets).
381
398
  *
382
- * To learn about working with _Query_ endpoints in general, see
383
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and
384
- * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
399
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
385
400
  * @public
386
401
  * @documentationMaturity preview
387
402
  */
@@ -440,8 +455,12 @@ export function querySessions(options) {
440
455
  * Retrieves a session by ID.
441
456
  *
442
457
  *
458
+ * The `getSession()` function returns a Promise that resolves to a session with the specified session ID.
459
+ *
443
460
  * By default, a session object is returned with the fields specified in the `NO_PI` fieldset. This means it doesn't contain personal information.
444
- * To retrieve a full session object including all personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
461
+ * To retrieve a full session object including all personal information, use the `ALL_PI` fieldset.
462
+ *
463
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
445
464
  * @param _id - ID of the session to retrieve.
446
465
  * @public
447
466
  * @documentationMaturity preview
@@ -496,8 +515,12 @@ export function getSession(_id, options) {
496
515
  * Retrieves a list of sessions by their IDs.
497
516
  *
498
517
  *
518
+ * The `listSessions()` function returns a Promise that resolves to the sessions with the specified IDs.
519
+ *
499
520
  * By default, session objects are returned with the fields specified in the `NO_PI` fieldset. This means they don't contain personal information.
500
- * To retrieve full session objects including all personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
521
+ * To retrieve full session objects including all personal information, use the `ALL_PI` fieldset.
522
+ *
523
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
501
524
  * @param ids - IDs of the sessions to retrieve.
502
525
  * @public
503
526
  * @documentationMaturity preview
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-calendar-v1-session.universal.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAC9F,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA4N5B,MAA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E,qBAAqB;YACjC,UAAU,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE;YACvD,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;gBAC9B,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;QAEpD,MAAM,OAAO,GAAG,sCAAsC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAE7E,KAAK,CAAC,wCAAwC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEpE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
1
+ {"version":3,"file":"bookings-calendar-v1-session.universal.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC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C,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
@@ -0,0 +1,64 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { CloneServiceOptionsAndVariantsRequest, CloneServiceOptionsAndVariantsResponse, CreateServiceOptionsAndVariantsRequest, CreateServiceOptionsAndVariantsResponse, DeleteServiceOptionsAndVariantsRequest, DeleteServiceOptionsAndVariantsResponse, GetServiceOptionsAndVariantsByServiceIdRequest, GetServiceOptionsAndVariantsByServiceIdResponse, GetServiceOptionsAndVariantsRequest, GetServiceOptionsAndVariantsResponse, QueryServiceOptionsAndVariantsRequest, QueryServiceOptionsAndVariantsResponse, UpdateServiceOptionsAndVariantsRequest, UpdateServiceOptionsAndVariantsResponse } from './bookings-catalog-v1-service-options-and-variants.types';
3
+ /**
4
+ * Creates options and variants for a service. Note that only a single
5
+ * `serviceOptionsAndVariants` object is supported per service.
6
+ *
7
+ *
8
+ * Currently, only a single option is supported per `serviceOptionsAndVariants` object.
9
+ *
10
+ * Before creating the `serviceOptionsAndVariants` object you need to calculate
11
+ * all variants, since you must pass them in the `variants` array of the
12
+ * request. Variants aren't automatically calculated from the options. Currently,
13
+ * services are limited to a single option. Therefore, the variants
14
+ * array is equal to the list of all choices for custom options,
15
+ * or all staff members providing the service for staff member based options.
16
+ */
17
+ export declare function createServiceOptionsAndVariants(payload: CreateServiceOptionsAndVariantsRequest): RequestOptionsFactory<CreateServiceOptionsAndVariantsResponse>;
18
+ /**
19
+ * Clones a `serviceOptionsAndVariants` object. This endpoint can be called, for example, when duplicating a service.
20
+ * The result is a deep clone in which all Service Options and Service Variants are duplicated. Each Service Option
21
+ * in the clone will have a newly generated ID that is copied to all Service Choices of the Service Variants in the
22
+ * clone. The clone will reference the service provided in the request by `target_service_id`.
23
+ */
24
+ export declare function cloneServiceOptionsAndVariants(payload: CloneServiceOptionsAndVariantsRequest): RequestOptionsFactory<CloneServiceOptionsAndVariantsResponse>;
25
+ /** Retrieves a `serviceOptionsAndVariants` object. */
26
+ export declare function getServiceOptionsAndVariants(payload: GetServiceOptionsAndVariantsRequest): RequestOptionsFactory<GetServiceOptionsAndVariantsResponse>;
27
+ /** Retrieves a service's options and variants by `service_id`. */
28
+ export declare function getServiceOptionsAndVariantsByServiceId(payload: GetServiceOptionsAndVariantsByServiceIdRequest): RequestOptionsFactory<GetServiceOptionsAndVariantsByServiceIdResponse>;
29
+ /**
30
+ * Updates the specified fields of the `serviceOptionsAndVariants` object.
31
+ *
32
+ * Currently, only a single option is supported per `serviceOptionsAndVariants` object.
33
+ *
34
+ * If you want to update `variants`, you must pass the full list of supported variants.
35
+ *
36
+ * If you want to update `options`, you must pass the full list of supported options.
37
+ */
38
+ export declare function updateServiceOptionsAndVariants(payload: UpdateServiceOptionsAndVariantsRequest): RequestOptionsFactory<UpdateServiceOptionsAndVariantsResponse>;
39
+ /**
40
+ * Deletes a `serviceOptionsAndVariants` object.
41
+ *
42
+ *
43
+ * Since each service has only a single `serviceOptionsAndVariants` object, the
44
+ * service won't have any supported options and variants any longer. Instead
45
+ * the standard Wix Bookings service price calculation will be used.
46
+ */
47
+ export declare function deleteServiceOptionsAndVariants(payload: DeleteServiceOptionsAndVariantsRequest): RequestOptionsFactory<DeleteServiceOptionsAndVariantsResponse>;
48
+ /**
49
+ * Retrieves a list of `serviceOptionsAndVariants`, given the provided paging, filtering, and sorting.
50
+ *
51
+ * Query Service Options And Variants runs with these defaults, which you can override:
52
+ *
53
+ * - `id` is sorted in `ASC` order
54
+ * - `cursorPaging.limit` is `100`
55
+ *
56
+ * For a detailed list of supported filtering operations see
57
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
58
+ *
59
+ * To learn about working with _Query_ endpoints, see
60
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
61
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
62
+ * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
63
+ */
64
+ export declare function queryServiceOptionsAndVariants(payload: QueryServiceOptionsAndVariantsRequest): RequestOptionsFactory<QueryServiceOptionsAndVariantsResponse>;
@@ -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,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,+BAA+B;aAC1C;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,+BAA+B;aAC1C;YACD;gBACE,OAAO,EAAE,gDAAgD;gBACzD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,+BAA+B;aAC1C;YACD;gBACE,O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aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,iCAAiC,CAAC,OAAO,GAAG,OAAO,CAAC;IAEpD,OAAO,iCAAiC,CAAC;AAC3C,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,8BAA8B,CAC5C,OAA8C;IAE9C,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACrD,sCAAsC,EACtC,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACtC,uCAAuC,EACvC,EAAE,CACH,CAAC;IAEF,SAAS,gCAAgC,CAAC,EAAE,IAAI,EAAO;QACrD,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,8DAA8D,CAAC;gBAClE,SAAS,EAAE,qCAAqC;gBAChD,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gCAAgC,CAAC,OAAO,GAAG,OAAO,CAAC;IAEnD,OAAO,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