@wix/bookings 1.0.1755 → 1.0.1756

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 (71) hide show
  1. package/_sdk-exports/context-booking-checkout/runtime.d.ts +42 -1
  2. package/_sdk-exports/context-booking-checkout/runtime.js +3 -2
  3. package/_sdk-exports/context-categories/runtime.d.ts +1 -1
  4. package/_sdk-exports/context-categories/runtime.js +2 -1
  5. package/_sdk-exports/context-locations/runtime.d.ts +1 -1
  6. package/_sdk-exports/context-locations/runtime.js +2 -1
  7. package/_sdk-exports/context-service/runtime.d.ts +42 -1
  8. package/_sdk-exports/context-service/runtime.js +3 -2
  9. package/_sdk-exports/context-service-addons/runtime.d.ts +1 -1
  10. package/_sdk-exports/context-service-addons/runtime.js +2 -1
  11. package/_sdk-exports/context-services/runtime.d.ts +42 -1
  12. package/_sdk-exports/context-services/runtime.js +3 -2
  13. package/_sdk-exports/context-time-slots/runtime.d.ts +22 -9
  14. package/_sdk-exports/context-time-slots/runtime.js +3 -2
  15. package/build/cjs/context-booking-checkout.d.ts +42 -1
  16. package/build/cjs/context-booking-checkout.js +1346 -1344
  17. package/build/cjs/context-booking-checkout.js.map +1 -1
  18. package/build/cjs/context-categories.d.ts +1 -1
  19. package/build/cjs/context-categories.js +116 -114
  20. package/build/cjs/context-categories.js.map +1 -1
  21. package/build/cjs/context-locations.d.ts +1 -1
  22. package/build/cjs/context-locations.js +126 -124
  23. package/build/cjs/context-locations.js.map +1 -1
  24. package/build/cjs/context-service-addons.d.ts +1 -1
  25. package/build/cjs/context-service-addons.js +323 -321
  26. package/build/cjs/context-service-addons.js.map +1 -1
  27. package/build/cjs/context-service.d.ts +42 -1
  28. package/build/cjs/context-service.js +1517 -1515
  29. package/build/cjs/context-service.js.map +1 -1
  30. package/build/cjs/context-services.d.ts +42 -1
  31. package/build/cjs/context-services.js +460 -458
  32. package/build/cjs/context-services.js.map +1 -1
  33. package/build/cjs/context-time-slots.d.ts +22 -9
  34. package/build/cjs/context-time-slots.js +1033 -1000
  35. package/build/cjs/context-time-slots.js.map +1 -1
  36. package/build/es/context-booking-checkout.d.mts +42 -1
  37. package/build/es/context-booking-checkout.mjs +1346 -1344
  38. package/build/es/context-booking-checkout.mjs.map +1 -1
  39. package/build/es/context-categories.d.mts +1 -1
  40. package/build/es/context-categories.mjs +116 -114
  41. package/build/es/context-categories.mjs.map +1 -1
  42. package/build/es/context-locations.d.mts +1 -1
  43. package/build/es/context-locations.mjs +126 -124
  44. package/build/es/context-locations.mjs.map +1 -1
  45. package/build/es/context-service-addons.d.mts +1 -1
  46. package/build/es/context-service-addons.mjs +323 -321
  47. package/build/es/context-service-addons.mjs.map +1 -1
  48. package/build/es/context-service.d.mts +42 -1
  49. package/build/es/context-service.mjs +1517 -1515
  50. package/build/es/context-service.mjs.map +1 -1
  51. package/build/es/context-services.d.mts +42 -1
  52. package/build/es/context-services.mjs +460 -458
  53. package/build/es/context-services.mjs.map +1 -1
  54. package/build/es/context-time-slots.d.mts +22 -9
  55. package/build/es/context-time-slots.mjs +1033 -1000
  56. package/build/es/context-time-slots.mjs.map +1 -1
  57. package/build/internal/cjs/context-booking-checkout.d.ts +42 -1
  58. package/build/internal/cjs/context-categories.d.ts +1 -1
  59. package/build/internal/cjs/context-locations.d.ts +1 -1
  60. package/build/internal/cjs/context-service-addons.d.ts +1 -1
  61. package/build/internal/cjs/context-service.d.ts +42 -1
  62. package/build/internal/cjs/context-services.d.ts +42 -1
  63. package/build/internal/cjs/context-time-slots.d.ts +22 -9
  64. package/build/internal/es/context-booking-checkout.d.mts +42 -1
  65. package/build/internal/es/context-categories.d.mts +1 -1
  66. package/build/internal/es/context-locations.d.mts +1 -1
  67. package/build/internal/es/context-service-addons.d.mts +1 -1
  68. package/build/internal/es/context-service.d.mts +42 -1
  69. package/build/internal/es/context-services.d.mts +42 -1
  70. package/build/internal/es/context-time-slots.d.mts +22 -9
  71. 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
- * The 2 gender options come first, when the business offers them and there are 2 or more
1223
- * staff members. The options don't depend on the location filter.
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`. To get a location's details, use the
1235
- * [Locations
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 a location the service
1319
- * isn't offered at, and while `locationFilterOptions` is empty.
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