@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.js CHANGED
@@ -1899,6 +1899,42 @@ var useGetAccountThreads = (accountId, params = {}, options = {}) => {
1899
1899
  );
1900
1900
  };
1901
1901
 
1902
+ // src/queries/accounts/useGetAccountsByInternalRefId.ts
1903
+ var ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY = (internalRefId) => [
1904
+ ...ACCOUNTS_QUERY_KEY(),
1905
+ "INTERNAL_REF_ID",
1906
+ internalRefId
1907
+ ];
1908
+ var SET_ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_DATA = (client, keyParams, response) => {
1909
+ client.setQueryData(
1910
+ ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY(...keyParams),
1911
+ response
1912
+ );
1913
+ };
1914
+ var GetAccountsByInternalRefId = async ({
1915
+ internalRefId = "",
1916
+ adminApiParams
1917
+ }) => {
1918
+ const adminApi = await GetAdminAPI(adminApiParams);
1919
+ const { data } = await adminApi.get(
1920
+ `/accounts/internal-ref-id/${internalRefId}`
1921
+ );
1922
+ return data;
1923
+ };
1924
+ var useGetAccountsByInternalRefId = (internalRefId = "", options = {}) => {
1925
+ return useConnectedSingleQuery(
1926
+ ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY(internalRefId),
1927
+ (params) => GetAccountsByInternalRefId({
1928
+ internalRefId: internalRefId || "unknown",
1929
+ ...params
1930
+ }),
1931
+ {
1932
+ ...options,
1933
+ enabled: !!internalRefId && (options?.enabled ?? true)
1934
+ }
1935
+ );
1936
+ };
1937
+
1902
1938
  // src/queries/activities/useGetActivities.ts
1903
1939
  var ACTIVITIES_QUERY_KEY = (moderation, featured, status, global) => {
1904
1940
  const key = ["ACTIVITIES"];
@@ -37956,6 +37992,7 @@ var useUpdateTier = (options = {}) => {
37956
37992
  return useConnectedMutation(UpdateTier, options);
37957
37993
  };
37958
37994
  export {
37995
+ ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_KEY,
37959
37996
  ACCOUNTS_QUERY_KEY,
37960
37997
  ACCOUNT_ACTIVITIES_QUERY_KEY,
37961
37998
  ACCOUNT_ADDRESSES_QUERY_KEY,
@@ -38693,6 +38730,7 @@ export {
38693
38730
  GetAccountThreads,
38694
38731
  GetAccountTiers,
38695
38732
  GetAccounts,
38733
+ GetAccountsByInternalRefId,
38696
38734
  GetActivities,
38697
38735
  GetActivity,
38698
38736
  GetActivityComments,
@@ -39422,6 +39460,7 @@ export {
39422
39460
  SERIES_REGISTRATION_RESPONSES_QUERY_KEY,
39423
39461
  SERIES_TRANSLATIONS_QUERY_KEY,
39424
39462
  SERIES_TRANSLATION_QUERY_KEY,
39463
+ SET_ACCOUNTS_BY_INTERNAL_REF_ID_QUERY_DATA,
39425
39464
  SET_ACCOUNTS_QUERY_DATA,
39426
39465
  SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
39427
39466
  SET_ACCOUNT_ADDRESSES_QUERY_DATA,
@@ -40590,6 +40629,7 @@ export {
40590
40629
  useGetAccountThreads,
40591
40630
  useGetAccountTiers,
40592
40631
  useGetAccounts,
40632
+ useGetAccountsByInternalRefId,
40593
40633
  useGetActivities,
40594
40634
  useGetActivity,
40595
40635
  useGetActivityComments,