@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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -573,6 +573,8 @@ var BookingLabClient = class extends ApiClient {
|
|
|
573
573
|
const queryParams = {};
|
|
574
574
|
if (params?.client_id !== void 0) queryParams.client_id = params.client_id;
|
|
575
575
|
if (params?.member_id !== void 0) queryParams.member_id = params.member_id;
|
|
576
|
+
if (params?.start_date !== void 0) queryParams.start_date = params.start_date;
|
|
577
|
+
if (params?.end_date !== void 0) queryParams.end_date = params.end_date;
|
|
576
578
|
return this.get(
|
|
577
579
|
`/company/${companyId}/bookings`,
|
|
578
580
|
{
|
|
@@ -1450,7 +1452,7 @@ function useOrdnanceAddressLookup(postcode, clientToken, enabled = true) {
|
|
|
1450
1452
|
function useListBookinglabBookings(companyId, clientToken, params, enabled = true) {
|
|
1451
1453
|
const client = useBookingLabClient();
|
|
1452
1454
|
return useQuery({
|
|
1453
|
-
queryKey: ["bookingLabListBookings", companyId, params?.client_id, params?.member_id],
|
|
1455
|
+
queryKey: ["bookingLabListBookings", companyId, params?.client_id, params?.member_id, params?.start_date, params?.end_date],
|
|
1454
1456
|
queryFn: async () => {
|
|
1455
1457
|
const response = await client.listBookinglabBookings(companyId, clientToken, params);
|
|
1456
1458
|
return response.data;
|