@savvycal/appointments-react-query 1.2.9 → 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.cjs +327 -3
- package/dist/index.d.cts +6251 -3029
- package/dist/index.d.ts +6251 -3029
- package/dist/index.js +304 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -45,10 +45,14 @@ __export(index_exports, {
|
|
|
45
45
|
useBookingIntent: () => useBookingIntent,
|
|
46
46
|
useBookingIntentSlots: () => useBookingIntentSlots,
|
|
47
47
|
useBookingIntents: () => useBookingIntents,
|
|
48
|
+
useBookingLink: () => useBookingLink,
|
|
49
|
+
useBookingLinks: () => useBookingLinks,
|
|
48
50
|
useCancelAppointment: () => useCancelAppointment,
|
|
49
51
|
useCancelPublicAppointment: () => useCancelPublicAppointment,
|
|
50
52
|
useCancellationReason: () => useCancellationReason,
|
|
51
53
|
useCancellationReasons: () => useCancellationReasons,
|
|
54
|
+
useClearServiceConferencing: () => useClearServiceConferencing,
|
|
55
|
+
useClearServiceProviderConferencing: () => useClearServiceProviderConferencing,
|
|
52
56
|
useClient: () => useClient,
|
|
53
57
|
useClientField: () => useClientField,
|
|
54
58
|
useClientFields: () => useClientFields,
|
|
@@ -57,17 +61,20 @@ __export(index_exports, {
|
|
|
57
61
|
useCompletePublicBookingIntent: () => useCompletePublicBookingIntent,
|
|
58
62
|
useConfirmAppointment: () => useConfirmAppointment,
|
|
59
63
|
useConnectedAccount: () => useConnectedAccount,
|
|
64
|
+
useConnectedAccountExternalUsers: () => useConnectedAccountExternalUsers,
|
|
60
65
|
useConnectedAccounts: () => useConnectedAccounts,
|
|
61
66
|
useCreateAccount: () => useCreateAccount,
|
|
62
67
|
useCreateAccountUser: () => useCreateAccountUser,
|
|
63
68
|
useCreateAppointment: () => useCreateAppointment,
|
|
64
69
|
useCreateBlock: () => useCreateBlock,
|
|
65
70
|
useCreateBookingIntent: () => useCreateBookingIntent,
|
|
71
|
+
useCreateBookingLink: () => useCreateBookingLink,
|
|
66
72
|
useCreateCancellationReason: () => useCreateCancellationReason,
|
|
67
73
|
useCreateClient: () => useCreateClient,
|
|
68
74
|
useCreateClientField: () => useCreateClientField,
|
|
69
75
|
useCreateDashboardSession: () => useCreateDashboardSession,
|
|
70
76
|
useCreateForm: () => useCreateForm,
|
|
77
|
+
useCreateOpening: () => useCreateOpening,
|
|
71
78
|
useCreateProvider: () => useCreateProvider,
|
|
72
79
|
useCreateProviderSchedule: () => useCreateProviderSchedule,
|
|
73
80
|
useCreatePublicAppointment: () => useCreatePublicAppointment,
|
|
@@ -79,18 +86,23 @@ __export(index_exports, {
|
|
|
79
86
|
useCurrentPlatform: () => useCurrentPlatform,
|
|
80
87
|
useDeactivateProvider: () => useDeactivateProvider,
|
|
81
88
|
useDeleteBlock: () => useDeleteBlock,
|
|
89
|
+
useDeleteBookingLink: () => useDeleteBookingLink,
|
|
82
90
|
useDeleteCancellationReason: () => useDeleteCancellationReason,
|
|
83
91
|
useDeleteClient: () => useDeleteClient,
|
|
84
92
|
useDeleteClientField: () => useDeleteClientField,
|
|
85
93
|
useDeleteConnectedAccount: () => useDeleteConnectedAccount,
|
|
86
94
|
useDeleteForm: () => useDeleteForm,
|
|
95
|
+
useDeleteOpening: () => useDeleteOpening,
|
|
87
96
|
useDeleteProviderSchedule: () => useDeleteProviderSchedule,
|
|
88
97
|
useDeleteService: () => useDeleteService,
|
|
89
98
|
useDeleteServiceProvider: () => useDeleteServiceProvider,
|
|
99
|
+
useDeleteUserMapping: () => useDeleteUserMapping,
|
|
90
100
|
useDetachServiceForm: () => useDetachServiceForm,
|
|
91
101
|
useEarliestPublicServiceSlot: () => useEarliestPublicServiceSlot,
|
|
92
102
|
useForm: () => useForm,
|
|
93
103
|
useForms: () => useForms,
|
|
104
|
+
useOpening: () => useOpening,
|
|
105
|
+
useOpenings: () => useOpenings,
|
|
94
106
|
useProvider: () => useProvider,
|
|
95
107
|
useProviderSchedule: () => useProviderSchedule,
|
|
96
108
|
useProviderSchedules: () => useProviderSchedules,
|
|
@@ -107,23 +119,33 @@ __export(index_exports, {
|
|
|
107
119
|
useSavvyCalQueryClient: () => useSavvyCalQueryClient,
|
|
108
120
|
useService: () => useService,
|
|
109
121
|
useServiceForms: () => useServiceForms,
|
|
122
|
+
useServiceProviderConferencing: () => useServiceProviderConferencing,
|
|
110
123
|
useServiceProviders: () => useServiceProviders,
|
|
111
124
|
useServiceSlots: () => useServiceSlots,
|
|
112
125
|
useServices: () => useServices,
|
|
126
|
+
useSetServiceConferencing: () => useSetServiceConferencing,
|
|
127
|
+
useSetServiceProviderConferencing: () => useSetServiceProviderConferencing,
|
|
128
|
+
useSetUserMapping: () => useSetUserMapping,
|
|
113
129
|
useSortServiceForms: () => useSortServiceForms,
|
|
130
|
+
useSyncConnectedAccountExternalUsers: () => useSyncConnectedAccountExternalUsers,
|
|
131
|
+
useSyncServiceConferencing: () => useSyncServiceConferencing,
|
|
114
132
|
useUpdateAccount: () => useUpdateAccount,
|
|
115
133
|
useUpdateAccountUser: () => useUpdateAccountUser,
|
|
116
134
|
useUpdateBlock: () => useUpdateBlock,
|
|
117
135
|
useUpdateBookingIntent: () => useUpdateBookingIntent,
|
|
136
|
+
useUpdateBookingLink: () => useUpdateBookingLink,
|
|
118
137
|
useUpdateCancellationReason: () => useUpdateCancellationReason,
|
|
119
138
|
useUpdateClient: () => useUpdateClient,
|
|
120
139
|
useUpdateClientField: () => useUpdateClientField,
|
|
121
140
|
useUpdateConnectedAccount: () => useUpdateConnectedAccount,
|
|
122
141
|
useUpdateForm: () => useUpdateForm,
|
|
142
|
+
useUpdateOpening: () => useUpdateOpening,
|
|
123
143
|
useUpdateProvider: () => useUpdateProvider,
|
|
124
144
|
useUpdateProviderSchedule: () => useUpdateProviderSchedule,
|
|
125
145
|
useUpdatePublicBookingIntent: () => useUpdatePublicBookingIntent,
|
|
126
|
-
useUpdateService: () => useUpdateService
|
|
146
|
+
useUpdateService: () => useUpdateService,
|
|
147
|
+
useUserMapping: () => useUserMapping,
|
|
148
|
+
useUserMappings: () => useUserMappings
|
|
127
149
|
});
|
|
128
150
|
module.exports = __toCommonJS(index_exports);
|
|
129
151
|
|
|
@@ -305,6 +327,28 @@ var useCancelPublicAppointment = (options) => {
|
|
|
305
327
|
);
|
|
306
328
|
};
|
|
307
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
|
+
|
|
308
352
|
// src/mutation-hooks/use-complete-booking-intent.ts
|
|
309
353
|
var useCompleteBookingIntent = (options) => {
|
|
310
354
|
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
@@ -373,6 +417,13 @@ var useCreateBookingIntent = (options) => {
|
|
|
373
417
|
return client.useMutation("post", "/v1/booking_intents", mutationOptions);
|
|
374
418
|
};
|
|
375
419
|
|
|
420
|
+
// src/mutation-hooks/use-create-booking-link.ts
|
|
421
|
+
var useCreateBookingLink = (options) => {
|
|
422
|
+
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
423
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
424
|
+
return client.useMutation("post", "/v1/booking_links", mutationOptions);
|
|
425
|
+
};
|
|
426
|
+
|
|
376
427
|
// src/mutation-hooks/use-create-cancellation-reason.ts
|
|
377
428
|
var useCreateCancellationReason = (options) => {
|
|
378
429
|
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
@@ -412,6 +463,17 @@ var useCreateForm = (options) => {
|
|
|
412
463
|
return client.useMutation("post", "/v1/forms", mutationOptions);
|
|
413
464
|
};
|
|
414
465
|
|
|
466
|
+
// src/mutation-hooks/use-create-opening.ts
|
|
467
|
+
var useCreateOpening = (options) => {
|
|
468
|
+
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
469
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
470
|
+
return client.useMutation(
|
|
471
|
+
"post",
|
|
472
|
+
"/v1/providers/{provider_id}/openings",
|
|
473
|
+
mutationOptions
|
|
474
|
+
);
|
|
475
|
+
};
|
|
476
|
+
|
|
415
477
|
// src/mutation-hooks/use-create-provider.ts
|
|
416
478
|
var useCreateProvider = (options) => {
|
|
417
479
|
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
@@ -484,6 +546,17 @@ var useDeleteBlock = (options) => {
|
|
|
484
546
|
return client.useMutation("delete", "/v1/blocks/{block_id}", mutationOptions);
|
|
485
547
|
};
|
|
486
548
|
|
|
549
|
+
// src/mutation-hooks/use-delete-booking-link.ts
|
|
550
|
+
var useDeleteBookingLink = (options) => {
|
|
551
|
+
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
552
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
553
|
+
return client.useMutation(
|
|
554
|
+
"delete",
|
|
555
|
+
"/v1/booking_links/{booking_link_id}",
|
|
556
|
+
mutationOptions
|
|
557
|
+
);
|
|
558
|
+
};
|
|
559
|
+
|
|
487
560
|
// src/mutation-hooks/use-delete-cancellation-reason.ts
|
|
488
561
|
var useDeleteCancellationReason = (options) => {
|
|
489
562
|
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
@@ -535,6 +608,17 @@ var useDeleteForm = (options) => {
|
|
|
535
608
|
return client.useMutation("delete", "/v1/forms/{form_id}", mutationOptions);
|
|
536
609
|
};
|
|
537
610
|
|
|
611
|
+
// src/mutation-hooks/use-delete-opening.ts
|
|
612
|
+
var useDeleteOpening = (options) => {
|
|
613
|
+
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
614
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
615
|
+
return client.useMutation(
|
|
616
|
+
"delete",
|
|
617
|
+
"/v1/openings/{opening_id}",
|
|
618
|
+
mutationOptions
|
|
619
|
+
);
|
|
620
|
+
};
|
|
621
|
+
|
|
538
622
|
// src/mutation-hooks/use-delete-provider-schedule.ts
|
|
539
623
|
var useDeleteProviderSchedule = (options) => {
|
|
540
624
|
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
@@ -563,7 +647,18 @@ var useDeleteServiceProvider = (options) => {
|
|
|
563
647
|
const client = useSavvyCalQueryClient(overrideClient);
|
|
564
648
|
return client.useMutation(
|
|
565
649
|
"delete",
|
|
566
|
-
"/v1/
|
|
650
|
+
"/v1/services/{service_id}/providers/{provider_id}",
|
|
651
|
+
mutationOptions
|
|
652
|
+
);
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
// src/mutation-hooks/use-delete-user-mapping.ts
|
|
656
|
+
var useDeleteUserMapping = (options) => {
|
|
657
|
+
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
658
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
659
|
+
return client.useMutation(
|
|
660
|
+
"delete",
|
|
661
|
+
"/v1/connected_accounts/{connected_account_id}/user_mappings/{provider_id}",
|
|
567
662
|
mutationOptions
|
|
568
663
|
);
|
|
569
664
|
};
|
|
@@ -601,6 +696,39 @@ var useReschedulePublicAppointment = (options) => {
|
|
|
601
696
|
);
|
|
602
697
|
};
|
|
603
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
|
+
|
|
721
|
+
// src/mutation-hooks/use-set-user-mapping.ts
|
|
722
|
+
var useSetUserMapping = (options) => {
|
|
723
|
+
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
724
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
725
|
+
return client.useMutation(
|
|
726
|
+
"put",
|
|
727
|
+
"/v1/connected_accounts/{connected_account_id}/user_mappings/{provider_id}",
|
|
728
|
+
mutationOptions
|
|
729
|
+
);
|
|
730
|
+
};
|
|
731
|
+
|
|
604
732
|
// src/mutation-hooks/use-sort-service-forms.ts
|
|
605
733
|
var useSortServiceForms = (options) => {
|
|
606
734
|
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
@@ -612,6 +740,28 @@ var useSortServiceForms = (options) => {
|
|
|
612
740
|
);
|
|
613
741
|
};
|
|
614
742
|
|
|
743
|
+
// src/mutation-hooks/use-sync-connected-account-external-users.ts
|
|
744
|
+
var useSyncConnectedAccountExternalUsers = (options) => {
|
|
745
|
+
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
746
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
747
|
+
return client.useMutation(
|
|
748
|
+
"post",
|
|
749
|
+
"/v1/connected_accounts/{connected_account_id}/external_users/sync",
|
|
750
|
+
mutationOptions
|
|
751
|
+
);
|
|
752
|
+
};
|
|
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
|
+
|
|
615
765
|
// src/mutation-hooks/use-update-account.ts
|
|
616
766
|
var useUpdateAccount = (options) => {
|
|
617
767
|
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
@@ -648,6 +798,17 @@ var useUpdateBookingIntent = (options) => {
|
|
|
648
798
|
);
|
|
649
799
|
};
|
|
650
800
|
|
|
801
|
+
// src/mutation-hooks/use-update-booking-link.ts
|
|
802
|
+
var useUpdateBookingLink = (options) => {
|
|
803
|
+
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
804
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
805
|
+
return client.useMutation(
|
|
806
|
+
"patch",
|
|
807
|
+
"/v1/booking_links/{booking_link_id}",
|
|
808
|
+
mutationOptions
|
|
809
|
+
);
|
|
810
|
+
};
|
|
811
|
+
|
|
651
812
|
// src/mutation-hooks/use-update-cancellation-reason.ts
|
|
652
813
|
var useUpdateCancellationReason = (options) => {
|
|
653
814
|
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
@@ -699,6 +860,17 @@ var useUpdateForm = (options) => {
|
|
|
699
860
|
return client.useMutation("patch", "/v1/forms/{form_id}", mutationOptions);
|
|
700
861
|
};
|
|
701
862
|
|
|
863
|
+
// src/mutation-hooks/use-update-opening.ts
|
|
864
|
+
var useUpdateOpening = (options) => {
|
|
865
|
+
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
866
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
867
|
+
return client.useMutation(
|
|
868
|
+
"patch",
|
|
869
|
+
"/v1/openings/{opening_id}",
|
|
870
|
+
mutationOptions
|
|
871
|
+
);
|
|
872
|
+
};
|
|
873
|
+
|
|
702
874
|
// src/mutation-hooks/use-update-provider.ts
|
|
703
875
|
var useUpdateProvider = (options) => {
|
|
704
876
|
const { client: overrideClient, ...mutationOptions } = options ?? {};
|
|
@@ -897,6 +1069,38 @@ var useBookingIntents = (queryParams, options) => {
|
|
|
897
1069
|
);
|
|
898
1070
|
};
|
|
899
1071
|
|
|
1072
|
+
// src/query-hooks/use-booking-link.ts
|
|
1073
|
+
var useBookingLink = (booking_link_id, options) => {
|
|
1074
|
+
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
1075
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
1076
|
+
return client.useQuery(
|
|
1077
|
+
"get",
|
|
1078
|
+
"/v1/booking_links/{booking_link_id}",
|
|
1079
|
+
{
|
|
1080
|
+
params: {
|
|
1081
|
+
path: { booking_link_id }
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
queryOptions
|
|
1085
|
+
);
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
// src/query-hooks/use-booking-links.ts
|
|
1089
|
+
var useBookingLinks = (queryParams, options) => {
|
|
1090
|
+
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
1091
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
1092
|
+
return client.useQuery(
|
|
1093
|
+
"get",
|
|
1094
|
+
"/v1/booking_links",
|
|
1095
|
+
{
|
|
1096
|
+
params: {
|
|
1097
|
+
query: queryParams
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
queryOptions
|
|
1101
|
+
);
|
|
1102
|
+
};
|
|
1103
|
+
|
|
900
1104
|
// src/query-hooks/use-cancellation-reason.ts
|
|
901
1105
|
var useCancellationReason = (cancellation_reason_id, options) => {
|
|
902
1106
|
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
@@ -992,6 +1196,23 @@ var useConnectedAccount = (connected_account_id, options) => {
|
|
|
992
1196
|
);
|
|
993
1197
|
};
|
|
994
1198
|
|
|
1199
|
+
// src/query-hooks/use-connected-account-external-users.ts
|
|
1200
|
+
var useConnectedAccountExternalUsers = (connected_account_id, queryParams, options) => {
|
|
1201
|
+
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
1202
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
1203
|
+
return client.useQuery(
|
|
1204
|
+
"get",
|
|
1205
|
+
"/v1/connected_accounts/{connected_account_id}/external_users",
|
|
1206
|
+
{
|
|
1207
|
+
params: {
|
|
1208
|
+
path: { connected_account_id },
|
|
1209
|
+
query: queryParams
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
queryOptions
|
|
1213
|
+
);
|
|
1214
|
+
};
|
|
1215
|
+
|
|
995
1216
|
// src/query-hooks/use-connected-accounts.ts
|
|
996
1217
|
var useConnectedAccounts = (queryParams, options) => {
|
|
997
1218
|
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
@@ -1078,6 +1299,38 @@ var useForms = (queryParams, options) => {
|
|
|
1078
1299
|
);
|
|
1079
1300
|
};
|
|
1080
1301
|
|
|
1302
|
+
// src/query-hooks/use-opening.ts
|
|
1303
|
+
var useOpening = (opening_id, options) => {
|
|
1304
|
+
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
1305
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
1306
|
+
return client.useQuery(
|
|
1307
|
+
"get",
|
|
1308
|
+
"/v1/openings/{opening_id}",
|
|
1309
|
+
{
|
|
1310
|
+
params: {
|
|
1311
|
+
path: { opening_id }
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
queryOptions
|
|
1315
|
+
);
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
// src/query-hooks/use-openings.ts
|
|
1319
|
+
var useOpenings = (queryParams, options) => {
|
|
1320
|
+
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
1321
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
1322
|
+
return client.useQuery(
|
|
1323
|
+
"get",
|
|
1324
|
+
"/v1/openings",
|
|
1325
|
+
{
|
|
1326
|
+
params: {
|
|
1327
|
+
query: queryParams
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
queryOptions
|
|
1331
|
+
);
|
|
1332
|
+
};
|
|
1333
|
+
|
|
1081
1334
|
// src/query-hooks/use-provider.ts
|
|
1082
1335
|
var useProvider = (provider_id, options) => {
|
|
1083
1336
|
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
@@ -1263,6 +1516,22 @@ var useServiceForms = (service_id, options) => {
|
|
|
1263
1516
|
);
|
|
1264
1517
|
};
|
|
1265
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
|
+
|
|
1266
1535
|
// src/query-hooks/use-service-providers.ts
|
|
1267
1536
|
var useServiceProviders = (service_id, options) => {
|
|
1268
1537
|
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
@@ -1311,6 +1580,39 @@ var useServices = (queryParams, options) => {
|
|
|
1311
1580
|
queryOptions
|
|
1312
1581
|
);
|
|
1313
1582
|
};
|
|
1583
|
+
|
|
1584
|
+
// src/query-hooks/use-user-mapping.ts
|
|
1585
|
+
var useUserMapping = (connected_account_id, provider_id, options) => {
|
|
1586
|
+
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
1587
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
1588
|
+
return client.useQuery(
|
|
1589
|
+
"get",
|
|
1590
|
+
"/v1/connected_accounts/{connected_account_id}/user_mappings/{provider_id}",
|
|
1591
|
+
{
|
|
1592
|
+
params: {
|
|
1593
|
+
path: { connected_account_id, provider_id }
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
queryOptions
|
|
1597
|
+
);
|
|
1598
|
+
};
|
|
1599
|
+
|
|
1600
|
+
// src/query-hooks/use-user-mappings.ts
|
|
1601
|
+
var useUserMappings = (connected_account_id, queryParams, options) => {
|
|
1602
|
+
const { client: overrideClient, ...queryOptions } = options ?? {};
|
|
1603
|
+
const client = useSavvyCalQueryClient(overrideClient);
|
|
1604
|
+
return client.useQuery(
|
|
1605
|
+
"get",
|
|
1606
|
+
"/v1/connected_accounts/{connected_account_id}/user_mappings",
|
|
1607
|
+
{
|
|
1608
|
+
params: {
|
|
1609
|
+
path: { connected_account_id },
|
|
1610
|
+
query: queryParams
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
queryOptions
|
|
1614
|
+
);
|
|
1615
|
+
};
|
|
1314
1616
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1315
1617
|
0 && (module.exports = {
|
|
1316
1618
|
SavvyCalProvider,
|
|
@@ -1328,10 +1630,14 @@ var useServices = (queryParams, options) => {
|
|
|
1328
1630
|
useBookingIntent,
|
|
1329
1631
|
useBookingIntentSlots,
|
|
1330
1632
|
useBookingIntents,
|
|
1633
|
+
useBookingLink,
|
|
1634
|
+
useBookingLinks,
|
|
1331
1635
|
useCancelAppointment,
|
|
1332
1636
|
useCancelPublicAppointment,
|
|
1333
1637
|
useCancellationReason,
|
|
1334
1638
|
useCancellationReasons,
|
|
1639
|
+
useClearServiceConferencing,
|
|
1640
|
+
useClearServiceProviderConferencing,
|
|
1335
1641
|
useClient,
|
|
1336
1642
|
useClientField,
|
|
1337
1643
|
useClientFields,
|
|
@@ -1340,17 +1646,20 @@ var useServices = (queryParams, options) => {
|
|
|
1340
1646
|
useCompletePublicBookingIntent,
|
|
1341
1647
|
useConfirmAppointment,
|
|
1342
1648
|
useConnectedAccount,
|
|
1649
|
+
useConnectedAccountExternalUsers,
|
|
1343
1650
|
useConnectedAccounts,
|
|
1344
1651
|
useCreateAccount,
|
|
1345
1652
|
useCreateAccountUser,
|
|
1346
1653
|
useCreateAppointment,
|
|
1347
1654
|
useCreateBlock,
|
|
1348
1655
|
useCreateBookingIntent,
|
|
1656
|
+
useCreateBookingLink,
|
|
1349
1657
|
useCreateCancellationReason,
|
|
1350
1658
|
useCreateClient,
|
|
1351
1659
|
useCreateClientField,
|
|
1352
1660
|
useCreateDashboardSession,
|
|
1353
1661
|
useCreateForm,
|
|
1662
|
+
useCreateOpening,
|
|
1354
1663
|
useCreateProvider,
|
|
1355
1664
|
useCreateProviderSchedule,
|
|
1356
1665
|
useCreatePublicAppointment,
|
|
@@ -1362,18 +1671,23 @@ var useServices = (queryParams, options) => {
|
|
|
1362
1671
|
useCurrentPlatform,
|
|
1363
1672
|
useDeactivateProvider,
|
|
1364
1673
|
useDeleteBlock,
|
|
1674
|
+
useDeleteBookingLink,
|
|
1365
1675
|
useDeleteCancellationReason,
|
|
1366
1676
|
useDeleteClient,
|
|
1367
1677
|
useDeleteClientField,
|
|
1368
1678
|
useDeleteConnectedAccount,
|
|
1369
1679
|
useDeleteForm,
|
|
1680
|
+
useDeleteOpening,
|
|
1370
1681
|
useDeleteProviderSchedule,
|
|
1371
1682
|
useDeleteService,
|
|
1372
1683
|
useDeleteServiceProvider,
|
|
1684
|
+
useDeleteUserMapping,
|
|
1373
1685
|
useDetachServiceForm,
|
|
1374
1686
|
useEarliestPublicServiceSlot,
|
|
1375
1687
|
useForm,
|
|
1376
1688
|
useForms,
|
|
1689
|
+
useOpening,
|
|
1690
|
+
useOpenings,
|
|
1377
1691
|
useProvider,
|
|
1378
1692
|
useProviderSchedule,
|
|
1379
1693
|
useProviderSchedules,
|
|
@@ -1390,21 +1704,31 @@ var useServices = (queryParams, options) => {
|
|
|
1390
1704
|
useSavvyCalQueryClient,
|
|
1391
1705
|
useService,
|
|
1392
1706
|
useServiceForms,
|
|
1707
|
+
useServiceProviderConferencing,
|
|
1393
1708
|
useServiceProviders,
|
|
1394
1709
|
useServiceSlots,
|
|
1395
1710
|
useServices,
|
|
1711
|
+
useSetServiceConferencing,
|
|
1712
|
+
useSetServiceProviderConferencing,
|
|
1713
|
+
useSetUserMapping,
|
|
1396
1714
|
useSortServiceForms,
|
|
1715
|
+
useSyncConnectedAccountExternalUsers,
|
|
1716
|
+
useSyncServiceConferencing,
|
|
1397
1717
|
useUpdateAccount,
|
|
1398
1718
|
useUpdateAccountUser,
|
|
1399
1719
|
useUpdateBlock,
|
|
1400
1720
|
useUpdateBookingIntent,
|
|
1721
|
+
useUpdateBookingLink,
|
|
1401
1722
|
useUpdateCancellationReason,
|
|
1402
1723
|
useUpdateClient,
|
|
1403
1724
|
useUpdateClientField,
|
|
1404
1725
|
useUpdateConnectedAccount,
|
|
1405
1726
|
useUpdateForm,
|
|
1727
|
+
useUpdateOpening,
|
|
1406
1728
|
useUpdateProvider,
|
|
1407
1729
|
useUpdateProviderSchedule,
|
|
1408
1730
|
useUpdatePublicBookingIntent,
|
|
1409
|
-
useUpdateService
|
|
1731
|
+
useUpdateService,
|
|
1732
|
+
useUserMapping,
|
|
1733
|
+
useUserMappings
|
|
1410
1734
|
});
|