@connectedxm/admin 3.2.3 → 3.2.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 +43 -0
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +40 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14802,6 +14802,43 @@ var useGetLoginAccounts = (username = "", params = {}, options = {}) => {
|
|
|
14802
14802
|
);
|
|
14803
14803
|
};
|
|
14804
14804
|
|
|
14805
|
+
// src/queries/logins/useGetLoginDevices.ts
|
|
14806
|
+
var LOGIN_DEVICES_QUERY_KEY = (username) => [
|
|
14807
|
+
...LOGIN_QUERY_KEY(username),
|
|
14808
|
+
"DEVICES"
|
|
14809
|
+
];
|
|
14810
|
+
var GetLoginDevices = async ({
|
|
14811
|
+
username,
|
|
14812
|
+
pageParam,
|
|
14813
|
+
pageSize,
|
|
14814
|
+
orderBy,
|
|
14815
|
+
search,
|
|
14816
|
+
adminApiParams
|
|
14817
|
+
}) => {
|
|
14818
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
14819
|
+
const { data } = await adminApi.get(`/logins/${username}/devices`, {
|
|
14820
|
+
params: {
|
|
14821
|
+
page: pageParam || void 0,
|
|
14822
|
+
pageSize: pageSize || void 0,
|
|
14823
|
+
orderBy: orderBy || void 0,
|
|
14824
|
+
search: search || void 0
|
|
14825
|
+
}
|
|
14826
|
+
});
|
|
14827
|
+
return data;
|
|
14828
|
+
};
|
|
14829
|
+
var useGetLoginDevices = (username = "", params = {}, options = {}) => {
|
|
14830
|
+
return useConnectedInfiniteQuery(
|
|
14831
|
+
LOGIN_DEVICES_QUERY_KEY(username),
|
|
14832
|
+
(queryParams) => GetLoginDevices({ username, ...queryParams }),
|
|
14833
|
+
params,
|
|
14834
|
+
{
|
|
14835
|
+
...options,
|
|
14836
|
+
enabled: !!username && (options.enabled ?? true)
|
|
14837
|
+
},
|
|
14838
|
+
"accounts"
|
|
14839
|
+
);
|
|
14840
|
+
};
|
|
14841
|
+
|
|
14805
14842
|
// src/queries/memberships/useGetMemberships.ts
|
|
14806
14843
|
var MEMBERSHIPS_QUERY_KEY = () => ["MEMBERSHIPS"];
|
|
14807
14844
|
var SET_MEMBERSHIPS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -38036,6 +38073,7 @@ export {
|
|
|
38036
38073
|
GetLinkPreview,
|
|
38037
38074
|
GetLogin,
|
|
38038
38075
|
GetLoginAccounts,
|
|
38076
|
+
GetLoginDevices,
|
|
38039
38077
|
GetLogins,
|
|
38040
38078
|
GetMembership,
|
|
38041
38079
|
GetMembershipPrice,
|
|
@@ -38181,6 +38219,7 @@ export {
|
|
|
38181
38219
|
LINK_PREVIEW_QUERY_KEY,
|
|
38182
38220
|
LOGINS_QUERY_KEY,
|
|
38183
38221
|
LOGIN_ACCOUNTS_QUERY_KEY,
|
|
38222
|
+
LOGIN_DEVICES_QUERY_KEY,
|
|
38184
38223
|
LOGIN_QUERY_KEY,
|
|
38185
38224
|
LeadStatus,
|
|
38186
38225
|
MEMBERSHIPS_QUERY_KEY,
|
|
@@ -39712,6 +39751,7 @@ export {
|
|
|
39712
39751
|
useGetLinkPreview,
|
|
39713
39752
|
useGetLogin,
|
|
39714
39753
|
useGetLoginAccounts,
|
|
39754
|
+
useGetLoginDevices,
|
|
39715
39755
|
useGetLogins,
|
|
39716
39756
|
useGetMembership,
|
|
39717
39757
|
useGetMembershipPrice,
|