@wix/auto_sdk_bookings_service-options-and-variants 1.0.46 → 1.0.47
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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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`.
|