@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.cjs CHANGED
@@ -43,6 +43,7 @@ __export(index_exports, {
43
43
  useBlock: () => useBlock,
44
44
  useBlocks: () => useBlocks,
45
45
  useBookingIntent: () => useBookingIntent,
46
+ useBookingIntentSlots: () => useBookingIntentSlots,
46
47
  useBookingIntents: () => useBookingIntents,
47
48
  useCancelAppointment: () => useCancelAppointment,
48
49
  useCancelPublicAppointment: () => useCancelPublicAppointment,
@@ -96,6 +97,7 @@ __export(index_exports, {
96
97
  useProviders: () => useProviders,
97
98
  usePublicAppointment: () => usePublicAppointment,
98
99
  usePublicBookingIntent: () => usePublicBookingIntent,
100
+ usePublicBookingIntentSlots: () => usePublicBookingIntentSlots,
99
101
  usePublicCancellationReasons: () => usePublicCancellationReasons,
100
102
  usePublicServiceSlots: () => usePublicServiceSlots,
101
103
  useRescheduleAppointment: () => useRescheduleAppointment,
@@ -862,6 +864,23 @@ var useBookingIntent = (booking_intent_id, queryParams, options) => {
862
864
  );
863
865
  };
864
866
 
867
+ // src/query-hooks/use-booking-intent-slots.ts
868
+ var useBookingIntentSlots = (booking_intent_id, queryParams, options) => {
869
+ const { client: overrideClient, ...queryOptions } = options ?? {};
870
+ const client = useSavvyCalQueryClient(overrideClient);
871
+ return client.useQuery(
872
+ "get",
873
+ "/v1/booking_intents/{booking_intent_id}/slots",
874
+ {
875
+ params: {
876
+ path: { booking_intent_id },
877
+ query: queryParams
878
+ }
879
+ },
880
+ queryOptions
881
+ );
882
+ };
883
+
865
884
  // src/query-hooks/use-booking-intents.ts
866
885
  var useBookingIntents = (queryParams, options) => {
867
886
  const { client: overrideClient, ...queryOptions } = options ?? {};
@@ -1155,6 +1174,23 @@ var usePublicBookingIntent = (booking_intent_id, options) => {
1155
1174
  );
1156
1175
  };
1157
1176
 
1177
+ // src/query-hooks/use-public-booking-intent-slots.ts
1178
+ var usePublicBookingIntentSlots = (booking_intent_id, queryParams, options) => {
1179
+ const { client: overrideClient, ...queryOptions } = options ?? {};
1180
+ const client = useSavvyCalQueryClient(overrideClient);
1181
+ return client.useQuery(
1182
+ "get",
1183
+ "/v1/public/booking_intents/{booking_intent_id}/slots",
1184
+ {
1185
+ params: {
1186
+ path: { booking_intent_id },
1187
+ query: queryParams
1188
+ }
1189
+ },
1190
+ queryOptions
1191
+ );
1192
+ };
1193
+
1158
1194
  // src/query-hooks/use-public-cancellation-reasons.ts
1159
1195
  var usePublicCancellationReasons = (appointment_id, options) => {
1160
1196
  const { client: overrideClient, ...queryOptions } = options ?? {};
@@ -1290,6 +1326,7 @@ var useServices = (queryParams, options) => {
1290
1326
  useBlock,
1291
1327
  useBlocks,
1292
1328
  useBookingIntent,
1329
+ useBookingIntentSlots,
1293
1330
  useBookingIntents,
1294
1331
  useCancelAppointment,
1295
1332
  useCancelPublicAppointment,
@@ -1343,6 +1380,7 @@ var useServices = (queryParams, options) => {
1343
1380
  useProviders,
1344
1381
  usePublicAppointment,
1345
1382
  usePublicBookingIntent,
1383
+ usePublicBookingIntentSlots,
1346
1384
  usePublicCancellationReasons,
1347
1385
  usePublicServiceSlots,
1348
1386
  useRescheduleAppointment,