@connectedxm/admin 6.14.3 → 6.14.5
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 +44 -0
- package/dist/index.d.cts +52 -25
- package/dist/index.d.ts +52 -25
- package/dist/index.js +40 -0
- package/openapi.json +891 -388
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
+
ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY: () => ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY,
|
|
33
34
|
ACCOUNTS_QUERY_KEY: () => ACCOUNTS_QUERY_KEY,
|
|
34
35
|
ACCOUNT_ACTIVITIES_QUERY_KEY: () => ACCOUNT_ACTIVITIES_QUERY_KEY,
|
|
35
36
|
ACCOUNT_ADDRESSES_QUERY_KEY: () => ACCOUNT_ADDRESSES_QUERY_KEY,
|
|
@@ -767,6 +768,7 @@ __export(index_exports, {
|
|
|
767
768
|
GetAccountThreads: () => GetAccountThreads,
|
|
768
769
|
GetAccountTiers: () => GetAccountTiers,
|
|
769
770
|
GetAccounts: () => GetAccounts,
|
|
771
|
+
GetAccountsByInternalRefId: () => GetAccountsByInternalRefId,
|
|
770
772
|
GetActivities: () => GetActivities,
|
|
771
773
|
GetActivity: () => GetActivity,
|
|
772
774
|
GetActivityComments: () => GetActivityComments,
|
|
@@ -1496,6 +1498,7 @@ __export(index_exports, {
|
|
|
1496
1498
|
SERIES_REGISTRATION_RESPONSES_QUERY_KEY: () => SERIES_REGISTRATION_RESPONSES_QUERY_KEY,
|
|
1497
1499
|
SERIES_TRANSLATIONS_QUERY_KEY: () => SERIES_TRANSLATIONS_QUERY_KEY,
|
|
1498
1500
|
SERIES_TRANSLATION_QUERY_KEY: () => SERIES_TRANSLATION_QUERY_KEY,
|
|
1501
|
+
SET_ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_DATA: () => SET_ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_DATA,
|
|
1499
1502
|
SET_ACCOUNTS_QUERY_DATA: () => SET_ACCOUNTS_QUERY_DATA,
|
|
1500
1503
|
SET_ACCOUNT_ACTIVITIES_QUERY_DATA: () => SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
|
|
1501
1504
|
SET_ACCOUNT_ADDRESSES_QUERY_DATA: () => SET_ACCOUNT_ADDRESSES_QUERY_DATA,
|
|
@@ -2664,6 +2667,7 @@ __export(index_exports, {
|
|
|
2664
2667
|
useGetAccountThreads: () => useGetAccountThreads,
|
|
2665
2668
|
useGetAccountTiers: () => useGetAccountTiers,
|
|
2666
2669
|
useGetAccounts: () => useGetAccounts,
|
|
2670
|
+
useGetAccountsByInternalRefId: () => useGetAccountsByInternalRefId,
|
|
2667
2671
|
useGetActivities: () => useGetActivities,
|
|
2668
2672
|
useGetActivity: () => useGetActivity,
|
|
2669
2673
|
useGetActivityComments: () => useGetActivityComments,
|
|
@@ -5339,6 +5343,42 @@ var useGetAccountThreads = (accountId, params = {}, options = {}) => {
|
|
|
5339
5343
|
);
|
|
5340
5344
|
};
|
|
5341
5345
|
|
|
5346
|
+
// src/queries/accounts/useGetAccountsByInternalRefId.ts
|
|
5347
|
+
var ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY = (internalRefId) => [
|
|
5348
|
+
...ACCOUNTS_QUERY_KEY(),
|
|
5349
|
+
"INTERNAL_REF_ID",
|
|
5350
|
+
internalRefId
|
|
5351
|
+
];
|
|
5352
|
+
var SET_ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_DATA = (client, keyParams, response) => {
|
|
5353
|
+
client.setQueryData(
|
|
5354
|
+
ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY(...keyParams),
|
|
5355
|
+
response
|
|
5356
|
+
);
|
|
5357
|
+
};
|
|
5358
|
+
var GetAccountsByInternalRefId = async ({
|
|
5359
|
+
internalRefId = "",
|
|
5360
|
+
adminApiParams
|
|
5361
|
+
}) => {
|
|
5362
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
5363
|
+
const { data } = await adminApi.get(
|
|
5364
|
+
`/accounts/internal-ref-id/${internalRefId}`
|
|
5365
|
+
);
|
|
5366
|
+
return data;
|
|
5367
|
+
};
|
|
5368
|
+
var useGetAccountsByInternalRefId = (internalRefId = "", options = {}) => {
|
|
5369
|
+
return useConnectedSingleQuery(
|
|
5370
|
+
ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY(internalRefId),
|
|
5371
|
+
(params) => GetAccountsByInternalRefId({
|
|
5372
|
+
internalRefId: internalRefId || "unknown",
|
|
5373
|
+
...params
|
|
5374
|
+
}),
|
|
5375
|
+
{
|
|
5376
|
+
...options,
|
|
5377
|
+
enabled: !!internalRefId && (options?.enabled ?? true)
|
|
5378
|
+
}
|
|
5379
|
+
);
|
|
5380
|
+
};
|
|
5381
|
+
|
|
5342
5382
|
// src/queries/activities/useGetActivities.ts
|
|
5343
5383
|
var ACTIVITIES_QUERY_KEY = (moderation, featured, status, global) => {
|
|
5344
5384
|
const key = ["ACTIVITIES"];
|
|
@@ -41392,6 +41432,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
41392
41432
|
};
|
|
41393
41433
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41394
41434
|
0 && (module.exports = {
|
|
41435
|
+
ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY,
|
|
41395
41436
|
ACCOUNTS_QUERY_KEY,
|
|
41396
41437
|
ACCOUNT_ACTIVITIES_QUERY_KEY,
|
|
41397
41438
|
ACCOUNT_ADDRESSES_QUERY_KEY,
|
|
@@ -42129,6 +42170,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
42129
42170
|
GetAccountThreads,
|
|
42130
42171
|
GetAccountTiers,
|
|
42131
42172
|
GetAccounts,
|
|
42173
|
+
GetAccountsByInternalRefId,
|
|
42132
42174
|
GetActivities,
|
|
42133
42175
|
GetActivity,
|
|
42134
42176
|
GetActivityComments,
|
|
@@ -42858,6 +42900,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
42858
42900
|
SERIES_REGISTRATION_RESPONSES_QUERY_KEY,
|
|
42859
42901
|
SERIES_TRANSLATIONS_QUERY_KEY,
|
|
42860
42902
|
SERIES_TRANSLATION_QUERY_KEY,
|
|
42903
|
+
SET_ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_DATA,
|
|
42861
42904
|
SET_ACCOUNTS_QUERY_DATA,
|
|
42862
42905
|
SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
|
|
42863
42906
|
SET_ACCOUNT_ADDRESSES_QUERY_DATA,
|
|
@@ -44026,6 +44069,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44026
44069
|
useGetAccountThreads,
|
|
44027
44070
|
useGetAccountTiers,
|
|
44028
44071
|
useGetAccounts,
|
|
44072
|
+
useGetAccountsByInternalRefId,
|
|
44029
44073
|
useGetActivities,
|
|
44030
44074
|
useGetActivity,
|
|
44031
44075
|
useGetActivityComments,
|