@northern.tech/store 0.3.4 → 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 +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 +23 -43
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +102 -112
- package/dist/appSlice/constants.d.ts +102 -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 +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 +1552 -1769
- 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 +31 -31
- 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-JO33IORF.js → chunk-4TUJPE6G.js} +19 -4
- package/dist/chunk-4TUJPE6G.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-7C4SQBEE.js +715 -0
- package/dist/chunk-7C4SQBEE.js.map +1 -0
- package/dist/{chunk-X3GZILYD.js → chunk-ABJLRDCO.js} +10 -11
- package/dist/chunk-ABJLRDCO.js.map +1 -0
- package/dist/{chunk-PAIB5V27.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-FVCYB5OP.js → chunk-IQG5I7AM.js} +32 -40
- 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-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-MBKAZVE3.js +44 -0
- package/dist/chunk-MBKAZVE3.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-EYCORLYU.js → chunk-N2KLYPS5.js} +128 -87
- package/dist/chunk-N2KLYPS5.js.map +1 -0
- package/dist/{chunk-Y575RZHR.js → chunk-OHF3YUXX.js} +25 -40
- package/dist/chunk-OHF3YUXX.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-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-ZZMFXRQK.js → chunk-URNS6A5T.js} +14 -14
- 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-DCEKU6UV.js → chunk-X4GUACQO.js} +8 -5
- package/dist/chunk-X4GUACQO.js.map +1 -0
- package/dist/{chunk-GWJIY56H.js → chunk-XWYJACQC.js} +40 -15
- package/dist/chunk-XWYJACQC.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/{chunk-EQLHIPPR.js → chunk-ZN5TB2NJ.js} +919 -842
- package/dist/chunk-ZN5TB2NJ.js.map +1 -0
- package/dist/{chunk-FQDSV3NK.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 +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 +14 -14
- 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 +1518 -1735
- 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 +31 -31
- 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 -1926
- 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 +37 -47
- 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 +27 -27
- 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 +1771 -1991
- 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 +31 -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 -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 +2593 -2730
- 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 +45 -31
- 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 +34 -28
- package/dist/selectors.cjs +559 -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 +77 -41
- 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 +1797 -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 +2132 -2229
- 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 +55 -45
- package/dist/{deploymentdevicehook.cjs → useDeploymentDevice.cjs} +1757 -1976
- 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 +1655 -1872
- 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 +31 -31
- 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/types-DBj17FZO.d.cts +0 -135
- package/dist/types-DnfZa6xd.d.ts +0 -135
- /package/dist/{chunk-ZZMFXRQK.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
|
@@ -6,24 +6,31 @@ import {
|
|
|
6
6
|
changeSsoConfig,
|
|
7
7
|
completeUpgrade,
|
|
8
8
|
confirmCardUpdate,
|
|
9
|
+
createBillingProfile,
|
|
9
10
|
createIntegration,
|
|
10
11
|
createOrganizationTrial,
|
|
11
12
|
deleteIntegration,
|
|
12
13
|
deleteSsoConfig,
|
|
13
14
|
downloadLicenseReport,
|
|
15
|
+
editBillingProfile,
|
|
14
16
|
editTenantDeviceLimit,
|
|
15
17
|
getAuditLogs,
|
|
16
18
|
getAuditLogsCsvLink,
|
|
19
|
+
getBillingPreview,
|
|
17
20
|
getCurrentCard,
|
|
21
|
+
getCurrentSubscription,
|
|
18
22
|
getIntegrations,
|
|
19
23
|
getSsoConfigById,
|
|
20
24
|
getSsoConfigs,
|
|
21
25
|
getTargetLocation,
|
|
22
26
|
getTenants,
|
|
27
|
+
getUserBilling,
|
|
23
28
|
getUserOrganization,
|
|
29
|
+
getUserSubscription,
|
|
24
30
|
getWebhookEvents,
|
|
25
31
|
removeTenant,
|
|
26
32
|
requestPlanChange,
|
|
33
|
+
requestPlanUpgrade,
|
|
27
34
|
sendSupportMessage,
|
|
28
35
|
setAuditlogsState,
|
|
29
36
|
setTenantsListState,
|
|
@@ -31,39 +38,39 @@ import {
|
|
|
31
38
|
startUpgrade,
|
|
32
39
|
storeSsoConfig,
|
|
33
40
|
tenantDataDivergedMessage
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
41
|
+
} from "../chunk-ZN5TB2NJ.js";
|
|
42
|
+
import "../chunk-N2KLYPS5.js";
|
|
43
|
+
import "../chunk-JUGE7L3K.js";
|
|
44
|
+
import "../chunk-CW5T6OGF.js";
|
|
45
|
+
import "../chunk-QHK7GGV4.js";
|
|
46
|
+
import "../chunk-RS37Y2PQ.js";
|
|
47
|
+
import "../chunk-URNS6A5T.js";
|
|
48
|
+
import "../chunk-OOICURFL.js";
|
|
49
|
+
import "../chunk-UGSLGUS6.js";
|
|
50
|
+
import "../chunk-MZNANSS2.js";
|
|
51
|
+
import "../chunk-VANBSJS5.js";
|
|
52
|
+
import "../chunk-VUFRP6P3.js";
|
|
53
|
+
import "../chunk-PGFVHKP5.js";
|
|
54
|
+
import "../chunk-6KGTHJKC.js";
|
|
55
|
+
import "../chunk-ABJLRDCO.js";
|
|
56
|
+
import "../chunk-ZJW3QIPM.js";
|
|
57
|
+
import "../chunk-KC7SKI3U.js";
|
|
39
58
|
import "../chunk-NMAXZ3ZY.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-FRSA2YB5.js";
|
|
45
|
-
import "../chunk-NOQR3TE7.js";
|
|
46
|
-
import "../chunk-AVX7VVOK.js";
|
|
47
|
-
import "../chunk-RX32WLVJ.js";
|
|
48
|
-
import "../chunk-X3GZILYD.js";
|
|
49
|
-
import "../chunk-AFICTIVU.js";
|
|
50
|
-
import "../chunk-GAI4VYRZ.js";
|
|
51
|
-
import "../chunk-FVCYB5OP.js";
|
|
52
|
-
import "../chunk-ZWOAFHAR.js";
|
|
53
|
-
import "../chunk-FQDSV3NK.js";
|
|
54
|
-
import "../chunk-JO33IORF.js";
|
|
55
|
-
import "../chunk-DCEKU6UV.js";
|
|
56
|
-
import "../chunk-YO22XLHI.js";
|
|
59
|
+
import "../chunk-IQG5I7AM.js";
|
|
60
|
+
import "../chunk-X4GUACQO.js";
|
|
61
|
+
import "../chunk-ZRSYBSSY.js";
|
|
62
|
+
import "../chunk-4TUJPE6G.js";
|
|
57
63
|
import "../chunk-JIS4PA3R.js";
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
65
|
-
import "../chunk-
|
|
66
|
-
import "../chunk-
|
|
64
|
+
import "../chunk-JXQUFKID.js";
|
|
65
|
+
import "../chunk-KJNNEDRV.js";
|
|
66
|
+
import "../chunk-YO22XLHI.js";
|
|
67
|
+
import "../chunk-MBKAZVE3.js";
|
|
68
|
+
import "../chunk-XWYJACQC.js";
|
|
69
|
+
import "../chunk-7C4SQBEE.js";
|
|
70
|
+
import "../chunk-2DYA3X77.js";
|
|
71
|
+
import "../chunk-ZKAH3APE.js";
|
|
72
|
+
import "../chunk-FAJ3I2UQ.js";
|
|
73
|
+
import "../chunk-OHF3YUXX.js";
|
|
67
74
|
export {
|
|
68
75
|
addTenant,
|
|
69
76
|
cancelRequest,
|
|
@@ -72,24 +79,31 @@ export {
|
|
|
72
79
|
changeSsoConfig,
|
|
73
80
|
completeUpgrade,
|
|
74
81
|
confirmCardUpdate,
|
|
82
|
+
createBillingProfile,
|
|
75
83
|
createIntegration,
|
|
76
84
|
createOrganizationTrial,
|
|
77
85
|
deleteIntegration,
|
|
78
86
|
deleteSsoConfig,
|
|
79
87
|
downloadLicenseReport,
|
|
88
|
+
editBillingProfile,
|
|
80
89
|
editTenantDeviceLimit,
|
|
81
90
|
getAuditLogs,
|
|
82
91
|
getAuditLogsCsvLink,
|
|
92
|
+
getBillingPreview,
|
|
83
93
|
getCurrentCard,
|
|
94
|
+
getCurrentSubscription,
|
|
84
95
|
getIntegrations,
|
|
85
96
|
getSsoConfigById,
|
|
86
97
|
getSsoConfigs,
|
|
87
98
|
getTargetLocation,
|
|
88
99
|
getTenants,
|
|
100
|
+
getUserBilling,
|
|
89
101
|
getUserOrganization,
|
|
102
|
+
getUserSubscription,
|
|
90
103
|
getWebhookEvents,
|
|
91
104
|
removeTenant,
|
|
92
105
|
requestPlanChange,
|
|
106
|
+
requestPlanUpgrade,
|
|
93
107
|
sendSupportMessage,
|
|
94
108
|
setAuditlogsState,
|
|
95
109
|
setTenantsListState,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/organizationSlice/types.ts"],"sourcesContent":["// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/organizationSlice/types.ts"],"sourcesContent":["// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type {\n AuditLog as AuditLogEvent,\n Tenant as BackendTenant,\n TenantTenantadm as BackendTenantAdminTenant,\n BillingProfile,\n Event,\n Integration,\n Product,\n SAMLMetadata\n} from '@northern.tech/types/MenderTypes';\n\nimport type { AvailableAddon, SortOptions } from '../constants';\nimport type { SSO_TYPES } from './constants';\n\nexport interface Card {\n brand?: string;\n expiration: {\n month?: number;\n year?: number;\n };\n last4?: string;\n}\n\nexport interface AuditLogSelectionState {\n detail?: string;\n endDate?: string;\n isLoading?: boolean;\n page: number;\n perPage: number;\n selectedId?: string;\n selectedIssue?: string;\n sort: SortOptions;\n startDate?: string;\n total: number;\n type?: {\n queryParameter: string;\n title: string;\n value: string;\n };\n user?: { id: string };\n}\n\ninterface AuditLog {\n events: Array<AuditLogEvent>;\n selectionState: AuditLogSelectionState;\n}\n\nexport interface Webhook {\n events: Event[];\n eventsTotal: number;\n}\nexport type Tenant = BackendTenant &\n BackendTenantAdminTenant & {\n addons: Addon[];\n };\n\nexport interface TenantList {\n page: number;\n perPage: number;\n selectedTenant: BackendTenantAdminTenant | null;\n sort: SortOptions;\n tenants: BackendTenantAdminTenant[];\n total: number;\n}\n\nexport type SSOConfig = SAMLMetadata & {\n config: string;\n type: [keyof typeof SSO_TYPES];\n};\n\nexport interface OrganizationState {\n auditlog: AuditLog;\n card: Card;\n externalDeviceIntegrations: Integration[];\n intentId: string | null;\n organization: Partial<Organization>;\n ssoConfigs: SSOConfig[];\n tenantList: TenantList;\n webhooks: Webhook;\n}\n\nexport interface Addon {\n enabled: boolean;\n name: AvailableAddon;\n}\n\ninterface SubscriptionLine {\n amount: number;\n currency: string;\n description: string;\n price_id: string;\n quantity: number;\n}\nexport interface Subscription {\n currency: string;\n id: string;\n lines: SubscriptionLine[];\n period_end: string;\n period_start: string;\n plan: string;\n products: Product[];\n status: string;\n total: number;\n}\n\nexport interface Organization extends Tenant {\n addons: Addon[];\n billing_profile: BillingProfile;\n subscription: Subscription;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1,5 +1,97 @@
|
|
|
1
|
-
import '
|
|
2
|
-
|
|
1
|
+
import { Tenant as Tenant$1, TenantTenantadm, BillingProfile, Product, SAMLMetadata, AuditLog as AuditLog$1, Integration, Event } from '@northern.tech/types/MenderTypes';
|
|
2
|
+
import { SortOptions } from '@northern.tech/utils/constants';
|
|
3
|
+
import { AvailableAddon } from '../appSlice/constants.cjs';
|
|
4
|
+
import { SSO_TYPES } from './constants.cjs';
|
|
3
5
|
import '@mui/material/OverridableComponent';
|
|
4
6
|
import '@mui/material';
|
|
5
|
-
|
|
7
|
+
|
|
8
|
+
interface Card {
|
|
9
|
+
brand?: string;
|
|
10
|
+
expiration: {
|
|
11
|
+
month?: number;
|
|
12
|
+
year?: number;
|
|
13
|
+
};
|
|
14
|
+
last4?: string;
|
|
15
|
+
}
|
|
16
|
+
interface AuditLogSelectionState {
|
|
17
|
+
detail?: string;
|
|
18
|
+
endDate?: string;
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
page: number;
|
|
21
|
+
perPage: number;
|
|
22
|
+
selectedId?: string;
|
|
23
|
+
selectedIssue?: string;
|
|
24
|
+
sort: SortOptions;
|
|
25
|
+
startDate?: string;
|
|
26
|
+
total: number;
|
|
27
|
+
type?: {
|
|
28
|
+
queryParameter: string;
|
|
29
|
+
title: string;
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
user?: {
|
|
33
|
+
id: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
interface AuditLog {
|
|
37
|
+
events: Array<AuditLog$1>;
|
|
38
|
+
selectionState: AuditLogSelectionState;
|
|
39
|
+
}
|
|
40
|
+
interface Webhook {
|
|
41
|
+
events: Event[];
|
|
42
|
+
eventsTotal: number;
|
|
43
|
+
}
|
|
44
|
+
type Tenant = Tenant$1 & TenantTenantadm & {
|
|
45
|
+
addons: Addon[];
|
|
46
|
+
};
|
|
47
|
+
interface TenantList {
|
|
48
|
+
page: number;
|
|
49
|
+
perPage: number;
|
|
50
|
+
selectedTenant: TenantTenantadm | null;
|
|
51
|
+
sort: SortOptions;
|
|
52
|
+
tenants: TenantTenantadm[];
|
|
53
|
+
total: number;
|
|
54
|
+
}
|
|
55
|
+
type SSOConfig = SAMLMetadata & {
|
|
56
|
+
config: string;
|
|
57
|
+
type: [keyof typeof SSO_TYPES];
|
|
58
|
+
};
|
|
59
|
+
interface OrganizationState {
|
|
60
|
+
auditlog: AuditLog;
|
|
61
|
+
card: Card;
|
|
62
|
+
externalDeviceIntegrations: Integration[];
|
|
63
|
+
intentId: string | null;
|
|
64
|
+
organization: Partial<Organization>;
|
|
65
|
+
ssoConfigs: SSOConfig[];
|
|
66
|
+
tenantList: TenantList;
|
|
67
|
+
webhooks: Webhook;
|
|
68
|
+
}
|
|
69
|
+
interface Addon {
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
name: AvailableAddon;
|
|
72
|
+
}
|
|
73
|
+
interface SubscriptionLine {
|
|
74
|
+
amount: number;
|
|
75
|
+
currency: string;
|
|
76
|
+
description: string;
|
|
77
|
+
price_id: string;
|
|
78
|
+
quantity: number;
|
|
79
|
+
}
|
|
80
|
+
interface Subscription {
|
|
81
|
+
currency: string;
|
|
82
|
+
id: string;
|
|
83
|
+
lines: SubscriptionLine[];
|
|
84
|
+
period_end: string;
|
|
85
|
+
period_start: string;
|
|
86
|
+
plan: string;
|
|
87
|
+
products: Product[];
|
|
88
|
+
status: string;
|
|
89
|
+
total: number;
|
|
90
|
+
}
|
|
91
|
+
interface Organization extends Tenant {
|
|
92
|
+
addons: Addon[];
|
|
93
|
+
billing_profile: BillingProfile;
|
|
94
|
+
subscription: Subscription;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type { Addon, AuditLogSelectionState, Card, Organization, OrganizationState, SSOConfig, Subscription, Tenant, TenantList, Webhook };
|
|
@@ -1,5 +1,97 @@
|
|
|
1
|
-
import '
|
|
2
|
-
|
|
1
|
+
import { Tenant as Tenant$1, TenantTenantadm, BillingProfile, Product, SAMLMetadata, AuditLog as AuditLog$1, Integration, Event } from '@northern.tech/types/MenderTypes';
|
|
2
|
+
import { SortOptions } from '@northern.tech/utils/constants';
|
|
3
|
+
import { AvailableAddon } from '../appSlice/constants.js';
|
|
4
|
+
import { SSO_TYPES } from './constants.js';
|
|
3
5
|
import '@mui/material/OverridableComponent';
|
|
4
6
|
import '@mui/material';
|
|
5
|
-
|
|
7
|
+
|
|
8
|
+
interface Card {
|
|
9
|
+
brand?: string;
|
|
10
|
+
expiration: {
|
|
11
|
+
month?: number;
|
|
12
|
+
year?: number;
|
|
13
|
+
};
|
|
14
|
+
last4?: string;
|
|
15
|
+
}
|
|
16
|
+
interface AuditLogSelectionState {
|
|
17
|
+
detail?: string;
|
|
18
|
+
endDate?: string;
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
page: number;
|
|
21
|
+
perPage: number;
|
|
22
|
+
selectedId?: string;
|
|
23
|
+
selectedIssue?: string;
|
|
24
|
+
sort: SortOptions;
|
|
25
|
+
startDate?: string;
|
|
26
|
+
total: number;
|
|
27
|
+
type?: {
|
|
28
|
+
queryParameter: string;
|
|
29
|
+
title: string;
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
user?: {
|
|
33
|
+
id: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
interface AuditLog {
|
|
37
|
+
events: Array<AuditLog$1>;
|
|
38
|
+
selectionState: AuditLogSelectionState;
|
|
39
|
+
}
|
|
40
|
+
interface Webhook {
|
|
41
|
+
events: Event[];
|
|
42
|
+
eventsTotal: number;
|
|
43
|
+
}
|
|
44
|
+
type Tenant = Tenant$1 & TenantTenantadm & {
|
|
45
|
+
addons: Addon[];
|
|
46
|
+
};
|
|
47
|
+
interface TenantList {
|
|
48
|
+
page: number;
|
|
49
|
+
perPage: number;
|
|
50
|
+
selectedTenant: TenantTenantadm | null;
|
|
51
|
+
sort: SortOptions;
|
|
52
|
+
tenants: TenantTenantadm[];
|
|
53
|
+
total: number;
|
|
54
|
+
}
|
|
55
|
+
type SSOConfig = SAMLMetadata & {
|
|
56
|
+
config: string;
|
|
57
|
+
type: [keyof typeof SSO_TYPES];
|
|
58
|
+
};
|
|
59
|
+
interface OrganizationState {
|
|
60
|
+
auditlog: AuditLog;
|
|
61
|
+
card: Card;
|
|
62
|
+
externalDeviceIntegrations: Integration[];
|
|
63
|
+
intentId: string | null;
|
|
64
|
+
organization: Partial<Organization>;
|
|
65
|
+
ssoConfigs: SSOConfig[];
|
|
66
|
+
tenantList: TenantList;
|
|
67
|
+
webhooks: Webhook;
|
|
68
|
+
}
|
|
69
|
+
interface Addon {
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
name: AvailableAddon;
|
|
72
|
+
}
|
|
73
|
+
interface SubscriptionLine {
|
|
74
|
+
amount: number;
|
|
75
|
+
currency: string;
|
|
76
|
+
description: string;
|
|
77
|
+
price_id: string;
|
|
78
|
+
quantity: number;
|
|
79
|
+
}
|
|
80
|
+
interface Subscription {
|
|
81
|
+
currency: string;
|
|
82
|
+
id: string;
|
|
83
|
+
lines: SubscriptionLine[];
|
|
84
|
+
period_end: string;
|
|
85
|
+
period_start: string;
|
|
86
|
+
plan: string;
|
|
87
|
+
products: Product[];
|
|
88
|
+
status: string;
|
|
89
|
+
total: number;
|
|
90
|
+
}
|
|
91
|
+
interface Organization extends Tenant {
|
|
92
|
+
addons: Addon[];
|
|
93
|
+
billing_profile: BillingProfile;
|
|
94
|
+
subscription: Subscription;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type { Addon, AuditLogSelectionState, Card, Organization, OrganizationState, SSOConfig, Subscription, Tenant, TenantList, Webhook };
|
|
@@ -23,11 +23,13 @@ __export(constants_exports, {
|
|
|
23
23
|
ARTIFACT_GENERATION_TYPE: () => ARTIFACT_GENERATION_TYPE,
|
|
24
24
|
currentArtifact: () => currentArtifact,
|
|
25
25
|
rootfsImageVersion: () => rootfsImageVersion,
|
|
26
|
+
softwareIndicator: () => softwareIndicator,
|
|
26
27
|
softwareTitleMap: () => softwareTitleMap
|
|
27
28
|
});
|
|
28
29
|
module.exports = __toCommonJS(constants_exports);
|
|
29
30
|
var ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: "single_file" };
|
|
30
31
|
var currentArtifact = "artifact_name";
|
|
32
|
+
var softwareIndicator = ".version";
|
|
31
33
|
var rootfsImageVersion = "rootfs-image.version";
|
|
32
34
|
var softwareTitleMap = { [rootfsImageVersion]: { title: "Root filesystem", priority: 0, key: rootfsImageVersion } };
|
|
33
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -35,6 +37,7 @@ var softwareTitleMap = { [rootfsImageVersion]: { title: "Root filesystem", prior
|
|
|
35
37
|
ARTIFACT_GENERATION_TYPE,
|
|
36
38
|
currentArtifact,
|
|
37
39
|
rootfsImageVersion,
|
|
40
|
+
softwareIndicator,
|
|
38
41
|
softwareTitleMap
|
|
39
42
|
});
|
|
40
43
|
//# sourceMappingURL=constants.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const rootfsImageVersion = 'rootfs-image.version';\nexport const softwareTitleMap = { [rootfsImageVersion]: { title: 'Root filesystem', priority: 0, key: rootfsImageVersion } };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaO,IAAM,2BAA2B,EAAE,aAAa,cAAc;AAE9D,IAAM,kBAAkB;AACxB,IAAM,qBAAqB;AAC3B,IAAM,mBAAmB,EAAE,CAAC,kBAAkB,GAAG,EAAE,OAAO,mBAAmB,UAAU,GAAG,KAAK,mBAAmB,EAAE;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/releasesSlice/constants.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const ARTIFACT_GENERATION_TYPE = { SINGLE_FILE: 'single_file' };\n\nexport const currentArtifact = 'artifact_name';\nexport const softwareIndicator = '.version';\nexport const rootfsImageVersion = 'rootfs-image.version';\nexport const softwareTitleMap = { [rootfsImageVersion]: { title: 'Root filesystem', priority: 0, key: rootfsImageVersion } };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaO,IAAM,2BAA2B,EAAE,aAAa,cAAc;AAE9D,IAAM,kBAAkB;AACxB,IAAM,oBAAoB;AAC1B,IAAM,qBAAqB;AAC3B,IAAM,mBAAmB,EAAE,CAAC,kBAAkB,GAAG,EAAE,OAAO,mBAAmB,UAAU,GAAG,KAAK,mBAAmB,EAAE;","names":[]}
|
|
@@ -2,6 +2,7 @@ declare const ARTIFACT_GENERATION_TYPE: {
|
|
|
2
2
|
SINGLE_FILE: string;
|
|
3
3
|
};
|
|
4
4
|
declare const currentArtifact = "artifact_name";
|
|
5
|
+
declare const softwareIndicator = ".version";
|
|
5
6
|
declare const rootfsImageVersion = "rootfs-image.version";
|
|
6
7
|
declare const softwareTitleMap: {
|
|
7
8
|
"rootfs-image.version": {
|
|
@@ -11,4 +12,4 @@ declare const softwareTitleMap: {
|
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
14
|
|
|
14
|
-
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, softwareTitleMap };
|
|
15
|
+
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, softwareIndicator, softwareTitleMap };
|
|
@@ -2,6 +2,7 @@ declare const ARTIFACT_GENERATION_TYPE: {
|
|
|
2
2
|
SINGLE_FILE: string;
|
|
3
3
|
};
|
|
4
4
|
declare const currentArtifact = "artifact_name";
|
|
5
|
+
declare const softwareIndicator = ".version";
|
|
5
6
|
declare const rootfsImageVersion = "rootfs-image.version";
|
|
6
7
|
declare const softwareTitleMap: {
|
|
7
8
|
"rootfs-image.version": {
|
|
@@ -11,4 +12,4 @@ declare const softwareTitleMap: {
|
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
14
|
|
|
14
|
-
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, softwareTitleMap };
|
|
15
|
+
export { ARTIFACT_GENERATION_TYPE, currentArtifact, rootfsImageVersion, softwareIndicator, softwareTitleMap };
|
|
@@ -2,12 +2,14 @@ import {
|
|
|
2
2
|
ARTIFACT_GENERATION_TYPE,
|
|
3
3
|
currentArtifact,
|
|
4
4
|
rootfsImageVersion,
|
|
5
|
+
softwareIndicator,
|
|
5
6
|
softwareTitleMap
|
|
6
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-2DYA3X77.js";
|
|
7
8
|
export {
|
|
8
9
|
ARTIFACT_GENERATION_TYPE,
|
|
9
10
|
currentArtifact,
|
|
10
11
|
rootfsImageVersion,
|
|
12
|
+
softwareIndicator,
|
|
11
13
|
softwareTitleMap
|
|
12
14
|
};
|
|
13
15
|
//# sourceMappingURL=constants.js.map
|
|
@@ -27,229 +27,12 @@ __export(releasesSlice_exports, {
|
|
|
27
27
|
sliceName: () => sliceName
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(releasesSlice_exports);
|
|
30
|
+
var import_toolkit = require("@reduxjs/toolkit");
|
|
30
31
|
|
|
31
|
-
// src/
|
|
32
|
-
var
|
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
-
var DEVICE_LIST_DEFAULTS = {
|
|
35
|
-
page: 1,
|
|
36
|
-
perPage: 20
|
|
37
|
-
};
|
|
38
|
-
var timeUnits = {
|
|
39
|
-
days: "days",
|
|
40
|
-
minutes: "minutes",
|
|
41
|
-
hours: "hours"
|
|
42
|
-
};
|
|
43
|
-
var DEVICE_FILTERING_OPTIONS = {
|
|
44
|
-
$eq: { key: "$eq", title: "equals", shortform: "=" },
|
|
45
|
-
$ne: { key: "$ne", title: "not equal", shortform: "!=" },
|
|
46
|
-
$gt: {
|
|
47
|
-
key: "$gt",
|
|
48
|
-
title: ">",
|
|
49
|
-
shortform: ">",
|
|
50
|
-
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.'
|
|
51
|
-
},
|
|
52
|
-
$gte: {
|
|
53
|
-
title: ">=",
|
|
54
|
-
shortform: ">=",
|
|
55
|
-
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.'
|
|
56
|
-
},
|
|
57
|
-
$lt: {
|
|
58
|
-
key: "$lt",
|
|
59
|
-
title: "<",
|
|
60
|
-
shortform: "<",
|
|
61
|
-
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.'
|
|
62
|
-
},
|
|
63
|
-
$lte: {
|
|
64
|
-
title: "<=",
|
|
65
|
-
shortform: "<=",
|
|
66
|
-
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.'
|
|
67
|
-
},
|
|
68
|
-
$ltne: {
|
|
69
|
-
key: "$ltne",
|
|
70
|
-
title: "$ltne",
|
|
71
|
-
shortform: "ltne",
|
|
72
|
-
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.'
|
|
73
|
-
},
|
|
74
|
-
$in: {
|
|
75
|
-
key: "$in",
|
|
76
|
-
title: "in",
|
|
77
|
-
shortform: "in",
|
|
78
|
-
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.'
|
|
79
|
-
},
|
|
80
|
-
$nin: {
|
|
81
|
-
key: "$nin",
|
|
82
|
-
title: "not in",
|
|
83
|
-
shortform: "not in",
|
|
84
|
-
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.`
|
|
85
|
-
},
|
|
86
|
-
$exists: {
|
|
87
|
-
key: "$exists",
|
|
88
|
-
title: "exists",
|
|
89
|
-
shortform: "exists",
|
|
90
|
-
value: true,
|
|
91
|
-
help: `The "exists" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`
|
|
92
|
-
},
|
|
93
|
-
$nexists: {
|
|
94
|
-
key: "$nexists",
|
|
95
|
-
title: `doesn't exist`,
|
|
96
|
-
shortform: `doesn't exist`,
|
|
97
|
-
value: true,
|
|
98
|
-
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.`
|
|
99
|
-
},
|
|
100
|
-
$regex: {
|
|
101
|
-
key: "$regex",
|
|
102
|
-
title: `matches regular expression`,
|
|
103
|
-
shortform: `matches`,
|
|
104
|
-
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.`
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
var DEVICE_ISSUE_OPTIONS = {
|
|
108
|
-
issues: {
|
|
109
|
-
isCategory: true,
|
|
110
|
-
key: "issues",
|
|
111
|
-
title: "Devices with issues",
|
|
112
|
-
filterRule: {}
|
|
113
|
-
},
|
|
114
|
-
offline: {
|
|
115
|
-
issueCategory: "issues",
|
|
116
|
-
key: "offline",
|
|
117
|
-
needsFullFiltering: true,
|
|
118
|
-
needsMonitor: false,
|
|
119
|
-
needsReporting: false,
|
|
120
|
-
filterRule: {
|
|
121
|
-
scope: "system",
|
|
122
|
-
key: "check_in_time",
|
|
123
|
-
operator: DEVICE_FILTERING_OPTIONS.$ltne.key,
|
|
124
|
-
value: ({ offlineThreshold }) => offlineThreshold
|
|
125
|
-
},
|
|
126
|
-
title: "Offline devices"
|
|
127
|
-
},
|
|
128
|
-
failedLastUpdate: {
|
|
129
|
-
issueCategory: "issues",
|
|
130
|
-
key: "failedLastUpdate",
|
|
131
|
-
needsFullFiltering: false,
|
|
132
|
-
needsMonitor: false,
|
|
133
|
-
needsReporting: true,
|
|
134
|
-
filterRule: { scope: "monitor", key: "failed_last_update", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
135
|
-
title: "Deployment failed"
|
|
136
|
-
},
|
|
137
|
-
monitoring: {
|
|
138
|
-
issueCategory: "issues",
|
|
139
|
-
key: "monitoring",
|
|
140
|
-
needsFullFiltering: false,
|
|
141
|
-
needsMonitor: true,
|
|
142
|
-
needsReporting: false,
|
|
143
|
-
filterRule: { scope: "monitor", key: "alerts", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
144
|
-
title: "Monitoring alert"
|
|
145
|
-
},
|
|
146
|
-
authRequests: {
|
|
147
|
-
key: "authRequests",
|
|
148
|
-
needsFullFiltering: false,
|
|
149
|
-
needsMonitor: false,
|
|
150
|
-
needsReporting: true,
|
|
151
|
-
filterRule: { scope: "monitor", key: "auth_requests", operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },
|
|
152
|
-
title: "Devices with new authentication requests"
|
|
153
|
-
},
|
|
154
|
-
gatewayDevices: {
|
|
155
|
-
key: "gatewayDevices",
|
|
156
|
-
needsFullFiltering: false,
|
|
157
|
-
needsMonitor: false,
|
|
158
|
-
needsReporting: true,
|
|
159
|
-
filterRule: { scope: "inventory", key: "mender_is_gateway", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: "true" },
|
|
160
|
-
title: "Gateway devices"
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
var oneSecond = 1e3;
|
|
164
|
-
var TIMEOUTS = {
|
|
165
|
-
debounceDefault: 700,
|
|
166
|
-
debounceShort: 300,
|
|
167
|
-
halfASecond: 0.5 * oneSecond,
|
|
168
|
-
oneSecond,
|
|
169
|
-
twoSeconds: 2 * oneSecond,
|
|
170
|
-
threeSeconds: 3 * oneSecond,
|
|
171
|
-
fiveSeconds: 5 * oneSecond,
|
|
172
|
-
refreshDefault: 10 * oneSecond,
|
|
173
|
-
refreshLong: 60 * oneSecond
|
|
174
|
-
};
|
|
175
|
-
var SORTING_OPTIONS = {
|
|
176
|
-
asc: "asc",
|
|
177
|
-
desc: "desc"
|
|
178
|
-
};
|
|
179
|
-
var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
|
|
180
|
-
var ATTRIBUTE_SCOPES = {
|
|
181
|
-
inventory: "inventory",
|
|
182
|
-
identity: "identity",
|
|
183
|
-
monitor: "monitor",
|
|
184
|
-
system: "system",
|
|
185
|
-
tags: "tags"
|
|
186
|
-
};
|
|
187
|
-
var defaultIdAttribute = Object.freeze({ attribute: "id", scope: ATTRIBUTE_SCOPES.identity });
|
|
188
|
-
var credentialTypes = {
|
|
189
|
-
aws: "aws",
|
|
190
|
-
http: "http",
|
|
191
|
-
sas: "sas",
|
|
192
|
-
x509: "x509"
|
|
193
|
-
};
|
|
194
|
-
var EXTERNAL_PROVIDER = {
|
|
195
|
-
"iot-core": {
|
|
196
|
-
credentialsType: credentialTypes.aws,
|
|
197
|
-
icon: import_js.mdiAws,
|
|
198
|
-
title: "AWS IoT Core",
|
|
199
|
-
twinTitle: "Device Shadow",
|
|
200
|
-
provider: "iot-core",
|
|
201
|
-
enabled: true,
|
|
202
|
-
deviceTwin: true,
|
|
203
|
-
configHint: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "For help finding your AWS IoT Core connection string, check the AWS IoT documentation." })
|
|
204
|
-
},
|
|
205
|
-
"iot-hub": {
|
|
206
|
-
credentialsType: credentialTypes.sas,
|
|
207
|
-
icon: import_js.mdiMicrosoftAzure,
|
|
208
|
-
title: "Azure IoT Hub",
|
|
209
|
-
twinTitle: "Device Twin",
|
|
210
|
-
provider: "iot-hub",
|
|
211
|
-
enabled: true,
|
|
212
|
-
deviceTwin: true,
|
|
213
|
-
configHint: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
214
|
-
"For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described",
|
|
215
|
-
" ",
|
|
216
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
217
|
-
"a",
|
|
218
|
-
{
|
|
219
|
-
href: "https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn",
|
|
220
|
-
target: "_blank",
|
|
221
|
-
rel: "noopener noreferrer",
|
|
222
|
-
children: "here"
|
|
223
|
-
}
|
|
224
|
-
),
|
|
225
|
-
"."
|
|
226
|
-
] })
|
|
227
|
-
},
|
|
228
|
-
webhook: {
|
|
229
|
-
credentialsType: credentialTypes.http,
|
|
230
|
-
deviceTwin: false,
|
|
231
|
-
// disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.
|
|
232
|
-
enabled: false,
|
|
233
|
-
provider: "webhook"
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
var emptyUiPermissions = Object.freeze({
|
|
237
|
-
auditlog: [],
|
|
238
|
-
deployments: [],
|
|
239
|
-
groups: Object.freeze({}),
|
|
240
|
-
releases: Object.freeze({}),
|
|
241
|
-
tenantManagement: [],
|
|
242
|
-
userManagement: []
|
|
243
|
-
});
|
|
244
|
-
var emptyRole = Object.freeze({
|
|
245
|
-
name: void 0,
|
|
246
|
-
description: "",
|
|
247
|
-
permissions: [],
|
|
248
|
-
uiPermissions: Object.freeze({ ...emptyUiPermissions })
|
|
249
|
-
});
|
|
32
|
+
// src/constants.ts
|
|
33
|
+
var import_constants = require("@northern.tech/utils/constants");
|
|
250
34
|
|
|
251
35
|
// src/releasesSlice/index.ts
|
|
252
|
-
var import_toolkit = require("@reduxjs/toolkit");
|
|
253
36
|
var sliceName = "releases";
|
|
254
37
|
var initialState = {
|
|
255
38
|
/*
|
|
@@ -291,12 +74,12 @@ var initialState = {
|
|
|
291
74
|
*/
|
|
292
75
|
},
|
|
293
76
|
releasesList: {
|
|
294
|
-
...DEVICE_LIST_DEFAULTS,
|
|
77
|
+
...import_constants.DEVICE_LIST_DEFAULTS,
|
|
295
78
|
searchedIds: [],
|
|
296
79
|
releaseIds: [],
|
|
297
80
|
selection: [],
|
|
298
81
|
sort: {
|
|
299
|
-
direction: SORTING_OPTIONS.desc,
|
|
82
|
+
direction: import_constants.SORTING_OPTIONS.desc,
|
|
300
83
|
key: "modified"
|
|
301
84
|
},
|
|
302
85
|
isLoading: void 0,
|