@northern.tech/store 0.29.0 → 0.30.0
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/actions.cjs +0 -1
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.js +9 -9
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.js +3 -3
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.js +4 -4
- package/dist/appSlice/index.cjs +0 -1
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js +2 -2
- package/dist/appSlice/mocks.cjs +0 -1
- package/dist/appSlice/mocks.cjs.map +1 -1
- package/dist/appSlice/mocks.js +2 -2
- package/dist/appSlice/thunks.cjs +25 -31
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +24 -24
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js +2 -2
- package/dist/{chunk-2QIGK5IU.js → chunk-4UNLEL5A.js} +2 -2
- package/dist/{chunk-4573DUCR.js → chunk-6V5IIIF7.js} +2 -2
- package/dist/{chunk-Z4QLZNAN.js → chunk-ARMI6SZS.js} +13 -15
- package/dist/chunk-ARMI6SZS.js.map +1 -0
- package/dist/{chunk-KEQAPMP6.js → chunk-AZF4YY3P.js} +10 -12
- package/dist/chunk-AZF4YY3P.js.map +1 -0
- package/dist/{chunk-GX3X2E57.js → chunk-B5AI2YPV.js} +2 -3
- package/dist/chunk-B5AI2YPV.js.map +1 -0
- package/dist/{chunk-WXRYJOL3.js → chunk-ECVQVQEL.js} +2 -2
- package/dist/{chunk-FXPRG4WH.js → chunk-FCY7BUGK.js} +40 -39
- package/dist/chunk-FCY7BUGK.js.map +1 -0
- package/dist/{chunk-525LX7VL.js → chunk-FG37HJLC.js} +2 -2
- package/dist/{chunk-SDHCQ62K.js → chunk-FQAUVV6C.js} +2 -2
- package/dist/{chunk-5OLM3HEG.js → chunk-HKN3RN2Z.js} +8 -8
- package/dist/{chunk-XHLNGIAP.js → chunk-HPKXWNEF.js} +2 -2
- package/dist/{chunk-QX67O5A2.js → chunk-JXBTIFMS.js} +3 -3
- package/dist/{chunk-VK6FVQ5K.js → chunk-JYPSCCT4.js} +3 -3
- package/dist/{chunk-CMXRPUOF.js → chunk-L53CPHJU.js} +1 -3
- package/dist/chunk-L53CPHJU.js.map +1 -0
- package/dist/{chunk-4BUO44SS.js → chunk-MNJXEB7S.js} +11 -23
- package/dist/chunk-MNJXEB7S.js.map +1 -0
- package/dist/{chunk-UE2EPKRU.js → chunk-NXLXPRYW.js} +11 -11
- package/dist/{chunk-FAKWYYOB.js → chunk-O6VCSLNE.js} +2 -2
- package/dist/{chunk-LSAJE3IU.js → chunk-PQADM3M3.js} +2 -2
- package/dist/{chunk-VLII64V6.js → chunk-SJ75YKOA.js} +2 -2
- package/dist/{chunk-66LI4BJO.js → chunk-TUPBZ6MQ.js} +2 -2
- package/dist/{chunk-SDWPOLHM.js → chunk-XF3TZSZS.js} +3 -3
- package/dist/{chunk-HVZ5BOM6.js → chunk-YB3US6OT.js} +2 -2
- package/dist/{chunk-UBFFGYQ4.js → chunk-YDDE5TIH.js} +2 -2
- package/dist/{chunk-4YLOOOZH.js → chunk-Z2O6LYVP.js} +2 -2
- package/dist/commonConstants.cjs.map +1 -1
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.cjs +3 -15
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +6 -66
- package/dist/commonSelectors.d.ts +6 -66
- package/dist/commonSelectors.js +8 -12
- package/dist/constants.cjs +0 -2
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -3
- package/dist/deploymentsSlice/constants.cjs.map +1 -1
- package/dist/deploymentsSlice/constants.js +1 -1
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.js +2 -2
- package/dist/deploymentsSlice/mocks.cjs.map +1 -1
- package/dist/deploymentsSlice/mocks.js +2 -2
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.js +2 -2
- package/dist/deploymentsSlice/thunks.cjs +25 -31
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +24 -24
- package/dist/devicesSlice/constants.cjs.map +1 -1
- package/dist/devicesSlice/constants.js +1 -1
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.js +2 -2
- package/dist/devicesSlice/mocks.cjs.map +1 -1
- package/dist/devicesSlice/mocks.js +2 -2
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.js +2 -2
- package/dist/devicesSlice/thunks.cjs +25 -31
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.js +24 -24
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.js +2 -2
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.js +2 -2
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.js +2 -2
- package/dist/monitorSlice/mocks.cjs +0 -1
- package/dist/monitorSlice/mocks.cjs.map +1 -1
- package/dist/monitorSlice/mocks.d.cts +0 -4
- package/dist/monitorSlice/mocks.d.ts +0 -4
- package/dist/monitorSlice/mocks.js +2 -3
- package/dist/monitorSlice/mocks.js.map +1 -1
- package/dist/monitorSlice/thunks.cjs +29 -628
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +20 -20
- package/dist/onboardingSlice/thunks.cjs +25 -31
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +24 -24
- package/dist/organizationSlice/constants.cjs.map +1 -1
- package/dist/organizationSlice/constants.js +1 -1
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.js +2 -2
- package/dist/organizationSlice/mocks.cjs.map +1 -1
- package/dist/organizationSlice/mocks.js +2 -2
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.js +2 -2
- package/dist/organizationSlice/thunks.cjs +25 -31
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.js +24 -24
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.js +2 -2
- package/dist/releasesSlice/mocks.cjs.map +1 -1
- package/dist/releasesSlice/mocks.js +2 -2
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.js +3 -3
- package/dist/releasesSlice/thunks.cjs +99 -795
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +16 -25
- package/dist/selectors.cjs +3 -15
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +1 -1
- package/dist/selectors.d.ts +1 -1
- package/dist/selectors.js +8 -12
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js +1 -1
- package/dist/store.cjs +0 -1
- package/dist/store.cjs.map +1 -1
- package/dist/store.js +11 -11
- package/dist/storehooks.cjs +27 -34
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +24 -25
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +27 -33
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +24 -24
- package/dist/useDeploymentDevice.cjs +25 -31
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +24 -24
- package/dist/usersSlice/constants.cjs.map +1 -1
- package/dist/usersSlice/constants.js +1 -1
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.js +2 -2
- package/dist/usersSlice/mocks.cjs.map +1 -1
- package/dist/usersSlice/mocks.js +2 -2
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.js +3 -3
- package/dist/usersSlice/thunks.cjs +25 -31
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +24 -24
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-4BUO44SS.js.map +0 -1
- package/dist/chunk-CMXRPUOF.js.map +0 -1
- package/dist/chunk-FXPRG4WH.js.map +0 -1
- package/dist/chunk-GX3X2E57.js.map +0 -1
- package/dist/chunk-KEQAPMP6.js.map +0 -1
- package/dist/chunk-Z4QLZNAN.js.map +0 -1
- /package/dist/{chunk-2QIGK5IU.js.map → chunk-4UNLEL5A.js.map} +0 -0
- /package/dist/{chunk-4573DUCR.js.map → chunk-6V5IIIF7.js.map} +0 -0
- /package/dist/{chunk-WXRYJOL3.js.map → chunk-ECVQVQEL.js.map} +0 -0
- /package/dist/{chunk-525LX7VL.js.map → chunk-FG37HJLC.js.map} +0 -0
- /package/dist/{chunk-SDHCQ62K.js.map → chunk-FQAUVV6C.js.map} +0 -0
- /package/dist/{chunk-5OLM3HEG.js.map → chunk-HKN3RN2Z.js.map} +0 -0
- /package/dist/{chunk-XHLNGIAP.js.map → chunk-HPKXWNEF.js.map} +0 -0
- /package/dist/{chunk-QX67O5A2.js.map → chunk-JXBTIFMS.js.map} +0 -0
- /package/dist/{chunk-VK6FVQ5K.js.map → chunk-JYPSCCT4.js.map} +0 -0
- /package/dist/{chunk-UE2EPKRU.js.map → chunk-NXLXPRYW.js.map} +0 -0
- /package/dist/{chunk-FAKWYYOB.js.map → chunk-O6VCSLNE.js.map} +0 -0
- /package/dist/{chunk-LSAJE3IU.js.map → chunk-PQADM3M3.js.map} +0 -0
- /package/dist/{chunk-VLII64V6.js.map → chunk-SJ75YKOA.js.map} +0 -0
- /package/dist/{chunk-66LI4BJO.js.map → chunk-TUPBZ6MQ.js.map} +0 -0
- /package/dist/{chunk-SDWPOLHM.js.map → chunk-XF3TZSZS.js.map} +0 -0
- /package/dist/{chunk-HVZ5BOM6.js.map → chunk-YB3US6OT.js.map} +0 -0
- /package/dist/{chunk-UBFFGYQ4.js.map → chunk-YDDE5TIH.js.map} +0 -0
- /package/dist/{chunk-4YLOOOZH.js.map → chunk-Z2O6LYVP.js.map} +0 -0
|
@@ -4,31 +4,31 @@ import {
|
|
|
4
4
|
getDeviceMonitorConfig,
|
|
5
5
|
getIssueCountsByType,
|
|
6
6
|
getLatestDeviceAlerts
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-AZF4YY3P.js";
|
|
8
|
+
import "../chunk-NXLXPRYW.js";
|
|
9
|
+
import "../chunk-JYPSCCT4.js";
|
|
10
|
+
import "../chunk-HKN3RN2Z.js";
|
|
11
|
+
import "../chunk-FG37HJLC.js";
|
|
12
|
+
import "../chunk-Z2O6LYVP.js";
|
|
13
|
+
import "../chunk-PQADM3M3.js";
|
|
14
|
+
import "../chunk-YB3US6OT.js";
|
|
15
15
|
import "../chunk-CQXDAXQF.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-YDDE5TIH.js";
|
|
17
|
+
import "../chunk-B5AI2YPV.js";
|
|
18
|
+
import "../chunk-4UNLEL5A.js";
|
|
19
|
+
import "../chunk-ECVQVQEL.js";
|
|
20
20
|
import "../chunk-NMAXZ3ZY.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-MNJXEB7S.js";
|
|
22
|
+
import "../chunk-SJ75YKOA.js";
|
|
23
|
+
import "../chunk-JXBTIFMS.js";
|
|
24
|
+
import "../chunk-HPKXWNEF.js";
|
|
25
25
|
import "../chunk-YO22XLHI.js";
|
|
26
26
|
import "../chunk-JIS4PA3R.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-O6VCSLNE.js";
|
|
28
|
+
import "../chunk-TUPBZ6MQ.js";
|
|
29
29
|
import "../chunk-4BHM6WVX.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-FQAUVV6C.js";
|
|
31
|
+
import "../chunk-L53CPHJU.js";
|
|
32
32
|
import "../chunk-2DYA3X77.js";
|
|
33
33
|
import "../chunk-FAJ3I2UQ.js";
|
|
34
34
|
import "../chunk-ZKAH3APE.js";
|
|
@@ -1226,14 +1226,6 @@ var getIsEnterprise = (0, import_toolkit8.createSelector)(
|
|
|
1226
1226
|
[getOrganization, getFeatures],
|
|
1227
1227
|
({ plan = PLANS.os.id }, { isEnterprise, isHosted }) => isEnterprise || isHosted && plan === PLANS.enterprise.id
|
|
1228
1228
|
);
|
|
1229
|
-
var getAttrsEndpoint = (0, import_toolkit8.createSelector)(
|
|
1230
|
-
[getFeatures],
|
|
1231
|
-
({ hasReporting }) => hasReporting ? `${import_constants5.reportingApiUrl}/devices/search/attributes` : `${import_constants5.inventoryApiUrlV2}/filters/attributes`
|
|
1232
|
-
);
|
|
1233
|
-
var getSearchEndpoint = (0, import_toolkit8.createSelector)(
|
|
1234
|
-
[getFeatures],
|
|
1235
|
-
({ hasReporting }) => hasReporting ? `${import_constants5.reportingApiUrl}/devices/search` : `${import_constants5.inventoryApiUrlV2}/filters/search`
|
|
1236
|
-
);
|
|
1237
1229
|
var getUserRoles = (0, import_toolkit8.createSelector)([getCurrentUser, getRolesById, getIsEnterprise], (currentUser, rolesById2, isEnterprise) => {
|
|
1238
1230
|
const isAdmin = currentUser.roles?.length ? currentUser.roles.some((role) => role === import_constants5.rolesByName.admin) : !isEnterprise;
|
|
1239
1231
|
const uiPermissions = isAdmin ? mapUserRolesToUiPermissions([import_constants5.rolesByName.admin], rolesById2) : mapUserRolesToUiPermissions(currentUser.roles || [], rolesById2);
|
|
@@ -1367,9 +1359,9 @@ var getSelectedDeploymentData = (0, import_toolkit8.createSelector)(
|
|
|
1367
1359
|
}
|
|
1368
1360
|
);
|
|
1369
1361
|
var getAvailableIssueOptionsByType = (0, import_toolkit8.createSelector)(
|
|
1370
|
-
[
|
|
1371
|
-
({
|
|
1372
|
-
if (isCategory ||
|
|
1362
|
+
[getTenantCapabilities, getIssueCountsByType],
|
|
1363
|
+
({ hasFullFiltering, hasMonitor }, issueCounts) => Object.values(import_constants5.DEVICE_ISSUE_OPTIONS).reduce((accu, { isCategory, key, needsFullFiltering, needsMonitor, title }) => {
|
|
1364
|
+
if (isCategory || needsFullFiltering && !hasFullFiltering || needsMonitor && !hasMonitor) {
|
|
1373
1365
|
return accu;
|
|
1374
1366
|
}
|
|
1375
1367
|
accu[key] = { count: issueCounts[key].filtered, key, title };
|
|
@@ -1485,7 +1477,6 @@ var initialState2 = {
|
|
|
1485
1477
|
hasManifestsEnabled: false,
|
|
1486
1478
|
hasMonitor: false,
|
|
1487
1479
|
hasMCUEnabled: false,
|
|
1488
|
-
hasReporting: false,
|
|
1489
1480
|
isHosted: true,
|
|
1490
1481
|
isEnterprise: false
|
|
1491
1482
|
},
|
|
@@ -3302,7 +3293,7 @@ var getAllGroupDevices = createAppAsyncThunk(
|
|
|
3302
3293
|
state: getState(),
|
|
3303
3294
|
status: import_constants5.DEVICE_STATES.accepted
|
|
3304
3295
|
});
|
|
3305
|
-
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = defaultPage2, devices = []) => general_api_default.post(
|
|
3296
|
+
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = defaultPage2, devices = []) => general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3306
3297
|
page,
|
|
3307
3298
|
per_page: perPage,
|
|
3308
3299
|
filters: filterTerms,
|
|
@@ -3331,18 +3322,21 @@ var getAllDynamicGroupDevices = createAppAsyncThunk(
|
|
|
3331
3322
|
state: getState(),
|
|
3332
3323
|
status: import_constants5.DEVICE_STATES.accepted
|
|
3333
3324
|
});
|
|
3334
|
-
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = defaultPage2, devices = []) => general_api_default.post(
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3325
|
+
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = defaultPage2, devices = []) => general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3326
|
+
page,
|
|
3327
|
+
per_page: perPage,
|
|
3328
|
+
filters,
|
|
3329
|
+
attributes: [...attributes, { scope: "inventory", attribute }]
|
|
3330
|
+
}).then((res) => {
|
|
3331
|
+
const state = getState();
|
|
3332
|
+
const deviceAccu = reduceReceivedDevices(res.data, devices, state);
|
|
3333
|
+
dispatch(actions4.receivedDevices(deviceAccu.devicesById));
|
|
3334
|
+
const total = Number(res.headers[import_constants5.headerNames.total]);
|
|
3335
|
+
if (total > deviceAccu.ids.length) {
|
|
3336
|
+
return getAllDevices(perPage, page + 1, deviceAccu.ids);
|
|
3344
3337
|
}
|
|
3345
|
-
|
|
3338
|
+
return Promise.resolve(dispatch(actions4.addGroup({ group: { deviceIds: deviceAccu.ids, total }, groupName: group })));
|
|
3339
|
+
});
|
|
3346
3340
|
return getAllDevices();
|
|
3347
3341
|
}
|
|
3348
3342
|
);
|
|
@@ -3470,7 +3464,7 @@ var getDevicesByStatus2 = createAppAsyncThunk(
|
|
|
3470
3464
|
status
|
|
3471
3465
|
});
|
|
3472
3466
|
const attributes = [...defaultAttributes, getIdAttribute(getState()), ...selectedAttributes];
|
|
3473
|
-
return general_api_default.post(
|
|
3467
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3474
3468
|
page,
|
|
3475
3469
|
per_page: perPage,
|
|
3476
3470
|
filters: filterTerms,
|
|
@@ -3500,7 +3494,7 @@ var getAllDevicesByStatus = createAppAsyncThunk(
|
|
|
3500
3494
|
`${sliceName4}/getAllDevicesByStatus`,
|
|
3501
3495
|
({ status, attribute }, { dispatch, getState }) => {
|
|
3502
3496
|
const attributes = [...defaultAttributes, getIdAttribute(getState())];
|
|
3503
|
-
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = 1, devices = []) => general_api_default.post(
|
|
3497
|
+
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = 1, devices = []) => general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3504
3498
|
page,
|
|
3505
3499
|
per_page: perPage,
|
|
3506
3500
|
filters: mapFiltersToTerms([{ key: "status", value: status, operator: import_constants5.DEVICE_FILTERING_OPTIONS.$eq.key, scope: "identity" }]),
|
|
@@ -3528,7 +3522,7 @@ var searchDevices = createAppAsyncThunk(`${sliceName4}/searchDevices`, (passedOp
|
|
|
3528
3522
|
const { columnSelection = [] } = getUserSettings(state);
|
|
3529
3523
|
const selectedAttributes = columnSelection.map((column) => ({ attribute: column.key, scope: column.scope }));
|
|
3530
3524
|
const attributes = (0, import_helpers9.attributeDuplicateFilter)([...defaultAttributes, getIdAttribute(state), ...selectedAttributes], "attribute");
|
|
3531
|
-
return general_api_default.post(
|
|
3525
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3532
3526
|
page,
|
|
3533
3527
|
per_page: 10,
|
|
3534
3528
|
filters: [],
|
|
@@ -3556,7 +3550,7 @@ var attributeReducer = (attributes = []) => attributes.slice(0, ATTRIBUTE_LIST_C
|
|
|
3556
3550
|
);
|
|
3557
3551
|
var getDeviceAttributes = createAppAsyncThunk(
|
|
3558
3552
|
`${sliceName4}/getDeviceAttributes`,
|
|
3559
|
-
(_, { dispatch
|
|
3553
|
+
(_, { dispatch }) => general_api_default.get(`${import_constants5.inventoryApiUrlV2}/filters/attributes`).then(({ data }) => {
|
|
3560
3554
|
const { identity: identityAttributes, inventory: inventoryAttributes, system: systemAttributes, tags: tagAttributes } = attributeReducer(data || []);
|
|
3561
3555
|
return dispatch(actions4.setFilterAttributes({ identityAttributes, inventoryAttributes, systemAttributes, tagAttributes }));
|
|
3562
3556
|
})
|
|
@@ -3856,7 +3850,7 @@ var getSystemDevices = createAppAsyncThunk(`${sliceName4}/getSystemDevices`, (op
|
|
|
3856
3850
|
{ ...emptyFilter, key: "mender_gateway_system_id", value: mender_gateway_system_id, scope: "inventory" }
|
|
3857
3851
|
];
|
|
3858
3852
|
const { attributes, filterTerms } = prepareSearchArguments({ filters, state });
|
|
3859
|
-
return general_api_default.post(
|
|
3853
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3860
3854
|
page,
|
|
3861
3855
|
per_page: perPage,
|
|
3862
3856
|
filters: filterTerms,
|
|
@@ -3883,7 +3877,7 @@ var getGatewayDevices = createAppAsyncThunk(`${sliceName4}/getGatewayDevices`, (
|
|
|
3883
3877
|
{ ...emptyFilter, key: "mender_gateway_system_id", value: mender_gateway_system_id, scope: "inventory" }
|
|
3884
3878
|
];
|
|
3885
3879
|
const { attributes: attributeSelection, filterTerms } = prepareSearchArguments({ filters, state });
|
|
3886
|
-
return general_api_default.post(
|
|
3880
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3887
3881
|
page: 1,
|
|
3888
3882
|
per_page: MAX_PAGE_SIZE,
|
|
3889
3883
|
filters: filterTerms,
|
|
@@ -3935,7 +3929,7 @@ var getIssueCountsByType2 = createAppAsyncThunk(
|
|
|
3935
3929
|
selectedIssues: [type],
|
|
3936
3930
|
status
|
|
3937
3931
|
});
|
|
3938
|
-
return general_api_default.post(
|
|
3932
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3939
3933
|
page: 1,
|
|
3940
3934
|
per_page: 1,
|
|
3941
3935
|
filters: filterTerms,
|