@wix/headless-bookings 1.0.10 → 1.0.11

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.
@@ -10,7 +10,7 @@
10
10
  * `{ services, pagingMetadata }` shape.
11
11
  */
12
12
  import { type Service, type Paging, type Sorting } from '@wix/auto_sdk_bookings_services';
13
- import { LocationType as AvailabilityLocationType, type AvailabilityFilter, type Attribute, type Location as AvailabilityLocation } from '@wix/auto_sdk_bookings_catalog-search';
13
+ import { LocationType as AvailabilityLocationType, type ServiceFilters as AvailabilityFilter, type Attribute, type Location as AvailabilityLocation } from '@wix/auto_sdk_bookings_catalog-search';
14
14
  import type { FilterValue as Filter } from '@wix/headless-components/react';
15
15
  /**
16
16
  * Synthetic location ID constants for non-business locations
@@ -241,9 +241,9 @@ async function queryServicesByAvailability({ appId, filter, availabilityFilter,
241
241
  sort,
242
242
  cursorPaging: { limit, ...(cursor ? { cursor } : {}) },
243
243
  };
244
- const response = await (0, auto_sdk_bookings_catalog_search_1.queryServicesByAvailability)({
244
+ const response = await (0, auto_sdk_bookings_catalog_search_1.queryServicesByFilters)({
245
245
  query: availabilityQuery,
246
- availabilityFilter,
246
+ serviceFilters: availabilityFilter,
247
247
  });
248
248
  const results = response.results ?? [];
249
249
  return {
@@ -10,7 +10,7 @@
10
10
  * `{ services, pagingMetadata }` shape.
11
11
  */
12
12
  import { type Service, type Paging, type Sorting } from '@wix/auto_sdk_bookings_services';
13
- import { LocationType as AvailabilityLocationType, type AvailabilityFilter, type Attribute, type Location as AvailabilityLocation } from '@wix/auto_sdk_bookings_catalog-search';
13
+ import { LocationType as AvailabilityLocationType, type ServiceFilters as AvailabilityFilter, type Attribute, type Location as AvailabilityLocation } from '@wix/auto_sdk_bookings_catalog-search';
14
14
  import type { FilterValue as Filter } from '@wix/headless-components/react';
15
15
  /**
16
16
  * Synthetic location ID constants for non-business locations
@@ -10,7 +10,7 @@
10
10
  * `{ services, pagingMetadata }` shape.
11
11
  */
12
12
  import { queryServices as queryServicesApi, LocationTypeEnumLocationType as LocationType, } from '@wix/auto_sdk_bookings_services';
13
- import { queryServicesByAvailability as queryServicesByAvailabilitySdk, LocationType as AvailabilityLocationType, } from '@wix/auto_sdk_bookings_catalog-search';
13
+ import { queryServicesByFilters as queryServicesByAvailabilitySdk, LocationType as AvailabilityLocationType, } from '@wix/auto_sdk_bookings_catalog-search';
14
14
  import { BOOKING_APP_ID, DEFAULT_QUERY_LIMIT, } from '../../services/constants.js';
15
15
  /**
16
16
  * Synthetic location ID constants for non-business locations
@@ -239,7 +239,7 @@ async function queryServicesByAvailability({ appId, filter, availabilityFilter,
239
239
  };
240
240
  const response = await queryServicesByAvailabilitySdk({
241
241
  query: availabilityQuery,
242
- availabilityFilter,
242
+ serviceFilters: availabilityFilter,
243
243
  });
244
244
  const results = response.results ?? [];
245
245
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/headless-bookings",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -38,10 +38,10 @@
38
38
  "dependencies": {
39
39
  "@wix/auto_sdk_bookings_availability-time-slots": "^1.0.244",
40
40
  "@wix/auto_sdk_bookings_bookings": "^1.0.192",
41
- "@wix/auto_sdk_bookings_catalog-search": "^1.0.0",
41
+ "@wix/auto_sdk_bookings_catalog-search": "^1.0.2",
42
42
  "@wix/auto_sdk_bookings_event-time-slots": "^1.0.112",
43
43
  "@wix/auto_sdk_bookings_pricing": "^1.0.87",
44
- "@wix/auto_sdk_bookings_services": "^1.0.226",
44
+ "@wix/auto_sdk_bookings_services": "^1.0.244",
45
45
  "@wix/auto_sdk_ecom_cart-v-2": "^1.0.86",
46
46
  "@wix/forms": "^1.0.384",
47
47
  "@wix/headless-media": "0.0.25",
@@ -91,5 +91,5 @@
91
91
  "groupId": "com.wixpress.headless-components"
92
92
  }
93
93
  },
94
- "falconPackageHash": "982db1d1e4f6337441d55feaf920c8b04f62f86edf8adc4b7d268a60"
94
+ "falconPackageHash": "7346c99323ebc7c9430f0ba8cd0cdf0781a5cdd54d01f077f896e1c3"
95
95
  }