@connectedxm/admin 3.2.7 → 3.2.9
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 +264 -1
- package/dist/index.d.cts +173 -12
- package/dist/index.d.ts +173 -12
- package/dist/index.js +243 -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,
|
|
@@ -16614,10 +16635,13 @@ var MatchQuestionType = /* @__PURE__ */ ((MatchQuestionType2) => {
|
|
|
16614
16635
|
var SideEffectTriggerType = /* @__PURE__ */ ((SideEffectTriggerType2) => {
|
|
16615
16636
|
SideEffectTriggerType2["NEW_PASS_OF_PASS_TYPE"] = "NEW_PASS_OF_PASS_TYPE";
|
|
16616
16637
|
SideEffectTriggerType2["CHECKED_IN_EVENT_PASS"] = "CHECKED_IN_EVENT_PASS";
|
|
16638
|
+
SideEffectTriggerType2["NEW_ACCOUNT_TIER"] = "NEW_ACCOUNT_TIER";
|
|
16639
|
+
SideEffectTriggerType2["REMOVED_ACCOUNT_TIER"] = "REMOVED_ACCOUNT_TIER";
|
|
16617
16640
|
return SideEffectTriggerType2;
|
|
16618
16641
|
})(SideEffectTriggerType || {});
|
|
16619
16642
|
var SideEffectActionType = /* @__PURE__ */ ((SideEffectActionType2) => {
|
|
16620
16643
|
SideEffectActionType2["JOIN_GROUP"] = "JOIN_GROUP";
|
|
16644
|
+
SideEffectActionType2["LEAVE_GROUP"] = "LEAVE_GROUP";
|
|
16621
16645
|
SideEffectActionType2["ADD_TO_TIER"] = "ADD_TO_TIER";
|
|
16622
16646
|
SideEffectActionType2["SUBSCRIBE_TO_CHANNEL"] = "SUBSCRIBE_TO_CHANNEL";
|
|
16623
16647
|
SideEffectActionType2["SEND_WEBHOOK"] = "SEND_WEBHOOK";
|
|
@@ -18848,6 +18872,169 @@ var useGetTaxIntegration = (type = "", options = {}) => {
|
|
|
18848
18872
|
);
|
|
18849
18873
|
};
|
|
18850
18874
|
|
|
18875
|
+
// src/queries/organization/tax/useGetEntityUseCodes.ts
|
|
18876
|
+
var ENTITY_USE_CODES_QUERY_KEY = (type, search) => [
|
|
18877
|
+
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18878
|
+
"ENTITY_USE_CODES",
|
|
18879
|
+
search
|
|
18880
|
+
];
|
|
18881
|
+
var SET_ENTITY_USE_CODES_QUERY_DATA = (client, keyParams, response) => {
|
|
18882
|
+
client.setQueryData(ENTITY_USE_CODES_QUERY_KEY(...keyParams), response);
|
|
18883
|
+
};
|
|
18884
|
+
var GetEntityUseCodes = async ({
|
|
18885
|
+
type,
|
|
18886
|
+
search,
|
|
18887
|
+
adminApiParams
|
|
18888
|
+
}) => {
|
|
18889
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
18890
|
+
const { data } = await adminApi.get(
|
|
18891
|
+
`/organization/tax/${type}/entity-use-codes`,
|
|
18892
|
+
{
|
|
18893
|
+
params: {
|
|
18894
|
+
search
|
|
18895
|
+
}
|
|
18896
|
+
}
|
|
18897
|
+
);
|
|
18898
|
+
return data;
|
|
18899
|
+
};
|
|
18900
|
+
var useGetEntityUseCodes = (type = "", search, options = {}) => {
|
|
18901
|
+
return useConnectedSingleQuery(
|
|
18902
|
+
ENTITY_USE_CODES_QUERY_KEY(type, search),
|
|
18903
|
+
(params) => GetEntityUseCodes({
|
|
18904
|
+
type,
|
|
18905
|
+
search,
|
|
18906
|
+
...params
|
|
18907
|
+
}),
|
|
18908
|
+
{
|
|
18909
|
+
...options,
|
|
18910
|
+
enabled: !!type && (options.enabled ?? true)
|
|
18911
|
+
},
|
|
18912
|
+
"org"
|
|
18913
|
+
);
|
|
18914
|
+
};
|
|
18915
|
+
|
|
18916
|
+
// src/queries/organization/tax/useGetTaxCodes.ts
|
|
18917
|
+
var TAX_CODES_QUERY_KEY = (type, search) => [
|
|
18918
|
+
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18919
|
+
"TAX_CODES",
|
|
18920
|
+
search
|
|
18921
|
+
];
|
|
18922
|
+
var SET_TAX_CODES_QUERY_DATA = (client, keyParams, response) => {
|
|
18923
|
+
client.setQueryData(TAX_CODES_QUERY_KEY(...keyParams), response);
|
|
18924
|
+
};
|
|
18925
|
+
var GetTaxCodes = async ({
|
|
18926
|
+
type,
|
|
18927
|
+
search,
|
|
18928
|
+
adminApiParams
|
|
18929
|
+
}) => {
|
|
18930
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
18931
|
+
const { data } = await adminApi.get(
|
|
18932
|
+
`/organization/tax/${type}/tax-codes`,
|
|
18933
|
+
{
|
|
18934
|
+
params: {
|
|
18935
|
+
search
|
|
18936
|
+
}
|
|
18937
|
+
}
|
|
18938
|
+
);
|
|
18939
|
+
return data;
|
|
18940
|
+
};
|
|
18941
|
+
var useGetTaxCodes = (type = "", search, options = {}) => {
|
|
18942
|
+
return useConnectedSingleQuery(
|
|
18943
|
+
TAX_CODES_QUERY_KEY(type, search),
|
|
18944
|
+
(params) => GetTaxCodes({
|
|
18945
|
+
type,
|
|
18946
|
+
search,
|
|
18947
|
+
...params
|
|
18948
|
+
}),
|
|
18949
|
+
{
|
|
18950
|
+
...options,
|
|
18951
|
+
enabled: !!type && (options.enabled ?? true)
|
|
18952
|
+
},
|
|
18953
|
+
"org"
|
|
18954
|
+
);
|
|
18955
|
+
};
|
|
18956
|
+
|
|
18957
|
+
// src/queries/organization/tax/useGetTaxLog.ts
|
|
18958
|
+
var TAX_LOG_QUERY_KEY = (type, logId) => [
|
|
18959
|
+
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18960
|
+
"LOG",
|
|
18961
|
+
logId
|
|
18962
|
+
];
|
|
18963
|
+
var SET_TAX_LOG_QUERY_DATA = (client, keyParams, response) => {
|
|
18964
|
+
client.setQueryData(TAX_LOG_QUERY_KEY(...keyParams), response);
|
|
18965
|
+
};
|
|
18966
|
+
var GetTaxLog = async ({
|
|
18967
|
+
type,
|
|
18968
|
+
logId,
|
|
18969
|
+
adminApiParams
|
|
18970
|
+
}) => {
|
|
18971
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
18972
|
+
const { data } = await adminApi.get(
|
|
18973
|
+
`/organization/tax/${type}/logs/${logId}`
|
|
18974
|
+
);
|
|
18975
|
+
return data;
|
|
18976
|
+
};
|
|
18977
|
+
var useGetTaxLog = (type = "", logId = "", options = {}) => {
|
|
18978
|
+
return useConnectedSingleQuery(
|
|
18979
|
+
TAX_LOG_QUERY_KEY(type, logId),
|
|
18980
|
+
(params) => GetTaxLog({ ...params, type, logId }),
|
|
18981
|
+
{
|
|
18982
|
+
...options,
|
|
18983
|
+
enabled: !!type && !!logId && (options.enabled ?? true)
|
|
18984
|
+
},
|
|
18985
|
+
"org"
|
|
18986
|
+
);
|
|
18987
|
+
};
|
|
18988
|
+
|
|
18989
|
+
// src/queries/organization/tax/useGetTaxLogs.ts
|
|
18990
|
+
var TAX_LOGS_QUERY_KEY = (type) => [
|
|
18991
|
+
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18992
|
+
"LOGS"
|
|
18993
|
+
];
|
|
18994
|
+
var SET_TAX_LOGS_QUERY_DATA = (client, keyParams, response, baseKeys = [""]) => {
|
|
18995
|
+
client.setQueryData(
|
|
18996
|
+
[
|
|
18997
|
+
...TAX_LOGS_QUERY_KEY(...keyParams),
|
|
18998
|
+
...GetBaseInfiniteQueryKeys(...baseKeys)
|
|
18999
|
+
],
|
|
19000
|
+
setFirstPageData(response)
|
|
19001
|
+
);
|
|
19002
|
+
};
|
|
19003
|
+
var GetTaxLogs = async ({
|
|
19004
|
+
type,
|
|
19005
|
+
pageParam,
|
|
19006
|
+
pageSize,
|
|
19007
|
+
orderBy,
|
|
19008
|
+
search,
|
|
19009
|
+
adminApiParams
|
|
19010
|
+
}) => {
|
|
19011
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
19012
|
+
const { data } = await adminApi.get(
|
|
19013
|
+
`/organization/tax/${type}/logs`,
|
|
19014
|
+
{
|
|
19015
|
+
params: {
|
|
19016
|
+
page: pageParam || void 0,
|
|
19017
|
+
pageSize: pageSize || void 0,
|
|
19018
|
+
orderBy: orderBy || void 0,
|
|
19019
|
+
search: search || void 0
|
|
19020
|
+
}
|
|
19021
|
+
}
|
|
19022
|
+
);
|
|
19023
|
+
return data;
|
|
19024
|
+
};
|
|
19025
|
+
var useGetTaxLogs = (type = "", params = {}, options = {}) => {
|
|
19026
|
+
return useConnectedInfiniteQuery(
|
|
19027
|
+
TAX_LOGS_QUERY_KEY(type),
|
|
19028
|
+
(params2) => GetTaxLogs({ ...params2, type }),
|
|
19029
|
+
params,
|
|
19030
|
+
{
|
|
19031
|
+
...options,
|
|
19032
|
+
enabled: !!type && (options.enabled ?? true)
|
|
19033
|
+
},
|
|
19034
|
+
"org"
|
|
19035
|
+
);
|
|
19036
|
+
};
|
|
19037
|
+
|
|
18851
19038
|
// src/queries/organization/useGetOrganizationDomain.ts
|
|
18852
19039
|
var ORGANIZATION_DOMAIN_QUERY_KEY = () => ["ORGANIZATION_DOMAIN"];
|
|
18853
19040
|
var SET_ORGANIZATION_DOMAIN_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -21637,6 +21824,23 @@ var TransformPrice = (value, currency) => {
|
|
|
21637
21824
|
return formatter.format(value / 100);
|
|
21638
21825
|
};
|
|
21639
21826
|
|
|
21827
|
+
// src/utilities/CalculateDuration.ts
|
|
21828
|
+
var CalculateDuration = (durationMilliseconds) => {
|
|
21829
|
+
if (durationMilliseconds < 1e3) {
|
|
21830
|
+
return `${Math.round(durationMilliseconds)} ms`;
|
|
21831
|
+
} else if (durationMilliseconds < 6e4) {
|
|
21832
|
+
return `${Math.round(durationMilliseconds / 1e3)}s`;
|
|
21833
|
+
} else {
|
|
21834
|
+
const minutes = Math.floor(durationMilliseconds / 6e4);
|
|
21835
|
+
const seconds = Math.round(durationMilliseconds % 6e4 / 1e3);
|
|
21836
|
+
if (seconds === 0) {
|
|
21837
|
+
return `${minutes}m`;
|
|
21838
|
+
} else {
|
|
21839
|
+
return `${minutes}m ${seconds}s`;
|
|
21840
|
+
}
|
|
21841
|
+
}
|
|
21842
|
+
};
|
|
21843
|
+
|
|
21640
21844
|
// src/queries/threads/useGetThreadMessages.ts
|
|
21641
21845
|
var THREAD_MESSAGES_QUERY_KEY = (threadId) => [
|
|
21642
21846
|
...THREAD_QUERY_KEY(threadId),
|
|
@@ -36764,6 +36968,24 @@ var useDeleteTaxIntegration = (options = {}) => {
|
|
|
36764
36968
|
});
|
|
36765
36969
|
};
|
|
36766
36970
|
|
|
36971
|
+
// src/mutations/organization/tax/useTestTaxIntegration.ts
|
|
36972
|
+
var TestTaxIntegration = async ({
|
|
36973
|
+
type,
|
|
36974
|
+
adminApiParams
|
|
36975
|
+
}) => {
|
|
36976
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
36977
|
+
const { data } = await connectedXM.post(
|
|
36978
|
+
`/organization/tax/${type}/test`
|
|
36979
|
+
);
|
|
36980
|
+
return data;
|
|
36981
|
+
};
|
|
36982
|
+
var useTestTaxIntegration = (options = {}) => {
|
|
36983
|
+
return useConnectedMutation(TestTaxIntegration, options, {
|
|
36984
|
+
domain: "org",
|
|
36985
|
+
type: "read"
|
|
36986
|
+
});
|
|
36987
|
+
};
|
|
36988
|
+
|
|
36767
36989
|
// src/mutations/organization/tax/useToggleTaxIntegration.ts
|
|
36768
36990
|
var ToggleTaxIntegration = async ({
|
|
36769
36991
|
type,
|
|
@@ -36772,7 +36994,7 @@ var ToggleTaxIntegration = async ({
|
|
|
36772
36994
|
}) => {
|
|
36773
36995
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
36774
36996
|
const { data } = await connectedXM.put(
|
|
36775
|
-
`/organization/tax/${type}`
|
|
36997
|
+
`/organization/tax/${type}/toggle`
|
|
36776
36998
|
);
|
|
36777
36999
|
if (queryClient && data.status === "ok") {
|
|
36778
37000
|
queryClient.invalidateQueries({ queryKey: TAX_INTEGRATIONS_QUERY_KEY() });
|
|
@@ -36787,6 +37009,26 @@ var useToggleTaxIntegration = (options = {}) => {
|
|
|
36787
37009
|
});
|
|
36788
37010
|
};
|
|
36789
37011
|
|
|
37012
|
+
// src/mutations/organization/tax/useUpdateTaxIntegration.ts
|
|
37013
|
+
var UpdateTaxIntegration = async ({
|
|
37014
|
+
type,
|
|
37015
|
+
taxIntegration,
|
|
37016
|
+
adminApiParams
|
|
37017
|
+
}) => {
|
|
37018
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37019
|
+
const { data } = await connectedXM.put(
|
|
37020
|
+
`/organization/tax/${type}`,
|
|
37021
|
+
taxIntegration
|
|
37022
|
+
);
|
|
37023
|
+
return data;
|
|
37024
|
+
};
|
|
37025
|
+
var useUpdateTaxIntegration = (options = {}) => {
|
|
37026
|
+
return useConnectedMutation(UpdateTaxIntegration, options, {
|
|
37027
|
+
domain: "org",
|
|
37028
|
+
type: "update"
|
|
37029
|
+
});
|
|
37030
|
+
};
|
|
37031
|
+
|
|
36790
37032
|
// src/mutations/organization/useAddOrganizationUser.ts
|
|
36791
37033
|
var AddOrganizationUser = async ({
|
|
36792
37034
|
email,
|
|
@@ -40289,6 +40531,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40289
40531
|
CUSTOM_REPORT_QUERY_KEY,
|
|
40290
40532
|
CUSTOM_REPORT_USERS_QUERY_KEY,
|
|
40291
40533
|
CacheIndividualQueries,
|
|
40534
|
+
CalculateDuration,
|
|
40292
40535
|
CancelAnnouncementSchedule,
|
|
40293
40536
|
CancelChannelContentPublishSchedule,
|
|
40294
40537
|
CancelEventPass,
|
|
@@ -40591,6 +40834,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40591
40834
|
DownloadVideoCaption,
|
|
40592
40835
|
EMAIL_RECEIPTS_QUERY_KEY,
|
|
40593
40836
|
EMAIL_RECEIPT_QUERY_KEY,
|
|
40837
|
+
ENTITY_USE_CODES_QUERY_KEY,
|
|
40594
40838
|
EVENTS_QUERY_KEY,
|
|
40595
40839
|
EVENT_ACCESS_USERS_QUERY_KEY,
|
|
40596
40840
|
EVENT_ACTIVATIONS_QUERY_KEY,
|
|
@@ -40924,6 +41168,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40924
41168
|
GetDashboards,
|
|
40925
41169
|
GetEmailReceipt,
|
|
40926
41170
|
GetEmailReceipts,
|
|
41171
|
+
GetEntityUseCodes,
|
|
40927
41172
|
GetErrorMessage,
|
|
40928
41173
|
GetEvent,
|
|
40929
41174
|
GetEventAccessUsers,
|
|
@@ -41251,8 +41496,11 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41251
41496
|
GetSurveyTranslation,
|
|
41252
41497
|
GetSurveyTranslations,
|
|
41253
41498
|
GetSurveys,
|
|
41499
|
+
GetTaxCodes,
|
|
41254
41500
|
GetTaxIntegration,
|
|
41255
41501
|
GetTaxIntegrations,
|
|
41502
|
+
GetTaxLog,
|
|
41503
|
+
GetTaxLogs,
|
|
41256
41504
|
GetTemplates,
|
|
41257
41505
|
GetThread,
|
|
41258
41506
|
GetThreadAccounts,
|
|
@@ -41551,6 +41799,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41551
41799
|
SET_DASHBOARD_WIDGETS_QUERY_DATA,
|
|
41552
41800
|
SET_EMAIL_RECEIPTS_QUERY_DATA,
|
|
41553
41801
|
SET_EMAIL_RECEIPT_QUERY_DATA,
|
|
41802
|
+
SET_ENTITY_USE_CODES_QUERY_DATA,
|
|
41554
41803
|
SET_EVENTS_QUERY_DATA,
|
|
41555
41804
|
SET_EVENT_ACTIVATIONS_QUERY_DATA,
|
|
41556
41805
|
SET_EVENT_ACTIVATION_COMPLETIONS_QUERY_DATA,
|
|
@@ -41868,8 +42117,11 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41868
42117
|
SET_SURVEY_SUBMISSION_RESPONSE_CHANGES_QUERY_DATA,
|
|
41869
42118
|
SET_SURVEY_TRANSLATIONS_QUERY_DATA,
|
|
41870
42119
|
SET_SURVEY_TRANSLATION_QUERY_DATA,
|
|
42120
|
+
SET_TAX_CODES_QUERY_DATA,
|
|
41871
42121
|
SET_TAX_INTEGRATIONS_QUERY_DATA,
|
|
41872
42122
|
SET_TAX_INTEGRATION_QUERY_DATA,
|
|
42123
|
+
SET_TAX_LOGS_QUERY_DATA,
|
|
42124
|
+
SET_TAX_LOG_QUERY_DATA,
|
|
41873
42125
|
SET_THREADS_QUERY_DATA,
|
|
41874
42126
|
SET_THREAD_CIRCLES_QUERY_DATA,
|
|
41875
42127
|
SET_THREAD_CIRCLE_ACCOUNTS_QUERY_DATA,
|
|
@@ -41945,8 +42197,11 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41945
42197
|
SurveyQuestionType,
|
|
41946
42198
|
SwitchImage,
|
|
41947
42199
|
SystemEventLogStatus,
|
|
42200
|
+
TAX_CODES_QUERY_KEY,
|
|
41948
42201
|
TAX_INTEGRATIONS_QUERY_KEY,
|
|
41949
42202
|
TAX_INTEGRATION_QUERY_KEY,
|
|
42203
|
+
TAX_LOGS_QUERY_KEY,
|
|
42204
|
+
TAX_LOG_QUERY_KEY,
|
|
41950
42205
|
THREADS_QUERY_KEY,
|
|
41951
42206
|
THREAD_ACCOUNTS_QUERY_KEY,
|
|
41952
42207
|
THREAD_CIRCLES_QUERY_KEY,
|
|
@@ -41971,6 +42226,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41971
42226
|
TIER_QUERY_KEY,
|
|
41972
42227
|
TIER_SUBSCRIBERS_QUERY_KEY,
|
|
41973
42228
|
TaxIntegrationType,
|
|
42229
|
+
TestTaxIntegration,
|
|
41974
42230
|
ThreadCircleAccountRole,
|
|
41975
42231
|
ThreadCircleType,
|
|
41976
42232
|
ThreadInvitationStatus,
|
|
@@ -42132,6 +42388,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42132
42388
|
UpdateSurveySubmission,
|
|
42133
42389
|
UpdateSurveySubmissionResponses,
|
|
42134
42390
|
UpdateSurveyTranslation,
|
|
42391
|
+
UpdateTaxIntegration,
|
|
42135
42392
|
UpdateThread,
|
|
42136
42393
|
UpdateThreadCircle,
|
|
42137
42394
|
UpdateThreadCircleAccount,
|
|
@@ -42604,6 +42861,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42604
42861
|
useGetDashboards,
|
|
42605
42862
|
useGetEmailReceipt,
|
|
42606
42863
|
useGetEmailReceipts,
|
|
42864
|
+
useGetEntityUseCodes,
|
|
42607
42865
|
useGetEvent,
|
|
42608
42866
|
useGetEventAccessUsers,
|
|
42609
42867
|
useGetEventActivation,
|
|
@@ -42929,8 +43187,11 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42929
43187
|
useGetSurveyTranslation,
|
|
42930
43188
|
useGetSurveyTranslations,
|
|
42931
43189
|
useGetSurveys,
|
|
43190
|
+
useGetTaxCodes,
|
|
42932
43191
|
useGetTaxIntegration,
|
|
42933
43192
|
useGetTaxIntegrations,
|
|
43193
|
+
useGetTaxLog,
|
|
43194
|
+
useGetTaxLogs,
|
|
42934
43195
|
useGetTemplates,
|
|
42935
43196
|
useGetThread,
|
|
42936
43197
|
useGetThreadAccounts,
|
|
@@ -43041,6 +43302,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
43041
43302
|
useStartEventRoundMatchmaking,
|
|
43042
43303
|
useStartEventSessionRoundMatchmaking,
|
|
43043
43304
|
useSwitchImage,
|
|
43305
|
+
useTestTaxIntegration,
|
|
43044
43306
|
useToggleOrganizationPaymentIntegration,
|
|
43045
43307
|
useToggleTaxIntegration,
|
|
43046
43308
|
useTransferEventPass,
|
|
@@ -43195,6 +43457,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
43195
43457
|
useUpdateSurveySubmission,
|
|
43196
43458
|
useUpdateSurveySubmissionResponses,
|
|
43197
43459
|
useUpdateSurveyTranslation,
|
|
43460
|
+
useUpdateTaxIntegration,
|
|
43198
43461
|
useUpdateThread,
|
|
43199
43462
|
useUpdateThreadCircle,
|
|
43200
43463
|
useUpdateThreadCircleAccount,
|