@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.cjs
CHANGED
|
@@ -1794,6 +1794,7 @@ __export(index_exports, {
|
|
|
1794
1794
|
SearchOrganization: () => SearchOrganization,
|
|
1795
1795
|
SelfLeaveOrganization: () => SelfLeaveOrganization,
|
|
1796
1796
|
SendAnnouncementPreview: () => SendAnnouncementPreview,
|
|
1797
|
+
SendInvoice: () => SendInvoice,
|
|
1797
1798
|
SessionAccess: () => SessionAccess,
|
|
1798
1799
|
SideEffectActionType: () => SideEffectActionType,
|
|
1799
1800
|
SideEffectTriggerType: () => SideEffectTriggerType,
|
|
@@ -2009,6 +2010,7 @@ __export(index_exports, {
|
|
|
2009
2010
|
VerifyOrganizationWebhook: () => VerifyOrganizationWebhook,
|
|
2010
2011
|
VideoSource: () => VideoSource,
|
|
2011
2012
|
VideoStatus: () => VideoStatus,
|
|
2013
|
+
VoidInvoice: () => VoidInvoice,
|
|
2012
2014
|
WidgetCategory: () => WidgetCategory,
|
|
2013
2015
|
WidgetType: () => WidgetType,
|
|
2014
2016
|
isUUID: () => isUUID,
|
|
@@ -2876,6 +2878,7 @@ __export(index_exports, {
|
|
|
2876
2878
|
useSearchOrganization: () => useSearchOrganization,
|
|
2877
2879
|
useSelfLeaveOrganization: () => useSelfLeaveOrganization,
|
|
2878
2880
|
useSendAnnouncementPreview: () => useSendAnnouncementPreview,
|
|
2881
|
+
useSendInvoice: () => useSendInvoice,
|
|
2879
2882
|
useStartEventRoundMatchmaking: () => useStartEventRoundMatchmaking,
|
|
2880
2883
|
useStartEventSessionRoundMatchmaking: () => useStartEventSessionRoundMatchmaking,
|
|
2881
2884
|
useSwitchImage: () => useSwitchImage,
|
|
@@ -3041,7 +3044,8 @@ __export(index_exports, {
|
|
|
3041
3044
|
useUpdateVideo: () => useUpdateVideo,
|
|
3042
3045
|
useUploadFile: () => useUploadFile,
|
|
3043
3046
|
useUploadVideoCaptions: () => useUploadVideoCaptions,
|
|
3044
|
-
useVerifyOrganizationWebhook: () => useVerifyOrganizationWebhook
|
|
3047
|
+
useVerifyOrganizationWebhook: () => useVerifyOrganizationWebhook,
|
|
3048
|
+
useVoidInvoice: () => useVoidInvoice
|
|
3045
3049
|
});
|
|
3046
3050
|
module.exports = __toCommonJS(index_exports);
|
|
3047
3051
|
|
|
@@ -34531,6 +34535,30 @@ var useDeleteInvoice = (options = {}) => {
|
|
|
34531
34535
|
});
|
|
34532
34536
|
};
|
|
34533
34537
|
|
|
34538
|
+
// src/mutations/invoices/useSendInvoice.ts
|
|
34539
|
+
var SendInvoice = async ({
|
|
34540
|
+
invoiceId,
|
|
34541
|
+
adminApiParams,
|
|
34542
|
+
queryClient
|
|
34543
|
+
}) => {
|
|
34544
|
+
if (!invoiceId) throw new Error("Invoice ID Undefined");
|
|
34545
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
34546
|
+
const { data } = await connectedXM.put(
|
|
34547
|
+
`/invoices/${invoiceId}/send`
|
|
34548
|
+
);
|
|
34549
|
+
if (queryClient && data.status === "ok") {
|
|
34550
|
+
SET_INVOICE_QUERY_DATA(queryClient, [invoiceId || data.data?.id], data);
|
|
34551
|
+
queryClient.invalidateQueries({ queryKey: INVOICES_QUERY_KEY() });
|
|
34552
|
+
}
|
|
34553
|
+
return data;
|
|
34554
|
+
};
|
|
34555
|
+
var useSendInvoice = (options = {}) => {
|
|
34556
|
+
return useConnectedMutation(SendInvoice, options, {
|
|
34557
|
+
domain: "invoices",
|
|
34558
|
+
type: "update"
|
|
34559
|
+
});
|
|
34560
|
+
};
|
|
34561
|
+
|
|
34534
34562
|
// src/mutations/invoices/useUpdateInvoice.ts
|
|
34535
34563
|
var UpdateInvoice = async ({
|
|
34536
34564
|
invoiceId,
|
|
@@ -34566,6 +34594,30 @@ var useUpdateInvoice = (options = {}) => {
|
|
|
34566
34594
|
});
|
|
34567
34595
|
};
|
|
34568
34596
|
|
|
34597
|
+
// src/mutations/invoices/useVoidInvoice.ts
|
|
34598
|
+
var VoidInvoice = async ({
|
|
34599
|
+
invoiceId,
|
|
34600
|
+
adminApiParams,
|
|
34601
|
+
queryClient
|
|
34602
|
+
}) => {
|
|
34603
|
+
if (!invoiceId) throw new Error("Invoice ID Undefined");
|
|
34604
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
34605
|
+
const { data } = await connectedXM.put(
|
|
34606
|
+
`/invoices/${invoiceId}/void`
|
|
34607
|
+
);
|
|
34608
|
+
if (queryClient && data.status === "ok") {
|
|
34609
|
+
SET_INVOICE_QUERY_DATA(queryClient, [invoiceId || data.data?.id], data);
|
|
34610
|
+
queryClient.invalidateQueries({ queryKey: INVOICES_QUERY_KEY() });
|
|
34611
|
+
}
|
|
34612
|
+
return data;
|
|
34613
|
+
};
|
|
34614
|
+
var useVoidInvoice = (options = {}) => {
|
|
34615
|
+
return useConnectedMutation(VoidInvoice, options, {
|
|
34616
|
+
domain: "invoices",
|
|
34617
|
+
type: "update"
|
|
34618
|
+
});
|
|
34619
|
+
};
|
|
34620
|
+
|
|
34569
34621
|
// src/mutations/level/translations/useCreateLevelTranslation.ts
|
|
34570
34622
|
var CreateLevelTranslation = async ({
|
|
34571
34623
|
levelId,
|
|
@@ -40937,6 +40989,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40937
40989
|
SearchOrganization,
|
|
40938
40990
|
SelfLeaveOrganization,
|
|
40939
40991
|
SendAnnouncementPreview,
|
|
40992
|
+
SendInvoice,
|
|
40940
40993
|
SessionAccess,
|
|
40941
40994
|
SideEffectActionType,
|
|
40942
40995
|
SideEffectTriggerType,
|
|
@@ -41152,6 +41205,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41152
41205
|
VerifyOrganizationWebhook,
|
|
41153
41206
|
VideoSource,
|
|
41154
41207
|
VideoStatus,
|
|
41208
|
+
VoidInvoice,
|
|
41155
41209
|
WidgetCategory,
|
|
41156
41210
|
WidgetType,
|
|
41157
41211
|
isUUID,
|
|
@@ -42019,6 +42073,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42019
42073
|
useSearchOrganization,
|
|
42020
42074
|
useSelfLeaveOrganization,
|
|
42021
42075
|
useSendAnnouncementPreview,
|
|
42076
|
+
useSendInvoice,
|
|
42022
42077
|
useStartEventRoundMatchmaking,
|
|
42023
42078
|
useStartEventSessionRoundMatchmaking,
|
|
42024
42079
|
useSwitchImage,
|
|
@@ -42184,5 +42239,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42184
42239
|
useUpdateVideo,
|
|
42185
42240
|
useUploadFile,
|
|
42186
42241
|
useUploadVideoCaptions,
|
|
42187
|
-
useVerifyOrganizationWebhook
|
|
42242
|
+
useVerifyOrganizationWebhook,
|
|
42243
|
+
useVoidInvoice
|
|
42188
42244
|
});
|