@northern.tech/store 0.28.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 +10 -10
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.js +4 -4
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.js +5 -5
- package/dist/appSlice/index.cjs +0 -1
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js +3 -3
- package/dist/appSlice/mocks.cjs +0 -1
- package/dist/appSlice/mocks.cjs.map +1 -1
- package/dist/appSlice/mocks.js +3 -3
- package/dist/appSlice/thunks.cjs +29 -33
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +26 -26
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js +3 -3
- package/dist/{chunk-2QIGK5IU.js → chunk-4UNLEL5A.js} +2 -2
- package/dist/{chunk-KR5IU7TA.js → chunk-6V5IIIF7.js} +3 -3
- package/dist/{chunk-KR5IU7TA.js.map → chunk-6V5IIIF7.js.map} +1 -1
- package/dist/{chunk-GDB5IZMC.js → chunk-ARMI6SZS.js} +15 -17
- package/dist/chunk-ARMI6SZS.js.map +1 -0
- package/dist/{chunk-GEJDA2ZF.js → chunk-AZF4YY3P.js} +12 -14
- 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-2S5F4CQS.js → chunk-FCY7BUGK.js} +62 -62
- 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-G2OECV4D.js → chunk-HKN3RN2Z.js} +13 -13
- 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-CQT3GJNR.js → chunk-MNJXEB7S.js} +16 -28
- package/dist/chunk-MNJXEB7S.js.map +1 -0
- package/dist/{chunk-ILSHXLJ3.js → chunk-NXLXPRYW.js} +17 -17
- 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 +2 -2
- 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 +10 -14
- 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 +5 -7
- package/dist/deploymentsSlice/constants.cjs.map +1 -1
- package/dist/deploymentsSlice/constants.js +2 -2
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.js +3 -3
- package/dist/deploymentsSlice/mocks.cjs.map +1 -1
- package/dist/deploymentsSlice/mocks.js +3 -3
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.js +3 -3
- package/dist/deploymentsSlice/thunks.cjs +29 -33
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +26 -26
- package/dist/devicesSlice/constants.cjs.map +1 -1
- package/dist/devicesSlice/constants.js +2 -2
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.js +3 -3
- package/dist/devicesSlice/mocks.cjs.map +1 -1
- package/dist/devicesSlice/mocks.js +3 -3
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.js +3 -3
- package/dist/devicesSlice/thunks.cjs +29 -33
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.js +26 -26
- package/dist/liststatehook.cjs +1 -1
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.js +3 -3
- package/dist/locationutils.cjs +1 -1
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.js +3 -3
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.js +3 -3
- 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 +3 -4
- 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 +22 -22
- package/dist/onboardingSlice/thunks.cjs +29 -33
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +26 -26
- package/dist/organizationSlice/constants.cjs.map +1 -1
- package/dist/organizationSlice/constants.js +2 -2
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.js +3 -3
- package/dist/organizationSlice/mocks.cjs.map +1 -1
- package/dist/organizationSlice/mocks.js +3 -3
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.js +3 -3
- package/dist/organizationSlice/thunks.cjs +34 -41
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.js +26 -26
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.js +3 -3
- package/dist/releasesSlice/mocks.cjs.map +1 -1
- package/dist/releasesSlice/mocks.js +3 -3
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.js +4 -4
- package/dist/releasesSlice/thunks.cjs +99 -795
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +17 -26
- 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 +15 -19
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js +2 -2
- package/dist/store.cjs +0 -1
- package/dist/store.cjs.map +1 -1
- package/dist/store.js +12 -12
- package/dist/storehooks.cjs +36 -44
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +27 -28
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +36 -43
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +26 -26
- package/dist/useDeploymentDevice.cjs +29 -33
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +26 -26
- package/dist/usersSlice/constants.cjs.map +1 -1
- package/dist/usersSlice/constants.js +2 -2
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.js +3 -3
- package/dist/usersSlice/mocks.cjs.map +1 -1
- package/dist/usersSlice/mocks.js +3 -3
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.js +4 -4
- package/dist/usersSlice/thunks.cjs +29 -33
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +26 -26
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +3 -3
- package/package.json +1 -2
- package/dist/chunk-2S5F4CQS.js.map +0 -1
- package/dist/chunk-CMXRPUOF.js.map +0 -1
- package/dist/chunk-CQT3GJNR.js.map +0 -1
- package/dist/chunk-GDB5IZMC.js.map +0 -1
- package/dist/chunk-GEJDA2ZF.js.map +0 -1
- package/dist/chunk-GX3X2E57.js.map +0 -1
- /package/dist/{chunk-2QIGK5IU.js.map → chunk-4UNLEL5A.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-G2OECV4D.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-ILSHXLJ3.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
package/dist/appSlice/thunks.cjs
CHANGED
|
@@ -757,7 +757,6 @@ var initialState = {
|
|
|
757
757
|
hasManifestsEnabled: false,
|
|
758
758
|
hasMonitor: false,
|
|
759
759
|
hasMCUEnabled: false,
|
|
760
|
-
hasReporting: false,
|
|
761
760
|
isHosted: true,
|
|
762
761
|
isEnterprise: false
|
|
763
762
|
},
|
|
@@ -961,6 +960,7 @@ var getFeatures = (state) => state.app.features;
|
|
|
961
960
|
var getFullVersionInformation = (state) => state.app.versionInformation;
|
|
962
961
|
var getSearchState = (state) => state.app.searchState;
|
|
963
962
|
var getUploads = (state) => state.app.uploadsById;
|
|
963
|
+
var getHostedAnnouncement = (state) => state.app.hostedAnnouncement;
|
|
964
964
|
var getIsUploading = (0, import_toolkit2.createSelector)([getUploads], (uploadsById) => !!Object.keys(uploadsById).length);
|
|
965
965
|
var getSearchedDevices = (0, import_toolkit2.createSelector)([getSearchState], ({ deviceIds }) => deviceIds);
|
|
966
966
|
var getVersionInformation = (0, import_toolkit2.createSelector)(
|
|
@@ -1411,14 +1411,6 @@ var getIsEnterprise = (0, import_toolkit8.createSelector)(
|
|
|
1411
1411
|
[getOrganization, getFeatures],
|
|
1412
1412
|
({ plan = PLANS.os.id }, { isEnterprise, isHosted }) => isEnterprise || isHosted && plan === PLANS.enterprise.id
|
|
1413
1413
|
);
|
|
1414
|
-
var getAttrsEndpoint = (0, import_toolkit8.createSelector)(
|
|
1415
|
-
[getFeatures],
|
|
1416
|
-
({ hasReporting }) => hasReporting ? `${import_constants5.reportingApiUrl}/devices/search/attributes` : `${import_constants5.inventoryApiUrlV2}/filters/attributes`
|
|
1417
|
-
);
|
|
1418
|
-
var getSearchEndpoint = (0, import_toolkit8.createSelector)(
|
|
1419
|
-
[getFeatures],
|
|
1420
|
-
({ hasReporting }) => hasReporting ? `${import_constants5.reportingApiUrl}/devices/search` : `${import_constants5.inventoryApiUrlV2}/filters/search`
|
|
1421
|
-
);
|
|
1422
1414
|
var getUserRoles = (0, import_toolkit8.createSelector)([getCurrentUser, getRolesById, getIsEnterprise], (currentUser, rolesById2, isEnterprise) => {
|
|
1423
1415
|
const isAdmin = currentUser.roles?.length ? currentUser.roles.some((role) => role === import_constants5.rolesByName.admin) : !isEnterprise;
|
|
1424
1416
|
const uiPermissions = isAdmin ? mapUserRolesToUiPermissions([import_constants5.rolesByName.admin], rolesById2) : mapUserRolesToUiPermissions(currentUser.roles || [], rolesById2);
|
|
@@ -1552,9 +1544,9 @@ var getSelectedDeploymentData = (0, import_toolkit8.createSelector)(
|
|
|
1552
1544
|
}
|
|
1553
1545
|
);
|
|
1554
1546
|
var getAvailableIssueOptionsByType = (0, import_toolkit8.createSelector)(
|
|
1555
|
-
[
|
|
1556
|
-
({
|
|
1557
|
-
if (isCategory ||
|
|
1547
|
+
[getTenantCapabilities, getIssueCountsByType],
|
|
1548
|
+
({ hasFullFiltering, hasMonitor }, issueCounts) => Object.values(import_constants5.DEVICE_ISSUE_OPTIONS).reduce((accu, { isCategory, key, needsFullFiltering, needsMonitor, title }) => {
|
|
1549
|
+
if (isCategory || needsFullFiltering && !hasFullFiltering || needsMonitor && !hasMonitor) {
|
|
1558
1550
|
return accu;
|
|
1559
1551
|
}
|
|
1560
1552
|
accu[key] = { count: issueCounts[key].filtered, key, title };
|
|
@@ -2884,7 +2876,7 @@ var saveDeltaDeploymentsConfig = createAppAsyncThunk(
|
|
|
2884
2876
|
);
|
|
2885
2877
|
var generateDeploymentLogAnalysis = createAppAsyncThunk(
|
|
2886
2878
|
`${sliceName2}/generateDeploymentLogAnalysis`,
|
|
2887
|
-
({ deploymentId, deviceId }, { dispatch, rejectWithValue }) => general_api_default.get(`${import_constants5.apiRoot}/v1alpha1/deployments/deployments/${deploymentId}/devices/${deviceId}/log/explain
|
|
2879
|
+
({ deploymentId, deviceId }, { dispatch, rejectWithValue }) => general_api_default.get(`${import_constants5.apiRoot}/v1alpha1/deployments/deployments/${deploymentId}/devices/${deviceId}/log/explain`, { timeout: 60 * TIMEOUTS.oneSecond }).then(({ data: result }) => Promise.resolve(result)).catch((err) => {
|
|
2888
2880
|
if (err.response.status === 429) {
|
|
2889
2881
|
return rejectWithValue(err.response);
|
|
2890
2882
|
}
|
|
@@ -3196,7 +3188,7 @@ var getAllGroupDevices = createAppAsyncThunk(
|
|
|
3196
3188
|
state: getState(),
|
|
3197
3189
|
status: import_constants5.DEVICE_STATES.accepted
|
|
3198
3190
|
});
|
|
3199
|
-
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = defaultPage2, devices = []) => general_api_default.post(
|
|
3191
|
+
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = defaultPage2, devices = []) => general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3200
3192
|
page,
|
|
3201
3193
|
per_page: perPage,
|
|
3202
3194
|
filters: filterTerms,
|
|
@@ -3225,18 +3217,21 @@ var getAllDynamicGroupDevices = createAppAsyncThunk(
|
|
|
3225
3217
|
state: getState(),
|
|
3226
3218
|
status: import_constants5.DEVICE_STATES.accepted
|
|
3227
3219
|
});
|
|
3228
|
-
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = defaultPage2, devices = []) => general_api_default.post(
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3220
|
+
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = defaultPage2, devices = []) => general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3221
|
+
page,
|
|
3222
|
+
per_page: perPage,
|
|
3223
|
+
filters,
|
|
3224
|
+
attributes: [...attributes, { scope: "inventory", attribute }]
|
|
3225
|
+
}).then((res) => {
|
|
3226
|
+
const state = getState();
|
|
3227
|
+
const deviceAccu = reduceReceivedDevices(res.data, devices, state);
|
|
3228
|
+
dispatch(actions3.receivedDevices(deviceAccu.devicesById));
|
|
3229
|
+
const total = Number(res.headers[import_constants5.headerNames.total]);
|
|
3230
|
+
if (total > deviceAccu.ids.length) {
|
|
3231
|
+
return getAllDevices(perPage, page + 1, deviceAccu.ids);
|
|
3238
3232
|
}
|
|
3239
|
-
|
|
3233
|
+
return Promise.resolve(dispatch(actions3.addGroup({ group: { deviceIds: deviceAccu.ids, total }, groupName: group })));
|
|
3234
|
+
});
|
|
3240
3235
|
return getAllDevices();
|
|
3241
3236
|
}
|
|
3242
3237
|
);
|
|
@@ -3364,7 +3359,7 @@ var getDevicesByStatus2 = createAppAsyncThunk(
|
|
|
3364
3359
|
status
|
|
3365
3360
|
});
|
|
3366
3361
|
const attributes = [...defaultAttributes, getIdAttribute(getState()), ...selectedAttributes];
|
|
3367
|
-
return general_api_default.post(
|
|
3362
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3368
3363
|
page,
|
|
3369
3364
|
per_page: perPage,
|
|
3370
3365
|
filters: filterTerms,
|
|
@@ -3394,7 +3389,7 @@ var getAllDevicesByStatus = createAppAsyncThunk(
|
|
|
3394
3389
|
`${sliceName3}/getAllDevicesByStatus`,
|
|
3395
3390
|
({ status, attribute }, { dispatch, getState }) => {
|
|
3396
3391
|
const attributes = [...defaultAttributes, getIdAttribute(getState())];
|
|
3397
|
-
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = 1, devices = []) => general_api_default.post(
|
|
3392
|
+
const getAllDevices = (perPage = MAX_PAGE_SIZE, page = 1, devices = []) => general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3398
3393
|
page,
|
|
3399
3394
|
per_page: perPage,
|
|
3400
3395
|
filters: mapFiltersToTerms([{ key: "status", value: status, operator: import_constants5.DEVICE_FILTERING_OPTIONS.$eq.key, scope: "identity" }]),
|
|
@@ -3422,7 +3417,7 @@ var searchDevices = createAppAsyncThunk(`${sliceName3}/searchDevices`, (passedOp
|
|
|
3422
3417
|
const { columnSelection = [] } = getUserSettings(state);
|
|
3423
3418
|
const selectedAttributes = columnSelection.map((column) => ({ attribute: column.key, scope: column.scope }));
|
|
3424
3419
|
const attributes = (0, import_helpers8.attributeDuplicateFilter)([...defaultAttributes, getIdAttribute(state), ...selectedAttributes], "attribute");
|
|
3425
|
-
return general_api_default.post(
|
|
3420
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3426
3421
|
page,
|
|
3427
3422
|
per_page: 10,
|
|
3428
3423
|
filters: [],
|
|
@@ -3450,7 +3445,7 @@ var attributeReducer = (attributes = []) => attributes.slice(0, ATTRIBUTE_LIST_C
|
|
|
3450
3445
|
);
|
|
3451
3446
|
var getDeviceAttributes = createAppAsyncThunk(
|
|
3452
3447
|
`${sliceName3}/getDeviceAttributes`,
|
|
3453
|
-
(_, { dispatch
|
|
3448
|
+
(_, { dispatch }) => general_api_default.get(`${import_constants5.inventoryApiUrlV2}/filters/attributes`).then(({ data }) => {
|
|
3454
3449
|
const { identity: identityAttributes, inventory: inventoryAttributes, system: systemAttributes, tags: tagAttributes } = attributeReducer(data || []);
|
|
3455
3450
|
return dispatch(actions3.setFilterAttributes({ identityAttributes, inventoryAttributes, systemAttributes, tagAttributes }));
|
|
3456
3451
|
})
|
|
@@ -3750,7 +3745,7 @@ var getSystemDevices = createAppAsyncThunk(`${sliceName3}/getSystemDevices`, (op
|
|
|
3750
3745
|
{ ...emptyFilter, key: "mender_gateway_system_id", value: mender_gateway_system_id, scope: "inventory" }
|
|
3751
3746
|
];
|
|
3752
3747
|
const { attributes, filterTerms } = prepareSearchArguments({ filters, state });
|
|
3753
|
-
return general_api_default.post(
|
|
3748
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3754
3749
|
page,
|
|
3755
3750
|
per_page: perPage,
|
|
3756
3751
|
filters: filterTerms,
|
|
@@ -3777,7 +3772,7 @@ var getGatewayDevices = createAppAsyncThunk(`${sliceName3}/getGatewayDevices`, (
|
|
|
3777
3772
|
{ ...emptyFilter, key: "mender_gateway_system_id", value: mender_gateway_system_id, scope: "inventory" }
|
|
3778
3773
|
];
|
|
3779
3774
|
const { attributes: attributeSelection, filterTerms } = prepareSearchArguments({ filters, state });
|
|
3780
|
-
return general_api_default.post(
|
|
3775
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3781
3776
|
page: 1,
|
|
3782
3777
|
per_page: MAX_PAGE_SIZE,
|
|
3783
3778
|
filters: filterTerms,
|
|
@@ -3829,7 +3824,7 @@ var getIssueCountsByType2 = createAppAsyncThunk(
|
|
|
3829
3824
|
selectedIssues: [type],
|
|
3830
3825
|
status
|
|
3831
3826
|
});
|
|
3832
|
-
return general_api_default.post(
|
|
3827
|
+
return general_api_default.post(`${import_constants5.inventoryApiUrlV2}/filters/search`, {
|
|
3833
3828
|
page: 1,
|
|
3834
3829
|
per_page: 1,
|
|
3835
3830
|
filters: filterTerms,
|
|
@@ -4474,7 +4469,8 @@ var setHideAnnouncement = createAppAsyncThunk(
|
|
|
4474
4469
|
`${sliceName8}/setHideAnnouncement`,
|
|
4475
4470
|
({ shouldHide, userId }, { dispatch, getState }) => {
|
|
4476
4471
|
const currentUserId = userId || getCurrentUser(getState()).id;
|
|
4477
|
-
const
|
|
4472
|
+
const announcement = getHostedAnnouncement(getState());
|
|
4473
|
+
const hash = announcement ? (0, import_md5.default)(announcement) : "";
|
|
4478
4474
|
const announceCookie = cookies3.get(`${currentUserId}${hash}`);
|
|
4479
4475
|
if (shouldHide || hash.length && typeof announceCookie !== "undefined") {
|
|
4480
4476
|
cookies3.set(`${currentUserId}${hash}`, true, { maxAge: 604800 });
|