@northern.tech/store 0.40.0 → 0.41.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/appSlice/selectors.d.cts +1 -1
- package/dist/appSlice/selectors.d.ts +1 -1
- package/dist/appSlice/thunks.d.cts +1 -1
- package/dist/appSlice/thunks.d.ts +1 -1
- package/dist/commonSelectors.d.cts +1 -1
- package/dist/commonSelectors.d.ts +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +1 -1
- package/dist/deploymentsSlice/selectors.d.ts +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +1 -1
- package/dist/deploymentsSlice/thunks.d.ts +1 -1
- package/dist/devicesSlice/selectors.d.cts +1 -1
- package/dist/devicesSlice/selectors.d.ts +1 -1
- package/dist/devicesSlice/thunks.d.cts +3 -3
- package/dist/devicesSlice/thunks.d.ts +3 -3
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +1 -1
- package/dist/monitorSlice/thunks.d.ts +1 -1
- package/dist/monitorSlice/thunks.js.map +1 -1
- package/dist/onboardingSlice/selectors.d.cts +1 -1
- package/dist/onboardingSlice/selectors.d.ts +1 -1
- package/dist/onboardingSlice/thunks.d.cts +1 -1
- package/dist/onboardingSlice/thunks.d.ts +1 -1
- package/dist/organizationSlice/selectors.d.cts +1 -1
- package/dist/organizationSlice/selectors.d.ts +1 -1
- package/dist/organizationSlice/thunks.d.cts +1 -1
- package/dist/organizationSlice/thunks.d.ts +1 -1
- package/dist/releasesSlice/selectors.d.cts +1 -1
- package/dist/releasesSlice/selectors.d.ts +1 -1
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +1 -1
- package/dist/releasesSlice/thunks.d.ts +1 -1
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/{store-xV2zaXAc.d.cts → store-B5-0USDz.d.cts} +3 -3
- package/dist/{store-BzrMxxAO.d.ts → store-CmiiLjxd.d.ts} +3 -3
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/storehooks.d.cts +1 -1
- package/dist/storehooks.d.ts +1 -1
- package/dist/thunks.cjs +11 -0
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +2 -2
- package/dist/thunks.d.ts +2 -2
- package/dist/thunks.js +8 -1
- package/dist/thunks.js.map +1 -1
- package/dist/usersSlice/selectors.d.cts +1 -1
- package/dist/usersSlice/selectors.d.ts +1 -1
- package/dist/usersSlice/thunks.cjs +4 -0
- package/dist/usersSlice/thunks.d.cts +43 -3
- package/dist/usersSlice/thunks.d.ts +43 -3
- package/dist/usersSlice/thunks.js +2 -2
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { s as DeviceSliceType } from "../index-Doc_1P_Y.cjs";
|
|
|
6
6
|
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-C8QadAm7.cjs";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-5Q-iI4EB.cjs";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-Bj3OArhr.cjs";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-B5-0USDz.cjs";
|
|
10
10
|
|
|
11
11
|
//#region src/appSlice/selectors.d.ts
|
|
12
12
|
declare const getDocsVersion: (state: RootState) => string;
|
|
@@ -6,7 +6,7 @@ import { s as DeviceSliceType } from "../index-BqJuhvO_.js";
|
|
|
6
6
|
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-BLvjQfGj.js";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-ByfjrTdH.js";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-BBsUj1a8.js";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-CmiiLjxd.js";
|
|
10
10
|
|
|
11
11
|
//#region src/appSlice/selectors.d.ts
|
|
12
12
|
declare const getDocsVersion: (state: RootState) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as SearchState } from "../index-C8QadAm7.cjs";
|
|
2
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
2
|
+
import { r as RootState, t as AppDispatch } from "../store-B5-0USDz.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/appSlice/thunks.d.ts
|
|
5
5
|
declare const setFirstLoginAfterSignup: import("@reduxjs/toolkit").AsyncThunk<void, boolean, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as SearchState } from "../index-BLvjQfGj.js";
|
|
2
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
2
|
+
import { r as RootState, t as AppDispatch } from "../store-CmiiLjxd.js";
|
|
3
3
|
|
|
4
4
|
//#region src/appSlice/thunks.d.ts
|
|
5
5
|
declare const setFirstLoginAfterSignup: import("@reduxjs/toolkit").AsyncThunk<void, boolean, {
|
|
@@ -9,7 +9,7 @@ import { c as InventoryAttributes, r as DeviceGroup, s as DeviceSliceType, t as
|
|
|
9
9
|
import { t as AppSliceType } from "./index-C8QadAm7.cjs";
|
|
10
10
|
import { t as MonitorSliceType } from "./index-5Q-iI4EB.cjs";
|
|
11
11
|
import { t as OrganizationSliceType } from "./index-Bj3OArhr.cjs";
|
|
12
|
-
import { r as RootState } from "./store-
|
|
12
|
+
import { r as RootState } from "./store-B5-0USDz.cjs";
|
|
13
13
|
import { AuditLog } from "@northern.tech/types/types.gen";
|
|
14
14
|
|
|
15
15
|
//#region src/commonSelectors.d.ts
|
|
@@ -9,7 +9,7 @@ import { c as InventoryAttributes, r as DeviceGroup, s as DeviceSliceType, t as
|
|
|
9
9
|
import { t as AppSliceType } from "./index-BLvjQfGj.js";
|
|
10
10
|
import { t as MonitorSliceType } from "./index-ByfjrTdH.js";
|
|
11
11
|
import { t as OrganizationSliceType } from "./index-BBsUj1a8.js";
|
|
12
|
-
import { r as RootState } from "./store-
|
|
12
|
+
import { r as RootState } from "./store-CmiiLjxd.js";
|
|
13
13
|
import { AuditLog } from "@northern.tech/types/types.gen";
|
|
14
14
|
|
|
15
15
|
//#region src/commonSelectors.d.ts
|
|
@@ -6,7 +6,7 @@ import { s as DeviceSliceType } from "../index-Doc_1P_Y.cjs";
|
|
|
6
6
|
import { t as AppSliceType } from "../index-C8QadAm7.cjs";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-5Q-iI4EB.cjs";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-Bj3OArhr.cjs";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-B5-0USDz.cjs";
|
|
10
10
|
|
|
11
11
|
//#region src/deploymentsSlice/selectors.d.ts
|
|
12
12
|
declare const getDeploymentsById: (state: RootState) => Record<string, Deployment>;
|
|
@@ -6,7 +6,7 @@ import { s as DeviceSliceType } from "../index-BqJuhvO_.js";
|
|
|
6
6
|
import { t as AppSliceType } from "../index-BLvjQfGj.js";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-ByfjrTdH.js";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-BBsUj1a8.js";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-CmiiLjxd.js";
|
|
10
10
|
|
|
11
11
|
//#region src/deploymentsSlice/selectors.d.ts
|
|
12
12
|
declare const getDeploymentsById: (state: RootState) => Record<string, Deployment>;
|
|
@@ -2,7 +2,7 @@ import { T as SortOptions } from "../constants-_p6w8uEp.cjs";
|
|
|
2
2
|
import { c as SelectionListState, i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "../index-EPmsL6Lb.cjs";
|
|
3
3
|
import { t as Device$1 } from "../index-Doc_1P_Y.cjs";
|
|
4
4
|
import { i as SnackbarContent } from "../index-C8QadAm7.cjs";
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-B5-0USDz.cjs";
|
|
6
6
|
import { DeploymentV1, DeploymentV2, NewDeploymentForGroup, NewDeploymentTypeManagement, NewDeploymentV2TypeManagement } from "@northern.tech/types/MenderTypes";
|
|
7
7
|
|
|
8
8
|
//#region src/deploymentsSlice/thunks.d.ts
|
|
@@ -2,7 +2,7 @@ import { T as SortOptions } from "../constants-OcdoVk6f.js";
|
|
|
2
2
|
import { c as SelectionListState, i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "../index-Bb4yvvgG.js";
|
|
3
3
|
import { t as Device$1 } from "../index-BqJuhvO_.js";
|
|
4
4
|
import { i as SnackbarContent } from "../index-BLvjQfGj.js";
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-CmiiLjxd.js";
|
|
6
6
|
import { DeploymentV1, DeploymentV2, NewDeploymentForGroup, NewDeploymentTypeManagement, NewDeploymentV2TypeManagement } from "@northern.tech/types/MenderTypes";
|
|
7
7
|
|
|
8
8
|
//#region src/deploymentsSlice/thunks.d.ts
|
|
@@ -6,7 +6,7 @@ import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, s as DeviceS
|
|
|
6
6
|
import { t as AppSliceType } from "../index-C8QadAm7.cjs";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-5Q-iI4EB.cjs";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-Bj3OArhr.cjs";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-B5-0USDz.cjs";
|
|
10
10
|
|
|
11
11
|
//#region src/devicesSlice/selectors.d.ts
|
|
12
12
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
@@ -6,7 +6,7 @@ import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, s as DeviceS
|
|
|
6
6
|
import { t as AppSliceType } from "../index-BLvjQfGj.js";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-ByfjrTdH.js";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-BBsUj1a8.js";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-CmiiLjxd.js";
|
|
10
10
|
|
|
11
11
|
//#region src/devicesSlice/selectors.d.ts
|
|
12
12
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as DeviceIssueOptionKey, mt as DeviceAuthState } from "../constants-_p6w8uEp.cjs";
|
|
2
2
|
import { a as DeviceListState, n as DeviceFilter, o as DeviceSelectedAttribute, r as DeviceGroup, t as Device$1 } from "../index-Doc_1P_Y.cjs";
|
|
3
3
|
import { i as SnackbarContent, n as SearchState } from "../index-C8QadAm7.cjs";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
import { ConnectionState, Device, DeviceConfiguration,
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-B5-0USDz.cjs";
|
|
5
|
+
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceTierLimits, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
|
|
7
7
|
//#region src/devicesSlice/thunks.d.ts
|
|
8
8
|
declare const getGroups: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -228,7 +228,7 @@ declare const selectGroup: import("@reduxjs/toolkit").AsyncThunk<unknown, {
|
|
|
228
228
|
fulfilledMeta?: unknown;
|
|
229
229
|
rejectedMeta?: unknown;
|
|
230
230
|
}>;
|
|
231
|
-
type ReceivedDevice = Device &
|
|
231
|
+
type ReceivedDevice = Device & DeviceInventoryResponse & Omit<DeviceWithImage, 'status'>;
|
|
232
232
|
type getGroupDevicesPayload = {
|
|
233
233
|
group: string;
|
|
234
234
|
page?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as DeviceIssueOptionKey, mt as DeviceAuthState } from "../constants-OcdoVk6f.js";
|
|
2
2
|
import { a as DeviceListState, n as DeviceFilter, o as DeviceSelectedAttribute, r as DeviceGroup, t as Device$1 } from "../index-BqJuhvO_.js";
|
|
3
3
|
import { i as SnackbarContent, n as SearchState } from "../index-BLvjQfGj.js";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
import { ConnectionState, Device, DeviceConfiguration,
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-CmiiLjxd.js";
|
|
5
|
+
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceTierLimits, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
|
|
7
7
|
//#region src/devicesSlice/thunks.d.ts
|
|
8
8
|
declare const getGroups: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -228,7 +228,7 @@ declare const selectGroup: import("@reduxjs/toolkit").AsyncThunk<unknown, {
|
|
|
228
228
|
fulfilledMeta?: unknown;
|
|
229
229
|
rejectedMeta?: unknown;
|
|
230
230
|
}>;
|
|
231
|
-
type ReceivedDevice = Device &
|
|
231
|
+
type ReceivedDevice = Device & DeviceInventoryResponse & Omit<DeviceWithImage, 'status'>;
|
|
232
232
|
type getGroupDevicesPayload = {
|
|
233
233
|
group: string;
|
|
234
234
|
page?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thunks.cjs","names":["DEVICE_LIST_DEFAULTS","createAppAsyncThunk","sliceName","Api","monitorApiUrlv1","commonErrorHandler","actions","headerNames","getDeviceFilters","convertDeviceListStateToFilters","inventoryApiUrlV2","commonErrorFallback","storeActions","alertChannels","TIMEOUTS"],"sources":["../../src/monitorSlice/thunks.ts"],"sourcesContent":["// Copyright 2021 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceFilter } from '@/src/devicesSlice';\nimport type { Alert,
|
|
1
|
+
{"version":3,"file":"thunks.cjs","names":["DEVICE_LIST_DEFAULTS","createAppAsyncThunk","sliceName","Api","monitorApiUrlv1","commonErrorHandler","actions","headerNames","getDeviceFilters","convertDeviceListStateToFilters","inventoryApiUrlV2","commonErrorFallback","storeActions","alertChannels","TIMEOUTS"],"sources":["../../src/monitorSlice/thunks.ts"],"sourcesContent":["// Copyright 2021 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceFilter } from '@/src/devicesSlice';\nimport type { Alert, DeviceInventoryResponse, MonitorConfiguration } from '@northern.tech/types/MenderTypes';\n\nimport { actions, sliceName } from '.';\nimport storeActions from '../actions';\nimport Api from '../api/general-api';\nimport type { AlertChannelKey, DeviceIssueOptionKey } from '../constants';\nimport { DEVICE_LIST_DEFAULTS, TIMEOUTS, alertChannels, headerNames, inventoryApiUrlV2, monitorApiUrlv1 } from '../constants';\nimport { getDeviceFilters } from '../selectors';\nimport { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from '../store';\nimport { convertDeviceListStateToFilters } from '../utils';\n\nconst { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;\n\nconst cutoffLength = 75;\nconst ellipsis = '...';\nconst longTextTrimmer = (text: string): string =>\n text.length >= cutoffLength + ellipsis.length ? `${text.substring(0, cutoffLength + ellipsis.length)}${ellipsis}` : text;\n\nconst sanitizeDeviceAlerts = (alerts: Alert[]) => alerts.map(alert => ({ ...alert, fullName: alert.name, name: longTextTrimmer(alert.name || '') }));\n\ninterface GetDeviceAlertsPayload {\n config?: { issuedAfter?: string; issuedBefore?: string; page?: number; perPage?: number; sortAscending?: boolean };\n id: string;\n}\nexport const getDeviceAlerts = createAppAsyncThunk(`${sliceName}/getDeviceAlerts`, ({ id, config = {} }: GetDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = defaultPerPage, issuedBefore, issuedAfter, sortAscending = false } = config;\n const issued_after = issuedAfter ? `&issued_after=${issuedAfter}` : '';\n const issued_before = issuedBefore ? `&issued_before=${issuedBefore}` : '';\n return Api.get<Alert[]>(\n `${monitorApiUrlv1}/devices/${id}/alerts?page=${page}&per_page=${perPage}${issued_after}${issued_before}&sort_ascending=${sortAscending}`\n )\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res =>\n Promise.all([\n dispatch(actions.receiveDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) })),\n dispatch(actions.setAlertListState({ total: Number(res.headers[headerNames.total]) }))\n ])\n );\n});\n\ninterface GetLatestDeviceAlertsPayload {\n config?: { page?: number; perPage?: number };\n id: string;\n}\nexport const getLatestDeviceAlerts = createAppAsyncThunk(\n `${sliceName}/getLatestDeviceAlerts`,\n ({ id, config = {} }: GetLatestDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = 10 } = config;\n return Api.get<Alert[]>(`${monitorApiUrlv1}/devices/${id}/alerts/latest?page=${page}&per_page=${perPage}`)\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res => Promise.resolve(dispatch(actions.receiveLatestDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) }))));\n }\n);\n\ninterface GetIssueCountsByTypePayload {\n options?: Partial<{ filters: DeviceFilter[]; group: string; status: string; type: string }>;\n type: DeviceIssueOptionKey;\n}\nexport const getIssueCountsByType = createAppAsyncThunk(\n `${sliceName}/getIssueCountsByType`,\n async ({ type, options = {} }: GetIssueCountsByTypePayload, { dispatch, getState }) => {\n const state = getState();\n const { filters = getDeviceFilters(state), group, status, ...remainder } = options;\n const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters({\n ...remainder,\n filters,\n group,\n offlineThreshold: state.app.offlineThreshold,\n selectedIssues: [type],\n status\n });\n const res = await Api.post<DeviceInventoryResponse[]>(`${inventoryApiUrlV2}/filters/search`, {\n page: 1,\n per_page: 1,\n filters: filterTerms,\n attributes: [{ scope: 'identity', attribute: 'status' }]\n }).catch(err => commonErrorHandler(err, `Retrieving issue counts failed:`, dispatch, commonErrorFallback));\n const total = nonMonitorFilters.length ? state.monitor.issueCounts.byType[type].total : Number(res.headers[headerNames.total]);\n const filtered = nonMonitorFilters.length ? Number(res.headers[headerNames.total]) : total;\n if (total === state.monitor.issueCounts.byType[type].total && filtered === state.monitor.issueCounts.byType[type].filtered) {\n return;\n }\n return dispatch(actions.receiveDeviceIssueCounts({ counts: { filtered, total }, issueType: type }));\n }\n);\n\nexport const getDeviceMonitorConfig = createAppAsyncThunk(`${sliceName}/getDeviceMonitorConfig`, (id: string, { dispatch }) =>\n Api.get<MonitorConfiguration[]>(`${monitorApiUrlv1}/devices/${id}/config`)\n .catch(err => commonErrorHandler(err, `Retrieving device monitor config for device ${id} failed:`, dispatch))\n .then(({ data }) => Promise.all([dispatch(storeActions.receivedDevice({ id, monitors: data }), Promise.resolve(data))]))\n);\n\ninterface ChangeNotificationSettingPayload {\n channel?: AlertChannelKey;\n enabled: boolean;\n}\nexport const changeNotificationSetting = createAppAsyncThunk(\n `${sliceName}/changeNotificationSetting`,\n ({ enabled, channel = alertChannels.email as AlertChannelKey }: ChangeNotificationSettingPayload, { dispatch }) =>\n Api.put(`${monitorApiUrlv1}/settings/global/channel/alerts/${channel}/status`, { enabled })\n .catch(err => commonErrorHandler(err, `${enabled ? 'En' : 'Dis'}abling ${channel} alerts failed:`, dispatch))\n .then(() =>\n Promise.all([\n dispatch(actions.changeAlertChannel({ channel, enabled })),\n dispatch(\n storeActions.setSnackbar({ message: `Successfully ${enabled ? 'en' : 'dis'}abled ${channel} alerts`, autoHideDuration: TIMEOUTS.fiveSeconds })\n )\n ])\n )\n);\n"],"mappings":";;;;;;;;;;AAyBA,MAAM,EAAE,MAAM,aAAa,SAAS,mBAAmBA,+BAAAA;AAGvD,MAAM,WAAW;AACjB,MAAM,mBAAmB,SACvB,KAAK,UAAU,KAAiC,GAAG,KAAK,UAAU,GAAG,EAA8B,IAAI,aAAa;AAEtH,MAAM,wBAAwB,WAAoB,OAAO,KAAI,WAAU;CAAE,GAAG;CAAO,UAAU,MAAM;CAAM,MAAM,gBAAgB,MAAM,QAAQ,EAAE;AAAE,EAAE;AAMnJ,MAAa,kBAAkBC,cAAAA,oBAAoB,GAAGC,2BAAAA,UAAU,oBAAoB,EAAE,IAAI,SAAS,CAAC,KAA6B,EAAE,eAAe;CAChJ,MAAM,EAAE,OAAO,aAAa,UAAU,gBAAgB,cAAc,aAAa,gBAAgB,UAAU;CAC3G,MAAM,eAAe,cAAc,iBAAiB,gBAAgB;CACpE,MAAM,gBAAgB,eAAe,kBAAkB,iBAAiB;CACxE,OAAOC,wBAAAA,QAAI,IACT,GAAGC,+BAAAA,gBAAgB,WAAW,GAAG,eAAe,KAAK,YAAY,UAAU,eAAe,cAAc,kBAAkB,eAC5H,CAAC,CACE,OAAM,QAAOC,cAAAA,mBAAmB,KAAK,uCAAuC,GAAG,WAAW,QAAQ,CAAC,CAAC,CACpG,MAAK,QACJ,QAAQ,IAA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kBAAkB,QAAQ,CAAC,CAAC,CAC7G,WACC,QAAQ,IAAI,CACV,SAASC,2BAAAA,QAAQ,mBAAmB;CAAE;CAAS;AAAQ,CAAC,CAAC,GACzD,SACEM,gBAAa,YAAY;CAAE,SAAS,gBAAgB,UAAU,OAAO,MAAM,QAAQ,QAAQ;CAAU,kBAAkBE,kBAAAA,SAAS;AAAY,CAAC,CAC/I,CACF,CAAC,CACH,CACN"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "../constants-_p6w8uEp.cjs";
|
|
2
2
|
import { n as DeviceFilter, t as Device } from "../index-Doc_1P_Y.cjs";
|
|
3
3
|
import { i as SnackbarContent } from "../index-C8QadAm7.cjs";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-B5-0USDz.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/monitorSlice/thunks.d.ts
|
|
7
7
|
interface GetDeviceAlertsPayload {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "../constants-OcdoVk6f.js";
|
|
2
2
|
import { n as DeviceFilter, t as Device } from "../index-BqJuhvO_.js";
|
|
3
3
|
import { i as SnackbarContent } from "../index-BLvjQfGj.js";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-CmiiLjxd.js";
|
|
5
5
|
|
|
6
6
|
//#region src/monitorSlice/thunks.d.ts
|
|
7
7
|
interface GetDeviceAlertsPayload {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thunks.js","names":["storeActions"],"sources":["../../src/monitorSlice/thunks.ts"],"sourcesContent":["// Copyright 2021 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceFilter } from '@/src/devicesSlice';\nimport type { Alert,
|
|
1
|
+
{"version":3,"file":"thunks.js","names":["storeActions"],"sources":["../../src/monitorSlice/thunks.ts"],"sourcesContent":["// Copyright 2021 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceFilter } from '@/src/devicesSlice';\nimport type { Alert, DeviceInventoryResponse, MonitorConfiguration } from '@northern.tech/types/MenderTypes';\n\nimport { actions, sliceName } from '.';\nimport storeActions from '../actions';\nimport Api from '../api/general-api';\nimport type { AlertChannelKey, DeviceIssueOptionKey } from '../constants';\nimport { DEVICE_LIST_DEFAULTS, TIMEOUTS, alertChannels, headerNames, inventoryApiUrlV2, monitorApiUrlv1 } from '../constants';\nimport { getDeviceFilters } from '../selectors';\nimport { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from '../store';\nimport { convertDeviceListStateToFilters } from '../utils';\n\nconst { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;\n\nconst cutoffLength = 75;\nconst ellipsis = '...';\nconst longTextTrimmer = (text: string): string =>\n text.length >= cutoffLength + ellipsis.length ? `${text.substring(0, cutoffLength + ellipsis.length)}${ellipsis}` : text;\n\nconst sanitizeDeviceAlerts = (alerts: Alert[]) => alerts.map(alert => ({ ...alert, fullName: alert.name, name: longTextTrimmer(alert.name || '') }));\n\ninterface GetDeviceAlertsPayload {\n config?: { issuedAfter?: string; issuedBefore?: string; page?: number; perPage?: number; sortAscending?: boolean };\n id: string;\n}\nexport const getDeviceAlerts = createAppAsyncThunk(`${sliceName}/getDeviceAlerts`, ({ id, config = {} }: GetDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = defaultPerPage, issuedBefore, issuedAfter, sortAscending = false } = config;\n const issued_after = issuedAfter ? `&issued_after=${issuedAfter}` : '';\n const issued_before = issuedBefore ? `&issued_before=${issuedBefore}` : '';\n return Api.get<Alert[]>(\n `${monitorApiUrlv1}/devices/${id}/alerts?page=${page}&per_page=${perPage}${issued_after}${issued_before}&sort_ascending=${sortAscending}`\n )\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res =>\n Promise.all([\n dispatch(actions.receiveDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) })),\n dispatch(actions.setAlertListState({ total: Number(res.headers[headerNames.total]) }))\n ])\n );\n});\n\ninterface GetLatestDeviceAlertsPayload {\n config?: { page?: number; perPage?: number };\n id: string;\n}\nexport const getLatestDeviceAlerts = createAppAsyncThunk(\n `${sliceName}/getLatestDeviceAlerts`,\n ({ id, config = {} }: GetLatestDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = 10 } = config;\n return Api.get<Alert[]>(`${monitorApiUrlv1}/devices/${id}/alerts/latest?page=${page}&per_page=${perPage}`)\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res => Promise.resolve(dispatch(actions.receiveLatestDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) }))));\n }\n);\n\ninterface GetIssueCountsByTypePayload {\n options?: Partial<{ filters: DeviceFilter[]; group: string; status: string; type: string }>;\n type: DeviceIssueOptionKey;\n}\nexport const getIssueCountsByType = createAppAsyncThunk(\n `${sliceName}/getIssueCountsByType`,\n async ({ type, options = {} }: GetIssueCountsByTypePayload, { dispatch, getState }) => {\n const state = getState();\n const { filters = getDeviceFilters(state), group, status, ...remainder } = options;\n const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters({\n ...remainder,\n filters,\n group,\n offlineThreshold: state.app.offlineThreshold,\n selectedIssues: [type],\n status\n });\n const res = await Api.post<DeviceInventoryResponse[]>(`${inventoryApiUrlV2}/filters/search`, {\n page: 1,\n per_page: 1,\n filters: filterTerms,\n attributes: [{ scope: 'identity', attribute: 'status' }]\n }).catch(err => commonErrorHandler(err, `Retrieving issue counts failed:`, dispatch, commonErrorFallback));\n const total = nonMonitorFilters.length ? state.monitor.issueCounts.byType[type].total : Number(res.headers[headerNames.total]);\n const filtered = nonMonitorFilters.length ? Number(res.headers[headerNames.total]) : total;\n if (total === state.monitor.issueCounts.byType[type].total && filtered === state.monitor.issueCounts.byType[type].filtered) {\n return;\n }\n return dispatch(actions.receiveDeviceIssueCounts({ counts: { filtered, total }, issueType: type }));\n }\n);\n\nexport const getDeviceMonitorConfig = createAppAsyncThunk(`${sliceName}/getDeviceMonitorConfig`, (id: string, { dispatch }) =>\n Api.get<MonitorConfiguration[]>(`${monitorApiUrlv1}/devices/${id}/config`)\n .catch(err => commonErrorHandler(err, `Retrieving device monitor config for device ${id} failed:`, dispatch))\n .then(({ data }) => Promise.all([dispatch(storeActions.receivedDevice({ id, monitors: data }), Promise.resolve(data))]))\n);\n\ninterface ChangeNotificationSettingPayload {\n channel?: AlertChannelKey;\n enabled: boolean;\n}\nexport const changeNotificationSetting = createAppAsyncThunk(\n `${sliceName}/changeNotificationSetting`,\n ({ enabled, channel = alertChannels.email as AlertChannelKey }: ChangeNotificationSettingPayload, { dispatch }) =>\n Api.put(`${monitorApiUrlv1}/settings/global/channel/alerts/${channel}/status`, { enabled })\n .catch(err => commonErrorHandler(err, `${enabled ? 'En' : 'Dis'}abling ${channel} alerts failed:`, dispatch))\n .then(() =>\n Promise.all([\n dispatch(actions.changeAlertChannel({ channel, enabled })),\n d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,CAAC;AACpG,CACF;AAEA,MAAa,yBAAyB,oBAAoB,GAAG,UAAU,2BAA2B,IAAY,EAAE,eAC9G,IAAI,IAA4B,GAAG,gBAAgB,WAAW,GAAG,QAAQ,CAAC,CACvE,OAAM,QAAO,mBAAmB,KAAK,+CAA+C,GAAG,WAAW,QAAQ,CAAC,CAAC,CAC5G,MAAM,EAAE,WAAW,QAAQ,IAAI,CAAC,SAASA,gBAAa,eAAe;CAAE;CAAI,UAAU;AAAK,CAAC,GAAG,QAAQ,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC,CAC3H;AAMA,MAAa,4BAA4B,oBACvC,GAAG,UAAU,8BACZ,EAAE,SAAS,UAAU,cAAc,SAA8D,EAAE,eAClG,IAAI,IAAI,GAAG,gBAAgB,kCAAkC,QAAQ,UAAU,EAAE,QAAQ,CAAC,CAAC,CACxF,OAAM,QAAO,mBAAmB,KAAK,GAAG,UAAU,OAAO,MAAM,UAAU,QAAQ,kBAAkB,QAAQ,CAAC,CAAC,CAC7G,WACC,QAAQ,IAAI,CACV,SAAS,QAAQ,mBAAmB;CAAE;CAAS;AAAQ,CAAC,CAAC,GACzD,SACEA,gBAAa,YAAY;CAAE,SAAS,gBAAgB,UAAU,OAAO,MAAM,QAAQ,QAAQ;CAAU,kBAAkB,SAAS;AAAY,CAAC,CAC/I,CACF,CAAC,CACH,CACN"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as OnboardingSliceType } from "../index-DBUt8xVc.cjs";
|
|
2
|
-
import { r as RootState } from "../store-
|
|
2
|
+
import { r as RootState } from "../store-B5-0USDz.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/onboardingSlice/selectors.d.ts
|
|
5
5
|
declare const getOnboarding: (state: RootState) => OnboardingSliceType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as OnboardingSliceType } from "../index-DBUt8xVc.js";
|
|
2
|
-
import { r as RootState } from "../store-
|
|
2
|
+
import { r as RootState } from "../store-CmiiLjxd.js";
|
|
3
3
|
|
|
4
4
|
//#region src/onboardingSlice/selectors.d.ts
|
|
5
5
|
declare const getOnboarding: (state: RootState) => OnboardingSliceType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.cjs";
|
|
2
2
|
import { a as UserSettings } from "../index-CSk4ENmk.cjs";
|
|
3
3
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-DBUt8xVc.cjs";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-B5-0USDz.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/onboardingSlice/thunks.d.ts
|
|
7
7
|
declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.js";
|
|
2
2
|
import { a as UserSettings } from "../index-Cf81vLTi.js";
|
|
3
3
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-DBUt8xVc.js";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-CmiiLjxd.js";
|
|
5
5
|
|
|
6
6
|
//#region src/onboardingSlice/thunks.d.ts
|
|
7
7
|
declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
@@ -7,7 +7,7 @@ import { s as DeviceSliceType } from "../index-Doc_1P_Y.cjs";
|
|
|
7
7
|
import { t as AppSliceType } from "../index-C8QadAm7.cjs";
|
|
8
8
|
import { t as MonitorSliceType } from "../index-5Q-iI4EB.cjs";
|
|
9
9
|
import { t as OrganizationSliceType } from "../index-Bj3OArhr.cjs";
|
|
10
|
-
import { r as RootState } from "../store-
|
|
10
|
+
import { r as RootState } from "../store-B5-0USDz.cjs";
|
|
11
11
|
|
|
12
12
|
//#region src/organizationSlice/selectors.d.ts
|
|
13
13
|
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
@@ -7,7 +7,7 @@ import { s as DeviceSliceType } from "../index-BqJuhvO_.js";
|
|
|
7
7
|
import { t as AppSliceType } from "../index-BLvjQfGj.js";
|
|
8
8
|
import { t as MonitorSliceType } from "../index-ByfjrTdH.js";
|
|
9
9
|
import { t as OrganizationSliceType } from "../index-BBsUj1a8.js";
|
|
10
|
-
import { r as RootState } from "../store-
|
|
10
|
+
import { r as RootState } from "../store-CmiiLjxd.js";
|
|
11
11
|
|
|
12
12
|
//#region src/organizationSlice/selectors.d.ts
|
|
13
13
|
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
@@ -3,7 +3,7 @@ import { T as SortOptions, g as PaginationOptions } from "../constants-_p6w8uEp.
|
|
|
3
3
|
import { n as ContentType } from "../constants-OZiiFKiA.cjs";
|
|
4
4
|
import { d as TenantList, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-B33vKVhi.cjs";
|
|
5
5
|
import { i as SnackbarContent } from "../index-C8QadAm7.cjs";
|
|
6
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
6
|
+
import { r as RootState, t as AppDispatch } from "../store-B5-0USDz.cjs";
|
|
7
7
|
import { BillingProfile, Integration, NewTenantTypeManagement, PreviewRequest, Product, ProductInfo, Subscription, SupportRequest, UpdateChildTenant } from "@northern.tech/types/MenderTypes";
|
|
8
8
|
|
|
9
9
|
//#region src/organizationSlice/thunks.d.ts
|
|
@@ -3,7 +3,7 @@ import { T as SortOptions, g as PaginationOptions } from "../constants-OcdoVk6f.
|
|
|
3
3
|
import { n as ContentType } from "../constants-OZiiFKiA.js";
|
|
4
4
|
import { d as TenantList, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-BjtmX60L.js";
|
|
5
5
|
import { i as SnackbarContent } from "../index-BLvjQfGj.js";
|
|
6
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
6
|
+
import { r as RootState, t as AppDispatch } from "../store-CmiiLjxd.js";
|
|
7
7
|
import { BillingProfile, Integration, NewTenantTypeManagement, PreviewRequest, Product, ProductInfo, Subscription, SupportRequest, UpdateChildTenant } from "@northern.tech/types/MenderTypes";
|
|
8
8
|
|
|
9
9
|
//#region src/organizationSlice/thunks.d.ts
|
|
@@ -6,7 +6,7 @@ import { s as DeviceSliceType } from "../index-Doc_1P_Y.cjs";
|
|
|
6
6
|
import { t as AppSliceType } from "../index-C8QadAm7.cjs";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-5Q-iI4EB.cjs";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-Bj3OArhr.cjs";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-B5-0USDz.cjs";
|
|
10
10
|
import { Manifest, ReleaseV2, Software } from "@northern.tech/types/MenderTypes";
|
|
11
11
|
|
|
12
12
|
//#region src/releasesSlice/selectors.d.ts
|
|
@@ -6,7 +6,7 @@ import { s as DeviceSliceType } from "../index-BqJuhvO_.js";
|
|
|
6
6
|
import { t as AppSliceType } from "../index-BLvjQfGj.js";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-ByfjrTdH.js";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-BBsUj1a8.js";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-CmiiLjxd.js";
|
|
10
10
|
import { Manifest, ReleaseV2, Software } from "@northern.tech/types/MenderTypes";
|
|
11
11
|
|
|
12
12
|
//#region src/releasesSlice/selectors.d.ts
|