@northern.tech/store 0.19.1 → 0.19.2
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.js +6 -6
- package/dist/api/general-api.js +2 -2
- package/dist/api/users-api.js +2 -2
- package/dist/appSlice/constants.cjs +8 -4
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +1 -1
- package/dist/appSlice/constants.d.ts +1 -1
- 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 +16 -4
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +17 -17
- package/dist/auth.js +2 -2
- package/dist/{chunk-GEQ2QQEE.js → chunk-42GZ6FGV.js} +2 -2
- package/dist/{chunk-QL6FN2JC.js → chunk-43ZBO3JW.js} +2 -2
- package/dist/{chunk-C3EMLDPU.js → chunk-45BHMNX6.js} +5 -5
- package/dist/{chunk-EL672W25.js → chunk-AJ6DIDO4.js} +9 -5
- package/dist/chunk-AJ6DIDO4.js.map +1 -0
- package/dist/{chunk-GBXG2XBY.js → chunk-AV7SRATY.js} +6 -6
- package/dist/{chunk-U5TPV5X5.js → chunk-B3C6H2PR.js} +2 -2
- package/dist/{chunk-FUGCLQ5L.js → chunk-KJ2SUFAU.js} +33 -24
- package/dist/chunk-KJ2SUFAU.js.map +1 -0
- package/dist/{chunk-QFYYTAYD.js → chunk-RJRZXDVT.js} +9 -9
- package/dist/{chunk-MZ5NRW3K.js → chunk-XOASGJZU.js} +19 -19
- package/dist/{chunk-KJHHSYGP.js → chunk-ZAZTNDSY.js} +11 -11
- package/dist/commonConstants.js +2 -2
- package/dist/commonSelectors.cjs +8 -4
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.js +9 -9
- package/dist/constants.cjs +8 -4
- 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 +16 -4
- 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.js +2 -2
- package/dist/devicesSlice/thunks.cjs +18 -4
- 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 +8 -4
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +15 -15
- package/dist/onboardingSlice/thunks.cjs +16 -4
- 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.js +2 -2
- package/dist/organizationSlice/mocks.js +2 -2
- package/dist/organizationSlice/selectors.js +2 -2
- package/dist/organizationSlice/thunks.cjs +16 -4
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.js +17 -17
- package/dist/releasesSlice/index.js +2 -2
- package/dist/releasesSlice/mocks.js +2 -2
- package/dist/releasesSlice/selectors.js +4 -4
- package/dist/releasesSlice/thunks.cjs +8 -4
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +15 -15
- package/dist/selectors.cjs +8 -4
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.js +51 -51
- package/dist/sockethook.js +2 -2
- package/dist/store.js +7 -7
- package/dist/storehooks.cjs +16 -4
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +20 -20
- package/dist/thunks.cjs +18 -4
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +1 -1
- package/dist/thunks.d.ts +1 -1
- package/dist/thunks.js +19 -17
- package/dist/useDeploymentDevice.cjs +16 -4
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +18 -18
- 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 +8 -4
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.js +4 -4
- package/dist/usersSlice/thunks.cjs +16 -4
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +17 -17
- package/dist/utils.cjs +8 -4
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +3 -3
- package/package.json +3 -3
- package/dist/chunk-EL672W25.js.map +0 -1
- package/dist/chunk-FUGCLQ5L.js.map +0 -1
- /package/dist/{chunk-GEQ2QQEE.js.map → chunk-42GZ6FGV.js.map} +0 -0
- /package/dist/{chunk-QL6FN2JC.js.map → chunk-43ZBO3JW.js.map} +0 -0
- /package/dist/{chunk-C3EMLDPU.js.map → chunk-45BHMNX6.js.map} +0 -0
- /package/dist/{chunk-GBXG2XBY.js.map → chunk-AV7SRATY.js.map} +0 -0
- /package/dist/{chunk-U5TPV5X5.js.map → chunk-B3C6H2PR.js.map} +0 -0
- /package/dist/{chunk-QFYYTAYD.js.map → chunk-RJRZXDVT.js.map} +0 -0
- /package/dist/{chunk-MZ5NRW3K.js.map → chunk-XOASGJZU.js.map} +0 -0
- /package/dist/{chunk-KJHHSYGP.js.map → chunk-ZAZTNDSY.js.map} +0 -0
package/dist/actions.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
actions_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-YR65C62H.js";
|
|
5
|
-
import "./chunk-VODRLEDP.js";
|
|
3
|
+
} from "./chunk-RJRZXDVT.js";
|
|
6
4
|
import "./chunk-TRKA7XYU.js";
|
|
7
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-YR65C62H.js";
|
|
8
6
|
import "./chunk-VCEFZTWS.js";
|
|
9
7
|
import "./chunk-PVCHKW35.js";
|
|
8
|
+
import "./chunk-CQXDAXQF.js";
|
|
9
|
+
import "./chunk-VODRLEDP.js";
|
|
10
10
|
import "./chunk-6WJI4MOP.js";
|
|
11
11
|
import "./chunk-OLKM53RL.js";
|
|
12
12
|
import "./chunk-WWED74SG.js";
|
|
13
13
|
import "./chunk-2DYA3X77.js";
|
|
14
|
-
import "./chunk-ZKAH3APE.js";
|
|
15
14
|
import "./chunk-FAJ3I2UQ.js";
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-ZKAH3APE.js";
|
|
16
|
+
import "./chunk-AJ6DIDO4.js";
|
|
17
17
|
export {
|
|
18
18
|
actions_default as default
|
|
19
19
|
};
|
package/dist/api/general-api.js
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
import "../chunk-UVTLZV34.js";
|
|
7
7
|
import "../chunk-WWED74SG.js";
|
|
8
8
|
import "../chunk-2DYA3X77.js";
|
|
9
|
-
import "../chunk-ZKAH3APE.js";
|
|
10
9
|
import "../chunk-FAJ3I2UQ.js";
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ZKAH3APE.js";
|
|
11
|
+
import "../chunk-AJ6DIDO4.js";
|
|
12
12
|
export {
|
|
13
13
|
authenticatedRequest,
|
|
14
14
|
commonRequestConfig,
|
package/dist/api/users-api.js
CHANGED
|
@@ -5,9 +5,9 @@ import "../chunk-IRQRV552.js";
|
|
|
5
5
|
import "../chunk-UVTLZV34.js";
|
|
6
6
|
import "../chunk-WWED74SG.js";
|
|
7
7
|
import "../chunk-2DYA3X77.js";
|
|
8
|
-
import "../chunk-ZKAH3APE.js";
|
|
9
8
|
import "../chunk-FAJ3I2UQ.js";
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-ZKAH3APE.js";
|
|
10
|
+
import "../chunk-AJ6DIDO4.js";
|
|
11
11
|
export {
|
|
12
12
|
users_api_default as default
|
|
13
13
|
};
|
|
@@ -89,7 +89,7 @@ var ADDONS = {
|
|
|
89
89
|
configure: {
|
|
90
90
|
id: "configure",
|
|
91
91
|
title: "Configure",
|
|
92
|
-
description: "
|
|
92
|
+
description: "Seamlessly configure applications and devices remotely \u2013 configure each device to its environment.",
|
|
93
93
|
needs: ["hasDeviceConfig"],
|
|
94
94
|
os: {
|
|
95
95
|
price: "$11/month",
|
|
@@ -104,7 +104,7 @@ var ADDONS = {
|
|
|
104
104
|
monitor: {
|
|
105
105
|
id: "monitor",
|
|
106
106
|
title: "Monitor",
|
|
107
|
-
description: "
|
|
107
|
+
description: "Detect and analyze health issues of devices, services and applications. Set up alerts so you can act quickly.",
|
|
108
108
|
needs: ["hasMonitor"],
|
|
109
109
|
os: {
|
|
110
110
|
price: "-",
|
|
@@ -119,7 +119,7 @@ var ADDONS = {
|
|
|
119
119
|
troubleshoot: {
|
|
120
120
|
id: "troubleshoot",
|
|
121
121
|
title: "Troubleshoot",
|
|
122
|
-
description: "
|
|
122
|
+
description: "Secure, remote access to your devices \u2013 quickly diagnose and fix issues in real time.",
|
|
123
123
|
needs: ["hasDeviceConnect"],
|
|
124
124
|
os: {
|
|
125
125
|
price: "$27/month",
|
|
@@ -133,7 +133,11 @@ var ADDONS = {
|
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
var BENEFITS = {
|
|
136
|
-
auditlog: {
|
|
136
|
+
auditlog: {
|
|
137
|
+
id: "auditlog",
|
|
138
|
+
benefit: "gain access to logs for important events such as changes to devices, deployments and user management, as well as remote terminal session replays",
|
|
139
|
+
requiredPlan: PLANS.enterprise.id
|
|
140
|
+
},
|
|
137
141
|
dashboard: { id: "dashboard", benefit: "actionable insights into the devices you are updating with Mender", requiredPlan: PLANS.enterprise.id },
|
|
138
142
|
deltaGeneration: {
|
|
139
143
|
id: "deltaGeneration",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/appSlice/constants.ts"],"sourcesContent":["// Copyright 2019 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 { BarChart as BarChartIcon, PieChartOutline as PieChartIcon } from '@mui/icons-material';\n\nimport { yes as yesUtil } from '@northern.tech/utils';\n\nconst startingDeviceCount = {\n os: 'for first 50 devices',\n professional: 'for first 250 devices'\n} as const;\n\nexport const chartTypes = {\n bar: { key: 'bar', Icon: BarChartIcon },\n pie: { key: 'pie', Icon: PieChartIcon }\n} as const;\nexport const emptyChartSelection = { software: '', group: '', chartType: chartTypes.bar.key, attribute: 'artifact_name' };\nexport const defaultReportType = 'distribution';\nexport const defaultReports = [{ ...emptyChartSelection, group: null, attribute: 'artifact_name', type: defaultReportType }];\n\nexport const BEGINNING_OF_TIME = '2016-01-01T00:00:00.000Z';\n\nexport const locations = {\n cn: { key: 'cn', title: 'China', location: 'hosted.mender.cn' },\n eu: { key: 'eu', title: 'EU', location: 'eu.hosted.mender.io' },\n us: { key: 'us', title: 'US', location: 'hosted.mender.io' }\n} as const;\nexport type AvailablePlans = 'os' | 'professional' | 'enterprise';\n\nexport type Plan = {\n description: string;\n deviceCount: string;\n features: string[];\n id: AvailablePlans;\n minimalDeviceCount: { micro: number; standard: number };\n name: string;\n offer?: boolean;\n offerprice?: string;\n price: string;\n price2?: string;\n};\n\nexport type AvailableAddon = 'configure' | 'troubleshoot' | 'monitor';\n\nexport const PLANS: { [key in AvailablePlans]: Plan } = {\n os: {\n id: 'os',\n name: 'Basic',\n minimalDeviceCount: { standard: 50, micro: 100 },\n offer: true,\n price: '$34 / month',\n deviceCount: startingDeviceCount.os,\n description:\n 'The core features of Mender. To continue using Enterprise Trial features—like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more—please upgrade to a higher plan.',\n features: ['Access to core features of Mender', 'Basic support']\n },\n professional: {\n id: 'professional',\n name: 'Professional',\n minimalDeviceCount: { standard: 250, micro: 500 },\n offer: true,\n price: '$291 / month',\n deviceCount: startingDeviceCount.professional,\n description: 'Everything in Basic, plus enhanced update management and automation features.',\n features: ['Advanced OTA features', 'Higher priority support']\n },\n enterprise: {\n id: 'enterprise',\n name: 'Enterprise',\n minimalDeviceCount: { standard: 1000, micro: 2000 },\n price: 'Custom pricing',\n deviceCount: 'Unlimited devices',\n description:\n 'Every advanced feature of Mender, tailored for complex and large-scale deployments. Not available as a monthly subscription — ask us for a quote.',\n features: ['All Mender features', 'Advanced security features', 'SLA-backed support']\n }\n} as const;\nexport type Addon = {\n description: string;\n eligible: AvailablePlans[];\n id: string;\n needs: string[];\n title: string;\n} & {\n [key in Exclude<AvailablePlans, 'enterprise'>]: {\n deviceCount: string;\n price: string;\n };\n};\n\nexport type AddonId = keyof typeof ADDONS;\n\n// the needs names need to be aligned with the name of the features in the appReducer, as they will be checked in the addonselection\nexport const ADDONS: { [key in AvailableAddon]: Addon } = {\n configure: {\n id: 'configure',\n title: 'Configure',\n description: 'Expand your plan with device configuration features',\n needs: ['hasDeviceConfig'],\n os: {\n price: '$11/month',\n deviceCount: startingDeviceCount.os\n },\n professional: {\n price: '$65/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['os', 'professional', 'enterprise']\n },\n monitor: {\n id: 'monitor',\n title: 'Monitor',\n description: 'Expand your plan with device monitoring features',\n needs: ['hasMonitor'],\n os: {\n price: '-',\n deviceCount: '-'\n },\n professional: {\n price: '$86/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['professional', 'enterprise']\n },\n troubleshoot: {\n id: 'troubleshoot',\n title: 'Troubleshoot',\n description: 'Expand your plan with device troubleshooting features',\n needs: ['hasDeviceConnect'],\n os: {\n price: '$27/month',\n deviceCount: startingDeviceCount.os\n },\n professional: {\n price: '$72/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['os', 'professional', 'enterprise']\n }\n};\n\nexport const BENEFITS = {\n auditlog: { id: 'auditlog', benefit: 'trace change across your devices and access troubleshooting session replay', requiredPlan: PLANS.professional.id },\n dashboard: { id: 'dashboard', benefit: 'actionable insights into the devices you are updating with Mender', requiredPlan: PLANS.enterprise.id },\n deltaGeneration: {\n id: 'deltaGeneration',\n benefit: 'automatic delta artifacts generation to minimize data transfer and improve the update delivery',\n requiredPlan: PLANS.enterprise.id\n },\n deviceConfiguration: { id: 'deviceConfiguration', benefit: 'device configuration features', requiredAddon: ADDONS.configure.id },\n deviceMonitor: { id: 'deviceMonitor', benefit: 'device monitoring features', requiredAddon: ADDONS.monitor.id, requiredPlan: PLANS.professional.id },\n deviceTroubleshoot: { id: 'deviceTroubleshoot', benefit: 'device troubleshooting features', requiredAddon: ADDONS.troubleshoot.id },\n dynamicGroups: { id: 'dynamicGroups', benefit: 'create dynamic groups to ease device management', requiredPlan: PLANS.enterprise.id },\n fullFiltering: { id: 'fullFiltering', benefit: 'filtering by multiple attributes to improve the device overview', requiredPlan: PLANS.professional.id },\n gateway: { id: 'gateway', benefit: 'see devices connected to your gateway device for easy access', requiredPlans: PLANS.professional.id },\n pausedDeployments: {\n id: 'pausedDeployments',\n benefit: 'granular control about update rollout to allow synchronization across your fleet',\n requiredPlan: PLANS.enterprise.id\n },\n phasedDeployments: { id: 'phasedDeployments', benefit: 'choose to roll out deployments in multiple phases', requiredPlan: PLANS.enterprise.id },\n rbac: { id: 'rbac', benefit: 'granular role based access control', requiredPlan: PLANS.enterprise.id },\n retryDeployments: { id: 'retryDeployments', benefit: 'optional retries for failed rollout attempts', requiredPlan: PLANS.professional.id },\n scheduledDeployments: {\n id: 'scheduledDeployments',\n benefit: 'scheduled deployments to steer the distribution of your updates.',\n requiredPlan: PLANS.professional.id\n },\n webhookEvents: {\n id: 'webhookEvents',\n benefit: 'receive inventory events and select which type(s) of events the webhook will receive',\n requiredPlan: PLANS.professional.id\n },\n\n default: { id: 'default', benefit: 'gain access to this feature', requiredPlan: PLANS.enterprise.id }\n} as const;\n\nexport const yes = yesUtil;\nexport const canAccess = yes;\n\nexport const DARK_MODE = 'dark';\nexport const LIGHT_MODE = 'light';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaA,4BAA0E;AAE1E,mBAA+B;AAE/B,IAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,cAAc;AAChB;AAEO,IAAM,aAAa;AAAA,EACxB,KAAK,EAAE,KAAK,OAAO,MAAM,sBAAAA,SAAa;AAAA,EACtC,KAAK,EAAE,KAAK,OAAO,MAAM,sBAAAC,gBAAa;AACxC;AACO,IAAM,sBAAsB,EAAE,UAAU,IAAI,OAAO,IAAI,WAAW,WAAW,IAAI,KAAK,WAAW,gBAAgB;AACjH,IAAM,oBAAoB;AAC1B,IAAM,iBAAiB,CAAC,EAAE,GAAG,qBAAqB,OAAO,MAAM,WAAW,iBAAiB,MAAM,kBAAkB,CAAC;AAEpH,IAAM,oBAAoB;AAE1B,IAAM,YAAY;AAAA,EACvB,IAAI,EAAE,KAAK,MAAM,OAAO,SAAS,UAAU,mBAAmB;AAAA,EAC9D,IAAI,EAAE,KAAK,MAAM,OAAO,MAAM,UAAU,sBAAsB;AAAA,EAC9D,IAAI,EAAE,KAAK,MAAM,OAAO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T,cAAc,MAAM,WAAW;AAAA,EACjC;AAAA,EACA,mBAAmB,EAAE,IAAI,qBAAqB,SAAS,qDAAqD,cAAc,MAAM,WAAW,GAAG;AAAA,EAC9I,MAAM,EAAE,IAAI,QAAQ,SAAS,sCAAsC,cAAc,MAAM,WAAW,GAAG;AAAA,EACrG,kBAAkB,EAAE,IAAI,oBAAoB,SAAS,gDAAgD,cAAc,MAAM,aAAa,GAAG;AAAA,EACzI,sBAAsB;AAAA,IACpB,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,cAAc,MAAM,aAAa;AAAA,EACnC;AAAA,EACA,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,cAAc,MAAM,aAAa;AAAA,EACnC;AAAA,EAEA,SAAS,EAAE,IAAI,WAAW,SAAS,+BAA+B,cAAc,MAAM,WAAW,GAAG;AACtG;AAEO,IAAM,MAAM,aAAAC;AACZ,IAAM,YAAY;AAElB,IAAM,YAAY;AAClB,IAAM,aAAa;","names":["BarChartIcon","PieChartIcon","yesUtil"]}
|
|
1
|
+
{"version":3,"sources":["../../src/appSlice/constants.ts"],"sourcesContent":["// Copyright 2019 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 { BarChart as BarChartIcon, PieChartOutline as PieChartIcon } from '@mui/icons-material';\n\nimport { yes as yesUtil } from '@northern.tech/utils';\n\nconst startingDeviceCount = {\n os: 'for first 50 devices',\n professional: 'for first 250 devices'\n} as const;\n\nexport const chartTypes = {\n bar: { key: 'bar', Icon: BarChartIcon },\n pie: { key: 'pie', Icon: PieChartIcon }\n} as const;\nexport const emptyChartSelection = { software: '', group: '', chartType: chartTypes.bar.key, attribute: 'artifact_name' };\nexport const defaultReportType = 'distribution';\nexport const defaultReports = [{ ...emptyChartSelection, group: null, attribute: 'artifact_name', type: defaultReportType }];\n\nexport const BEGINNING_OF_TIME = '2016-01-01T00:00:00.000Z';\n\nexport const locations = {\n cn: { key: 'cn', title: 'China', location: 'hosted.mender.cn' },\n eu: { key: 'eu', title: 'EU', location: 'eu.hosted.mender.io' },\n us: { key: 'us', title: 'US', location: 'hosted.mender.io' }\n} as const;\nexport type AvailablePlans = 'os' | 'professional' | 'enterprise';\n\nexport type Plan = {\n description: string;\n deviceCount: string;\n features: string[];\n id: AvailablePlans;\n minimalDeviceCount: { micro: number; standard: number };\n name: string;\n offer?: boolean;\n offerprice?: string;\n price: string;\n price2?: string;\n};\n\nexport type AvailableAddon = 'configure' | 'troubleshoot' | 'monitor';\n\nexport const PLANS: { [key in AvailablePlans]: Plan } = {\n os: {\n id: 'os',\n name: 'Basic',\n minimalDeviceCount: { standard: 50, micro: 100 },\n offer: true,\n price: '$34 / month',\n deviceCount: startingDeviceCount.os,\n description:\n 'The core features of Mender. To continue using Enterprise Trial features—like Delta updates, scheduled deployments, phased rollouts, device filtering, dynamic groups, RBAC, audit logs, and more—please upgrade to a higher plan.',\n features: ['Access to core features of Mender', 'Basic support']\n },\n professional: {\n id: 'professional',\n name: 'Professional',\n minimalDeviceCount: { standard: 250, micro: 500 },\n offer: true,\n price: '$291 / month',\n deviceCount: startingDeviceCount.professional,\n description: 'Everything in Basic, plus enhanced update management and automation features.',\n features: ['Advanced OTA features', 'Higher priority support']\n },\n enterprise: {\n id: 'enterprise',\n name: 'Enterprise',\n minimalDeviceCount: { standard: 1000, micro: 2000 },\n price: 'Custom pricing',\n deviceCount: 'Unlimited devices',\n description:\n 'Every advanced feature of Mender, tailored for complex and large-scale deployments. Not available as a monthly subscription — ask us for a quote.',\n features: ['All Mender features', 'Advanced security features', 'SLA-backed support']\n }\n} as const;\nexport type Addon = {\n description: string;\n eligible: AvailablePlans[];\n id: string;\n needs: string[];\n title: string;\n} & {\n [key in Exclude<AvailablePlans, 'enterprise'>]: {\n deviceCount: string;\n price: string;\n };\n};\n\nexport type AddonId = keyof typeof ADDONS;\n\n// the needs names need to be aligned with the name of the features in the appReducer, as they will be checked in the addonselection\nexport const ADDONS: { [key in AvailableAddon]: Addon } = {\n configure: {\n id: 'configure',\n title: 'Configure',\n description: 'Seamlessly configure applications and devices remotely – configure each device to its environment.',\n needs: ['hasDeviceConfig'],\n os: {\n price: '$11/month',\n deviceCount: startingDeviceCount.os\n },\n professional: {\n price: '$65/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['os', 'professional', 'enterprise']\n },\n monitor: {\n id: 'monitor',\n title: 'Monitor',\n description: 'Detect and analyze health issues of devices, services and applications. Set up alerts so you can act quickly.',\n needs: ['hasMonitor'],\n os: {\n price: '-',\n deviceCount: '-'\n },\n professional: {\n price: '$86/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['professional', 'enterprise']\n },\n troubleshoot: {\n id: 'troubleshoot',\n title: 'Troubleshoot',\n description: 'Secure, remote access to your devices – quickly diagnose and fix issues in real time.',\n needs: ['hasDeviceConnect'],\n os: {\n price: '$27/month',\n deviceCount: startingDeviceCount.os\n },\n professional: {\n price: '$72/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['os', 'professional', 'enterprise']\n }\n};\n\nexport const BENEFITS = {\n auditlog: {\n id: 'auditlog',\n benefit: 'gain access to logs for important events such as changes to devices, deployments and user management, as well as remote terminal session replays',\n requiredPlan: PLANS.enterprise.id\n },\n dashboard: { id: 'dashboard', benefit: 'actionable insights into the devices you are updating with Mender', requiredPlan: PLANS.enterprise.id },\n deltaGeneration: {\n id: 'deltaGeneration',\n benefit: 'automatic delta artifacts generation to minimize data transfer and improve the update delivery',\n requiredPlan: PLANS.enterprise.id\n },\n deviceConfiguration: { id: 'deviceConfiguration', benefit: 'device configuration features', requiredAddon: ADDONS.configure.id },\n deviceMonitor: { id: 'deviceMonitor', benefit: 'device monitoring features', requiredAddon: ADDONS.monitor.id, requiredPlan: PLANS.professional.id },\n deviceTroubleshoot: { id: 'deviceTroubleshoot', benefit: 'device troubleshooting features', requiredAddon: ADDONS.troubleshoot.id },\n dynamicGroups: { id: 'dynamicGroups', benefit: 'create dynamic groups to ease device management', requiredPlan: PLANS.enterprise.id },\n fullFiltering: { id: 'fullFiltering', benefit: 'filtering by multiple attributes to improve the device overview', requiredPlan: PLANS.professional.id },\n gateway: { id: 'gateway', benefit: 'see devices connected to your gateway device for easy access', requiredPlans: PLANS.professional.id },\n pausedDeployments: {\n id: 'pausedDeployments',\n benefit: 'granular control about update rollout to allow synchronization across your fleet',\n requiredPlan: PLANS.enterprise.id\n },\n phasedDeployments: { id: 'phasedDeployments', benefit: 'choose to roll out deployments in multiple phases', requiredPlan: PLANS.enterprise.id },\n rbac: { id: 'rbac', benefit: 'granular role based access control', requiredPlan: PLANS.enterprise.id },\n retryDeployments: { id: 'retryDeployments', benefit: 'optional retries for failed rollout attempts', requiredPlan: PLANS.professional.id },\n scheduledDeployments: {\n id: 'scheduledDeployments',\n benefit: 'scheduled deployments to steer the distribution of your updates.',\n requiredPlan: PLANS.professional.id\n },\n webhookEvents: {\n id: 'webhookEvents',\n benefit: 'receive inventory events and select which type(s) of events the webhook will receive',\n requiredPlan: PLANS.professional.id\n },\n\n default: { id: 'default', benefit: 'gain access to this feature', requiredPlan: PLANS.enterprise.id }\n} as const;\n\nexport const yes = yesUtil;\nexport const canAccess = yes;\n\nexport const DARK_MODE = 'dark';\nexport const LIGHT_MODE = 'light';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaA,4BAA0E;AAE1E,mBAA+B;AAE/B,IAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,cAAc;AAChB;AA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+86,7 @@ declare const ADDONS: {
|
|
|
86
86
|
declare const BENEFITS: {
|
|
87
87
|
readonly auditlog: {
|
|
88
88
|
readonly id: "auditlog";
|
|
89
|
-
readonly benefit: "
|
|
89
|
+
readonly benefit: "gain access to logs for important events such as changes to devices, deployments and user management, as well as remote terminal session replays";
|
|
90
90
|
readonly requiredPlan: AvailablePlans;
|
|
91
91
|
};
|
|
92
92
|
readonly dashboard: {
|
|
@@ -86,7 +86,7 @@ declare const ADDONS: {
|
|
|
86
86
|
declare const BENEFITS: {
|
|
87
87
|
readonly auditlog: {
|
|
88
88
|
readonly id: "auditlog";
|
|
89
|
-
readonly benefit: "
|
|
89
|
+
readonly benefit: "gain access to logs for important events such as changes to devices, deployments and user management, as well as remote terminal session replays";
|
|
90
90
|
readonly requiredPlan: AvailablePlans;
|
|
91
91
|
};
|
|
92
92
|
readonly dashboard: {
|
package/dist/appSlice/index.js
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
} from "../chunk-6WJI4MOP.js";
|
|
8
8
|
import "../chunk-WWED74SG.js";
|
|
9
9
|
import "../chunk-2DYA3X77.js";
|
|
10
|
-
import "../chunk-ZKAH3APE.js";
|
|
11
10
|
import "../chunk-FAJ3I2UQ.js";
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-ZKAH3APE.js";
|
|
12
|
+
import "../chunk-AJ6DIDO4.js";
|
|
13
13
|
export {
|
|
14
14
|
actions,
|
|
15
15
|
appSlice,
|
package/dist/appSlice/mocks.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "../chunk-6WJI4MOP.js";
|
|
4
4
|
import "../chunk-WWED74SG.js";
|
|
5
5
|
import "../chunk-2DYA3X77.js";
|
|
6
|
-
import "../chunk-ZKAH3APE.js";
|
|
7
6
|
import "../chunk-FAJ3I2UQ.js";
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-ZKAH3APE.js";
|
|
8
|
+
import "../chunk-AJ6DIDO4.js";
|
|
9
9
|
|
|
10
10
|
// src/appSlice/mocks.ts
|
|
11
11
|
var mockState = {
|
package/dist/appSlice/thunks.cjs
CHANGED
|
@@ -94,7 +94,7 @@ var ADDONS = {
|
|
|
94
94
|
configure: {
|
|
95
95
|
id: "configure",
|
|
96
96
|
title: "Configure",
|
|
97
|
-
description: "
|
|
97
|
+
description: "Seamlessly configure applications and devices remotely \u2013 configure each device to its environment.",
|
|
98
98
|
needs: ["hasDeviceConfig"],
|
|
99
99
|
os: {
|
|
100
100
|
price: "$11/month",
|
|
@@ -109,7 +109,7 @@ var ADDONS = {
|
|
|
109
109
|
monitor: {
|
|
110
110
|
id: "monitor",
|
|
111
111
|
title: "Monitor",
|
|
112
|
-
description: "
|
|
112
|
+
description: "Detect and analyze health issues of devices, services and applications. Set up alerts so you can act quickly.",
|
|
113
113
|
needs: ["hasMonitor"],
|
|
114
114
|
os: {
|
|
115
115
|
price: "-",
|
|
@@ -124,7 +124,7 @@ var ADDONS = {
|
|
|
124
124
|
troubleshoot: {
|
|
125
125
|
id: "troubleshoot",
|
|
126
126
|
title: "Troubleshoot",
|
|
127
|
-
description: "
|
|
127
|
+
description: "Secure, remote access to your devices \u2013 quickly diagnose and fix issues in real time.",
|
|
128
128
|
needs: ["hasDeviceConnect"],
|
|
129
129
|
os: {
|
|
130
130
|
price: "$27/month",
|
|
@@ -138,7 +138,11 @@ var ADDONS = {
|
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
var BENEFITS = {
|
|
141
|
-
auditlog: {
|
|
141
|
+
auditlog: {
|
|
142
|
+
id: "auditlog",
|
|
143
|
+
benefit: "gain access to logs for important events such as changes to devices, deployments and user management, as well as remote terminal session replays",
|
|
144
|
+
requiredPlan: PLANS.enterprise.id
|
|
145
|
+
},
|
|
142
146
|
dashboard: { id: "dashboard", benefit: "actionable insights into the devices you are updating with Mender", requiredPlan: PLANS.enterprise.id },
|
|
143
147
|
deltaGeneration: {
|
|
144
148
|
id: "deltaGeneration",
|
|
@@ -2997,11 +3001,18 @@ var addStaticGroup = createAppAsyncThunk(
|
|
|
2997
3001
|
)
|
|
2998
3002
|
).catch((err) => commonErrorHandler(err, `Group could not be updated:`, dispatch))
|
|
2999
3003
|
);
|
|
3004
|
+
var removeReportsByGroupName = createAppAsyncThunk(`${sliceName3}/removeReportsByGroupName`, (groupName, { dispatch, getState }) => {
|
|
3005
|
+
if (!groupName) return Promise.resolve();
|
|
3006
|
+
const reports = getDeviceReportsForUser(getState());
|
|
3007
|
+
const filteredReports = reports.filter((report) => report.group !== groupName);
|
|
3008
|
+
dispatch(saveUserSettings({ reports: filteredReports }));
|
|
3009
|
+
});
|
|
3000
3010
|
var removeStaticGroup = createAppAsyncThunk(
|
|
3001
3011
|
`${sliceName3}/removeStaticGroup`,
|
|
3002
3012
|
(groupName, { dispatch }) => general_api_default.delete(`${import_constants5.inventoryApiUrl}/groups/${groupName}`).then(
|
|
3003
3013
|
() => Promise.all([
|
|
3004
3014
|
dispatch(actions3.removeGroup(groupName)),
|
|
3015
|
+
dispatch(removeReportsByGroupName(groupName)),
|
|
3005
3016
|
dispatch(getGroups2()),
|
|
3006
3017
|
dispatch(setSnackbar3({ message: "Group was removed successfully", autoHideDuration: TIMEOUTS.fiveSeconds }))
|
|
3007
3018
|
])
|
|
@@ -3067,6 +3078,7 @@ var removeDynamicGroup = createAppAsyncThunk(`${sliceName3}/removeDynamicGroup`,
|
|
|
3067
3078
|
return general_api_default.delete(`${import_constants5.inventoryApiUrlV2}/filters/${filterId}`).then(
|
|
3068
3079
|
() => Promise.all([
|
|
3069
3080
|
dispatch(actions3.removeGroup(groupName)),
|
|
3081
|
+
dispatch(removeReportsByGroupName(groupName)),
|
|
3070
3082
|
dispatch(setSnackbar3({ message: "Group was removed successfully", autoHideDuration: TIMEOUTS.fiveSeconds }))
|
|
3071
3083
|
])
|
|
3072
3084
|
);
|