@northern.tech/store 0.3.2 → 0.3.4
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/BillingProfile-ChP2_Sqw.d.cts +45 -0
- package/dist/BillingProfile-ChP2_Sqw.d.ts +45 -0
- package/dist/actions.cjs +22 -23
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.js +12 -12
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.js +5 -5
- package/dist/api/types/Tenant.ts +17 -12
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.js +6 -6
- package/dist/appSlice/constants.cjs +18 -10
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +41 -84
- package/dist/appSlice/constants.d.ts +41 -84
- package/dist/appSlice/constants.js +1 -1
- package/dist/appSlice/index.cjs +1 -3
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js +4 -4
- package/dist/appSlice/thunks.cjs +153 -120
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +28 -27
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js +4 -4
- package/dist/{chunk-NI4SZOCF.js → chunk-4RWZR3BN.js} +23 -25
- package/dist/{chunk-NI4SZOCF.js.map → chunk-4RWZR3BN.js.map} +1 -1
- package/dist/{chunk-YGBFDXXA.js → chunk-7YZCUAXZ.js} +2 -2
- package/dist/{chunk-7PVGDMNM.js → chunk-AFICTIVU.js} +3 -5
- package/dist/{chunk-7PVGDMNM.js.map → chunk-AFICTIVU.js.map} +1 -1
- package/dist/{chunk-YT73QWCN.js → chunk-AUBJUUP3.js} +3 -3
- package/dist/{chunk-UEP36GCI.js → chunk-AVX7VVOK.js} +3 -3
- package/dist/{chunk-4B3IMP4I.js → chunk-BSN2TOQC.js} +1 -1
- package/dist/{chunk-4B3IMP4I.js.map → chunk-BSN2TOQC.js.map} +1 -1
- package/dist/{chunk-VOCOFE4I.js → chunk-DCEKU6UV.js} +2 -2
- package/dist/{chunk-E5LEU5PF.js → chunk-DGQKXSRI.js} +3 -3
- package/dist/{chunk-74OJIKXF.js → chunk-EQLHIPPR.js} +182 -142
- package/dist/chunk-EQLHIPPR.js.map +1 -0
- package/dist/{chunk-MDC7Y3EX.js → chunk-EYCORLYU.js} +44 -40
- package/dist/chunk-EYCORLYU.js.map +1 -0
- package/dist/{chunk-KAQJH2YL.js → chunk-FQDSV3NK.js} +13 -5
- package/dist/chunk-FQDSV3NK.js.map +1 -0
- package/dist/{chunk-XTRPX7JZ.js → chunk-FRSA2YB5.js} +3 -3
- package/dist/chunk-FRSA2YB5.js.map +1 -0
- package/dist/{chunk-ANB5BM5J.js → chunk-FVCYB5OP.js} +37 -32
- package/dist/chunk-FVCYB5OP.js.map +1 -0
- package/dist/{chunk-AMGWP7A4.js → chunk-GAI4VYRZ.js} +2 -2
- package/dist/{chunk-YETZPQFR.js → chunk-GWJIY56H.js} +19 -20
- package/dist/chunk-GWJIY56H.js.map +1 -0
- package/dist/{chunk-Q6M5TTDQ.js → chunk-JO33IORF.js} +2 -2
- package/dist/chunk-JO33IORF.js.map +1 -0
- package/dist/chunk-K4MMUDYT.js +391 -0
- package/dist/chunk-K4MMUDYT.js.map +1 -0
- package/dist/{chunk-XXHONFSQ.js → chunk-L3SY3J5M.js} +4 -4
- package/dist/{chunk-XXHONFSQ.js.map → chunk-L3SY3J5M.js.map} +1 -1
- package/dist/{chunk-JAROCU6M.js → chunk-NCSKCF2S.js} +3 -3
- package/dist/{chunk-CYV6632F.js → chunk-NOQR3TE7.js} +2 -2
- package/dist/{chunk-A6CT6GTI.js → chunk-OEP2D6QL.js} +18 -12
- package/dist/chunk-OEP2D6QL.js.map +1 -0
- package/dist/{chunk-2RJIDREZ.js → chunk-PAIB5V27.js} +32 -23
- package/dist/chunk-PAIB5V27.js.map +1 -0
- package/dist/{chunk-FGKMJS3B.js → chunk-RX32WLVJ.js} +2 -4
- package/dist/chunk-RX32WLVJ.js.map +1 -0
- package/dist/{chunk-YTQUNAZP.js → chunk-X3GZILYD.js} +3 -3
- package/dist/{chunk-25AKG5HH.js → chunk-Y575RZHR.js} +19 -11
- package/dist/chunk-Y575RZHR.js.map +1 -0
- package/dist/{chunk-RX55KAKX.js → chunk-ZWOAFHAR.js} +2 -2
- package/dist/{chunk-NNADGHSL.js → chunk-ZZMFXRQK.js} +14 -14
- package/dist/commonConstants.cjs.map +1 -1
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.cjs +47 -29
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +55 -46
- package/dist/commonSelectors.d.ts +55 -46
- package/dist/commonSelectors.js +11 -11
- package/dist/constants.cjs +35 -19
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +7 -3
- package/dist/deploymentdevicehook.cjs +159 -125
- package/dist/deploymentdevicehook.cjs.map +1 -1
- package/dist/deploymentdevicehook.d.cts +1 -1
- package/dist/deploymentdevicehook.d.ts +1 -1
- package/dist/deploymentdevicehook.js +34 -31
- package/dist/deploymentdevicehook.js.map +1 -1
- package/dist/deploymentsSlice/constants.cjs +8 -8
- package/dist/deploymentsSlice/constants.cjs.map +1 -1
- package/dist/deploymentsSlice/constants.js +3 -3
- package/dist/deploymentsSlice/index.cjs +8 -8
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.js +4 -4
- package/dist/deploymentsSlice/selectors.cjs +8 -8
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.js +4 -4
- package/dist/deploymentsSlice/thunks.cjs +153 -120
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +28 -27
- package/dist/devicesSlice/constants.cjs +11 -8
- package/dist/devicesSlice/constants.cjs.map +1 -1
- package/dist/devicesSlice/constants.d.cts +2 -1
- package/dist/devicesSlice/constants.d.ts +2 -1
- package/dist/devicesSlice/constants.js +5 -3
- package/dist/devicesSlice/index.cjs +8 -8
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.js +4 -4
- package/dist/devicesSlice/selectors.cjs +9 -9
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.js +4 -4
- package/dist/devicesSlice/thunks.cjs +155 -120
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +12 -2
- package/dist/devicesSlice/thunks.d.ts +12 -2
- package/dist/devicesSlice/thunks.js +30 -27
- package/dist/flag-eu-5477R2P4.svg +130 -0
- package/dist/flag-us-HNQAF66I.svg +63 -0
- package/dist/liststatehook.cjs +971 -0
- package/dist/liststatehook.cjs.map +1 -0
- package/dist/liststatehook.d.cts +246 -0
- package/dist/liststatehook.d.ts +246 -0
- package/dist/liststatehook.js +88 -0
- package/dist/liststatehook.js.map +1 -0
- package/dist/locationutils.cjs +942 -0
- package/dist/locationutils.cjs.map +1 -0
- package/dist/locationutils.d.cts +113 -0
- package/dist/locationutils.d.ts +113 -0
- package/dist/locationutils.js +46 -0
- package/dist/locationutils.js.map +1 -0
- package/dist/monitorSlice/constants.cjs +8 -8
- package/dist/monitorSlice/constants.cjs.map +1 -1
- package/dist/monitorSlice/constants.js +3 -3
- package/dist/monitorSlice/index.cjs +8 -8
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.js +4 -4
- package/dist/monitorSlice/thunks.cjs +74 -62
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +24 -24
- package/dist/onboardingSlice/index.cjs +1 -3
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/index.js +1 -1
- package/dist/onboardingSlice/thunks.cjs +157 -124
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +2 -34
- package/dist/onboardingSlice/thunks.d.ts +2 -34
- package/dist/onboardingSlice/thunks.js +28 -29
- package/dist/organizationSlice/constants.cjs +22 -17
- package/dist/organizationSlice/constants.cjs.map +1 -1
- package/dist/organizationSlice/constants.d.cts +33 -1
- package/dist/organizationSlice/constants.d.ts +33 -1
- package/dist/organizationSlice/constants.js +5 -3
- package/dist/organizationSlice/index.cjs +18 -15
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +27 -1012
- package/dist/organizationSlice/index.d.ts +27 -1012
- package/dist/organizationSlice/index.js +4 -4
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +10 -1
- package/dist/organizationSlice/selectors.d.ts +10 -1
- package/dist/organizationSlice/selectors.js +4 -4
- package/dist/organizationSlice/thunks.cjs +1619 -1559
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +62 -37
- package/dist/organizationSlice/thunks.d.ts +62 -37
- package/dist/organizationSlice/thunks.js +28 -27
- package/dist/organizationSlice/types.cjs +19 -0
- package/dist/organizationSlice/types.cjs.map +1 -0
- package/dist/organizationSlice/types.d.cts +5 -0
- package/dist/organizationSlice/types.d.ts +5 -0
- package/dist/organizationSlice/types.js +1 -0
- package/dist/organizationSlice/types.js.map +1 -0
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.js +4 -4
- package/dist/releasesSlice/selectors.cjs +17 -8
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.js +5 -5
- package/dist/releasesSlice/thunks.cjs +123 -94
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +1 -4
- package/dist/releasesSlice/thunks.d.ts +1 -4
- package/dist/releasesSlice/thunks.js +25 -24
- package/dist/selectors.cjs +53 -29
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +10 -1
- package/dist/selectors.d.ts +10 -1
- package/dist/selectors.js +49 -43
- package/dist/sockethook.cjs +529 -0
- package/dist/sockethook.cjs.map +1 -0
- package/dist/sockethook.d.cts +10 -0
- package/dist/sockethook.d.ts +10 -0
- package/dist/sockethook.js +141 -0
- package/dist/sockethook.js.map +1 -0
- package/dist/store.cjs +38 -29
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +13 -231
- package/dist/store.d.ts +13 -231
- package/dist/store.js +18 -16
- package/dist/storehooks.cjs +273 -198
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +38 -37
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +259 -184
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +6 -2
- package/dist/thunks.d.ts +6 -2
- package/dist/thunks.js +30 -29
- package/dist/types-DBj17FZO.d.cts +135 -0
- package/dist/types-DnfZa6xd.d.ts +135 -0
- package/dist/usersSlice/constants.cjs +10 -10
- package/dist/usersSlice/constants.cjs.map +1 -1
- package/dist/usersSlice/constants.d.cts +6 -6
- package/dist/usersSlice/constants.d.ts +6 -6
- package/dist/usersSlice/constants.js +3 -3
- package/dist/usersSlice/index.cjs +10 -10
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.js +4 -4
- package/dist/usersSlice/selectors.cjs +35 -13
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +44 -1
- package/dist/usersSlice/selectors.d.ts +44 -1
- package/dist/usersSlice/selectors.js +13 -7
- package/dist/usersSlice/thunks.cjs +151 -120
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.d.cts +10 -9
- package/dist/usersSlice/thunks.d.ts +10 -9
- package/dist/usersSlice/thunks.js +28 -27
- package/dist/utils.cjs +23 -24
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +4 -4
- package/package.json +7 -6
- package/dist/chunk-25AKG5HH.js.map +0 -1
- package/dist/chunk-2RJIDREZ.js.map +0 -1
- package/dist/chunk-74OJIKXF.js.map +0 -1
- package/dist/chunk-A6CT6GTI.js.map +0 -1
- package/dist/chunk-ANB5BM5J.js.map +0 -1
- package/dist/chunk-FGKMJS3B.js.map +0 -1
- package/dist/chunk-KAQJH2YL.js.map +0 -1
- package/dist/chunk-MDC7Y3EX.js.map +0 -1
- package/dist/chunk-Q6M5TTDQ.js.map +0 -1
- package/dist/chunk-XTRPX7JZ.js.map +0 -1
- package/dist/chunk-YETZPQFR.js.map +0 -1
- /package/dist/{chunk-YGBFDXXA.js.map → chunk-7YZCUAXZ.js.map} +0 -0
- /package/dist/{chunk-YT73QWCN.js.map → chunk-AUBJUUP3.js.map} +0 -0
- /package/dist/{chunk-UEP36GCI.js.map → chunk-AVX7VVOK.js.map} +0 -0
- /package/dist/{chunk-VOCOFE4I.js.map → chunk-DCEKU6UV.js.map} +0 -0
- /package/dist/{chunk-E5LEU5PF.js.map → chunk-DGQKXSRI.js.map} +0 -0
- /package/dist/{chunk-AMGWP7A4.js.map → chunk-GAI4VYRZ.js.map} +0 -0
- /package/dist/{chunk-JAROCU6M.js.map → chunk-NCSKCF2S.js.map} +0 -0
- /package/dist/{chunk-CYV6632F.js.map → chunk-NOQR3TE7.js.map} +0 -0
- /package/dist/{chunk-YTQUNAZP.js.map → chunk-X3GZILYD.js.map} +0 -0
- /package/dist/{chunk-RX55KAKX.js.map → chunk-ZWOAFHAR.js.map} +0 -0
- /package/dist/{chunk-NNADGHSL.js.map → chunk-ZZMFXRQK.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/locationutils.ts","../src/appSlice/constants.ts","../src/commonConstants.tsx","../src/deploymentsSlice/constants.ts","../src/devicesSlice/constants.ts","../src/organizationSlice/constants.ts"],"sourcesContent":["// Copyright 2022 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.\n//@ts-nocheck\nimport { deepCompare, getISOStringBoundaries } from '@northern.tech/utils/helpers';\n\nimport {\n ALL_DEVICES,\n ATTRIBUTE_SCOPES,\n AUDIT_LOGS_TYPES,\n DEPLOYMENT_ROUTES,\n DEPLOYMENT_STATES,\n DEPLOYMENT_TYPES,\n DEVICE_FILTERING_OPTIONS,\n DEVICE_LIST_DEFAULTS,\n UNGROUPED_GROUP,\n emptyFilter\n} from './constants';\n\nconst SEPARATOR = ':';\n\nconst defaultSelector = result => result[0];\n\nconst commonFields = {\n ...Object.keys(DEVICE_LIST_DEFAULTS).reduce((accu, key) => ({ ...accu, [key]: { parse: Number, select: defaultSelector, target: key } }), {}),\n id: { parse: String, select: i => i, target: 'id' },\n issues: { parse: undefined, select: defaultSelector, target: 'selectedIssues' },\n open: { parse: Boolean, select: defaultSelector, target: 'open' }\n};\n\nconst scopes = {\n identity: { delimiter: 'identity', filters: [] },\n inventory: { delimiter: 'inventory', filters: [] },\n monitor: { delimiter: 'monitor', filters: [] },\n system: { delimiter: 'system', filters: [] },\n tags: { delimiter: 'tags', filters: [] }\n};\n\nexport const commonProcessor = searchParams => {\n let params = new URLSearchParams(searchParams);\n const pageState = Object.entries(commonFields).reduce((accu, [key, { parse, select, target }]) => {\n const values = params.getAll(key);\n if (!values.length) {\n return accu;\n }\n if (!parse) {\n accu[target] = values;\n } else {\n try {\n accu[target] = select(values.map(parse));\n } catch (error) {\n console.log('encountered faulty url param, continue...', error);\n }\n }\n return accu;\n }, {});\n Object.keys(commonFields).map(key => params.delete(key));\n const sort = params.has('sort')\n ? params.getAll('sort').reduce((sortAccu, scopedQuery) => {\n const items = scopedQuery.split(SEPARATOR).reverse();\n return ['direction', 'key', 'scope'].reduce((accu, key, index) => {\n if (items[index]) {\n accu[key] = items[index];\n }\n return accu;\n }, sortAccu);\n }, {})\n : undefined;\n params.delete('sort');\n return { pageState, params, sort };\n};\n\nconst legacyDeviceQueryParse = (searchParams, filteringAttributes) => {\n let params = new URLSearchParams(searchParams);\n const result = Object.keys(scopes).reduce((accu, scope) => ({ ...accu, [scope]: [] }), {});\n if (params.get('group')) {\n result.inventory.push({ ...emptyFilter, key: 'group', scope: 'inventory', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: params.get('group') });\n params.delete('group');\n }\n const filters = [...params.keys()].reduce(\n (accu, key) =>\n params.getAll(key).reduce((innerAccu, value) => {\n const scope =\n Object.entries(filteringAttributes).reduce((foundScope, [currentScope, attributes]) => {\n if (foundScope) {\n return foundScope;\n }\n return attributes.includes(key) ? currentScope.substring(0, currentScope.indexOf('Attributes')) : foundScope;\n }, undefined) ?? ATTRIBUTE_SCOPES.inventory;\n innerAccu[scope].push({ ...emptyFilter, scope, key, operator: DEVICE_FILTERING_OPTIONS.$eq.key, value });\n return innerAccu;\n }, accu),\n result\n );\n [...params.keys()].map(key => params.delete(key));\n return { filters, params };\n};\n\nconst scopedFilterParse = searchParams => {\n let params = new URLSearchParams(searchParams);\n const filters = Object.keys(scopes).reduce(\n (accu, scope) => {\n accu[scope] = [];\n if (!params.has(scope)) {\n return accu;\n }\n accu[scope] = params.getAll(scope).map(scopedQuery => {\n const items = scopedQuery.split(SEPARATOR);\n // URLSearchParams will automatically decode any URI encoding present in the query string, thus we have to also handle queries with a SEPARATOR separately\n return { ...emptyFilter, scope, key: items[0], operator: `$${items[1]}`, value: items.slice(2).join(SEPARATOR) };\n });\n return accu;\n },\n { ...scopes }\n );\n Object.keys(scopes).map(scope => params.delete(scope));\n return { filters, params };\n};\n\n// filters, selectedGroup\nexport const parseDeviceQuery = (searchParams, extraProps = {}) => {\n let queryParams = new URLSearchParams(searchParams);\n const { filteringAttributes = {}, pageState = {} } = extraProps;\n const pageStateExtension = pageState.id?.length === 1 ? { open: true } : {};\n\n let scopedFilters;\n const refersOldStyleAttributes = Object.values(filteringAttributes).some(scopeValues => scopeValues.some(scopedValue => queryParams.get(scopedValue)));\n if ((refersOldStyleAttributes && !Object.keys(scopes).some(scope => queryParams.get(scope))) || queryParams.get('group')) {\n const { filters, params } = legacyDeviceQueryParse(queryParams, filteringAttributes);\n scopedFilters = filters;\n queryParams = params;\n } else {\n const { filters, params } = scopedFilterParse(queryParams);\n scopedFilters = filters;\n queryParams = params;\n }\n\n let groupName = '';\n const groupFilterIndex = scopedFilters.inventory.findIndex(filter => filter.key === 'group' && filter.operator === DEVICE_FILTERING_OPTIONS.$eq.key);\n if (groupFilterIndex > -1) {\n groupName = scopedFilters.inventory[groupFilterIndex].value;\n scopedFilters.inventory.splice(groupFilterIndex, 1);\n }\n\n const detailsTab = queryParams.has('tab') ? queryParams.get('tab') : '';\n return { detailsTab, filters: Object.values(scopedFilters).flat(), groupName, ...pageStateExtension };\n};\n\nconst formatSorting = (sort, { sort: sortDefault }) => {\n if (!sort || deepCompare(sort, sortDefault)) {\n return '';\n }\n const sortQuery = ['scope', 'key', 'direction']\n .reduce((accu, key) => {\n if (!sort[key]) {\n return accu;\n }\n accu.push(sort[key]);\n return accu;\n }, [])\n .join(SEPARATOR);\n return `sort=${sortQuery}`;\n};\n\nexport const formatPageState = ({ selectedId, selectedIssues, page, perPage, sort }, { defaults }) =>\n Object.entries({ page, perPage, id: selectedId, issues: selectedIssues, open: selectedId ? true : undefined })\n .reduce(\n (accu, [key, value]) => {\n if (Array.isArray(value)) {\n accu.push(...value.map(item => `${key}=${encodeURIComponent(item)}`));\n } else if ((DEVICE_LIST_DEFAULTS[key] != value || !DEVICE_LIST_DEFAULTS.hasOwnProperty(key)) && value) {\n accu.push(`${key}=${encodeURIComponent(value)}`);\n }\n return accu;\n },\n [formatSorting(sort, defaults)]\n )\n .filter(i => i)\n .join('&');\n\nconst stripFilterOperator = operator => operator.replaceAll('$', '');\n\nconst formatFilters = filters => {\n const result = filters\n // group all filters by their scope to get a more organized result\n .reduce(\n (accu, filter) => {\n const { scope = ATTRIBUTE_SCOPES.inventory, operator = '$eq' } = filter;\n accu[scope].add(`${scopes[scope].delimiter}=${filter.key}${SEPARATOR}${stripFilterOperator(operator)}${SEPARATOR}${encodeURIComponent(filter.value)}`);\n return accu;\n },\n Object.keys(scopes).reduce((accu, item) => ({ ...accu, [item]: new Set() }), {})\n );\n // boil it all down to a single line containing all filters\n return Object.values(result)\n .map(filterSet => [...filterSet])\n .flat();\n};\n\nexport const formatDeviceSearch = ({ pageState, filters, selectedGroup }) => {\n let activeFilters = [...filters];\n if (selectedGroup && selectedGroup !== ALL_DEVICES) {\n const isUngroupedGroup = selectedGroup === UNGROUPED_GROUP.id;\n activeFilters = isUngroupedGroup\n ? activeFilters.filter(\n filter => !(filter.key === 'group' && filter.scope === ATTRIBUTE_SCOPES.system && filter.operator === DEVICE_FILTERING_OPTIONS.$nin.key)\n )\n : activeFilters;\n const groupName = isUngroupedGroup ? UNGROUPED_GROUP.name : selectedGroup;\n activeFilters.push({ scope: ATTRIBUTE_SCOPES.inventory, key: 'group', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: groupName });\n }\n const formattedFilters = formatFilters(activeFilters).filter(i => i);\n if (pageState.detailsTab && pageState.selectedId) {\n formattedFilters.push(`tab=${pageState.detailsTab}`);\n }\n return formattedFilters.join('&');\n};\n\nexport const generateDevicePath = ({ pageState }) => {\n const { state: selectedState } = pageState;\n const path = ['/devices'];\n if (selectedState !== '') {\n path.push(selectedState);\n }\n return path.join('/');\n};\n\nconst formatDates = ({ endDate, params, startDate, today, tonight }) => {\n if (endDate && endDate !== tonight) {\n params.set('endDate', endDate.split('T')[0]);\n }\n if (startDate && startDate !== today) {\n params.set('startDate', startDate.split('T')[0]);\n }\n return params;\n};\n\nconst paramReducer = (accu, [key, value]) => {\n if (value) {\n accu.set(key, value);\n }\n return accu;\n};\n\nexport const formatAuditlogs = ({ pageState }, { today, tonight }) => {\n const { detail, endDate, startDate, type, user } = pageState;\n let params = new URLSearchParams();\n let userId = user;\n if (user?.id) {\n userId = user.id;\n }\n params = Object.entries({ objectId: detail, userId }).reduce(paramReducer, params);\n if (type) {\n params.set('objectType', type.value ?? type);\n }\n params = formatDates({ endDate, params, startDate, today, tonight });\n return params.toString();\n};\n\nexport const parseDateParams = (params, today, tonight) => {\n let endDate = tonight;\n if (params.get('endDate')) {\n endDate = getISOStringBoundaries(new Date(params.get('endDate'))).end;\n }\n let startDate = today;\n if (params.get('startDate')) {\n startDate = getISOStringBoundaries(new Date(params.get('startDate'))).start;\n }\n return { endDate, startDate };\n};\n\nexport const parseAuditlogsQuery = (params, { today, tonight }) => {\n const type = AUDIT_LOGS_TYPES.find(typeObject => typeObject.value === params.get('objectType'));\n const { endDate, startDate } = parseDateParams(params, today, tonight);\n return {\n detail: params.get('objectId'),\n endDate,\n startDate,\n type,\n user: params.get('userId')\n };\n};\n\nconst formatActiveDeployments = (pageState, { defaults }) =>\n [DEPLOYMENT_STATES.inprogress, DEPLOYMENT_STATES.pending]\n .reduce((accu, state) => {\n const { page, perPage } = pageState[state] ?? {};\n const stateDefaults = defaults[state] ?? {};\n const items = Object.entries({ page, perPage })\n .reverse()\n .reduce((keyAccu, [key, value]) => {\n if ((value && value !== stateDefaults[key]) || keyAccu.length) {\n keyAccu.unshift(value || stateDefaults[key]);\n }\n return keyAccu;\n }, []);\n if (items.length) {\n accu.push(`${state}=${items.join(SEPARATOR)}`);\n }\n return accu;\n }, [])\n .filter(i => i)\n .join('&');\n\nexport const formatDeployments = ({ deploymentObject, pageState }, { defaults, today, tonight }) => {\n const { state: selectedState, showCreationDialog } = pageState.general;\n let params = new URLSearchParams();\n if (showCreationDialog) {\n params.set('open', true);\n if (deploymentObject.release) {\n params.set('release', deploymentObject.release.name);\n }\n if (deploymentObject.devices?.length) {\n deploymentObject.devices.map(({ id }) => params.append('deviceId', id));\n }\n }\n let pageStateQuery;\n if (selectedState === DEPLOYMENT_ROUTES.finished.key) {\n const { endDate, search, startDate, type } = pageState[selectedState];\n params = formatDates({ endDate, params, startDate, today, tonight });\n params = Object.entries({ search, type }).reduce(paramReducer, params);\n pageStateQuery = formatPageState(pageState[selectedState], { defaults });\n } else if (selectedState === DEPLOYMENT_ROUTES.scheduled.key) {\n pageStateQuery = formatPageState(pageState[selectedState], { defaults });\n } else {\n pageStateQuery = formatActiveDeployments(pageState, { defaults });\n }\n return [pageStateQuery, params.toString()].filter(i => i).join('&');\n};\n\nconst deploymentsPath = 'deployments/';\nconst parseDeploymentsPath = path => {\n const parts = path.split(deploymentsPath);\n if (parts.length > 1 && Object.keys(DEPLOYMENT_ROUTES).includes(parts[1])) {\n return parts[1];\n }\n return '';\n};\n\nconst parseActiveDeployments = params =>\n [DEPLOYMENT_STATES.inprogress, DEPLOYMENT_STATES.pending].reduce((accu, state) => {\n if (!params.has(state)) {\n return accu;\n }\n const items = params.get(state).split(SEPARATOR);\n accu[state] = ['page', 'perPage'].reduce((stateAccu, key, index) => (items[index] ? { ...stateAccu, [key]: Number(items[index]) } : stateAccu), {});\n return accu;\n }, {});\n\nconst deploymentFields = {\n deviceId: { attribute: 'devices', parse: id => ({ id }), select: i => i },\n release: { attribute: 'release', parse: String, select: defaultSelector }\n};\n\nexport const parseDeploymentsQuery = (params, { pageState, location, tonight }) => {\n // for deployments we get a startDate implicitly from a list of retrieved deployments if none is set, thus we're not defaulting to today\n const { endDate, startDate } = parseDateParams(params, '', tonight);\n const deploymentObject = Object.entries(deploymentFields).reduce(\n (accu, [key, { attribute, parse, select }]) => (params.has(key) ? { ...accu, [attribute]: select(params.getAll(key).map(parse)) } : accu),\n {}\n );\n const { state: selectedState, id, open, ...remainingPageState } = pageState;\n const tab = parseDeploymentsPath(location.pathname);\n const deploymentsTab = tab || selectedState || DEPLOYMENT_ROUTES.active.key;\n\n let state = {\n deploymentObject,\n general: {\n showCreationDialog: Boolean(open && !id),\n showReportDialog: Boolean(open && id),\n state: deploymentsTab\n }\n };\n if (deploymentsTab === DEPLOYMENT_ROUTES.finished.key) {\n const type = DEPLOYMENT_TYPES[params.get('type')] || '';\n const search = params.get('search') || '';\n state[deploymentsTab] = { ...remainingPageState, endDate, search, startDate, type };\n } else if (deploymentsTab === DEPLOYMENT_ROUTES.scheduled.key) {\n state[deploymentsTab] = { ...remainingPageState };\n } else {\n state = {\n ...state,\n ...parseActiveDeployments(params)\n };\n }\n return state;\n};\n\nexport const generateDeploymentsPath = ({ pageState }) => {\n const { state: selectedState = DEPLOYMENT_ROUTES.active.key } = pageState.general;\n return `/deployments/${selectedState}`;\n};\n\nconst releasesRoot = '/releases';\nexport const formatReleases = ({ pageState: { searchTerm, selectedTags = [], tab, type } }) =>\n Object.entries({ name: searchTerm, tab, type })\n .reduce(\n (accu, [key, value]) => (value ? [...accu, `${key}=${value}`] : accu),\n selectedTags.map(tag => `tag=${tag}`)\n )\n .join('&');\n\nexport const generateReleasesPath = ({ pageState: { selectedRelease } }) =>\n `${releasesRoot}${selectedRelease ? `/${encodeURIComponent(selectedRelease)}` : ''}`;\n\nexport const parseReleasesQuery = (queryParams, extraProps) => {\n const name = queryParams.has('name') ? queryParams.get('name') : '';\n const tab = queryParams.has('tab') ? queryParams.get('tab') : undefined;\n const tags = queryParams.has('tag') ? queryParams.getAll('tag') : [];\n const type = queryParams.has('type') ? queryParams.get('type') : '';\n let selectedRelease = decodeURIComponent(extraProps.location.pathname.substring(releasesRoot.length + 1));\n if (!selectedRelease && extraProps.pageState.id?.length) {\n selectedRelease = extraProps.pageState.id[0];\n }\n return { searchTerm: name, selectedRelease, tab, tags, type };\n};\n\nconst tenantsRoot = '/tenants';\n\nexport const generateTenantPath = ({ pageState: { selectedTenant } }) => {\n if (selectedTenant) {\n return `${tenantsRoot}/${encodeURIComponent(selectedTenant)}`;\n } else {\n return tenantsRoot;\n }\n};\nexport const generateTenantPathById = id => (id ? `${tenantsRoot}/${encodeURIComponent(id)}` : tenantsRoot);\n\nexport const parseTenantsQuery = (queryParams, extraProps) => {\n const name = queryParams.has('name') ? queryParams.get('name') : '';\n let selectedTenant = extraProps.location.pathname.substring(tenantsRoot.length + 1);\n if (!selectedTenant && extraProps.pageState.id?.length) {\n selectedTenant = extraProps.pageState.id[0];\n }\n return { name, selectedTenant };\n};\n\nexport const formatTenants = () => '';\n","// 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.\n//@ts-nocheck\nimport { BarChart as BarChartIcon, PieChartOutline as PieChartIcon } from '@mui/icons-material';\n\nimport FlagEU from '../../../../assets/img/flag-eu.svg';\nimport FlagUS from '../../../../assets/img/flag-us.svg';\n\nconst startingDeviceCount = {\n os: 'for first 50 devices',\n professional: 'for first 250 devices'\n};\n\nexport const apiRoot = '/api/management';\nexport const apiUrl = {\n v1: `${apiRoot}/v1`,\n v2: `${apiRoot}/v2`\n};\n\nexport const headerNames = {\n link: 'link',\n location: 'location',\n total: 'x-total-count'\n};\n\nexport const chartTypes = {\n bar: { key: 'bar', Icon: BarChartIcon },\n pie: { key: 'pie', Icon: PieChartIcon }\n};\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 eu: { key: 'eu', title: 'EU', location: 'eu.hosted.mender.io', icon: FlagEU },\n us: { key: 'us', title: 'US', location: 'hosted.mender.io', icon: FlagUS }\n};\nexport type AvailablePlans = 'os' | 'professional' | 'enterprise';\n\nexport type Plan = {\n deviceCount: string;\n features: string[];\n id: AvailablePlans;\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 offer: true,\n price: '$32 / month',\n deviceCount: startingDeviceCount.os,\n offerprice: '$23 / month for first 50 devices',\n price2: 'for first 6 months;\\n$29/month thereafter',\n features: ['Access to core features of Mender', 'Basic support']\n },\n professional: {\n id: 'professional',\n name: 'Professional',\n offer: true,\n price: '$269 / month',\n deviceCount: startingDeviceCount.professional,\n offerprice: '$200 / month for first 50 devices',\n price2: 'for first 6 months;\\n$249/month thereafter',\n features: ['Advanced OTA features', 'Higher priority support']\n },\n enterprise: {\n id: 'enterprise',\n name: 'Enterprise',\n price: 'Custom pricing',\n deviceCount: 'Unlimited devices',\n features: ['All Mender features', 'Advanced security features', 'SLA-backed support']\n }\n};\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 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 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};\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};\n\nexport const yes = () => true;\nexport const canAccess = yes;\n\nexport const DARK_MODE = 'dark';\nexport const LIGHT_MODE = 'light';\n\nexport const APPLICATION_JSON_CONTENT_TYPE = 'application/json';\nexport const APPLICATION_JWT_CONTENT_TYPE = 'application/jwt';\n","// Copyright 2024 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.\n// @ts-nocheck\nimport React from 'react';\n\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\n\nexport const DEVICE_LIST_DEFAULTS = {\n page: 1,\n perPage: 20\n};\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const ALL_DEVICES = 'All devices';\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport const DEVICE_FILTERING_OPTIONS = {\n $eq: { key: '$eq', title: 'equals', shortform: '=' },\n $ne: { key: '$ne', title: 'not equal', shortform: '!=' },\n $gt: {\n key: '$gt',\n title: '>',\n shortform: '>',\n help: 'The \"greater than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $gte: {\n title: '>=',\n shortform: '>=',\n help: 'The \"greater than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lt: {\n key: '$lt',\n title: '<',\n shortform: '<',\n help: 'The \"lesser than\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $lte: {\n title: '<=',\n shortform: '<=',\n help: 'The \"lesser than or equal\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $ltne: {\n key: '$ltne',\n title: '$ltne',\n shortform: 'ltne',\n help: 'The \"lesser than or does not exist\" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'\n },\n $in: {\n key: '$in',\n title: 'in',\n shortform: 'in',\n help: 'The \"in\" operator accepts a list of comma-separated values. It matches if the selected field is equal to one of the specified values.'\n },\n $nin: {\n key: '$nin',\n title: 'not in',\n shortform: 'not in',\n help: `The \"not in\" operator accepts a list of comma-separated values. It matches if the selected field's value is not equal to any of the specified options.`\n },\n $exists: {\n key: '$exists',\n title: 'exists',\n shortform: 'exists',\n value: true,\n help: `The \"exists\" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`\n },\n $nexists: {\n key: '$nexists',\n title: `doesn't exist`,\n shortform: `doesn't exist`,\n value: true,\n help: `The \"doesn't exist\" operator matches if the selected field's value has no value. No value needs to be provided for this operator.`\n },\n $regex: {\n key: '$regex',\n title: `matches regular expression`,\n shortform: `matches`,\n help: `The \"regular expression\" operator matches the selected field's value with a Perl compatible regular expression (PCRE), automatically anchored by ^. If the regular expression is not valid, the filter will produce no results. If you need to specify options and flags, you can provide the full regex in the format of /regex/flags, for example.`\n }\n};\n\nexport const DEVICE_ISSUE_OPTIONS = {\n issues: {\n isCategory: true,\n key: 'issues',\n title: 'Devices with issues',\n filterRule: {}\n },\n offline: {\n issueCategory: 'issues',\n key: 'offline',\n needsFullFiltering: true,\n needsMonitor: false,\n needsReporting: false,\n filterRule: {\n scope: 'system',\n key: 'check_in_time',\n operator: DEVICE_FILTERING_OPTIONS.$ltne.key,\n value: ({ offlineThreshold }) => offlineThreshold\n },\n title: 'Offline devices'\n },\n failedLastUpdate: {\n issueCategory: 'issues',\n key: 'failedLastUpdate',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'failed_last_update', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Deployment failed'\n },\n monitoring: {\n issueCategory: 'issues',\n key: 'monitoring',\n needsFullFiltering: false,\n needsMonitor: true,\n needsReporting: false,\n filterRule: { scope: 'monitor', key: 'alerts', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Monitoring alert'\n },\n authRequests: {\n key: 'authRequests',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'auth_requests', operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },\n title: 'Devices with new authentication requests'\n },\n gatewayDevices: {\n key: 'gatewayDevices',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'inventory', key: 'mender_is_gateway', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: 'true' },\n title: 'Gateway devices'\n }\n};\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const SORTING_OPTIONS = {\n asc: 'asc',\n desc: 'desc'\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport const ATTRIBUTE_SCOPES = {\n inventory: 'inventory',\n identity: 'identity',\n monitor: 'monitor',\n system: 'system',\n tags: 'tags'\n};\n\nexport const defaultIdAttribute = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nconst credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n};\nexport const MAX_PAGE_SIZE = 500;\n\nexport const ALL_RELEASES = 'All releases';\n\nexport type UiPermissionsDefinition = Readonly<{\n auditlog: string[];\n deployments?: string[]; // deployments are so far only covered indirectly through releases + device group permissions\n groups: Record<string, string[]>;\n releases: Record<string, string[]>;\n tenantManagement: string[];\n userManagement: string[];\n}>;\n\nexport type UiRoleDefinition = {\n description: string;\n editable?: boolean;\n isCustom?: boolean;\n name: string;\n permissions?: object[];\n uiPermissions: UiPermissionsDefinition;\n};\n\nexport const emptyUiPermissions: UiPermissionsDefinition = Object.freeze({\n auditlog: [],\n deployments: [],\n groups: Object.freeze({}),\n releases: Object.freeze({}),\n tenantManagement: [],\n userManagement: []\n});\n\nexport const emptyRole: UiRoleDefinition = Object.freeze({\n name: undefined,\n description: '',\n permissions: [],\n uiPermissions: Object.freeze({ ...emptyUiPermissions })\n});\n","// 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 { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS, apiUrl } from '@northern.tech/store/constants';\n\nconst alreadyInstalled = 'already-installed';\n\nexport const deploymentsApiUrl = `${apiUrl.v1}/deployments`;\nexport const deploymentsApiUrlV2 = `${apiUrl.v2}/deployments`;\n\nexport const deploymentSubstates = {\n aborted: 'aborted',\n alreadyInstalled,\n decommissioned: 'decommissioned',\n downloading: 'downloading',\n failure: 'failure',\n installing: 'installing',\n noartifact: 'noartifact',\n pause_before_committing: 'pause_before_committing',\n pause_before_installing: 'pause_before_installing',\n pause_before_rebooting: 'pause_before_rebooting',\n pending: 'pending',\n rebooting: 'rebooting',\n success: 'success'\n};\n\nexport const deploymentStatesToSubstates = {\n failures: [deploymentSubstates.failure, deploymentSubstates.aborted, deploymentSubstates.decommissioned],\n inprogress: [deploymentSubstates.downloading, deploymentSubstates.installing, deploymentSubstates.rebooting],\n paused: [deploymentSubstates.pause_before_installing, deploymentSubstates.pause_before_rebooting, deploymentSubstates.pause_before_committing],\n pending: [deploymentSubstates.pending],\n successes: [deploymentSubstates.success, deploymentSubstates.alreadyInstalled, deploymentSubstates.noartifact]\n};\n\nexport const deploymentStatesToSubstatesWithSkipped = {\n ...deploymentStatesToSubstates,\n failures: [deploymentSubstates.failure],\n skipped: [deploymentSubstates.aborted, deploymentSubstates.noartifact, deploymentSubstates.alreadyInstalled, deploymentSubstates.decommissioned],\n successes: [deploymentSubstates.success]\n};\nexport const installationSubstatesMap = {\n download: {\n title: 'download',\n done: 'downloaded',\n successIndicators: [deploymentSubstates.installing, deploymentSubstates.rebooting, ...deploymentStatesToSubstates.paused, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactInstall_Enter'\n },\n install: {\n title: 'install',\n done: 'installed',\n successIndicators: [\n deploymentSubstates.rebooting,\n deploymentSubstates.pause_before_rebooting,\n deploymentSubstates.pause_before_committing,\n deploymentSubstates.success\n ],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactReboot_Enter'\n },\n reboot: {\n title: 'reboot',\n done: 'rebooted',\n successIndicators: [deploymentSubstates.pause_before_committing, deploymentSubstates.success],\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: 'ArtifactCommit_Enter'\n },\n commit: {\n title: 'commit',\n done: 'committed',\n successIndicators: deploymentStatesToSubstates.successes,\n failureIndicators: deploymentStatesToSubstates.failures,\n pauseConfigurationIndicator: undefined\n }\n};\n\nexport const DEPLOYMENT_STATES = {\n finished: 'finished',\n inprogress: 'inprogress',\n pending: 'pending',\n scheduled: 'scheduled'\n};\n\nexport const listDefaultsByState = {\n [DEPLOYMENT_STATES.inprogress]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.pending]: { page: 1, perPage: 10 },\n [DEPLOYMENT_STATES.scheduled]: { ...DEVICE_LIST_DEFAULTS },\n [DEPLOYMENT_STATES.finished]: { ...DEVICE_LIST_DEFAULTS },\n sort: { direction: SORTING_OPTIONS.desc }\n};\n\nexport const DEFAULT_PENDING_INPROGRESS_COUNT = 10;\nexport const DEPLOYMENT_ROUTES = {\n active: {\n key: 'active',\n route: '/deployments/active',\n states: [DEPLOYMENT_STATES.pending, DEPLOYMENT_STATES.inprogress],\n title: 'Active'\n },\n finished: {\n key: 'finished',\n route: '/deployments/finished',\n states: [DEPLOYMENT_STATES.finished],\n title: 'Finished'\n },\n scheduled: {\n key: 'scheduled',\n route: '/deployments/scheduled',\n states: [DEPLOYMENT_STATES.scheduled],\n title: 'Scheduled'\n }\n};\nexport const DEPLOYMENT_TYPES = {\n software: 'software',\n configuration: 'configuration'\n};\nexport const defaultStats = {\n [deploymentSubstates.aborted]: 0,\n [deploymentSubstates.alreadyInstalled]: 0,\n [deploymentSubstates.decommissioned]: 0,\n [deploymentSubstates.downloading]: 0,\n [deploymentSubstates.failure]: 0,\n [deploymentSubstates.installing]: 0,\n [deploymentSubstates.noartifact]: 0,\n [deploymentSubstates.pause_before_committing]: 0,\n [deploymentSubstates.pause_before_installing]: 0,\n [deploymentSubstates.pause_before_rebooting]: 0,\n [deploymentSubstates.pending]: 0,\n [deploymentSubstates.rebooting]: 0,\n [deploymentSubstates.success]: 0\n};\nexport const deploymentDisplayStates = {\n finished: 'Finished',\n scheduled: 'Scheduled',\n skipped: 'Skipped',\n paused: 'Paused',\n pending: 'Pending',\n inprogress: 'In Progress',\n success: 'Success',\n successes: 'Success',\n failure: 'Fail',\n failures: 'Fail'\n};\n\nexport const deploymentPrototype = {\n devices: {},\n name: undefined,\n statistics: { status: {} }\n};\n\nexport const pauseMap = {\n [deploymentSubstates.pause_before_installing]: {\n title: installationSubstatesMap.download.done,\n followUp: installationSubstatesMap.download.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_rebooting]: {\n title: installationSubstatesMap.install.done,\n followUp: installationSubstatesMap.install.pauseConfigurationIndicator\n },\n [deploymentSubstates.pause_before_committing]: {\n title: installationSubstatesMap.reboot.done,\n followUp: installationSubstatesMap.reboot.pauseConfigurationIndicator\n }\n};\nexport const limitDefault = { min: 5, max: 100, default: 10 };\n","// 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 { DEVICE_FILTERING_OPTIONS, apiUrl } from '@northern.tech/store/constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key, scope: 'inventory' };\n\nexport const deviceAuthV2 = `${apiUrl.v2}/devauth`;\nexport const deviceConnect = `${apiUrl.v1}/deviceconnect`;\nexport const inventoryApiUrl = `${apiUrl.v1}/inventory`;\nexport const inventoryApiUrlV2 = `${apiUrl.v2}/inventory`;\nexport const deviceConfig = `${apiUrl.v1}/deviceconfig/configurations/device`;\nexport const reportingApiUrl = `${apiUrl.v1}/reporting`;\nexport const iotManagerBaseURL = `${apiUrl.v1}/iot-manager`;\n\n// see https://github.com/mendersoftware/go-lib-micro/tree/master/ws\n// for the description of proto_header and the consts\n// *Note*: this needs to be aligned with mender-connect and deviceconnect.\nexport const DEVICE_MESSAGE_PROTOCOLS = {\n Shell: 1\n};\nexport const DEVICE_MESSAGE_TYPES = {\n Delay: 'delay',\n New: 'new',\n Ping: 'ping',\n Pong: 'pong',\n Resize: 'resize',\n Shell: 'shell',\n Stop: 'stop'\n};\n\n// we can't include the dismiss state with the rest since this would include dismissed devices in several queries\nexport const DEVICE_DISMISSAL_STATE = 'dismiss';\nexport const ALL_DEVICE_STATES = 'any';\nexport const DEVICE_STATES = {\n accepted: 'accepted',\n pending: 'pending',\n preauth: 'preauthorized',\n rejected: 'rejected'\n};\nexport const DEVICE_CONNECT_STATES = {\n connected: 'connected',\n disconnected: 'disconnected',\n unknown: 'unknown'\n};\n\nexport const geoAttributes = ['geo-lat', 'geo-lon'].map(attribute => ({ attribute, scope: 'inventory' }));\n\nexport const REPORT_CHART_SIZE_LIMIT = 6;\n","// Copyright 2020 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.\n// @ts-nocheck\nimport { EXTERNAL_PROVIDER, apiUrl, useradmApiUrl } from '@northern.tech/store/constants';\n\nimport { Integration } from '../api/types/Integration';\n\nexport const auditLogsApiUrl = `${apiUrl.v1}/auditlogs`;\nexport const tenantadmApiUrlv1 = `${apiUrl.v1}/tenantadm`;\nexport const tenantadmApiUrlv2 = `${apiUrl.v2}/tenantadm`;\nexport const ssoIdpApiUrlv1 = `${apiUrl.v1}/useradm/sso/idp/metadata`;\n\nexport const XML_METADATA_FORMAT = 'xml';\nexport const JSON_METADATA_FORMAT = 'json';\n\nexport const getSamlStartUrl = id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/login`;\nexport const getOidcStartUrl = id => `${window.location.origin}${useradmApiUrl}/oidc/${id}/start`;\n\nexport const SSO_TYPES = {\n saml: {\n id: 'saml',\n type: 'saml',\n title: 'SAML',\n metadataFormat: XML_METADATA_FORMAT,\n editorLanguage: XML_METADATA_FORMAT,\n contentType: 'application/samlmetadata+xml',\n getStartUrl: getSamlStartUrl,\n configDetails: [\n { key: 'entityID', label: 'Entity ID', getValue: id => `${window.location.origin}${useradmApiUrl}/sso/sp/metadata/${id}` },\n { key: 'acs', label: 'ACS URL', getValue: id => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/acs` },\n { key: 'startURL', label: 'Start URL', getValue: getSamlStartUrl }\n ]\n },\n oidc: {\n id: 'oidc',\n type: 'oidc',\n title: 'OpenID Connect',\n metadataFormat: JSON_METADATA_FORMAT,\n editorLanguage: JSON_METADATA_FORMAT,\n contentType: 'application/json',\n getStartUrl: getOidcStartUrl,\n configDetails: [{ key: 'startURL', label: 'Start Url', getValue: getOidcStartUrl }]\n }\n};\n\nexport const auditlogTypes = {\n artifact: { title: 'Artifact', queryParameter: 'object_type', value: 'artifact' },\n deployment: { title: 'Deployment', queryParameter: 'object_deployment_name', value: 'deployment' },\n device: { title: 'Device', queryParameter: 'object_id', value: 'device' },\n user_access_token: { title: 'Personal Access Token', queryParameter: 'user_access_token', value: 'user_access_token' },\n user: { title: 'User', queryParameter: 'object_id', value: 'user' },\n tenant: { title: 'Tenant', queryParameter: 'object_id', value: 'tenant' }\n};\n\nexport const AUDIT_LOGS_TYPES = [auditlogTypes.artifact, auditlogTypes.deployment, auditlogTypes.device, auditlogTypes.user_access_token, auditlogTypes.user];\nexport const SP_AUDIT_LOGS_TYPES = [auditlogTypes.user, auditlogTypes.tenant];\n\nexport interface Webhook extends Integration {\n provider: Integration.provider.WEBHOOK;\n scopes?: string[];\n}\n\nexport const emptyWebhook: Webhook = {\n description: '',\n enabled: true,\n credentials: {\n type: EXTERNAL_PROVIDER.webhook.credentialsType,\n [EXTERNAL_PROVIDER.webhook.credentialsType]: {\n secret: '',\n url: ''\n }\n }\n};\nexport const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcA,qBAAoD;;;ACApD,4BAA0E;AAK1E,IAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,cAAc;AAChB;AAEO,IAAM,UAAU;AAChB,IAAM,SAAS;AAAA,EACpB,IAAI,GAAG,OAAO;AAAA,EACd,IAAI,GAAG,OAAO;AAChB;AAQO,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;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AAM,yBAAyB,QAAO,KAAK,GAAG,WAAW,IAAI,mBAAmB,EAAE,CAAC,KAAK;AAExF,IAAM,oBAAoB,CAAC,aAAa,eAAe;AAC5D,QAAM,OAAO,YAAY,IAAI,MAAM,IAAI,YAAY,IAAI,MAAM,IAAI;AACjE,MAAI,iBAAiB,WAAW,SAAS,SAAS,UAAU,YAAY,SAAS,CAAC;AAClF,MAAI,CAAC,kBAAkB,WAAW,UAAU,IAAI,QAAQ;AACtD,qBAAiB,WAAW,UAAU,GAAG,CAAC;AAAA,EAC5C;AACA,SAAO,EAAE,MAAM,eAAe;AAChC;AAEO,IAAM,gBAAgB,MAAM;","names":["BarChartIcon","PieChartIcon","AWS","Azure"]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
declare const commonProcessor: (searchParams: any) => {
|
|
2
|
+
pageState: {};
|
|
3
|
+
params: URLSearchParams;
|
|
4
|
+
sort: {} | undefined;
|
|
5
|
+
};
|
|
6
|
+
declare const parseDeviceQuery: (searchParams: any, extraProps?: {}) => {
|
|
7
|
+
open: boolean;
|
|
8
|
+
detailsTab: string | null;
|
|
9
|
+
filters: unknown[];
|
|
10
|
+
groupName: string;
|
|
11
|
+
} | {
|
|
12
|
+
open?: undefined;
|
|
13
|
+
detailsTab: string | null;
|
|
14
|
+
filters: unknown[];
|
|
15
|
+
groupName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const formatPageState: ({ selectedId, selectedIssues, page, perPage, sort }: {
|
|
18
|
+
selectedId: any;
|
|
19
|
+
selectedIssues: any;
|
|
20
|
+
page: any;
|
|
21
|
+
perPage: any;
|
|
22
|
+
sort: any;
|
|
23
|
+
}, { defaults }: {
|
|
24
|
+
defaults: any;
|
|
25
|
+
}) => string;
|
|
26
|
+
declare const formatDeviceSearch: ({ pageState, filters, selectedGroup }: {
|
|
27
|
+
pageState: any;
|
|
28
|
+
filters: any;
|
|
29
|
+
selectedGroup: any;
|
|
30
|
+
}) => string;
|
|
31
|
+
declare const generateDevicePath: ({ pageState }: {
|
|
32
|
+
pageState: any;
|
|
33
|
+
}) => string;
|
|
34
|
+
declare const formatAuditlogs: ({ pageState }: {
|
|
35
|
+
pageState: any;
|
|
36
|
+
}, { today, tonight }: {
|
|
37
|
+
today: any;
|
|
38
|
+
tonight: any;
|
|
39
|
+
}) => string;
|
|
40
|
+
declare const parseDateParams: (params: any, today: any, tonight: any) => {
|
|
41
|
+
endDate: any;
|
|
42
|
+
startDate: any;
|
|
43
|
+
};
|
|
44
|
+
declare const parseAuditlogsQuery: (params: any, { today, tonight }: {
|
|
45
|
+
today: any;
|
|
46
|
+
tonight: any;
|
|
47
|
+
}) => {
|
|
48
|
+
detail: any;
|
|
49
|
+
endDate: any;
|
|
50
|
+
startDate: any;
|
|
51
|
+
type: {
|
|
52
|
+
title: string;
|
|
53
|
+
queryParameter: string;
|
|
54
|
+
value: string;
|
|
55
|
+
} | undefined;
|
|
56
|
+
user: any;
|
|
57
|
+
};
|
|
58
|
+
declare const formatDeployments: ({ deploymentObject, pageState }: {
|
|
59
|
+
deploymentObject: any;
|
|
60
|
+
pageState: any;
|
|
61
|
+
}, { defaults, today, tonight }: {
|
|
62
|
+
defaults: any;
|
|
63
|
+
today: any;
|
|
64
|
+
tonight: any;
|
|
65
|
+
}) => string;
|
|
66
|
+
declare const parseDeploymentsQuery: (params: any, { pageState, location, tonight }: {
|
|
67
|
+
pageState: any;
|
|
68
|
+
location: any;
|
|
69
|
+
tonight: any;
|
|
70
|
+
}) => {
|
|
71
|
+
deploymentObject: {};
|
|
72
|
+
general: {
|
|
73
|
+
showCreationDialog: boolean;
|
|
74
|
+
showReportDialog: boolean;
|
|
75
|
+
state: any;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
declare const generateDeploymentsPath: ({ pageState }: {
|
|
79
|
+
pageState: any;
|
|
80
|
+
}) => string;
|
|
81
|
+
declare const formatReleases: ({ pageState: { searchTerm, selectedTags, tab, type } }: {
|
|
82
|
+
pageState: {
|
|
83
|
+
searchTerm: any;
|
|
84
|
+
selectedTags?: never[] | undefined;
|
|
85
|
+
tab: any;
|
|
86
|
+
type: any;
|
|
87
|
+
};
|
|
88
|
+
}) => string;
|
|
89
|
+
declare const generateReleasesPath: ({ pageState: { selectedRelease } }: {
|
|
90
|
+
pageState: {
|
|
91
|
+
selectedRelease: any;
|
|
92
|
+
};
|
|
93
|
+
}) => string;
|
|
94
|
+
declare const parseReleasesQuery: (queryParams: any, extraProps: any) => {
|
|
95
|
+
searchTerm: any;
|
|
96
|
+
selectedRelease: string;
|
|
97
|
+
tab: any;
|
|
98
|
+
tags: any;
|
|
99
|
+
type: any;
|
|
100
|
+
};
|
|
101
|
+
declare const generateTenantPath: ({ pageState: { selectedTenant } }: {
|
|
102
|
+
pageState: {
|
|
103
|
+
selectedTenant: any;
|
|
104
|
+
};
|
|
105
|
+
}) => string;
|
|
106
|
+
declare const generateTenantPathById: (id: any) => string;
|
|
107
|
+
declare const parseTenantsQuery: (queryParams: any, extraProps: any) => {
|
|
108
|
+
name: any;
|
|
109
|
+
selectedTenant: any;
|
|
110
|
+
};
|
|
111
|
+
declare const formatTenants: () => string;
|
|
112
|
+
|
|
113
|
+
export { commonProcessor, formatAuditlogs, formatDeployments, formatDeviceSearch, formatPageState, formatReleases, formatTenants, generateDeploymentsPath, generateDevicePath, generateReleasesPath, generateTenantPath, generateTenantPathById, parseAuditlogsQuery, parseDateParams, parseDeploymentsQuery, parseDeviceQuery, parseReleasesQuery, parseTenantsQuery };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
declare const commonProcessor: (searchParams: any) => {
|
|
2
|
+
pageState: {};
|
|
3
|
+
params: URLSearchParams;
|
|
4
|
+
sort: {} | undefined;
|
|
5
|
+
};
|
|
6
|
+
declare const parseDeviceQuery: (searchParams: any, extraProps?: {}) => {
|
|
7
|
+
open: boolean;
|
|
8
|
+
detailsTab: string | null;
|
|
9
|
+
filters: unknown[];
|
|
10
|
+
groupName: string;
|
|
11
|
+
} | {
|
|
12
|
+
open?: undefined;
|
|
13
|
+
detailsTab: string | null;
|
|
14
|
+
filters: unknown[];
|
|
15
|
+
groupName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const formatPageState: ({ selectedId, selectedIssues, page, perPage, sort }: {
|
|
18
|
+
selectedId: any;
|
|
19
|
+
selectedIssues: any;
|
|
20
|
+
page: any;
|
|
21
|
+
perPage: any;
|
|
22
|
+
sort: any;
|
|
23
|
+
}, { defaults }: {
|
|
24
|
+
defaults: any;
|
|
25
|
+
}) => string;
|
|
26
|
+
declare const formatDeviceSearch: ({ pageState, filters, selectedGroup }: {
|
|
27
|
+
pageState: any;
|
|
28
|
+
filters: any;
|
|
29
|
+
selectedGroup: any;
|
|
30
|
+
}) => string;
|
|
31
|
+
declare const generateDevicePath: ({ pageState }: {
|
|
32
|
+
pageState: any;
|
|
33
|
+
}) => string;
|
|
34
|
+
declare const formatAuditlogs: ({ pageState }: {
|
|
35
|
+
pageState: any;
|
|
36
|
+
}, { today, tonight }: {
|
|
37
|
+
today: any;
|
|
38
|
+
tonight: any;
|
|
39
|
+
}) => string;
|
|
40
|
+
declare const parseDateParams: (params: any, today: any, tonight: any) => {
|
|
41
|
+
endDate: any;
|
|
42
|
+
startDate: any;
|
|
43
|
+
};
|
|
44
|
+
declare const parseAuditlogsQuery: (params: any, { today, tonight }: {
|
|
45
|
+
today: any;
|
|
46
|
+
tonight: any;
|
|
47
|
+
}) => {
|
|
48
|
+
detail: any;
|
|
49
|
+
endDate: any;
|
|
50
|
+
startDate: any;
|
|
51
|
+
type: {
|
|
52
|
+
title: string;
|
|
53
|
+
queryParameter: string;
|
|
54
|
+
value: string;
|
|
55
|
+
} | undefined;
|
|
56
|
+
user: any;
|
|
57
|
+
};
|
|
58
|
+
declare const formatDeployments: ({ deploymentObject, pageState }: {
|
|
59
|
+
deploymentObject: any;
|
|
60
|
+
pageState: any;
|
|
61
|
+
}, { defaults, today, tonight }: {
|
|
62
|
+
defaults: any;
|
|
63
|
+
today: any;
|
|
64
|
+
tonight: any;
|
|
65
|
+
}) => string;
|
|
66
|
+
declare const parseDeploymentsQuery: (params: any, { pageState, location, tonight }: {
|
|
67
|
+
pageState: any;
|
|
68
|
+
location: any;
|
|
69
|
+
tonight: any;
|
|
70
|
+
}) => {
|
|
71
|
+
deploymentObject: {};
|
|
72
|
+
general: {
|
|
73
|
+
showCreationDialog: boolean;
|
|
74
|
+
showReportDialog: boolean;
|
|
75
|
+
state: any;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
declare const generateDeploymentsPath: ({ pageState }: {
|
|
79
|
+
pageState: any;
|
|
80
|
+
}) => string;
|
|
81
|
+
declare const formatReleases: ({ pageState: { searchTerm, selectedTags, tab, type } }: {
|
|
82
|
+
pageState: {
|
|
83
|
+
searchTerm: any;
|
|
84
|
+
selectedTags?: never[] | undefined;
|
|
85
|
+
tab: any;
|
|
86
|
+
type: any;
|
|
87
|
+
};
|
|
88
|
+
}) => string;
|
|
89
|
+
declare const generateReleasesPath: ({ pageState: { selectedRelease } }: {
|
|
90
|
+
pageState: {
|
|
91
|
+
selectedRelease: any;
|
|
92
|
+
};
|
|
93
|
+
}) => string;
|
|
94
|
+
declare const parseReleasesQuery: (queryParams: any, extraProps: any) => {
|
|
95
|
+
searchTerm: any;
|
|
96
|
+
selectedRelease: string;
|
|
97
|
+
tab: any;
|
|
98
|
+
tags: any;
|
|
99
|
+
type: any;
|
|
100
|
+
};
|
|
101
|
+
declare const generateTenantPath: ({ pageState: { selectedTenant } }: {
|
|
102
|
+
pageState: {
|
|
103
|
+
selectedTenant: any;
|
|
104
|
+
};
|
|
105
|
+
}) => string;
|
|
106
|
+
declare const generateTenantPathById: (id: any) => string;
|
|
107
|
+
declare const parseTenantsQuery: (queryParams: any, extraProps: any) => {
|
|
108
|
+
name: any;
|
|
109
|
+
selectedTenant: any;
|
|
110
|
+
};
|
|
111
|
+
declare const formatTenants: () => string;
|
|
112
|
+
|
|
113
|
+
export { commonProcessor, formatAuditlogs, formatDeployments, formatDeviceSearch, formatPageState, formatReleases, formatTenants, generateDeploymentsPath, generateDevicePath, generateReleasesPath, generateTenantPath, generateTenantPathById, parseAuditlogsQuery, parseDateParams, parseDeploymentsQuery, parseDeviceQuery, parseReleasesQuery, parseTenantsQuery };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
commonProcessor,
|
|
3
|
+
formatAuditlogs,
|
|
4
|
+
formatDeployments,
|
|
5
|
+
formatDeviceSearch,
|
|
6
|
+
formatPageState,
|
|
7
|
+
formatReleases,
|
|
8
|
+
formatTenants,
|
|
9
|
+
generateDeploymentsPath,
|
|
10
|
+
generateDevicePath,
|
|
11
|
+
generateReleasesPath,
|
|
12
|
+
generateTenantPath,
|
|
13
|
+
generateTenantPathById,
|
|
14
|
+
parseAuditlogsQuery,
|
|
15
|
+
parseDateParams,
|
|
16
|
+
parseDeploymentsQuery,
|
|
17
|
+
parseDeviceQuery,
|
|
18
|
+
parseReleasesQuery,
|
|
19
|
+
parseTenantsQuery
|
|
20
|
+
} from "./chunk-K4MMUDYT.js";
|
|
21
|
+
import "./chunk-OEP2D6QL.js";
|
|
22
|
+
import "./chunk-CK6YE6AN.js";
|
|
23
|
+
import "./chunk-MRCFLG45.js";
|
|
24
|
+
import "./chunk-Y575RZHR.js";
|
|
25
|
+
import "./chunk-BSN2TOQC.js";
|
|
26
|
+
export {
|
|
27
|
+
commonProcessor,
|
|
28
|
+
formatAuditlogs,
|
|
29
|
+
formatDeployments,
|
|
30
|
+
formatDeviceSearch,
|
|
31
|
+
formatPageState,
|
|
32
|
+
formatReleases,
|
|
33
|
+
formatTenants,
|
|
34
|
+
generateDeploymentsPath,
|
|
35
|
+
generateDevicePath,
|
|
36
|
+
generateReleasesPath,
|
|
37
|
+
generateTenantPath,
|
|
38
|
+
generateTenantPathById,
|
|
39
|
+
parseAuditlogsQuery,
|
|
40
|
+
parseDateParams,
|
|
41
|
+
parseDeploymentsQuery,
|
|
42
|
+
parseDeviceQuery,
|
|
43
|
+
parseReleasesQuery,
|
|
44
|
+
parseTenantsQuery
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=locationutils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -48,28 +48,28 @@ var PLANS = {
|
|
|
48
48
|
id: "os",
|
|
49
49
|
name: "Basic",
|
|
50
50
|
offer: true,
|
|
51
|
-
price: "$32/month",
|
|
51
|
+
price: "$32 / month",
|
|
52
52
|
deviceCount: startingDeviceCount.os,
|
|
53
|
-
offerprice: "$23/month for first 50 devices",
|
|
53
|
+
offerprice: "$23 / month for first 50 devices",
|
|
54
54
|
price2: "for first 6 months;\n$29/month thereafter",
|
|
55
|
-
features: ["
|
|
55
|
+
features: ["Access to core features of Mender", "Basic support"]
|
|
56
56
|
},
|
|
57
57
|
professional: {
|
|
58
58
|
id: "professional",
|
|
59
59
|
name: "Professional",
|
|
60
60
|
offer: true,
|
|
61
|
-
price: "$269/month",
|
|
61
|
+
price: "$269 / month",
|
|
62
62
|
deviceCount: startingDeviceCount.professional,
|
|
63
|
-
offerprice: "$200/month for first 50 devices",
|
|
63
|
+
offerprice: "$200 / month for first 50 devices",
|
|
64
64
|
price2: "for first 6 months;\n$249/month thereafter",
|
|
65
|
-
features: ["
|
|
65
|
+
features: ["Advanced OTA features", "Higher priority support"]
|
|
66
66
|
},
|
|
67
67
|
enterprise: {
|
|
68
68
|
id: "enterprise",
|
|
69
69
|
name: "Enterprise",
|
|
70
70
|
price: "Custom pricing",
|
|
71
|
-
deviceCount: "
|
|
72
|
-
features: ["
|
|
71
|
+
deviceCount: "Unlimited devices",
|
|
72
|
+
features: ["All Mender features", "Advanced security features", "SLA-backed support"]
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
var ADDONS = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/monitorSlice/constants.ts","../../src/appSlice/constants.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\nimport { apiUrl } from '@northern.tech/store/constants';\n\n// limitations under the License.\nexport const alertChannels = { email: 'email' };\nexport const monitorApiUrlv1 = `${apiUrl.v1}/devicemonitor`;\n","// 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};\n\nexport const apiRoot = '/api/management';\nexport const apiUrl = {\n v1: `${apiRoot}/v1`,\n v2: `${apiRoot}/v2`\n};\n\nexport const headerNames = {\n link: 'link',\n location: 'location',\n total: 'x-total-count'\n};\n\nexport const chartTypes = {\n bar: { key: 'bar', Icon: BarChartIcon },\n pie: { key: 'pie', Icon: PieChartIcon }\n};\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 eu: { key: 'eu', title: 'EU', location: 'eu.hosted.mender.io' },\n us: { key: 'us', title: 'US', location: 'hosted.mender.io' }\n};\n\nexport const PLANS = {\n os: {\n id: 'os',\n name: 'Basic',\n offer: true,\n price: '$32/month',\n deviceCount: startingDeviceCount.os,\n offerprice: '$23/month for first 50 devices',\n price2: 'for first 6 months;\\n$29/month thereafter',\n features: ['Basic OTA features']\n },\n professional: {\n id: 'professional',\n name: 'Professional',\n offer: true,\n price: '$269/month',\n deviceCount: startingDeviceCount.professional,\n offerprice: '$200/month for first 50 devices',\n price2: 'for first 6 months;\\n$249/month thereafter',\n features: ['+ Advanced OTA features', '+ Standard support']\n },\n enterprise: {\n id: 'enterprise',\n name: 'Enterprise',\n price: 'Custom pricing',\n deviceCount: 'unlimited devices',\n features: ['+ Enterprise-grade OTA features', '+ Premium support']\n }\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 = {\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 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 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};\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};\n\nexport const yes = () => true;\nexport const canAccess = yes;\n\nexport const DARK_MODE = 'dark';\nexport const LIGHT_MODE = 'light';\n\nexport const APPLICATION_JSON_CONTENT_TYPE = 'application/json';\nexport const APPLICATION_JWT_CONTENT_TYPE = 'application/jwt';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACaA,4BAA0E;AAE1E,IAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,cAAc;AAChB;AAEO,IAAM,UAAU;AAChB,IAAM,SAAS;AAAA,EACpB,IAAI,GAAG,OAAO;AAAA,EACd,IAAI,GAAG,OAAO;AAChB;AAQO,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;AASpH,IAAM,QAAQ;AAAA,EACnB,IAAI;AAAA,IACF,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,aAAa,oBAAoB;AAAA,IACjC,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,UAAU,CAAC,oBAAoB;AAAA,EACjC;AAAA,EACA,cAAc;AAAA,IACZ,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,aAAa,oBAAoB;AAAA,IACjC,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,UAAU,CAAC,2BAA2B,oBAAoB;AAAA,EAC5D;AAAA,EACA,YAAY;AAAA,IACV,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,UAAU,CAAC,mCAAmC,mBAAmB;AAAA,EACnE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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\nimport { apiUrl } from '@northern.tech/store/constants';\n\n// limitations under the License.\nexport const alertChannels = { email: 'email' };\nexport const monitorApiUrlv1 = `${apiUrl.v1}/devicemonitor`;\n","// 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.\n//@ts-nocheck\nimport { BarChart as BarChartIcon, PieChartOutline as PieChartIcon } from '@mui/icons-material';\n\nimport FlagEU from '../../../../assets/img/flag-eu.svg';\nimport FlagUS from '../../../../assets/img/flag-us.svg';\n\nconst startingDeviceCount = {\n os: 'for first 50 devices',\n professional: 'for first 250 devices'\n};\n\nexport const apiRoot = '/api/management';\nexport const apiUrl = {\n v1: `${apiRoot}/v1`,\n v2: `${apiRoot}/v2`\n};\n\nexport const headerNames = {\n link: 'link',\n location: 'location',\n total: 'x-total-count'\n};\n\nexport const chartTypes = {\n bar: { key: 'bar', Icon: BarChartIcon },\n pie: { key: 'pie', Icon: PieChartIcon }\n};\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 eu: { key: 'eu', title: 'EU', location: 'eu.hosted.mender.io', icon: FlagEU },\n us: { key: 'us', title: 'US', location: 'hosted.mender.io', icon: FlagUS }\n};\nexport type AvailablePlans = 'os' | 'professional' | 'enterprise';\n\nexport type Plan = {\n deviceCount: string;\n features: string[];\n id: AvailablePlans;\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 offer: true,\n price: '$32 / month',\n deviceCount: startingDeviceCount.os,\n offerprice: '$23 / month for first 50 devices',\n price2: 'for first 6 months;\\n$29/month thereafter',\n features: ['Access to core features of Mender', 'Basic support']\n },\n professional: {\n id: 'professional',\n name: 'Professional',\n offer: true,\n price: '$269 / month',\n deviceCount: startingDeviceCount.professional,\n offerprice: '$200 / month for first 50 devices',\n price2: 'for first 6 months;\\n$249/month thereafter',\n features: ['Advanced OTA features', 'Higher priority support']\n },\n enterprise: {\n id: 'enterprise',\n name: 'Enterprise',\n price: 'Custom pricing',\n deviceCount: 'Unlimited devices',\n features: ['All Mender features', 'Advanced security features', 'SLA-backed support']\n }\n};\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 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 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};\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};\n\nexport const yes = () => true;\nexport const canAccess = yes;\n\nexport const DARK_MODE = 'dark';\nexport const LIGHT_MODE = 'light';\n\nexport const APPLICATION_JSON_CONTENT_TYPE = 'application/json';\nexport const APPLICATION_JWT_CONTENT_TYPE = 'application/jwt';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACcA,4BAA0E;AAK1E,IAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,cAAc;AAChB;AAEO,IAAM,UAAU;AAChB,IAAM,SAAS;AAAA,EACpB,IAAI,GAAG,OAAO;AAAA,EACd,IAAI,GAAG,OAAO;AAChB;AAQO,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;AAuBpH,IAAM,QAA2C;AAAA,EACtD,IAAI;AAAA,IACF,IAAI;A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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;;;ADjLO,IAAM,gBAAgB,EAAE,OAAO,QAAQ;AACvC,IAAM,kBAAkB,GAAG,OAAO,EAAE;","names":["BarChartIcon","PieChartIcon"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
alertChannels,
|
|
3
3
|
monitorApiUrlv1
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-OEP2D6QL.js";
|
|
5
5
|
import "../chunk-CK6YE6AN.js";
|
|
6
6
|
import "../chunk-MRCFLG45.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-Y575RZHR.js";
|
|
8
|
+
import "../chunk-BSN2TOQC.js";
|
|
9
9
|
export {
|
|
10
10
|
alertChannels,
|
|
11
11
|
monitorApiUrlv1
|
|
@@ -270,28 +270,28 @@ var PLANS = {
|
|
|
270
270
|
id: "os",
|
|
271
271
|
name: "Basic",
|
|
272
272
|
offer: true,
|
|
273
|
-
price: "$32/month",
|
|
273
|
+
price: "$32 / month",
|
|
274
274
|
deviceCount: startingDeviceCount.os,
|
|
275
|
-
offerprice: "$23/month for first 50 devices",
|
|
275
|
+
offerprice: "$23 / month for first 50 devices",
|
|
276
276
|
price2: "for first 6 months;\n$29/month thereafter",
|
|
277
|
-
features: ["
|
|
277
|
+
features: ["Access to core features of Mender", "Basic support"]
|
|
278
278
|
},
|
|
279
279
|
professional: {
|
|
280
280
|
id: "professional",
|
|
281
281
|
name: "Professional",
|
|
282
282
|
offer: true,
|
|
283
|
-
price: "$269/month",
|
|
283
|
+
price: "$269 / month",
|
|
284
284
|
deviceCount: startingDeviceCount.professional,
|
|
285
|
-
offerprice: "$200/month for first 50 devices",
|
|
285
|
+
offerprice: "$200 / month for first 50 devices",
|
|
286
286
|
price2: "for first 6 months;\n$249/month thereafter",
|
|
287
|
-
features: ["
|
|
287
|
+
features: ["Advanced OTA features", "Higher priority support"]
|
|
288
288
|
},
|
|
289
289
|
enterprise: {
|
|
290
290
|
id: "enterprise",
|
|
291
291
|
name: "Enterprise",
|
|
292
292
|
price: "Custom pricing",
|
|
293
|
-
deviceCount: "
|
|
294
|
-
features: ["
|
|
293
|
+
deviceCount: "Unlimited devices",
|
|
294
|
+
features: ["All Mender features", "Advanced security features", "SLA-backed support"]
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
297
|
var ADDONS = {
|