@northern.tech/store 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.cjs +80 -833
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.d.cts +229 -85
- package/dist/actions.d.ts +229 -85
- package/dist/actions.js +14 -14
- package/dist/api/general-api.cjs +274 -148
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.d.cts +1 -1
- package/dist/api/general-api.d.ts +1 -1
- package/dist/api/general-api.js +7 -7
- package/dist/api/users-api.cjs +274 -148
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.d.cts +7 -5
- package/dist/api/users-api.d.ts +7 -5
- package/dist/api/users-api.js +8 -8
- package/dist/appSlice/constants.cjs +23 -43
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +109 -119
- package/dist/appSlice/constants.d.ts +109 -119
- package/dist/appSlice/constants.js +1 -11
- package/dist/appSlice/index.cjs +25 -242
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.d.cts +119 -1531
- package/dist/appSlice/index.d.ts +119 -1531
- package/dist/appSlice/index.js +6 -6
- package/dist/appSlice/mocks.cjs +186 -0
- package/dist/appSlice/mocks.cjs.map +1 -0
- package/dist/appSlice/mocks.d.cts +39 -0
- package/dist/appSlice/mocks.d.ts +39 -0
- package/dist/appSlice/mocks.js +27 -0
- package/dist/appSlice/mocks.js.map +1 -0
- package/dist/appSlice/selectors.cjs +31 -5
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +709 -23
- package/dist/appSlice/selectors.d.ts +709 -23
- package/dist/appSlice/selectors.js +21 -1
- package/dist/appSlice/thunks.cjs +1563 -1790
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.d.cts +34 -14
- package/dist/appSlice/thunks.d.ts +34 -14
- package/dist/appSlice/thunks.js +30 -29
- package/dist/auth.cjs +276 -153
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +13 -10
- package/dist/auth.d.ts +13 -10
- package/dist/auth.js +6 -8
- package/dist/{chunk-CK6YE6AN.js → chunk-2DYA3X77.js} +3 -1
- package/dist/{chunk-CK6YE6AN.js.map → chunk-2DYA3X77.js.map} +1 -1
- package/dist/{chunk-2CYOM4BK.js → chunk-4TUJPE6G.js} +19 -4
- package/dist/chunk-4TUJPE6G.js.map +1 -0
- package/dist/{chunk-7PVGDMNM.js → chunk-6KGTHJKC.js} +23 -27
- package/dist/chunk-6KGTHJKC.js.map +1 -0
- package/dist/chunk-7C4SQBEE.js +715 -0
- package/dist/chunk-7C4SQBEE.js.map +1 -0
- package/dist/{chunk-QRGTG4YB.js → chunk-ABJLRDCO.js} +10 -11
- package/dist/chunk-ABJLRDCO.js.map +1 -0
- package/dist/{chunk-LEMVXAYP.js → chunk-CW5T6OGF.js} +56 -22
- package/dist/chunk-CW5T6OGF.js.map +1 -0
- package/dist/{chunk-MRCFLG45.js → chunk-FAJ3I2UQ.js} +2 -1
- package/dist/chunk-FAJ3I2UQ.js.map +1 -0
- package/dist/{chunk-DCK2DBOA.js → chunk-IQG5I7AM.js} +29 -39
- package/dist/chunk-IQG5I7AM.js.map +1 -0
- package/dist/chunk-JUGE7L3K.js +110 -0
- package/dist/chunk-JUGE7L3K.js.map +1 -0
- package/dist/{chunk-7JKWI5FK.js → chunk-JXQUFKID.js} +2 -2
- package/dist/chunk-JXQUFKID.js.map +1 -0
- package/dist/chunk-KC7SKI3U.js +389 -0
- package/dist/chunk-KC7SKI3U.js.map +1 -0
- package/dist/{chunk-YDS36ALB.js → chunk-KJNNEDRV.js} +11 -7
- package/dist/chunk-KJNNEDRV.js.map +1 -0
- package/dist/chunk-MBKAZVE3.js +44 -0
- package/dist/chunk-MBKAZVE3.js.map +1 -0
- package/dist/{chunk-TI2RL5P2.js → chunk-MZNANSS2.js} +12 -7
- package/dist/chunk-MZNANSS2.js.map +1 -0
- package/dist/{chunk-LTKOV26W.js → chunk-N2KLYPS5.js} +138 -95
- package/dist/chunk-N2KLYPS5.js.map +1 -0
- package/dist/{chunk-UWMYZNUB.js → chunk-OHF3YUXX.js} +25 -40
- package/dist/chunk-OHF3YUXX.js.map +1 -0
- package/dist/{chunk-CYV6632F.js → chunk-OOICURFL.js} +2 -2
- package/dist/chunk-OOICURFL.js.map +1 -0
- package/dist/{chunk-VMNMD6KF.js → chunk-PGFVHKP5.js} +5 -7
- package/dist/chunk-PGFVHKP5.js.map +1 -0
- package/dist/{chunk-JAROCU6M.js → chunk-QHK7GGV4.js} +3 -3
- package/dist/chunk-QHK7GGV4.js.map +1 -0
- package/dist/{chunk-YT73QWCN.js → chunk-RS37Y2PQ.js} +3 -3
- package/dist/chunk-RS37Y2PQ.js.map +1 -0
- package/dist/{chunk-TUACATJA.js → chunk-UGSLGUS6.js} +8 -6
- package/dist/chunk-UGSLGUS6.js.map +1 -0
- package/dist/{chunk-DAPAXWA5.js → chunk-URNS6A5T.js} +14 -14
- package/dist/{chunk-FGKMJS3B.js → chunk-VANBSJS5.js} +2 -4
- package/dist/chunk-VANBSJS5.js.map +1 -0
- package/dist/{chunk-HPBE6KYY.js → chunk-VUFRP6P3.js} +5 -6
- package/dist/chunk-VUFRP6P3.js.map +1 -0
- package/dist/{chunk-X7IEZBM4.js → chunk-X4GUACQO.js} +8 -5
- package/dist/chunk-X4GUACQO.js.map +1 -0
- package/dist/{chunk-4XJMRVFI.js → chunk-XWYJACQC.js} +45 -22
- package/dist/chunk-XWYJACQC.js.map +1 -0
- package/dist/{chunk-AMGWP7A4.js → chunk-ZJW3QIPM.js} +8 -9
- package/dist/chunk-ZJW3QIPM.js.map +1 -0
- package/dist/chunk-ZKAH3APE.js +1 -0
- package/dist/chunk-ZKAH3APE.js.map +1 -0
- package/dist/{chunk-2JHFUQ6B.js → chunk-ZN5TB2NJ.js} +963 -883
- package/dist/chunk-ZN5TB2NJ.js.map +1 -0
- package/dist/{chunk-WXL7PVI5.js → chunk-ZRSYBSSY.js} +18 -12
- package/dist/chunk-ZRSYBSSY.js.map +1 -0
- package/dist/commonConstants.cjs +279 -173
- package/dist/commonConstants.cjs.map +1 -1
- package/dist/commonConstants.d.cts +46 -212
- package/dist/commonConstants.d.ts +46 -212
- package/dist/commonConstants.js +11 -19
- package/dist/commonSelectors.cjs +513 -778
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +4307 -279
- package/dist/commonSelectors.d.ts +4307 -279
- package/dist/commonSelectors.js +13 -13
- package/dist/constants.cjs +355 -655
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +11 -9
- package/dist/constants.d.ts +11 -9
- package/dist/constants.js +37 -29
- package/dist/deploymentsSlice/constants.cjs +5 -360
- package/dist/deploymentsSlice/constants.cjs.map +1 -1
- package/dist/deploymentsSlice/constants.d.cts +59 -39
- package/dist/deploymentsSlice/constants.d.ts +59 -39
- package/dist/deploymentsSlice/constants.js +5 -11
- package/dist/deploymentsSlice/index.cjs +17 -365
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.d.cts +142 -2359
- package/dist/deploymentsSlice/index.d.ts +142 -2359
- package/dist/deploymentsSlice/index.js +6 -6
- package/dist/deploymentsSlice/mocks.cjs +429 -0
- package/dist/deploymentsSlice/mocks.cjs.map +1 -0
- package/dist/deploymentsSlice/mocks.d.cts +189 -0
- package/dist/deploymentsSlice/mocks.d.ts +189 -0
- package/dist/deploymentsSlice/mocks.js +146 -0
- package/dist/deploymentsSlice/mocks.js.map +1 -0
- package/dist/deploymentsSlice/selectors.cjs +5 -353
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +167 -11
- package/dist/deploymentsSlice/selectors.d.ts +167 -11
- package/dist/deploymentsSlice/selectors.js +6 -6
- package/dist/deploymentsSlice/thunks.cjs +1551 -1778
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +134 -76
- package/dist/deploymentsSlice/thunks.d.ts +134 -76
- package/dist/deploymentsSlice/thunks.js +30 -29
- package/dist/devicesSlice/constants.cjs +5 -375
- package/dist/devicesSlice/constants.cjs.map +1 -1
- package/dist/devicesSlice/constants.d.cts +8 -16
- package/dist/devicesSlice/constants.d.ts +8 -16
- package/dist/devicesSlice/constants.js +7 -25
- package/dist/devicesSlice/index.cjs +17 -381
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +196 -2208
- package/dist/devicesSlice/index.d.ts +196 -2208
- package/dist/devicesSlice/index.js +6 -6
- package/dist/devicesSlice/mocks.cjs +336 -0
- package/dist/devicesSlice/mocks.cjs.map +1 -0
- package/dist/devicesSlice/mocks.d.cts +154 -0
- package/dist/devicesSlice/mocks.d.ts +154 -0
- package/dist/devicesSlice/mocks.js +136 -0
- package/dist/devicesSlice/mocks.js.map +1 -0
- package/dist/devicesSlice/selectors.cjs +280 -293
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +1791 -82
- package/dist/devicesSlice/selectors.d.ts +1791 -82
- package/dist/devicesSlice/selectors.js +8 -6
- package/dist/devicesSlice/thunks.cjs +1699 -1936
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +374 -291
- package/dist/devicesSlice/thunks.d.ts +374 -291
- package/dist/devicesSlice/thunks.js +36 -45
- package/dist/liststatehook.cjs +935 -0
- package/dist/liststatehook.cjs.map +1 -0
- package/dist/liststatehook.d.cts +234 -0
- package/dist/liststatehook.d.ts +234 -0
- package/dist/liststatehook.js +88 -0
- package/dist/liststatehook.js.map +1 -0
- package/dist/locationutils.cjs +906 -0
- package/dist/locationutils.cjs.map +1 -0
- package/dist/locationutils.d.cts +114 -0
- package/dist/locationutils.d.ts +114 -0
- package/dist/locationutils.js +46 -0
- package/dist/locationutils.js.map +1 -0
- package/dist/monitorSlice/constants.cjs +0 -146
- package/dist/monitorSlice/constants.cjs.map +1 -1
- package/dist/monitorSlice/constants.d.cts +4 -5
- package/dist/monitorSlice/constants.d.ts +4 -5
- package/dist/monitorSlice/constants.js +1 -12
- package/dist/monitorSlice/index.cjs +5 -353
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.d.cts +63 -260
- package/dist/monitorSlice/index.d.ts +63 -260
- package/dist/monitorSlice/index.js +6 -6
- package/dist/monitorSlice/mocks.cjs +130 -0
- package/dist/monitorSlice/mocks.cjs.map +1 -0
- package/dist/monitorSlice/mocks.d.cts +57 -0
- package/dist/monitorSlice/mocks.d.ts +57 -0
- package/dist/monitorSlice/mocks.js +65 -0
- package/dist/monitorSlice/mocks.js.map +1 -0
- package/dist/monitorSlice/thunks.cjs +633 -880
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +90 -21
- package/dist/monitorSlice/thunks.d.ts +90 -21
- package/dist/monitorSlice/thunks.js +26 -26
- package/dist/onboardingSlice/constants.cjs +1 -0
- package/dist/onboardingSlice/constants.cjs.map +1 -1
- package/dist/onboardingSlice/constants.d.cts +23 -20
- package/dist/onboardingSlice/constants.d.ts +23 -20
- package/dist/onboardingSlice/constants.js +1 -1
- package/dist/onboardingSlice/index.cjs +1 -3
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/index.d.cts +50 -225
- package/dist/onboardingSlice/index.d.ts +50 -225
- package/dist/onboardingSlice/index.js +1 -1
- package/dist/onboardingSlice/mocks.cjs +83 -0
- package/dist/onboardingSlice/mocks.cjs.map +1 -0
- package/dist/onboardingSlice/mocks.d.cts +19 -0
- package/dist/onboardingSlice/mocks.d.ts +19 -0
- package/dist/onboardingSlice/mocks.js +17 -0
- package/dist/onboardingSlice/mocks.js.map +1 -0
- package/dist/onboardingSlice/thunks.cjs +1787 -2020
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +63 -36
- package/dist/onboardingSlice/thunks.d.ts +63 -36
- package/dist/onboardingSlice/thunks.js +30 -31
- package/dist/organizationSlice/constants.cjs +8 -748
- package/dist/organizationSlice/constants.cjs.map +1 -1
- package/dist/organizationSlice/constants.d.cts +36 -116
- package/dist/organizationSlice/constants.d.ts +36 -116
- package/dist/organizationSlice/constants.js +7 -17
- package/dist/organizationSlice/index.cjs +14 -368
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +45 -73
- package/dist/organizationSlice/index.d.ts +45 -73
- package/dist/organizationSlice/index.js +6 -6
- package/dist/organizationSlice/mocks.cjs +234 -0
- package/dist/organizationSlice/mocks.cjs.map +1 -0
- package/dist/organizationSlice/mocks.d.cts +107 -0
- package/dist/organizationSlice/mocks.d.ts +107 -0
- package/dist/organizationSlice/mocks.js +101 -0
- package/dist/organizationSlice/mocks.js.map +1 -0
- package/dist/organizationSlice/selectors.cjs +301 -146
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +888 -51
- package/dist/organizationSlice/selectors.d.ts +888 -51
- package/dist/organizationSlice/selectors.js +14 -6
- package/dist/organizationSlice/thunks.cjs +2616 -2759
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +322 -131
- package/dist/organizationSlice/thunks.d.ts +322 -131
- package/dist/organizationSlice/thunks.js +44 -29
- package/dist/organizationSlice/types.cjs.map +1 -1
- package/dist/organizationSlice/types.d.cts +62 -79
- package/dist/organizationSlice/types.d.ts +62 -79
- package/dist/releasesSlice/constants.cjs +3 -0
- package/dist/releasesSlice/constants.cjs.map +1 -1
- package/dist/releasesSlice/constants.d.cts +2 -1
- package/dist/releasesSlice/constants.d.ts +2 -1
- package/dist/releasesSlice/constants.js +3 -1
- package/dist/releasesSlice/index.cjs +5 -222
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.d.cts +52 -473
- package/dist/releasesSlice/index.d.ts +52 -473
- package/dist/releasesSlice/index.js +6 -6
- package/dist/releasesSlice/mocks.cjs +177 -0
- package/dist/releasesSlice/mocks.cjs.map +1 -0
- package/dist/releasesSlice/mocks.d.cts +49 -0
- package/dist/releasesSlice/mocks.d.ts +49 -0
- package/dist/releasesSlice/mocks.js +61 -0
- package/dist/releasesSlice/mocks.js.map +1 -0
- package/dist/releasesSlice/selectors.cjs +293 -165
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +886 -24
- package/dist/releasesSlice/selectors.d.ts +886 -24
- package/dist/releasesSlice/selectors.js +9 -7
- package/dist/releasesSlice/thunks.cjs +827 -1017
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +150 -130
- package/dist/releasesSlice/thunks.d.ts +150 -130
- package/dist/releasesSlice/thunks.js +33 -26
- package/dist/selectors.cjs +565 -780
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +37 -8
- package/dist/selectors.d.ts +37 -8
- package/dist/selectors.js +54 -18
- package/dist/sockethook.cjs +519 -0
- package/dist/sockethook.cjs.map +1 -0
- package/dist/sockethook.d.cts +10 -0
- package/dist/sockethook.d.ts +10 -0
- package/dist/sockethook.js +139 -0
- package/dist/sockethook.js.map +1 -0
- package/dist/store.cjs +121 -840
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +697 -1961
- package/dist/store.d.ts +697 -1961
- package/dist/store.js +18 -16
- package/dist/storehooks.cjs +1854 -1968
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +46 -63
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +2138 -2231
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +25 -7
- package/dist/thunks.d.ts +25 -7
- package/dist/thunks.js +54 -45
- package/dist/{deploymentdevicehook.cjs → useDeploymentDevice.cjs} +1797 -2026
- package/dist/useDeploymentDevice.cjs.map +1 -0
- package/dist/useDeploymentDevice.js +63 -0
- package/dist/useDeploymentDevice.js.map +1 -0
- package/dist/usersSlice/constants.cjs +5 -747
- package/dist/usersSlice/constants.cjs.map +1 -1
- package/dist/usersSlice/constants.d.cts +16 -774
- package/dist/usersSlice/constants.d.ts +16 -774
- package/dist/usersSlice/constants.js +7 -30
- package/dist/usersSlice/index.cjs +10 -721
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.d.cts +136 -7900
- package/dist/usersSlice/index.d.ts +136 -7900
- package/dist/usersSlice/index.js +6 -6
- package/dist/usersSlice/mocks.cjs +200 -0
- package/dist/usersSlice/mocks.cjs.map +1 -0
- package/dist/usersSlice/mocks.d.cts +83 -0
- package/dist/usersSlice/mocks.d.ts +83 -0
- package/dist/usersSlice/mocks.js +47 -0
- package/dist/usersSlice/mocks.js.map +1 -0
- package/dist/usersSlice/selectors.cjs +319 -566
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +1651 -59
- package/dist/usersSlice/selectors.d.ts +1651 -59
- package/dist/usersSlice/selectors.js +13 -9
- package/dist/usersSlice/thunks.cjs +1666 -1893
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.d.cts +362 -312
- package/dist/usersSlice/thunks.d.ts +362 -312
- package/dist/usersSlice/thunks.js +30 -29
- package/dist/utils.cjs +428 -292
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +44 -22
- package/dist/utils.d.ts +44 -22
- package/dist/utils.js +12 -6
- package/package.json +18 -8
- package/dist/api/types/AWSCredentials.ts +0 -16
- package/dist/api/types/Actor.ts +0 -35
- package/dist/api/types/Addon.ts +0 -17
- package/dist/api/types/AddonTenantadm.ts +0 -17
- package/dist/api/types/Address.ts +0 -6
- package/dist/api/types/AddressUpdate.ts +0 -12
- package/dist/api/types/Alert.ts +0 -34
- package/dist/api/types/AlertDetails.ts +0 -23
- package/dist/api/types/AlertSubject.ts +0 -23
- package/dist/api/types/ApiBurst.ts +0 -21
- package/dist/api/types/ApiBurstTenantadm.ts +0 -21
- package/dist/api/types/ApiLimits.ts +0 -16
- package/dist/api/types/ApiLimitsTenantadm.ts +0 -16
- package/dist/api/types/ApiQuota.ts +0 -17
- package/dist/api/types/ApiQuotaTenantadm.ts +0 -17
- package/dist/api/types/Artifact.ts +0 -48
- package/dist/api/types/ArtifactDeployments.ts +0 -48
- package/dist/api/types/ArtifactInfo.ts +0 -11
- package/dist/api/types/ArtifactInfoDeployments.ts +0 -11
- package/dist/api/types/ArtifactLink.ts +0 -11
- package/dist/api/types/ArtifactTypeInfo.ts +0 -13
- package/dist/api/types/ArtifactTypeInfoDeployments.ts +0 -13
- package/dist/api/types/ArtifactUpdate.ts +0 -10
- package/dist/api/types/ArtifactUploadLink.ts +0 -15
- package/dist/api/types/Attribute.ts +0 -36
- package/dist/api/types/AttributeInventory.ts +0 -32
- package/dist/api/types/AuditLog.ts +0 -26
- package/dist/api/types/AuthSet.ts +0 -37
- package/dist/api/types/AuthSetDeviceauth.ts +0 -37
- package/dist/api/types/AuthSetIot_manager.ts +0 -33
- package/dist/api/types/AutoAuthRequest.ts +0 -23
- package/dist/api/types/AzureSharedAccessSecret.ts +0 -11
- package/dist/api/types/BillingInfo.ts +0 -13
- package/dist/api/types/BillingProfile.ts +0 -37
- package/dist/api/types/BillingProfileUpdate.ts +0 -37
- package/dist/api/types/BinaryDeltaConfiguration.ts +0 -15
- package/dist/api/types/BinaryDeltaConfigurationDeployments.ts +0 -15
- package/dist/api/types/BinaryDeltaLimits.ts +0 -21
- package/dist/api/types/BinaryDeltaLimitsDeployments.ts +0 -15
- package/dist/api/types/BoundingBox.ts +0 -9
- package/dist/api/types/CancelRequest.ts +0 -10
- package/dist/api/types/CardData.ts +0 -49
- package/dist/api/types/CardSetupData.ts +0 -17
- package/dist/api/types/CheckoutData.ts +0 -13
- package/dist/api/types/Configuration.ts +0 -11
- package/dist/api/types/Count.ts +0 -13
- package/dist/api/types/Credentials.ts +0 -23
- package/dist/api/types/DBusSubsystem.ts +0 -27
- package/dist/api/types/DeltaConfiguration.ts +0 -14
- package/dist/api/types/DeltaConfigurationDeployments.ts +0 -14
- package/dist/api/types/Deployment.ts +0 -45
- package/dist/api/types/DeploymentAggregation.ts +0 -16
- package/dist/api/types/DeploymentAggregationItem.ts +0 -16
- package/dist/api/types/DeploymentAggregationTerm.ts +0 -22
- package/dist/api/types/DeploymentAggregationTerms.ts +0 -16
- package/dist/api/types/DeploymentAttributeProjection.ts +0 -10
- package/dist/api/types/DeploymentAuditlogs.ts +0 -11
- package/dist/api/types/DeploymentDeployments.ts +0 -98
- package/dist/api/types/DeploymentFilterTerm.ts +0 -35
- package/dist/api/types/DeploymentIdentifier.ts +0 -10
- package/dist/api/types/DeploymentPhase.ts +0 -23
- package/dist/api/types/DeploymentPhaseDeployments.ts +0 -23
- package/dist/api/types/DeploymentReporting.ts +0 -46
- package/dist/api/types/DeploymentSearchTerms.ts +0 -37
- package/dist/api/types/DeploymentSortTerm.ts +0 -23
- package/dist/api/types/DeploymentStatistics.ts +0 -15
- package/dist/api/types/DeploymentStatisticsDeployments.ts +0 -15
- package/dist/api/types/DeploymentStatusStatistics.ts +0 -54
- package/dist/api/types/DeploymentStatusStatisticsDeployments.ts +0 -54
- package/dist/api/types/Device.ts +0 -20
- package/dist/api/types/DeviceAggregation.ts +0 -16
- package/dist/api/types/DeviceAggregationItem.ts +0 -16
- package/dist/api/types/DeviceAggregationTerm.ts +0 -26
- package/dist/api/types/DeviceAggregationTerms.ts +0 -20
- package/dist/api/types/DeviceAttribute.ts +0 -22
- package/dist/api/types/DeviceAttributeProjection.ts +0 -14
- package/dist/api/types/DeviceAuditlogs.ts +0 -17
- package/dist/api/types/DeviceAuthEvent.ts +0 -23
- package/dist/api/types/DeviceConfiguration.ts +0 -16
- package/dist/api/types/DeviceDeployment.ts +0 -11
- package/dist/api/types/DeviceDeployments.ts +0 -29
- package/dist/api/types/DeviceDeviceauth.ts +0 -42
- package/dist/api/types/DeviceFilterAttribute.ts +0 -21
- package/dist/api/types/DeviceFilterTerm.ts +0 -39
- package/dist/api/types/DeviceInventory.ts +0 -19
- package/dist/api/types/DeviceInventoryInventory.ts +0 -19
- package/dist/api/types/DeviceReporting.ts +0 -22
- package/dist/api/types/DeviceSearchTerms.ts +0 -37
- package/dist/api/types/DeviceSortTerm.ts +0 -27
- package/dist/api/types/DeviceState.ts +0 -32
- package/dist/api/types/DeviceStateDeviceconnect.ts +0 -33
- package/dist/api/types/DeviceStateIot_manager.ts +0 -14
- package/dist/api/types/DeviceStatus.ts +0 -19
- package/dist/api/types/DeviceWithImage.ts +0 -80
- package/dist/api/types/DirectUploadMetadata.ts +0 -18
- package/dist/api/types/EmailVerificationCompletion.ts +0 -13
- package/dist/api/types/EmailVerificationRequest.ts +0 -13
- package/dist/api/types/Error.ts +0 -17
- package/dist/api/types/ErrorAuditlogs.ts +0 -13
- package/dist/api/types/ErrorDeployments.ts +0 -17
- package/dist/api/types/ErrorDeviceauth.ts +0 -13
- package/dist/api/types/ErrorDeviceconfig.ts +0 -17
- package/dist/api/types/ErrorDeviceconnect.ts +0 -17
- package/dist/api/types/ErrorDevicemonitor.ts +0 -17
- package/dist/api/types/ErrorExt.ts +0 -18
- package/dist/api/types/ErrorInventory.ts +0 -17
- package/dist/api/types/ErrorIot_manager.ts +0 -17
- package/dist/api/types/ErrorNotFound.ts +0 -17
- package/dist/api/types/ErrorReporting.ts +0 -18
- package/dist/api/types/ErrorTenantadm.ts +0 -13
- package/dist/api/types/ErrorUseradm.ts +0 -17
- package/dist/api/types/Event.ts +0 -48
- package/dist/api/types/ExternalIdentity.ts +0 -17
- package/dist/api/types/Features.ts +0 -17
- package/dist/api/types/FileUpload.ts +0 -23
- package/dist/api/types/Filter.ts +0 -19
- package/dist/api/types/FilterAttribute.ts +0 -21
- package/dist/api/types/FilterDefinition.ts +0 -18
- package/dist/api/types/FilterDeployments.ts +0 -19
- package/dist/api/types/FilterInventory.ts +0 -19
- package/dist/api/types/FilterPredicate.ts +0 -48
- package/dist/api/types/FilterPredicateDeployments.ts +0 -48
- package/dist/api/types/FilterPredicateInventory.ts +0 -78
- package/dist/api/types/GeoBoundingBox.ts +0 -8
- package/dist/api/types/GeoBoundingBoxFilter.ts +0 -5
- package/dist/api/types/GeoDistance.ts +0 -15
- package/dist/api/types/GeoDistanceFilter.ts +0 -8
- package/dist/api/types/GeoPoint.ts +0 -14
- package/dist/api/types/Group.ts +0 -10
- package/dist/api/types/HTTP.ts +0 -19
- package/dist/api/types/IdentityData.ts +0 -25
- package/dist/api/types/InputParameter.ts +0 -8
- package/dist/api/types/Integration.ts +0 -30
- package/dist/api/types/JobStatus.ts +0 -13
- package/dist/api/types/Limit.ts +0 -21
- package/dist/api/types/LimitDeployments.ts +0 -21
- package/dist/api/types/LimitDeviceauth.ts +0 -10
- package/dist/api/types/LimitUseradm.ts +0 -11
- package/dist/api/types/Limits.ts +0 -11
- package/dist/api/types/LineDescriptor.ts +0 -11
- package/dist/api/types/LogSubsystem.ts +0 -23
- package/dist/api/types/LoginOptions.ts +0 -18
- package/dist/api/types/ManagementAPIConfiguration.ts +0 -5
- package/dist/api/types/MenderTypes.ts +0 -213
- package/dist/api/types/MonitorConfiguration.ts +0 -22
- package/dist/api/types/NewConfigurationDeployment.ts +0 -15
- package/dist/api/types/NewConfigurationDeploymentResponse.ts +0 -10
- package/dist/api/types/NewDeployment.ts +0 -42
- package/dist/api/types/NewDeploymentForGroup.ts +0 -33
- package/dist/api/types/NewDeploymentPhase.ts +0 -37
- package/dist/api/types/NewDeploymentPhaseDeployments.ts +0 -20
- package/dist/api/types/NewDeploymentV2.ts +0 -34
- package/dist/api/types/NewTenant.ts +0 -49
- package/dist/api/types/Object.ts +0 -38
- package/dist/api/types/OwnUserUpdate.ts +0 -21
- package/dist/api/types/PasswordResetCompletion.ts +0 -17
- package/dist/api/types/PasswordResetRequest.ts +0 -13
- package/dist/api/types/Permission.ts +0 -21
- package/dist/api/types/PermissionObject.ts +0 -14
- package/dist/api/types/PermissionSet.ts +0 -22
- package/dist/api/types/PermissionSetWithScope.ts +0 -15
- package/dist/api/types/PersonalAccessToken.ts +0 -29
- package/dist/api/types/PersonalAccessTokenRequest.ts +0 -18
- package/dist/api/types/Plan.ts +0 -19
- package/dist/api/types/PlanBindingDetails.ts +0 -13
- package/dist/api/types/PlanChangeRequest.ts +0 -14
- package/dist/api/types/PlanLimits.ts +0 -12
- package/dist/api/types/PreAuthSet.ts +0 -16
- package/dist/api/types/Release.ts +0 -32
- package/dist/api/types/ReleaseDeployments.ts +0 -32
- package/dist/api/types/ReleaseUpdate.ts +0 -13
- package/dist/api/types/Releases.ts +0 -9
- package/dist/api/types/ReleasesDeleteError.ts +0 -21
- package/dist/api/types/ReleasesDeployments.ts +0 -9
- package/dist/api/types/Role.ts +0 -19
- package/dist/api/types/RolePermission.ts +0 -25
- package/dist/api/types/RolePermissionObject.ts +0 -17
- package/dist/api/types/RoleUseradm.ts +0 -19
- package/dist/api/types/SAMLMetadata.ts +0 -21
- package/dist/api/types/Scope.ts +0 -19
- package/dist/api/types/SelectAttribute.ts +0 -17
- package/dist/api/types/ServiceSubsystem.ts +0 -19
- package/dist/api/types/Settings.ts +0 -23
- package/dist/api/types/SortCriteria.ts +0 -30
- package/dist/api/types/SsoObject.ts +0 -21
- package/dist/api/types/Status.ts +0 -18
- package/dist/api/types/StatusDeviceauth.ts +0 -18
- package/dist/api/types/StatusTenantadm.ts +0 -17
- package/dist/api/types/StorageLimit.ts +0 -17
- package/dist/api/types/SubscriptionData.ts +0 -8
- package/dist/api/types/SupportRequest.ts +0 -17
- package/dist/api/types/Tag.ts +0 -27
- package/dist/api/types/Tags.ts +0 -10
- package/dist/api/types/TaskResult.ts +0 -13
- package/dist/api/types/TaskResultCLI.ts +0 -10
- package/dist/api/types/TaskResultHTTPRequest.ts +0 -8
- package/dist/api/types/TaskResultHTTPResponse.ts +0 -10
- package/dist/api/types/Tenant.ts +0 -26
- package/dist/api/types/TenantApiLimits.ts +0 -12
- package/dist/api/types/TenantApiLimitsTenantadm.ts +0 -12
- package/dist/api/types/TenantIdName.ts +0 -14
- package/dist/api/types/TenantIdsData.ts +0 -10
- package/dist/api/types/TenantInfo.ts +0 -14
- package/dist/api/types/TenantShortInfo.ts +0 -21
- package/dist/api/types/TenantTenantadm.ts +0 -54
- package/dist/api/types/TenantsIdName.ts +0 -6
- package/dist/api/types/Update.ts +0 -17
- package/dist/api/types/UpdateChildTenant.ts +0 -17
- package/dist/api/types/UpdateDeployments.ts +0 -18
- package/dist/api/types/UpdateFile.ts +0 -13
- package/dist/api/types/UpdateFileDeployments.ts +0 -13
- package/dist/api/types/UpdateTypes.ts +0 -8
- package/dist/api/types/UpgradeCompleteRequest.ts +0 -25
- package/dist/api/types/User.ts +0 -13
- package/dist/api/types/UserAuditlogs.ts +0 -13
- package/dist/api/types/UserNew.ts +0 -26
- package/dist/api/types/UserUpdate.ts +0 -25
- package/dist/api/types/UserUseradm.ts +0 -45
- package/dist/api/types/UserWithTenantInfo.ts +0 -12
- package/dist/api/types/XDeltaArgs.ts +0 -9
- package/dist/api/types/XDeltaArgsDeployments.ts +0 -9
- package/dist/api/types/XDeltaArgsLimits.ts +0 -10
- package/dist/api/types/XDeltaArgsLimitsDeployments.ts +0 -10
- package/dist/chunk-2CYOM4BK.js.map +0 -1
- package/dist/chunk-2JHFUQ6B.js.map +0 -1
- package/dist/chunk-4B3IMP4I.js +0 -245
- package/dist/chunk-4B3IMP4I.js.map +0 -1
- package/dist/chunk-4XJMRVFI.js.map +0 -1
- package/dist/chunk-7JKWI5FK.js.map +0 -1
- package/dist/chunk-7PVGDMNM.js.map +0 -1
- package/dist/chunk-AMGWP7A4.js.map +0 -1
- package/dist/chunk-C5NEDBJI.js +0 -727
- package/dist/chunk-C5NEDBJI.js.map +0 -1
- package/dist/chunk-CYV6632F.js.map +0 -1
- package/dist/chunk-DCK2DBOA.js.map +0 -1
- package/dist/chunk-FGKMJS3B.js.map +0 -1
- package/dist/chunk-HPBE6KYY.js.map +0 -1
- package/dist/chunk-JAROCU6M.js.map +0 -1
- package/dist/chunk-LEMVXAYP.js.map +0 -1
- package/dist/chunk-LGNOTPUG.js +0 -106
- package/dist/chunk-LGNOTPUG.js.map +0 -1
- package/dist/chunk-LIJIIRON.js +0 -28
- package/dist/chunk-LIJIIRON.js.map +0 -1
- package/dist/chunk-LTKOV26W.js.map +0 -1
- package/dist/chunk-MRCFLG45.js.map +0 -1
- package/dist/chunk-QRGTG4YB.js.map +0 -1
- package/dist/chunk-TI2RL5P2.js.map +0 -1
- package/dist/chunk-TUACATJA.js.map +0 -1
- package/dist/chunk-UWMYZNUB.js.map +0 -1
- package/dist/chunk-VMNMD6KF.js.map +0 -1
- package/dist/chunk-WXL7PVI5.js.map +0 -1
- package/dist/chunk-X7IEZBM4.js.map +0 -1
- package/dist/chunk-YDS36ALB.js.map +0 -1
- package/dist/chunk-YT73QWCN.js.map +0 -1
- package/dist/deploymentdevicehook.cjs.map +0 -1
- package/dist/deploymentdevicehook.js +0 -62
- package/dist/deploymentdevicehook.js.map +0 -1
- /package/dist/{chunk-DAPAXWA5.js.map → chunk-URNS6A5T.js.map} +0 -0
- /package/dist/{deploymentdevicehook.d.cts → useDeploymentDevice.d.cts} +0 -0
- /package/dist/{deploymentdevicehook.d.ts → useDeploymentDevice.d.ts} +0 -0
|
@@ -33,6 +33,7 @@ __export(selectors_exports, {
|
|
|
33
33
|
getDevicesById: () => getDevicesById,
|
|
34
34
|
getDevicesByStatus: () => getDevicesByStatus,
|
|
35
35
|
getFilteringAttributes: () => getFilteringAttributes,
|
|
36
|
+
getGroupData: () => getGroupData,
|
|
36
37
|
getGroups: () => getGroups,
|
|
37
38
|
getGroupsById: () => getGroupsById,
|
|
38
39
|
getGroupsByIdWithoutUngrouped: () => getGroupsByIdWithoutUngrouped,
|
|
@@ -43,138 +44,15 @@ __export(selectors_exports, {
|
|
|
43
44
|
getSortedFilteringAttributes: () => getSortedFilteringAttributes
|
|
44
45
|
});
|
|
45
46
|
module.exports = __toCommonJS(selectors_exports);
|
|
47
|
+
var import_helpers = require("@northern.tech/utils/helpers");
|
|
48
|
+
var import_toolkit = require("@reduxjs/toolkit");
|
|
46
49
|
|
|
47
|
-
// src/
|
|
48
|
-
var
|
|
49
|
-
var startingDeviceCount = {
|
|
50
|
-
os: "for first 50 devices",
|
|
51
|
-
professional: "for first 250 devices"
|
|
52
|
-
};
|
|
53
|
-
var apiRoot = "/api/management";
|
|
54
|
-
var apiUrl = {
|
|
55
|
-
v1: `${apiRoot}/v1`,
|
|
56
|
-
v2: `${apiRoot}/v2`
|
|
57
|
-
};
|
|
58
|
-
var chartTypes = {
|
|
59
|
-
bar: { key: "bar", Icon: import_icons_material.BarChart },
|
|
60
|
-
pie: { key: "pie", Icon: import_icons_material.PieChartOutline }
|
|
61
|
-
};
|
|
62
|
-
var emptyChartSelection = { software: "", group: "", chartType: chartTypes.bar.key, attribute: "artifact_name" };
|
|
63
|
-
var defaultReportType = "distribution";
|
|
64
|
-
var defaultReports = [{ ...emptyChartSelection, group: null, attribute: "artifact_name", type: defaultReportType }];
|
|
65
|
-
var PLANS = {
|
|
66
|
-
os: {
|
|
67
|
-
id: "os",
|
|
68
|
-
name: "Basic",
|
|
69
|
-
offer: true,
|
|
70
|
-
price: "$32 / month",
|
|
71
|
-
deviceCount: startingDeviceCount.os,
|
|
72
|
-
offerprice: "$23 / month for first 50 devices",
|
|
73
|
-
price2: "for first 6 months;\n$29/month thereafter",
|
|
74
|
-
features: ["Access to core features of Mender", "Basic support"]
|
|
75
|
-
},
|
|
76
|
-
professional: {
|
|
77
|
-
id: "professional",
|
|
78
|
-
name: "Professional",
|
|
79
|
-
offer: true,
|
|
80
|
-
price: "$269 / month",
|
|
81
|
-
deviceCount: startingDeviceCount.professional,
|
|
82
|
-
offerprice: "$200 / month for first 50 devices",
|
|
83
|
-
price2: "for first 6 months;\n$249/month thereafter",
|
|
84
|
-
features: ["Advanced OTA features", "Higher priority support"]
|
|
85
|
-
},
|
|
86
|
-
enterprise: {
|
|
87
|
-
id: "enterprise",
|
|
88
|
-
name: "Enterprise",
|
|
89
|
-
price: "Custom pricing",
|
|
90
|
-
deviceCount: "Unlimited devices",
|
|
91
|
-
features: ["All Mender features", "Advanced security features", "SLA-backed support"]
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
var ADDONS = {
|
|
95
|
-
configure: {
|
|
96
|
-
id: "configure",
|
|
97
|
-
title: "Configure",
|
|
98
|
-
description: "Expand your plan with device configuration features",
|
|
99
|
-
needs: ["hasDeviceConfig"],
|
|
100
|
-
os: {
|
|
101
|
-
price: "$11/month",
|
|
102
|
-
deviceCount: startingDeviceCount.os
|
|
103
|
-
},
|
|
104
|
-
professional: {
|
|
105
|
-
price: "$65/month",
|
|
106
|
-
deviceCount: startingDeviceCount.professional
|
|
107
|
-
},
|
|
108
|
-
eligible: ["os", "professional", "enterprise"]
|
|
109
|
-
},
|
|
110
|
-
troubleshoot: {
|
|
111
|
-
id: "troubleshoot",
|
|
112
|
-
title: "Troubleshoot",
|
|
113
|
-
description: "Expand your plan with device troubleshooting features",
|
|
114
|
-
needs: ["hasDeviceConnect"],
|
|
115
|
-
os: {
|
|
116
|
-
price: "$27/month",
|
|
117
|
-
deviceCount: startingDeviceCount.os
|
|
118
|
-
},
|
|
119
|
-
professional: {
|
|
120
|
-
price: "$72/month",
|
|
121
|
-
deviceCount: startingDeviceCount.professional
|
|
122
|
-
},
|
|
123
|
-
eligible: ["os", "professional", "enterprise"]
|
|
124
|
-
},
|
|
125
|
-
monitor: {
|
|
126
|
-
id: "monitor",
|
|
127
|
-
title: "Monitor",
|
|
128
|
-
description: "Expand your plan with device monitoring features",
|
|
129
|
-
needs: ["hasMonitor"],
|
|
130
|
-
os: {
|
|
131
|
-
price: "-",
|
|
132
|
-
deviceCount: "-"
|
|
133
|
-
},
|
|
134
|
-
professional: {
|
|
135
|
-
price: "$86/month",
|
|
136
|
-
deviceCount: startingDeviceCount.professional
|
|
137
|
-
},
|
|
138
|
-
eligible: ["professional", "enterprise"]
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
var BENEFITS = {
|
|
142
|
-
auditlog: { id: "auditlog", benefit: "trace change across your devices and access troubleshooting session replay", requiredPlan: PLANS.professional.id },
|
|
143
|
-
dashboard: { id: "dashboard", benefit: "actionable insights into the devices you are updating with Mender", requiredPlan: PLANS.enterprise.id },
|
|
144
|
-
deltaGeneration: {
|
|
145
|
-
id: "deltaGeneration",
|
|
146
|
-
benefit: "automatic delta artifacts generation to minimize data transfer and improve the update delivery",
|
|
147
|
-
requiredPlan: PLANS.enterprise.id
|
|
148
|
-
},
|
|
149
|
-
deviceConfiguration: { id: "deviceConfiguration", benefit: "device configuration features", requiredAddon: ADDONS.configure.id },
|
|
150
|
-
deviceMonitor: { id: "deviceMonitor", benefit: "device monitoring features", requiredAddon: ADDONS.monitor.id, requiredPlan: PLANS.professional.id },
|
|
151
|
-
deviceTroubleshoot: { id: "deviceTroubleshoot", benefit: "device troubleshooting features", requiredAddon: ADDONS.troubleshoot.id },
|
|
152
|
-
dynamicGroups: { id: "dynamicGroups", benefit: "create dynamic groups to ease device management", requiredPlan: PLANS.enterprise.id },
|
|
153
|
-
fullFiltering: { id: "fullFiltering", benefit: "filtering by multiple attributes to improve the device overview", requiredPlan: PLANS.professional.id },
|
|
154
|
-
gateway: { id: "gateway", benefit: "see devices connected to your gateway device for easy access", requiredPlans: PLANS.professional.id },
|
|
155
|
-
pausedDeployments: {
|
|
156
|
-
id: "pausedDeployments",
|
|
157
|
-
benefit: "granular control about update rollout to allow synchronization across your fleet",
|
|
158
|
-
requiredPlan: PLANS.enterprise.id
|
|
159
|
-
},
|
|
160
|
-
phasedDeployments: { id: "phasedDeployments", benefit: "choose to roll out deployments in multiple phases", requiredPlan: PLANS.enterprise.id },
|
|
161
|
-
rbac: { id: "rbac", benefit: "granular role based access control", requiredPlan: PLANS.enterprise.id },
|
|
162
|
-
retryDeployments: { id: "retryDeployments", benefit: "optional retries for failed rollout attempts", requiredPlan: PLANS.professional.id },
|
|
163
|
-
scheduledDeployments: {
|
|
164
|
-
id: "scheduledDeployments",
|
|
165
|
-
benefit: "scheduled deployments to steer the distribution of your updates.",
|
|
166
|
-
requiredPlan: PLANS.professional.id
|
|
167
|
-
},
|
|
168
|
-
webhookEvents: {
|
|
169
|
-
id: "webhookEvents",
|
|
170
|
-
benefit: "receive inventory events and select which type(s) of events the webhook will receive",
|
|
171
|
-
requiredPlan: PLANS.professional.id
|
|
172
|
-
},
|
|
173
|
-
default: { id: "default", benefit: "gain access to this feature", requiredPlan: PLANS.enterprise.id }
|
|
174
|
-
};
|
|
50
|
+
// src/constants.ts
|
|
51
|
+
var import_constants2 = require("@northern.tech/utils/constants");
|
|
175
52
|
|
|
176
53
|
// src/commonConstants.tsx
|
|
177
54
|
var import_js = require("@mdi/js");
|
|
55
|
+
var import_MenderTypes = require("@northern.tech/types/MenderTypes");
|
|
178
56
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
179
57
|
var timeUnits = {
|
|
180
58
|
days: "days",
|
|
@@ -182,126 +60,6 @@ var timeUnits = {
|
|
|
182
60
|
hours: "hours"
|
|
183
61
|
};
|
|
184
62
|
var UNGROUPED_GROUP = { id: "*|=ungrouped=|*", name: "Unassigned" };
|
|
185
|
-
var DEVICE_FILTERING_OPTIONS = {
|
|
186
|
-
$eq: { key: "$eq", title: "equals", shortform: "=" },
|
|
187
|
-
$ne: { key: "$ne", title: "not equal", shortform: "!=" },
|
|
188
|
-
$gt: {
|
|
189
|
-
key: "$gt",
|
|
190
|
-
title: ">",
|
|
191
|
-
shortform: ">",
|
|
192
|
-
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.'
|
|
193
|
-
},
|
|
194
|
-
$gte: {
|
|
195
|
-
title: ">=",
|
|
196
|
-
shortform: ">=",
|
|
197
|
-
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.'
|
|
198
|
-
},
|
|
199
|
-
$lt: {
|
|
200
|
-
key: "$lt",
|
|
201
|
-
title: "<",
|
|
202
|
-
shortform: "<",
|
|
203
|
-
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.'
|
|
204
|
-
},
|
|
205
|
-
$lte: {
|
|
206
|
-
title: "<=",
|
|
207
|
-
shortform: "<=",
|
|
208
|
-
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.'
|
|
209
|
-
},
|
|
210
|
-
$ltne: {
|
|
211
|
-
key: "$ltne",
|
|
212
|
-
title: "$ltne",
|
|
213
|
-
shortform: "ltne",
|
|
214
|
-
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.'
|
|
215
|
-
},
|
|
216
|
-
$in: {
|
|
217
|
-
key: "$in",
|
|
218
|
-
title: "in",
|
|
219
|
-
shortform: "in",
|
|
220
|
-
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.'
|
|
221
|
-
},
|
|
222
|
-
$nin: {
|
|
223
|
-
key: "$nin",
|
|
224
|
-
title: "not in",
|
|
225
|
-
shortform: "not in",
|
|
226
|
-
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.`
|
|
227
|
-
},
|
|
228
|
-
$exists: {
|
|
229
|
-
key: "$exists",
|
|
230
|
-
title: "exists",
|
|
231
|
-
shortform: "exists",
|
|
232
|
-
value: true,
|
|
233
|
-
help: `The "exists" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`
|
|
234
|
-
},
|
|
235
|
-
$nexists: {
|
|
236
|
-
key: "$nexists",
|
|
237
|
-
title: `doesn't exist`,
|
|
238
|
-
shortform: `doesn't exist`,
|
|
239
|
-
value: true,
|
|
240
|
-
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.`
|
|
241
|
-
},
|
|
242
|
-
$regex: {
|
|
243
|
-
key: "$regex",
|
|
244
|
-
title: `matches regular expression`,
|
|
245
|
-
shortform: `matches`,
|
|
246
|
-
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.`
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
var DEVICE_ISSUE_OPTIONS = {
|
|
250
|
-
issues: {
|
|
251
|
-
isCategory: true,
|
|
252
|
-
key: "issues",
|
|
253
|
-
title: "Devices with issues",
|
|
254
|
-
filterRule: {}
|
|
255
|
-
},
|
|
256
|
-
offline: {
|
|
257
|
-
issueCategory: "issues",
|
|
258
|
-
key: "offline",
|
|
259
|
-
needsFullFiltering: true,
|
|
260
|
-
needsMonitor: false,
|
|
261
|
-
needsReporting: false,
|
|
262
|
-
filterRule: {
|
|
263
|
-
scope: "system",
|
|
264
|
-
key: "check_in_time",
|
|
265
|
-
operator: DEVICE_FILTERING_OPTIONS.$ltne.key,
|
|
266
|
-
value: ({ offlineThreshold }) => offlineThreshold
|
|
267
|
-
},
|
|
268
|
-
title: "Offline devices"
|
|
269
|
-
},
|
|
270
|
-
failedLastUpdate: {
|
|
271
|
-
issueCategory: "issues",
|
|
272
|
-
key: "failedLastUpdate",
|
|
273
|
-
needsFullFiltering: false,
|
|
274
|
-
needsMonitor: false,
|
|
275
|
-
needsReporting: true,
|
|
276
|
-
filterRule: { scope: "monitor", key: "failed_last_update", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
277
|
-
title: "Deployment failed"
|
|
278
|
-
},
|
|
279
|
-
monitoring: {
|
|
280
|
-
issueCategory: "issues",
|
|
281
|
-
key: "monitoring",
|
|
282
|
-
needsFullFiltering: false,
|
|
283
|
-
needsMonitor: true,
|
|
284
|
-
needsReporting: false,
|
|
285
|
-
filterRule: { scope: "monitor", key: "alerts", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
286
|
-
title: "Monitoring alert"
|
|
287
|
-
},
|
|
288
|
-
authRequests: {
|
|
289
|
-
key: "authRequests",
|
|
290
|
-
needsFullFiltering: false,
|
|
291
|
-
needsMonitor: false,
|
|
292
|
-
needsReporting: true,
|
|
293
|
-
filterRule: { scope: "monitor", key: "auth_requests", operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },
|
|
294
|
-
title: "Devices with new authentication requests"
|
|
295
|
-
},
|
|
296
|
-
gatewayDevices: {
|
|
297
|
-
key: "gatewayDevices",
|
|
298
|
-
needsFullFiltering: false,
|
|
299
|
-
needsMonitor: false,
|
|
300
|
-
needsReporting: true,
|
|
301
|
-
filterRule: { scope: "inventory", key: "mender_is_gateway", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: "true" },
|
|
302
|
-
title: "Gateway devices"
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
63
|
var oneSecond = 1e3;
|
|
306
64
|
var TIMEOUTS = {
|
|
307
65
|
debounceDefault: 700,
|
|
@@ -315,18 +73,11 @@ var TIMEOUTS = {
|
|
|
315
73
|
refreshLong: 60 * oneSecond
|
|
316
74
|
};
|
|
317
75
|
var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
|
|
318
|
-
var
|
|
319
|
-
inventory: "inventory",
|
|
320
|
-
identity: "identity",
|
|
321
|
-
monitor: "monitor",
|
|
322
|
-
system: "system",
|
|
323
|
-
tags: "tags"
|
|
324
|
-
};
|
|
325
|
-
var defaultIdAttribute = Object.freeze({ attribute: "id", scope: ATTRIBUTE_SCOPES.identity });
|
|
76
|
+
var defaultIdAttribute = Object.freeze({ attribute: "id", scope: import_constants2.ATTRIBUTE_SCOPES.identity });
|
|
326
77
|
var credentialTypes = {
|
|
327
|
-
aws:
|
|
328
|
-
http:
|
|
329
|
-
sas:
|
|
78
|
+
aws: import_MenderTypes.Credentials.type.AWS,
|
|
79
|
+
http: import_MenderTypes.Credentials.type.HTTP,
|
|
80
|
+
sas: import_MenderTypes.Credentials.type.SAS,
|
|
330
81
|
x509: "x509"
|
|
331
82
|
};
|
|
332
83
|
var EXTERNAL_PROVIDER = {
|
|
@@ -366,46 +117,276 @@ var EXTERNAL_PROVIDER = {
|
|
|
366
117
|
webhook: {
|
|
367
118
|
credentialsType: credentialTypes.http,
|
|
368
119
|
deviceTwin: false,
|
|
120
|
+
twinTitle: "",
|
|
369
121
|
// disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.
|
|
370
122
|
enabled: false,
|
|
371
123
|
provider: "webhook"
|
|
372
124
|
}
|
|
373
125
|
};
|
|
374
|
-
var
|
|
375
|
-
auditlog: [],
|
|
376
|
-
deployments: [],
|
|
377
|
-
groups: Object.freeze({}),
|
|
378
|
-
releases: Object.freeze({}),
|
|
379
|
-
tenantManagement: [],
|
|
380
|
-
userManagement: []
|
|
381
|
-
});
|
|
382
|
-
var emptyRole = Object.freeze({
|
|
383
|
-
name: void 0,
|
|
126
|
+
var emptyWebhook = {
|
|
384
127
|
description: "",
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
var inventoryApiUrl = `${apiUrl.v1}/inventory`;
|
|
394
|
-
var inventoryApiUrlV2 = `${apiUrl.v2}/inventory`;
|
|
395
|
-
var deviceConfig = `${apiUrl.v1}/deviceconfig/configurations/device`;
|
|
396
|
-
var reportingApiUrl = `${apiUrl.v1}/reporting`;
|
|
397
|
-
var iotManagerBaseURL = `${apiUrl.v1}/iot-manager`;
|
|
398
|
-
var DEVICE_STATES = {
|
|
399
|
-
accepted: "accepted",
|
|
400
|
-
pending: "pending",
|
|
401
|
-
preauth: "preauthorized",
|
|
402
|
-
rejected: "rejected"
|
|
128
|
+
provider: import_MenderTypes.Integration.provider.WEBHOOK,
|
|
129
|
+
credentials: {
|
|
130
|
+
type: EXTERNAL_PROVIDER.webhook.credentialsType,
|
|
131
|
+
[EXTERNAL_PROVIDER.webhook.credentialsType]: {
|
|
132
|
+
secret: "",
|
|
133
|
+
url: ""
|
|
134
|
+
}
|
|
135
|
+
}
|
|
403
136
|
};
|
|
404
|
-
var
|
|
137
|
+
var regionNames = new Intl.DisplayNames(["en"], { type: "region" });
|
|
138
|
+
var countries = [
|
|
139
|
+
"AD",
|
|
140
|
+
"AE",
|
|
141
|
+
"AF",
|
|
142
|
+
"AG",
|
|
143
|
+
"AI",
|
|
144
|
+
"AL",
|
|
145
|
+
"AM",
|
|
146
|
+
"AO",
|
|
147
|
+
"AQ",
|
|
148
|
+
"AR",
|
|
149
|
+
"AS",
|
|
150
|
+
"AT",
|
|
151
|
+
"AU",
|
|
152
|
+
"AW",
|
|
153
|
+
"AX",
|
|
154
|
+
"AZ",
|
|
155
|
+
"BA",
|
|
156
|
+
"BB",
|
|
157
|
+
"BD",
|
|
158
|
+
"BE",
|
|
159
|
+
"BF",
|
|
160
|
+
"BG",
|
|
161
|
+
"BH",
|
|
162
|
+
"BI",
|
|
163
|
+
"BJ",
|
|
164
|
+
"BL",
|
|
165
|
+
"BM",
|
|
166
|
+
"BN",
|
|
167
|
+
"BO",
|
|
168
|
+
"BR",
|
|
169
|
+
"BS",
|
|
170
|
+
"BT",
|
|
171
|
+
"BV",
|
|
172
|
+
"BW",
|
|
173
|
+
"BY",
|
|
174
|
+
"BZ",
|
|
175
|
+
"CA",
|
|
176
|
+
"CC",
|
|
177
|
+
"CD",
|
|
178
|
+
"CF",
|
|
179
|
+
"CG",
|
|
180
|
+
"CH",
|
|
181
|
+
"CI",
|
|
182
|
+
"CK",
|
|
183
|
+
"CL",
|
|
184
|
+
"CM",
|
|
185
|
+
"CN",
|
|
186
|
+
"CO",
|
|
187
|
+
"CR",
|
|
188
|
+
"CU",
|
|
189
|
+
"CV",
|
|
190
|
+
"CW",
|
|
191
|
+
"CX",
|
|
192
|
+
"CY",
|
|
193
|
+
"CZ",
|
|
194
|
+
"DE",
|
|
195
|
+
"DJ",
|
|
196
|
+
"DK",
|
|
197
|
+
"DM",
|
|
198
|
+
"DO",
|
|
199
|
+
"DZ",
|
|
200
|
+
"EC",
|
|
201
|
+
"EE",
|
|
202
|
+
"EG",
|
|
203
|
+
"EH",
|
|
204
|
+
"ER",
|
|
205
|
+
"ES",
|
|
206
|
+
"ET",
|
|
207
|
+
"FI",
|
|
208
|
+
"FJ",
|
|
209
|
+
"FK",
|
|
210
|
+
"FM",
|
|
211
|
+
"FO",
|
|
212
|
+
"FR",
|
|
213
|
+
"GA",
|
|
214
|
+
"GB",
|
|
215
|
+
"GD",
|
|
216
|
+
"GE",
|
|
217
|
+
"GF",
|
|
218
|
+
"GG",
|
|
219
|
+
"GH",
|
|
220
|
+
"GI",
|
|
221
|
+
"GL",
|
|
222
|
+
"GM",
|
|
223
|
+
"GN",
|
|
224
|
+
"GP",
|
|
225
|
+
"GQ",
|
|
226
|
+
"GR",
|
|
227
|
+
"GS",
|
|
228
|
+
"GT",
|
|
229
|
+
"GU",
|
|
230
|
+
"GW",
|
|
231
|
+
"GY",
|
|
232
|
+
"HK",
|
|
233
|
+
"HM",
|
|
234
|
+
"HN",
|
|
235
|
+
"HR",
|
|
236
|
+
"HT",
|
|
237
|
+
"HU",
|
|
238
|
+
"ID",
|
|
239
|
+
"IE",
|
|
240
|
+
"IL",
|
|
241
|
+
"IM",
|
|
242
|
+
"IN",
|
|
243
|
+
"IO",
|
|
244
|
+
"IQ",
|
|
245
|
+
"IR",
|
|
246
|
+
"IS",
|
|
247
|
+
"IT",
|
|
248
|
+
"JE",
|
|
249
|
+
"JM",
|
|
250
|
+
"JO",
|
|
251
|
+
"JP",
|
|
252
|
+
"KE",
|
|
253
|
+
"KG",
|
|
254
|
+
"KH",
|
|
255
|
+
"KI",
|
|
256
|
+
"KM",
|
|
257
|
+
"KN",
|
|
258
|
+
"KP",
|
|
259
|
+
"KR",
|
|
260
|
+
"KW",
|
|
261
|
+
"KY",
|
|
262
|
+
"KZ",
|
|
263
|
+
"LA",
|
|
264
|
+
"LB",
|
|
265
|
+
"LC",
|
|
266
|
+
"LI",
|
|
267
|
+
"LK",
|
|
268
|
+
"LR",
|
|
269
|
+
"LS",
|
|
270
|
+
"LT",
|
|
271
|
+
"LU",
|
|
272
|
+
"LV",
|
|
273
|
+
"LY",
|
|
274
|
+
"MA",
|
|
275
|
+
"MC",
|
|
276
|
+
"MD",
|
|
277
|
+
"ME",
|
|
278
|
+
"MF",
|
|
279
|
+
"MG",
|
|
280
|
+
"MH",
|
|
281
|
+
"MK",
|
|
282
|
+
"ML",
|
|
283
|
+
"MM",
|
|
284
|
+
"MN",
|
|
285
|
+
"MO",
|
|
286
|
+
"MP",
|
|
287
|
+
"MQ",
|
|
288
|
+
"MR",
|
|
289
|
+
"MS",
|
|
290
|
+
"MT",
|
|
291
|
+
"MU",
|
|
292
|
+
"MV",
|
|
293
|
+
"MW",
|
|
294
|
+
"MX",
|
|
295
|
+
"MY",
|
|
296
|
+
"MZ",
|
|
297
|
+
"NA",
|
|
298
|
+
"NC",
|
|
299
|
+
"NE",
|
|
300
|
+
"NF",
|
|
301
|
+
"NG",
|
|
302
|
+
"NI",
|
|
303
|
+
"NL",
|
|
304
|
+
"NO",
|
|
305
|
+
"NP",
|
|
306
|
+
"NR",
|
|
307
|
+
"NU",
|
|
308
|
+
"NZ",
|
|
309
|
+
"OM",
|
|
310
|
+
"PA",
|
|
311
|
+
"PE",
|
|
312
|
+
"PF",
|
|
313
|
+
"PG",
|
|
314
|
+
"PH",
|
|
315
|
+
"PK",
|
|
316
|
+
"PL",
|
|
317
|
+
"PM",
|
|
318
|
+
"PN",
|
|
319
|
+
"PR",
|
|
320
|
+
"PS",
|
|
321
|
+
"PT",
|
|
322
|
+
"PW",
|
|
323
|
+
"PY",
|
|
324
|
+
"QA",
|
|
325
|
+
"RE",
|
|
326
|
+
"RO",
|
|
327
|
+
"RS",
|
|
328
|
+
"RU",
|
|
329
|
+
"RW",
|
|
330
|
+
"SA",
|
|
331
|
+
"SB",
|
|
332
|
+
"SC",
|
|
333
|
+
"SD",
|
|
334
|
+
"SE",
|
|
335
|
+
"SG",
|
|
336
|
+
"SH",
|
|
337
|
+
"SI",
|
|
338
|
+
"SJ",
|
|
339
|
+
"SK",
|
|
340
|
+
"SL",
|
|
341
|
+
"SM",
|
|
342
|
+
"SN",
|
|
343
|
+
"SO",
|
|
344
|
+
"SR",
|
|
345
|
+
"SS",
|
|
346
|
+
"ST",
|
|
347
|
+
"SV",
|
|
348
|
+
"SX",
|
|
349
|
+
"SY",
|
|
350
|
+
"SZ",
|
|
351
|
+
"TC",
|
|
352
|
+
"TD",
|
|
353
|
+
"TF",
|
|
354
|
+
"TG",
|
|
355
|
+
"TH",
|
|
356
|
+
"TJ",
|
|
357
|
+
"TK",
|
|
358
|
+
"TL",
|
|
359
|
+
"TM",
|
|
360
|
+
"TN",
|
|
361
|
+
"TO",
|
|
362
|
+
"TR",
|
|
363
|
+
"TT",
|
|
364
|
+
"TV",
|
|
365
|
+
"TW",
|
|
366
|
+
"TZ",
|
|
367
|
+
"UA",
|
|
368
|
+
"UG",
|
|
369
|
+
"US",
|
|
370
|
+
"UY",
|
|
371
|
+
"UZ",
|
|
372
|
+
"VA",
|
|
373
|
+
"VC",
|
|
374
|
+
"VE",
|
|
375
|
+
"VG",
|
|
376
|
+
"VI",
|
|
377
|
+
"VN",
|
|
378
|
+
"VU",
|
|
379
|
+
"WF",
|
|
380
|
+
"WS",
|
|
381
|
+
"XK",
|
|
382
|
+
"YE",
|
|
383
|
+
"YT",
|
|
384
|
+
"ZA",
|
|
385
|
+
"ZM",
|
|
386
|
+
"ZW"
|
|
387
|
+
].map((code) => ({ code, label: regionNames.of(code) })).sort((a, b) => a.label.localeCompare(b.label));
|
|
405
388
|
|
|
406
389
|
// src/devicesSlice/selectors.ts
|
|
407
|
-
var import_helpers = require("@northern.tech/utils/helpers");
|
|
408
|
-
var import_toolkit = require("@reduxjs/toolkit");
|
|
409
390
|
var getAcceptedDevices = (state) => state.devices.byStatus.accepted;
|
|
410
391
|
var getDevicesByStatus = (state) => state.devices.byStatus;
|
|
411
392
|
var getDevicesById = (state) => state.devices.byId;
|
|
@@ -441,7 +422,7 @@ var getDeviceIdentityAttributes = (0, import_toolkit.createSelector)(
|
|
|
441
422
|
);
|
|
442
423
|
var getDeviceCountsByStatus = (0, import_toolkit.createSelector)(
|
|
443
424
|
[getDevicesByStatus],
|
|
444
|
-
(byStatus) => Object.values(DEVICE_STATES).reduce((accu, state) => {
|
|
425
|
+
(byStatus) => Object.values(import_constants2.DEVICE_STATES).reduce((accu, state) => {
|
|
445
426
|
accu[state] = byStatus[state].total || 0;
|
|
446
427
|
return accu;
|
|
447
428
|
}, {})
|
|
@@ -453,7 +434,7 @@ var getSelectedGroupInfo = (0, import_toolkit.createSelector)(
|
|
|
453
434
|
let groupCount = acceptedDeviceTotal;
|
|
454
435
|
let groupFilters = [];
|
|
455
436
|
if (selectedGroup && groupsById[selectedGroup]) {
|
|
456
|
-
groupCount = groupsById[selectedGroup].total;
|
|
437
|
+
groupCount = groupsById[selectedGroup].total || 0;
|
|
457
438
|
groupFilters = groupsById[selectedGroup].filters || [];
|
|
458
439
|
}
|
|
459
440
|
return { groupCount, selectedGroup, groupFilters };
|
|
@@ -464,13 +445,18 @@ var getLimitMaxed = (0, import_toolkit.createSelector)(
|
|
|
464
445
|
({ total: acceptedDevices = 0 }, deviceLimit) => Boolean(deviceLimit && deviceLimit <= acceptedDevices)
|
|
465
446
|
);
|
|
466
447
|
var getGroupsByIdWithoutUngrouped = (0, import_toolkit.createSelector)([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);
|
|
448
|
+
var getGroupData = (0, import_toolkit.createSelector)([getGroupsByIdWithoutUngrouped], (groups) => {
|
|
449
|
+
const createdGroup = Object.keys(groups).length ? Object.keys(groups)[0] : void 0;
|
|
450
|
+
const hasDynamicGroups = Object.values(groups).some((group) => !!group.id);
|
|
451
|
+
return { createdGroup, hasDynamicGroups, groups };
|
|
452
|
+
});
|
|
467
453
|
var getGroups = (0, import_toolkit.createSelector)([getGroupsById], (groupsById) => {
|
|
468
454
|
const groupNames = Object.keys(groupsById).sort();
|
|
469
455
|
const groupedGroups = Object.entries(groupsById).sort((a, b) => a[0].localeCompare(b[0])).reduce(
|
|
470
456
|
(accu, [groupname, group]) => {
|
|
471
457
|
const name = groupname === UNGROUPED_GROUP.id ? UNGROUPED_GROUP.name : groupname;
|
|
472
458
|
const groupItem = { ...group, groupId: name, name: groupname };
|
|
473
|
-
if (group.filters
|
|
459
|
+
if ((group.filters ?? []).length > 0) {
|
|
474
460
|
if (groupname !== UNGROUPED_GROUP.id) {
|
|
475
461
|
accu.dynamic.push(groupItem);
|
|
476
462
|
} else {
|
|
@@ -519,6 +505,7 @@ var getDeviceTypes = (0, import_toolkit.createSelector)(
|
|
|
519
505
|
getDevicesById,
|
|
520
506
|
getDevicesByStatus,
|
|
521
507
|
getFilteringAttributes,
|
|
508
|
+
getGroupData,
|
|
522
509
|
getGroups,
|
|
523
510
|
getGroupsById,
|
|
524
511
|
getGroupsByIdWithoutUngrouped,
|