@savvycal/appointments-react-query 2.0.0 → 2.1.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.cjs CHANGED
@@ -79,6 +79,7 @@ __export(index_exports, {
79
79
  useCreateProviderSchedule: () => useCreateProviderSchedule,
80
80
  useCreatePublicAppointment: () => useCreatePublicAppointment,
81
81
  useCreatePublicBookingIntent: () => useCreatePublicBookingIntent,
82
+ useCreateScheduleGroup: () => useCreateScheduleGroup,
82
83
  useCreateService: () => useCreateService,
83
84
  useCreateServiceProvider: () => useCreateServiceProvider,
84
85
  useCurrentAccount: () => useCurrentAccount,
@@ -94,6 +95,7 @@ __export(index_exports, {
94
95
  useDeleteForm: () => useDeleteForm,
95
96
  useDeleteOpening: () => useDeleteOpening,
96
97
  useDeleteProviderSchedule: () => useDeleteProviderSchedule,
98
+ useDeleteScheduleGroup: () => useDeleteScheduleGroup,
97
99
  useDeleteService: () => useDeleteService,
98
100
  useDeleteServiceProvider: () => useDeleteServiceProvider,
99
101
  useDeleteUserMapping: () => useDeleteUserMapping,
@@ -114,9 +116,12 @@ __export(index_exports, {
114
116
  usePublicServiceSlots: () => usePublicServiceSlots,
115
117
  useRescheduleAppointment: () => useRescheduleAppointment,
116
118
  useReschedulePublicAppointment: () => useReschedulePublicAppointment,
119
+ useRole: () => useRole,
117
120
  useRoles: () => useRoles,
118
121
  useSavvyCalFetchClient: () => useSavvyCalFetchClient,
119
122
  useSavvyCalQueryClient: () => useSavvyCalQueryClient,
123
+ useScheduleGroup: () => useScheduleGroup,
124
+ useScheduleGroups: () => useScheduleGroups,
120
125
  useService: () => useService,
121
126
  useServiceForms: () => useServiceForms,
122
127
  useServiceProviderConferencing: () => useServiceProviderConferencing,
@@ -143,13 +148,15 @@ __export(index_exports, {
143
148
  useUpdateProvider: () => useUpdateProvider,
144
149
  useUpdateProviderSchedule: () => useUpdateProviderSchedule,
145
150
  useUpdatePublicBookingIntent: () => useUpdatePublicBookingIntent,
151
+ useUpdateRole: () => useUpdateRole,
152
+ useUpdateScheduleGroup: () => useUpdateScheduleGroup,
146
153
  useUpdateService: () => useUpdateService,
147
154
  useUserMapping: () => useUserMapping,
148
155
  useUserMappings: () => useUserMappings
149
156
  });
150
157
  module.exports = __toCommonJS(index_exports);
151
158
 
152
- // ../../node_modules/.pnpm/openapi-react-query@0.5.1_@tanstack+react-query@5.90.11_react@19.2.0__openapi-fetch@0.15.0/node_modules/openapi-react-query/dist/index.mjs
159
+ // ../node_modules/.pnpm/openapi-react-query@0.5.1_@tanstack+react-query@5.90.11_react@19.2.0__openapi-fetch@0.15.0/node_modules/openapi-react-query/dist/index.mjs
153
160
  var import_react_query = require("@tanstack/react-query");
154
161
  function createClient(client) {
155
162
  const queryFn = async ({
@@ -510,6 +517,13 @@ var useCreatePublicBookingIntent = (options) => {
510
517
  );
511
518
  };
512
519
 
520
+ // src/mutation-hooks/use-create-schedule-group.ts
521
+ var useCreateScheduleGroup = (options) => {
522
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
523
+ const client = useSavvyCalQueryClient(overrideClient);
524
+ return client.useMutation("post", "/v1/schedule_groups", mutationOptions);
525
+ };
526
+
513
527
  // src/mutation-hooks/use-create-service.ts
514
528
  var useCreateService = (options) => {
515
529
  const { client: overrideClient, ...mutationOptions } = options ?? {};
@@ -630,6 +644,17 @@ var useDeleteProviderSchedule = (options) => {
630
644
  );
631
645
  };
632
646
 
647
+ // src/mutation-hooks/use-delete-schedule-group.ts
648
+ var useDeleteScheduleGroup = (options) => {
649
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
650
+ const client = useSavvyCalQueryClient(overrideClient);
651
+ return client.useMutation(
652
+ "delete",
653
+ "/v1/schedule_groups/{schedule_group_id}",
654
+ mutationOptions
655
+ );
656
+ };
657
+
633
658
  // src/mutation-hooks/use-delete-service.ts
634
659
  var useDeleteService = (options) => {
635
660
  const { client: overrideClient, ...mutationOptions } = options ?? {};
@@ -904,6 +929,24 @@ var useUpdatePublicBookingIntent = (options) => {
904
929
  );
905
930
  };
906
931
 
932
+ // src/mutation-hooks/use-update-role.ts
933
+ var useUpdateRole = (options) => {
934
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
935
+ const client = useSavvyCalQueryClient(overrideClient);
936
+ return client.useMutation("patch", "/v1/roles/{role_id}", mutationOptions);
937
+ };
938
+
939
+ // src/mutation-hooks/use-update-schedule-group.ts
940
+ var useUpdateScheduleGroup = (options) => {
941
+ const { client: overrideClient, ...mutationOptions } = options ?? {};
942
+ const client = useSavvyCalQueryClient(overrideClient);
943
+ return client.useMutation(
944
+ "patch",
945
+ "/v1/schedule_groups/{schedule_group_id}",
946
+ mutationOptions
947
+ );
948
+ };
949
+
907
950
  // src/mutation-hooks/use-update-service.ts
908
951
  var useUpdateService = (options) => {
909
952
  const { client: overrideClient, ...mutationOptions } = options ?? {};
@@ -1477,6 +1520,22 @@ var usePublicServiceSlots = (service_id, queryParams, options) => {
1477
1520
  );
1478
1521
  };
1479
1522
 
1523
+ // src/query-hooks/use-role.ts
1524
+ var useRole = (role_id, options) => {
1525
+ const { client: overrideClient, ...queryOptions } = options ?? {};
1526
+ const client = useSavvyCalQueryClient(overrideClient);
1527
+ return client.useQuery(
1528
+ "get",
1529
+ "/v1/roles/{role_id}",
1530
+ {
1531
+ params: {
1532
+ path: { role_id }
1533
+ }
1534
+ },
1535
+ queryOptions
1536
+ );
1537
+ };
1538
+
1480
1539
  // src/query-hooks/use-roles.ts
1481
1540
  var useRoles = (options) => {
1482
1541
  const { client: overrideClient, ...queryOptions } = options ?? {};
@@ -1484,6 +1543,29 @@ var useRoles = (options) => {
1484
1543
  return client.useQuery("get", "/v1/roles", {}, queryOptions);
1485
1544
  };
1486
1545
 
1546
+ // src/query-hooks/use-schedule-group.ts
1547
+ var useScheduleGroup = (schedule_group_id, options) => {
1548
+ const { client: overrideClient, ...queryOptions } = options ?? {};
1549
+ const client = useSavvyCalQueryClient(overrideClient);
1550
+ return client.useQuery(
1551
+ "get",
1552
+ "/v1/schedule_groups/{schedule_group_id}",
1553
+ {
1554
+ params: {
1555
+ path: { schedule_group_id }
1556
+ }
1557
+ },
1558
+ queryOptions
1559
+ );
1560
+ };
1561
+
1562
+ // src/query-hooks/use-schedule-groups.ts
1563
+ var useScheduleGroups = (options) => {
1564
+ const { client: overrideClient, ...queryOptions } = options ?? {};
1565
+ const client = useSavvyCalQueryClient(overrideClient);
1566
+ return client.useQuery("get", "/v1/schedule_groups", {}, queryOptions);
1567
+ };
1568
+
1487
1569
  // src/query-hooks/use-service.ts
1488
1570
  var useService = (service_id, options) => {
1489
1571
  const { client: overrideClient, ...queryOptions } = options ?? {};
@@ -1664,6 +1746,7 @@ var useUserMappings = (connected_account_id, queryParams, options) => {
1664
1746
  useCreateProviderSchedule,
1665
1747
  useCreatePublicAppointment,
1666
1748
  useCreatePublicBookingIntent,
1749
+ useCreateScheduleGroup,
1667
1750
  useCreateService,
1668
1751
  useCreateServiceProvider,
1669
1752
  useCurrentAccount,
@@ -1679,6 +1762,7 @@ var useUserMappings = (connected_account_id, queryParams, options) => {
1679
1762
  useDeleteForm,
1680
1763
  useDeleteOpening,
1681
1764
  useDeleteProviderSchedule,
1765
+ useDeleteScheduleGroup,
1682
1766
  useDeleteService,
1683
1767
  useDeleteServiceProvider,
1684
1768
  useDeleteUserMapping,
@@ -1699,9 +1783,12 @@ var useUserMappings = (connected_account_id, queryParams, options) => {
1699
1783
  usePublicServiceSlots,
1700
1784
  useRescheduleAppointment,
1701
1785
  useReschedulePublicAppointment,
1786
+ useRole,
1702
1787
  useRoles,
1703
1788
  useSavvyCalFetchClient,
1704
1789
  useSavvyCalQueryClient,
1790
+ useScheduleGroup,
1791
+ useScheduleGroups,
1705
1792
  useService,
1706
1793
  useServiceForms,
1707
1794
  useServiceProviderConferencing,
@@ -1728,6 +1815,8 @@ var useUserMappings = (connected_account_id, queryParams, options) => {
1728
1815
  useUpdateProvider,
1729
1816
  useUpdateProviderSchedule,
1730
1817
  useUpdatePublicBookingIntent,
1818
+ useUpdateRole,
1819
+ useUpdateScheduleGroup,
1731
1820
  useUpdateService,
1732
1821
  useUserMapping,
1733
1822
  useUserMappings