@bookinglab/booking-journey-api 2.15.0 → 2.16.0

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/dist/index.d.cts CHANGED
@@ -1633,6 +1633,8 @@ interface BookingLabPurchaseResponse {
1633
1633
  interface BookingLabListBookingsParams {
1634
1634
  client_id?: number;
1635
1635
  member_id?: number;
1636
+ start_date?: string;
1637
+ end_date?: string;
1636
1638
  }
1637
1639
  interface BookingLabListBookingsResponse {
1638
1640
  total_entries?: number;
package/dist/index.d.ts CHANGED
@@ -1633,6 +1633,8 @@ interface BookingLabPurchaseResponse {
1633
1633
  interface BookingLabListBookingsParams {
1634
1634
  client_id?: number;
1635
1635
  member_id?: number;
1636
+ start_date?: string;
1637
+ end_date?: string;
1636
1638
  }
1637
1639
  interface BookingLabListBookingsResponse {
1638
1640
  total_entries?: number;
package/dist/index.js CHANGED
@@ -575,6 +575,8 @@ var BookingLabClient = class extends ApiClient {
575
575
  const queryParams = {};
576
576
  if (params?.client_id !== void 0) queryParams.client_id = params.client_id;
577
577
  if (params?.member_id !== void 0) queryParams.member_id = params.member_id;
578
+ if (params?.start_date !== void 0) queryParams.start_date = params.start_date;
579
+ if (params?.end_date !== void 0) queryParams.end_date = params.end_date;
578
580
  return this.get(
579
581
  `/company/${companyId}/bookings`,
580
582
  {
@@ -1452,7 +1454,7 @@ function useOrdnanceAddressLookup(postcode, clientToken, enabled = true) {
1452
1454
  function useListBookinglabBookings(companyId, clientToken, params, enabled = true) {
1453
1455
  const client = useBookingLabClient();
1454
1456
  return reactQuery.useQuery({
1455
- queryKey: ["bookingLabListBookings", companyId, params?.client_id, params?.member_id],
1457
+ queryKey: ["bookingLabListBookings", companyId, params?.client_id, params?.member_id, params?.start_date, params?.end_date],
1456
1458
  queryFn: async () => {
1457
1459
  const response = await client.listBookinglabBookings(companyId, clientToken, params);
1458
1460
  return response.data;