@savvycal/appointments-react-query 1.3.0 → 2.0.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.js CHANGED
@@ -178,6 +178,28 @@ var useCancelPublicAppointment = (options) => {
178
178
  );
179
179
  };
180
180
 
181
+ // src/mutation-hooks/use-clear-service-conferencing.ts
182
+ var useClearServiceConferencing = (options) => {
183
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
184
+ const client = useSavvyCalQueryClient(overrideClient);
185
+ return client.useMutation(
186
+ "delete",
187
+ "/v1/services/{service_id}/conferencing",
188
+ mutationOptions
189
+ );
190
+ };
191
+
192
+ // src/mutation-hooks/use-clear-service-provider-conferencing.ts
193
+ var useClearServiceProviderConferencing = (options) => {
194
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
195
+ const client = useSavvyCalQueryClient(overrideClient);
196
+ return client.useMutation(
197
+ "delete",
198
+ "/v1/services/{service_id}/providers/{provider_id}/conferencing",
199
+ mutationOptions
200
+ );
201
+ };
202
+
181
203
  // src/mutation-hooks/use-complete-booking-intent.ts
182
204
  var useCompleteBookingIntent = (options) => {
183
205
  const { client: overrideClient, ...mutationOptions } = options ?? {};
@@ -476,7 +498,7 @@ var useDeleteServiceProvider = (options) => {
476
498
  const client = useSavvyCalQueryClient(overrideClient);
477
499
  return client.useMutation(
478
500
  "delete",
479
- "/v1/service_providers/{service_provider_id}",
501
+ "/v1/services/{service_id}/providers/{provider_id}",
480
502
  mutationOptions
481
503
  );
482
504
  };
@@ -525,6 +547,28 @@ var useReschedulePublicAppointment = (options) => {
525
547
  );
526
548
  };
527
549
 
550
+ // src/mutation-hooks/use-set-service-conferencing.ts
551
+ var useSetServiceConferencing = (options) => {
552
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
553
+ const client = useSavvyCalQueryClient(overrideClient);
554
+ return client.useMutation(
555
+ "put",
556
+ "/v1/services/{service_id}/conferencing",
557
+ mutationOptions
558
+ );
559
+ };
560
+
561
+ // src/mutation-hooks/use-set-service-provider-conferencing.ts
562
+ var useSetServiceProviderConferencing = (options) => {
563
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
564
+ const client = useSavvyCalQueryClient(overrideClient);
565
+ return client.useMutation(
566
+ "put",
567
+ "/v1/services/{service_id}/providers/{provider_id}/conferencing",
568
+ mutationOptions
569
+ );
570
+ };
571
+
528
572
  // src/mutation-hooks/use-set-user-mapping.ts
529
573
  var useSetUserMapping = (options) => {
530
574
  const { client: overrideClient, ...mutationOptions } = options ?? {};
@@ -558,6 +602,17 @@ var useSyncConnectedAccountExternalUsers = (options) => {
558
602
  );
559
603
  };
560
604
 
605
+ // src/mutation-hooks/use-sync-service-conferencing.ts
606
+ var useSyncServiceConferencing = (options) => {
607
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
608
+ const client = useSavvyCalQueryClient(overrideClient);
609
+ return client.useMutation(
610
+ "post",
611
+ "/v1/services/{service_id}/conferencing/sync",
612
+ mutationOptions
613
+ );
614
+ };
615
+
561
616
  // src/mutation-hooks/use-update-account.ts
562
617
  var useUpdateAccount = (options) => {
563
618
  const { client: overrideClient, ...mutationOptions } = options ?? {};
@@ -1312,6 +1367,22 @@ var useServiceForms = (service_id, options) => {
1312
1367
  );
1313
1368
  };
1314
1369
 
1370
+ // src/query-hooks/use-service-provider-conferencing.ts
1371
+ var useServiceProviderConferencing = (service_id, provider_id, options) => {
1372
+ const { client: overrideClient, ...queryOptions } = options ?? {};
1373
+ const client = useSavvyCalQueryClient(overrideClient);
1374
+ return client.useQuery(
1375
+ "get",
1376
+ "/v1/services/{service_id}/providers/{provider_id}/conferencing",
1377
+ {
1378
+ params: {
1379
+ path: { provider_id, service_id }
1380
+ }
1381
+ },
1382
+ queryOptions
1383
+ );
1384
+ };
1385
+
1315
1386
  // src/query-hooks/use-service-providers.ts
1316
1387
  var useServiceProviders = (service_id, options) => {
1317
1388
  const { client: overrideClient, ...queryOptions } = options ?? {};
@@ -1415,6 +1486,8 @@ export {
1415
1486
  useCancelPublicAppointment,
1416
1487
  useCancellationReason,
1417
1488
  useCancellationReasons,
1489
+ useClearServiceConferencing,
1490
+ useClearServiceProviderConferencing,
1418
1491
  useClient,
1419
1492
  useClientField,
1420
1493
  useClientFields,
@@ -1481,12 +1554,16 @@ export {
1481
1554
  useSavvyCalQueryClient,
1482
1555
  useService,
1483
1556
  useServiceForms,
1557
+ useServiceProviderConferencing,
1484
1558
  useServiceProviders,
1485
1559
  useServiceSlots,
1486
1560
  useServices,
1561
+ useSetServiceConferencing,
1562
+ useSetServiceProviderConferencing,
1487
1563
  useSetUserMapping,
1488
1564
  useSortServiceForms,
1489
1565
  useSyncConnectedAccountExternalUsers,
1566
+ useSyncServiceConferencing,
1490
1567
  useUpdateAccount,
1491
1568
  useUpdateAccountUser,
1492
1569
  useUpdateBlock,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvycal/appointments-react-query",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
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.11.0"
46
+ "@savvycal/appointments-core": "2.0.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@tanstack/react-query": "^5.0.0",