@connectedxm/admin 3.2.7 → 3.2.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 +261 -1
- package/dist/index.d.cts +151 -4
- package/dist/index.d.ts +151 -4
- package/dist/index.js +240 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -186,6 +186,7 @@ __export(index_exports, {
|
|
|
186
186
|
CUSTOM_REPORT_QUERY_KEY: () => CUSTOM_REPORT_QUERY_KEY,
|
|
187
187
|
CUSTOM_REPORT_USERS_QUERY_KEY: () => CUSTOM_REPORT_USERS_QUERY_KEY,
|
|
188
188
|
CacheIndividualQueries: () => CacheIndividualQueries,
|
|
189
|
+
CalculateDuration: () => CalculateDuration,
|
|
189
190
|
CancelAnnouncementSchedule: () => CancelAnnouncementSchedule,
|
|
190
191
|
CancelChannelContentPublishSchedule: () => CancelChannelContentPublishSchedule,
|
|
191
192
|
CancelEventPass: () => CancelEventPass,
|
|
@@ -488,6 +489,7 @@ __export(index_exports, {
|
|
|
488
489
|
DownloadVideoCaption: () => DownloadVideoCaption,
|
|
489
490
|
EMAIL_RECEIPTS_QUERY_KEY: () => EMAIL_RECEIPTS_QUERY_KEY,
|
|
490
491
|
EMAIL_RECEIPT_QUERY_KEY: () => EMAIL_RECEIPT_QUERY_KEY,
|
|
492
|
+
ENTITY_USE_CODES_QUERY_KEY: () => ENTITY_USE_CODES_QUERY_KEY,
|
|
491
493
|
EVENTS_QUERY_KEY: () => EVENTS_QUERY_KEY,
|
|
492
494
|
EVENT_ACCESS_USERS_QUERY_KEY: () => EVENT_ACCESS_USERS_QUERY_KEY,
|
|
493
495
|
EVENT_ACTIVATIONS_QUERY_KEY: () => EVENT_ACTIVATIONS_QUERY_KEY,
|
|
@@ -821,6 +823,7 @@ __export(index_exports, {
|
|
|
821
823
|
GetDashboards: () => GetDashboards,
|
|
822
824
|
GetEmailReceipt: () => GetEmailReceipt,
|
|
823
825
|
GetEmailReceipts: () => GetEmailReceipts,
|
|
826
|
+
GetEntityUseCodes: () => GetEntityUseCodes,
|
|
824
827
|
GetErrorMessage: () => GetErrorMessage,
|
|
825
828
|
GetEvent: () => GetEvent,
|
|
826
829
|
GetEventAccessUsers: () => GetEventAccessUsers,
|
|
@@ -1148,8 +1151,11 @@ __export(index_exports, {
|
|
|
1148
1151
|
GetSurveyTranslation: () => GetSurveyTranslation,
|
|
1149
1152
|
GetSurveyTranslations: () => GetSurveyTranslations,
|
|
1150
1153
|
GetSurveys: () => GetSurveys,
|
|
1154
|
+
GetTaxCodes: () => GetTaxCodes,
|
|
1151
1155
|
GetTaxIntegration: () => GetTaxIntegration,
|
|
1152
1156
|
GetTaxIntegrations: () => GetTaxIntegrations,
|
|
1157
|
+
GetTaxLog: () => GetTaxLog,
|
|
1158
|
+
GetTaxLogs: () => GetTaxLogs,
|
|
1153
1159
|
GetTemplates: () => GetTemplates,
|
|
1154
1160
|
GetThread: () => GetThread,
|
|
1155
1161
|
GetThreadAccounts: () => GetThreadAccounts,
|
|
@@ -1448,6 +1454,7 @@ __export(index_exports, {
|
|
|
1448
1454
|
SET_DASHBOARD_WIDGETS_QUERY_DATA: () => SET_DASHBOARD_WIDGETS_QUERY_DATA,
|
|
1449
1455
|
SET_EMAIL_RECEIPTS_QUERY_DATA: () => SET_EMAIL_RECEIPTS_QUERY_DATA,
|
|
1450
1456
|
SET_EMAIL_RECEIPT_QUERY_DATA: () => SET_EMAIL_RECEIPT_QUERY_DATA,
|
|
1457
|
+
SET_ENTITY_USE_CODES_QUERY_DATA: () => SET_ENTITY_USE_CODES_QUERY_DATA,
|
|
1451
1458
|
SET_EVENTS_QUERY_DATA: () => SET_EVENTS_QUERY_DATA,
|
|
1452
1459
|
SET_EVENT_ACTIVATIONS_QUERY_DATA: () => SET_EVENT_ACTIVATIONS_QUERY_DATA,
|
|
1453
1460
|
SET_EVENT_ACTIVATION_COMPLETIONS_QUERY_DATA: () => SET_EVENT_ACTIVATION_COMPLETIONS_QUERY_DATA,
|
|
@@ -1765,8 +1772,11 @@ __export(index_exports, {
|
|
|
1765
1772
|
SET_SURVEY_SUBMISSION_RESPONSE_CHANGES_QUERY_DATA: () => SET_SURVEY_SUBMISSION_RESPONSE_CHANGES_QUERY_DATA,
|
|
1766
1773
|
SET_SURVEY_TRANSLATIONS_QUERY_DATA: () => SET_SURVEY_TRANSLATIONS_QUERY_DATA,
|
|
1767
1774
|
SET_SURVEY_TRANSLATION_QUERY_DATA: () => SET_SURVEY_TRANSLATION_QUERY_DATA,
|
|
1775
|
+
SET_TAX_CODES_QUERY_DATA: () => SET_TAX_CODES_QUERY_DATA,
|
|
1768
1776
|
SET_TAX_INTEGRATIONS_QUERY_DATA: () => SET_TAX_INTEGRATIONS_QUERY_DATA,
|
|
1769
1777
|
SET_TAX_INTEGRATION_QUERY_DATA: () => SET_TAX_INTEGRATION_QUERY_DATA,
|
|
1778
|
+
SET_TAX_LOGS_QUERY_DATA: () => SET_TAX_LOGS_QUERY_DATA,
|
|
1779
|
+
SET_TAX_LOG_QUERY_DATA: () => SET_TAX_LOG_QUERY_DATA,
|
|
1770
1780
|
SET_THREADS_QUERY_DATA: () => SET_THREADS_QUERY_DATA,
|
|
1771
1781
|
SET_THREAD_CIRCLES_QUERY_DATA: () => SET_THREAD_CIRCLES_QUERY_DATA,
|
|
1772
1782
|
SET_THREAD_CIRCLE_ACCOUNTS_QUERY_DATA: () => SET_THREAD_CIRCLE_ACCOUNTS_QUERY_DATA,
|
|
@@ -1842,8 +1852,11 @@ __export(index_exports, {
|
|
|
1842
1852
|
SurveyQuestionType: () => SurveyQuestionType,
|
|
1843
1853
|
SwitchImage: () => SwitchImage,
|
|
1844
1854
|
SystemEventLogStatus: () => SystemEventLogStatus,
|
|
1855
|
+
TAX_CODES_QUERY_KEY: () => TAX_CODES_QUERY_KEY,
|
|
1845
1856
|
TAX_INTEGRATIONS_QUERY_KEY: () => TAX_INTEGRATIONS_QUERY_KEY,
|
|
1846
1857
|
TAX_INTEGRATION_QUERY_KEY: () => TAX_INTEGRATION_QUERY_KEY,
|
|
1858
|
+
TAX_LOGS_QUERY_KEY: () => TAX_LOGS_QUERY_KEY,
|
|
1859
|
+
TAX_LOG_QUERY_KEY: () => TAX_LOG_QUERY_KEY,
|
|
1847
1860
|
THREADS_QUERY_KEY: () => THREADS_QUERY_KEY,
|
|
1848
1861
|
THREAD_ACCOUNTS_QUERY_KEY: () => THREAD_ACCOUNTS_QUERY_KEY,
|
|
1849
1862
|
THREAD_CIRCLES_QUERY_KEY: () => THREAD_CIRCLES_QUERY_KEY,
|
|
@@ -1868,6 +1881,7 @@ __export(index_exports, {
|
|
|
1868
1881
|
TIER_QUERY_KEY: () => TIER_QUERY_KEY,
|
|
1869
1882
|
TIER_SUBSCRIBERS_QUERY_KEY: () => TIER_SUBSCRIBERS_QUERY_KEY,
|
|
1870
1883
|
TaxIntegrationType: () => TaxIntegrationType,
|
|
1884
|
+
TestTaxIntegration: () => TestTaxIntegration,
|
|
1871
1885
|
ThreadCircleAccountRole: () => ThreadCircleAccountRole,
|
|
1872
1886
|
ThreadCircleType: () => ThreadCircleType,
|
|
1873
1887
|
ThreadInvitationStatus: () => ThreadInvitationStatus,
|
|
@@ -2029,6 +2043,7 @@ __export(index_exports, {
|
|
|
2029
2043
|
UpdateSurveySubmission: () => UpdateSurveySubmission,
|
|
2030
2044
|
UpdateSurveySubmissionResponses: () => UpdateSurveySubmissionResponses,
|
|
2031
2045
|
UpdateSurveyTranslation: () => UpdateSurveyTranslation,
|
|
2046
|
+
UpdateTaxIntegration: () => UpdateTaxIntegration,
|
|
2032
2047
|
UpdateThread: () => UpdateThread,
|
|
2033
2048
|
UpdateThreadCircle: () => UpdateThreadCircle,
|
|
2034
2049
|
UpdateThreadCircleAccount: () => UpdateThreadCircleAccount,
|
|
@@ -2501,6 +2516,7 @@ __export(index_exports, {
|
|
|
2501
2516
|
useGetDashboards: () => useGetDashboards,
|
|
2502
2517
|
useGetEmailReceipt: () => useGetEmailReceipt,
|
|
2503
2518
|
useGetEmailReceipts: () => useGetEmailReceipts,
|
|
2519
|
+
useGetEntityUseCodes: () => useGetEntityUseCodes,
|
|
2504
2520
|
useGetEvent: () => useGetEvent,
|
|
2505
2521
|
useGetEventAccessUsers: () => useGetEventAccessUsers,
|
|
2506
2522
|
useGetEventActivation: () => useGetEventActivation,
|
|
@@ -2826,8 +2842,11 @@ __export(index_exports, {
|
|
|
2826
2842
|
useGetSurveyTranslation: () => useGetSurveyTranslation,
|
|
2827
2843
|
useGetSurveyTranslations: () => useGetSurveyTranslations,
|
|
2828
2844
|
useGetSurveys: () => useGetSurveys,
|
|
2845
|
+
useGetTaxCodes: () => useGetTaxCodes,
|
|
2829
2846
|
useGetTaxIntegration: () => useGetTaxIntegration,
|
|
2830
2847
|
useGetTaxIntegrations: () => useGetTaxIntegrations,
|
|
2848
|
+
useGetTaxLog: () => useGetTaxLog,
|
|
2849
|
+
useGetTaxLogs: () => useGetTaxLogs,
|
|
2831
2850
|
useGetTemplates: () => useGetTemplates,
|
|
2832
2851
|
useGetThread: () => useGetThread,
|
|
2833
2852
|
useGetThreadAccounts: () => useGetThreadAccounts,
|
|
@@ -2938,6 +2957,7 @@ __export(index_exports, {
|
|
|
2938
2957
|
useStartEventRoundMatchmaking: () => useStartEventRoundMatchmaking,
|
|
2939
2958
|
useStartEventSessionRoundMatchmaking: () => useStartEventSessionRoundMatchmaking,
|
|
2940
2959
|
useSwitchImage: () => useSwitchImage,
|
|
2960
|
+
useTestTaxIntegration: () => useTestTaxIntegration,
|
|
2941
2961
|
useToggleOrganizationPaymentIntegration: () => useToggleOrganizationPaymentIntegration,
|
|
2942
2962
|
useToggleTaxIntegration: () => useToggleTaxIntegration,
|
|
2943
2963
|
useTransferEventPass: () => useTransferEventPass,
|
|
@@ -3092,6 +3112,7 @@ __export(index_exports, {
|
|
|
3092
3112
|
useUpdateSurveySubmission: () => useUpdateSurveySubmission,
|
|
3093
3113
|
useUpdateSurveySubmissionResponses: () => useUpdateSurveySubmissionResponses,
|
|
3094
3114
|
useUpdateSurveyTranslation: () => useUpdateSurveyTranslation,
|
|
3115
|
+
useUpdateTaxIntegration: () => useUpdateTaxIntegration,
|
|
3095
3116
|
useUpdateThread: () => useUpdateThread,
|
|
3096
3117
|
useUpdateThreadCircle: () => useUpdateThreadCircle,
|
|
3097
3118
|
useUpdateThreadCircleAccount: () => useUpdateThreadCircleAccount,
|
|
@@ -18848,6 +18869,169 @@ var useGetTaxIntegration = (type = "", options = {}) => {
|
|
|
18848
18869
|
);
|
|
18849
18870
|
};
|
|
18850
18871
|
|
|
18872
|
+
// src/queries/organization/tax/useGetEntityUseCodes.ts
|
|
18873
|
+
var ENTITY_USE_CODES_QUERY_KEY = (type, search) => [
|
|
18874
|
+
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18875
|
+
"ENTITY_USE_CODES",
|
|
18876
|
+
search
|
|
18877
|
+
];
|
|
18878
|
+
var SET_ENTITY_USE_CODES_QUERY_DATA = (client, keyParams, response) => {
|
|
18879
|
+
client.setQueryData(ENTITY_USE_CODES_QUERY_KEY(...keyParams), response);
|
|
18880
|
+
};
|
|
18881
|
+
var GetEntityUseCodes = async ({
|
|
18882
|
+
type,
|
|
18883
|
+
search,
|
|
18884
|
+
adminApiParams
|
|
18885
|
+
}) => {
|
|
18886
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
18887
|
+
const { data } = await adminApi.get(
|
|
18888
|
+
`/organization/tax/${type}/entity-use-codes`,
|
|
18889
|
+
{
|
|
18890
|
+
params: {
|
|
18891
|
+
search
|
|
18892
|
+
}
|
|
18893
|
+
}
|
|
18894
|
+
);
|
|
18895
|
+
return data;
|
|
18896
|
+
};
|
|
18897
|
+
var useGetEntityUseCodes = (type = "", search, options = {}) => {
|
|
18898
|
+
return useConnectedSingleQuery(
|
|
18899
|
+
ENTITY_USE_CODES_QUERY_KEY(type, search),
|
|
18900
|
+
(params) => GetEntityUseCodes({
|
|
18901
|
+
type,
|
|
18902
|
+
search,
|
|
18903
|
+
...params
|
|
18904
|
+
}),
|
|
18905
|
+
{
|
|
18906
|
+
...options,
|
|
18907
|
+
enabled: !!type && (options.enabled ?? true)
|
|
18908
|
+
},
|
|
18909
|
+
"org"
|
|
18910
|
+
);
|
|
18911
|
+
};
|
|
18912
|
+
|
|
18913
|
+
// src/queries/organization/tax/useGetTaxCodes.ts
|
|
18914
|
+
var TAX_CODES_QUERY_KEY = (type, search) => [
|
|
18915
|
+
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18916
|
+
"TAX_CODES",
|
|
18917
|
+
search
|
|
18918
|
+
];
|
|
18919
|
+
var SET_TAX_CODES_QUERY_DATA = (client, keyParams, response) => {
|
|
18920
|
+
client.setQueryData(TAX_CODES_QUERY_KEY(...keyParams), response);
|
|
18921
|
+
};
|
|
18922
|
+
var GetTaxCodes = async ({
|
|
18923
|
+
type,
|
|
18924
|
+
search,
|
|
18925
|
+
adminApiParams
|
|
18926
|
+
}) => {
|
|
18927
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
18928
|
+
const { data } = await adminApi.get(
|
|
18929
|
+
`/organization/tax/${type}/tax-codes`,
|
|
18930
|
+
{
|
|
18931
|
+
params: {
|
|
18932
|
+
search
|
|
18933
|
+
}
|
|
18934
|
+
}
|
|
18935
|
+
);
|
|
18936
|
+
return data;
|
|
18937
|
+
};
|
|
18938
|
+
var useGetTaxCodes = (type = "", search, options = {}) => {
|
|
18939
|
+
return useConnectedSingleQuery(
|
|
18940
|
+
TAX_CODES_QUERY_KEY(type, search),
|
|
18941
|
+
(params) => GetTaxCodes({
|
|
18942
|
+
type,
|
|
18943
|
+
search,
|
|
18944
|
+
...params
|
|
18945
|
+
}),
|
|
18946
|
+
{
|
|
18947
|
+
...options,
|
|
18948
|
+
enabled: !!type && (options.enabled ?? true)
|
|
18949
|
+
},
|
|
18950
|
+
"org"
|
|
18951
|
+
);
|
|
18952
|
+
};
|
|
18953
|
+
|
|
18954
|
+
// src/queries/organization/tax/useGetTaxLog.ts
|
|
18955
|
+
var TAX_LOG_QUERY_KEY = (type, logId) => [
|
|
18956
|
+
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18957
|
+
"LOG",
|
|
18958
|
+
logId
|
|
18959
|
+
];
|
|
18960
|
+
var SET_TAX_LOG_QUERY_DATA = (client, keyParams, response) => {
|
|
18961
|
+
client.setQueryData(TAX_LOG_QUERY_KEY(...keyParams), response);
|
|
18962
|
+
};
|
|
18963
|
+
var GetTaxLog = async ({
|
|
18964
|
+
type,
|
|
18965
|
+
logId,
|
|
18966
|
+
adminApiParams
|
|
18967
|
+
}) => {
|
|
18968
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
18969
|
+
const { data } = await adminApi.get(
|
|
18970
|
+
`/organization/tax/${type}/logs/${logId}`
|
|
18971
|
+
);
|
|
18972
|
+
return data;
|
|
18973
|
+
};
|
|
18974
|
+
var useGetTaxLog = (type = "", logId = "", options = {}) => {
|
|
18975
|
+
return useConnectedSingleQuery(
|
|
18976
|
+
TAX_LOG_QUERY_KEY(type, logId),
|
|
18977
|
+
(params) => GetTaxLog({ ...params, type, logId }),
|
|
18978
|
+
{
|
|
18979
|
+
...options,
|
|
18980
|
+
enabled: !!type && !!logId && (options.enabled ?? true)
|
|
18981
|
+
},
|
|
18982
|
+
"org"
|
|
18983
|
+
);
|
|
18984
|
+
};
|
|
18985
|
+
|
|
18986
|
+
// src/queries/organization/tax/useGetTaxLogs.ts
|
|
18987
|
+
var TAX_LOGS_QUERY_KEY = (type) => [
|
|
18988
|
+
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18989
|
+
"LOGS"
|
|
18990
|
+
];
|
|
18991
|
+
var SET_TAX_LOGS_QUERY_DATA = (client, keyParams, response, baseKeys = [""]) => {
|
|
18992
|
+
client.setQueryData(
|
|
18993
|
+
[
|
|
18994
|
+
...TAX_LOGS_QUERY_KEY(...keyParams),
|
|
18995
|
+
...GetBaseInfiniteQueryKeys(...baseKeys)
|
|
18996
|
+
],
|
|
18997
|
+
setFirstPageData(response)
|
|
18998
|
+
);
|
|
18999
|
+
};
|
|
19000
|
+
var GetTaxLogs = async ({
|
|
19001
|
+
type,
|
|
19002
|
+
pageParam,
|
|
19003
|
+
pageSize,
|
|
19004
|
+
orderBy,
|
|
19005
|
+
search,
|
|
19006
|
+
adminApiParams
|
|
19007
|
+
}) => {
|
|
19008
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
19009
|
+
const { data } = await adminApi.get(
|
|
19010
|
+
`/organization/tax/${type}/logs`,
|
|
19011
|
+
{
|
|
19012
|
+
params: {
|
|
19013
|
+
page: pageParam || void 0,
|
|
19014
|
+
pageSize: pageSize || void 0,
|
|
19015
|
+
orderBy: orderBy || void 0,
|
|
19016
|
+
search: search || void 0
|
|
19017
|
+
}
|
|
19018
|
+
}
|
|
19019
|
+
);
|
|
19020
|
+
return data;
|
|
19021
|
+
};
|
|
19022
|
+
var useGetTaxLogs = (type = "", params = {}, options = {}) => {
|
|
19023
|
+
return useConnectedInfiniteQuery(
|
|
19024
|
+
TAX_LOGS_QUERY_KEY(type),
|
|
19025
|
+
(params2) => GetTaxLogs({ ...params2, type }),
|
|
19026
|
+
params,
|
|
19027
|
+
{
|
|
19028
|
+
...options,
|
|
19029
|
+
enabled: !!type && (options.enabled ?? true)
|
|
19030
|
+
},
|
|
19031
|
+
"org"
|
|
19032
|
+
);
|
|
19033
|
+
};
|
|
19034
|
+
|
|
18851
19035
|
// src/queries/organization/useGetOrganizationDomain.ts
|
|
18852
19036
|
var ORGANIZATION_DOMAIN_QUERY_KEY = () => ["ORGANIZATION_DOMAIN"];
|
|
18853
19037
|
var SET_ORGANIZATION_DOMAIN_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -21637,6 +21821,23 @@ var TransformPrice = (value, currency) => {
|
|
|
21637
21821
|
return formatter.format(value / 100);
|
|
21638
21822
|
};
|
|
21639
21823
|
|
|
21824
|
+
// src/utilities/CalculateDuration.ts
|
|
21825
|
+
var CalculateDuration = (durationMilliseconds) => {
|
|
21826
|
+
if (durationMilliseconds < 1e3) {
|
|
21827
|
+
return `${Math.round(durationMilliseconds)} ms`;
|
|
21828
|
+
} else if (durationMilliseconds < 6e4) {
|
|
21829
|
+
return `${Math.round(durationMilliseconds / 1e3)}s`;
|
|
21830
|
+
} else {
|
|
21831
|
+
const minutes = Math.floor(durationMilliseconds / 6e4);
|
|
21832
|
+
const seconds = Math.round(durationMilliseconds % 6e4 / 1e3);
|
|
21833
|
+
if (seconds === 0) {
|
|
21834
|
+
return `${minutes}m`;
|
|
21835
|
+
} else {
|
|
21836
|
+
return `${minutes}m ${seconds}s`;
|
|
21837
|
+
}
|
|
21838
|
+
}
|
|
21839
|
+
};
|
|
21840
|
+
|
|
21640
21841
|
// src/queries/threads/useGetThreadMessages.ts
|
|
21641
21842
|
var THREAD_MESSAGES_QUERY_KEY = (threadId) => [
|
|
21642
21843
|
...THREAD_QUERY_KEY(threadId),
|
|
@@ -36764,6 +36965,24 @@ var useDeleteTaxIntegration = (options = {}) => {
|
|
|
36764
36965
|
});
|
|
36765
36966
|
};
|
|
36766
36967
|
|
|
36968
|
+
// src/mutations/organization/tax/useTestTaxIntegration.ts
|
|
36969
|
+
var TestTaxIntegration = async ({
|
|
36970
|
+
type,
|
|
36971
|
+
adminApiParams
|
|
36972
|
+
}) => {
|
|
36973
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
36974
|
+
const { data } = await connectedXM.post(
|
|
36975
|
+
`/organization/tax/${type}/test`
|
|
36976
|
+
);
|
|
36977
|
+
return data;
|
|
36978
|
+
};
|
|
36979
|
+
var useTestTaxIntegration = (options = {}) => {
|
|
36980
|
+
return useConnectedMutation(TestTaxIntegration, options, {
|
|
36981
|
+
domain: "org",
|
|
36982
|
+
type: "read"
|
|
36983
|
+
});
|
|
36984
|
+
};
|
|
36985
|
+
|
|
36767
36986
|
// src/mutations/organization/tax/useToggleTaxIntegration.ts
|
|
36768
36987
|
var ToggleTaxIntegration = async ({
|
|
36769
36988
|
type,
|
|
@@ -36772,7 +36991,7 @@ var ToggleTaxIntegration = async ({
|
|
|
36772
36991
|
}) => {
|
|
36773
36992
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
36774
36993
|
const { data } = await connectedXM.put(
|
|
36775
|
-
`/organization/tax/${type}`
|
|
36994
|
+
`/organization/tax/${type}/toggle`
|
|
36776
36995
|
);
|
|
36777
36996
|
if (queryClient && data.status === "ok") {
|
|
36778
36997
|
queryClient.invalidateQueries({ queryKey: TAX_INTEGRATIONS_QUERY_KEY() });
|
|
@@ -36787,6 +37006,26 @@ var useToggleTaxIntegration = (options = {}) => {
|
|
|
36787
37006
|
});
|
|
36788
37007
|
};
|
|
36789
37008
|
|
|
37009
|
+
// src/mutations/organization/tax/useUpdateTaxIntegration.ts
|
|
37010
|
+
var UpdateTaxIntegration = async ({
|
|
37011
|
+
type,
|
|
37012
|
+
taxIntegration,
|
|
37013
|
+
adminApiParams
|
|
37014
|
+
}) => {
|
|
37015
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37016
|
+
const { data } = await connectedXM.put(
|
|
37017
|
+
`/organization/tax/${type}`,
|
|
37018
|
+
taxIntegration
|
|
37019
|
+
);
|
|
37020
|
+
return data;
|
|
37021
|
+
};
|
|
37022
|
+
var useUpdateTaxIntegration = (options = {}) => {
|
|
37023
|
+
return useConnectedMutation(UpdateTaxIntegration, options, {
|
|
37024
|
+
domain: "org",
|
|
37025
|
+
type: "update"
|
|
37026
|
+
});
|
|
37027
|
+
};
|
|
37028
|
+
|
|
36790
37029
|
// src/mutations/organization/useAddOrganizationUser.ts
|
|
36791
37030
|
var AddOrganizationUser = async ({
|
|
36792
37031
|
email,
|
|
@@ -40289,6 +40528,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40289
40528
|
CUSTOM_REPORT_QUERY_KEY,
|
|
40290
40529
|
CUSTOM_REPORT_USERS_QUERY_KEY,
|
|
40291
40530
|
CacheIndividualQueries,
|
|
40531
|
+
CalculateDuration,
|
|
40292
40532
|
CancelAnnouncementSchedule,
|
|
40293
40533
|
CancelChannelContentPublishSchedule,
|
|
40294
40534
|
CancelEventPass,
|
|
@@ -40591,6 +40831,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40591
40831
|
DownloadVideoCaption,
|
|
40592
40832
|
EMAIL_RECEIPTS_QUERY_KEY,
|
|
40593
40833
|
EMAIL_RECEIPT_QUERY_KEY,
|
|
40834
|
+
ENTITY_USE_CODES_QUERY_KEY,
|
|
40594
40835
|
EVENTS_QUERY_KEY,
|
|
40595
40836
|
EVENT_ACCESS_USERS_QUERY_KEY,
|
|
40596
40837
|
EVENT_ACTIVATIONS_QUERY_KEY,
|
|
@@ -40924,6 +41165,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40924
41165
|
GetDashboards,
|
|
40925
41166
|
GetEmailReceipt,
|
|
40926
41167
|
GetEmailReceipts,
|
|
41168
|
+
GetEntityUseCodes,
|
|
40927
41169
|
GetErrorMessage,
|
|
40928
41170
|
GetEvent,
|
|
40929
41171
|
GetEventAccessUsers,
|
|
@@ -41251,8 +41493,11 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41251
41493
|
GetSurveyTranslation,
|
|
41252
41494
|
GetSurveyTranslations,
|
|
41253
41495
|
GetSurveys,
|
|
41496
|
+
GetTaxCodes,
|
|
41254
41497
|
GetTaxIntegration,
|
|
41255
41498
|
GetTaxIntegrations,
|
|
41499
|
+
GetTaxLog,
|
|
41500
|
+
GetTaxLogs,
|
|
41256
41501
|
GetTemplates,
|
|
41257
41502
|
GetThread,
|
|
41258
41503
|
GetThreadAccounts,
|
|
@@ -41551,6 +41796,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41551
41796
|
SET_DASHBOARD_WIDGETS_QUERY_DATA,
|
|
41552
41797
|
SET_EMAIL_RECEIPTS_QUERY_DATA,
|
|
41553
41798
|
SET_EMAIL_RECEIPT_QUERY_DATA,
|
|
41799
|
+
SET_ENTITY_USE_CODES_QUERY_DATA,
|
|
41554
41800
|
SET_EVENTS_QUERY_DATA,
|
|
41555
41801
|
SET_EVENT_ACTIVATIONS_QUERY_DATA,
|
|
41556
41802
|
SET_EVENT_ACTIVATION_COMPLETIONS_QUERY_DATA,
|
|
@@ -41868,8 +42114,11 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41868
42114
|
SET_SURVEY_SUBMISSION_RESPONSE_CHANGES_QUERY_DATA,
|
|
41869
42115
|
SET_SURVEY_TRANSLATIONS_QUERY_DATA,
|
|
41870
42116
|
SET_SURVEY_TRANSLATION_QUERY_DATA,
|
|
42117
|
+
SET_TAX_CODES_QUERY_DATA,
|
|
41871
42118
|
SET_TAX_INTEGRATIONS_QUERY_DATA,
|
|
41872
42119
|
SET_TAX_INTEGRATION_QUERY_DATA,
|
|
42120
|
+
SET_TAX_LOGS_QUERY_DATA,
|
|
42121
|
+
SET_TAX_LOG_QUERY_DATA,
|
|
41873
42122
|
SET_THREADS_QUERY_DATA,
|
|
41874
42123
|
SET_THREAD_CIRCLES_QUERY_DATA,
|
|
41875
42124
|
SET_THREAD_CIRCLE_ACCOUNTS_QUERY_DATA,
|
|
@@ -41945,8 +42194,11 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41945
42194
|
SurveyQuestionType,
|
|
41946
42195
|
SwitchImage,
|
|
41947
42196
|
SystemEventLogStatus,
|
|
42197
|
+
TAX_CODES_QUERY_KEY,
|
|
41948
42198
|
TAX_INTEGRATIONS_QUERY_KEY,
|
|
41949
42199
|
TAX_INTEGRATION_QUERY_KEY,
|
|
42200
|
+
TAX_LOGS_QUERY_KEY,
|
|
42201
|
+
TAX_LOG_QUERY_KEY,
|
|
41950
42202
|
THREADS_QUERY_KEY,
|
|
41951
42203
|
THREAD_ACCOUNTS_QUERY_KEY,
|
|
41952
42204
|
THREAD_CIRCLES_QUERY_KEY,
|
|
@@ -41971,6 +42223,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41971
42223
|
TIER_QUERY_KEY,
|
|
41972
42224
|
TIER_SUBSCRIBERS_QUERY_KEY,
|
|
41973
42225
|
TaxIntegrationType,
|
|
42226
|
+
TestTaxIntegration,
|
|
41974
42227
|
ThreadCircleAccountRole,
|
|
41975
42228
|
ThreadCircleType,
|
|
41976
42229
|
ThreadInvitationStatus,
|
|
@@ -42132,6 +42385,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42132
42385
|
UpdateSurveySubmission,
|
|
42133
42386
|
UpdateSurveySubmissionResponses,
|
|
42134
42387
|
UpdateSurveyTranslation,
|
|
42388
|
+
UpdateTaxIntegration,
|
|
42135
42389
|
UpdateThread,
|
|
42136
42390
|
UpdateThreadCircle,
|
|
42137
42391
|
UpdateThreadCircleAccount,
|
|
@@ -42604,6 +42858,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42604
42858
|
useGetDashboards,
|
|
42605
42859
|
useGetEmailReceipt,
|
|
42606
42860
|
useGetEmailReceipts,
|
|
42861
|
+
useGetEntityUseCodes,
|
|
42607
42862
|
useGetEvent,
|
|
42608
42863
|
useGetEventAccessUsers,
|
|
42609
42864
|
useGetEventActivation,
|
|
@@ -42929,8 +43184,11 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42929
43184
|
useGetSurveyTranslation,
|
|
42930
43185
|
useGetSurveyTranslations,
|
|
42931
43186
|
useGetSurveys,
|
|
43187
|
+
useGetTaxCodes,
|
|
42932
43188
|
useGetTaxIntegration,
|
|
42933
43189
|
useGetTaxIntegrations,
|
|
43190
|
+
useGetTaxLog,
|
|
43191
|
+
useGetTaxLogs,
|
|
42934
43192
|
useGetTemplates,
|
|
42935
43193
|
useGetThread,
|
|
42936
43194
|
useGetThreadAccounts,
|
|
@@ -43041,6 +43299,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
43041
43299
|
useStartEventRoundMatchmaking,
|
|
43042
43300
|
useStartEventSessionRoundMatchmaking,
|
|
43043
43301
|
useSwitchImage,
|
|
43302
|
+
useTestTaxIntegration,
|
|
43044
43303
|
useToggleOrganizationPaymentIntegration,
|
|
43045
43304
|
useToggleTaxIntegration,
|
|
43046
43305
|
useTransferEventPass,
|
|
@@ -43195,6 +43454,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
43195
43454
|
useUpdateSurveySubmission,
|
|
43196
43455
|
useUpdateSurveySubmissionResponses,
|
|
43197
43456
|
useUpdateSurveyTranslation,
|
|
43457
|
+
useUpdateTaxIntegration,
|
|
43198
43458
|
useUpdateThread,
|
|
43199
43459
|
useUpdateThreadCircle,
|
|
43200
43460
|
useUpdateThreadCircleAccount,
|