@northern.tech/store 0.1.1 → 0.1.3
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.mts +95 -0
- package/dist/actions.d.ts +95 -0
- package/dist/actions.js +1746 -0
- package/dist/actions.js.map +1 -0
- package/dist/actions.mjs +21 -0
- package/dist/actions.mjs.map +1 -0
- package/dist/api/general-api.d.mts +21 -0
- package/dist/api/general-api.d.ts +21 -0
- package/dist/api/general-api.js +1002 -0
- package/dist/api/general-api.js.map +1 -0
- package/dist/api/general-api.mjs +18 -0
- package/dist/api/general-api.mjs.map +1 -0
- package/dist/api/types/Address.ts +6 -0
- package/dist/api/types/AddressUpdate.ts +12 -0
- package/dist/api/types/AuthSet.ts +37 -0
- package/{api/types/AuthSet.ts → dist/api/types/AuthSetIot_manager.ts} +2 -2
- package/dist/api/types/BillingProfile.ts +37 -0
- package/dist/api/types/BillingProfileUpdate.ts +37 -0
- package/{api → dist/api}/types/BinaryDeltaLimits.ts +6 -0
- package/{api → dist/api}/types/BoundingBox.ts +1 -3
- package/dist/api/types/Deployment.ts +45 -0
- package/{api → dist/api}/types/DeploymentAggregation.ts +1 -3
- package/{api → dist/api}/types/DeploymentAggregationItem.ts +1 -3
- package/{api → dist/api}/types/DeploymentAggregationTerm.ts +1 -2
- package/{api → dist/api}/types/DeploymentAggregationTerms.ts +1 -3
- package/{api → dist/api}/types/DeploymentAttributeProjection.ts +1 -2
- package/{api → dist/api}/types/DeploymentDeployments.ts +4 -5
- package/{api → dist/api}/types/DeploymentFilterTerm.ts +1 -3
- package/dist/api/types/DeploymentPhaseDeployments.ts +23 -0
- package/{api → dist/api}/types/DeploymentSearchTerms.ts +1 -3
- package/{api → dist/api}/types/DeploymentSortTerm.ts +1 -3
- package/dist/api/types/DeploymentStatisticsDeployments.ts +15 -0
- package/dist/api/types/DeploymentStatusStatisticsDeployments.ts +54 -0
- package/dist/api/types/Device.ts +20 -0
- package/{api → dist/api}/types/DeviceAggregation.ts +1 -3
- package/{api → dist/api}/types/DeviceAggregationItem.ts +1 -3
- package/{api → dist/api}/types/DeviceAggregationTerm.ts +1 -2
- package/{api → dist/api}/types/DeviceAggregationTerms.ts +1 -3
- package/{api → dist/api}/types/DeviceAttribute.ts +1 -2
- package/{api → dist/api}/types/DeviceAttributeProjection.ts +1 -2
- package/{api/types/Device.ts → dist/api/types/DeviceDeployments.ts} +1 -1
- package/{api → dist/api}/types/DeviceFilterAttribute.ts +1 -2
- package/{api → dist/api}/types/DeviceFilterTerm.ts +1 -3
- package/{api → dist/api}/types/DeviceSearchTerms.ts +1 -3
- package/{api → dist/api}/types/DeviceSortTerm.ts +1 -3
- package/{api → dist/api}/types/Error.ts +1 -1
- package/{api/types/FilterInventory.ts → dist/api/types/Filter.ts} +3 -4
- package/{api/types/Filter.ts → dist/api/types/FilterInventory.ts} +1 -1
- package/dist/api/types/FilterPredicate.ts +48 -0
- package/{api/types/FilterPredicate.ts → dist/api/types/FilterPredicateInventory.ts} +3 -3
- package/{api → dist/api}/types/GeoBoundingBox.ts +1 -3
- package/{api → dist/api}/types/GeoBoundingBoxFilter.ts +1 -2
- package/{api → dist/api}/types/GeoDistance.ts +1 -3
- package/{api → dist/api}/types/GeoDistanceFilter.ts +1 -3
- package/{api → dist/api}/types/GeoPoint.ts +1 -2
- package/{api → dist/api}/types/Integration.ts +6 -0
- package/{api → dist/api}/types/MenderTypes.ts +41 -11
- package/{api → dist/api}/types/NewDeploymentV2.ts +3 -0
- package/{api → dist/api}/types/NewTenant.ts +16 -8
- package/{api → dist/api}/types/Object.ts +3 -0
- package/{api → dist/api}/types/PreAuthSet.ts +1 -1
- package/{api → dist/api}/types/Settings.ts +3 -3
- package/{api → dist/api}/types/Status.ts +5 -4
- package/{api → dist/api}/types/StatusTenantadm.ts +1 -3
- package/dist/api/types/Tenant.ts +21 -0
- package/{api → dist/api}/types/TenantTenantadm.ts +16 -0
- package/dist/api/types/UpdateChildTenant.ts +17 -0
- package/{api → dist/api}/types/UpdateDeployments.ts +1 -1
- package/{api → dist/api}/types/UpgradeCompleteRequest.ts +2 -0
- package/{api → dist/api}/types/UserWithTenantInfo.ts +7 -3
- package/dist/api/users-api.d.mts +16 -0
- package/dist/api/users-api.d.ts +16 -0
- package/dist/api/users-api.js +1026 -0
- package/dist/api/users-api.js.map +1 -0
- package/dist/api/users-api.mjs +15 -0
- package/dist/api/users-api.mjs.map +1 -0
- package/dist/appSlice/constants.d.mts +210 -0
- package/dist/appSlice/constants.d.ts +210 -0
- package/dist/appSlice/constants.js +221 -0
- package/dist/appSlice/constants.js.map +1 -0
- package/dist/appSlice/constants.mjs +42 -0
- package/dist/appSlice/constants.mjs.map +1 -0
- package/dist/appSlice/index.d.mts +1557 -0
- package/dist/appSlice/index.d.ts +1557 -0
- package/dist/appSlice/index.js +1067 -0
- package/dist/appSlice/index.js.map +1 -0
- package/dist/appSlice/index.mjs +21 -0
- package/dist/appSlice/index.mjs.map +1 -0
- package/dist/appSlice/selectors.d.mts +91 -0
- package/dist/appSlice/selectors.d.ts +91 -0
- package/dist/appSlice/selectors.js +90 -0
- package/dist/appSlice/selectors.js.map +1 -0
- package/dist/appSlice/selectors.mjs +20 -0
- package/dist/appSlice/selectors.mjs.map +1 -0
- package/dist/appSlice/thunks.d.mts +46 -0
- package/dist/appSlice/thunks.d.ts +46 -0
- package/dist/appSlice/thunks.js +5655 -0
- package/dist/appSlice/thunks.js.map +1 -0
- package/dist/appSlice/thunks.mjs +45 -0
- package/dist/appSlice/thunks.mjs.map +1 -0
- package/dist/auth.d.mts +17 -0
- package/dist/auth.d.ts +17 -0
- package/dist/auth.js +985 -0
- package/dist/auth.js.map +1 -0
- package/dist/auth.mjs +23 -0
- package/dist/auth.mjs.map +1 -0
- package/dist/chunk-6667TCAJ.mjs +135 -0
- package/dist/chunk-6667TCAJ.mjs.map +1 -0
- package/{releasesSlice/index.ts → dist/chunk-7E7KJHY3.mjs} +33 -32
- package/dist/chunk-7E7KJHY3.mjs.map +1 -0
- package/{usersSlice/index.ts → dist/chunk-BJSH2G7W.mjs} +39 -58
- package/dist/chunk-BJSH2G7W.mjs.map +1 -0
- package/dist/chunk-BOSBROA3.mjs +168 -0
- package/dist/chunk-BOSBROA3.mjs.map +1 -0
- package/dist/chunk-BRHSKNFC.mjs +70 -0
- package/dist/chunk-BRHSKNFC.mjs.map +1 -0
- package/dist/chunk-C2YZYTJ6.mjs +37 -0
- package/dist/chunk-C2YZYTJ6.mjs.map +1 -0
- package/dist/chunk-DZBVTSIX.mjs +55 -0
- package/dist/chunk-DZBVTSIX.mjs.map +1 -0
- package/{appSlice/index.ts → dist/chunk-F37LUTBX.mjs} +58 -68
- package/dist/chunk-F37LUTBX.mjs.map +1 -0
- package/dist/chunk-G32LAKW4.mjs +239 -0
- package/dist/chunk-G32LAKW4.mjs.map +1 -0
- package/dist/chunk-G3I53JGW.mjs +243 -0
- package/dist/chunk-G3I53JGW.mjs.map +1 -0
- package/dist/chunk-G4FGNSV3.mjs +13 -0
- package/dist/chunk-G4FGNSV3.mjs.map +1 -0
- package/dist/chunk-G7LATUT6.mjs +110 -0
- package/dist/chunk-G7LATUT6.mjs.map +1 -0
- package/dist/chunk-H2PQQMRY.mjs +7 -0
- package/dist/chunk-H2PQQMRY.mjs.map +1 -0
- package/{devicesSlice/index.ts → dist/chunk-HRWZJQMH.mjs} +57 -77
- package/dist/chunk-HRWZJQMH.mjs.map +1 -0
- package/dist/chunk-HVHZG2H4.mjs +56 -0
- package/dist/chunk-HVHZG2H4.mjs.map +1 -0
- package/dist/chunk-HXPYJ6QN.mjs +75 -0
- package/dist/chunk-HXPYJ6QN.mjs.map +1 -0
- package/dist/chunk-IPPIKGIB.mjs +35 -0
- package/dist/chunk-IPPIKGIB.mjs.map +1 -0
- package/dist/chunk-IU4OXOPA.mjs +46 -0
- package/dist/chunk-IU4OXOPA.mjs.map +1 -0
- package/dist/chunk-IVSYYXTC.mjs +36 -0
- package/dist/chunk-IVSYYXTC.mjs.map +1 -0
- package/{onboardingSlice/index.ts → dist/chunk-M4U5R7A4.mjs} +19 -22
- package/dist/chunk-M4U5R7A4.mjs.map +1 -0
- package/dist/chunk-N7G6QK2E.mjs +414 -0
- package/dist/chunk-N7G6QK2E.mjs.map +1 -0
- package/dist/chunk-O6O3D52B.mjs +39 -0
- package/dist/chunk-O6O3D52B.mjs.map +1 -0
- package/dist/chunk-QBKCUIWO.mjs +7 -0
- package/dist/chunk-QBKCUIWO.mjs.map +1 -0
- package/dist/chunk-R2GBNXLV.mjs +57 -0
- package/dist/chunk-R2GBNXLV.mjs.map +1 -0
- package/dist/chunk-RH6ONMG7.mjs +65 -0
- package/dist/chunk-RH6ONMG7.mjs.map +1 -0
- package/dist/chunk-RQOE5OOT.mjs +284 -0
- package/dist/chunk-RQOE5OOT.mjs.map +1 -0
- package/dist/chunk-TD45YTYK.mjs +108 -0
- package/dist/chunk-TD45YTYK.mjs.map +1 -0
- package/dist/chunk-V32GTKOS.mjs +1 -0
- package/dist/chunk-V32GTKOS.mjs.map +1 -0
- package/dist/chunk-XWBD7VOK.mjs +93 -0
- package/dist/chunk-XWBD7VOK.mjs.map +1 -0
- package/dist/chunk-XYVPYFSM.mjs +106 -0
- package/dist/chunk-XYVPYFSM.mjs.map +1 -0
- package/dist/chunk-YNVSU3AA.mjs +2977 -0
- package/dist/chunk-YNVSU3AA.mjs.map +1 -0
- package/dist/chunk-ZIYGEXSJ.mjs +145 -0
- package/dist/chunk-ZIYGEXSJ.mjs.map +1 -0
- package/dist/chunk-ZNST5R6O.mjs +658 -0
- package/dist/chunk-ZNST5R6O.mjs.map +1 -0
- package/dist/commonConstants.d.mts +248 -0
- package/dist/commonConstants.d.ts +248 -0
- package/dist/commonConstants.js +303 -0
- package/dist/commonConstants.js.map +1 -0
- package/dist/commonConstants.mjs +40 -0
- package/dist/commonConstants.mjs.map +1 -0
- package/dist/commonSelectors.d.mts +896 -0
- package/dist/commonSelectors.d.ts +896 -0
- package/dist/commonSelectors.js +1482 -0
- package/dist/commonSelectors.js.map +1 -0
- package/dist/commonSelectors.mjs +54 -0
- package/dist/commonSelectors.mjs.map +1 -0
- package/dist/constants.d.mts +12 -0
- package/dist/constants.d.ts +12 -0
- package/dist/constants.js +1246 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.mjs +219 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/deploymentsSlice/constants.d.mts +142 -0
- package/dist/deploymentsSlice/constants.d.ts +142 -0
- package/dist/deploymentsSlice/constants.js +969 -0
- package/dist/deploymentsSlice/constants.js.map +1 -0
- package/dist/deploymentsSlice/constants.mjs +42 -0
- package/dist/deploymentsSlice/constants.mjs.map +1 -0
- package/dist/deploymentsSlice/index.d.mts +2373 -0
- package/dist/deploymentsSlice/index.d.ts +2373 -0
- package/dist/deploymentsSlice/index.js +1053 -0
- package/dist/deploymentsSlice/index.js.map +1 -0
- package/dist/deploymentsSlice/index.mjs +21 -0
- package/dist/deploymentsSlice/index.mjs.map +1 -0
- package/dist/deploymentsSlice/selectors.d.mts +59 -0
- package/dist/deploymentsSlice/selectors.d.ts +59 -0
- package/dist/deploymentsSlice/selectors.js +969 -0
- package/dist/deploymentsSlice/selectors.js.map +1 -0
- package/dist/deploymentsSlice/selectors.mjs +25 -0
- package/dist/deploymentsSlice/selectors.mjs.map +1 -0
- package/dist/deploymentsSlice/thunks.d.mts +202 -0
- package/dist/deploymentsSlice/thunks.d.ts +202 -0
- package/dist/deploymentsSlice/thunks.js +5671 -0
- package/dist/deploymentsSlice/thunks.js.map +1 -0
- package/dist/deploymentsSlice/thunks.mjs +63 -0
- package/dist/deploymentsSlice/thunks.mjs.map +1 -0
- package/dist/devicesSlice/constants.d.mts +44 -0
- package/dist/devicesSlice/constants.d.ts +44 -0
- package/dist/devicesSlice/constants.js +969 -0
- package/dist/devicesSlice/constants.js.map +1 -0
- package/dist/devicesSlice/constants.mjs +40 -0
- package/dist/devicesSlice/constants.mjs.map +1 -0
- package/dist/devicesSlice/index.d.mts +2223 -0
- package/dist/devicesSlice/index.d.ts +2223 -0
- package/dist/devicesSlice/index.js +1109 -0
- package/dist/devicesSlice/index.js.map +1 -0
- package/dist/devicesSlice/index.mjs +21 -0
- package/dist/devicesSlice/index.mjs.map +1 -0
- package/dist/devicesSlice/selectors.d.mts +261 -0
- package/dist/devicesSlice/selectors.d.ts +261 -0
- package/dist/devicesSlice/selectors.js +1084 -0
- package/dist/devicesSlice/selectors.js.map +1 -0
- package/dist/devicesSlice/selectors.mjs +53 -0
- package/dist/devicesSlice/selectors.mjs.map +1 -0
- package/dist/devicesSlice/thunks.d.mts +742 -0
- package/dist/devicesSlice/thunks.d.ts +742 -0
- package/dist/devicesSlice/thunks.js +5743 -0
- package/dist/devicesSlice/thunks.js.map +1 -0
- package/dist/devicesSlice/thunks.mjs +135 -0
- package/dist/devicesSlice/thunks.mjs.map +1 -0
- package/dist/monitorSlice/constants.d.mts +6 -0
- package/dist/monitorSlice/constants.d.ts +6 -0
- package/dist/monitorSlice/constants.js +919 -0
- package/dist/monitorSlice/constants.js.map +1 -0
- package/dist/monitorSlice/constants.mjs +14 -0
- package/dist/monitorSlice/constants.mjs.map +1 -0
- package/dist/monitorSlice/index.d.mts +291 -0
- package/dist/monitorSlice/index.d.ts +291 -0
- package/dist/monitorSlice/index.js +971 -0
- package/dist/monitorSlice/index.js.map +1 -0
- package/dist/monitorSlice/index.mjs +21 -0
- package/dist/monitorSlice/index.mjs.map +1 -0
- package/dist/monitorSlice/selectors.d.mts +3 -0
- package/dist/monitorSlice/selectors.d.ts +3 -0
- package/dist/monitorSlice/selectors.js +31 -0
- package/dist/monitorSlice/selectors.js.map +1 -0
- package/dist/monitorSlice/selectors.mjs +8 -0
- package/dist/monitorSlice/selectors.mjs.map +1 -0
- package/dist/monitorSlice/thunks.d.mts +71 -0
- package/dist/monitorSlice/thunks.d.ts +71 -0
- package/dist/monitorSlice/thunks.js +2531 -0
- package/dist/monitorSlice/thunks.js.map +1 -0
- package/dist/monitorSlice/thunks.mjs +44 -0
- package/dist/monitorSlice/thunks.mjs.map +1 -0
- package/dist/onboardingSlice/constants.d.mts +23 -0
- package/dist/onboardingSlice/constants.d.ts +23 -0
- package/dist/onboardingSlice/constants.js +71 -0
- package/dist/onboardingSlice/constants.js.map +1 -0
- package/dist/onboardingSlice/constants.mjs +10 -0
- package/dist/onboardingSlice/constants.mjs.map +1 -0
- package/dist/onboardingSlice/index.d.mts +237 -0
- package/dist/onboardingSlice/index.d.ts +237 -0
- package/dist/onboardingSlice/index.js +94 -0
- package/dist/onboardingSlice/index.js.map +1 -0
- package/dist/onboardingSlice/index.mjs +16 -0
- package/dist/onboardingSlice/index.mjs.map +1 -0
- package/dist/onboardingSlice/selectors.d.mts +3 -0
- package/dist/onboardingSlice/selectors.d.ts +3 -0
- package/dist/onboardingSlice/selectors.js +31 -0
- package/dist/onboardingSlice/selectors.js.map +1 -0
- package/dist/onboardingSlice/selectors.mjs +8 -0
- package/dist/onboardingSlice/selectors.mjs.map +1 -0
- package/dist/onboardingSlice/thunks.d.mts +172 -0
- package/dist/onboardingSlice/thunks.d.ts +172 -0
- package/dist/onboardingSlice/thunks.js +5661 -0
- package/dist/onboardingSlice/thunks.js.map +1 -0
- package/dist/onboardingSlice/thunks.mjs +51 -0
- package/dist/onboardingSlice/thunks.mjs.map +1 -0
- package/dist/organizationSlice/constants.d.mts +134 -0
- package/dist/organizationSlice/constants.d.ts +134 -0
- package/dist/organizationSlice/constants.js +978 -0
- package/dist/organizationSlice/constants.js.map +1 -0
- package/dist/organizationSlice/constants.mjs +34 -0
- package/dist/organizationSlice/constants.mjs.map +1 -0
- package/dist/organizationSlice/index.d.mts +1097 -0
- package/dist/organizationSlice/index.d.ts +1097 -0
- package/dist/organizationSlice/index.js +1015 -0
- package/dist/organizationSlice/index.js.map +1 -0
- package/dist/organizationSlice/index.mjs +21 -0
- package/dist/organizationSlice/index.mjs.map +1 -0
- package/dist/organizationSlice/selectors.d.mts +134 -0
- package/dist/organizationSlice/selectors.d.ts +134 -0
- package/dist/organizationSlice/selectors.js +977 -0
- package/dist/organizationSlice/selectors.js.map +1 -0
- package/dist/organizationSlice/selectors.mjs +39 -0
- package/dist/organizationSlice/selectors.mjs.map +1 -0
- package/dist/organizationSlice/thunks.d.mts +502 -0
- package/dist/organizationSlice/thunks.d.ts +502 -0
- package/dist/organizationSlice/thunks.js +5709 -0
- package/dist/organizationSlice/thunks.js.map +1 -0
- package/dist/organizationSlice/thunks.mjs +101 -0
- package/dist/organizationSlice/thunks.mjs.map +1 -0
- package/dist/releasesSlice/constants.d.mts +14 -0
- package/dist/releasesSlice/constants.d.ts +14 -0
- package/dist/releasesSlice/constants.js +40 -0
- package/dist/releasesSlice/constants.js.map +1 -0
- package/dist/releasesSlice/constants.mjs +14 -0
- package/dist/releasesSlice/constants.mjs.map +1 -0
- package/dist/releasesSlice/index.d.mts +483 -0
- package/dist/releasesSlice/index.d.ts +483 -0
- package/dist/releasesSlice/index.js +1034 -0
- package/dist/releasesSlice/index.js.map +1 -0
- package/dist/releasesSlice/index.mjs +21 -0
- package/dist/releasesSlice/index.mjs.map +1 -0
- package/dist/releasesSlice/selectors.d.mts +92 -0
- package/dist/releasesSlice/selectors.d.ts +92 -0
- package/dist/releasesSlice/selectors.js +967 -0
- package/dist/releasesSlice/selectors.js.map +1 -0
- package/dist/releasesSlice/selectors.mjs +28 -0
- package/dist/releasesSlice/selectors.mjs.map +1 -0
- package/dist/releasesSlice/thunks.d.mts +276 -0
- package/dist/releasesSlice/thunks.d.ts +276 -0
- package/dist/releasesSlice/thunks.js +2843 -0
- package/dist/releasesSlice/thunks.js.map +1 -0
- package/dist/releasesSlice/thunks.mjs +66 -0
- package/dist/releasesSlice/thunks.mjs.map +1 -0
- package/dist/selectors.d.mts +10 -0
- package/dist/selectors.d.ts +10 -0
- package/dist/selectors.js +1636 -0
- package/dist/selectors.js.map +1 -0
- package/dist/selectors.mjs +207 -0
- package/dist/selectors.mjs.map +1 -0
- package/dist/store.d.mts +2306 -0
- package/dist/store.d.ts +2306 -0
- package/dist/store.js +1877 -0
- package/dist/store.js.map +1 -0
- package/dist/store.mjs +32 -0
- package/dist/store.mjs.map +1 -0
- package/dist/storehooks.d.mts +4 -0
- package/dist/storehooks.d.ts +4 -0
- package/dist/storehooks.js +5844 -0
- package/dist/storehooks.js.map +1 -0
- package/dist/storehooks.mjs +265 -0
- package/dist/storehooks.mjs.map +1 -0
- package/dist/thunks.d.mts +12 -0
- package/dist/thunks.d.ts +12 -0
- package/dist/thunks.js +5973 -0
- package/dist/thunks.js.map +1 -0
- package/dist/thunks.mjs +363 -0
- package/dist/thunks.mjs.map +1 -0
- package/dist/usersSlice/constants.d.mts +635 -0
- package/dist/usersSlice/constants.d.ts +635 -0
- package/dist/usersSlice/constants.js +967 -0
- package/dist/usersSlice/constants.js.map +1 -0
- package/dist/usersSlice/constants.mjs +43 -0
- package/dist/usersSlice/constants.mjs.map +1 -0
- package/dist/usersSlice/index.d.mts +6993 -0
- package/dist/usersSlice/index.d.ts +6993 -0
- package/dist/usersSlice/index.js +1054 -0
- package/dist/usersSlice/index.js.map +1 -0
- package/dist/usersSlice/index.mjs +21 -0
- package/dist/usersSlice/index.mjs.map +1 -0
- package/dist/usersSlice/selectors.d.mts +209 -0
- package/dist/usersSlice/selectors.d.ts +209 -0
- package/dist/usersSlice/selectors.js +997 -0
- package/dist/usersSlice/selectors.js.map +1 -0
- package/dist/usersSlice/selectors.mjs +38 -0
- package/dist/usersSlice/selectors.mjs.map +1 -0
- package/dist/usersSlice/thunks.d.mts +881 -0
- package/dist/usersSlice/thunks.d.ts +881 -0
- package/dist/usersSlice/thunks.js +5717 -0
- package/dist/usersSlice/thunks.js.map +1 -0
- package/dist/usersSlice/thunks.mjs +109 -0
- package/dist/usersSlice/thunks.mjs.map +1 -0
- package/dist/utils.d.mts +60 -0
- package/dist/utils.d.ts +60 -0
- package/dist/utils.js +1160 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +49 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +22 -5
- package/.eslintrc.cjs +0 -9
- package/.prettierignore +0 -1
- package/CHANGELOG.md +0 -19
- package/actions.ts +0 -32
- package/api/general-api.test.ts +0 -51
- package/api/general-api.ts +0 -60
- package/api/types/Deployment.ts +0 -95
- package/api/types/DeviceDeployments.ts +0 -31
- package/api/types/FilterPredicateInventory.ts +0 -76
- package/api/types/Tenant.ts +0 -38
- package/api/users-api.ts +0 -34
- package/appSlice/constants.ts +0 -166
- package/appSlice/reducer.test.ts +0 -97
- package/appSlice/selectors.ts +0 -33
- package/appSlice/thunks.test.ts +0 -118
- package/appSlice/thunks.ts +0 -148
- package/auth.test.ts +0 -36
- package/auth.ts +0 -82
- package/commonConstants.tsx +0 -252
- package/commonSelectors.ts +0 -255
- package/constants.ts +0 -22
- package/deploymentsSlice/constants.ts +0 -175
- package/deploymentsSlice/index.ts +0 -145
- package/deploymentsSlice/reducer.test.ts +0 -108
- package/deploymentsSlice/selectors.ts +0 -58
- package/deploymentsSlice/thunks.test.ts +0 -425
- package/deploymentsSlice/thunks.ts +0 -382
- package/devicesSlice/constants.ts +0 -56
- package/devicesSlice/reducer.test.ts +0 -194
- package/devicesSlice/selectors.ts +0 -127
- package/devicesSlice/thunks.test.tsx +0 -1245
- package/devicesSlice/thunks.tsx +0 -1098
- package/monitorSlice/constants.ts +0 -17
- package/monitorSlice/index.ts +0 -65
- package/monitorSlice/reducer.test.ts +0 -79
- package/monitorSlice/selectors.ts +0 -15
- package/monitorSlice/thunks.test.ts +0 -112
- package/monitorSlice/thunks.ts +0 -101
- package/onboardingSlice/constants.ts +0 -53
- package/onboardingSlice/reducer.test.ts +0 -45
- package/onboardingSlice/selectors.ts +0 -15
- package/onboardingSlice/thunks.test.ts +0 -235
- package/onboardingSlice/thunks.ts +0 -142
- package/organizationSlice/constants.ts +0 -82
- package/organizationSlice/index.ts +0 -111
- package/organizationSlice/reducer.test.ts +0 -78
- package/organizationSlice/selectors.ts +0 -45
- package/organizationSlice/thunks.test.ts +0 -619
- package/organizationSlice/thunks.ts +0 -383
- package/releasesSlice/constants.ts +0 -18
- package/releasesSlice/reducer.test.ts +0 -78
- package/releasesSlice/selectors.ts +0 -33
- package/releasesSlice/thunks.test.ts +0 -389
- package/releasesSlice/thunks.ts +0 -379
- package/selectors.ts +0 -22
- package/store.ts +0 -89
- package/storehooks.test.tsx +0 -386
- package/storehooks.ts +0 -250
- package/thunks.ts +0 -21
- package/tsconfig.json +0 -11
- package/tsup.config.ts +0 -11
- package/usersSlice/constants.ts +0 -374
- package/usersSlice/reducer.test.ts +0 -141
- package/usersSlice/selectors.ts +0 -60
- package/usersSlice/thunks.test.ts +0 -660
- package/usersSlice/thunks.ts +0 -773
- package/utils.test.ts +0 -187
- package/utils.ts +0 -249
- /package/{api → dist/api}/types/AWSCredentials.ts +0 -0
- /package/{api → dist/api}/types/Actor.ts +0 -0
- /package/{api → dist/api}/types/Addon.ts +0 -0
- /package/{api → dist/api}/types/AddonTenantadm.ts +0 -0
- /package/{api → dist/api}/types/Alert.ts +0 -0
- /package/{api → dist/api}/types/AlertDetails.ts +0 -0
- /package/{api → dist/api}/types/AlertSubject.ts +0 -0
- /package/{api → dist/api}/types/ApiBurst.ts +0 -0
- /package/{api → dist/api}/types/ApiBurstTenantadm.ts +0 -0
- /package/{api → dist/api}/types/ApiLimits.ts +0 -0
- /package/{api → dist/api}/types/ApiLimitsTenantadm.ts +0 -0
- /package/{api → dist/api}/types/ApiQuota.ts +0 -0
- /package/{api → dist/api}/types/ApiQuotaTenantadm.ts +0 -0
- /package/{api → dist/api}/types/Artifact.ts +0 -0
- /package/{api → dist/api}/types/ArtifactDeployments.ts +0 -0
- /package/{api → dist/api}/types/ArtifactInfo.ts +0 -0
- /package/{api → dist/api}/types/ArtifactInfoDeployments.ts +0 -0
- /package/{api → dist/api}/types/ArtifactLink.ts +0 -0
- /package/{api → dist/api}/types/ArtifactTypeInfo.ts +0 -0
- /package/{api → dist/api}/types/ArtifactTypeInfoDeployments.ts +0 -0
- /package/{api → dist/api}/types/ArtifactUpdate.ts +0 -0
- /package/{api → dist/api}/types/ArtifactUploadLink.ts +0 -0
- /package/{api → dist/api}/types/Attribute.ts +0 -0
- /package/{api → dist/api}/types/AttributeInventory.ts +0 -0
- /package/{api → dist/api}/types/AuditLog.ts +0 -0
- /package/{api → dist/api}/types/AuthSetDeviceauth.ts +0 -0
- /package/{api → dist/api}/types/AutoAuthRequest.ts +0 -0
- /package/{api → dist/api}/types/AzureSharedAccessSecret.ts +0 -0
- /package/{api → dist/api}/types/BillingInfo.ts +0 -0
- /package/{api → dist/api}/types/BinaryDeltaConfiguration.ts +0 -0
- /package/{api → dist/api}/types/BinaryDeltaConfigurationDeployments.ts +0 -0
- /package/{api → dist/api}/types/BinaryDeltaLimitsDeployments.ts +0 -0
- /package/{api → dist/api}/types/CancelRequest.ts +0 -0
- /package/{api → dist/api}/types/CardData.ts +0 -0
- /package/{api → dist/api}/types/CardSetupData.ts +0 -0
- /package/{api → dist/api}/types/CheckoutData.ts +0 -0
- /package/{api → dist/api}/types/Configuration.ts +0 -0
- /package/{api → dist/api}/types/Count.ts +0 -0
- /package/{api → dist/api}/types/Credentials.ts +0 -0
- /package/{api → dist/api}/types/DBusSubsystem.ts +0 -0
- /package/{api → dist/api}/types/DeltaConfiguration.ts +0 -0
- /package/{api → dist/api}/types/DeltaConfigurationDeployments.ts +0 -0
- /package/{api → dist/api}/types/DeploymentAuditlogs.ts +0 -0
- /package/{api → dist/api}/types/DeploymentIdentifier.ts +0 -0
- /package/{api → dist/api}/types/DeploymentPhase.ts +0 -0
- /package/{api → dist/api}/types/DeploymentReporting.ts +0 -0
- /package/{api → dist/api}/types/DeploymentStatistics.ts +0 -0
- /package/{api → dist/api}/types/DeploymentStatusStatistics.ts +0 -0
- /package/{api → dist/api}/types/DeviceAuditlogs.ts +0 -0
- /package/{api → dist/api}/types/DeviceAuthEvent.ts +0 -0
- /package/{api → dist/api}/types/DeviceConfiguration.ts +0 -0
- /package/{api → dist/api}/types/DeviceDeployment.ts +0 -0
- /package/{api → dist/api}/types/DeviceDeviceauth.ts +0 -0
- /package/{api → dist/api}/types/DeviceInventory.ts +0 -0
- /package/{api → dist/api}/types/DeviceInventoryInventory.ts +0 -0
- /package/{api → dist/api}/types/DeviceReporting.ts +0 -0
- /package/{api → dist/api}/types/DeviceState.ts +0 -0
- /package/{api → dist/api}/types/DeviceStateDeviceconnect.ts +0 -0
- /package/{api → dist/api}/types/DeviceStateIot_manager.ts +0 -0
- /package/{api → dist/api}/types/DeviceStatus.ts +0 -0
- /package/{api → dist/api}/types/DeviceWithImage.ts +0 -0
- /package/{api → dist/api}/types/DirectUploadMetadata.ts +0 -0
- /package/{api → dist/api}/types/EmailVerificationCompletion.ts +0 -0
- /package/{api → dist/api}/types/EmailVerificationRequest.ts +0 -0
- /package/{api → dist/api}/types/ErrorAuditlogs.ts +0 -0
- /package/{api → dist/api}/types/ErrorDeployments.ts +0 -0
- /package/{api → dist/api}/types/ErrorDeviceauth.ts +0 -0
- /package/{api → dist/api}/types/ErrorDeviceconfig.ts +0 -0
- /package/{api → dist/api}/types/ErrorDeviceconnect.ts +0 -0
- /package/{api → dist/api}/types/ErrorDevicemonitor.ts +0 -0
- /package/{api → dist/api}/types/ErrorExt.ts +0 -0
- /package/{api → dist/api}/types/ErrorInventory.ts +0 -0
- /package/{api → dist/api}/types/ErrorIot_manager.ts +0 -0
- /package/{api → dist/api}/types/ErrorNotFound.ts +0 -0
- /package/{api → dist/api}/types/ErrorReporting.ts +0 -0
- /package/{api → dist/api}/types/ErrorTenantadm.ts +0 -0
- /package/{api → dist/api}/types/ErrorUseradm.ts +0 -0
- /package/{api → dist/api}/types/Event.ts +0 -0
- /package/{api → dist/api}/types/ExternalIdentity.ts +0 -0
- /package/{api → dist/api}/types/Features.ts +0 -0
- /package/{api → dist/api}/types/FileUpload.ts +0 -0
- /package/{api → dist/api}/types/FilterAttribute.ts +0 -0
- /package/{api → dist/api}/types/FilterDefinition.ts +0 -0
- /package/{api → dist/api}/types/FilterDeployments.ts +0 -0
- /package/{api → dist/api}/types/FilterPredicateDeployments.ts +0 -0
- /package/{api → dist/api}/types/Group.ts +0 -0
- /package/{api → dist/api}/types/HTTP.ts +0 -0
- /package/{api → dist/api}/types/IdentityData.ts +0 -0
- /package/{api → dist/api}/types/InputParameter.ts +0 -0
- /package/{api → dist/api}/types/JobStatus.ts +0 -0
- /package/{api → dist/api}/types/Limit.ts +0 -0
- /package/{api → dist/api}/types/LimitDeployments.ts +0 -0
- /package/{api → dist/api}/types/LimitDeviceauth.ts +0 -0
- /package/{api → dist/api}/types/LimitUseradm.ts +0 -0
- /package/{api → dist/api}/types/Limits.ts +0 -0
- /package/{api → dist/api}/types/LineDescriptor.ts +0 -0
- /package/{api → dist/api}/types/LogSubsystem.ts +0 -0
- /package/{api → dist/api}/types/LoginOptions.ts +0 -0
- /package/{api → dist/api}/types/ManagementAPIConfiguration.ts +0 -0
- /package/{api → dist/api}/types/MonitorConfiguration.ts +0 -0
- /package/{api → dist/api}/types/NewConfigurationDeployment.ts +0 -0
- /package/{api → dist/api}/types/NewConfigurationDeploymentResponse.ts +0 -0
- /package/{api → dist/api}/types/NewDeployment.ts +0 -0
- /package/{api → dist/api}/types/NewDeploymentForGroup.ts +0 -0
- /package/{api → dist/api}/types/NewDeploymentPhase.ts +0 -0
- /package/{api → dist/api}/types/NewDeploymentPhaseDeployments.ts +0 -0
- /package/{api → dist/api}/types/OwnUserUpdate.ts +0 -0
- /package/{api → dist/api}/types/PasswordResetCompletion.ts +0 -0
- /package/{api → dist/api}/types/PasswordResetRequest.ts +0 -0
- /package/{api → dist/api}/types/Permission.ts +0 -0
- /package/{api → dist/api}/types/PermissionObject.ts +0 -0
- /package/{api → dist/api}/types/PermissionSet.ts +0 -0
- /package/{api → dist/api}/types/PermissionSetWithScope.ts +0 -0
- /package/{api → dist/api}/types/PersonalAccessToken.ts +0 -0
- /package/{api → dist/api}/types/PersonalAccessTokenRequest.ts +0 -0
- /package/{api → dist/api}/types/Plan.ts +0 -0
- /package/{api → dist/api}/types/PlanBindingDetails.ts +0 -0
- /package/{api → dist/api}/types/PlanChangeRequest.ts +0 -0
- /package/{api → dist/api}/types/PlanLimits.ts +0 -0
- /package/{api → dist/api}/types/Release.ts +0 -0
- /package/{api → dist/api}/types/ReleaseDeployments.ts +0 -0
- /package/{api → dist/api}/types/ReleaseUpdate.ts +0 -0
- /package/{api → dist/api}/types/Releases.ts +0 -0
- /package/{api → dist/api}/types/ReleasesDeleteError.ts +0 -0
- /package/{api → dist/api}/types/ReleasesDeployments.ts +0 -0
- /package/{api → dist/api}/types/Role.ts +0 -0
- /package/{api → dist/api}/types/RolePermission.ts +0 -0
- /package/{api → dist/api}/types/RolePermissionObject.ts +0 -0
- /package/{api → dist/api}/types/RoleUseradm.ts +0 -0
- /package/{api → dist/api}/types/SAMLMetadata.ts +0 -0
- /package/{api → dist/api}/types/Scope.ts +0 -0
- /package/{api → dist/api}/types/SelectAttribute.ts +0 -0
- /package/{api → dist/api}/types/ServiceSubsystem.ts +0 -0
- /package/{api → dist/api}/types/SortCriteria.ts +0 -0
- /package/{api → dist/api}/types/SsoObject.ts +0 -0
- /package/{api → dist/api}/types/StatusDeviceauth.ts +0 -0
- /package/{api → dist/api}/types/StorageLimit.ts +0 -0
- /package/{api → dist/api}/types/SubscriptionData.ts +0 -0
- /package/{api → dist/api}/types/SupportRequest.ts +0 -0
- /package/{api → dist/api}/types/Tag.ts +0 -0
- /package/{api → dist/api}/types/Tags.ts +0 -0
- /package/{api → dist/api}/types/TaskResult.ts +0 -0
- /package/{api → dist/api}/types/TaskResultCLI.ts +0 -0
- /package/{api → dist/api}/types/TaskResultHTTPRequest.ts +0 -0
- /package/{api → dist/api}/types/TaskResultHTTPResponse.ts +0 -0
- /package/{api → dist/api}/types/TenantApiLimits.ts +0 -0
- /package/{api → dist/api}/types/TenantApiLimitsTenantadm.ts +0 -0
- /package/{api → dist/api}/types/TenantIdName.ts +0 -0
- /package/{api → dist/api}/types/TenantIdsData.ts +0 -0
- /package/{api → dist/api}/types/TenantInfo.ts +0 -0
- /package/{api → dist/api}/types/TenantShortInfo.ts +0 -0
- /package/{api → dist/api}/types/TenantsIdName.ts +0 -0
- /package/{api → dist/api}/types/Update.ts +0 -0
- /package/{api → dist/api}/types/UpdateFile.ts +0 -0
- /package/{api → dist/api}/types/UpdateFileDeployments.ts +0 -0
- /package/{api → dist/api}/types/UpdateTypes.ts +0 -0
- /package/{api → dist/api}/types/User.ts +0 -0
- /package/{api → dist/api}/types/UserAuditlogs.ts +0 -0
- /package/{api → dist/api}/types/UserNew.ts +0 -0
- /package/{api → dist/api}/types/UserUpdate.ts +0 -0
- /package/{api → dist/api}/types/UserUseradm.ts +0 -0
- /package/{api → dist/api}/types/XDeltaArgs.ts +0 -0
- /package/{api → dist/api}/types/XDeltaArgsDeployments.ts +0 -0
- /package/{api → dist/api}/types/XDeltaArgsLimits.ts +0 -0
- /package/{api → dist/api}/types/XDeltaArgsLimitsDeployments.ts +0 -0
package/dist/actions.js
ADDED
|
@@ -0,0 +1,1746 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __restKey = (key) => typeof key === "symbol" ? key : key + "";
|
|
26
|
+
var __objRest = (source, exclude) => {
|
|
27
|
+
var target = {};
|
|
28
|
+
for (var prop in source)
|
|
29
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
30
|
+
target[prop] = source[prop];
|
|
31
|
+
if (source != null && __getOwnPropSymbols)
|
|
32
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
33
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
34
|
+
target[prop] = source[prop];
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
38
|
+
var __export = (target, all) => {
|
|
39
|
+
for (var name in all)
|
|
40
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
41
|
+
};
|
|
42
|
+
var __copyProps = (to, from, except, desc) => {
|
|
43
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
44
|
+
for (let key of __getOwnPropNames(from))
|
|
45
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
46
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
47
|
+
}
|
|
48
|
+
return to;
|
|
49
|
+
};
|
|
50
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
51
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
52
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
53
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
54
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
55
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
56
|
+
mod
|
|
57
|
+
));
|
|
58
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
59
|
+
|
|
60
|
+
// src/actions.ts
|
|
61
|
+
var actions_exports = {};
|
|
62
|
+
__export(actions_exports, {
|
|
63
|
+
default: () => actions_default
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(actions_exports);
|
|
66
|
+
|
|
67
|
+
// src/appSlice/constants.ts
|
|
68
|
+
var import_icons_material = require("@mui/icons-material");
|
|
69
|
+
var startingDeviceCount = {
|
|
70
|
+
os: "for first 50 devices",
|
|
71
|
+
professional: "for first 250 devices"
|
|
72
|
+
};
|
|
73
|
+
var apiRoot = "/api/management";
|
|
74
|
+
var apiUrl = {
|
|
75
|
+
v1: `${apiRoot}/v1`,
|
|
76
|
+
v2: `${apiRoot}/v2`
|
|
77
|
+
};
|
|
78
|
+
var chartTypes = {
|
|
79
|
+
bar: { key: "bar", Icon: import_icons_material.BarChart },
|
|
80
|
+
pie: { key: "pie", Icon: import_icons_material.PieChartOutline }
|
|
81
|
+
};
|
|
82
|
+
var emptyChartSelection = { software: "", group: "", chartType: chartTypes.bar.key, attribute: "artifact_name" };
|
|
83
|
+
var defaultReportType = "distribution";
|
|
84
|
+
var defaultReports = [__spreadProps(__spreadValues({}, emptyChartSelection), { group: null, attribute: "artifact_name", type: defaultReportType })];
|
|
85
|
+
var PLANS = {
|
|
86
|
+
os: {
|
|
87
|
+
id: "os",
|
|
88
|
+
name: "Basic",
|
|
89
|
+
offer: true,
|
|
90
|
+
price: "$32/month",
|
|
91
|
+
deviceCount: startingDeviceCount.os,
|
|
92
|
+
offerprice: "$23/month for first 50 devices",
|
|
93
|
+
price2: "for first 6 months;\n$29/month thereafter",
|
|
94
|
+
features: ["Basic OTA features"]
|
|
95
|
+
},
|
|
96
|
+
professional: {
|
|
97
|
+
id: "professional",
|
|
98
|
+
name: "Professional",
|
|
99
|
+
offer: true,
|
|
100
|
+
price: "$269/month",
|
|
101
|
+
deviceCount: startingDeviceCount.professional,
|
|
102
|
+
offerprice: "$200/month for first 50 devices",
|
|
103
|
+
price2: "for first 6 months;\n$249/month thereafter",
|
|
104
|
+
features: ["+ Advanced OTA features", "+ Standard support"]
|
|
105
|
+
},
|
|
106
|
+
enterprise: {
|
|
107
|
+
id: "enterprise",
|
|
108
|
+
name: "Enterprise",
|
|
109
|
+
price: "Custom pricing",
|
|
110
|
+
deviceCount: "unlimited devices",
|
|
111
|
+
features: ["+ Enterprise-grade OTA features", "+ Premium support"]
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
var ADDONS = {
|
|
115
|
+
configure: {
|
|
116
|
+
id: "configure",
|
|
117
|
+
title: "Configure",
|
|
118
|
+
description: "Expand your plan with device configuration features",
|
|
119
|
+
needs: ["hasDeviceConfig"],
|
|
120
|
+
os: {
|
|
121
|
+
price: "$11/month",
|
|
122
|
+
deviceCount: startingDeviceCount.os
|
|
123
|
+
},
|
|
124
|
+
professional: {
|
|
125
|
+
price: "$65/month",
|
|
126
|
+
deviceCount: startingDeviceCount.professional
|
|
127
|
+
},
|
|
128
|
+
eligible: ["os", "professional", "enterprise"]
|
|
129
|
+
},
|
|
130
|
+
troubleshoot: {
|
|
131
|
+
id: "troubleshoot",
|
|
132
|
+
title: "Troubleshoot",
|
|
133
|
+
description: "Expand your plan with device troubleshooting features",
|
|
134
|
+
needs: ["hasDeviceConnect"],
|
|
135
|
+
os: {
|
|
136
|
+
price: "$27/month",
|
|
137
|
+
deviceCount: startingDeviceCount.os
|
|
138
|
+
},
|
|
139
|
+
professional: {
|
|
140
|
+
price: "$72/month",
|
|
141
|
+
deviceCount: startingDeviceCount.professional
|
|
142
|
+
},
|
|
143
|
+
eligible: ["os", "professional", "enterprise"]
|
|
144
|
+
},
|
|
145
|
+
monitor: {
|
|
146
|
+
id: "monitor",
|
|
147
|
+
title: "Monitor",
|
|
148
|
+
description: "Expand your plan with device monitoring features",
|
|
149
|
+
needs: ["hasMonitor"],
|
|
150
|
+
os: {
|
|
151
|
+
price: "-",
|
|
152
|
+
deviceCount: "-"
|
|
153
|
+
},
|
|
154
|
+
professional: {
|
|
155
|
+
price: "$86/month",
|
|
156
|
+
deviceCount: startingDeviceCount.professional
|
|
157
|
+
},
|
|
158
|
+
eligible: ["professional", "enterprise"]
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
var BENEFITS = {
|
|
162
|
+
auditlog: { id: "auditlog", benefit: "trace change across your devices and access troubleshooting session replay", requiredPlan: PLANS.professional.id },
|
|
163
|
+
dashboard: { id: "dashboard", benefit: "actionable insights into the devices you are updating with Mender", requiredPlan: PLANS.enterprise.id },
|
|
164
|
+
deltaGeneration: {
|
|
165
|
+
id: "deltaGeneration",
|
|
166
|
+
benefit: "automatic delta artifacts generation to minimize data transfer and improve the update delivery",
|
|
167
|
+
requiredPlan: PLANS.enterprise.id
|
|
168
|
+
},
|
|
169
|
+
deviceConfiguration: { id: "deviceConfiguration", benefit: "device configuration features", requiredAddon: ADDONS.configure.id },
|
|
170
|
+
deviceMonitor: { id: "deviceMonitor", benefit: "device monitoring features", requiredAddon: ADDONS.monitor.id, requiredPlan: PLANS.professional.id },
|
|
171
|
+
deviceTroubleshoot: { id: "deviceTroubleshoot", benefit: "device troubleshooting features", requiredAddon: ADDONS.troubleshoot.id },
|
|
172
|
+
dynamicGroups: { id: "dynamicGroups", benefit: "create dynamic groups to ease device management", requiredPlan: PLANS.enterprise.id },
|
|
173
|
+
fullFiltering: { id: "fullFiltering", benefit: "filtering by multiple attributes to improve the device overview", requiredPlan: PLANS.professional.id },
|
|
174
|
+
gateway: { id: "gateway", benefit: "see devices connected to your gateway device for easy access", requiredPlans: PLANS.professional.id },
|
|
175
|
+
pausedDeployments: {
|
|
176
|
+
id: "pausedDeployments",
|
|
177
|
+
benefit: "granular control about update rollout to allow synchronization across your fleet",
|
|
178
|
+
requiredPlan: PLANS.enterprise.id
|
|
179
|
+
},
|
|
180
|
+
phasedDeployments: { id: "phasedDeployments", benefit: "choose to roll out deployments in multiple phases", requiredPlan: PLANS.enterprise.id },
|
|
181
|
+
rbac: { id: "rbac", benefit: "granular role based access control", requiredPlan: PLANS.enterprise.id },
|
|
182
|
+
retryDeployments: { id: "retryDeployments", benefit: "optional retries for failed rollout attempts", requiredPlan: PLANS.professional.id },
|
|
183
|
+
scheduledDeployments: {
|
|
184
|
+
id: "scheduledDeployments",
|
|
185
|
+
benefit: "scheduled deployments to steer the distribution of your updates.",
|
|
186
|
+
requiredPlan: PLANS.professional.id
|
|
187
|
+
},
|
|
188
|
+
webhookEvents: {
|
|
189
|
+
id: "webhookEvents",
|
|
190
|
+
benefit: "receive inventory events and select which type(s) of events the webhook will receive",
|
|
191
|
+
requiredPlan: PLANS.professional.id
|
|
192
|
+
},
|
|
193
|
+
default: { id: "default", benefit: "gain access to this feature", requiredPlan: PLANS.enterprise.id }
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
// src/commonConstants.tsx
|
|
197
|
+
var import_react = __toESM(require("react"));
|
|
198
|
+
var import_js = require("@mdi/js");
|
|
199
|
+
var DEVICE_LIST_DEFAULTS = {
|
|
200
|
+
page: 1,
|
|
201
|
+
perPage: 20
|
|
202
|
+
};
|
|
203
|
+
var timeUnits = {
|
|
204
|
+
days: "days",
|
|
205
|
+
minutes: "minutes",
|
|
206
|
+
hours: "hours"
|
|
207
|
+
};
|
|
208
|
+
var ALL_DEVICES = "All devices";
|
|
209
|
+
var DEVICE_FILTERING_OPTIONS = {
|
|
210
|
+
$eq: { key: "$eq", title: "equals", shortform: "=" },
|
|
211
|
+
$ne: { key: "$ne", title: "not equal", shortform: "!=" },
|
|
212
|
+
$gt: {
|
|
213
|
+
key: "$gt",
|
|
214
|
+
title: ">",
|
|
215
|
+
shortform: ">",
|
|
216
|
+
help: 'The "greater than" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
|
|
217
|
+
},
|
|
218
|
+
$gte: {
|
|
219
|
+
title: ">=",
|
|
220
|
+
shortform: ">=",
|
|
221
|
+
help: 'The "greater than or equal" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
|
|
222
|
+
},
|
|
223
|
+
$lt: {
|
|
224
|
+
key: "$lt",
|
|
225
|
+
title: "<",
|
|
226
|
+
shortform: "<",
|
|
227
|
+
help: 'The "lesser than" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
|
|
228
|
+
},
|
|
229
|
+
$lte: {
|
|
230
|
+
title: "<=",
|
|
231
|
+
shortform: "<=",
|
|
232
|
+
help: 'The "lesser than or equal" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
|
|
233
|
+
},
|
|
234
|
+
$ltne: {
|
|
235
|
+
key: "$ltne",
|
|
236
|
+
title: "$ltne",
|
|
237
|
+
shortform: "ltne",
|
|
238
|
+
help: 'The "lesser than or does not exist" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
|
|
239
|
+
},
|
|
240
|
+
$in: {
|
|
241
|
+
key: "$in",
|
|
242
|
+
title: "in",
|
|
243
|
+
shortform: "in",
|
|
244
|
+
help: 'The "in" operator accepts a list of comma-separated values. It matches if the selected field is equal to one of the specified values.'
|
|
245
|
+
},
|
|
246
|
+
$nin: {
|
|
247
|
+
key: "$nin",
|
|
248
|
+
title: "not in",
|
|
249
|
+
shortform: "not in",
|
|
250
|
+
help: `The "not in" operator accepts a list of comma-separated values. It matches if the selected field's value is not equal to any of the specified options.`
|
|
251
|
+
},
|
|
252
|
+
$exists: {
|
|
253
|
+
key: "$exists",
|
|
254
|
+
title: "exists",
|
|
255
|
+
shortform: "exists",
|
|
256
|
+
value: true,
|
|
257
|
+
help: `The "exists" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`
|
|
258
|
+
},
|
|
259
|
+
$nexists: {
|
|
260
|
+
key: "$nexists",
|
|
261
|
+
title: `doesn't exist`,
|
|
262
|
+
shortform: `doesn't exist`,
|
|
263
|
+
value: true,
|
|
264
|
+
help: `The "doesn't exist" operator matches if the selected field's value has no value. No value needs to be provided for this operator.`
|
|
265
|
+
},
|
|
266
|
+
$regex: {
|
|
267
|
+
key: "$regex",
|
|
268
|
+
title: `matches regular expression`,
|
|
269
|
+
shortform: `matches`,
|
|
270
|
+
help: `The "regular expression" operator matches the selected field's value with a Perl compatible regular expression (PCRE), automatically anchored by ^. If the regular expression is not valid, the filter will produce no results. If you need to specify options and flags, you can provide the full regex in the format of /regex/flags, for example.`
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
var DEVICE_ISSUE_OPTIONS = {
|
|
274
|
+
issues: {
|
|
275
|
+
isCategory: true,
|
|
276
|
+
key: "issues",
|
|
277
|
+
title: "Devices with issues",
|
|
278
|
+
filterRule: {}
|
|
279
|
+
},
|
|
280
|
+
offline: {
|
|
281
|
+
issueCategory: "issues",
|
|
282
|
+
key: "offline",
|
|
283
|
+
needsFullFiltering: true,
|
|
284
|
+
needsMonitor: false,
|
|
285
|
+
needsReporting: false,
|
|
286
|
+
filterRule: {
|
|
287
|
+
scope: "system",
|
|
288
|
+
key: "check_in_time",
|
|
289
|
+
operator: DEVICE_FILTERING_OPTIONS.$ltne.key,
|
|
290
|
+
value: ({ offlineThreshold }) => offlineThreshold
|
|
291
|
+
},
|
|
292
|
+
title: "Offline devices"
|
|
293
|
+
},
|
|
294
|
+
failedLastUpdate: {
|
|
295
|
+
issueCategory: "issues",
|
|
296
|
+
key: "failedLastUpdate",
|
|
297
|
+
needsFullFiltering: false,
|
|
298
|
+
needsMonitor: false,
|
|
299
|
+
needsReporting: true,
|
|
300
|
+
filterRule: { scope: "monitor", key: "failed_last_update", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
301
|
+
title: "Deployment failed"
|
|
302
|
+
},
|
|
303
|
+
monitoring: {
|
|
304
|
+
issueCategory: "issues",
|
|
305
|
+
key: "monitoring",
|
|
306
|
+
needsFullFiltering: false,
|
|
307
|
+
needsMonitor: true,
|
|
308
|
+
needsReporting: false,
|
|
309
|
+
filterRule: { scope: "monitor", key: "alerts", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
310
|
+
title: "Monitoring alert"
|
|
311
|
+
},
|
|
312
|
+
authRequests: {
|
|
313
|
+
key: "authRequests",
|
|
314
|
+
needsFullFiltering: false,
|
|
315
|
+
needsMonitor: false,
|
|
316
|
+
needsReporting: true,
|
|
317
|
+
filterRule: { scope: "monitor", key: "auth_requests", operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },
|
|
318
|
+
title: "Devices with new authentication requests"
|
|
319
|
+
},
|
|
320
|
+
gatewayDevices: {
|
|
321
|
+
key: "gatewayDevices",
|
|
322
|
+
needsFullFiltering: false,
|
|
323
|
+
needsMonitor: false,
|
|
324
|
+
needsReporting: true,
|
|
325
|
+
filterRule: { scope: "inventory", key: "mender_is_gateway", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: "true" },
|
|
326
|
+
title: "Gateway devices"
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
var oneSecond = 1e3;
|
|
330
|
+
var TIMEOUTS = {
|
|
331
|
+
debounceDefault: 700,
|
|
332
|
+
debounceShort: 300,
|
|
333
|
+
halfASecond: 0.5 * oneSecond,
|
|
334
|
+
oneSecond,
|
|
335
|
+
twoSeconds: 2 * oneSecond,
|
|
336
|
+
threeSeconds: 3 * oneSecond,
|
|
337
|
+
fiveSeconds: 5 * oneSecond,
|
|
338
|
+
refreshDefault: 10 * oneSecond,
|
|
339
|
+
refreshLong: 60 * oneSecond
|
|
340
|
+
};
|
|
341
|
+
var SORTING_OPTIONS = {
|
|
342
|
+
asc: "asc",
|
|
343
|
+
desc: "desc"
|
|
344
|
+
};
|
|
345
|
+
var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
|
|
346
|
+
var ATTRIBUTE_SCOPES = {
|
|
347
|
+
inventory: "inventory",
|
|
348
|
+
identity: "identity",
|
|
349
|
+
monitor: "monitor",
|
|
350
|
+
system: "system",
|
|
351
|
+
tags: "tags"
|
|
352
|
+
};
|
|
353
|
+
var defaultIdAttribute = Object.freeze({ attribute: "id", scope: ATTRIBUTE_SCOPES.identity });
|
|
354
|
+
var credentialTypes = {
|
|
355
|
+
aws: "aws",
|
|
356
|
+
http: "http",
|
|
357
|
+
sas: "sas",
|
|
358
|
+
x509: "x509"
|
|
359
|
+
};
|
|
360
|
+
var EXTERNAL_PROVIDER = {
|
|
361
|
+
"iot-core": {
|
|
362
|
+
credentialsType: credentialTypes.aws,
|
|
363
|
+
icon: import_js.mdiAws,
|
|
364
|
+
title: "AWS IoT Core",
|
|
365
|
+
twinTitle: "Device Shadow",
|
|
366
|
+
provider: "iot-core",
|
|
367
|
+
enabled: true,
|
|
368
|
+
deviceTwin: true,
|
|
369
|
+
configHint: /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, "For help finding your AWS IoT Core connection string, check the AWS IoT documentation.")
|
|
370
|
+
},
|
|
371
|
+
"iot-hub": {
|
|
372
|
+
credentialsType: credentialTypes.sas,
|
|
373
|
+
icon: import_js.mdiMicrosoftAzure,
|
|
374
|
+
title: "Azure IoT Hub",
|
|
375
|
+
twinTitle: "Device Twin",
|
|
376
|
+
provider: "iot-hub",
|
|
377
|
+
enabled: true,
|
|
378
|
+
deviceTwin: true,
|
|
379
|
+
configHint: /* @__PURE__ */ import_react.default.createElement("span", null, "For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described", " ", /* @__PURE__ */ import_react.default.createElement(
|
|
380
|
+
"a",
|
|
381
|
+
{
|
|
382
|
+
href: "https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn",
|
|
383
|
+
target: "_blank",
|
|
384
|
+
rel: "noopener noreferrer"
|
|
385
|
+
},
|
|
386
|
+
"here"
|
|
387
|
+
), ".")
|
|
388
|
+
},
|
|
389
|
+
webhook: {
|
|
390
|
+
credentialsType: credentialTypes.http,
|
|
391
|
+
deviceTwin: false,
|
|
392
|
+
// disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.
|
|
393
|
+
enabled: false,
|
|
394
|
+
provider: "webhook"
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
var ALL_RELEASES = "All releases";
|
|
398
|
+
var emptyUiPermissions = Object.freeze({
|
|
399
|
+
auditlog: [],
|
|
400
|
+
deployments: [],
|
|
401
|
+
groups: Object.freeze({}),
|
|
402
|
+
releases: Object.freeze({}),
|
|
403
|
+
userManagement: []
|
|
404
|
+
});
|
|
405
|
+
var emptyRole = Object.freeze({
|
|
406
|
+
name: void 0,
|
|
407
|
+
description: "",
|
|
408
|
+
permissions: [],
|
|
409
|
+
uiPermissions: Object.freeze(__spreadValues({}, emptyUiPermissions))
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
// src/deploymentsSlice/constants.ts
|
|
413
|
+
var alreadyInstalled = "already-installed";
|
|
414
|
+
var deploymentsApiUrl = `${apiUrl.v1}/deployments`;
|
|
415
|
+
var deploymentsApiUrlV2 = `${apiUrl.v2}/deployments`;
|
|
416
|
+
var deploymentSubstates = {
|
|
417
|
+
aborted: "aborted",
|
|
418
|
+
alreadyInstalled,
|
|
419
|
+
decommissioned: "decommissioned",
|
|
420
|
+
downloading: "downloading",
|
|
421
|
+
failure: "failure",
|
|
422
|
+
installing: "installing",
|
|
423
|
+
noartifact: "noartifact",
|
|
424
|
+
pause_before_committing: "pause_before_committing",
|
|
425
|
+
pause_before_installing: "pause_before_installing",
|
|
426
|
+
pause_before_rebooting: "pause_before_rebooting",
|
|
427
|
+
pending: "pending",
|
|
428
|
+
rebooting: "rebooting",
|
|
429
|
+
success: "success"
|
|
430
|
+
};
|
|
431
|
+
var deploymentStatesToSubstates = {
|
|
432
|
+
failures: [deploymentSubstates.failure, deploymentSubstates.aborted, deploymentSubstates.decommissioned],
|
|
433
|
+
inprogress: [deploymentSubstates.downloading, deploymentSubstates.installing, deploymentSubstates.rebooting],
|
|
434
|
+
paused: [deploymentSubstates.pause_before_installing, deploymentSubstates.pause_before_rebooting, deploymentSubstates.pause_before_committing],
|
|
435
|
+
pending: [deploymentSubstates.pending],
|
|
436
|
+
successes: [deploymentSubstates.success, deploymentSubstates.alreadyInstalled, deploymentSubstates.noartifact]
|
|
437
|
+
};
|
|
438
|
+
var deploymentStatesToSubstatesWithSkipped = __spreadProps(__spreadValues({}, deploymentStatesToSubstates), {
|
|
439
|
+
failures: [deploymentSubstates.failure],
|
|
440
|
+
skipped: [deploymentSubstates.aborted, deploymentSubstates.noartifact, deploymentSubstates.alreadyInstalled, deploymentSubstates.decommissioned],
|
|
441
|
+
successes: [deploymentSubstates.success]
|
|
442
|
+
});
|
|
443
|
+
var installationSubstatesMap = {
|
|
444
|
+
download: {
|
|
445
|
+
title: "download",
|
|
446
|
+
done: "downloaded",
|
|
447
|
+
successIndicators: [deploymentSubstates.installing, deploymentSubstates.rebooting, ...deploymentStatesToSubstates.paused, deploymentSubstates.success],
|
|
448
|
+
failureIndicators: deploymentStatesToSubstates.failures,
|
|
449
|
+
pauseConfigurationIndicator: "ArtifactInstall_Enter"
|
|
450
|
+
},
|
|
451
|
+
install: {
|
|
452
|
+
title: "install",
|
|
453
|
+
done: "installed",
|
|
454
|
+
successIndicators: [
|
|
455
|
+
deploymentSubstates.rebooting,
|
|
456
|
+
deploymentSubstates.pause_before_rebooting,
|
|
457
|
+
deploymentSubstates.pause_before_committing,
|
|
458
|
+
deploymentSubstates.success
|
|
459
|
+
],
|
|
460
|
+
failureIndicators: deploymentStatesToSubstates.failures,
|
|
461
|
+
pauseConfigurationIndicator: "ArtifactReboot_Enter"
|
|
462
|
+
},
|
|
463
|
+
reboot: {
|
|
464
|
+
title: "reboot",
|
|
465
|
+
done: "rebooted",
|
|
466
|
+
successIndicators: [deploymentSubstates.pause_before_committing, deploymentSubstates.success],
|
|
467
|
+
failureIndicators: deploymentStatesToSubstates.failures,
|
|
468
|
+
pauseConfigurationIndicator: "ArtifactCommit_Enter"
|
|
469
|
+
},
|
|
470
|
+
commit: {
|
|
471
|
+
title: "commit",
|
|
472
|
+
done: "committed",
|
|
473
|
+
successIndicators: deploymentStatesToSubstates.successes,
|
|
474
|
+
failureIndicators: deploymentStatesToSubstates.failures,
|
|
475
|
+
pauseConfigurationIndicator: void 0
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
var DEPLOYMENT_STATES = {
|
|
479
|
+
finished: "finished",
|
|
480
|
+
inprogress: "inprogress",
|
|
481
|
+
pending: "pending",
|
|
482
|
+
scheduled: "scheduled"
|
|
483
|
+
};
|
|
484
|
+
var listDefaultsByState = {
|
|
485
|
+
[DEPLOYMENT_STATES.inprogress]: { page: 1, perPage: 10 },
|
|
486
|
+
[DEPLOYMENT_STATES.pending]: { page: 1, perPage: 10 },
|
|
487
|
+
[DEPLOYMENT_STATES.scheduled]: __spreadValues({}, DEVICE_LIST_DEFAULTS),
|
|
488
|
+
[DEPLOYMENT_STATES.finished]: __spreadValues({}, DEVICE_LIST_DEFAULTS),
|
|
489
|
+
sort: { direction: SORTING_OPTIONS.desc }
|
|
490
|
+
};
|
|
491
|
+
var DEFAULT_PENDING_INPROGRESS_COUNT = 10;
|
|
492
|
+
var DEPLOYMENT_ROUTES = {
|
|
493
|
+
active: {
|
|
494
|
+
key: "active",
|
|
495
|
+
route: "/deployments/active",
|
|
496
|
+
states: [DEPLOYMENT_STATES.pending, DEPLOYMENT_STATES.inprogress],
|
|
497
|
+
title: "Active"
|
|
498
|
+
},
|
|
499
|
+
finished: {
|
|
500
|
+
key: "finished",
|
|
501
|
+
route: "/deployments/finished",
|
|
502
|
+
states: [DEPLOYMENT_STATES.finished],
|
|
503
|
+
title: "Finished"
|
|
504
|
+
},
|
|
505
|
+
scheduled: {
|
|
506
|
+
key: "scheduled",
|
|
507
|
+
route: "/deployments/scheduled",
|
|
508
|
+
states: [DEPLOYMENT_STATES.scheduled],
|
|
509
|
+
title: "Scheduled"
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
var defaultStats = {
|
|
513
|
+
[deploymentSubstates.aborted]: 0,
|
|
514
|
+
[deploymentSubstates.alreadyInstalled]: 0,
|
|
515
|
+
[deploymentSubstates.decommissioned]: 0,
|
|
516
|
+
[deploymentSubstates.downloading]: 0,
|
|
517
|
+
[deploymentSubstates.failure]: 0,
|
|
518
|
+
[deploymentSubstates.installing]: 0,
|
|
519
|
+
[deploymentSubstates.noartifact]: 0,
|
|
520
|
+
[deploymentSubstates.pause_before_committing]: 0,
|
|
521
|
+
[deploymentSubstates.pause_before_installing]: 0,
|
|
522
|
+
[deploymentSubstates.pause_before_rebooting]: 0,
|
|
523
|
+
[deploymentSubstates.pending]: 0,
|
|
524
|
+
[deploymentSubstates.rebooting]: 0,
|
|
525
|
+
[deploymentSubstates.success]: 0
|
|
526
|
+
};
|
|
527
|
+
var deploymentPrototype = {
|
|
528
|
+
devices: {},
|
|
529
|
+
name: void 0,
|
|
530
|
+
statistics: { status: {} }
|
|
531
|
+
};
|
|
532
|
+
var pauseMap = {
|
|
533
|
+
[deploymentSubstates.pause_before_installing]: {
|
|
534
|
+
title: installationSubstatesMap.download.done,
|
|
535
|
+
followUp: installationSubstatesMap.download.pauseConfigurationIndicator
|
|
536
|
+
},
|
|
537
|
+
[deploymentSubstates.pause_before_rebooting]: {
|
|
538
|
+
title: installationSubstatesMap.install.done,
|
|
539
|
+
followUp: installationSubstatesMap.install.pauseConfigurationIndicator
|
|
540
|
+
},
|
|
541
|
+
[deploymentSubstates.pause_before_committing]: {
|
|
542
|
+
title: installationSubstatesMap.reboot.done,
|
|
543
|
+
followUp: installationSubstatesMap.reboot.pauseConfigurationIndicator
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
var limitDefault = { min: 5, max: 100, default: 10 };
|
|
547
|
+
|
|
548
|
+
// src/devicesSlice/constants.ts
|
|
549
|
+
var emptyFilter = { key: null, value: "", operator: DEVICE_FILTERING_OPTIONS.$eq.key, scope: "inventory" };
|
|
550
|
+
var deviceAuthV2 = `${apiUrl.v2}/devauth`;
|
|
551
|
+
var deviceConnect = `${apiUrl.v1}/deviceconnect`;
|
|
552
|
+
var inventoryApiUrl = `${apiUrl.v1}/inventory`;
|
|
553
|
+
var inventoryApiUrlV2 = `${apiUrl.v2}/inventory`;
|
|
554
|
+
var deviceConfig = `${apiUrl.v1}/deviceconfig/configurations/device`;
|
|
555
|
+
var reportingApiUrl = `${apiUrl.v1}/reporting`;
|
|
556
|
+
var iotManagerBaseURL = `${apiUrl.v1}/iot-manager`;
|
|
557
|
+
var DEVICE_STATES = {
|
|
558
|
+
accepted: "accepted",
|
|
559
|
+
pending: "pending",
|
|
560
|
+
preauth: "preauthorized",
|
|
561
|
+
rejected: "rejected"
|
|
562
|
+
};
|
|
563
|
+
var geoAttributes = ["geo-lat", "geo-lon"].map((attribute) => ({ attribute, scope: "inventory" }));
|
|
564
|
+
|
|
565
|
+
// src/monitorSlice/constants.ts
|
|
566
|
+
var alertChannels = { email: "email" };
|
|
567
|
+
var monitorApiUrlv1 = `${apiUrl.v1}/devicemonitor`;
|
|
568
|
+
|
|
569
|
+
// src/onboardingSlice/constants.ts
|
|
570
|
+
var onboardingSteps = {
|
|
571
|
+
ONBOARDING_START: "onboarding-start",
|
|
572
|
+
DEVICES_PENDING_ONBOARDING_START: "devices-pending-onboarding-start",
|
|
573
|
+
DASHBOARD_ONBOARDING_START: "dashboard-onboarding-start",
|
|
574
|
+
DASHBOARD_ONBOARDING_PENDINGS: "dashboard-onboarding-pendings",
|
|
575
|
+
DEVICES_DELAYED_ONBOARDING: "devices-delayed-onboarding",
|
|
576
|
+
DEVICES_PENDING_ONBOARDING: "devices-pending-onboarding",
|
|
577
|
+
DEVICES_ACCEPTED_ONBOARDING: "devices-accepted-onboarding",
|
|
578
|
+
DEVICES_PENDING_ACCEPTING_ONBOARDING: "devices-pending-accepting-onboarding",
|
|
579
|
+
DEVICES_DEPLOY_RELEASE_ONBOARDING: "devices-deploy-release-onboarding",
|
|
580
|
+
SCHEDULING_ARTIFACT_SELECTION: "scheduling-artifact-selection",
|
|
581
|
+
SCHEDULING_ALL_DEVICES_SELECTION: "scheduling-all-devices-selection",
|
|
582
|
+
SCHEDULING_GROUP_SELECTION: "scheduling-group-selection",
|
|
583
|
+
SCHEDULING_RELEASE_TO_DEVICES: "scheduling-release-to-devices",
|
|
584
|
+
DEPLOYMENTS_INPROGRESS: "deployments-inprogress",
|
|
585
|
+
DEPLOYMENTS_PAST: "deployments-past",
|
|
586
|
+
DEPLOYMENTS_PAST_COMPLETED: "deployments-past-completed",
|
|
587
|
+
DEPLOYMENTS_PAST_COMPLETED_FAILURE: "deployments-past-completed-failure",
|
|
588
|
+
ONBOARDING_CANCELED: "onboarding-canceled"
|
|
589
|
+
};
|
|
590
|
+
var orderedOnboardingSteps = [
|
|
591
|
+
onboardingSteps.DASHBOARD_ONBOARDING_START,
|
|
592
|
+
onboardingSteps.DEVICES_PENDING_ONBOARDING_START,
|
|
593
|
+
onboardingSteps.DEVICES_DELAYED_ONBOARDING,
|
|
594
|
+
onboardingSteps.DEVICES_PENDING_ONBOARDING,
|
|
595
|
+
onboardingSteps.DEVICES_PENDING_ACCEPTING_ONBOARDING,
|
|
596
|
+
onboardingSteps.DASHBOARD_ONBOARDING_PENDINGS,
|
|
597
|
+
onboardingSteps.DEVICES_ACCEPTED_ONBOARDING,
|
|
598
|
+
onboardingSteps.DEVICES_DEPLOY_RELEASE_ONBOARDING,
|
|
599
|
+
onboardingSteps.SCHEDULING_ALL_DEVICES_SELECTION,
|
|
600
|
+
onboardingSteps.SCHEDULING_GROUP_SELECTION,
|
|
601
|
+
onboardingSteps.SCHEDULING_ARTIFACT_SELECTION,
|
|
602
|
+
onboardingSteps.SCHEDULING_RELEASE_TO_DEVICES,
|
|
603
|
+
onboardingSteps.DEPLOYMENTS_INPROGRESS,
|
|
604
|
+
onboardingSteps.DEPLOYMENTS_PAST,
|
|
605
|
+
onboardingSteps.DEPLOYMENTS_PAST_COMPLETED,
|
|
606
|
+
onboardingSteps.DEPLOYMENTS_PAST_COMPLETED_FAILURE,
|
|
607
|
+
onboardingSteps.ONBOARDING_CANCELED
|
|
608
|
+
];
|
|
609
|
+
|
|
610
|
+
// src/organizationSlice/constants.ts
|
|
611
|
+
var auditLogsApiUrl = `${apiUrl.v1}/auditlogs`;
|
|
612
|
+
var tenantadmApiUrlv1 = `${apiUrl.v1}/tenantadm`;
|
|
613
|
+
var tenantadmApiUrlv2 = `${apiUrl.v2}/tenantadm`;
|
|
614
|
+
var ssoIdpApiUrlv1 = `${apiUrl.v1}/useradm/sso/idp/metadata`;
|
|
615
|
+
var emptyWebhook = {
|
|
616
|
+
description: "",
|
|
617
|
+
enabled: true,
|
|
618
|
+
credentials: {
|
|
619
|
+
type: EXTERNAL_PROVIDER.webhook.credentialsType,
|
|
620
|
+
[EXTERNAL_PROVIDER.webhook.credentialsType]: {
|
|
621
|
+
secret: "",
|
|
622
|
+
url: ""
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
var TENANT_LIST_DEFAULT = {
|
|
627
|
+
page: 1,
|
|
628
|
+
perPage: 20
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
// src/releasesSlice/constants.ts
|
|
632
|
+
var rootfsImageVersion = "rootfs-image.version";
|
|
633
|
+
var softwareTitleMap = { [rootfsImageVersion]: { title: "Root filesystem", priority: 0, key: rootfsImageVersion } };
|
|
634
|
+
|
|
635
|
+
// src/usersSlice/constants.ts
|
|
636
|
+
var useradmApiUrlv1 = `${apiUrl.v1}/useradm`;
|
|
637
|
+
var useradmApiUrlv2 = `${apiUrl.v2}/useradm`;
|
|
638
|
+
var staticRolesByName = {
|
|
639
|
+
admin: "RBAC_ROLE_PERMIT_ALL",
|
|
640
|
+
readOnly: "RBAC_ROLE_OBSERVER",
|
|
641
|
+
ci: "RBAC_ROLE_CI",
|
|
642
|
+
deploymentsManager: "RBAC_ROLE_DEPLOYMENTS_MANAGER",
|
|
643
|
+
terminalAccess: "RBAC_ROLE_REMOTE_TERMINAL"
|
|
644
|
+
};
|
|
645
|
+
var PermissionTypes = {
|
|
646
|
+
Any: "any",
|
|
647
|
+
Get: "GET",
|
|
648
|
+
Post: "POST",
|
|
649
|
+
Put: "PUT",
|
|
650
|
+
Delete: "DELETE",
|
|
651
|
+
Patch: "PATCH",
|
|
652
|
+
DeviceGroup: "DEVICE_GROUP",
|
|
653
|
+
DeviceId: "DEVICE_ID"
|
|
654
|
+
};
|
|
655
|
+
var permissionSetIds = {
|
|
656
|
+
Basic: "Basic",
|
|
657
|
+
ConfigureDevices: "ConfigureDevices",
|
|
658
|
+
ConnectToDevices: "ConnectToDevices",
|
|
659
|
+
DeployToDevices: "DeployToDevices",
|
|
660
|
+
ManageDevices: "ManageDevices",
|
|
661
|
+
ManageReleases: "ManageReleases",
|
|
662
|
+
ManageUsers: "ManageUsers",
|
|
663
|
+
ReadAuditLogs: "ReadAuditLogs",
|
|
664
|
+
ReadDevices: "ReadDevices",
|
|
665
|
+
ReadReleases: "ReadReleases",
|
|
666
|
+
ReadUsers: "ReadUsers",
|
|
667
|
+
SuperUser: "SuperUser",
|
|
668
|
+
UploadArtifacts: "UploadArtifacts"
|
|
669
|
+
};
|
|
670
|
+
var uiPermissionsById = {
|
|
671
|
+
configure: {
|
|
672
|
+
explanations: { groups: `'Configure' allows the user to use mender-configure features and apply configurations.` },
|
|
673
|
+
permissionLevel: 2,
|
|
674
|
+
permissionSets: { groups: permissionSetIds.ConfigureDevices },
|
|
675
|
+
title: "Configure",
|
|
676
|
+
value: "configure",
|
|
677
|
+
verbs: [PermissionTypes.Get, PermissionTypes.Put, PermissionTypes.Post]
|
|
678
|
+
},
|
|
679
|
+
connect: {
|
|
680
|
+
explanations: { groups: `'Connect' allows the user to use mender-connect features and Troubleshoot add-ons.` },
|
|
681
|
+
permissionLevel: 2,
|
|
682
|
+
permissionSets: { groups: permissionSetIds.ConnectToDevices },
|
|
683
|
+
title: "Connect",
|
|
684
|
+
value: "connect",
|
|
685
|
+
verbs: [PermissionTypes.Get, PermissionTypes.Put]
|
|
686
|
+
},
|
|
687
|
+
deploy: {
|
|
688
|
+
explanations: { groups: `'Deploy' allows the user to deploy software or configuration updates to devices.` },
|
|
689
|
+
permissionLevel: 2,
|
|
690
|
+
permissionSets: { deployments: permissionSetIds.DeployToDevices, groups: permissionSetIds.DeployToDevices },
|
|
691
|
+
title: "Deploy",
|
|
692
|
+
value: "deploy",
|
|
693
|
+
verbs: [PermissionTypes.Post]
|
|
694
|
+
},
|
|
695
|
+
manage: {
|
|
696
|
+
explanations: {
|
|
697
|
+
groups: `'Manage' allows the user to edit device name, notes, and manage authentication status. For 'All devices' it also allows the user to edit and create device groups.`,
|
|
698
|
+
releases: `'Manage' allows the user to upload new artifacts, edit release descriptions and remove artifacts.`
|
|
699
|
+
},
|
|
700
|
+
permissionLevel: 2,
|
|
701
|
+
permissionSets: {
|
|
702
|
+
groups: permissionSetIds.ManageDevices,
|
|
703
|
+
releases: permissionSetIds.ManageReleases,
|
|
704
|
+
userManagement: permissionSetIds.ManageUsers
|
|
705
|
+
},
|
|
706
|
+
title: "Manage",
|
|
707
|
+
value: "manage",
|
|
708
|
+
verbs: [PermissionTypes.Post, PermissionTypes.Put, PermissionTypes.Patch]
|
|
709
|
+
},
|
|
710
|
+
read: {
|
|
711
|
+
explanations: { groups: `'Read' allows the user to view devices.` },
|
|
712
|
+
permissionLevel: 1,
|
|
713
|
+
permissionSets: {
|
|
714
|
+
auditlog: permissionSetIds.ReadAuditLogs,
|
|
715
|
+
groups: permissionSetIds.ReadDevices,
|
|
716
|
+
releases: permissionSetIds.ReadReleases,
|
|
717
|
+
userManagement: permissionSetIds.ReadUsers
|
|
718
|
+
},
|
|
719
|
+
title: "Read",
|
|
720
|
+
value: "read",
|
|
721
|
+
verbs: [PermissionTypes.Get, PermissionTypes.Post]
|
|
722
|
+
},
|
|
723
|
+
upload: {
|
|
724
|
+
explanations: { groups: `'Upload' allows the user to upload new Artifacts.` },
|
|
725
|
+
unscopedOnly: { releases: true },
|
|
726
|
+
permissionLevel: 1,
|
|
727
|
+
permissionSets: { releases: permissionSetIds.UploadArtifacts },
|
|
728
|
+
title: "Upload",
|
|
729
|
+
value: "upload",
|
|
730
|
+
verbs: [PermissionTypes.Post, PermissionTypes.Put, PermissionTypes.Patch]
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
var scopedPermissionAreas = {
|
|
734
|
+
groups: { key: "groups", excessiveAccessSelector: ALL_DEVICES, scopeType: "DeviceGroups" },
|
|
735
|
+
releases: { key: "releases", excessiveAccessSelector: ALL_RELEASES, scopeType: "Releases" }
|
|
736
|
+
};
|
|
737
|
+
var uiPermissionsByArea = {
|
|
738
|
+
auditlog: {
|
|
739
|
+
endpoints: [{ path: /\/(auditlog)/i, types: [PermissionTypes.Get], uiPermissions: [uiPermissionsById.read] }],
|
|
740
|
+
explanation: "Granting access to the audit log will allow tracing changes to devices, releases and user accounts, as well as providing information about deployments.",
|
|
741
|
+
uiPermissions: [uiPermissionsById.read],
|
|
742
|
+
title: "System audit log"
|
|
743
|
+
},
|
|
744
|
+
deployments: {
|
|
745
|
+
endpoints: [
|
|
746
|
+
{ path: /\/(deployments\/deployments)/i, types: [PermissionTypes.Post, PermissionTypes.Put], uiPermissions: [uiPermissionsById.deploy] },
|
|
747
|
+
{ path: /\/(deployments\/deployments)/i, types: [PermissionTypes.Get], uiPermissions: [uiPermissionsById.read] },
|
|
748
|
+
{ path: /\/(deployments\/config)/i, types: [PermissionTypes.Get, PermissionTypes.Put], uiPermissions: [uiPermissionsById.manage] }
|
|
749
|
+
],
|
|
750
|
+
explanation: "Providing deploy permissions will allow deployments to be created using the releases and devices a user has access to.",
|
|
751
|
+
uiPermissions: [uiPermissionsById.read, uiPermissionsById.deploy],
|
|
752
|
+
title: "Deployments"
|
|
753
|
+
},
|
|
754
|
+
groups: {
|
|
755
|
+
endpoints: [
|
|
756
|
+
{
|
|
757
|
+
path: /\/(devauth|inventory|deviceconfig|devicemonitor|deviceconnect\/devices)/i,
|
|
758
|
+
types: [PermissionTypes.Get],
|
|
759
|
+
uiPermissions: [uiPermissionsById.read]
|
|
760
|
+
},
|
|
761
|
+
{ path: /\/(devauth|inventory)/i, types: [PermissionTypes.Put, PermissionTypes.Post], uiPermissions: [uiPermissionsById.manage] },
|
|
762
|
+
{ path: /\/(deviceconfig)/i, types: [PermissionTypes.Get, PermissionTypes.Put, PermissionTypes.Post], uiPermissions: [uiPermissionsById.configure] },
|
|
763
|
+
{ path: /\/(deviceconnect\/devices)/i, types: [PermissionTypes.Get, PermissionTypes.Post], uiPermissions: [uiPermissionsById.connect] }
|
|
764
|
+
],
|
|
765
|
+
explanation: "Device group management permissions control the degree to which devices in a group can be accessed and moved to other groups.",
|
|
766
|
+
scope: scopedPermissionAreas.groups.scopeType,
|
|
767
|
+
uiPermissions: [uiPermissionsById.read, uiPermissionsById.manage, uiPermissionsById.deploy, uiPermissionsById.configure, uiPermissionsById.connect],
|
|
768
|
+
title: "Group Management"
|
|
769
|
+
},
|
|
770
|
+
releases: {
|
|
771
|
+
endpoints: [
|
|
772
|
+
{ path: /\/(deployments\/artifacts|deployments\/deployments\/releases)/i, types: [PermissionTypes.Get], uiPermissions: [uiPermissionsById.read] },
|
|
773
|
+
{
|
|
774
|
+
path: /\/(deployments\/artifacts|deployments\/deployments\/releases)/i,
|
|
775
|
+
types: [PermissionTypes.Post, PermissionTypes.Put],
|
|
776
|
+
uiPermissions: [uiPermissionsById.read, uiPermissionsById.upload]
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
path: /\/(deployments\/artifacts|deployments\/deployments\/releases)/i,
|
|
780
|
+
types: [PermissionTypes.Delete],
|
|
781
|
+
uiPermissions: [uiPermissionsById.read, uiPermissionsById.manage]
|
|
782
|
+
}
|
|
783
|
+
],
|
|
784
|
+
explanation: "Release permissions can be granted to allow artifact & release modifications, as well as the creation of new releases.",
|
|
785
|
+
scope: "ReleaseTags",
|
|
786
|
+
uiPermissions: [uiPermissionsById.read, uiPermissionsById.manage, uiPermissionsById.upload],
|
|
787
|
+
title: "Release Management"
|
|
788
|
+
},
|
|
789
|
+
userManagement: {
|
|
790
|
+
endpoints: [
|
|
791
|
+
{ path: /\/(useradm)/i, types: [PermissionTypes.Get], uiPermissions: [uiPermissionsById.read] },
|
|
792
|
+
{ path: /\/(useradm)/i, types: [PermissionTypes.Post], uiPermissions: [uiPermissionsById.manage] }
|
|
793
|
+
],
|
|
794
|
+
explanation: "User management permissions should be granted carefully, as these allow privilege increases for any users managed by a user with user management permissions",
|
|
795
|
+
uiPermissions: [uiPermissionsById.read, uiPermissionsById.manage],
|
|
796
|
+
title: "User Management"
|
|
797
|
+
}
|
|
798
|
+
};
|
|
799
|
+
var permissionMapper = (permission) => permission.value;
|
|
800
|
+
var rolesById = Object.freeze({
|
|
801
|
+
[staticRolesByName.admin]: {
|
|
802
|
+
name: "Admin",
|
|
803
|
+
value: staticRolesByName.admin,
|
|
804
|
+
description: "Full access",
|
|
805
|
+
permissions: [],
|
|
806
|
+
// permissions refers to the values returned from the backend
|
|
807
|
+
uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
|
|
808
|
+
auditlog: uiPermissionsByArea.auditlog.uiPermissions.map(permissionMapper),
|
|
809
|
+
deployments: uiPermissionsByArea.deployments.uiPermissions.map(permissionMapper),
|
|
810
|
+
groups: { [ALL_DEVICES]: uiPermissionsByArea.groups.uiPermissions.map(permissionMapper) },
|
|
811
|
+
releases: { [ALL_RELEASES]: uiPermissionsByArea.releases.uiPermissions.map(permissionMapper) },
|
|
812
|
+
userManagement: uiPermissionsByArea.userManagement.uiPermissions.map(permissionMapper)
|
|
813
|
+
})
|
|
814
|
+
},
|
|
815
|
+
[staticRolesByName.readOnly]: {
|
|
816
|
+
name: "Read Access",
|
|
817
|
+
value: staticRolesByName.readOnly,
|
|
818
|
+
description: "",
|
|
819
|
+
permissions: [],
|
|
820
|
+
uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
|
|
821
|
+
deployments: [uiPermissionsById.read.value],
|
|
822
|
+
groups: { [ALL_DEVICES]: [uiPermissionsById.read.value] },
|
|
823
|
+
releases: { [ALL_RELEASES]: [uiPermissionsById.read.value] },
|
|
824
|
+
userManagement: [uiPermissionsById.read.value]
|
|
825
|
+
})
|
|
826
|
+
},
|
|
827
|
+
[staticRolesByName.ci]: {
|
|
828
|
+
name: "Releases Manager",
|
|
829
|
+
value: staticRolesByName.ci,
|
|
830
|
+
description: "",
|
|
831
|
+
permissions: [],
|
|
832
|
+
uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
|
|
833
|
+
releases: { [ALL_RELEASES]: uiPermissionsByArea.releases.uiPermissions.map(permissionMapper) }
|
|
834
|
+
})
|
|
835
|
+
},
|
|
836
|
+
[staticRolesByName.deploymentsManager]: {
|
|
837
|
+
name: "Deployments Manager",
|
|
838
|
+
value: staticRolesByName.deploymentsManager,
|
|
839
|
+
description: "",
|
|
840
|
+
permissions: [],
|
|
841
|
+
uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
|
|
842
|
+
deployments: uiPermissionsByArea.deployments.uiPermissions.map(permissionMapper),
|
|
843
|
+
groups: { [ALL_DEVICES]: [uiPermissionsById.deploy.value, uiPermissionsById.read.value] },
|
|
844
|
+
releases: { [ALL_RELEASES]: [uiPermissionsById.read.value] }
|
|
845
|
+
})
|
|
846
|
+
},
|
|
847
|
+
[staticRolesByName.terminalAccess]: {
|
|
848
|
+
name: "Troubleshooting",
|
|
849
|
+
value: staticRolesByName.terminalAccess,
|
|
850
|
+
description: "Access to the troubleshooting features: Remote Terminal, File Transfer, Port Forwarding",
|
|
851
|
+
permissions: [],
|
|
852
|
+
uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
|
|
853
|
+
groups: { [ALL_DEVICES]: [uiPermissionsById.connect.value] }
|
|
854
|
+
})
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
var defaultPermissionSets = {
|
|
858
|
+
[permissionSetIds.Basic]: {
|
|
859
|
+
name: permissionSetIds.Basic,
|
|
860
|
+
result: {
|
|
861
|
+
// this is needed to prevent the detailed permissions of the basic permission set from being interpreted as allowing read & management access to user endpoints
|
|
862
|
+
userManagement: [uiPermissionsById.read.value]
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
[permissionSetIds.SuperUser]: {
|
|
866
|
+
name: permissionSetIds.SuperUser,
|
|
867
|
+
result: __spreadValues({}, rolesById[staticRolesByName.admin].uiPermissions)
|
|
868
|
+
},
|
|
869
|
+
[permissionSetIds.ManageUsers]: {
|
|
870
|
+
name: permissionSetIds.ManageUsers,
|
|
871
|
+
result: {
|
|
872
|
+
userManagement: [uiPermissionsById.manage.value]
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
[permissionSetIds.ReadAuditLogs]: {
|
|
876
|
+
name: permissionSetIds.ReadAuditLogs,
|
|
877
|
+
result: {
|
|
878
|
+
auditlog: [uiPermissionsById.read.value]
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
[permissionSetIds.ReadReleases]: {
|
|
882
|
+
name: permissionSetIds.ReadReleases,
|
|
883
|
+
result: {
|
|
884
|
+
releases: { [ALL_RELEASES]: [uiPermissionsById.read.value] }
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
[permissionSetIds.ReadUsers]: {
|
|
888
|
+
name: permissionSetIds.ReadUsers,
|
|
889
|
+
result: {
|
|
890
|
+
userManagement: [uiPermissionsById.read.value]
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
[permissionSetIds.UploadArtifacts]: {
|
|
894
|
+
name: permissionSetIds.UploadArtifacts,
|
|
895
|
+
result: {
|
|
896
|
+
releases: { [ALL_RELEASES]: [uiPermissionsById.upload.value] }
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
[permissionSetIds.ManageReleases]: {
|
|
900
|
+
name: permissionSetIds.ManageReleases,
|
|
901
|
+
result: {
|
|
902
|
+
releases: { [ALL_RELEASES]: [uiPermissionsById.manage.value] }
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
[permissionSetIds.ConfigureDevices]: {
|
|
906
|
+
name: permissionSetIds.ConfigureDevices,
|
|
907
|
+
result: {
|
|
908
|
+
deployments: [uiPermissionsById.read.value, uiPermissionsById.deploy.value],
|
|
909
|
+
groups: { [ALL_DEVICES]: [uiPermissionsById.read.value, uiPermissionsById.configure.value] }
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
[permissionSetIds.ConnectToDevices]: {
|
|
913
|
+
name: permissionSetIds.ConnectToDevices,
|
|
914
|
+
result: {
|
|
915
|
+
groups: { [ALL_DEVICES]: [uiPermissionsById.read.value, uiPermissionsById.connect.value] }
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
[permissionSetIds.DeployToDevices]: {
|
|
919
|
+
name: permissionSetIds.DeployToDevices,
|
|
920
|
+
result: {
|
|
921
|
+
deployments: [uiPermissionsById.deploy.value, uiPermissionsById.manage.value, uiPermissionsById.read.value],
|
|
922
|
+
groups: { [ALL_DEVICES]: [uiPermissionsById.read.value, uiPermissionsById.deploy.value] }
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
[permissionSetIds.ManageDevices]: {
|
|
926
|
+
name: permissionSetIds.ManageDevices,
|
|
927
|
+
result: {
|
|
928
|
+
groups: { [ALL_DEVICES]: [uiPermissionsById.read.value, uiPermissionsById.manage.value] }
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
[permissionSetIds.ReadDevices]: {
|
|
932
|
+
name: permissionSetIds.ReadDevices,
|
|
933
|
+
result: {
|
|
934
|
+
groups: { [ALL_DEVICES]: [uiPermissionsById.read.value] }
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
};
|
|
938
|
+
var rolesByName = __spreadProps(__spreadValues({}, staticRolesByName), {
|
|
939
|
+
deploymentCreation: { action: "CREATE_DEPLOYMENT", object: { type: "DEVICE_GROUP", value: void 0 } },
|
|
940
|
+
groupAccess: { action: "VIEW_DEVICE", object: { type: "DEVICE_GROUP", value: void 0 } },
|
|
941
|
+
userManagement: { action: "http", object: { type: "any", value: `${useradmApiUrlv1}/.*` } }
|
|
942
|
+
});
|
|
943
|
+
var READ_STATES = {
|
|
944
|
+
read: "read",
|
|
945
|
+
seen: "seen",
|
|
946
|
+
unread: "unread"
|
|
947
|
+
};
|
|
948
|
+
|
|
949
|
+
// src/appSlice/index.ts
|
|
950
|
+
var import_toolkit = require("@reduxjs/toolkit");
|
|
951
|
+
var sliceName = "app";
|
|
952
|
+
var getYesterday = () => {
|
|
953
|
+
const today = /* @__PURE__ */ new Date();
|
|
954
|
+
today.setDate(today.getDate() - 1);
|
|
955
|
+
return today.toISOString();
|
|
956
|
+
};
|
|
957
|
+
var initialState = {
|
|
958
|
+
cancelSource: void 0,
|
|
959
|
+
demoArtifactLink: "https://dgsbl4vditpls.cloudfront.net/mender-demo-artifact.mender",
|
|
960
|
+
hostAddress: null,
|
|
961
|
+
snackbar: {
|
|
962
|
+
open: false,
|
|
963
|
+
message: "",
|
|
964
|
+
maxWidth: 900,
|
|
965
|
+
autoHideDuration: void 0,
|
|
966
|
+
action: void 0,
|
|
967
|
+
children: void 0,
|
|
968
|
+
onClick: void 0,
|
|
969
|
+
onClose: void 0
|
|
970
|
+
},
|
|
971
|
+
// return boolean rather than organization details
|
|
972
|
+
features: {
|
|
973
|
+
hasAuditlogs: false,
|
|
974
|
+
hasDeltaProgress: false,
|
|
975
|
+
hasMultitenancy: false,
|
|
976
|
+
hasDeviceConfig: false,
|
|
977
|
+
hasDeviceConnect: false,
|
|
978
|
+
hasFeedbackEnabled: false,
|
|
979
|
+
hasMonitor: false,
|
|
980
|
+
hasReporting: false,
|
|
981
|
+
isDemoMode: false,
|
|
982
|
+
isHosted: false,
|
|
983
|
+
isEnterprise: false
|
|
984
|
+
},
|
|
985
|
+
feedbackProbability: 0.3,
|
|
986
|
+
firstLoginAfterSignup: false,
|
|
987
|
+
hostedAnnouncement: "",
|
|
988
|
+
docsVersion: "",
|
|
989
|
+
recaptchaSiteKey: "",
|
|
990
|
+
searchState: {
|
|
991
|
+
deviceIds: [],
|
|
992
|
+
searchTerm: "",
|
|
993
|
+
searchTotal: 0,
|
|
994
|
+
sort: {
|
|
995
|
+
direction: SORTING_OPTIONS.desc
|
|
996
|
+
// key: null,
|
|
997
|
+
// scope: null
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
stripeAPIKey: "",
|
|
1001
|
+
trackerCode: "",
|
|
1002
|
+
uploadsById: {
|
|
1003
|
+
// id: { uploading: false, uploadProgress: 0, cancelSource: undefined }
|
|
1004
|
+
},
|
|
1005
|
+
newThreshold: getYesterday(),
|
|
1006
|
+
offlineThreshold: getYesterday(),
|
|
1007
|
+
versionInformation: {
|
|
1008
|
+
Integration: "",
|
|
1009
|
+
"Mender-Client": "",
|
|
1010
|
+
"Mender-Artifact": "",
|
|
1011
|
+
"Meta-Mender": "",
|
|
1012
|
+
Deployments: "",
|
|
1013
|
+
Deviceauth: "",
|
|
1014
|
+
Inventory: "",
|
|
1015
|
+
GUI: "latest"
|
|
1016
|
+
},
|
|
1017
|
+
yesterday: void 0
|
|
1018
|
+
};
|
|
1019
|
+
var appSlice = (0, import_toolkit.createSlice)({
|
|
1020
|
+
name: sliceName,
|
|
1021
|
+
initialState,
|
|
1022
|
+
reducers: {
|
|
1023
|
+
setFeatures: (state, action) => {
|
|
1024
|
+
state.features = __spreadValues(__spreadValues({}, state.features), action.payload);
|
|
1025
|
+
},
|
|
1026
|
+
setSnackbar: (state, { payload }) => {
|
|
1027
|
+
let { message, autoHideDuration, action, children, onClick, onClose } = payload;
|
|
1028
|
+
if (typeof payload === "string" || payload instanceof String) {
|
|
1029
|
+
message = payload;
|
|
1030
|
+
}
|
|
1031
|
+
state.snackbar = {
|
|
1032
|
+
open: message ? true : false,
|
|
1033
|
+
message,
|
|
1034
|
+
maxWidth: 900,
|
|
1035
|
+
autoHideDuration,
|
|
1036
|
+
action,
|
|
1037
|
+
children,
|
|
1038
|
+
onClick,
|
|
1039
|
+
onClose
|
|
1040
|
+
};
|
|
1041
|
+
},
|
|
1042
|
+
setFirstLoginAfterSignup: (state, action) => {
|
|
1043
|
+
state.firstLoginAfterSignup = action.payload;
|
|
1044
|
+
},
|
|
1045
|
+
setAnnouncement: (state, action) => {
|
|
1046
|
+
state.hostedAnnouncement = action.payload;
|
|
1047
|
+
},
|
|
1048
|
+
setSearchState: (state, action) => {
|
|
1049
|
+
state.searchState = __spreadValues(__spreadValues({}, state.searchState), action.payload);
|
|
1050
|
+
},
|
|
1051
|
+
setOfflineThreshold: (state, action) => {
|
|
1052
|
+
state.offlineThreshold = action.payload;
|
|
1053
|
+
},
|
|
1054
|
+
initUpload: (state, action) => {
|
|
1055
|
+
const { id, upload } = action.payload;
|
|
1056
|
+
state.uploadsById[id] = upload;
|
|
1057
|
+
},
|
|
1058
|
+
uploadProgress: (state, action) => {
|
|
1059
|
+
const { id, progress } = action.payload;
|
|
1060
|
+
state.uploadsById[id] = __spreadProps(__spreadValues({}, state.uploadsById[id]), {
|
|
1061
|
+
progress
|
|
1062
|
+
});
|
|
1063
|
+
},
|
|
1064
|
+
cleanUpUpload: (state, action) => {
|
|
1065
|
+
var _a;
|
|
1066
|
+
const _b = state.uploadsById, { [_a = action.payload]: current } = _b, remainder = __objRest(_b, [__restKey(_a)]);
|
|
1067
|
+
state.uploadsById = remainder;
|
|
1068
|
+
},
|
|
1069
|
+
setVersionInformation: (state, action) => {
|
|
1070
|
+
state.versionInformation = __spreadValues(__spreadValues({}, state.versionInformation), action.payload);
|
|
1071
|
+
},
|
|
1072
|
+
setEnvironmentData: (state, action) => {
|
|
1073
|
+
return __spreadValues(__spreadValues({}, state), action.payload);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
var actions = appSlice.actions;
|
|
1078
|
+
var appSlice_default = appSlice.reducer;
|
|
1079
|
+
|
|
1080
|
+
// src/deploymentsSlice/index.ts
|
|
1081
|
+
var import_toolkit2 = require("@reduxjs/toolkit");
|
|
1082
|
+
var sliceName2 = "deployments";
|
|
1083
|
+
var initialState2 = {
|
|
1084
|
+
byId: {
|
|
1085
|
+
// [id]: { statistics: { status: {}, total_size }, devices: { [deploymentId]: { id, log } }, totalDeviceCount }
|
|
1086
|
+
},
|
|
1087
|
+
byStatus: {
|
|
1088
|
+
finished: { deploymentIds: [], total: 0 },
|
|
1089
|
+
inprogress: { deploymentIds: [], total: 0 },
|
|
1090
|
+
pending: { deploymentIds: [], total: 0 },
|
|
1091
|
+
scheduled: { deploymentIds: [], total: 0 }
|
|
1092
|
+
},
|
|
1093
|
+
config: {
|
|
1094
|
+
binaryDelta: {
|
|
1095
|
+
timeout: -1,
|
|
1096
|
+
duplicatesWindow: -1,
|
|
1097
|
+
compressionLevel: -1,
|
|
1098
|
+
disableChecksum: false,
|
|
1099
|
+
disableDecompression: false,
|
|
1100
|
+
inputWindow: -1,
|
|
1101
|
+
instructionBuffer: -1,
|
|
1102
|
+
sourceWindow: -1
|
|
1103
|
+
},
|
|
1104
|
+
binaryDeltaLimits: {
|
|
1105
|
+
timeout: __spreadProps(__spreadValues({}, limitDefault), { default: 60, max: 3600, min: 60 }),
|
|
1106
|
+
sourceWindow: limitDefault,
|
|
1107
|
+
inputWindow: limitDefault,
|
|
1108
|
+
duplicatesWindow: limitDefault,
|
|
1109
|
+
instructionBuffer: limitDefault
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
deploymentDeviceLimit: 5e3,
|
|
1113
|
+
selectedDeviceIds: [],
|
|
1114
|
+
selectionState: {
|
|
1115
|
+
finished: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { endDate: void 0, search: "", selection: [], startDate: void 0, total: 0, type: "" }),
|
|
1116
|
+
inprogress: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] }),
|
|
1117
|
+
pending: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] }),
|
|
1118
|
+
scheduled: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { selection: [] }),
|
|
1119
|
+
general: {
|
|
1120
|
+
state: DEPLOYMENT_ROUTES.active.key,
|
|
1121
|
+
showCreationDialog: false,
|
|
1122
|
+
showReportDialog: false,
|
|
1123
|
+
reportType: null
|
|
1124
|
+
// DeploymentConstants.DEPLOYMENT_TYPES.configuration|DeploymentConstants.DEPLOYMENT_TYPES.software
|
|
1125
|
+
},
|
|
1126
|
+
selectedId: void 0
|
|
1127
|
+
}
|
|
1128
|
+
};
|
|
1129
|
+
var deploymentsSlice = (0, import_toolkit2.createSlice)({
|
|
1130
|
+
name: sliceName2,
|
|
1131
|
+
initialState: initialState2,
|
|
1132
|
+
reducers: {
|
|
1133
|
+
createdDeployment: (state, action) => {
|
|
1134
|
+
state.byId[action.payload.id] = __spreadValues(__spreadValues({}, deploymentPrototype), action.payload);
|
|
1135
|
+
state.byStatus[DEPLOYMENT_STATES.pending].total = state.byStatus[DEPLOYMENT_STATES.pending].total + 1;
|
|
1136
|
+
state.byStatus[DEPLOYMENT_STATES.pending].deploymentIds = [...state.byStatus.pending.deploymentIds, action.payload.id];
|
|
1137
|
+
state.selectionState[DEPLOYMENT_STATES.pending].selection = [action.payload.id, ...state.selectionState[DEPLOYMENT_STATES.pending].selection], state.selectionState[DEPLOYMENT_STATES.pending].total = state.selectionState[DEPLOYMENT_STATES.pending].total + 1;
|
|
1138
|
+
},
|
|
1139
|
+
removedDeployment: (state, action) => {
|
|
1140
|
+
var _a;
|
|
1141
|
+
const _b = state.byId, { [_a = action.payload]: removedDeployment } = _b, remainder = __objRest(_b, [__restKey(_a)]);
|
|
1142
|
+
state.byId = remainder;
|
|
1143
|
+
},
|
|
1144
|
+
receivedDeployment: (state, action) => {
|
|
1145
|
+
state.byId[action.payload.id] = __spreadValues(__spreadValues({}, state.byId[action.payload.id] || {}), action.payload);
|
|
1146
|
+
},
|
|
1147
|
+
receivedDeploymentDeviceLog: (state, action) => {
|
|
1148
|
+
const { id, deviceId, log } = action.payload;
|
|
1149
|
+
const deployment = __spreadValues(__spreadValues({}, deploymentPrototype), state.byId[id]);
|
|
1150
|
+
state.byId[id] = __spreadProps(__spreadValues({}, deployment), {
|
|
1151
|
+
devices: __spreadProps(__spreadValues({}, deployment.devices), {
|
|
1152
|
+
[deviceId]: __spreadProps(__spreadValues({}, deployment.devices[deviceId]), {
|
|
1153
|
+
log
|
|
1154
|
+
})
|
|
1155
|
+
})
|
|
1156
|
+
});
|
|
1157
|
+
},
|
|
1158
|
+
receivedDeploymentDevices: (state, action) => {
|
|
1159
|
+
const { id, devices, selectedDeviceIds, totalDeviceCount } = action.payload;
|
|
1160
|
+
state.byId[id] = __spreadProps(__spreadValues({}, state.byId[id]), {
|
|
1161
|
+
devices,
|
|
1162
|
+
totalDeviceCount
|
|
1163
|
+
});
|
|
1164
|
+
state.selectedDeviceIds = selectedDeviceIds;
|
|
1165
|
+
},
|
|
1166
|
+
receivedDeployments: (state, action) => {
|
|
1167
|
+
state.byId = __spreadValues(__spreadValues({}, state.byId), action.payload);
|
|
1168
|
+
},
|
|
1169
|
+
receivedDeploymentsForStatus: (state, action) => {
|
|
1170
|
+
const { status, deploymentIds, total } = action.payload;
|
|
1171
|
+
state.byStatus[status].deploymentIds = deploymentIds;
|
|
1172
|
+
state.byStatus[status].total = total;
|
|
1173
|
+
},
|
|
1174
|
+
selectDeploymentsForStatus: (state, action) => {
|
|
1175
|
+
const { status, deploymentIds, total } = action.payload;
|
|
1176
|
+
state.selectionState[status].selection = deploymentIds;
|
|
1177
|
+
state.selectionState[status].total = total;
|
|
1178
|
+
},
|
|
1179
|
+
setDeploymentsState: (state, action) => {
|
|
1180
|
+
state.selectionState = action.payload;
|
|
1181
|
+
},
|
|
1182
|
+
setDeploymentsConfig: (state, action) => {
|
|
1183
|
+
state.config = action.payload;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
});
|
|
1187
|
+
var actions2 = deploymentsSlice.actions;
|
|
1188
|
+
var deploymentsSlice_default = deploymentsSlice.reducer;
|
|
1189
|
+
|
|
1190
|
+
// src/devicesSlice/index.ts
|
|
1191
|
+
var import_helpers = require("@northern.tech/utils/helpers");
|
|
1192
|
+
var import_toolkit3 = require("@reduxjs/toolkit");
|
|
1193
|
+
var sliceName3 = "devices";
|
|
1194
|
+
var initialState3 = {
|
|
1195
|
+
byId: {
|
|
1196
|
+
// [deviceId]: {
|
|
1197
|
+
// ...,
|
|
1198
|
+
// twinsByIntegration: { [external.provider.id]: twinData }
|
|
1199
|
+
// }
|
|
1200
|
+
},
|
|
1201
|
+
byStatus: {
|
|
1202
|
+
[DEVICE_STATES.accepted]: { deviceIds: [], total: 0 },
|
|
1203
|
+
active: { deviceIds: [], total: 0 },
|
|
1204
|
+
inactive: { deviceIds: [], total: 0 },
|
|
1205
|
+
[DEVICE_STATES.pending]: { deviceIds: [], total: 0 },
|
|
1206
|
+
[DEVICE_STATES.preauth]: { deviceIds: [], total: 0 },
|
|
1207
|
+
[DEVICE_STATES.rejected]: { deviceIds: [], total: 0 }
|
|
1208
|
+
},
|
|
1209
|
+
deviceList: __spreadProps(__spreadValues({
|
|
1210
|
+
deviceIds: []
|
|
1211
|
+
}, DEVICE_LIST_DEFAULTS), {
|
|
1212
|
+
selectedAttributes: [],
|
|
1213
|
+
selectedIssues: [],
|
|
1214
|
+
selection: [],
|
|
1215
|
+
sort: {
|
|
1216
|
+
direction: SORTING_OPTIONS.desc
|
|
1217
|
+
// key: null,
|
|
1218
|
+
// scope: null
|
|
1219
|
+
},
|
|
1220
|
+
state: DEVICE_STATES.accepted,
|
|
1221
|
+
total: 0
|
|
1222
|
+
}),
|
|
1223
|
+
filters: [
|
|
1224
|
+
// { key: 'device_type', value: 'raspberry', operator: '$eq', scope: 'inventory' }
|
|
1225
|
+
],
|
|
1226
|
+
filteringAttributes: { identityAttributes: [], inventoryAttributes: [], systemAttributes: [], tagAttributes: [] },
|
|
1227
|
+
filteringAttributesLimit: 10,
|
|
1228
|
+
filteringAttributesConfig: {
|
|
1229
|
+
attributes: {
|
|
1230
|
+
// inventory: ['some_attribute']
|
|
1231
|
+
},
|
|
1232
|
+
count: 0,
|
|
1233
|
+
limit: 100
|
|
1234
|
+
},
|
|
1235
|
+
reports: [
|
|
1236
|
+
// { items: [{ key: "someKey", count: 42 }], otherCount: 123, total: <otherCount + itemsCount> }
|
|
1237
|
+
],
|
|
1238
|
+
total: 0,
|
|
1239
|
+
limit: 0,
|
|
1240
|
+
groups: {
|
|
1241
|
+
byId: {
|
|
1242
|
+
// groupName: { deviceIds: [], total: 0, filters: [] },
|
|
1243
|
+
// dynamo: { deviceIds: [], total: 3, filters: [{ a: 1 }] }
|
|
1244
|
+
},
|
|
1245
|
+
selectedGroup: void 0
|
|
1246
|
+
}
|
|
1247
|
+
};
|
|
1248
|
+
var devicesSlice = (0, import_toolkit3.createSlice)({
|
|
1249
|
+
name: sliceName3,
|
|
1250
|
+
initialState: initialState3,
|
|
1251
|
+
reducers: {
|
|
1252
|
+
receivedGroups: (state, action) => {
|
|
1253
|
+
state.groups.byId = action.payload;
|
|
1254
|
+
},
|
|
1255
|
+
addToGroup: (state, action) => {
|
|
1256
|
+
const { group, deviceIds } = action.payload;
|
|
1257
|
+
const maybeExistingGroup = __spreadValues({
|
|
1258
|
+
filters: [],
|
|
1259
|
+
deviceIds: []
|
|
1260
|
+
}, state.groups.byId[group]);
|
|
1261
|
+
state.groups.byId[group] = __spreadProps(__spreadValues({}, maybeExistingGroup), {
|
|
1262
|
+
deviceIds: [...maybeExistingGroup.deviceIds, ...deviceIds].filter(import_helpers.duplicateFilter),
|
|
1263
|
+
total: (maybeExistingGroup.total || 0) + 1
|
|
1264
|
+
});
|
|
1265
|
+
},
|
|
1266
|
+
removeFromGroup: (state, action) => {
|
|
1267
|
+
const { group, deviceIds: removedIds } = action.payload;
|
|
1268
|
+
const _a = state.groups.byId[group] || {}, { deviceIds = [], total = 0 } = _a, maybeExistingGroup = __objRest(_a, ["deviceIds", "total"]);
|
|
1269
|
+
const changedGroup = __spreadProps(__spreadValues({}, maybeExistingGroup), {
|
|
1270
|
+
deviceIds: deviceIds.filter((id) => !removedIds.includes(id)),
|
|
1271
|
+
total: Math.max(total - removedIds.length, 0)
|
|
1272
|
+
});
|
|
1273
|
+
if (changedGroup.total || changedGroup.deviceIds.length) {
|
|
1274
|
+
state.groups.byId[group] = changedGroup;
|
|
1275
|
+
return;
|
|
1276
|
+
} else if (state.groups.selectedGroup === group) {
|
|
1277
|
+
state.groups.selectedGroup = void 0;
|
|
1278
|
+
}
|
|
1279
|
+
const _b = state.groups.byId, { [group]: removal } = _b, remainingById = __objRest(_b, [__restKey(group)]);
|
|
1280
|
+
state.groups.byId = remainingById;
|
|
1281
|
+
},
|
|
1282
|
+
addGroup: (state, action) => {
|
|
1283
|
+
const { groupName, group } = action.payload;
|
|
1284
|
+
state.groups.byId[groupName] = __spreadValues(__spreadValues({}, state.groups.byId[groupName]), group);
|
|
1285
|
+
},
|
|
1286
|
+
selectGroup: (state, { payload: group }) => {
|
|
1287
|
+
state.deviceList.deviceIds = state.groups.byId[group] && state.groups.byId[group].deviceIds.length > 0 ? state.groups.byId[group].deviceIds : [];
|
|
1288
|
+
state.groups.selectedGroup = group;
|
|
1289
|
+
},
|
|
1290
|
+
removeGroup: (state, action) => {
|
|
1291
|
+
var _a;
|
|
1292
|
+
const _b = state.groups.byId, { [_a = action.payload]: removal } = _b, remainingById = __objRest(_b, [__restKey(_a)]);
|
|
1293
|
+
state.groups.byId = remainingById;
|
|
1294
|
+
state.groups.selectedGroup = state.groups.selectedGroup === action.payload ? void 0 : state.groups.selectedGroup;
|
|
1295
|
+
},
|
|
1296
|
+
setDeviceListState: (state, action) => {
|
|
1297
|
+
state.deviceList = __spreadProps(__spreadValues(__spreadValues({}, state.deviceList), action.payload), {
|
|
1298
|
+
sort: __spreadValues(__spreadValues({}, state.deviceList.sort), action.payload.sort)
|
|
1299
|
+
});
|
|
1300
|
+
},
|
|
1301
|
+
setFilterAttributes: (state, action) => {
|
|
1302
|
+
state.filteringAttributes = action.payload;
|
|
1303
|
+
},
|
|
1304
|
+
setFilterablesConfig: (state, action) => {
|
|
1305
|
+
state.filteringAttributesConfig = action.payload;
|
|
1306
|
+
},
|
|
1307
|
+
receivedDevices: (state, action) => {
|
|
1308
|
+
state.byId = __spreadValues(__spreadValues({}, state.byId), action.payload);
|
|
1309
|
+
},
|
|
1310
|
+
setDeviceFilters: (state, action) => {
|
|
1311
|
+
if ((0, import_helpers.deepCompare)(action.payload, state.filters)) {
|
|
1312
|
+
return;
|
|
1313
|
+
}
|
|
1314
|
+
state.filters = action.payload.filter((filter) => filter.key && filter.operator && filter.scope && typeof filter.value !== "undefined");
|
|
1315
|
+
},
|
|
1316
|
+
setInactiveDevices: (state, action) => {
|
|
1317
|
+
const { activeDeviceTotal, inactiveDeviceTotal } = action.payload;
|
|
1318
|
+
state.byStatus.active.total = activeDeviceTotal;
|
|
1319
|
+
state.byStatus.inactive.total = inactiveDeviceTotal;
|
|
1320
|
+
},
|
|
1321
|
+
setDeviceReports: (state, action) => {
|
|
1322
|
+
state.reports = action.payload;
|
|
1323
|
+
},
|
|
1324
|
+
setDevicesByStatus: (state, action) => {
|
|
1325
|
+
const { forceUpdate, status, total, deviceIds } = action.payload;
|
|
1326
|
+
state.byStatus[status] = total || forceUpdate ? { deviceIds, total } : state.byStatus[status];
|
|
1327
|
+
},
|
|
1328
|
+
setDevicesCountByStatus: (state, action) => {
|
|
1329
|
+
const { count, status } = action.payload;
|
|
1330
|
+
state.byStatus[status].total = count;
|
|
1331
|
+
},
|
|
1332
|
+
setTotalDevices: (state, action) => {
|
|
1333
|
+
state.total = action.payload;
|
|
1334
|
+
},
|
|
1335
|
+
setDeviceLimit: (state, action) => {
|
|
1336
|
+
state.limit = action.payload;
|
|
1337
|
+
},
|
|
1338
|
+
receivedDevice: (state, action) => {
|
|
1339
|
+
state.byId[action.payload.id] = __spreadValues(__spreadValues({}, state.byId[action.payload.id]), action.payload);
|
|
1340
|
+
},
|
|
1341
|
+
maybeUpdateDevicesByStatus: (state, action) => {
|
|
1342
|
+
const { deviceId, authId } = action.payload;
|
|
1343
|
+
const device = state.byId[deviceId];
|
|
1344
|
+
const hasMultipleAuthSets = authId ? device.auth_sets.filter((authset) => authset.id !== authId).length > 0 : false;
|
|
1345
|
+
if (!hasMultipleAuthSets && Object.values(DEVICE_STATES).includes(device.status)) {
|
|
1346
|
+
const deviceIds = state.byStatus[device.status].deviceIds.filter((id) => id !== deviceId);
|
|
1347
|
+
state.byStatus[device.status] = { deviceIds, total: Math.max(0, state.byStatus[device.status].total - 1) };
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
});
|
|
1352
|
+
var actions3 = devicesSlice.actions;
|
|
1353
|
+
var devicesSlice_default = devicesSlice.reducer;
|
|
1354
|
+
|
|
1355
|
+
// src/monitorSlice/index.ts
|
|
1356
|
+
var import_toolkit4 = require("@reduxjs/toolkit");
|
|
1357
|
+
var sliceName4 = "monitor";
|
|
1358
|
+
var initialState4 = {
|
|
1359
|
+
alerts: {
|
|
1360
|
+
alertList: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { total: 0 }),
|
|
1361
|
+
byDeviceId: {}
|
|
1362
|
+
},
|
|
1363
|
+
issueCounts: {
|
|
1364
|
+
byType: Object.values(DEVICE_ISSUE_OPTIONS).reduce((accu, { key }) => __spreadProps(__spreadValues({}, accu), { [key]: { filtered: 0, total: 0 } }), {})
|
|
1365
|
+
},
|
|
1366
|
+
settings: {
|
|
1367
|
+
global: {
|
|
1368
|
+
channels: __spreadValues({}, Object.keys(alertChannels).reduce((accu, item) => __spreadProps(__spreadValues({}, accu), { [item]: { enabled: true } }), {}))
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
var monitorSlice = (0, import_toolkit4.createSlice)({
|
|
1373
|
+
name: sliceName4,
|
|
1374
|
+
initialState: initialState4,
|
|
1375
|
+
reducers: {
|
|
1376
|
+
changeAlertChannel: (state, action) => {
|
|
1377
|
+
const { channel, enabled } = action.payload;
|
|
1378
|
+
state.settings.global.channels[channel] = { enabled };
|
|
1379
|
+
},
|
|
1380
|
+
receiveDeviceAlerts: (state, action) => {
|
|
1381
|
+
const { deviceId, alerts } = action.payload;
|
|
1382
|
+
state.alerts.byDeviceId[deviceId] = { alerts };
|
|
1383
|
+
},
|
|
1384
|
+
receiveLatestDeviceAlerts: (state, action) => {
|
|
1385
|
+
const { deviceId, alerts } = action.payload;
|
|
1386
|
+
state.alerts.byDeviceId[deviceId] = __spreadProps(__spreadValues({}, state.alerts.byDeviceId[deviceId]), { latest: alerts });
|
|
1387
|
+
},
|
|
1388
|
+
receiveDeviceIssueCounts: (state, action) => {
|
|
1389
|
+
const { issueType, counts } = action.payload;
|
|
1390
|
+
state.issueCounts.byType[issueType] = counts;
|
|
1391
|
+
},
|
|
1392
|
+
setAlertListState: (state, action) => {
|
|
1393
|
+
state.alerts.alertList = __spreadValues(__spreadValues({}, state.alerts.alertList), action.payload);
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
});
|
|
1397
|
+
var actions4 = monitorSlice.actions;
|
|
1398
|
+
var monitorSlice_default = monitorSlice.reducer;
|
|
1399
|
+
|
|
1400
|
+
// src/onboardingSlice/index.ts
|
|
1401
|
+
var import_toolkit5 = require("@reduxjs/toolkit");
|
|
1402
|
+
var sliceName5 = "onboarding";
|
|
1403
|
+
var initialState5 = {
|
|
1404
|
+
approach: null,
|
|
1405
|
+
complete: false,
|
|
1406
|
+
deviceType: null,
|
|
1407
|
+
demoArtifactPort: 85,
|
|
1408
|
+
progress: null,
|
|
1409
|
+
showTips: null,
|
|
1410
|
+
showTipsDialog: false
|
|
1411
|
+
};
|
|
1412
|
+
var onboardingSlice = (0, import_toolkit5.createSlice)({
|
|
1413
|
+
name: sliceName5,
|
|
1414
|
+
initialState: initialState5,
|
|
1415
|
+
reducers: {
|
|
1416
|
+
setOnboardingState: (state, action) => {
|
|
1417
|
+
return __spreadValues(__spreadValues({}, state), action.payload);
|
|
1418
|
+
},
|
|
1419
|
+
setDemoArtifactPort: (state, action) => {
|
|
1420
|
+
state.demoArtifactPort = action.payload;
|
|
1421
|
+
},
|
|
1422
|
+
setShowOnboardingHelp: (state, action) => {
|
|
1423
|
+
state.showTips = action.payload;
|
|
1424
|
+
},
|
|
1425
|
+
setShowDismissOnboardingTipsDialog: (state, action) => {
|
|
1426
|
+
state.showTipsDialog = action.payload;
|
|
1427
|
+
},
|
|
1428
|
+
setOnboardingComplete: (state, action) => {
|
|
1429
|
+
state.complete = action.payload;
|
|
1430
|
+
},
|
|
1431
|
+
setOnboardingProgress: (state, action) => {
|
|
1432
|
+
state.progress = action.payload;
|
|
1433
|
+
},
|
|
1434
|
+
setOnboardingDeviceType: (state, action) => {
|
|
1435
|
+
state.deviceType = action.payload;
|
|
1436
|
+
},
|
|
1437
|
+
setOnboardingApproach: (state, action) => {
|
|
1438
|
+
state.approach = action.payload;
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
});
|
|
1442
|
+
var actions5 = onboardingSlice.actions;
|
|
1443
|
+
var onboardingSlice_default = onboardingSlice.reducer;
|
|
1444
|
+
|
|
1445
|
+
// src/organizationSlice/index.ts
|
|
1446
|
+
var import_toolkit6 = require("@reduxjs/toolkit");
|
|
1447
|
+
var sliceName6 = "organization";
|
|
1448
|
+
var initialState6 = {
|
|
1449
|
+
card: {
|
|
1450
|
+
last4: "",
|
|
1451
|
+
expiration: { month: 1, year: 2020 },
|
|
1452
|
+
brand: ""
|
|
1453
|
+
},
|
|
1454
|
+
intentId: null,
|
|
1455
|
+
organization: {
|
|
1456
|
+
tenantList: __spreadProps(__spreadValues({}, TENANT_LIST_DEFAULT), {
|
|
1457
|
+
total: 0,
|
|
1458
|
+
tenants: [],
|
|
1459
|
+
selectedTenant: null,
|
|
1460
|
+
sort: {
|
|
1461
|
+
direction: SORTING_OPTIONS.desc,
|
|
1462
|
+
key: "name"
|
|
1463
|
+
}
|
|
1464
|
+
})
|
|
1465
|
+
// id, name, status, tenant_token, plan
|
|
1466
|
+
},
|
|
1467
|
+
auditlog: {
|
|
1468
|
+
events: [],
|
|
1469
|
+
selectionState: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), {
|
|
1470
|
+
detail: void 0,
|
|
1471
|
+
endDate: void 0,
|
|
1472
|
+
selectedIssue: void 0,
|
|
1473
|
+
sort: { direction: SORTING_OPTIONS.desc },
|
|
1474
|
+
startDate: void 0,
|
|
1475
|
+
total: 0,
|
|
1476
|
+
type: void 0,
|
|
1477
|
+
user: void 0
|
|
1478
|
+
})
|
|
1479
|
+
},
|
|
1480
|
+
externalDeviceIntegrations: [
|
|
1481
|
+
// { <connection_string|x509|...>, id, provider }
|
|
1482
|
+
],
|
|
1483
|
+
ssoConfigs: [],
|
|
1484
|
+
webhooks: {
|
|
1485
|
+
// [id]: { events: [] }
|
|
1486
|
+
// for now:
|
|
1487
|
+
events: [],
|
|
1488
|
+
eventsTotal: 0
|
|
1489
|
+
}
|
|
1490
|
+
};
|
|
1491
|
+
var organizationSlice = (0, import_toolkit6.createSlice)({
|
|
1492
|
+
name: sliceName6,
|
|
1493
|
+
initialState: initialState6,
|
|
1494
|
+
reducers: {
|
|
1495
|
+
receiveAuditLogs: (state, action) => {
|
|
1496
|
+
const { events, total } = action.payload;
|
|
1497
|
+
state.auditlog.events = events;
|
|
1498
|
+
state.auditlog.selectionState.total = total;
|
|
1499
|
+
},
|
|
1500
|
+
setAuditLogState: (state, action) => {
|
|
1501
|
+
state.auditlog.selectionState = __spreadValues(__spreadValues({}, state.auditlog.selectionState), action.payload);
|
|
1502
|
+
},
|
|
1503
|
+
receiveCurrentCard: (state, action) => {
|
|
1504
|
+
state.card = action.payload;
|
|
1505
|
+
},
|
|
1506
|
+
receiveSetupIntent: (state, action) => {
|
|
1507
|
+
state.intentId = action.payload;
|
|
1508
|
+
},
|
|
1509
|
+
setOrganization: (state, action) => {
|
|
1510
|
+
state.organization = __spreadProps(__spreadValues(__spreadValues({}, state.organization), action.payload), {
|
|
1511
|
+
tenantList: __spreadValues(__spreadValues({}, state.organization.tenantList), action.payload.tenantList)
|
|
1512
|
+
});
|
|
1513
|
+
},
|
|
1514
|
+
setTenantListState: (state, action) => {
|
|
1515
|
+
state.organization.tenantList = action.payload;
|
|
1516
|
+
},
|
|
1517
|
+
receiveExternalDeviceIntegrations: (state, action) => {
|
|
1518
|
+
state.externalDeviceIntegrations = action.payload;
|
|
1519
|
+
},
|
|
1520
|
+
receiveSsoConfigs: (state, action) => {
|
|
1521
|
+
state.ssoConfigs = action.payload;
|
|
1522
|
+
},
|
|
1523
|
+
receiveWebhookEvents: (state, action) => {
|
|
1524
|
+
const { value, total } = action.payload;
|
|
1525
|
+
state.webhooks.events = value;
|
|
1526
|
+
state.webhooks.eventsTotal = total;
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
});
|
|
1530
|
+
var actions6 = organizationSlice.actions;
|
|
1531
|
+
var organizationSlice_default = organizationSlice.reducer;
|
|
1532
|
+
|
|
1533
|
+
// src/releasesSlice/index.ts
|
|
1534
|
+
var import_toolkit7 = require("@reduxjs/toolkit");
|
|
1535
|
+
var sliceName7 = "releases";
|
|
1536
|
+
var initialState7 = {
|
|
1537
|
+
/*
|
|
1538
|
+
* Return list of saved artifacts objects
|
|
1539
|
+
*/
|
|
1540
|
+
/*
|
|
1541
|
+
* return list of artifacts where duplicate names are collated with device compatibility lists combined
|
|
1542
|
+
*/
|
|
1543
|
+
// artifacts: AppStore.getCollatedArtifacts(AppStore.getArtifactsRepo()),
|
|
1544
|
+
artifacts: [],
|
|
1545
|
+
/*
|
|
1546
|
+
* Return list of saved release objects
|
|
1547
|
+
*/
|
|
1548
|
+
byId: {
|
|
1549
|
+
/*
|
|
1550
|
+
[releaseName]: {
|
|
1551
|
+
artifacts: [
|
|
1552
|
+
{
|
|
1553
|
+
id: '',
|
|
1554
|
+
name: '',
|
|
1555
|
+
description: '',
|
|
1556
|
+
device_types_compatible: [],
|
|
1557
|
+
...
|
|
1558
|
+
updates: [{
|
|
1559
|
+
files: [
|
|
1560
|
+
{ size: 123, name: '' }
|
|
1561
|
+
],
|
|
1562
|
+
type_info: { type: '' }
|
|
1563
|
+
}],
|
|
1564
|
+
url: '' // optional
|
|
1565
|
+
}
|
|
1566
|
+
],
|
|
1567
|
+
modified: ''
|
|
1568
|
+
device_types_compatible,
|
|
1569
|
+
name: '',
|
|
1570
|
+
tags: ['something'],
|
|
1571
|
+
notes: ''
|
|
1572
|
+
}
|
|
1573
|
+
*/
|
|
1574
|
+
},
|
|
1575
|
+
releasesList: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), {
|
|
1576
|
+
searchedIds: [],
|
|
1577
|
+
releaseIds: [],
|
|
1578
|
+
selection: [],
|
|
1579
|
+
sort: {
|
|
1580
|
+
direction: SORTING_OPTIONS.desc,
|
|
1581
|
+
key: "modified"
|
|
1582
|
+
},
|
|
1583
|
+
isLoading: void 0,
|
|
1584
|
+
searchTerm: "",
|
|
1585
|
+
searchTotal: 0,
|
|
1586
|
+
selectedTags: [],
|
|
1587
|
+
total: 0,
|
|
1588
|
+
type: ""
|
|
1589
|
+
}),
|
|
1590
|
+
tags: [],
|
|
1591
|
+
updateTypes: [],
|
|
1592
|
+
/*
|
|
1593
|
+
* Return single release with corresponding Artifacts
|
|
1594
|
+
*/
|
|
1595
|
+
selectedRelease: null
|
|
1596
|
+
};
|
|
1597
|
+
var releaseSlice = (0, import_toolkit7.createSlice)({
|
|
1598
|
+
name: sliceName7,
|
|
1599
|
+
initialState: initialState7,
|
|
1600
|
+
reducers: {
|
|
1601
|
+
receiveRelease: (state, action) => {
|
|
1602
|
+
const { name } = action.payload;
|
|
1603
|
+
state.byId[name] = action.payload;
|
|
1604
|
+
},
|
|
1605
|
+
receiveReleases: (state, action) => {
|
|
1606
|
+
state.byId = action.payload;
|
|
1607
|
+
},
|
|
1608
|
+
receiveReleaseTags: (state, action) => {
|
|
1609
|
+
state.tags = action.payload;
|
|
1610
|
+
},
|
|
1611
|
+
receiveReleaseTypes: (state, action) => {
|
|
1612
|
+
state.updateTypes = action.payload;
|
|
1613
|
+
},
|
|
1614
|
+
removeRelease: (state, action) => {
|
|
1615
|
+
var _a;
|
|
1616
|
+
const _b = state.byId, { [_a = action.payload]: toBeRemoved } = _b, byId = __objRest(_b, [__restKey(_a)]);
|
|
1617
|
+
state.byId = byId;
|
|
1618
|
+
state.selectedRelease = action.payload === state.selectedRelease ? null : state.selectedRelease;
|
|
1619
|
+
},
|
|
1620
|
+
selectedRelease: (state, action) => {
|
|
1621
|
+
state.selectedRelease = action.payload;
|
|
1622
|
+
},
|
|
1623
|
+
setReleaseListState: (state, action) => {
|
|
1624
|
+
state.releasesList = action.payload;
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
});
|
|
1628
|
+
var actions7 = releaseSlice.actions;
|
|
1629
|
+
var releasesSlice_default = releaseSlice.reducer;
|
|
1630
|
+
|
|
1631
|
+
// src/usersSlice/index.ts
|
|
1632
|
+
var import_toolkit8 = require("@reduxjs/toolkit");
|
|
1633
|
+
var sliceName8 = "users";
|
|
1634
|
+
var initialState8 = {
|
|
1635
|
+
activationCode: void 0,
|
|
1636
|
+
byId: {},
|
|
1637
|
+
currentUser: null,
|
|
1638
|
+
currentSession: {
|
|
1639
|
+
// { token: window.localStorage.getItem('JWT'), expiresAt: '2023-01-01T00:15:00.000Z' | undefined }, // expiresAt depending on the stay logged in setting
|
|
1640
|
+
},
|
|
1641
|
+
customColumns: [],
|
|
1642
|
+
qrCode: null,
|
|
1643
|
+
globalSettings: {
|
|
1644
|
+
id_attribute: void 0,
|
|
1645
|
+
previousFilters: [],
|
|
1646
|
+
previousPhases: [],
|
|
1647
|
+
retries: 0
|
|
1648
|
+
},
|
|
1649
|
+
permissionSetsById: __spreadValues({}, defaultPermissionSets),
|
|
1650
|
+
rolesById: __spreadValues({}, rolesById),
|
|
1651
|
+
settingsInitialized: false,
|
|
1652
|
+
showConnectDeviceDialog: false,
|
|
1653
|
+
showFeedbackDialog: false,
|
|
1654
|
+
showStartupNotification: false,
|
|
1655
|
+
tooltips: {
|
|
1656
|
+
byId: {
|
|
1657
|
+
// <id>: { readState: <read|unread> } // this object is getting enhanced by the tooltip texts in the app constants
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
userSettings: {
|
|
1661
|
+
columnSelection: [],
|
|
1662
|
+
onboarding: {}
|
|
1663
|
+
},
|
|
1664
|
+
userSettingsInitialized: false
|
|
1665
|
+
};
|
|
1666
|
+
var usersSlice = (0, import_toolkit8.createSlice)({
|
|
1667
|
+
name: sliceName8,
|
|
1668
|
+
initialState: initialState8,
|
|
1669
|
+
reducers: {
|
|
1670
|
+
receivedQrCode: (state, action) => {
|
|
1671
|
+
state.qrCode = action.payload;
|
|
1672
|
+
},
|
|
1673
|
+
successfullyLoggedIn: (state, action) => {
|
|
1674
|
+
state.currentSession = action.payload;
|
|
1675
|
+
},
|
|
1676
|
+
receivedUserList: (state, action) => {
|
|
1677
|
+
state.byId = action.payload;
|
|
1678
|
+
},
|
|
1679
|
+
receivedActivationCode: (state, action) => {
|
|
1680
|
+
state.activationCode = action.payload;
|
|
1681
|
+
},
|
|
1682
|
+
receivedUser: (state, action) => {
|
|
1683
|
+
state.byId[action.payload.id] = action.payload;
|
|
1684
|
+
state.currentUser = action.payload.id;
|
|
1685
|
+
},
|
|
1686
|
+
createdUser: (state, action) => {
|
|
1687
|
+
state.byId[0] = action.payload;
|
|
1688
|
+
},
|
|
1689
|
+
removedUser: (state, action) => {
|
|
1690
|
+
var _a;
|
|
1691
|
+
const _b = state.byId, { [_a = action.payload]: removedUser } = _b, byId = __objRest(_b, [__restKey(_a)]);
|
|
1692
|
+
state.byId = byId;
|
|
1693
|
+
state.currentUser = state.currentUser === action.payload ? null : state.currentUser;
|
|
1694
|
+
},
|
|
1695
|
+
updatedUser: (state, action) => {
|
|
1696
|
+
state.byId[action.payload.id] = __spreadValues(__spreadValues({}, state.byId[action.payload.id]), action.payload);
|
|
1697
|
+
},
|
|
1698
|
+
receivedPermissionSets: (state, action) => {
|
|
1699
|
+
state.permissionSetsById = action.payload;
|
|
1700
|
+
},
|
|
1701
|
+
receivedRoles: (state, action) => {
|
|
1702
|
+
state.rolesById = action.payload;
|
|
1703
|
+
},
|
|
1704
|
+
createdRole: (state, action) => {
|
|
1705
|
+
state.rolesById[action.payload.name] = __spreadValues(__spreadValues({}, state.rolesById[action.payload.name]), action.payload);
|
|
1706
|
+
},
|
|
1707
|
+
removedRole: (state, action) => {
|
|
1708
|
+
var _a;
|
|
1709
|
+
const _b = state.rolesById, { [_a = action.payload]: toBeRemoved } = _b, rolesById2 = __objRest(_b, [__restKey(_a)]);
|
|
1710
|
+
state.rolesById = rolesById2;
|
|
1711
|
+
},
|
|
1712
|
+
setCustomColumns: (state, action) => {
|
|
1713
|
+
state.customColumns = action.payload;
|
|
1714
|
+
},
|
|
1715
|
+
setGlobalSettings: (state, action) => {
|
|
1716
|
+
state.settingsInitialized = true;
|
|
1717
|
+
state.globalSettings = __spreadValues(__spreadValues({}, state.globalSettings), action.payload);
|
|
1718
|
+
},
|
|
1719
|
+
setUserSettings: (state, action) => {
|
|
1720
|
+
state.userSettingsInitialized = true;
|
|
1721
|
+
state.userSettings = __spreadValues(__spreadValues({}, state.userSettings), action.payload);
|
|
1722
|
+
},
|
|
1723
|
+
setTooltipState: (state, action) => {
|
|
1724
|
+
const { id, readState = READ_STATES.read } = action.payload;
|
|
1725
|
+
state.tooltips.byId[id].readState = readState;
|
|
1726
|
+
},
|
|
1727
|
+
setTooltipsState: (state, action) => {
|
|
1728
|
+
state.tooltips.byId = __spreadValues(__spreadValues({}, state.tooltips.byId), action.payload);
|
|
1729
|
+
},
|
|
1730
|
+
setShowFeedbackDialog: (state, action) => {
|
|
1731
|
+
state.showFeedbackDialog = action.payload;
|
|
1732
|
+
},
|
|
1733
|
+
setShowConnectingDialog: (state, action) => {
|
|
1734
|
+
state.showConnectDeviceDialog = action.payload;
|
|
1735
|
+
},
|
|
1736
|
+
setShowStartupNotification: (state, action) => {
|
|
1737
|
+
state.showStartupNotification = action.payload;
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
});
|
|
1741
|
+
var actions8 = usersSlice.actions;
|
|
1742
|
+
var usersSlice_default = usersSlice.reducer;
|
|
1743
|
+
|
|
1744
|
+
// src/actions.ts
|
|
1745
|
+
var actions_default = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, actions), actions2), actions3), actions4), actions5), actions6), actions7), actions8);
|
|
1746
|
+
//# sourceMappingURL=actions.js.map
|