@northern.tech/store 0.7.0 → 0.9.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.js +5 -5
- package/dist/api/general-api.js +2 -2
- package/dist/api/users-api.js +2 -2
- package/dist/appSlice/constants.cjs +2 -1
- package/dist/appSlice/constants.cjs.map +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 +1 -0
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +16 -16
- package/dist/auth.js +2 -2
- package/dist/{chunk-Z5TDXPYZ.js → chunk-7QKCBSFU.js} +2 -2
- package/dist/{chunk-H5YHKATI.js → chunk-GGBE6KJV.js} +2 -2
- package/dist/{chunk-2TYNHR66.js → chunk-GX2TWNLC.js} +2 -2
- package/dist/{chunk-QYIBYU3O.js → chunk-ITGVP27I.js} +7 -7
- package/dist/{chunk-FEMN36LQ.js → chunk-MUZHPRLI.js} +9 -9
- package/dist/{chunk-KT7G4TSF.js → chunk-N3TU2WH2.js} +8 -8
- package/dist/{chunk-N3XU7WJM.js → chunk-OWWCFJZ5.js} +3 -2
- package/dist/chunk-OWWCFJZ5.js.map +1 -0
- package/dist/{chunk-U5QRV6YB.js → chunk-VWNMAIL2.js} +27 -27
- package/dist/chunk-VWNMAIL2.js.map +1 -0
- package/dist/{chunk-S22YDI7V.js → chunk-ZOF45MII.js} +8 -8
- package/dist/{chunk-TR7KJWVG.js → chunk-ZRSVD5QY.js} +16 -16
- package/dist/commonConstants.js +2 -2
- package/dist/commonSelectors.cjs +1 -0
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.js +9 -9
- package/dist/constants.cjs +2 -1
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.js +5 -5
- 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 +1 -0
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +16 -16
- 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 +1 -0
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.js +16 -16
- 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 +1 -0
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +14 -14
- package/dist/onboardingSlice/thunks.cjs +1 -0
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +16 -16
- 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 +2 -1
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.js +16 -16
- 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 +1 -0
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +14 -14
- package/dist/selectors.cjs +1 -0
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.js +22 -22
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js +2 -2
- package/dist/sockethook.js.map +1 -1
- package/dist/store.js +6 -6
- package/dist/storehooks.cjs +2 -1
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +16 -16
- package/dist/thunks.cjs +2 -1
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +16 -16
- package/dist/useDeploymentDevice.cjs +1 -0
- 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 +1 -0
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.js +4 -4
- package/dist/usersSlice/thunks.cjs +1 -0
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +16 -16
- package/dist/utils.cjs +1 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +3 -3
- package/package.json +7 -7
- package/dist/chunk-N3XU7WJM.js.map +0 -1
- package/dist/chunk-U5QRV6YB.js.map +0 -1
- /package/dist/{chunk-Z5TDXPYZ.js.map → chunk-7QKCBSFU.js.map} +0 -0
- /package/dist/{chunk-H5YHKATI.js.map → chunk-GGBE6KJV.js.map} +0 -0
- /package/dist/{chunk-2TYNHR66.js.map → chunk-GX2TWNLC.js.map} +0 -0
- /package/dist/{chunk-QYIBYU3O.js.map → chunk-ITGVP27I.js.map} +0 -0
- /package/dist/{chunk-FEMN36LQ.js.map → chunk-MUZHPRLI.js.map} +0 -0
- /package/dist/{chunk-KT7G4TSF.js.map → chunk-N3TU2WH2.js.map} +0 -0
- /package/dist/{chunk-S22YDI7V.js.map → chunk-ZOF45MII.js.map} +0 -0
- /package/dist/{chunk-TR7KJWVG.js.map → chunk-ZRSVD5QY.js.map} +0 -0
package/dist/actions.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
actions_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ITGVP27I.js";
|
|
4
4
|
import "./chunk-TRKA7XYU.js";
|
|
5
5
|
import "./chunk-CKF76YO4.js";
|
|
6
|
-
import "./chunk-VANBSJS5.js";
|
|
7
6
|
import "./chunk-QOFVCPRW.js";
|
|
8
|
-
import "./chunk-C2LGE3P6.js";
|
|
9
7
|
import "./chunk-HLX5L3IM.js";
|
|
8
|
+
import "./chunk-VANBSJS5.js";
|
|
10
9
|
import "./chunk-KQ6AGXRK.js";
|
|
11
10
|
import "./chunk-OFGCC3GM.js";
|
|
11
|
+
import "./chunk-C2LGE3P6.js";
|
|
12
12
|
import "./chunk-WWED74SG.js";
|
|
13
|
-
import "./chunk-FAJ3I2UQ.js";
|
|
14
13
|
import "./chunk-2DYA3X77.js";
|
|
14
|
+
import "./chunk-FAJ3I2UQ.js";
|
|
15
15
|
import "./chunk-ZKAH3APE.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-OWWCFJZ5.js";
|
|
17
17
|
export {
|
|
18
18
|
actions_default as default
|
|
19
19
|
};
|
package/dist/api/general-api.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "../chunk-5M6EUVNO.js";
|
|
6
6
|
import "../chunk-FDSMCFV5.js";
|
|
7
7
|
import "../chunk-WWED74SG.js";
|
|
8
|
-
import "../chunk-FAJ3I2UQ.js";
|
|
9
8
|
import "../chunk-2DYA3X77.js";
|
|
9
|
+
import "../chunk-FAJ3I2UQ.js";
|
|
10
10
|
import "../chunk-ZKAH3APE.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-OWWCFJZ5.js";
|
|
12
12
|
export {
|
|
13
13
|
authenticatedRequest,
|
|
14
14
|
commonRequestConfig,
|
package/dist/api/users-api.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import "../chunk-5M6EUVNO.js";
|
|
5
5
|
import "../chunk-FDSMCFV5.js";
|
|
6
6
|
import "../chunk-WWED74SG.js";
|
|
7
|
-
import "../chunk-FAJ3I2UQ.js";
|
|
8
7
|
import "../chunk-2DYA3X77.js";
|
|
8
|
+
import "../chunk-FAJ3I2UQ.js";
|
|
9
9
|
import "../chunk-ZKAH3APE.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-OWWCFJZ5.js";
|
|
11
11
|
export {
|
|
12
12
|
users_api_default as default
|
|
13
13
|
};
|
|
@@ -36,6 +36,7 @@ __export(constants_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(constants_exports);
|
|
38
38
|
var import_icons_material = require("@mui/icons-material");
|
|
39
|
+
var import_utils = require("@northern.tech/utils");
|
|
39
40
|
var startingDeviceCount = {
|
|
40
41
|
os: "for first 50 devices",
|
|
41
42
|
professional: "for first 250 devices"
|
|
@@ -165,7 +166,7 @@ var BENEFITS = {
|
|
|
165
166
|
},
|
|
166
167
|
default: { id: "default", benefit: "gain access to this feature", requiredPlan: PLANS.enterprise.id }
|
|
167
168
|
};
|
|
168
|
-
var yes =
|
|
169
|
+
var yes = import_utils.yes;
|
|
169
170
|
var canAccess = yes;
|
|
170
171
|
var DARK_MODE = "dark";
|
|
171
172
|
var LIGHT_MODE = "light";
|
|
@@ -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\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: 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: 50,\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: 250,\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: 1000,\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 = () => true;\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,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;A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CAAmC,eAAe,OAAO,aAAa,GAAG;AAAA,EAClI,eAAe,EAAE,IAAI,iBAAiB,SAAS,mDAAmD,cAAc,MAAM,WAAW,GAAG;AAAA,EACpI,eAAe,EAAE,IAAI,iBAAiB,SAAS,mEAAmE,cAAc,MAAM,aAAa,GAAG;AAAA,EACtJ,SAAS,EAAE,IAAI,WAAW,SAAS,gEAAgE,eAAe,MAAM,aAAa,GAAG;AAAA,EACxI,mBAAmB;AAAA,IACjB,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,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,MAAM;AAClB,IAAM,YAAY;AAElB,IAAM,YAAY;AAClB,IAAM,aAAa;","names":["BarChartIcon","PieChartIcon"]}
|
|
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: 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: 50,\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: 250,\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: 1000,\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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;AAClB,IAAM,aAAa;","names":["BarChartIcon","PieChartIcon","yesUtil"]}
|
package/dist/appSlice/index.js
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
sliceName
|
|
7
7
|
} from "../chunk-OFGCC3GM.js";
|
|
8
8
|
import "../chunk-WWED74SG.js";
|
|
9
|
-
import "../chunk-FAJ3I2UQ.js";
|
|
10
9
|
import "../chunk-2DYA3X77.js";
|
|
10
|
+
import "../chunk-FAJ3I2UQ.js";
|
|
11
11
|
import "../chunk-ZKAH3APE.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-OWWCFJZ5.js";
|
|
13
13
|
export {
|
|
14
14
|
actions,
|
|
15
15
|
appSlice,
|
package/dist/appSlice/mocks.js
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
initialState
|
|
3
3
|
} from "../chunk-OFGCC3GM.js";
|
|
4
4
|
import "../chunk-WWED74SG.js";
|
|
5
|
-
import "../chunk-FAJ3I2UQ.js";
|
|
6
5
|
import "../chunk-2DYA3X77.js";
|
|
6
|
+
import "../chunk-FAJ3I2UQ.js";
|
|
7
7
|
import "../chunk-ZKAH3APE.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-OWWCFJZ5.js";
|
|
9
9
|
|
|
10
10
|
// src/appSlice/mocks.ts
|
|
11
11
|
var mockState = {
|
package/dist/appSlice/thunks.cjs
CHANGED
|
@@ -47,6 +47,7 @@ var import_constants5 = require("@northern.tech/utils/constants");
|
|
|
47
47
|
|
|
48
48
|
// src/appSlice/constants.ts
|
|
49
49
|
var import_icons_material = require("@mui/icons-material");
|
|
50
|
+
var import_utils = require("@northern.tech/utils");
|
|
50
51
|
var startingDeviceCount = {
|
|
51
52
|
os: "for first 50 devices",
|
|
52
53
|
professional: "for first 250 devices"
|