@savvycal/appointments-react-query 1.2.1 → 1.2.3

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.js CHANGED
@@ -737,6 +737,23 @@ var useBookingIntent = (booking_intent_id, queryParams, options) => {
737
737
  );
738
738
  };
739
739
 
740
+ // src/query-hooks/use-booking-intent-slots.ts
741
+ var useBookingIntentSlots = (booking_intent_id, queryParams, options) => {
742
+ const { client: overrideClient, ...queryOptions } = options ?? {};
743
+ const client = useSavvyCalQueryClient(overrideClient);
744
+ return client.useQuery(
745
+ "get",
746
+ "/v1/booking_intents/{booking_intent_id}/slots",
747
+ {
748
+ params: {
749
+ path: { booking_intent_id },
750
+ query: queryParams
751
+ }
752
+ },
753
+ queryOptions
754
+ );
755
+ };
756
+
740
757
  // src/query-hooks/use-booking-intents.ts
741
758
  var useBookingIntents = (queryParams, options) => {
742
759
  const { client: overrideClient, ...queryOptions } = options ?? {};
@@ -1030,6 +1047,23 @@ var usePublicBookingIntent = (booking_intent_id, options) => {
1030
1047
  );
1031
1048
  };
1032
1049
 
1050
+ // src/query-hooks/use-public-booking-intent-slots.ts
1051
+ var usePublicBookingIntentSlots = (booking_intent_id, queryParams, options) => {
1052
+ const { client: overrideClient, ...queryOptions } = options ?? {};
1053
+ const client = useSavvyCalQueryClient(overrideClient);
1054
+ return client.useQuery(
1055
+ "get",
1056
+ "/v1/public/booking_intents/{booking_intent_id}/slots",
1057
+ {
1058
+ params: {
1059
+ path: { booking_intent_id },
1060
+ query: queryParams
1061
+ }
1062
+ },
1063
+ queryOptions
1064
+ );
1065
+ };
1066
+
1033
1067
  // src/query-hooks/use-public-cancellation-reasons.ts
1034
1068
  var usePublicCancellationReasons = (appointment_id, options) => {
1035
1069
  const { client: overrideClient, ...queryOptions } = options ?? {};
@@ -1164,6 +1198,7 @@ export {
1164
1198
  useBlock,
1165
1199
  useBlocks,
1166
1200
  useBookingIntent,
1201
+ useBookingIntentSlots,
1167
1202
  useBookingIntents,
1168
1203
  useCancelAppointment,
1169
1204
  useCancelPublicAppointment,
@@ -1217,6 +1252,7 @@ export {
1217
1252
  useProviders,
1218
1253
  usePublicAppointment,
1219
1254
  usePublicBookingIntent,
1255
+ usePublicBookingIntentSlots,
1220
1256
  usePublicCancellationReasons,
1221
1257
  usePublicServiceSlots,
1222
1258
  useRescheduleAppointment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvycal/appointments-react-query",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "type": "module",
5
5
  "description": "A tiny wrapper around @tanstack/react-query for the SavvyCal Appointments API",
6
6
  "main": "./dist/index.cjs",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "openapi-typescript-helpers": "^0.0.15",
46
- "@savvycal/appointments-core": "1.3.0"
46
+ "@savvycal/appointments-core": "1.5.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@tanstack/react-query": "^5.0.0",