@connectedxm/admin 2.10.6 → 2.10.8
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 +58 -2
- package/dist/index.d.cts +40 -3
- package/dist/index.d.ts +40 -3
- package/dist/index.js +53 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31493,6 +31493,30 @@ var useDeleteInvoice = (options = {}) => {
|
|
|
31493
31493
|
});
|
|
31494
31494
|
};
|
|
31495
31495
|
|
|
31496
|
+
// src/mutations/invoices/useSendInvoice.ts
|
|
31497
|
+
var SendInvoice = async ({
|
|
31498
|
+
invoiceId,
|
|
31499
|
+
adminApiParams,
|
|
31500
|
+
queryClient
|
|
31501
|
+
}) => {
|
|
31502
|
+
if (!invoiceId) throw new Error("Invoice ID Undefined");
|
|
31503
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
31504
|
+
const { data } = await connectedXM.put(
|
|
31505
|
+
`/invoices/${invoiceId}/send`
|
|
31506
|
+
);
|
|
31507
|
+
if (queryClient && data.status === "ok") {
|
|
31508
|
+
SET_INVOICE_QUERY_DATA(queryClient, [invoiceId || data.data?.id], data);
|
|
31509
|
+
queryClient.invalidateQueries({ queryKey: INVOICES_QUERY_KEY() });
|
|
31510
|
+
}
|
|
31511
|
+
return data;
|
|
31512
|
+
};
|
|
31513
|
+
var useSendInvoice = (options = {}) => {
|
|
31514
|
+
return useConnectedMutation(SendInvoice, options, {
|
|
31515
|
+
domain: "invoices",
|
|
31516
|
+
type: "update"
|
|
31517
|
+
});
|
|
31518
|
+
};
|
|
31519
|
+
|
|
31496
31520
|
// src/mutations/invoices/useUpdateInvoice.ts
|
|
31497
31521
|
var UpdateInvoice = async ({
|
|
31498
31522
|
invoiceId,
|
|
@@ -31528,6 +31552,30 @@ var useUpdateInvoice = (options = {}) => {
|
|
|
31528
31552
|
});
|
|
31529
31553
|
};
|
|
31530
31554
|
|
|
31555
|
+
// src/mutations/invoices/useVoidInvoice.ts
|
|
31556
|
+
var VoidInvoice = async ({
|
|
31557
|
+
invoiceId,
|
|
31558
|
+
adminApiParams,
|
|
31559
|
+
queryClient
|
|
31560
|
+
}) => {
|
|
31561
|
+
if (!invoiceId) throw new Error("Invoice ID Undefined");
|
|
31562
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
31563
|
+
const { data } = await connectedXM.put(
|
|
31564
|
+
`/invoices/${invoiceId}/void`
|
|
31565
|
+
);
|
|
31566
|
+
if (queryClient && data.status === "ok") {
|
|
31567
|
+
SET_INVOICE_QUERY_DATA(queryClient, [invoiceId || data.data?.id], data);
|
|
31568
|
+
queryClient.invalidateQueries({ queryKey: INVOICES_QUERY_KEY() });
|
|
31569
|
+
}
|
|
31570
|
+
return data;
|
|
31571
|
+
};
|
|
31572
|
+
var useVoidInvoice = (options = {}) => {
|
|
31573
|
+
return useConnectedMutation(VoidInvoice, options, {
|
|
31574
|
+
domain: "invoices",
|
|
31575
|
+
type: "update"
|
|
31576
|
+
});
|
|
31577
|
+
};
|
|
31578
|
+
|
|
31531
31579
|
// src/mutations/level/translations/useCreateLevelTranslation.ts
|
|
31532
31580
|
var CreateLevelTranslation = async ({
|
|
31533
31581
|
levelId,
|
|
@@ -37898,6 +37946,7 @@ export {
|
|
|
37898
37946
|
SearchOrganization,
|
|
37899
37947
|
SelfLeaveOrganization,
|
|
37900
37948
|
SendAnnouncementPreview,
|
|
37949
|
+
SendInvoice,
|
|
37901
37950
|
SessionAccess,
|
|
37902
37951
|
SideEffectActionType,
|
|
37903
37952
|
SideEffectTriggerType,
|
|
@@ -38113,6 +38162,7 @@ export {
|
|
|
38113
38162
|
VerifyOrganizationWebhook,
|
|
38114
38163
|
VideoSource,
|
|
38115
38164
|
VideoStatus,
|
|
38165
|
+
VoidInvoice,
|
|
38116
38166
|
WidgetCategory,
|
|
38117
38167
|
WidgetType,
|
|
38118
38168
|
isUUID,
|
|
@@ -38980,6 +39030,7 @@ export {
|
|
|
38980
39030
|
useSearchOrganization,
|
|
38981
39031
|
useSelfLeaveOrganization,
|
|
38982
39032
|
useSendAnnouncementPreview,
|
|
39033
|
+
useSendInvoice,
|
|
38983
39034
|
useStartEventRoundMatchmaking,
|
|
38984
39035
|
useStartEventSessionRoundMatchmaking,
|
|
38985
39036
|
useSwitchImage,
|
|
@@ -39145,5 +39196,6 @@ export {
|
|
|
39145
39196
|
useUpdateVideo,
|
|
39146
39197
|
useUploadFile,
|
|
39147
39198
|
useUploadVideoCaptions,
|
|
39148
|
-
useVerifyOrganizationWebhook
|
|
39199
|
+
useVerifyOrganizationWebhook,
|
|
39200
|
+
useVoidInvoice
|
|
39149
39201
|
};
|