@savvycal/appointments-react-query 1.3.0 → 2.0.1

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
@@ -51,6 +51,8 @@ __export(index_exports, {
51
51
  useCancelPublicAppointment: () => useCancelPublicAppointment,
52
52
  useCancellationReason: () => useCancellationReason,
53
53
  useCancellationReasons: () => useCancellationReasons,
54
+ useClearServiceConferencing: () => useClearServiceConferencing,
55
+ useClearServiceProviderConferencing: () => useClearServiceProviderConferencing,
54
56
  useClient: () => useClient,
55
57
  useClientField: () => useClientField,
56
58
  useClientFields: () => useClientFields,
@@ -117,12 +119,16 @@ __export(index_exports, {
117
119
  useSavvyCalQueryClient: () => useSavvyCalQueryClient,
118
120
  useService: () => useService,
119
121
  useServiceForms: () => useServiceForms,
122
+ useServiceProviderConferencing: () => useServiceProviderConferencing,
120
123
  useServiceProviders: () => useServiceProviders,
121
124
  useServiceSlots: () => useServiceSlots,
122
125
  useServices: () => useServices,
126
+ useSetServiceConferencing: () => useSetServiceConferencing,
127
+ useSetServiceProviderConferencing: () => useSetServiceProviderConferencing,
123
128
  useSetUserMapping: () => useSetUserMapping,
124
129
  useSortServiceForms: () => useSortServiceForms,
125
130
  useSyncConnectedAccountExternalUsers: () => useSyncConnectedAccountExternalUsers,
131
+ useSyncServiceConferencing: () => useSyncServiceConferencing,
126
132
  useUpdateAccount: () => useUpdateAccount,
127
133
  useUpdateAccountUser: () => useUpdateAccountUser,
128
134
  useUpdateBlock: () => useUpdateBlock,
@@ -321,6 +327,28 @@ var useCancelPublicAppointment = (options) => {
321
327
  );
322
328
  };
323
329
 
330
+ // src/mutation-hooks/use-clear-service-conferencing.ts
331
+ var useClearServiceConferencing = (options) => {
332
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
333
+ const client = useSavvyCalQueryClient(overrideClient);
334
+ return client.useMutation(
335
+ "delete",
336
+ "/v1/services/{service_id}/conferencing",
337
+ mutationOptions
338
+ );
339
+ };
340
+
341
+ // src/mutation-hooks/use-clear-service-provider-conferencing.ts
342
+ var useClearServiceProviderConferencing = (options) => {
343
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
344
+ const client = useSavvyCalQueryClient(overrideClient);
345
+ return client.useMutation(
346
+ "delete",
347
+ "/v1/services/{service_id}/providers/{provider_id}/conferencing",
348
+ mutationOptions
349
+ );
350
+ };
351
+
324
352
  // src/mutation-hooks/use-complete-booking-intent.ts
325
353
  var useCompleteBookingIntent = (options) => {
326
354
  const { client: overrideClient, ...mutationOptions } = options ?? {};
@@ -619,7 +647,7 @@ var useDeleteServiceProvider = (options) => {
619
647
  const client = useSavvyCalQueryClient(overrideClient);
620
648
  return client.useMutation(
621
649
  "delete",
622
- "/v1/service_providers/{service_provider_id}",
650
+ "/v1/services/{service_id}/providers/{provider_id}",
623
651
  mutationOptions
624
652
  );
625
653
  };
@@ -668,6 +696,28 @@ var useReschedulePublicAppointment = (options) => {
668
696
  );
669
697
  };
670
698
 
699
+ // src/mutation-hooks/use-set-service-conferencing.ts
700
+ var useSetServiceConferencing = (options) => {
701
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
702
+ const client = useSavvyCalQueryClient(overrideClient);
703
+ return client.useMutation(
704
+ "put",
705
+ "/v1/services/{service_id}/conferencing",
706
+ mutationOptions
707
+ );
708
+ };
709
+
710
+ // src/mutation-hooks/use-set-service-provider-conferencing.ts
711
+ var useSetServiceProviderConferencing = (options) => {
712
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
713
+ const client = useSavvyCalQueryClient(overrideClient);
714
+ return client.useMutation(
715
+ "put",
716
+ "/v1/services/{service_id}/providers/{provider_id}/conferencing",
717
+ mutationOptions
718
+ );
719
+ };
720
+
671
721
  // src/mutation-hooks/use-set-user-mapping.ts
672
722
  var useSetUserMapping = (options) => {
673
723
  const { client: overrideClient, ...mutationOptions } = options ?? {};
@@ -701,6 +751,17 @@ var useSyncConnectedAccountExternalUsers = (options) => {
701
751
  );
702
752
  };
703
753
 
754
+ // src/mutation-hooks/use-sync-service-conferencing.ts
755
+ var useSyncServiceConferencing = (options) => {
756
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
757
+ const client = useSavvyCalQueryClient(overrideClient);
758
+ return client.useMutation(
759
+ "post",
760
+ "/v1/services/{service_id}/conferencing/sync",
761
+ mutationOptions
762
+ );
763
+ };
764
+
704
765
  // src/mutation-hooks/use-update-account.ts
705
766
  var useUpdateAccount = (options) => {
706
767
  const { client: overrideClient, ...mutationOptions } = options ?? {};
@@ -1455,6 +1516,22 @@ var useServiceForms = (service_id, options) => {
1455
1516
  );
1456
1517
  };
1457
1518
 
1519
+ // src/query-hooks/use-service-provider-conferencing.ts
1520
+ var useServiceProviderConferencing = (service_id, provider_id, options) => {
1521
+ const { client: overrideClient, ...queryOptions } = options ?? {};
1522
+ const client = useSavvyCalQueryClient(overrideClient);
1523
+ return client.useQuery(
1524
+ "get",
1525
+ "/v1/services/{service_id}/providers/{provider_id}/conferencing",
1526
+ {
1527
+ params: {
1528
+ path: { provider_id, service_id }
1529
+ }
1530
+ },
1531
+ queryOptions
1532
+ );
1533
+ };
1534
+
1458
1535
  // src/query-hooks/use-service-providers.ts
1459
1536
  var useServiceProviders = (service_id, options) => {
1460
1537
  const { client: overrideClient, ...queryOptions } = options ?? {};
@@ -1559,6 +1636,8 @@ var useUserMappings = (connected_account_id, queryParams, options) => {
1559
1636
  useCancelPublicAppointment,
1560
1637
  useCancellationReason,
1561
1638
  useCancellationReasons,
1639
+ useClearServiceConferencing,
1640
+ useClearServiceProviderConferencing,
1562
1641
  useClient,
1563
1642
  useClientField,
1564
1643
  useClientFields,
@@ -1625,12 +1704,16 @@ var useUserMappings = (connected_account_id, queryParams, options) => {
1625
1704
  useSavvyCalQueryClient,
1626
1705
  useService,
1627
1706
  useServiceForms,
1707
+ useServiceProviderConferencing,
1628
1708
  useServiceProviders,
1629
1709
  useServiceSlots,
1630
1710
  useServices,
1711
+ useSetServiceConferencing,
1712
+ useSetServiceProviderConferencing,
1631
1713
  useSetUserMapping,
1632
1714
  useSortServiceForms,
1633
1715
  useSyncConnectedAccountExternalUsers,
1716
+ useSyncServiceConferencing,
1634
1717
  useUpdateAccount,
1635
1718
  useUpdateAccountUser,
1636
1719
  useUpdateBlock,