@northern.tech/store 0.47.0 → 0.49.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.d.cts +7 -6
- package/dist/actions.d.ts +7 -6
- package/dist/appSlice/constants.cjs +12 -2
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.d.cts +1 -1
- package/dist/appSlice/mocks.d.ts +1 -1
- package/dist/appSlice/selectors.d.cts +1 -1
- package/dist/appSlice/selectors.d.ts +1 -1
- package/dist/appSlice/thunks.d.cts +2 -2
- package/dist/appSlice/thunks.d.ts +2 -2
- package/dist/appSlice/thunks.js +1 -2
- package/dist/auth.cjs +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -1
- package/dist/commonConstants.cjs +13 -3
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonConstants.js +1 -2
- package/dist/commonSelectors.cjs +1 -1
- package/dist/commonSelectors.d.cts +12 -11
- package/dist/commonSelectors.d.ts +12 -11
- package/dist/commonSelectors.js +1 -1
- package/dist/{constants-CCkKh9KM.d.ts → constants-BtVu36ou.d.ts} +3 -3
- package/dist/{constants-OZiiFKiA.d.ts → constants-Cr68z0iM.d.cts} +9 -10
- package/dist/{constants-OZiiFKiA.d.cts → constants-Cr68z0iM.d.ts} +9 -10
- package/dist/{constants-DsOnY5o5.cjs → constants-DKF0kxhY.cjs} +12 -13
- package/dist/{constants-DsOnY5o5.cjs.map → constants-DKF0kxhY.cjs.map} +1 -1
- package/dist/{constants-B3NH1IQi.d.ts → constants-DOnQ-UzD.d.cts} +2 -3
- package/dist/{constants-B3NH1IQi.d.cts → constants-DOnQ-UzD.d.ts} +2 -3
- package/dist/{constants-CUwYPOYK.d.cts → constants-DsJM7i1a.d.cts} +3 -3
- package/dist/{constants-DjiC_FnZ.js → constants-TPYvZDsI.js} +14 -15
- package/dist/{constants-DjiC_FnZ.js.map → constants-TPYvZDsI.js.map} +1 -1
- package/dist/constants.cjs +313 -52
- package/dist/constants.d.cts +4 -4
- package/dist/constants.d.ts +4 -4
- package/dist/constants.js +3 -3
- package/dist/deploymentsSlice/constants.cjs +1 -1
- package/dist/deploymentsSlice/constants.js +1 -2
- package/dist/deploymentsSlice/index.cjs +1 -1
- package/dist/deploymentsSlice/index.js +1 -1
- package/dist/deploymentsSlice/selectors.cjs +1 -1
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +5 -4
- package/dist/deploymentsSlice/thunks.d.ts +5 -4
- package/dist/deploymentsSlice/thunks.js +1 -2
- package/dist/devicesSlice/constants.cjs +1 -1
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/constants.js +1 -2
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js +1 -1
- package/dist/devicesSlice/mocks.js +1 -1
- package/dist/devicesSlice/selectors.cjs +1 -1
- package/dist/devicesSlice/selectors.d.cts +1 -1
- package/dist/devicesSlice/selectors.d.ts +1 -1
- package/dist/devicesSlice/selectors.js +1 -1
- package/dist/devicesSlice/thunks.d.cts +5 -4
- package/dist/devicesSlice/thunks.d.ts +5 -4
- package/dist/devicesSlice/thunks.js +1 -2
- package/dist/{index-7jVuB4tG.d.cts → index-3mpuzSLi.d.cts} +2 -2
- package/dist/{index-BcrZxKLw.d.cts → index-BP392nKV.d.cts} +2 -2
- package/dist/{index-DOPRnlaC.d.ts → index-Bc7Ugak_.d.ts} +2 -2
- package/dist/{index-BWtIaimn.d.cts → index-BnWRWRyV.d.cts} +2 -2
- package/dist/{index-o_m7WKiR.d.ts → index-CVsuKFks.d.ts} +2 -2
- package/dist/{index-C2za83Qs.d.ts → index-Cai4oXpN.d.ts} +2 -2
- package/dist/{index-CaNZaXie.d.cts → index-CwjRezv2.d.cts} +2 -2
- package/dist/{index-DNYeo7wc.d.cts → index-D0DMxU8O.d.cts} +2 -2
- package/dist/{index-CzQRHJ6f.d.cts → index-DTeKxs80.d.cts} +6 -3
- package/dist/{index-CvMpbsOo.d.ts → index-TS08J8mY.d.ts} +6 -3
- package/dist/{index-C1vNDCYR.d.ts → index-oFn9qHWB.d.ts} +2 -2
- package/dist/{index-CThE5Gfh.d.ts → index-sw1Baeui.d.ts} +2 -2
- package/dist/liststatehook.d.cts +1 -0
- package/dist/liststatehook.d.ts +1 -0
- package/dist/locationutils.cjs +1 -1
- package/dist/locationutils.d.cts +4 -3
- package/dist/locationutils.d.ts +4 -3
- package/dist/locationutils.js +1 -1
- package/dist/mockState.d.cts +2 -1
- package/dist/mockState.d.ts +2 -1
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js +1 -1
- package/dist/monitorSlice/mocks.d.cts +1 -1
- package/dist/monitorSlice/mocks.d.ts +1 -1
- package/dist/monitorSlice/mocks.js +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.d.cts +5 -4
- package/dist/monitorSlice/thunks.d.ts +5 -4
- package/dist/monitorSlice/thunks.js +1 -1
- package/dist/onboardingSlice/mocks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +3 -3
- package/dist/onboardingSlice/thunks.d.ts +3 -3
- package/dist/onboardingSlice/thunks.js +1 -2
- package/dist/organizationSlice/constants.cjs +1 -1
- package/dist/organizationSlice/constants.d.cts +1 -1
- package/dist/organizationSlice/constants.d.ts +1 -1
- package/dist/organizationSlice/constants.js +1 -2
- package/dist/organizationSlice/index.cjs +4 -1
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js +4 -1
- package/dist/organizationSlice/index.js.map +1 -1
- package/dist/organizationSlice/mocks.d.cts +4 -2
- package/dist/organizationSlice/mocks.d.ts +4 -2
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.cjs +3 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +2 -2
- package/dist/organizationSlice/selectors.d.ts +2 -2
- package/dist/organizationSlice/selectors.js +3 -2
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.cjs +1 -0
- package/dist/organizationSlice/thunks.d.cts +19 -5
- package/dist/organizationSlice/thunks.d.ts +19 -5
- package/dist/organizationSlice/thunks.js +1 -2
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/constants.cjs +0 -2
- package/dist/releasesSlice/constants.cjs.map +1 -1
- package/dist/releasesSlice/constants.d.cts +2 -2
- package/dist/releasesSlice/constants.d.ts +2 -2
- package/dist/releasesSlice/constants.js +1 -2
- package/dist/releasesSlice/constants.js.map +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.d.cts +1 -1
- package/dist/releasesSlice/selectors.d.ts +1 -1
- package/dist/releasesSlice/thunks.cjs +2 -2
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +5 -4
- package/dist/releasesSlice/thunks.d.ts +5 -4
- package/dist/releasesSlice/thunks.js +2 -2
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/{selectors-XzNyGFJI.d.cts → selectors-BA53-rNP.d.cts} +2 -2
- package/dist/{selectors-Ba9LUr_0.d.ts → selectors-BBt6fdWs.d.ts} +2 -2
- package/dist/{selectors-1394DVvN.d.ts → selectors-C1JTUBEz.d.ts} +2 -2
- package/dist/{selectors-DDsFLtxz.d.cts → selectors-CCrzjz8P.d.cts} +2 -2
- package/dist/{selectors-aLOjKkxN.d.cts → selectors-CYBOWy-Q.d.cts} +2 -2
- package/dist/{selectors-jusUdUdc.d.cts → selectors-D1x4Lqo_.d.cts} +2 -2
- package/dist/{selectors-LhR8TyWU.d.cts → selectors-DSV8VB7p.d.cts} +5 -8
- package/dist/{selectors-DeqP_VLU.d.cts → selectors-DhAje0Fw.d.cts} +2 -2
- package/dist/{selectors-DFSv4A_m.d.ts → selectors-DljXYHm2.d.ts} +5 -8
- package/dist/{selectors-DQKg681M.d.ts → selectors-DtvvhDLv.d.ts} +2 -2
- package/dist/{selectors-CAo0fzIZ.d.ts → selectors-Dv3oN6m9.d.ts} +2 -2
- package/dist/{selectors-vk0GUGHf.d.ts → selectors-GKTELLR6.d.ts} +2 -2
- package/dist/selectors.cjs +1 -0
- package/dist/selectors.d.cts +7 -7
- package/dist/selectors.d.ts +7 -7
- package/dist/selectors.js +2 -2
- package/dist/sockethook.cjs +2 -2
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.d.cts +1 -0
- package/dist/sockethook.d.ts +1 -0
- package/dist/sockethook.js +2 -2
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-v5V-bbB_.d.ts → store-CROmfENq.d.ts} +9 -9
- package/dist/{store-CCvk8X-k.d.cts → store-xuKpT-o4.d.cts} +9 -9
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/thunks.cjs +15 -6
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +2 -2
- package/dist/thunks.d.ts +2 -2
- package/dist/thunks.js +15 -7
- package/dist/thunks.js.map +1 -1
- package/dist/{types-B2gphGj8.d.ts → types-DQtRiyGK.d.ts} +3 -3
- package/dist/{types-CLASWtVP.d.cts → types-DXm-HM-j.d.cts} +3 -3
- package/dist/usersSlice/constants.cjs +1 -1
- package/dist/usersSlice/constants.js +1 -2
- package/dist/usersSlice/index.cjs +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js +1 -1
- package/dist/usersSlice/mocks.d.cts +1 -1
- package/dist/usersSlice/mocks.d.ts +1 -1
- package/dist/usersSlice/mocks.js +1 -1
- package/dist/usersSlice/selectors.cjs +1 -1
- package/dist/usersSlice/selectors.d.cts +1 -1
- package/dist/usersSlice/selectors.d.ts +1 -1
- package/dist/usersSlice/selectors.js +1 -1
- package/dist/usersSlice/thunks.d.cts +5 -4
- package/dist/usersSlice/thunks.d.ts +5 -4
- package/dist/usersSlice/thunks.js +1 -2
- package/dist/utils.cjs +9 -10
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -9
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-DsOnY5o5.cjs","names":["ATTRIBUTE_SCOPES","AWS","Azure","DEVICE_LIST_DEFAULTS","SORTING_OPTIONS","DEVICE_FILTERING_OPTIONS","useradmApiUrl","uiPermissionsById"],"sources":["../src/commonConstants.tsx","../src/deploymentsSlice/constants.ts","../src/devicesSlice/constants.ts","../src/organizationSlice/constants.ts","../src/usersSlice/constants.ts"],"sourcesContent":["// 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 { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\nimport type { Integration } from '@northern.tech/types/MenderTypes';\nimport { TIMEOUTS, countries } from '@northern.tech/utils/constants';\nimport type { CountryType } from '@northern.tech/utils/constants';\n\nimport type { DEVICE_FILTERING_OPTIONS } from './constants';\nimport { ATTRIBUTE_SCOPES } from './constants';\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport type FilterOperator = keyof typeof DEVICE_FILTERING_OPTIONS;\n\nexport { TIMEOUTS, countries };\nexport type { CountryType };\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport interface IdAttribute {\n attribute: string;\n scope: string;\n}\nexport const defaultIdAttribute: Readonly<IdAttribute> = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nexport const ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX = 'mender-orchestrator-manifest.';\n\n// displayed labels for attribute scopes that diverge from the internal scope values: the system scope shows as\n// `default`, while orchestrator manifest attributes (inventory scope) show as `system`\nexport const ATTRIBUTE_SCOPE_LABELS = {\n default: 'default',\n system: 'system'\n} as const;\n\nexport const productOrder = ['micro', 'standard', 'system'];\n\nexport const 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 twinTitle: '',\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} as const;\n\nexport interface Webhook extends Integration {\n provider: 'webhook';\n}\n\nexport const emptyWebhook: Webhook = {\n description: '',\n provider: 'webhook',\n credentials: {\n type: EXTERNAL_PROVIDER.webhook.credentialsType,\n [EXTERNAL_PROVIDER.webhook.credentialsType]: {\n secret: '',\n url: ''\n }\n }\n};\n\nexport const MAX_PAGE_SIZE = 500;\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 type { DeploymentStatistics } from '@northern.tech/types/MenderTypes';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '../constants';\n\nconst alreadyInstalled = 'already-installed';\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 artifact_too_big: 'artifact_too_big',\n incompatible_tier: 'incompatible_tier',\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 type DeploymentSubstateMapping = {\n failures: string[];\n inprogress: string[];\n paused: string[];\n pending: string[];\n skipped?: string[];\n successes: string[];\n};\n\nexport const deploymentStatesToSubstates: DeploymentSubstateMapping = {\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: [\n deploymentSubstates.success,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.incompatible_tier\n ]\n};\n\nexport const deploymentStatesToSubstatesWithSkipped: DeploymentSubstateMapping = {\n ...deploymentStatesToSubstates,\n failures: [deploymentSubstates.failure],\n skipped: [\n deploymentSubstates.aborted,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.decommissioned,\n deploymentSubstates.incompatible_tier\n ],\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} as const;\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} as const;\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: {} } as DeploymentStatistics\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};\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 type { DEVICE_STATES, FilterOperator } from '../constants';\nimport { DEVICE_FILTERING_OPTIONS } from '../constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key as FilterOperator, scope: 'inventory' };\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';\n\nexport type DeviceAuthState = (typeof DEVICE_STATES)[keyof typeof DEVICE_STATES];\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.\nimport { useradmApiUrl } from '../constants';\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} as const;\n\nexport type ContentType = (typeof SSO_TYPES)[keyof typeof SSO_TYPES]['contentType'];\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 const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n","'use strict';\n\n// Copyright 2015 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 { uiPermissionsById } from '../constants';\n\nexport type UiPermission = {\n explanations: object;\n permissionLevel: number;\n permissionSets: Record<string, string>;\n title: string;\n value: string;\n verbs: string[];\n};\n\ntype ExcessiveAccessConfig = {\n selector: string;\n warning: string;\n};\n\ntype EndpointDefinition = {\n path: RegExp;\n types: string[];\n uiPermissions: UiPermission[];\n};\n\n/**\n * _uiPermissions_ represent the possible permissions/ rights that can be given for the area\n * _endpoints_ represent the possible endpoints this definition might be affecting in the UI and what\n * functionality might be affected\n *\n */\nexport type PermissionsArea = {\n endpoints: EndpointDefinition[];\n excessiveAccessConfig?: ExcessiveAccessConfig;\n explanation: string;\n filter?: (object) => string[];\n key: string;\n placeholder?: string;\n scope?: string;\n title: string;\n uiPermissions: UiPermission[];\n};\n\nexport const itemUiPermissionsReducer = (accu, { item, uiPermissions }) => (item ? { ...accu, [item]: uiPermissions } : accu);\n\nconst checkSinglePermission = (permission, requiredPermission) =>\n requiredPermission === permission || uiPermissionsById[permission].permissionLevel > uiPermissionsById[requiredPermission].permissionLevel;\n\nexport const checkPermissionsObject = (permissions, requiredPermission, scopedAccess, superAccess) =>\n permissions[superAccess]?.some(permission => checkSinglePermission(permission, requiredPermission)) ||\n permissions[scopedAccess]?.some(permission => checkSinglePermission(permission, requiredPermission));\n\nexport const USER_LOGOUT = 'USER_LOGOUT';\n\nexport const OWN_USER_ID = 'me';\n\nexport const settingsKeys = { colorScheme: 'colorScheme', initialized: 'settings-initialized' };\n\nexport const READ_STATES = {\n read: 'read',\n seen: 'seen',\n unread: 'unread'\n} as const;\nexport type ReadState = keyof typeof READ_STATES;\n"],"mappings":";;;;AAsBA,MAAa,YAAY;CACvB,MAAM;CACN,SAAS;CACT,OAAO;AACT;AAEA,MAAa,kBAAkB;CAAE,IAAI;CAAmB,MAAM;AAAa;AAE3E,MAAa,6BAA6B;AAO1C,MAAa,uBAAuB;CAAE,UAAU;CAAG,cAAc,UAAU;AAAK;AAMhF,MAAa,qBAA4C,OAAO,OAAO;CAAE,WAAW;CAAM,OAAOA,+BAAAA,iBAAiB;AAAS,CAAC;AAE5H,MAAa,yCAAyC;AAItD,MAAa,yBAAyB;CACpC,SAAS;CACT,QAAQ;AACV;AAEA,MAAa,eAAe;CAAC;CAAS;CAAY;AAAQ;AAE1D,MAAa,kBAAkB;CAC7B,KAAK;CACL,MAAM;CACN,KAA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AgB;EAAe,OAAO;CAAW;CAChF,YAAY;EAAE,OAAO;EAAc,gBAAgB;EAA0B,OAAO;CAAa;CACjG,QAAQ;EAAE,OAAO;EAAU,gBAAgB;EAAa,OAAO;CAAS;CACxE,mBAAmB;EAAE,OAAO;EAAyB,gBAAgB;EAAqB,OAAO;CAAoB;CACrH,MAAM;EAAE,OAAO;EAAQ,gBAAgB;EAAa,OAAO;CAAO;CAClE,QAAQ;EAAE,OAAO;EAAU,gBAAgB;EAAa,OAAO;CAAS;AAC1E;AAEA,MAAa,mBAAmB;CAAC,cAAc;CAAU,cAAc;CAAY,cAAc;CAAQ,cAAc;CAAmB,cAAc;AAAI;AAC5J,MAAa,sBAAsB,CAAC,cAAc,MAAM,cAAc,MAAM;AAE5E,MAAa,sBAAsB;CACjC,MAAM;CACN,SAAS;AACX;;;ACVA,MAAa,4BAA4B,MAAM,EAAE,MAAM,oBAAqB,OAAO;CAAE,GAAG;EAAO,OAAO;AAAc,IAAI;AAExH,MAAM,yBAAyB,YAAY,uBACzC,uBAAuB,cAAcC,+BAAAA,kBAAkB,WAAW,CAAC,kBAAkBA,+BAAAA,kBAAkB,mBAAmB,CAAC;AAE7H,MAAa,0BAA0B,aAAa,oBAAoB,cAAc,gBACpF,YAAY,YAAY,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC,KAClG,YAAY,aAAa,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC;AAErG,MAAa,cAAc;AAE3B,MAAa,cAAc;AAE3B,MAAa,eAAe;CAAE,aAAa;CAAe,aAAa;AAAuB;AAE9F,MAAa,cAAc;CACzB,MAAM;CACN,MAAM;CACN,QAAQ;AACV"}
|
|
1
|
+
{"version":3,"file":"constants-DKF0kxhY.cjs","names":["ATTRIBUTE_SCOPES","AWS","Azure","DEVICE_LIST_DEFAULTS","SORTING_OPTIONS","DEVICE_FILTERING_OPTIONS","useradmApiUrl","uiPermissionsById"],"sources":["../src/commonConstants.tsx","../src/deploymentsSlice/constants.ts","../src/devicesSlice/constants.ts","../src/organizationSlice/constants.ts","../src/usersSlice/constants.ts"],"sourcesContent":["// 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 { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\nimport type { Integration } from '@northern.tech/types/MenderTypes';\nimport { TIMEOUTS, countries } from '@northern.tech/utils/constants';\nimport type { CountryType } from '@northern.tech/utils/constants';\n\nimport type { DEVICE_FILTERING_OPTIONS } from './constants';\nimport { ATTRIBUTE_SCOPES } from './constants';\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport type FilterOperator = keyof typeof DEVICE_FILTERING_OPTIONS;\n\nexport { TIMEOUTS, countries };\nexport type { CountryType };\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport interface IdAttribute {\n attribute: string;\n scope: string;\n}\nexport const defaultIdAttribute: Readonly<IdAttribute> = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nexport const ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX = 'mender-orchestrator-manifest.';\n\n// displayed labels for attribute scopes that diverge from the internal scope values: the system scope shows as\n// `default`, while orchestrator manifest attributes (inventory scope) show as `system`\nexport const ATTRIBUTE_SCOPE_LABELS = {\n default: 'default',\n system: 'system'\n} as const;\n\nexport const productOrder = ['micro', 'standard', 'system'];\n\nexport const 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 twinTitle: '',\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} as const;\n\nexport interface Webhook extends Integration {\n provider: 'webhook';\n}\n\nexport const emptyWebhook: Webhook = {\n description: '',\n provider: 'webhook',\n credentials: {\n type: EXTERNAL_PROVIDER.webhook.credentialsType,\n [EXTERNAL_PROVIDER.webhook.credentialsType]: {\n secret: '',\n url: ''\n }\n }\n};\n\nexport const MAX_PAGE_SIZE = 500;\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 type { DeploymentStatistics } from '@northern.tech/types/MenderTypes';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '../constants';\n\nconst alreadyInstalled = 'already-installed';\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 artifact_too_big: 'artifact_too_big',\n incompatible_tier: 'incompatible_tier',\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 type DeploymentSubstateMapping = {\n failures: string[];\n inprogress: string[];\n paused: string[];\n pending: string[];\n skipped?: string[];\n successes: string[];\n};\n\nexport const deploymentStatesToSubstates: DeploymentSubstateMapping = {\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: [\n deploymentSubstates.success,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.incompatible_tier\n ]\n};\n\nexport const deploymentStatesToSubstatesWithSkipped: DeploymentSubstateMapping = {\n ...deploymentStatesToSubstates,\n failures: [deploymentSubstates.failure],\n skipped: [\n deploymentSubstates.aborted,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.decommissioned,\n deploymentSubstates.incompatible_tier\n ],\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} as const;\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} as const;\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: {} } as DeploymentStatistics\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};\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 type { DEVICE_STATES, FilterOperator } from '../constants';\nimport { DEVICE_FILTERING_OPTIONS } from '../constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key as FilterOperator, scope: 'inventory' };\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';\n\nexport type DeviceAuthState = (typeof DEVICE_STATES)[keyof typeof DEVICE_STATES];\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.\nimport { useradmApiUrl } from '../constants';\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: 'entity_id', label: 'Entity ID' },\n { key: 'acs_url', label: 'ACS URL' },\n { key: 'start_url', label: 'Start URL' }\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: [\n { key: 'callback_url', label: 'Callback URL' },\n { key: 'start_url', label: 'Start URL' }\n ]\n }\n} as const;\n\nexport type ContentType = (typeof SSO_TYPES)[keyof typeof SSO_TYPES]['contentType'];\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 const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n","'use strict';\n\n// Copyright 2015 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 { uiPermissionsById } from '../constants';\n\nexport type UiPermission = {\n explanations: object;\n permissionLevel: number;\n permissionSets: Record<string, string>;\n title: string;\n value: string;\n verbs: string[];\n};\n\ntype ExcessiveAccessConfig = {\n selector: string;\n warning: string;\n};\n\ntype EndpointDefinition = {\n path: RegExp;\n types: string[];\n uiPermissions: UiPermission[];\n};\n\n/**\n * _uiPermissions_ represent the possible permissions/ rights that can be given for the area\n * _endpoints_ represent the possible endpoints this definition might be affecting in the UI and what\n * functionality might be affected\n *\n */\nexport type PermissionsArea = {\n endpoints: EndpointDefinition[];\n excessiveAccessConfig?: ExcessiveAccessConfig;\n explanation: string;\n filter?: (object) => string[];\n key: string;\n placeholder?: string;\n scope?: string;\n title: string;\n uiPermissions: UiPermission[];\n};\n\nexport const itemUiPermissionsReducer = (accu, { item, uiPermissions }) => (item ? { ...accu, [item]: uiPermissions } : accu);\n\nconst checkSinglePermission = (permission, requiredPermission) =>\n requiredPermission === permission || uiPermissionsById[permission].permissionLevel > uiPermissionsById[requiredPermission].permissionLevel;\n\nexport const checkPermissionsObject = (permissions, requiredPermission, scopedAccess, superAccess) =>\n permissions[superAccess]?.some(permission => checkSinglePermission(permission, requiredPermission)) ||\n permissions[scopedAccess]?.some(permission => checkSinglePermission(permission, requiredPermission));\n\nexport const USER_LOGOUT = 'USER_LOGOUT';\n\nexport const OWN_USER_ID = 'me';\n\nexport const settingsKeys = { colorScheme: 'colorScheme', initialized: 'settings-initialized' };\n\nexport const READ_STATES = {\n read: 'read',\n seen: 'seen',\n unread: 'unread'\n} as const;\nexport type ReadState = keyof typeof READ_STATES;\n"],"mappings":";;;;AAsBA,MAAa,YAAY;CACvB,MAAM;CACN,SAAS;CACT,OAAO;AACT;AAEA,MAAa,kBAAkB;CAAE,IAAI;CAAmB,MAAM;AAAa;AAE3E,MAAa,6BAA6B;AAO1C,MAAa,uBAAuB;CAAE,UAAU;CAAG,cAAc,UAA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YPE: {
|
|
|
3
3
|
SINGLE_FILE: string;
|
|
4
4
|
};
|
|
5
5
|
declare const currentArtifact = "artifact_name";
|
|
6
|
-
declare const softwareIndicator = ".version";
|
|
7
6
|
declare const rootfsImageVersion = "rootfs-image.version";
|
|
8
7
|
declare const manifestVersion = "data-partition.mender-orchestrator-manifest.version";
|
|
9
8
|
declare const softwareTitleMap: {
|
|
@@ -19,5 +18,5 @@ declare const softwareTitleMap: {
|
|
|
19
18
|
};
|
|
20
19
|
};
|
|
21
20
|
//#endregion
|
|
22
|
-
export {
|
|
23
|
-
//# sourceMappingURL=constants-
|
|
21
|
+
export { softwareTitleMap as a, rootfsImageVersion as i, currentArtifact as n, manifestVersion as r, ARTIFACT_GENERATION_TYPE as t };
|
|
22
|
+
//# sourceMappingURL=constants-DOnQ-UzD.d.cts.map
|
|
@@ -3,7 +3,6 @@ declare const ARTIFACT_GENERATION_TYPE: {
|
|
|
3
3
|
SINGLE_FILE: string;
|
|
4
4
|
};
|
|
5
5
|
declare const currentArtifact = "artifact_name";
|
|
6
|
-
declare const softwareIndicator = ".version";
|
|
7
6
|
declare const rootfsImageVersion = "rootfs-image.version";
|
|
8
7
|
declare const manifestVersion = "data-partition.mender-orchestrator-manifest.version";
|
|
9
8
|
declare const softwareTitleMap: {
|
|
@@ -19,5 +18,5 @@ declare const softwareTitleMap: {
|
|
|
19
18
|
};
|
|
20
19
|
};
|
|
21
20
|
//#endregion
|
|
22
|
-
export {
|
|
23
|
-
//# sourceMappingURL=constants-
|
|
21
|
+
export { softwareTitleMap as a, rootfsImageVersion as i, currentArtifact as n, manifestVersion as r, ARTIFACT_GENERATION_TYPE as t };
|
|
22
|
+
//# sourceMappingURL=constants-DOnQ-UzD.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./constants-tC3RR_Oo.cjs";
|
|
2
2
|
import "./constants-C6TIYaY4.cjs";
|
|
3
3
|
import { Integration } from "@northern.tech/types/MenderTypes";
|
|
4
|
-
import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_SOFTWARE, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, AnyPermission, AuditLogPermission, CountryType, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, DeploymentPermission, DeviceIssueOptionKey, GroupsPermission, PaginationOptions, PermissionObject, PermissionSet, PermissionSetId, PermissionTypes, ReleasesPermission, Role, SORTING_OPTIONS, ScopedPermissionsByAreaKey, SortOptions, TIMEOUTS, UiPermissionsByAreaKey, UiPermissionsByIdKey, UiPermissionsDefinition, UserManagementPermission, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, countries, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
|
|
4
|
+
import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_SOFTWARE, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, AnyPermission, AuditLogPermission, CountryType, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, DeploymentPermission, DeviceIssueOptionKey, GroupsPermission, PaginationOptions, PermissionObject, PermissionSet, PermissionSetId, PermissionTypes, ReleasesPermission, Role, SORTING_OPTIONS, ScopedPermissionsByAreaKey, SortOptions, TIMEOUTS, UiPermissionsByAreaKey, UiPermissionsByIdKey, UiPermissionsDefinition, UserManagementPermission, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, countries, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, softwareIndicator, ssoEndpointsApiUrlv1, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
|
|
5
5
|
//#region src/commonConstants.d.ts
|
|
6
6
|
declare const timeUnits: {
|
|
7
7
|
days: string;
|
|
@@ -105,5 +105,5 @@ declare const REPORT_CHART_SIZE_LIMIT = 6;
|
|
|
105
105
|
//#region src/monitorSlice/constants.d.ts
|
|
106
106
|
type AlertChannelKey = keyof typeof alertChannels;
|
|
107
107
|
//#endregion
|
|
108
|
-
export { scopedPermissionAreas as $, alertChannels as A,
|
|
109
|
-
//# sourceMappingURL=constants-
|
|
108
|
+
export { scopedPermissionAreas as $, alertChannels as A, TIMEOUTS as At, deviceConnect as B, SORTING_OPTIONS as C, DEVICE_LIST_MAXIMUM_LENGTH as Ct, UiPermissionsByIdKey as D, IdAttribute as Dt, UiPermissionsByAreaKey as E, FilterOperator as Et, deploymentsApiUrl as F, defaultIdAttribute as Ft, inventoryApiUrlV2 as G, emptyUiPermissions as H, deploymentsApiUrlV1alpha1 as I, emptyWebhook as It, limitDefault as J, inventoryApiUrlV2alpha1 as K, deploymentsApiUrlV2 as L, productOrder as Lt, apiUrl as M, Webhook as Mt, auditLogsApiUrl as N, countries as Nt, UiPermissionsDefinition as O, MAX_PAGE_SIZE as Ot, defaultPermissionSets as P, credentialTypes as Pt, rolesByName as Q, deviceAuthV2 as R, timeUnits as Rt, Role as S, CountryType as St, SortOptions as T, EXTERNAL_PROVIDER as Tt, headerNames as U, emptyRole as V, inventoryApiUrl as W, monitorApiUrlv1 as X, maxSessionAge as Y, rolesById as Z, PermissionObject as _, DeviceAuthState as _t, APPLICATION_JWT_CONTENT_TYPE as a, tenantadmApiUrlv2 as at, PermissionTypes as b, geoAttributes as bt, AuditLogPermission as c, uiPermissionsById as ct, DEVICE_LIST_DEFAULTS as d, useradmApiUrlv2 as dt, serviceProviderRolesById as et, DEVICE_STATES as f, AlertChannelKey as ft, PaginationOptions as g, DEVICE_MESSAGE_TYPES as gt, GroupsPermission as h, DEVICE_MESSAGE_PROTOCOLS as ht, APPLICATION_JSON_CONTENT_TYPE as i, tenantadmApiUrlv1 as it, apiRoot as j, UNGROUPED_GROUP as jt, UserManagementPermission as k, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as kt, DEVICE_FILTERING_OPTIONS as l, useradmApiUrl as lt, DeviceIssueOptionKey as m, DEVICE_DISMISSAL_STATE as mt, ALL_DEVICE_STATES as n, ssoEndpointsApiUrlv1 as nt, ATTRIBUTE_SCOPES as o, twoFAStates as ot, DeploymentPermission as p, DEVICE_CONNECT_STATES as pt, iotManagerBaseURL as q, ALL_SOFTWARE as r, ssoIdpApiUrlv1 as rt, AnyPermission as s, uiPermissionsByArea as st, ALL_DEVICES as t, softwareIndicator as tt, DEVICE_ISSUE_OPTIONS as u, useradmApiUrlv1 as ut, PermissionSet as v, REPORT_CHART_SIZE_LIMIT as vt, ScopedPermissionsByAreaKey as w, DEVICE_ONLINE_CUTOFF as wt, ReleasesPermission as x, ATTRIBUTE_SCOPE_LABELS as xt, PermissionSetId as y, emptyFilter as yt, deviceConfig as z };
|
|
109
|
+
//# sourceMappingURL=constants-DsJM7i1a.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_SOFTWARE, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, PermissionTypes, SORTING_OPTIONS, TIMEOUTS as TIMEOUTS$1, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, countries, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
|
|
1
|
+
import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_SOFTWARE, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, PermissionTypes, SORTING_OPTIONS, TIMEOUTS as TIMEOUTS$1, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, countries, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, softwareIndicator, ssoEndpointsApiUrlv1, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
|
|
2
2
|
import { mdiAws, mdiMicrosoftAzure } from "@mdi/js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/commonConstants.tsx
|
|
@@ -318,19 +318,16 @@ const SSO_TYPES = {
|
|
|
318
318
|
getStartUrl: getSamlStartUrl,
|
|
319
319
|
configDetails: [
|
|
320
320
|
{
|
|
321
|
-
key: "
|
|
322
|
-
label: "Entity ID"
|
|
323
|
-
getValue: (id) => `${window.location.origin}${useradmApiUrl}/sso/sp/metadata/${id}`
|
|
321
|
+
key: "entity_id",
|
|
322
|
+
label: "Entity ID"
|
|
324
323
|
},
|
|
325
324
|
{
|
|
326
|
-
key: "
|
|
327
|
-
label: "ACS URL"
|
|
328
|
-
getValue: (id) => `${window.location.origin}${useradmApiUrl}/auth/sso/${id}/acs`
|
|
325
|
+
key: "acs_url",
|
|
326
|
+
label: "ACS URL"
|
|
329
327
|
},
|
|
330
328
|
{
|
|
331
|
-
key: "
|
|
332
|
-
label: "Start URL"
|
|
333
|
-
getValue: getSamlStartUrl
|
|
329
|
+
key: "start_url",
|
|
330
|
+
label: "Start URL"
|
|
334
331
|
}
|
|
335
332
|
]
|
|
336
333
|
},
|
|
@@ -343,9 +340,11 @@ const SSO_TYPES = {
|
|
|
343
340
|
contentType: "application/json",
|
|
344
341
|
getStartUrl: getOidcStartUrl,
|
|
345
342
|
configDetails: [{
|
|
346
|
-
key: "
|
|
347
|
-
label: "
|
|
348
|
-
|
|
343
|
+
key: "callback_url",
|
|
344
|
+
label: "Callback URL"
|
|
345
|
+
}, {
|
|
346
|
+
key: "start_url",
|
|
347
|
+
label: "Start URL"
|
|
349
348
|
}]
|
|
350
349
|
}
|
|
351
350
|
};
|
|
@@ -413,6 +412,6 @@ const READ_STATES = {
|
|
|
413
412
|
unread: "unread"
|
|
414
413
|
};
|
|
415
414
|
//#endregion
|
|
416
|
-
export {
|
|
415
|
+
export { itemUiPermissionsReducer as $, iotManagerBaseURL as A, ATTRIBUTE_SCOPE_LABELS as At, ssoIdpApiUrlv1 as B, defaultIdAttribute as Bt, deviceConnect as C, deploymentPrototype as Ct, inventoryApiUrl as D, installationSubstatesMap as Dt, headerNames as E, deploymentSubstates as Et, rolesByName as F, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Ft, uiPermissionsById as G, tenantadmApiUrlv2 as H, productOrder as Ht, scopedPermissionAreas as I, TIMEOUTS$1 as It, useradmApiUrlv2 as J, useradmApiUrl as K, serviceProviderRolesById as L, UNGROUPED_GROUP as Lt, maxSessionAge as M, DEVICE_ONLINE_CUTOFF as Mt, monitorApiUrlv1 as N, EXTERNAL_PROVIDER as Nt, inventoryApiUrlV2 as O, listDefaultsByState as Ot, rolesById as P, MAX_PAGE_SIZE as Pt, checkPermissionsObject as Q, softwareIndicator as R, countries as Rt, deviceConfig as S, deploymentDisplayStates as St, emptyUiPermissions as T, deploymentStatesToSubstatesWithSkipped as Tt, twoFAStates as U, timeUnits as Ut, tenantadmApiUrlv1 as V, emptyWebhook as Vt, uiPermissionsByArea as W, READ_STATES as X, OWN_USER_ID as Y, USER_LOGOUT as Z, defaultPermissionSets as _, DEFAULT_PENDING_INPROGRESS_COUNT as _t, APPLICATION_JWT_CONTENT_TYPE as a, TENANT_LIST_DEFAULT as at, deploymentsApiUrlV2 as b, DEPLOYMENT_TYPES as bt, DEVICE_ISSUE_OPTIONS as c, getOidcStartUrl as ct, PermissionTypes as d, DEVICE_DISMISSAL_STATE as dt, settingsKeys as et, SORTING_OPTIONS as f, DEVICE_MESSAGE_PROTOCOLS as ft, auditLogsApiUrl as g, geoAttributes as gt, apiUrl as h, emptyFilter as ht, APPLICATION_JSON_CONTENT_TYPE as i, SSO_TYPES as it, limitDefault as j, DEVICE_LIST_MAXIMUM_LENGTH as jt, inventoryApiUrlV2alpha1 as k, pauseMap as kt, DEVICE_LIST_DEFAULTS as l, getSamlStartUrl as lt, apiRoot as m, REPORT_CHART_SIZE_LIMIT as mt, ALL_DEVICE_STATES as n, JSON_METADATA_FORMAT as nt, ATTRIBUTE_SCOPES as o, XML_METADATA_FORMAT as ot, alertChannels as p, DEVICE_MESSAGE_TYPES as pt, useradmApiUrlv1 as q, ALL_SOFTWARE as r, SP_AUDIT_LOGS_TYPES as rt, DEVICE_FILTERING_OPTIONS as s, auditlogTypes as st, ALL_DEVICES as t, AUDIT_LOGS_TYPES as tt, DEVICE_STATES as u, DEVICE_CONNECT_STATES as ut, deploymentsApiUrl as v, DEPLOYMENT_ROUTES as vt, emptyRole as w, deploymentStatesToSubstates as wt, deviceAuthV2 as x, defaultStats as xt, deploymentsApiUrlV1alpha1 as y, DEPLOYMENT_STATES as yt, ssoEndpointsApiUrlv1 as z, credentialTypes as zt };
|
|
417
416
|
|
|
418
|
-
//# sourceMappingURL=constants-
|
|
417
|
+
//# sourceMappingURL=constants-TPYvZDsI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-DjiC_FnZ.js","names":["AWS","Azure"],"sources":["../src/commonConstants.tsx","../src/deploymentsSlice/constants.ts","../src/devicesSlice/constants.ts","../src/organizationSlice/constants.ts","../src/usersSlice/constants.ts"],"sourcesContent":["// 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 { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\nimport type { Integration } from '@northern.tech/types/MenderTypes';\nimport { TIMEOUTS, countries } from '@northern.tech/utils/constants';\nimport type { CountryType } from '@northern.tech/utils/constants';\n\nimport type { DEVICE_FILTERING_OPTIONS } from './constants';\nimport { ATTRIBUTE_SCOPES } from './constants';\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport type FilterOperator = keyof typeof DEVICE_FILTERING_OPTIONS;\n\nexport { TIMEOUTS, countries };\nexport type { CountryType };\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport interface IdAttribute {\n attribute: string;\n scope: string;\n}\nexport const defaultIdAttribute: Readonly<IdAttribute> = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nexport const ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX = 'mender-orchestrator-manifest.';\n\n// displayed labels for attribute scopes that diverge from the internal scope values: the system scope shows as\n// `default`, while orchestrator manifest attributes (inventory scope) show as `system`\nexport const ATTRIBUTE_SCOPE_LABELS = {\n default: 'default',\n system: 'system'\n} as const;\n\nexport const productOrder = ['micro', 'standard', 'system'];\n\nexport const 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 twinTitle: '',\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} as const;\n\nexport interface Webhook extends Integration {\n provider: 'webhook';\n}\n\nexport const emptyWebhook: Webhook = {\n description: '',\n provider: 'webhook',\n credentials: {\n type: EXTERNAL_PROVIDER.webhook.credentialsType,\n [EXTERNAL_PROVIDER.webhook.credentialsType]: {\n secret: '',\n url: ''\n }\n }\n};\n\nexport const MAX_PAGE_SIZE = 500;\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 type { DeploymentStatistics } from '@northern.tech/types/MenderTypes';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '../constants';\n\nconst alreadyInstalled = 'already-installed';\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 artifact_too_big: 'artifact_too_big',\n incompatible_tier: 'incompatible_tier',\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 type DeploymentSubstateMapping = {\n failures: string[];\n inprogress: string[];\n paused: string[];\n pending: string[];\n skipped?: string[];\n successes: string[];\n};\n\nexport const deploymentStatesToSubstates: DeploymentSubstateMapping = {\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: [\n deploymentSubstates.success,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.incompatible_tier\n ]\n};\n\nexport const deploymentStatesToSubstatesWithSkipped: DeploymentSubstateMapping = {\n ...deploymentStatesToSubstates,\n failures: [deploymentSubstates.failure],\n skipped: [\n deploymentSubstates.aborted,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.decommissioned,\n deploymentSubstates.incompatible_tier\n ],\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} as const;\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} as const;\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: {} } as DeploymentStatistics\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};\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 type { DEVICE_STATES, FilterOperator } from '../constants';\nimport { DEVICE_FILTERING_OPTIONS } from '../constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key as FilterOperator, scope: 'inventory' };\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';\n\nexport type DeviceAuthState = (typeof DEVICE_STATES)[keyof typeof DEVICE_STATES];\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.\nimport { useradmApiUrl } from '../constants';\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} as const;\n\nexport type ContentType = (typeof SSO_TYPES)[keyof typeof SSO_TYPES]['contentType'];\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 const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n","'use strict';\n\n// Copyright 2015 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 { uiPermissionsById } from '../constants';\n\nexport type UiPermission = {\n explanations: object;\n permissionLevel: number;\n permissionSets: Record<string, string>;\n title: string;\n value: string;\n verbs: string[];\n};\n\ntype ExcessiveAccessConfig = {\n selector: string;\n warning: string;\n};\n\ntype EndpointDefinition = {\n path: RegExp;\n types: string[];\n uiPermissions: UiPermission[];\n};\n\n/**\n * _uiPermissions_ represent the possible permissions/ rights that can be given for the area\n * _endpoints_ represent the possible endpoints this definition might be affecting in the UI and what\n * functionality might be affected\n *\n */\nexport type PermissionsArea = {\n endpoints: EndpointDefinition[];\n excessiveAccessConfig?: ExcessiveAccessConfig;\n explanation: string;\n filter?: (object) => string[];\n key: string;\n placeholder?: string;\n scope?: string;\n title: string;\n uiPermissions: UiPermission[];\n};\n\nexport const itemUiPermissionsReducer = (accu, { item, uiPermissions }) => (item ? { ...accu, [item]: uiPermissions } : accu);\n\nconst checkSinglePermission = (permission, requiredPermission) =>\n requiredPermission === permission || uiPermissionsById[permission].permissionLevel > uiPermissionsById[requiredPermission].permissionLevel;\n\nexport const checkPermissionsObject = (permissions, requiredPermission, scopedAccess, superAccess) =>\n permissions[superAccess]?.some(permission => checkSinglePermission(permission, requiredPermission)) ||\n permissions[scopedAccess]?.some(permission => checkSinglePermission(permission, requiredPermission));\n\nexport const USER_LOGOUT = 'USER_LOGOUT';\n\nexport const OWN_USER_ID = 'me';\n\nexport const settingsKeys = { colorScheme: 'colorScheme', initialized: 'settings-initialized' };\n\nexport const READ_STATES = {\n read: 'read',\n seen: 'seen',\n unread: 'unread'\n} as const;\nexport type ReadState = keyof typeof READ_STATES;\n"],"mappings":";;;;AAsBA,MAAa,YAAY;CACvB,MAAM;CACN,SAAS;CACT,OAAO;AACT;AAEA,MAAa,kBAAkB;CAAE,IAAI;CAAmB,MAAM;AAAa;AAE3E,MAAa,6BAA6B;AAO1C,MAAa,uBAAuB;CAAE,UAAU;CAAG,cAAc,UAAU;AAAK;AAMhF,MAAa,qBAA4C,OAAO,OAAO;CAAE,WAAW;CAAM,OAAO,iBAAiB;AAAS,CAAC;AAE5H,MAAa,yCAAyC;AAItD,MAAa,yBAAyB;CACpC,SAAS;CACT,QAAQ;AACV;AAEA,MAAa,eAAe;CAAC;CAAS;CAAY;AAAQ;AAE1D,MAAa,kBAAkB;CAC7B,KAAK;CACL,MAAM;CACN,KAAK;CACL,MAAM;AACR;AACA,MAAa,oBAAoB;CAC/B,YAAY;EACV,iBAAiB,gBAAgB;EACjC,MAAMA;EACN,OAAO;EACP,WAAW;EACX,UAAU;EACV,SAAS;EACT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a,OAAO;CAAS;AAC1E;AAEA,MAAa,mBAAmB;CAAC,cAAc;CAAU,cAAc;CAAY,cAAc;CAAQ,cAAc;CAAmB,cAAc;AAAI;AAC5J,MAAa,sBAAsB,CAAC,cAAc,MAAM,cAAc,MAAM;AAE5E,MAAa,sBAAsB;CACjC,MAAM;CACN,SAAS;AACX;;;ACVA,MAAa,4BAA4B,MAAM,EAAE,MAAM,oBAAqB,OAAO;CAAE,GAAG;EAAO,OAAO;AAAc,IAAI;AAExH,MAAM,yBAAyB,YAAY,uBACzC,uBAAuB,cAAc,kBAAkB,WAAW,CAAC,kBAAkB,kBAAkB,mBAAmB,CAAC;AAE7H,MAAa,0BAA0B,aAAa,oBAAoB,cAAc,gBACpF,YAAY,YAAY,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC,KAClG,YAAY,aAAa,EAAE,MAAK,eAAc,sBAAsB,YAAY,kBAAkB,CAAC;AAErG,MAAa,cAAc;AAE3B,MAAa,cAAc;AAE3B,MAAa,eAAe;CAAE,aAAa;CAAe,aAAa;AAAuB;AAE9F,MAAa,cAAc;CACzB,MAAM;CACN,MAAM;CACN,QAAQ;AACV"}
|
|
1
|
+
{"version":3,"file":"constants-TPYvZDsI.js","names":["AWS","Azure"],"sources":["../src/commonConstants.tsx","../src/deploymentsSlice/constants.ts","../src/devicesSlice/constants.ts","../src/organizationSlice/constants.ts","../src/usersSlice/constants.ts"],"sourcesContent":["// 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 { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\nimport type { Integration } from '@northern.tech/types/MenderTypes';\nimport { TIMEOUTS, countries } from '@northern.tech/utils/constants';\nimport type { CountryType } from '@northern.tech/utils/constants';\n\nimport type { DEVICE_FILTERING_OPTIONS } from './constants';\nimport { ATTRIBUTE_SCOPES } from './constants';\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport type FilterOperator = keyof typeof DEVICE_FILTERING_OPTIONS;\n\nexport { TIMEOUTS, countries };\nexport type { CountryType };\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport interface IdAttribute {\n attribute: string;\n scope: string;\n}\nexport const defaultIdAttribute: Readonly<IdAttribute> = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nexport const ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX = 'mender-orchestrator-manifest.';\n\n// displayed labels for attribute scopes that diverge from the internal scope values: the system scope shows as\n// `default`, while orchestrator manifest attributes (inventory scope) show as `system`\nexport const ATTRIBUTE_SCOPE_LABELS = {\n default: 'default',\n system: 'system'\n} as const;\n\nexport const productOrder = ['micro', 'standard', 'system'];\n\nexport const 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 twinTitle: '',\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} as const;\n\nexport interface Webhook extends Integration {\n provider: 'webhook';\n}\n\nexport const emptyWebhook: Webhook = {\n description: '',\n provider: 'webhook',\n credentials: {\n type: EXTERNAL_PROVIDER.webhook.credentialsType,\n [EXTERNAL_PROVIDER.webhook.credentialsType]: {\n secret: '',\n url: ''\n }\n }\n};\n\nexport const MAX_PAGE_SIZE = 500;\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 type { DeploymentStatistics } from '@northern.tech/types/MenderTypes';\n\nimport { DEVICE_LIST_DEFAULTS, SORTING_OPTIONS } from '../constants';\n\nconst alreadyInstalled = 'already-installed';\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 artifact_too_big: 'artifact_too_big',\n incompatible_tier: 'incompatible_tier',\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 type DeploymentSubstateMapping = {\n failures: string[];\n inprogress: string[];\n paused: string[];\n pending: string[];\n skipped?: string[];\n successes: string[];\n};\n\nexport const deploymentStatesToSubstates: DeploymentSubstateMapping = {\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: [\n deploymentSubstates.success,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.incompatible_tier\n ]\n};\n\nexport const deploymentStatesToSubstatesWithSkipped: DeploymentSubstateMapping = {\n ...deploymentStatesToSubstates,\n failures: [deploymentSubstates.failure],\n skipped: [\n deploymentSubstates.aborted,\n deploymentSubstates.noartifact,\n deploymentSubstates.artifact_too_big,\n deploymentSubstates.alreadyInstalled,\n deploymentSubstates.decommissioned,\n deploymentSubstates.incompatible_tier\n ],\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} as const;\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} as const;\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: {} } as DeploymentStatistics\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};\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 type { DEVICE_STATES, FilterOperator } from '../constants';\nimport { DEVICE_FILTERING_OPTIONS } from '../constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key as FilterOperator, scope: 'inventory' };\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';\n\nexport type DeviceAuthState = (typeof DEVICE_STATES)[keyof typeof DEVICE_STATES];\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.\nimport { useradmApiUrl } from '../constants';\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: 'entity_id', label: 'Entity ID' },\n { key: 'acs_url', label: 'ACS URL' },\n { key: 'start_url', label: 'Start URL' }\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: [\n { key: 'callback_url', label: 'Callback URL' },\n { key: 'start_url', label: 'Start URL' }\n ]\n }\n} as const;\n\nexport type ContentType = (typeof SSO_TYPES)[keyof typeof SSO_TYPES]['contentType'];\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 const TENANT_LIST_DEFAULT = {\n page: 1,\n perPage: 20\n};\n","'use strict';\n\n// Copyright 2015 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 { uiPermissionsById } from '../constants';\n\nexport type UiPermission = {\n explanations: object;\n permissionLevel: number;\n permissionSets: Record<string, string>;\n title: string;\n value: string;\n verbs: string[];\n};\n\ntype ExcessiveAccessConfig = {\n selector: string;\n warning: string;\n};\n\ntype EndpointDefinition = {\n path: RegExp;\n types: string[];\n uiPermissions: UiPermission[];\n};\n\n/**\n * _uiPermissions_ represent the possible permissions/ rights that can be given for the area\n * _endpoints_ represent the possible endpoints this definition might be affecting in the UI and what\n * functionality might be affected\n *\n */\nexport type PermissionsArea = {\n endpoints: EndpointDefinition[];\n excessiveAccessConfig?: ExcessiveAccessConfig;\n explanation: string;\n filter?: (object) => string[];\n key: string;\n placeholder?: string;\n scope?: string;\n title: string;\n uiPermissions: UiPermission[];\n};\n\nexport const itemUiPermissionsReducer = (accu, { item, uiPermissions }) => (item ? { ...accu, [item]: uiPermissions } : accu);\n\nconst checkSinglePermission = (permission, requiredPermission) =>\n requiredPermission === permission || uiPermissionsById[permission].permissionLevel > uiPermissionsById[requiredPermission].permissionLevel;\n\nexport const checkPermissionsObject = (permissions, requiredPermission, scopedAccess, superAccess) =>\n permissions[superAccess]?.some(permission => checkSinglePermission(permission, requiredPermission)) ||\n permissions[scopedAccess]?.some(permission => checkSinglePermission(permission, requiredPermission));\n\nexport const USER_LOGOUT = 'USER_LOGOUT';\n\nexport const OWN_USER_ID = 'me';\n\nexport const settingsKeys = { colorScheme: 'colorScheme', initialized: 'settings-initialized' };\n\nexport const READ_STATES = {\n read: 'read',\n seen: 'seen',\n unread: 'unread'\n} as const;\nexport type ReadState = keyof typeof READ_STATES;\n"],"mappings":";;;;AAsBA,MAAa,YAAY;CACvB,MAAM;CACN,SAAS;CACT,OAAO;AACT;AAEA,MAAa,kBAAkB;CAAE,IAAI;CAAmB,MAAM;AAAa;AAE3E,MAAa,6BAA6B;AAO1C,MAAa,uBAAuB;CAAE,UAAU;CAAG,cAAc,UAAU;AAAK;AAMhF,MAAa,qBAA4C,OAAO,OAAO;CAAE,WAAW;CAAM,OAAO,iBAAiB;AAAS,CAAC;AAE5H,MAAa,yCAAyC;AAItD,MAAa,yBAAyB;CACpC,SAAS;CACT,QAAQ;AACV;AAEA,MAAa,eAAe;CAAC;CAAS;CAAY;AAAQ;AAE1D,MAAa,kBAAkB;CAC7B,KAAK;CACL,MAAM;CACN,KAAK;CACL,MAAM;AACR;AACA,MAAa,oBAAoB;CAC/B,YAAY;EACV,iBAAiB,gBAAgB;EACjC,MAAMA;EACN,OAAO;EACP,WAAW;EACX,UAAU;EACV,SAAS;EACT,YAAY;EACZ,YAAY,oBAAA,UAAA,EAA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