@wix/auto_sdk_bookings_service-options-and-variants 1.0.41 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +9 -9
- package/build/cjs/index.js +9 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +6 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +9 -9
- package/build/es/index.mjs +9 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +6 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +9 -9
- package/build/internal/cjs/index.js +9 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +6 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +9 -9
- package/build/internal/es/index.mjs +9 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +6 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ interface CreateServiceOptionsAndVariantsSignature {
|
|
|
8
8
|
* Creates a `serviceOptionsAndVariants` object and for a service.
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* ### Calculate variants
|
|
12
12
|
*
|
|
13
13
|
* Before creating a `serviceOptionsAndVariants` object, you need to
|
|
14
14
|
* anticipate and manually define all its variants, since Wix Bookings doesn't
|
|
@@ -16,7 +16,7 @@ interface CreateServiceOptionsAndVariantsSignature {
|
|
|
16
16
|
* Create Service Options And Variants* call, specify both the `options` and
|
|
17
17
|
* `variants` arrays.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* ### Limitations
|
|
20
20
|
*
|
|
21
21
|
* Wix Bookings allows you to connect only a single `serviceOptionsAndVariants`
|
|
22
22
|
* object to a service. *Create Service Options And Variants* fails, if the
|
|
@@ -26,14 +26,14 @@ interface CreateServiceOptionsAndVariantsSignature {
|
|
|
26
26
|
* `serviceOptionsAndVariants` object. Taken together, this means that services
|
|
27
27
|
* are limited to a single option.
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* ### Option ID
|
|
30
30
|
*
|
|
31
31
|
* When creating a`serviceOptionsAndVariants` object, you must specify an ID in
|
|
32
32
|
* [UUID format](https://en.wikipedia.org/wiki/Universally_unique_identifier)
|
|
33
33
|
* for its only option. You must reference this option ID for each variant as
|
|
34
34
|
* `variants.values.choices.optionId`.
|
|
35
35
|
*
|
|
36
|
-
*
|
|
36
|
+
* ### Staff member option
|
|
37
37
|
*
|
|
38
38
|
* To creating an option based on the *staff member*
|
|
39
39
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction))
|
|
@@ -42,7 +42,7 @@ interface CreateServiceOptionsAndVariantsSignature {
|
|
|
42
42
|
* You could follow this *sample flow*
|
|
43
43
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/sample-flows#create-staff-member-based-service-variants) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/sample-flows#create-staff-member-based-service-variants)).
|
|
44
44
|
*
|
|
45
|
-
*
|
|
45
|
+
* ### Custom option
|
|
46
46
|
*
|
|
47
47
|
* To create an option based on a custom parameter, specify `CUSTOM` as
|
|
48
48
|
* `options.values.type`. Provide descriptive names for all custom choices as
|
|
@@ -50,7 +50,7 @@ interface CreateServiceOptionsAndVariantsSignature {
|
|
|
50
50
|
* during the book flow. You could follow this *sample flow*
|
|
51
51
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/sample-flows#create-service-variants-based-on-the-booked-equipment) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/sample-flows#create-service-variants-based-on-the-booked-equipment)).
|
|
52
52
|
*
|
|
53
|
-
*
|
|
53
|
+
* ### Duration option
|
|
54
54
|
*
|
|
55
55
|
* To create an option based on appointment duration, specify `DURATION` as
|
|
56
56
|
* `options.values.type` and set a descriptive name in `options.values.durationData.name`.
|
|
@@ -174,10 +174,10 @@ declare const updateServiceOptionsAndVariants: MaybeContext<BuildRESTFunction<ty
|
|
|
174
174
|
declare const deleteServiceOptionsAndVariants: MaybeContext<BuildRESTFunction<typeof deleteServiceOptionsAndVariants$1> & typeof deleteServiceOptionsAndVariants$1>;
|
|
175
175
|
declare const queryServiceOptionsAndVariants: MaybeContext<BuildRESTFunction<typeof queryServiceOptionsAndVariants$1> & typeof queryServiceOptionsAndVariants$1>;
|
|
176
176
|
/** */
|
|
177
|
-
declare const onServiceOptionsAndVariantsCreated: BuildEventDefinition<typeof onServiceOptionsAndVariantsCreated$1
|
|
177
|
+
declare const onServiceOptionsAndVariantsCreated: BuildEventDefinition<typeof onServiceOptionsAndVariantsCreated$1> & typeof onServiceOptionsAndVariantsCreated$1;
|
|
178
178
|
/** */
|
|
179
|
-
declare const onServiceOptionsAndVariantsDeleted: BuildEventDefinition<typeof onServiceOptionsAndVariantsDeleted$1
|
|
179
|
+
declare const onServiceOptionsAndVariantsDeleted: BuildEventDefinition<typeof onServiceOptionsAndVariantsDeleted$1> & typeof onServiceOptionsAndVariantsDeleted$1;
|
|
180
180
|
/** */
|
|
181
|
-
declare const onServiceOptionsAndVariantsUpdated: BuildEventDefinition<typeof onServiceOptionsAndVariantsUpdated$1
|
|
181
|
+
declare const onServiceOptionsAndVariantsUpdated: BuildEventDefinition<typeof onServiceOptionsAndVariantsUpdated$1> & typeof onServiceOptionsAndVariantsUpdated$1;
|
|
182
182
|
|
|
183
183
|
export { CloneServiceOptionsAndVariantsResponse, CreateServiceOptionsAndVariantsApplicationErrors, DeleteServiceOptionsAndVariantsOptions, GetServiceOptionsAndVariantsByServiceIdResponse, ServiceOptionsAndVariants, ServiceOptionsAndVariantsCreatedEnvelope, ServiceOptionsAndVariantsDeletedEnvelope, ServiceOptionsAndVariantsListQueryBuilder, ServiceOptionsAndVariantsUpdatedEnvelope, UpdateServiceOptionsAndVariants, UpdateServiceOptionsAndVariantsApplicationErrors, cloneServiceOptionsAndVariants, createServiceOptionsAndVariants, deleteServiceOptionsAndVariants, getServiceOptionsAndVariants, getServiceOptionsAndVariantsByServiceId, onServiceOptionsAndVariantsCreated, onServiceOptionsAndVariantsDeleted, onServiceOptionsAndVariantsUpdated, queryServiceOptionsAndVariants, updateServiceOptionsAndVariants };
|
package/build/cjs/index.js
CHANGED
|
@@ -662,9 +662,15 @@ var getServiceOptionsAndVariantsByServiceId4 = /* @__PURE__ */ (0, import_rest_m
|
|
|
662
662
|
var updateServiceOptionsAndVariants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateServiceOptionsAndVariants3);
|
|
663
663
|
var deleteServiceOptionsAndVariants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteServiceOptionsAndVariants3);
|
|
664
664
|
var queryServiceOptionsAndVariants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryServiceOptionsAndVariants3);
|
|
665
|
-
var onServiceOptionsAndVariantsCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
666
|
-
|
|
667
|
-
|
|
665
|
+
var onServiceOptionsAndVariantsCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
666
|
+
onServiceOptionsAndVariantsCreated
|
|
667
|
+
);
|
|
668
|
+
var onServiceOptionsAndVariantsDeleted2 = (0, import_event_definition_modules.createEventModule)(
|
|
669
|
+
onServiceOptionsAndVariantsDeleted
|
|
670
|
+
);
|
|
671
|
+
var onServiceOptionsAndVariantsUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
672
|
+
onServiceOptionsAndVariantsUpdated
|
|
673
|
+
);
|
|
668
674
|
// Annotate the CommonJS export names for ESM import in node:
|
|
669
675
|
0 && (module.exports = {
|
|
670
676
|
DayOfWeek,
|