@northern.tech/store 0.3.4 → 0.5.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 +78 -827
- 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 +25 -53
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +100 -112
- package/dist/appSlice/constants.d.ts +100 -112
- package/dist/appSlice/constants.js +1 -11
- package/dist/appSlice/index.cjs +24 -239
- 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 +37 -5
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +711 -23
- package/dist/appSlice/selectors.d.ts +711 -23
- package/dist/appSlice/selectors.js +25 -1
- package/dist/appSlice/thunks.cjs +1554 -1767
- 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 -30
- 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-FQDSV3NK.js → chunk-4E7ZSEFL.js} +18 -12
- package/dist/chunk-4E7ZSEFL.js.map +1 -0
- package/dist/{chunk-AFICTIVU.js → chunk-6KGTHJKC.js} +22 -24
- package/dist/chunk-6KGTHJKC.js.map +1 -0
- package/dist/{chunk-DCEKU6UV.js → chunk-6XVREXI4.js} +8 -5
- package/dist/chunk-6XVREXI4.js.map +1 -0
- package/dist/chunk-7C4SQBEE.js +715 -0
- package/dist/chunk-7C4SQBEE.js.map +1 -0
- package/dist/{chunk-ZZMFXRQK.js → chunk-7PRZYHDP.js} +13 -13
- package/dist/{chunk-X3GZILYD.js → chunk-ABJLRDCO.js} +10 -11
- package/dist/chunk-ABJLRDCO.js.map +1 -0
- package/dist/chunk-BYUPW7RA.js +48 -0
- package/dist/chunk-BYUPW7RA.js.map +1 -0
- package/dist/{chunk-EQLHIPPR.js → chunk-DA6QVCOG.js} +924 -842
- package/dist/chunk-DA6QVCOG.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-Y575RZHR.js → chunk-HFOTAPIJ.js} +27 -50
- package/dist/chunk-HFOTAPIJ.js.map +1 -0
- package/dist/{chunk-ZWOAFHAR.js → chunk-JXQUFKID.js} +2 -2
- package/dist/chunk-JXQUFKID.js.map +1 -0
- package/dist/{chunk-K4MMUDYT.js → chunk-KC7SKI3U.js} +9 -11
- package/dist/chunk-KC7SKI3U.js.map +1 -0
- package/dist/{chunk-L3SY3J5M.js → chunk-KJNNEDRV.js} +11 -7
- package/dist/chunk-KJNNEDRV.js.map +1 -0
- package/dist/{chunk-PAIB5V27.js → chunk-MPYYSFPL.js} +55 -21
- package/dist/chunk-MPYYSFPL.js.map +1 -0
- package/dist/{chunk-FRSA2YB5.js → chunk-MZNANSS2.js} +12 -7
- package/dist/chunk-MZNANSS2.js.map +1 -0
- package/dist/{chunk-FVCYB5OP.js → chunk-NQIP7VFB.js} +30 -38
- package/dist/chunk-NQIP7VFB.js.map +1 -0
- package/dist/{chunk-NOQR3TE7.js → chunk-OOICURFL.js} +2 -2
- package/dist/chunk-OOICURFL.js.map +1 -0
- package/dist/{chunk-AVX7VVOK.js → chunk-PGFVHKP5.js} +5 -7
- package/dist/chunk-PGFVHKP5.js.map +1 -0
- package/dist/{chunk-GWJIY56H.js → chunk-QEKN5R7E.js} +40 -15
- package/dist/chunk-QEKN5R7E.js.map +1 -0
- package/dist/{chunk-NCSKCF2S.js → chunk-QHK7GGV4.js} +3 -3
- package/dist/chunk-QHK7GGV4.js.map +1 -0
- package/dist/{chunk-AUBJUUP3.js → chunk-RS37Y2PQ.js} +3 -3
- package/dist/chunk-RS37Y2PQ.js.map +1 -0
- package/dist/{chunk-7YZCUAXZ.js → chunk-UGSLGUS6.js} +8 -6
- package/dist/chunk-UGSLGUS6.js.map +1 -0
- package/dist/{chunk-RX32WLVJ.js → chunk-VANBSJS5.js} +1 -1
- package/dist/chunk-VANBSJS5.js.map +1 -0
- package/dist/{chunk-DGQKXSRI.js → chunk-VUFRP6P3.js} +5 -6
- package/dist/chunk-VUFRP6P3.js.map +1 -0
- package/dist/{chunk-EYCORLYU.js → chunk-YWHRAPDQ.js} +128 -87
- package/dist/chunk-YWHRAPDQ.js.map +1 -0
- package/dist/{chunk-JO33IORF.js → chunk-YY6SKZDF.js} +19 -4
- package/dist/chunk-YY6SKZDF.js.map +1 -0
- package/dist/chunk-ZIUUV35J.js +110 -0
- package/dist/chunk-ZIUUV35J.js.map +1 -0
- package/dist/{chunk-GAI4VYRZ.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/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 +507 -768
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +4307 -280
- package/dist/commonSelectors.d.ts +4307 -280
- package/dist/commonSelectors.js +13 -13
- package/dist/constants.cjs +357 -665
- 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 +1550 -1763
- 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 -30
- 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 +1702 -1925
- 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 -46
- package/dist/liststatehook.cjs +289 -325
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.d.cts +4 -16
- package/dist/liststatehook.d.ts +4 -16
- package/dist/liststatehook.js +9 -9
- package/dist/liststatehook.js.map +1 -1
- package/dist/locationutils.cjs +286 -322
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +8 -7
- package/dist/locationutils.d.ts +8 -7
- package/dist/locationutils.js +6 -6
- 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 +623 -860
- 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.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 +1773 -1989
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +62 -34
- package/dist/onboardingSlice/thunks.d.ts +62 -34
- package/dist/onboardingSlice/thunks.js +30 -30
- 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 -74
- package/dist/organizationSlice/index.d.ts +45 -74
- 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 -52
- package/dist/organizationSlice/selectors.d.ts +888 -52
- package/dist/organizationSlice/selectors.js +14 -6
- package/dist/organizationSlice/thunks.cjs +2607 -2748
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +318 -127
- package/dist/organizationSlice/thunks.d.ts +318 -127
- package/dist/organizationSlice/thunks.js +44 -30
- package/dist/organizationSlice/types.cjs.map +1 -1
- package/dist/organizationSlice/types.d.cts +95 -3
- package/dist/organizationSlice/types.d.ts +95 -3
- 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 +288 -158
- 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 +787 -982
- 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 -27
- package/dist/selectors.cjs +565 -770
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +37 -9
- package/dist/selectors.d.ts +37 -9
- package/dist/selectors.js +79 -39
- package/dist/sockethook.cjs +271 -281
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js +7 -9
- package/dist/sockethook.js.map +1 -1
- package/dist/store.cjs +119 -834
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +698 -1963
- package/dist/store.d.ts +698 -1963
- package/dist/store.js +18 -16
- package/dist/storehooks.cjs +1793 -1907
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +43 -49
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +2135 -2234
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +24 -6
- package/dist/thunks.d.ts +24 -6
- package/dist/thunks.js +56 -44
- package/dist/{deploymentdevicehook.cjs → useDeploymentDevice.cjs} +1760 -1975
- 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 +11 -769
- package/dist/usersSlice/constants.d.ts +11 -769
- 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 +1661 -1872
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.d.cts +372 -312
- package/dist/usersSlice/thunks.d.ts +372 -312
- package/dist/usersSlice/thunks.js +32 -30
- package/dist/utils.cjs +423 -285
- 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 +20 -11
- package/dist/BillingProfile-ChP2_Sqw.d.cts +0 -45
- package/dist/BillingProfile-ChP2_Sqw.d.ts +0 -45
- 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-4RWZR3BN.js +0 -104
- package/dist/chunk-4RWZR3BN.js.map +0 -1
- package/dist/chunk-7YZCUAXZ.js.map +0 -1
- package/dist/chunk-AFICTIVU.js.map +0 -1
- package/dist/chunk-AUBJUUP3.js.map +0 -1
- package/dist/chunk-AVX7VVOK.js.map +0 -1
- package/dist/chunk-BSN2TOQC.js +0 -245
- package/dist/chunk-BSN2TOQC.js.map +0 -1
- package/dist/chunk-DCEKU6UV.js.map +0 -1
- package/dist/chunk-DGQKXSRI.js.map +0 -1
- package/dist/chunk-EQLHIPPR.js.map +0 -1
- package/dist/chunk-EYCORLYU.js.map +0 -1
- package/dist/chunk-FQDSV3NK.js.map +0 -1
- package/dist/chunk-FRSA2YB5.js.map +0 -1
- package/dist/chunk-FVCYB5OP.js.map +0 -1
- package/dist/chunk-GAI4VYRZ.js.map +0 -1
- package/dist/chunk-GWJIY56H.js.map +0 -1
- package/dist/chunk-JO33IORF.js.map +0 -1
- package/dist/chunk-K4MMUDYT.js.map +0 -1
- package/dist/chunk-L3SY3J5M.js.map +0 -1
- package/dist/chunk-LIJIIRON.js +0 -28
- package/dist/chunk-LIJIIRON.js.map +0 -1
- package/dist/chunk-MRCFLG45.js.map +0 -1
- package/dist/chunk-NCSKCF2S.js.map +0 -1
- package/dist/chunk-NOQR3TE7.js.map +0 -1
- package/dist/chunk-OEP2D6QL.js +0 -727
- package/dist/chunk-OEP2D6QL.js.map +0 -1
- package/dist/chunk-PAIB5V27.js.map +0 -1
- package/dist/chunk-RX32WLVJ.js.map +0 -1
- package/dist/chunk-X3GZILYD.js.map +0 -1
- package/dist/chunk-Y575RZHR.js.map +0 -1
- package/dist/chunk-ZWOAFHAR.js.map +0 -1
- package/dist/deploymentdevicehook.cjs.map +0 -1
- package/dist/deploymentdevicehook.js +0 -63
- package/dist/deploymentdevicehook.js.map +0 -1
- package/dist/flag-eu-5477R2P4.svg +0 -130
- package/dist/flag-us-HNQAF66I.svg +0 -63
- package/dist/types-DBj17FZO.d.cts +0 -135
- package/dist/types-DnfZa6xd.d.ts +0 -135
- /package/dist/{chunk-ZZMFXRQK.js.map → chunk-7PRZYHDP.js.map} +0 -0
- /package/dist/{deploymentdevicehook.d.cts → useDeploymentDevice.d.cts} +0 -0
- /package/dist/{deploymentdevicehook.d.ts → useDeploymentDevice.d.ts} +0 -0
package/dist/locationutils.cjs
CHANGED
|
@@ -42,269 +42,19 @@ __export(locationutils_exports, {
|
|
|
42
42
|
module.exports = __toCommonJS(locationutils_exports);
|
|
43
43
|
var import_helpers = require("@northern.tech/utils/helpers");
|
|
44
44
|
|
|
45
|
-
// src/
|
|
46
|
-
var
|
|
47
|
-
var startingDeviceCount = {
|
|
48
|
-
os: "for first 50 devices",
|
|
49
|
-
professional: "for first 250 devices"
|
|
50
|
-
};
|
|
51
|
-
var apiRoot = "/api/management";
|
|
52
|
-
var apiUrl = {
|
|
53
|
-
v1: `${apiRoot}/v1`,
|
|
54
|
-
v2: `${apiRoot}/v2`
|
|
55
|
-
};
|
|
56
|
-
var chartTypes = {
|
|
57
|
-
bar: { key: "bar", Icon: import_icons_material.BarChart },
|
|
58
|
-
pie: { key: "pie", Icon: import_icons_material.PieChartOutline }
|
|
59
|
-
};
|
|
60
|
-
var emptyChartSelection = { software: "", group: "", chartType: chartTypes.bar.key, attribute: "artifact_name" };
|
|
61
|
-
var defaultReportType = "distribution";
|
|
62
|
-
var defaultReports = [{ ...emptyChartSelection, group: null, attribute: "artifact_name", type: defaultReportType }];
|
|
63
|
-
var PLANS = {
|
|
64
|
-
os: {
|
|
65
|
-
id: "os",
|
|
66
|
-
name: "Basic",
|
|
67
|
-
offer: true,
|
|
68
|
-
price: "$32 / month",
|
|
69
|
-
deviceCount: startingDeviceCount.os,
|
|
70
|
-
offerprice: "$23 / month for first 50 devices",
|
|
71
|
-
price2: "for first 6 months;\n$29/month thereafter",
|
|
72
|
-
features: ["Access to core features of Mender", "Basic support"]
|
|
73
|
-
},
|
|
74
|
-
professional: {
|
|
75
|
-
id: "professional",
|
|
76
|
-
name: "Professional",
|
|
77
|
-
offer: true,
|
|
78
|
-
price: "$269 / month",
|
|
79
|
-
deviceCount: startingDeviceCount.professional,
|
|
80
|
-
offerprice: "$200 / month for first 50 devices",
|
|
81
|
-
price2: "for first 6 months;\n$249/month thereafter",
|
|
82
|
-
features: ["Advanced OTA features", "Higher priority support"]
|
|
83
|
-
},
|
|
84
|
-
enterprise: {
|
|
85
|
-
id: "enterprise",
|
|
86
|
-
name: "Enterprise",
|
|
87
|
-
price: "Custom pricing",
|
|
88
|
-
deviceCount: "Unlimited devices",
|
|
89
|
-
features: ["All Mender features", "Advanced security features", "SLA-backed support"]
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
var ADDONS = {
|
|
93
|
-
configure: {
|
|
94
|
-
id: "configure",
|
|
95
|
-
title: "Configure",
|
|
96
|
-
description: "Expand your plan with device configuration features",
|
|
97
|
-
needs: ["hasDeviceConfig"],
|
|
98
|
-
os: {
|
|
99
|
-
price: "$11/month",
|
|
100
|
-
deviceCount: startingDeviceCount.os
|
|
101
|
-
},
|
|
102
|
-
professional: {
|
|
103
|
-
price: "$65/month",
|
|
104
|
-
deviceCount: startingDeviceCount.professional
|
|
105
|
-
},
|
|
106
|
-
eligible: ["os", "professional", "enterprise"]
|
|
107
|
-
},
|
|
108
|
-
troubleshoot: {
|
|
109
|
-
id: "troubleshoot",
|
|
110
|
-
title: "Troubleshoot",
|
|
111
|
-
description: "Expand your plan with device troubleshooting features",
|
|
112
|
-
needs: ["hasDeviceConnect"],
|
|
113
|
-
os: {
|
|
114
|
-
price: "$27/month",
|
|
115
|
-
deviceCount: startingDeviceCount.os
|
|
116
|
-
},
|
|
117
|
-
professional: {
|
|
118
|
-
price: "$72/month",
|
|
119
|
-
deviceCount: startingDeviceCount.professional
|
|
120
|
-
},
|
|
121
|
-
eligible: ["os", "professional", "enterprise"]
|
|
122
|
-
},
|
|
123
|
-
monitor: {
|
|
124
|
-
id: "monitor",
|
|
125
|
-
title: "Monitor",
|
|
126
|
-
description: "Expand your plan with device monitoring features",
|
|
127
|
-
needs: ["hasMonitor"],
|
|
128
|
-
os: {
|
|
129
|
-
price: "-",
|
|
130
|
-
deviceCount: "-"
|
|
131
|
-
},
|
|
132
|
-
professional: {
|
|
133
|
-
price: "$86/month",
|
|
134
|
-
deviceCount: startingDeviceCount.professional
|
|
135
|
-
},
|
|
136
|
-
eligible: ["professional", "enterprise"]
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
var BENEFITS = {
|
|
140
|
-
auditlog: { id: "auditlog", benefit: "trace change across your devices and access troubleshooting session replay", requiredPlan: PLANS.professional.id },
|
|
141
|
-
dashboard: { id: "dashboard", benefit: "actionable insights into the devices you are updating with Mender", requiredPlan: PLANS.enterprise.id },
|
|
142
|
-
deltaGeneration: {
|
|
143
|
-
id: "deltaGeneration",
|
|
144
|
-
benefit: "automatic delta artifacts generation to minimize data transfer and improve the update delivery",
|
|
145
|
-
requiredPlan: PLANS.enterprise.id
|
|
146
|
-
},
|
|
147
|
-
deviceConfiguration: { id: "deviceConfiguration", benefit: "device configuration features", requiredAddon: ADDONS.configure.id },
|
|
148
|
-
deviceMonitor: { id: "deviceMonitor", benefit: "device monitoring features", requiredAddon: ADDONS.monitor.id, requiredPlan: PLANS.professional.id },
|
|
149
|
-
deviceTroubleshoot: { id: "deviceTroubleshoot", benefit: "device troubleshooting features", requiredAddon: ADDONS.troubleshoot.id },
|
|
150
|
-
dynamicGroups: { id: "dynamicGroups", benefit: "create dynamic groups to ease device management", requiredPlan: PLANS.enterprise.id },
|
|
151
|
-
fullFiltering: { id: "fullFiltering", benefit: "filtering by multiple attributes to improve the device overview", requiredPlan: PLANS.professional.id },
|
|
152
|
-
gateway: { id: "gateway", benefit: "see devices connected to your gateway device for easy access", requiredPlans: PLANS.professional.id },
|
|
153
|
-
pausedDeployments: {
|
|
154
|
-
id: "pausedDeployments",
|
|
155
|
-
benefit: "granular control about update rollout to allow synchronization across your fleet",
|
|
156
|
-
requiredPlan: PLANS.enterprise.id
|
|
157
|
-
},
|
|
158
|
-
phasedDeployments: { id: "phasedDeployments", benefit: "choose to roll out deployments in multiple phases", requiredPlan: PLANS.enterprise.id },
|
|
159
|
-
rbac: { id: "rbac", benefit: "granular role based access control", requiredPlan: PLANS.enterprise.id },
|
|
160
|
-
retryDeployments: { id: "retryDeployments", benefit: "optional retries for failed rollout attempts", requiredPlan: PLANS.professional.id },
|
|
161
|
-
scheduledDeployments: {
|
|
162
|
-
id: "scheduledDeployments",
|
|
163
|
-
benefit: "scheduled deployments to steer the distribution of your updates.",
|
|
164
|
-
requiredPlan: PLANS.professional.id
|
|
165
|
-
},
|
|
166
|
-
webhookEvents: {
|
|
167
|
-
id: "webhookEvents",
|
|
168
|
-
benefit: "receive inventory events and select which type(s) of events the webhook will receive",
|
|
169
|
-
requiredPlan: PLANS.professional.id
|
|
170
|
-
},
|
|
171
|
-
default: { id: "default", benefit: "gain access to this feature", requiredPlan: PLANS.enterprise.id }
|
|
172
|
-
};
|
|
45
|
+
// src/constants.ts
|
|
46
|
+
var import_constants4 = require("@northern.tech/utils/constants");
|
|
173
47
|
|
|
174
48
|
// src/commonConstants.tsx
|
|
175
49
|
var import_js = require("@mdi/js");
|
|
50
|
+
var import_MenderTypes = require("@northern.tech/types/MenderTypes");
|
|
176
51
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
177
|
-
var DEVICE_LIST_DEFAULTS = {
|
|
178
|
-
page: 1,
|
|
179
|
-
perPage: 20
|
|
180
|
-
};
|
|
181
52
|
var timeUnits = {
|
|
182
53
|
days: "days",
|
|
183
54
|
minutes: "minutes",
|
|
184
55
|
hours: "hours"
|
|
185
56
|
};
|
|
186
|
-
var ALL_DEVICES = "All devices";
|
|
187
57
|
var UNGROUPED_GROUP = { id: "*|=ungrouped=|*", name: "Unassigned" };
|
|
188
|
-
var DEVICE_FILTERING_OPTIONS = {
|
|
189
|
-
$eq: { key: "$eq", title: "equals", shortform: "=" },
|
|
190
|
-
$ne: { key: "$ne", title: "not equal", shortform: "!=" },
|
|
191
|
-
$gt: {
|
|
192
|
-
key: "$gt",
|
|
193
|
-
title: ">",
|
|
194
|
-
shortform: ">",
|
|
195
|
-
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.'
|
|
196
|
-
},
|
|
197
|
-
$gte: {
|
|
198
|
-
title: ">=",
|
|
199
|
-
shortform: ">=",
|
|
200
|
-
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.'
|
|
201
|
-
},
|
|
202
|
-
$lt: {
|
|
203
|
-
key: "$lt",
|
|
204
|
-
title: "<",
|
|
205
|
-
shortform: "<",
|
|
206
|
-
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.'
|
|
207
|
-
},
|
|
208
|
-
$lte: {
|
|
209
|
-
title: "<=",
|
|
210
|
-
shortform: "<=",
|
|
211
|
-
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.'
|
|
212
|
-
},
|
|
213
|
-
$ltne: {
|
|
214
|
-
key: "$ltne",
|
|
215
|
-
title: "$ltne",
|
|
216
|
-
shortform: "ltne",
|
|
217
|
-
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.'
|
|
218
|
-
},
|
|
219
|
-
$in: {
|
|
220
|
-
key: "$in",
|
|
221
|
-
title: "in",
|
|
222
|
-
shortform: "in",
|
|
223
|
-
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.'
|
|
224
|
-
},
|
|
225
|
-
$nin: {
|
|
226
|
-
key: "$nin",
|
|
227
|
-
title: "not in",
|
|
228
|
-
shortform: "not in",
|
|
229
|
-
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.`
|
|
230
|
-
},
|
|
231
|
-
$exists: {
|
|
232
|
-
key: "$exists",
|
|
233
|
-
title: "exists",
|
|
234
|
-
shortform: "exists",
|
|
235
|
-
value: true,
|
|
236
|
-
help: `The "exists" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`
|
|
237
|
-
},
|
|
238
|
-
$nexists: {
|
|
239
|
-
key: "$nexists",
|
|
240
|
-
title: `doesn't exist`,
|
|
241
|
-
shortform: `doesn't exist`,
|
|
242
|
-
value: true,
|
|
243
|
-
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.`
|
|
244
|
-
},
|
|
245
|
-
$regex: {
|
|
246
|
-
key: "$regex",
|
|
247
|
-
title: `matches regular expression`,
|
|
248
|
-
shortform: `matches`,
|
|
249
|
-
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.`
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
var DEVICE_ISSUE_OPTIONS = {
|
|
253
|
-
issues: {
|
|
254
|
-
isCategory: true,
|
|
255
|
-
key: "issues",
|
|
256
|
-
title: "Devices with issues",
|
|
257
|
-
filterRule: {}
|
|
258
|
-
},
|
|
259
|
-
offline: {
|
|
260
|
-
issueCategory: "issues",
|
|
261
|
-
key: "offline",
|
|
262
|
-
needsFullFiltering: true,
|
|
263
|
-
needsMonitor: false,
|
|
264
|
-
needsReporting: false,
|
|
265
|
-
filterRule: {
|
|
266
|
-
scope: "system",
|
|
267
|
-
key: "check_in_time",
|
|
268
|
-
operator: DEVICE_FILTERING_OPTIONS.$ltne.key,
|
|
269
|
-
value: ({ offlineThreshold }) => offlineThreshold
|
|
270
|
-
},
|
|
271
|
-
title: "Offline devices"
|
|
272
|
-
},
|
|
273
|
-
failedLastUpdate: {
|
|
274
|
-
issueCategory: "issues",
|
|
275
|
-
key: "failedLastUpdate",
|
|
276
|
-
needsFullFiltering: false,
|
|
277
|
-
needsMonitor: false,
|
|
278
|
-
needsReporting: true,
|
|
279
|
-
filterRule: { scope: "monitor", key: "failed_last_update", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
280
|
-
title: "Deployment failed"
|
|
281
|
-
},
|
|
282
|
-
monitoring: {
|
|
283
|
-
issueCategory: "issues",
|
|
284
|
-
key: "monitoring",
|
|
285
|
-
needsFullFiltering: false,
|
|
286
|
-
needsMonitor: true,
|
|
287
|
-
needsReporting: false,
|
|
288
|
-
filterRule: { scope: "monitor", key: "alerts", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
289
|
-
title: "Monitoring alert"
|
|
290
|
-
},
|
|
291
|
-
authRequests: {
|
|
292
|
-
key: "authRequests",
|
|
293
|
-
needsFullFiltering: false,
|
|
294
|
-
needsMonitor: false,
|
|
295
|
-
needsReporting: true,
|
|
296
|
-
filterRule: { scope: "monitor", key: "auth_requests", operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },
|
|
297
|
-
title: "Devices with new authentication requests"
|
|
298
|
-
},
|
|
299
|
-
gatewayDevices: {
|
|
300
|
-
key: "gatewayDevices",
|
|
301
|
-
needsFullFiltering: false,
|
|
302
|
-
needsMonitor: false,
|
|
303
|
-
needsReporting: true,
|
|
304
|
-
filterRule: { scope: "inventory", key: "mender_is_gateway", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: "true" },
|
|
305
|
-
title: "Gateway devices"
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
58
|
var oneSecond = 1e3;
|
|
309
59
|
var TIMEOUTS = {
|
|
310
60
|
debounceDefault: 700,
|
|
@@ -317,23 +67,12 @@ var TIMEOUTS = {
|
|
|
317
67
|
refreshDefault: 10 * oneSecond,
|
|
318
68
|
refreshLong: 60 * oneSecond
|
|
319
69
|
};
|
|
320
|
-
var SORTING_OPTIONS = {
|
|
321
|
-
asc: "asc",
|
|
322
|
-
desc: "desc"
|
|
323
|
-
};
|
|
324
70
|
var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
|
|
325
|
-
var
|
|
326
|
-
inventory: "inventory",
|
|
327
|
-
identity: "identity",
|
|
328
|
-
monitor: "monitor",
|
|
329
|
-
system: "system",
|
|
330
|
-
tags: "tags"
|
|
331
|
-
};
|
|
332
|
-
var defaultIdAttribute = Object.freeze({ attribute: "id", scope: ATTRIBUTE_SCOPES.identity });
|
|
71
|
+
var defaultIdAttribute = Object.freeze({ attribute: "id", scope: import_constants4.ATTRIBUTE_SCOPES.identity });
|
|
333
72
|
var credentialTypes = {
|
|
334
|
-
aws:
|
|
335
|
-
http:
|
|
336
|
-
sas:
|
|
73
|
+
aws: import_MenderTypes.Credentials.type.AWS,
|
|
74
|
+
http: import_MenderTypes.Credentials.type.HTTP,
|
|
75
|
+
sas: import_MenderTypes.Credentials.type.SAS,
|
|
337
76
|
x509: "x509"
|
|
338
77
|
};
|
|
339
78
|
var EXTERNAL_PROVIDER = {
|
|
@@ -373,30 +112,277 @@ var EXTERNAL_PROVIDER = {
|
|
|
373
112
|
webhook: {
|
|
374
113
|
credentialsType: credentialTypes.http,
|
|
375
114
|
deviceTwin: false,
|
|
115
|
+
twinTitle: "",
|
|
376
116
|
// disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.
|
|
377
117
|
enabled: false,
|
|
378
118
|
provider: "webhook"
|
|
379
119
|
}
|
|
380
120
|
};
|
|
381
|
-
var
|
|
382
|
-
auditlog: [],
|
|
383
|
-
deployments: [],
|
|
384
|
-
groups: Object.freeze({}),
|
|
385
|
-
releases: Object.freeze({}),
|
|
386
|
-
tenantManagement: [],
|
|
387
|
-
userManagement: []
|
|
388
|
-
});
|
|
389
|
-
var emptyRole = Object.freeze({
|
|
390
|
-
name: void 0,
|
|
121
|
+
var emptyWebhook = {
|
|
391
122
|
description: "",
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
123
|
+
provider: import_MenderTypes.Integration.provider.WEBHOOK,
|
|
124
|
+
credentials: {
|
|
125
|
+
type: EXTERNAL_PROVIDER.webhook.credentialsType,
|
|
126
|
+
[EXTERNAL_PROVIDER.webhook.credentialsType]: {
|
|
127
|
+
secret: "",
|
|
128
|
+
url: ""
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
var regionNames = new Intl.DisplayNames(["en"], { type: "region" });
|
|
133
|
+
var countries = [
|
|
134
|
+
"AD",
|
|
135
|
+
"AE",
|
|
136
|
+
"AF",
|
|
137
|
+
"AG",
|
|
138
|
+
"AI",
|
|
139
|
+
"AL",
|
|
140
|
+
"AM",
|
|
141
|
+
"AO",
|
|
142
|
+
"AQ",
|
|
143
|
+
"AR",
|
|
144
|
+
"AS",
|
|
145
|
+
"AT",
|
|
146
|
+
"AU",
|
|
147
|
+
"AW",
|
|
148
|
+
"AX",
|
|
149
|
+
"AZ",
|
|
150
|
+
"BA",
|
|
151
|
+
"BB",
|
|
152
|
+
"BD",
|
|
153
|
+
"BE",
|
|
154
|
+
"BF",
|
|
155
|
+
"BG",
|
|
156
|
+
"BH",
|
|
157
|
+
"BI",
|
|
158
|
+
"BJ",
|
|
159
|
+
"BL",
|
|
160
|
+
"BM",
|
|
161
|
+
"BN",
|
|
162
|
+
"BO",
|
|
163
|
+
"BR",
|
|
164
|
+
"BS",
|
|
165
|
+
"BT",
|
|
166
|
+
"BV",
|
|
167
|
+
"BW",
|
|
168
|
+
"BY",
|
|
169
|
+
"BZ",
|
|
170
|
+
"CA",
|
|
171
|
+
"CC",
|
|
172
|
+
"CD",
|
|
173
|
+
"CF",
|
|
174
|
+
"CG",
|
|
175
|
+
"CH",
|
|
176
|
+
"CI",
|
|
177
|
+
"CK",
|
|
178
|
+
"CL",
|
|
179
|
+
"CM",
|
|
180
|
+
"CN",
|
|
181
|
+
"CO",
|
|
182
|
+
"CR",
|
|
183
|
+
"CU",
|
|
184
|
+
"CV",
|
|
185
|
+
"CW",
|
|
186
|
+
"CX",
|
|
187
|
+
"CY",
|
|
188
|
+
"CZ",
|
|
189
|
+
"DE",
|
|
190
|
+
"DJ",
|
|
191
|
+
"DK",
|
|
192
|
+
"DM",
|
|
193
|
+
"DO",
|
|
194
|
+
"DZ",
|
|
195
|
+
"EC",
|
|
196
|
+
"EE",
|
|
197
|
+
"EG",
|
|
198
|
+
"EH",
|
|
199
|
+
"ER",
|
|
200
|
+
"ES",
|
|
201
|
+
"ET",
|
|
202
|
+
"FI",
|
|
203
|
+
"FJ",
|
|
204
|
+
"FK",
|
|
205
|
+
"FM",
|
|
206
|
+
"FO",
|
|
207
|
+
"FR",
|
|
208
|
+
"GA",
|
|
209
|
+
"GB",
|
|
210
|
+
"GD",
|
|
211
|
+
"GE",
|
|
212
|
+
"GF",
|
|
213
|
+
"GG",
|
|
214
|
+
"GH",
|
|
215
|
+
"GI",
|
|
216
|
+
"GL",
|
|
217
|
+
"GM",
|
|
218
|
+
"GN",
|
|
219
|
+
"GP",
|
|
220
|
+
"GQ",
|
|
221
|
+
"GR",
|
|
222
|
+
"GS",
|
|
223
|
+
"GT",
|
|
224
|
+
"GU",
|
|
225
|
+
"GW",
|
|
226
|
+
"GY",
|
|
227
|
+
"HK",
|
|
228
|
+
"HM",
|
|
229
|
+
"HN",
|
|
230
|
+
"HR",
|
|
231
|
+
"HT",
|
|
232
|
+
"HU",
|
|
233
|
+
"ID",
|
|
234
|
+
"IE",
|
|
235
|
+
"IL",
|
|
236
|
+
"IM",
|
|
237
|
+
"IN",
|
|
238
|
+
"IO",
|
|
239
|
+
"IQ",
|
|
240
|
+
"IR",
|
|
241
|
+
"IS",
|
|
242
|
+
"IT",
|
|
243
|
+
"JE",
|
|
244
|
+
"JM",
|
|
245
|
+
"JO",
|
|
246
|
+
"JP",
|
|
247
|
+
"KE",
|
|
248
|
+
"KG",
|
|
249
|
+
"KH",
|
|
250
|
+
"KI",
|
|
251
|
+
"KM",
|
|
252
|
+
"KN",
|
|
253
|
+
"KP",
|
|
254
|
+
"KR",
|
|
255
|
+
"KW",
|
|
256
|
+
"KY",
|
|
257
|
+
"KZ",
|
|
258
|
+
"LA",
|
|
259
|
+
"LB",
|
|
260
|
+
"LC",
|
|
261
|
+
"LI",
|
|
262
|
+
"LK",
|
|
263
|
+
"LR",
|
|
264
|
+
"LS",
|
|
265
|
+
"LT",
|
|
266
|
+
"LU",
|
|
267
|
+
"LV",
|
|
268
|
+
"LY",
|
|
269
|
+
"MA",
|
|
270
|
+
"MC",
|
|
271
|
+
"MD",
|
|
272
|
+
"ME",
|
|
273
|
+
"MF",
|
|
274
|
+
"MG",
|
|
275
|
+
"MH",
|
|
276
|
+
"MK",
|
|
277
|
+
"ML",
|
|
278
|
+
"MM",
|
|
279
|
+
"MN",
|
|
280
|
+
"MO",
|
|
281
|
+
"MP",
|
|
282
|
+
"MQ",
|
|
283
|
+
"MR",
|
|
284
|
+
"MS",
|
|
285
|
+
"MT",
|
|
286
|
+
"MU",
|
|
287
|
+
"MV",
|
|
288
|
+
"MW",
|
|
289
|
+
"MX",
|
|
290
|
+
"MY",
|
|
291
|
+
"MZ",
|
|
292
|
+
"NA",
|
|
293
|
+
"NC",
|
|
294
|
+
"NE",
|
|
295
|
+
"NF",
|
|
296
|
+
"NG",
|
|
297
|
+
"NI",
|
|
298
|
+
"NL",
|
|
299
|
+
"NO",
|
|
300
|
+
"NP",
|
|
301
|
+
"NR",
|
|
302
|
+
"NU",
|
|
303
|
+
"NZ",
|
|
304
|
+
"OM",
|
|
305
|
+
"PA",
|
|
306
|
+
"PE",
|
|
307
|
+
"PF",
|
|
308
|
+
"PG",
|
|
309
|
+
"PH",
|
|
310
|
+
"PK",
|
|
311
|
+
"PL",
|
|
312
|
+
"PM",
|
|
313
|
+
"PN",
|
|
314
|
+
"PR",
|
|
315
|
+
"PS",
|
|
316
|
+
"PT",
|
|
317
|
+
"PW",
|
|
318
|
+
"PY",
|
|
319
|
+
"QA",
|
|
320
|
+
"RE",
|
|
321
|
+
"RO",
|
|
322
|
+
"RS",
|
|
323
|
+
"RU",
|
|
324
|
+
"RW",
|
|
325
|
+
"SA",
|
|
326
|
+
"SB",
|
|
327
|
+
"SC",
|
|
328
|
+
"SD",
|
|
329
|
+
"SE",
|
|
330
|
+
"SG",
|
|
331
|
+
"SH",
|
|
332
|
+
"SI",
|
|
333
|
+
"SJ",
|
|
334
|
+
"SK",
|
|
335
|
+
"SL",
|
|
336
|
+
"SM",
|
|
337
|
+
"SN",
|
|
338
|
+
"SO",
|
|
339
|
+
"SR",
|
|
340
|
+
"SS",
|
|
341
|
+
"ST",
|
|
342
|
+
"SV",
|
|
343
|
+
"SX",
|
|
344
|
+
"SY",
|
|
345
|
+
"SZ",
|
|
346
|
+
"TC",
|
|
347
|
+
"TD",
|
|
348
|
+
"TF",
|
|
349
|
+
"TG",
|
|
350
|
+
"TH",
|
|
351
|
+
"TJ",
|
|
352
|
+
"TK",
|
|
353
|
+
"TL",
|
|
354
|
+
"TM",
|
|
355
|
+
"TN",
|
|
356
|
+
"TO",
|
|
357
|
+
"TR",
|
|
358
|
+
"TT",
|
|
359
|
+
"TV",
|
|
360
|
+
"TW",
|
|
361
|
+
"TZ",
|
|
362
|
+
"UA",
|
|
363
|
+
"UG",
|
|
364
|
+
"US",
|
|
365
|
+
"UY",
|
|
366
|
+
"UZ",
|
|
367
|
+
"VA",
|
|
368
|
+
"VC",
|
|
369
|
+
"VE",
|
|
370
|
+
"VG",
|
|
371
|
+
"VI",
|
|
372
|
+
"VN",
|
|
373
|
+
"VU",
|
|
374
|
+
"WF",
|
|
375
|
+
"WS",
|
|
376
|
+
"XK",
|
|
377
|
+
"YE",
|
|
378
|
+
"YT",
|
|
379
|
+
"ZA",
|
|
380
|
+
"ZM",
|
|
381
|
+
"ZW"
|
|
382
|
+
].map((code) => ({ code, label: regionNames.of(code) })).sort((a, b) => a.label.localeCompare(b.label));
|
|
395
383
|
|
|
396
384
|
// src/deploymentsSlice/constants.ts
|
|
397
385
|
var alreadyInstalled = "already-installed";
|
|
398
|
-
var deploymentsApiUrl = `${apiUrl.v1}/deployments`;
|
|
399
|
-
var deploymentsApiUrlV2 = `${apiUrl.v2}/deployments`;
|
|
400
386
|
var deploymentSubstates = {
|
|
401
387
|
aborted: "aborted",
|
|
402
388
|
alreadyInstalled,
|
|
@@ -469,9 +455,9 @@ var DEPLOYMENT_STATES = {
|
|
|
469
455
|
var listDefaultsByState = {
|
|
470
456
|
[DEPLOYMENT_STATES.inprogress]: { page: 1, perPage: 10 },
|
|
471
457
|
[DEPLOYMENT_STATES.pending]: { page: 1, perPage: 10 },
|
|
472
|
-
[DEPLOYMENT_STATES.scheduled]: { ...DEVICE_LIST_DEFAULTS },
|
|
473
|
-
[DEPLOYMENT_STATES.finished]: { ...DEVICE_LIST_DEFAULTS },
|
|
474
|
-
sort: { direction: SORTING_OPTIONS.desc }
|
|
458
|
+
[DEPLOYMENT_STATES.scheduled]: { ...import_constants4.DEVICE_LIST_DEFAULTS },
|
|
459
|
+
[DEPLOYMENT_STATES.finished]: { ...import_constants4.DEVICE_LIST_DEFAULTS },
|
|
460
|
+
sort: { direction: import_constants4.SORTING_OPTIONS.desc }
|
|
475
461
|
};
|
|
476
462
|
var DEPLOYMENT_ROUTES = {
|
|
477
463
|
active: {
|
|
@@ -528,21 +514,10 @@ var pauseMap = {
|
|
|
528
514
|
};
|
|
529
515
|
|
|
530
516
|
// src/devicesSlice/constants.ts
|
|
531
|
-
var emptyFilter = { key: null, value: "", operator: DEVICE_FILTERING_OPTIONS.$eq.key, scope: "inventory" };
|
|
532
|
-
var deviceAuthV2 = `${apiUrl.v2}/devauth`;
|
|
533
|
-
var deviceConnect = `${apiUrl.v1}/deviceconnect`;
|
|
534
|
-
var inventoryApiUrl = `${apiUrl.v1}/inventory`;
|
|
535
|
-
var inventoryApiUrlV2 = `${apiUrl.v2}/inventory`;
|
|
536
|
-
var deviceConfig = `${apiUrl.v1}/deviceconfig/configurations/device`;
|
|
537
|
-
var reportingApiUrl = `${apiUrl.v1}/reporting`;
|
|
538
|
-
var iotManagerBaseURL = `${apiUrl.v1}/iot-manager`;
|
|
517
|
+
var emptyFilter = { key: null, value: "", operator: import_constants4.DEVICE_FILTERING_OPTIONS.$eq.key, scope: "inventory" };
|
|
539
518
|
var geoAttributes = ["geo-lat", "geo-lon"].map((attribute) => ({ attribute, scope: "inventory" }));
|
|
540
519
|
|
|
541
520
|
// src/organizationSlice/constants.ts
|
|
542
|
-
var auditLogsApiUrl = `${apiUrl.v1}/auditlogs`;
|
|
543
|
-
var tenantadmApiUrlv1 = `${apiUrl.v1}/tenantadm`;
|
|
544
|
-
var tenantadmApiUrlv2 = `${apiUrl.v2}/tenantadm`;
|
|
545
|
-
var ssoIdpApiUrlv1 = `${apiUrl.v1}/useradm/sso/idp/metadata`;
|
|
546
521
|
var auditlogTypes = {
|
|
547
522
|
artifact: { title: "Artifact", queryParameter: "object_type", value: "artifact" },
|
|
548
523
|
deployment: { title: "Deployment", queryParameter: "object_deployment_name", value: "deployment" },
|
|
@@ -553,23 +528,12 @@ var auditlogTypes = {
|
|
|
553
528
|
};
|
|
554
529
|
var AUDIT_LOGS_TYPES = [auditlogTypes.artifact, auditlogTypes.deployment, auditlogTypes.device, auditlogTypes.user_access_token, auditlogTypes.user];
|
|
555
530
|
var SP_AUDIT_LOGS_TYPES = [auditlogTypes.user, auditlogTypes.tenant];
|
|
556
|
-
var emptyWebhook = {
|
|
557
|
-
description: "",
|
|
558
|
-
enabled: true,
|
|
559
|
-
credentials: {
|
|
560
|
-
type: EXTERNAL_PROVIDER.webhook.credentialsType,
|
|
561
|
-
[EXTERNAL_PROVIDER.webhook.credentialsType]: {
|
|
562
|
-
secret: "",
|
|
563
|
-
url: ""
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
531
|
|
|
568
532
|
// src/locationutils.ts
|
|
569
533
|
var SEPARATOR = ":";
|
|
570
534
|
var defaultSelector = (result) => result[0];
|
|
571
535
|
var commonFields = {
|
|
572
|
-
...Object.keys(DEVICE_LIST_DEFAULTS).reduce((accu, key) => ({ ...accu, [key]: { parse: Number, select: defaultSelector, target: key } }), {}),
|
|
536
|
+
...Object.keys(import_constants4.DEVICE_LIST_DEFAULTS).reduce((accu, key) => ({ ...accu, [key]: { parse: Number, select: defaultSelector, target: key } }), {}),
|
|
573
537
|
id: { parse: String, select: (i) => i, target: "id" },
|
|
574
538
|
issues: { parse: void 0, select: defaultSelector, target: "selectedIssues" },
|
|
575
539
|
open: { parse: Boolean, select: defaultSelector, target: "open" }
|
|
@@ -582,7 +546,7 @@ var scopes = {
|
|
|
582
546
|
tags: { delimiter: "tags", filters: [] }
|
|
583
547
|
};
|
|
584
548
|
var commonProcessor = (searchParams) => {
|
|
585
|
-
|
|
549
|
+
const params = new URLSearchParams(searchParams);
|
|
586
550
|
const pageState = Object.entries(commonFields).reduce((accu, [key, { parse, select, target }]) => {
|
|
587
551
|
const values = params.getAll(key);
|
|
588
552
|
if (!values.length) {
|
|
@@ -613,10 +577,10 @@ var commonProcessor = (searchParams) => {
|
|
|
613
577
|
return { pageState, params, sort };
|
|
614
578
|
};
|
|
615
579
|
var legacyDeviceQueryParse = (searchParams, filteringAttributes) => {
|
|
616
|
-
|
|
580
|
+
const params = new URLSearchParams(searchParams);
|
|
617
581
|
const result = Object.keys(scopes).reduce((accu, scope) => ({ ...accu, [scope]: [] }), {});
|
|
618
582
|
if (params.get("group")) {
|
|
619
|
-
result.inventory.push({ ...emptyFilter, key: "group", scope: "inventory", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: params.get("group") });
|
|
583
|
+
result.inventory.push({ ...emptyFilter, key: "group", scope: "inventory", operator: import_constants4.DEVICE_FILTERING_OPTIONS.$eq.key, value: params.get("group") });
|
|
620
584
|
params.delete("group");
|
|
621
585
|
}
|
|
622
586
|
const filters = [...params.keys()].reduce(
|
|
@@ -626,8 +590,8 @@ var legacyDeviceQueryParse = (searchParams, filteringAttributes) => {
|
|
|
626
590
|
return foundScope;
|
|
627
591
|
}
|
|
628
592
|
return attributes.includes(key) ? currentScope.substring(0, currentScope.indexOf("Attributes")) : foundScope;
|
|
629
|
-
}, void 0) ?? ATTRIBUTE_SCOPES.inventory;
|
|
630
|
-
innerAccu[scope].push({ ...emptyFilter, scope, key, operator: DEVICE_FILTERING_OPTIONS.$eq.key, value });
|
|
593
|
+
}, void 0) ?? import_constants4.ATTRIBUTE_SCOPES.inventory;
|
|
594
|
+
innerAccu[scope].push({ ...emptyFilter, scope, key, operator: import_constants4.DEVICE_FILTERING_OPTIONS.$eq.key, value });
|
|
631
595
|
return innerAccu;
|
|
632
596
|
}, accu),
|
|
633
597
|
result
|
|
@@ -636,7 +600,7 @@ var legacyDeviceQueryParse = (searchParams, filteringAttributes) => {
|
|
|
636
600
|
return { filters, params };
|
|
637
601
|
};
|
|
638
602
|
var scopedFilterParse = (searchParams) => {
|
|
639
|
-
|
|
603
|
+
const params = new URLSearchParams(searchParams);
|
|
640
604
|
const filters = Object.keys(scopes).reduce(
|
|
641
605
|
(accu, scope) => {
|
|
642
606
|
accu[scope] = [];
|
|
@@ -670,7 +634,7 @@ var parseDeviceQuery = (searchParams, extraProps = {}) => {
|
|
|
670
634
|
queryParams = params;
|
|
671
635
|
}
|
|
672
636
|
let groupName = "";
|
|
673
|
-
const groupFilterIndex = scopedFilters.inventory.findIndex((filter) => filter.key === "group" && filter.operator === DEVICE_FILTERING_OPTIONS.$eq.key);
|
|
637
|
+
const groupFilterIndex = scopedFilters.inventory.findIndex((filter) => filter.key === "group" && filter.operator === import_constants4.DEVICE_FILTERING_OPTIONS.$eq.key);
|
|
674
638
|
if (groupFilterIndex > -1) {
|
|
675
639
|
groupName = scopedFilters.inventory[groupFilterIndex].value;
|
|
676
640
|
scopedFilters.inventory.splice(groupFilterIndex, 1);
|
|
@@ -695,7 +659,7 @@ var formatPageState = ({ selectedId, selectedIssues, page, perPage, sort }, { de
|
|
|
695
659
|
(accu, [key, value]) => {
|
|
696
660
|
if (Array.isArray(value)) {
|
|
697
661
|
accu.push(...value.map((item) => `${key}=${encodeURIComponent(item)}`));
|
|
698
|
-
} else if ((DEVICE_LIST_DEFAULTS[key] != value || !DEVICE_LIST_DEFAULTS.hasOwnProperty(key)) && value) {
|
|
662
|
+
} else if ((import_constants4.DEVICE_LIST_DEFAULTS[key] != value || !import_constants4.DEVICE_LIST_DEFAULTS.hasOwnProperty(key)) && value) {
|
|
699
663
|
accu.push(`${key}=${encodeURIComponent(value)}`);
|
|
700
664
|
}
|
|
701
665
|
return accu;
|
|
@@ -706,7 +670,7 @@ var stripFilterOperator = (operator) => operator.replaceAll("$", "");
|
|
|
706
670
|
var formatFilters = (filters) => {
|
|
707
671
|
const result = filters.reduce(
|
|
708
672
|
(accu, filter) => {
|
|
709
|
-
const { scope = ATTRIBUTE_SCOPES.inventory, operator = "$eq" } = filter;
|
|
673
|
+
const { scope = import_constants4.ATTRIBUTE_SCOPES.inventory, operator = "$eq" } = filter;
|
|
710
674
|
accu[scope].add(`${scopes[scope].delimiter}=${filter.key}${SEPARATOR}${stripFilterOperator(operator)}${SEPARATOR}${encodeURIComponent(filter.value)}`);
|
|
711
675
|
return accu;
|
|
712
676
|
},
|
|
@@ -716,13 +680,13 @@ var formatFilters = (filters) => {
|
|
|
716
680
|
};
|
|
717
681
|
var formatDeviceSearch = ({ pageState, filters, selectedGroup }) => {
|
|
718
682
|
let activeFilters = [...filters];
|
|
719
|
-
if (selectedGroup && selectedGroup !== ALL_DEVICES) {
|
|
683
|
+
if (selectedGroup && selectedGroup !== import_constants4.ALL_DEVICES) {
|
|
720
684
|
const isUngroupedGroup = selectedGroup === UNGROUPED_GROUP.id;
|
|
721
685
|
activeFilters = isUngroupedGroup ? activeFilters.filter(
|
|
722
|
-
(filter) => !(filter.key === "group" && filter.scope === ATTRIBUTE_SCOPES.system && filter.operator === DEVICE_FILTERING_OPTIONS.$nin.key)
|
|
686
|
+
(filter) => !(filter.key === "group" && filter.scope === import_constants4.ATTRIBUTE_SCOPES.system && filter.operator === import_constants4.DEVICE_FILTERING_OPTIONS.$nin.key)
|
|
723
687
|
) : activeFilters;
|
|
724
688
|
const groupName = isUngroupedGroup ? UNGROUPED_GROUP.name : selectedGroup;
|
|
725
|
-
activeFilters.push({ scope: ATTRIBUTE_SCOPES.inventory, key: "group", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: groupName });
|
|
689
|
+
activeFilters.push({ scope: import_constants4.ATTRIBUTE_SCOPES.inventory, key: "group", operator: import_constants4.DEVICE_FILTERING_OPTIONS.$eq.key, value: groupName });
|
|
726
690
|
}
|
|
727
691
|
const formattedFilters = formatFilters(activeFilters).filter((i) => i);
|
|
728
692
|
if (pageState.detailsTab && pageState.selectedId) {
|