@northern.tech/store 0.19.1 → 0.20.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 +3 -0
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.d.cts +2 -1
- package/dist/actions.d.ts +2 -1
- package/dist/actions.js +6 -6
- package/dist/api/general-api.js +2 -2
- package/dist/api/users-api.js +2 -2
- package/dist/appSlice/constants.cjs +11 -49
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +1 -16
- package/dist/appSlice/constants.d.ts +1 -16
- package/dist/appSlice/constants.js +1 -1
- package/dist/appSlice/index.js +2 -2
- package/dist/appSlice/mocks.js +2 -2
- package/dist/appSlice/thunks.cjs +30 -60
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +17 -17
- package/dist/auth.js +2 -2
- package/dist/{chunk-QFYYTAYD.js → chunk-3JBVI4UH.js} +9 -9
- package/dist/{chunk-QL6FN2JC.js → chunk-4ZYLGBJU.js} +2 -2
- package/dist/{chunk-U5TPV5X5.js → chunk-7WIISD2N.js} +17 -14
- package/dist/{chunk-U5TPV5X5.js.map → chunk-7WIISD2N.js.map} +1 -1
- package/dist/{chunk-FUGCLQ5L.js → chunk-AY7E7VA6.js} +102 -28
- package/dist/chunk-AY7E7VA6.js.map +1 -0
- package/dist/{chunk-EL672W25.js → chunk-DBBE6D36.js} +12 -50
- package/dist/chunk-DBBE6D36.js.map +1 -0
- package/dist/{chunk-GBXG2XBY.js → chunk-E657OJL4.js} +6 -6
- package/dist/{chunk-MZ5NRW3K.js → chunk-FXKMYYK5.js} +17 -17
- package/dist/{chunk-KJHHSYGP.js → chunk-P3N2J3QT.js} +10 -10
- package/dist/{chunk-GEQ2QQEE.js → chunk-PL6RIFD5.js} +2 -2
- package/dist/{chunk-VCEFZTWS.js → chunk-TIL2S3JA.js} +4 -1
- package/dist/chunk-TIL2S3JA.js.map +1 -0
- package/dist/{chunk-C3EMLDPU.js → chunk-V6BWOIRC.js} +6 -6
- package/dist/{chunk-O7DR57RN.js → chunk-ZGRY42BZ.js} +9 -12
- package/dist/{chunk-O7DR57RN.js.map → chunk-ZGRY42BZ.js.map} +1 -1
- package/dist/{chunk-3NOV7X4M.js → chunk-ZZQJWNQT.js} +3 -1
- package/dist/chunk-ZZQJWNQT.js.map +1 -0
- package/dist/commonConstants.js +2 -2
- package/dist/commonSelectors.cjs +19 -60
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.js +9 -9
- package/dist/constants.cjs +11 -49
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/deploymentsSlice/constants.js +2 -2
- package/dist/deploymentsSlice/index.js +2 -2
- package/dist/deploymentsSlice/mocks.js +2 -2
- package/dist/deploymentsSlice/selectors.js +2 -2
- package/dist/deploymentsSlice/thunks.cjs +30 -60
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +17 -17
- package/dist/devicesSlice/constants.js +2 -2
- package/dist/devicesSlice/index.js +2 -2
- package/dist/devicesSlice/mocks.js +2 -2
- package/dist/devicesSlice/selectors.cjs +8 -11
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.js +3 -3
- package/dist/devicesSlice/thunks.cjs +32 -60
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +41 -3
- package/dist/devicesSlice/thunks.d.ts +41 -3
- package/dist/devicesSlice/thunks.js +19 -17
- package/dist/liststatehook.js +2 -2
- package/dist/locationutils.js +2 -2
- package/dist/monitorSlice/index.js +2 -2
- package/dist/monitorSlice/mocks.js +2 -2
- package/dist/monitorSlice/thunks.cjs +22 -60
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +15 -15
- package/dist/onboardingSlice/thunks.cjs +30 -60
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +17 -17
- package/dist/organizationSlice/constants.js +2 -2
- package/dist/organizationSlice/index.cjs +3 -0
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +4 -1
- package/dist/organizationSlice/index.d.ts +4 -1
- package/dist/organizationSlice/index.js +3 -3
- package/dist/organizationSlice/mocks.cjs +175 -0
- package/dist/organizationSlice/mocks.cjs.map +1 -1
- package/dist/organizationSlice/mocks.d.cts +121 -2
- package/dist/organizationSlice/mocks.d.ts +121 -2
- package/dist/organizationSlice/mocks.js +88 -3
- package/dist/organizationSlice/mocks.js.map +1 -1
- package/dist/organizationSlice/selectors.cjs +3 -0
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +3 -2
- package/dist/organizationSlice/selectors.d.ts +3 -2
- package/dist/organizationSlice/selectors.js +5 -3
- package/dist/organizationSlice/thunks.cjs +113 -75
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +17 -3
- package/dist/organizationSlice/thunks.d.ts +17 -3
- package/dist/organizationSlice/thunks.js +23 -19
- package/dist/organizationSlice/types.cjs.map +1 -1
- package/dist/organizationSlice/types.d.cts +30 -7
- package/dist/organizationSlice/types.d.ts +30 -7
- package/dist/releasesSlice/index.js +2 -2
- package/dist/releasesSlice/mocks.js +2 -2
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.js +4 -4
- package/dist/releasesSlice/thunks.cjs +22 -60
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +15 -15
- package/dist/selectors.cjs +22 -60
- 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 +39 -37
- package/dist/sockethook.js +2 -2
- package/dist/store.cjs +3 -0
- package/dist/store.cjs.map +1 -1
- package/dist/store.js +7 -7
- package/dist/storehooks.cjs +109 -74
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +24 -22
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +113 -73
- 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 +23 -17
- package/dist/useDeploymentDevice.cjs +30 -60
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +19 -19
- package/dist/usersSlice/constants.js +2 -2
- package/dist/usersSlice/index.js +2 -2
- package/dist/usersSlice/mocks.js +2 -2
- package/dist/usersSlice/selectors.cjs +11 -49
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.js +4 -4
- package/dist/usersSlice/thunks.cjs +30 -60
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +17 -17
- package/dist/utils.cjs +26 -61
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -3
- package/dist/utils.d.ts +1 -3
- package/dist/utils.js +3 -3
- package/package.json +3 -3
- package/dist/chunk-3NOV7X4M.js.map +0 -1
- package/dist/chunk-EL672W25.js.map +0 -1
- package/dist/chunk-FUGCLQ5L.js.map +0 -1
- package/dist/chunk-VCEFZTWS.js.map +0 -1
- /package/dist/{chunk-QFYYTAYD.js.map → chunk-3JBVI4UH.js.map} +0 -0
- /package/dist/{chunk-QL6FN2JC.js.map → chunk-4ZYLGBJU.js.map} +0 -0
- /package/dist/{chunk-GBXG2XBY.js.map → chunk-E657OJL4.js.map} +0 -0
- /package/dist/{chunk-MZ5NRW3K.js.map → chunk-FXKMYYK5.js.map} +0 -0
- /package/dist/{chunk-KJHHSYGP.js.map → chunk-P3N2J3QT.js.map} +0 -0
- /package/dist/{chunk-GEQ2QQEE.js.map → chunk-PL6RIFD5.js.map} +0 -0
- /package/dist/{chunk-C3EMLDPU.js.map → chunk-V6BWOIRC.js.map} +0 -0
|
@@ -4,35 +4,35 @@ import {
|
|
|
4
4
|
getDeviceMonitorConfig,
|
|
5
5
|
getIssueCountsByType,
|
|
6
6
|
getLatestDeviceAlerts
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-V6BWOIRC.js";
|
|
8
|
+
import "../chunk-P3N2J3QT.js";
|
|
9
9
|
import "../chunk-IRQRV552.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-3JBVI4UH.js";
|
|
11
|
+
import "../chunk-CQXDAXQF.js";
|
|
11
12
|
import "../chunk-YR65C62H.js";
|
|
12
|
-
import "../chunk-VODRLEDP.js";
|
|
13
13
|
import "../chunk-TRKA7XYU.js";
|
|
14
|
-
import "../chunk-CQXDAXQF.js";
|
|
15
|
-
import "../chunk-VCEFZTWS.js";
|
|
16
14
|
import "../chunk-PVCHKW35.js";
|
|
15
|
+
import "../chunk-TIL2S3JA.js";
|
|
16
|
+
import "../chunk-VODRLEDP.js";
|
|
17
17
|
import "../chunk-6WJI4MOP.js";
|
|
18
18
|
import "../chunk-OLKM53RL.js";
|
|
19
19
|
import "../chunk-UVTLZV34.js";
|
|
20
20
|
import "../chunk-NMAXZ3ZY.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-QL6FN2JC.js";
|
|
23
|
-
import "../chunk-O7DR57RN.js";
|
|
24
|
-
import "../chunk-GEQ2QQEE.js";
|
|
21
|
+
import "../chunk-FXKMYYK5.js";
|
|
25
22
|
import "../chunk-JIS4PA3R.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-4ZYLGBJU.js";
|
|
24
|
+
import "../chunk-PL6RIFD5.js";
|
|
28
25
|
import "../chunk-YO22XLHI.js";
|
|
26
|
+
import "../chunk-ZZQJWNQT.js";
|
|
27
|
+
import "../chunk-WR6RQKF5.js";
|
|
28
|
+
import "../chunk-ZGRY42BZ.js";
|
|
29
29
|
import "../chunk-4BHM6WVX.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-7WIISD2N.js";
|
|
31
31
|
import "../chunk-WWED74SG.js";
|
|
32
32
|
import "../chunk-2DYA3X77.js";
|
|
33
|
-
import "../chunk-ZKAH3APE.js";
|
|
34
33
|
import "../chunk-FAJ3I2UQ.js";
|
|
35
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-ZKAH3APE.js";
|
|
35
|
+
import "../chunk-DBBE6D36.js";
|
|
36
36
|
export {
|
|
37
37
|
changeNotificationSetting,
|
|
38
38
|
getDeviceAlerts,
|
|
@@ -91,10 +91,6 @@ var import_constants5 = require("@northern.tech/utils/constants");
|
|
|
91
91
|
// src/appSlice/constants.ts
|
|
92
92
|
var import_icons_material = require("@mui/icons-material");
|
|
93
93
|
var import_utils = require("@northern.tech/utils");
|
|
94
|
-
var startingDeviceCount = {
|
|
95
|
-
os: "for first 50 devices",
|
|
96
|
-
professional: "for first 250 devices"
|
|
97
|
-
};
|
|
98
94
|
var chartTypes = {
|
|
99
95
|
bar: { key: "bar", Icon: import_icons_material.BarChart },
|
|
100
96
|
pie: { key: "pie", Icon: import_icons_material.PieChartOutline }
|
|
@@ -106,82 +102,48 @@ var PLANS = {
|
|
|
106
102
|
os: {
|
|
107
103
|
id: "os",
|
|
108
104
|
name: "Basic",
|
|
109
|
-
|
|
110
|
-
offer: true,
|
|
111
|
-
price: "$34 / month",
|
|
112
|
-
deviceCount: startingDeviceCount.os,
|
|
113
|
-
description: "The core features of Mender. To continue using Enterprise Trial features\u2014like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more\u2014please upgrade to a higher plan.",
|
|
114
|
-
features: ["Access to core features of Mender", "Basic support"]
|
|
105
|
+
description: "The core features of Mender. To continue using Enterprise Trial features\u2014like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more\u2014please upgrade to a higher plan."
|
|
115
106
|
},
|
|
116
107
|
professional: {
|
|
117
108
|
id: "professional",
|
|
118
109
|
name: "Professional",
|
|
119
|
-
|
|
120
|
-
offer: true,
|
|
121
|
-
price: "$291 / month",
|
|
122
|
-
deviceCount: startingDeviceCount.professional,
|
|
123
|
-
description: "Everything in Basic, plus enhanced update management and automation features.",
|
|
124
|
-
features: ["Advanced OTA features", "Higher priority support"]
|
|
110
|
+
description: "Everything in Basic, plus enhanced update management and automation features."
|
|
125
111
|
},
|
|
126
112
|
enterprise: {
|
|
127
113
|
id: "enterprise",
|
|
128
114
|
name: "Enterprise",
|
|
129
|
-
|
|
130
|
-
price: "Custom pricing",
|
|
131
|
-
deviceCount: "Unlimited devices",
|
|
132
|
-
description: "Every advanced feature of Mender, tailored for complex and large-scale deployments. Not available as a monthly subscription \u2014 ask us for a quote.",
|
|
133
|
-
features: ["All Mender features", "Advanced security features", "SLA-backed support"]
|
|
115
|
+
description: "Every advanced feature of Mender, tailored for complex and large-scale deployments. Not available as a monthly subscription \u2014 ask us for a quote."
|
|
134
116
|
}
|
|
135
117
|
};
|
|
136
118
|
var ADDONS = {
|
|
137
119
|
configure: {
|
|
138
120
|
id: "configure",
|
|
139
121
|
title: "Configure",
|
|
140
|
-
description: "
|
|
122
|
+
description: "Seamlessly configure applications and devices remotely \u2013 configure each device to its environment.",
|
|
141
123
|
needs: ["hasDeviceConfig"],
|
|
142
|
-
os: {
|
|
143
|
-
price: "$11/month",
|
|
144
|
-
deviceCount: startingDeviceCount.os
|
|
145
|
-
},
|
|
146
|
-
professional: {
|
|
147
|
-
price: "$65/month",
|
|
148
|
-
deviceCount: startingDeviceCount.professional
|
|
149
|
-
},
|
|
150
124
|
eligible: ["os", "professional", "enterprise"]
|
|
151
125
|
},
|
|
152
126
|
monitor: {
|
|
153
127
|
id: "monitor",
|
|
154
128
|
title: "Monitor",
|
|
155
|
-
description: "
|
|
129
|
+
description: "Detect and analyze health issues of devices, services and applications. Set up alerts so you can act quickly.",
|
|
156
130
|
needs: ["hasMonitor"],
|
|
157
|
-
os: {
|
|
158
|
-
price: "-",
|
|
159
|
-
deviceCount: "-"
|
|
160
|
-
},
|
|
161
|
-
professional: {
|
|
162
|
-
price: "$86/month",
|
|
163
|
-
deviceCount: startingDeviceCount.professional
|
|
164
|
-
},
|
|
165
131
|
eligible: ["professional", "enterprise"]
|
|
166
132
|
},
|
|
167
133
|
troubleshoot: {
|
|
168
134
|
id: "troubleshoot",
|
|
169
135
|
title: "Troubleshoot",
|
|
170
|
-
description: "
|
|
136
|
+
description: "Secure, remote access to your devices \u2013 quickly diagnose and fix issues in real time.",
|
|
171
137
|
needs: ["hasDeviceConnect"],
|
|
172
|
-
os: {
|
|
173
|
-
price: "$27/month",
|
|
174
|
-
deviceCount: startingDeviceCount.os
|
|
175
|
-
},
|
|
176
|
-
professional: {
|
|
177
|
-
price: "$72/month",
|
|
178
|
-
deviceCount: startingDeviceCount.professional
|
|
179
|
-
},
|
|
180
138
|
eligible: ["os", "professional", "enterprise"]
|
|
181
139
|
}
|
|
182
140
|
};
|
|
183
141
|
var BENEFITS = {
|
|
184
|
-
auditlog: {
|
|
142
|
+
auditlog: {
|
|
143
|
+
id: "auditlog",
|
|
144
|
+
benefit: "gain access to logs for important events such as changes to devices, deployments and user management, as well as remote terminal session replays",
|
|
145
|
+
requiredPlan: PLANS.enterprise.id
|
|
146
|
+
},
|
|
185
147
|
dashboard: { id: "dashboard", benefit: "actionable insights into the devices you are updating with Mender", requiredPlan: PLANS.enterprise.id },
|
|
186
148
|
deltaGeneration: {
|
|
187
149
|
id: "deltaGeneration",
|
|
@@ -965,17 +927,14 @@ var getAttributesList = (0, import_toolkit4.createSelector)(
|
|
|
965
927
|
[getFilteringAttributes, getFilteringAttributesFromConfig],
|
|
966
928
|
({ identityAttributes = [], inventoryAttributes = [] }, { identity = [], inventory = [] }) => [...identityAttributes, ...inventoryAttributes, ...identity, ...inventory].filter(import_helpers2.duplicateFilter)
|
|
967
929
|
);
|
|
968
|
-
var getDeviceLimitStats = (0, import_toolkit4.createSelector)(
|
|
969
|
-
|
|
970
|
-
(limits,
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
}));
|
|
977
|
-
}
|
|
978
|
-
);
|
|
930
|
+
var getDeviceLimitStats = (0, import_toolkit4.createSelector)([getDeviceLimits, getAcceptedDevices], (limits, accepted) => {
|
|
931
|
+
const { counts } = accepted;
|
|
932
|
+
return Object.entries(limits).filter(([, limit]) => limit !== 0).map(([type, limit]) => ({
|
|
933
|
+
type,
|
|
934
|
+
limit,
|
|
935
|
+
total: counts[type] || 0
|
|
936
|
+
}));
|
|
937
|
+
});
|
|
979
938
|
var getDeviceTypes = (0, import_toolkit4.createSelector)(
|
|
980
939
|
[getAcceptedDevices, getDevicesById],
|
|
981
940
|
({ deviceIds = [] }, devicesById) => Object.keys(
|
|
@@ -2028,6 +1987,9 @@ var organizationSlice = (0, import_toolkit13.createSlice)({
|
|
|
2028
1987
|
setSubscription: (state, action) => {
|
|
2029
1988
|
state.organization.subscription = { ...state.organization.subscription, ...action.payload };
|
|
2030
1989
|
},
|
|
1990
|
+
setProducts: (state, action) => {
|
|
1991
|
+
state.products = action.payload;
|
|
1992
|
+
},
|
|
2031
1993
|
setBillingProfile: (state, action) => {
|
|
2032
1994
|
state.organization.billing_profile = action.payload;
|
|
2033
1995
|
},
|
|
@@ -3103,11 +3065,18 @@ var addStaticGroup = createAppAsyncThunk(
|
|
|
3103
3065
|
)
|
|
3104
3066
|
).catch((err) => commonErrorHandler(err, `Group could not be updated:`, dispatch))
|
|
3105
3067
|
);
|
|
3068
|
+
var removeReportsByGroupName = createAppAsyncThunk(`${sliceName4}/removeReportsByGroupName`, (groupName, { dispatch, getState }) => {
|
|
3069
|
+
if (!groupName) return Promise.resolve();
|
|
3070
|
+
const reports = getDeviceReportsForUser(getState());
|
|
3071
|
+
const filteredReports = reports.filter((report) => report.group !== groupName);
|
|
3072
|
+
dispatch(saveUserSettings({ reports: filteredReports }));
|
|
3073
|
+
});
|
|
3106
3074
|
var removeStaticGroup = createAppAsyncThunk(
|
|
3107
3075
|
`${sliceName4}/removeStaticGroup`,
|
|
3108
3076
|
(groupName, { dispatch }) => general_api_default.delete(`${import_constants5.inventoryApiUrl}/groups/${groupName}`).then(
|
|
3109
3077
|
() => Promise.all([
|
|
3110
3078
|
dispatch(actions4.removeGroup(groupName)),
|
|
3079
|
+
dispatch(removeReportsByGroupName(groupName)),
|
|
3111
3080
|
dispatch(getGroups2()),
|
|
3112
3081
|
dispatch(setSnackbar3({ message: "Group was removed successfully", autoHideDuration: TIMEOUTS.fiveSeconds }))
|
|
3113
3082
|
])
|
|
@@ -3173,6 +3142,7 @@ var removeDynamicGroup = createAppAsyncThunk(`${sliceName4}/removeDynamicGroup`,
|
|
|
3173
3142
|
return general_api_default.delete(`${import_constants5.inventoryApiUrlV2}/filters/${filterId}`).then(
|
|
3174
3143
|
() => Promise.all([
|
|
3175
3144
|
dispatch(actions4.removeGroup(groupName)),
|
|
3145
|
+
dispatch(removeReportsByGroupName(groupName)),
|
|
3176
3146
|
dispatch(setSnackbar3({ message: "Group was removed successfully", autoHideDuration: TIMEOUTS.fiveSeconds }))
|
|
3177
3147
|
])
|
|
3178
3148
|
);
|