@connectedxm/admin 3.2.3 → 3.2.4

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 CHANGED
@@ -1071,6 +1071,7 @@ __export(index_exports, {
1071
1071
  GetLinkPreview: () => GetLinkPreview,
1072
1072
  GetLogin: () => GetLogin,
1073
1073
  GetLoginAccounts: () => GetLoginAccounts,
1074
+ GetLoginDevices: () => GetLoginDevices,
1074
1075
  GetLogins: () => GetLogins,
1075
1076
  GetMembership: () => GetMembership,
1076
1077
  GetMembershipPrice: () => GetMembershipPrice,
@@ -1216,6 +1217,7 @@ __export(index_exports, {
1216
1217
  LINK_PREVIEW_QUERY_KEY: () => LINK_PREVIEW_QUERY_KEY,
1217
1218
  LOGINS_QUERY_KEY: () => LOGINS_QUERY_KEY,
1218
1219
  LOGIN_ACCOUNTS_QUERY_KEY: () => LOGIN_ACCOUNTS_QUERY_KEY,
1220
+ LOGIN_DEVICES_QUERY_KEY: () => LOGIN_DEVICES_QUERY_KEY,
1219
1221
  LOGIN_QUERY_KEY: () => LOGIN_QUERY_KEY,
1220
1222
  LeadStatus: () => LeadStatus,
1221
1223
  MEMBERSHIPS_QUERY_KEY: () => MEMBERSHIPS_QUERY_KEY,
@@ -2747,6 +2749,7 @@ __export(index_exports, {
2747
2749
  useGetLinkPreview: () => useGetLinkPreview,
2748
2750
  useGetLogin: () => useGetLogin,
2749
2751
  useGetLoginAccounts: () => useGetLoginAccounts,
2752
+ useGetLoginDevices: () => useGetLoginDevices,
2750
2753
  useGetLogins: () => useGetLogins,
2751
2754
  useGetMembership: () => useGetMembership,
2752
2755
  useGetMembershipPrice: () => useGetMembershipPrice,
@@ -17904,6 +17907,43 @@ var useGetLoginAccounts = (username = "", params = {}, options = {}) => {
17904
17907
  );
17905
17908
  };
17906
17909
 
17910
+ // src/queries/logins/useGetLoginDevices.ts
17911
+ var LOGIN_DEVICES_QUERY_KEY = (username) => [
17912
+ ...LOGIN_QUERY_KEY(username),
17913
+ "DEVICES"
17914
+ ];
17915
+ var GetLoginDevices = async ({
17916
+ username,
17917
+ pageParam,
17918
+ pageSize,
17919
+ orderBy,
17920
+ search,
17921
+ adminApiParams
17922
+ }) => {
17923
+ const adminApi = await GetAdminAPI(adminApiParams);
17924
+ const { data } = await adminApi.get(`/logins/${username}/devices`, {
17925
+ params: {
17926
+ page: pageParam || void 0,
17927
+ pageSize: pageSize || void 0,
17928
+ orderBy: orderBy || void 0,
17929
+ search: search || void 0
17930
+ }
17931
+ });
17932
+ return data;
17933
+ };
17934
+ var useGetLoginDevices = (username = "", params = {}, options = {}) => {
17935
+ return useConnectedInfiniteQuery(
17936
+ LOGIN_DEVICES_QUERY_KEY(username),
17937
+ (queryParams) => GetLoginDevices({ username, ...queryParams }),
17938
+ params,
17939
+ {
17940
+ ...options,
17941
+ enabled: !!username && (options.enabled ?? true)
17942
+ },
17943
+ "accounts"
17944
+ );
17945
+ };
17946
+
17907
17947
  // src/queries/memberships/useGetMemberships.ts
17908
17948
  var MEMBERSHIPS_QUERY_KEY = () => ["MEMBERSHIPS"];
17909
17949
  var SET_MEMBERSHIPS_QUERY_DATA = (client, keyParams, response) => {
@@ -41134,6 +41174,7 @@ var useUploadVideoCaptions = (options = {}) => {
41134
41174
  GetLinkPreview,
41135
41175
  GetLogin,
41136
41176
  GetLoginAccounts,
41177
+ GetLoginDevices,
41137
41178
  GetLogins,
41138
41179
  GetMembership,
41139
41180
  GetMembershipPrice,
@@ -41279,6 +41320,7 @@ var useUploadVideoCaptions = (options = {}) => {
41279
41320
  LINK_PREVIEW_QUERY_KEY,
41280
41321
  LOGINS_QUERY_KEY,
41281
41322
  LOGIN_ACCOUNTS_QUERY_KEY,
41323
+ LOGIN_DEVICES_QUERY_KEY,
41282
41324
  LOGIN_QUERY_KEY,
41283
41325
  LeadStatus,
41284
41326
  MEMBERSHIPS_QUERY_KEY,
@@ -42810,6 +42852,7 @@ var useUploadVideoCaptions = (options = {}) => {
42810
42852
  useGetLinkPreview,
42811
42853
  useGetLogin,
42812
42854
  useGetLoginAccounts,
42855
+ useGetLoginDevices,
42813
42856
  useGetLogins,
42814
42857
  useGetMembership,
42815
42858
  useGetMembershipPrice,