@wix/bookings 1.0.1755 → 1.0.1757
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/_sdk-exports/context-booking-checkout/runtime.d.ts +42 -1
- package/_sdk-exports/context-booking-checkout/runtime.js +3 -2
- package/_sdk-exports/context-categories/runtime.d.ts +1 -1
- package/_sdk-exports/context-categories/runtime.js +2 -1
- package/_sdk-exports/context-locations/runtime.d.ts +1 -1
- package/_sdk-exports/context-locations/runtime.js +2 -1
- package/_sdk-exports/context-service/runtime.d.ts +42 -1
- package/_sdk-exports/context-service/runtime.js +3 -2
- package/_sdk-exports/context-service-addons/runtime.d.ts +1 -1
- package/_sdk-exports/context-service-addons/runtime.js +2 -1
- package/_sdk-exports/context-services/runtime.d.ts +42 -1
- package/_sdk-exports/context-services/runtime.js +3 -2
- package/_sdk-exports/context-time-slots/runtime.d.ts +22 -9
- package/_sdk-exports/context-time-slots/runtime.js +3 -2
- package/build/cjs/context-booking-checkout.d.ts +42 -1
- package/build/cjs/context-booking-checkout.js +1346 -1344
- package/build/cjs/context-booking-checkout.js.map +1 -1
- package/build/cjs/context-categories.d.ts +1 -1
- package/build/cjs/context-categories.js +116 -114
- package/build/cjs/context-categories.js.map +1 -1
- package/build/cjs/context-locations.d.ts +1 -1
- package/build/cjs/context-locations.js +126 -124
- package/build/cjs/context-locations.js.map +1 -1
- package/build/cjs/context-service-addons.d.ts +1 -1
- package/build/cjs/context-service-addons.js +323 -321
- package/build/cjs/context-service-addons.js.map +1 -1
- package/build/cjs/context-service.d.ts +42 -1
- package/build/cjs/context-service.js +1517 -1515
- package/build/cjs/context-service.js.map +1 -1
- package/build/cjs/context-services.d.ts +42 -1
- package/build/cjs/context-services.js +460 -458
- package/build/cjs/context-services.js.map +1 -1
- package/build/cjs/context-time-slots.d.ts +22 -9
- package/build/cjs/context-time-slots.js +1033 -1000
- package/build/cjs/context-time-slots.js.map +1 -1
- package/build/es/context-booking-checkout.d.mts +42 -1
- package/build/es/context-booking-checkout.mjs +1346 -1344
- package/build/es/context-booking-checkout.mjs.map +1 -1
- package/build/es/context-categories.d.mts +1 -1
- package/build/es/context-categories.mjs +116 -114
- package/build/es/context-categories.mjs.map +1 -1
- package/build/es/context-locations.d.mts +1 -1
- package/build/es/context-locations.mjs +126 -124
- package/build/es/context-locations.mjs.map +1 -1
- package/build/es/context-service-addons.d.mts +1 -1
- package/build/es/context-service-addons.mjs +323 -321
- package/build/es/context-service-addons.mjs.map +1 -1
- package/build/es/context-service.d.mts +42 -1
- package/build/es/context-service.mjs +1517 -1515
- package/build/es/context-service.mjs.map +1 -1
- package/build/es/context-services.d.mts +42 -1
- package/build/es/context-services.mjs +460 -458
- package/build/es/context-services.mjs.map +1 -1
- package/build/es/context-time-slots.d.mts +22 -9
- package/build/es/context-time-slots.mjs +1033 -1000
- package/build/es/context-time-slots.mjs.map +1 -1
- package/build/internal/cjs/context-booking-checkout.d.ts +42 -1
- package/build/internal/cjs/context-categories.d.ts +1 -1
- package/build/internal/cjs/context-locations.d.ts +1 -1
- package/build/internal/cjs/context-service-addons.d.ts +1 -1
- package/build/internal/cjs/context-service.d.ts +42 -1
- package/build/internal/cjs/context-services.d.ts +42 -1
- package/build/internal/cjs/context-time-slots.d.ts +22 -9
- package/build/internal/es/context-booking-checkout.d.mts +42 -1
- package/build/internal/es/context-categories.d.mts +1 -1
- package/build/internal/es/context-locations.d.mts +1 -1
- package/build/internal/es/context-service-addons.d.mts +1 -1
- package/build/internal/es/context-service.d.mts +42 -1
- package/build/internal/es/context-services.d.mts +42 -1
- package/build/internal/es/context-time-slots.d.mts +22 -9
- package/package.json +2 -2
|
@@ -1219,8 +1219,13 @@ interface TimeSlotsContextFields {
|
|
|
1219
1219
|
* - Any female or any male staff member, with `id` and `gender` both `'ANY_FEMALE'` or
|
|
1220
1220
|
* `'ANY_MALE'`, and no name. Label these options in your own words.
|
|
1221
1221
|
*
|
|
1222
|
-
*
|
|
1223
|
-
*
|
|
1222
|
+
* While a location is selected in the location filter, the staff members are only those whose
|
|
1223
|
+
* working hours include that location. A staff member whose working hours aren't known is
|
|
1224
|
+
* always included.
|
|
1225
|
+
*
|
|
1226
|
+
* The 2 gender options come first, when the business offers them and the service has 2 or more
|
|
1227
|
+
* staff members. They're counted before the location narrows them, so the gender options stay
|
|
1228
|
+
* when 1 or no staff member works at the selected location.
|
|
1224
1229
|
*
|
|
1225
1230
|
* Empty when:
|
|
1226
1231
|
* - The business assigns the staff member for an appointment itself.
|
|
@@ -1230,9 +1235,12 @@ interface TimeSlotsContextFields {
|
|
|
1230
1235
|
*/
|
|
1231
1236
|
readonly staffFilterOptions: ReadonlyArray<StaffFilterOption>;
|
|
1232
1237
|
/**
|
|
1233
|
-
* Options for a location filter, which are the business locations the service is offered at
|
|
1234
|
-
* sorted by name, each with its `id` and `name`.
|
|
1235
|
-
*
|
|
1238
|
+
* Options for a location filter, which are the business locations the service is offered at
|
|
1239
|
+
* and at least 1 of its staff members works at, sorted by name, each with its `id` and `name`.
|
|
1240
|
+
* When the visitor selected a staff member before reaching the page, only the locations that
|
|
1241
|
+
* staff member works at. All the service's locations when none would be left. When
|
|
1242
|
+
* rescheduling, the booking's location is included whoever works there, as long as the service
|
|
1243
|
+
* is still offered there. To get a location's details, use the [Locations
|
|
1236
1244
|
* API](https://dev.wix.com/docs/api-reference/business-management/locations/introduction).
|
|
1237
1245
|
*
|
|
1238
1246
|
* Empty when the service is offered at no business location, when the visitor selected a
|
|
@@ -1247,7 +1255,11 @@ interface TimeSlotsContextFields {
|
|
|
1247
1255
|
*
|
|
1248
1256
|
* It starts from the location the visitor selected before reaching the page, the page URL's
|
|
1249
1257
|
* `location` query parameter, or, when rescheduling, the booking's location, when the service
|
|
1250
|
-
* is offered there.
|
|
1258
|
+
* is offered there. The URL's location is also ignored when it isn't in
|
|
1259
|
+
* `locationFilterOptions`, such as a location none of the service's staff members works at.
|
|
1260
|
+
*
|
|
1261
|
+
* When the service is offered at 2 or more locations and its staff members work at only 1 of
|
|
1262
|
+
* them, it's that location, even when the visitor didn't select it.
|
|
1251
1263
|
*/
|
|
1252
1264
|
readonly selectedLocationFilter: string | null;
|
|
1253
1265
|
/**
|
|
@@ -1315,10 +1327,11 @@ interface TimeSlotsContextFields {
|
|
|
1315
1327
|
* Filters the time slots and the day availability to 1 of the business locations the service
|
|
1316
1328
|
* is offered at.
|
|
1317
1329
|
*
|
|
1318
|
-
* Specify `null` to show the time slots at every location. Ignored for
|
|
1319
|
-
*
|
|
1330
|
+
* Specify `null` to show the time slots at every location. Ignored for an ID that isn't in
|
|
1331
|
+
* `locationFilterOptions`, and while `locationFilterOptions` is empty.
|
|
1320
1332
|
*
|
|
1321
|
-
* Changing the filter reloads the time slots, and clears the selected time slot.
|
|
1333
|
+
* Changing the filter reloads the time slots, and clears the selected time slot. It also clears
|
|
1334
|
+
* a staff filter set to a staff member who doesn't work at the new location.
|
|
1322
1335
|
*
|
|
1323
1336
|
* @param id - ID of the location, from `locationFilterOptions`. `null` to clear the filter.
|
|
1324
1337
|
* @example Add a location filter
|