@northern.tech/store 0.2.1 → 0.3.1
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 +1812 -0
- package/dist/actions.cjs.map +1 -0
- package/dist/actions.js +18 -1860
- package/dist/actions.js.map +1 -1
- package/dist/api/general-api.cjs +336 -0
- package/dist/api/general-api.cjs.map +1 -0
- package/dist/api/general-api.js +15 -1051
- package/dist/api/general-api.js.map +1 -1
- package/dist/api/users-api.cjs +342 -0
- package/dist/api/users-api.cjs.map +1 -0
- package/dist/api/users-api.js +12 -1062
- package/dist/api/users-api.js.map +1 -1
- package/dist/appSlice/constants.cjs +207 -0
- package/dist/appSlice/constants.cjs.map +1 -0
- package/dist/appSlice/{constants.d.mts → constants.d.cts} +12 -1
- package/dist/appSlice/constants.d.ts +12 -1
- package/dist/appSlice/constants.js +39 -181
- package/dist/appSlice/constants.js.map +1 -1
- package/dist/appSlice/index.cjs +393 -0
- package/dist/appSlice/index.cjs.map +1 -0
- package/dist/appSlice/index.js +18 -1112
- package/dist/appSlice/index.js.map +1 -1
- package/dist/appSlice/selectors.cjs +58 -0
- package/dist/appSlice/selectors.cjs.map +1 -0
- package/dist/appSlice/selectors.js +17 -46
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.cjs +4670 -0
- package/dist/appSlice/thunks.cjs.map +1 -0
- package/dist/appSlice/thunks.js +42 -5750
- package/dist/appSlice/thunks.js.map +1 -1
- package/dist/auth.cjs +320 -0
- package/dist/auth.cjs.map +1 -0
- package/dist/auth.js +20 -1031
- package/dist/auth.js.map +1 -1
- package/dist/{chunk-5VNQCCAQ.mjs → chunk-25AKG5HH.js} +5 -2
- package/dist/chunk-25AKG5HH.js.map +1 -0
- package/dist/{chunk-NJNSCJEY.mjs → chunk-2RJIDREZ.js} +21 -24
- package/dist/chunk-2RJIDREZ.js.map +1 -0
- package/dist/{chunk-QQBUNZHA.mjs → chunk-4B3IMP4I.js} +17 -12
- package/dist/{chunk-QQBUNZHA.mjs.map → chunk-4B3IMP4I.js.map} +1 -1
- package/dist/{chunk-3ORTTLIB.mjs → chunk-7PVGDMNM.js} +2 -2
- package/dist/{chunk-IFWKT27G.mjs → chunk-A6CT6GTI.js} +3 -3
- package/dist/{chunk-ZK4W5T53.mjs → chunk-AMGWP7A4.js} +2 -2
- package/dist/{chunk-KJAZNKV2.mjs → chunk-ANB5BM5J.js} +29 -29
- package/dist/{chunk-DIZJVB6M.mjs → chunk-APHL4JZP.js} +77 -433
- package/dist/chunk-APHL4JZP.js.map +1 -0
- package/dist/{chunk-G4FGNSV3.mjs → chunk-CK6YE6AN.js} +1 -1
- package/dist/{chunk-4SDUITD4.mjs → chunk-CYV6632F.js} +2 -2
- package/dist/{chunk-JA27QXVB.mjs → chunk-E5LEU5PF.js} +3 -3
- package/dist/{chunk-B42NUKMZ.mjs → chunk-FGKMJS3B.js} +1 -1
- package/dist/{chunk-WYHJFSMQ.mjs → chunk-JAROCU6M.js} +3 -3
- package/dist/{chunk-QBKCUIWO.mjs → chunk-JIS4PA3R.js} +1 -1
- package/dist/{chunk-XD7INCM4.mjs → chunk-KAQJH2YL.js} +4 -4
- package/dist/{chunk-2Z3RFYW4.mjs → chunk-LIJIIRON.js} +1 -1
- package/dist/{chunk-O6TYYKSD.mjs → chunk-MDC7Y3EX.js} +20 -70
- package/dist/chunk-MDC7Y3EX.js.map +1 -0
- package/dist/{chunk-IU4OXOPA.mjs → chunk-MRCFLG45.js} +1 -1
- package/dist/{chunk-WCUGLHYM.mjs → chunk-NI4SZOCF.js} +13 -13
- package/dist/chunk-NMAXZ3ZY.js +1 -0
- package/dist/{chunk-H5UCKQWK.mjs → chunk-NNADGHSL.js} +16 -16
- package/dist/{chunk-K2NZL5V4.mjs → chunk-Q6M5TTDQ.js} +2 -2
- package/dist/{chunk-CHUCIHMY.mjs → chunk-RX55KAKX.js} +2 -2
- package/dist/{chunk-ZE7R2XXE.mjs → chunk-UEP36GCI.js} +3 -3
- package/dist/{chunk-XC5UXEIB.mjs → chunk-VOCOFE4I.js} +2 -2
- package/dist/{chunk-R7LXL3KJ.mjs → chunk-XTRPX7JZ.js} +3 -3
- package/dist/{chunk-6CSGHZ3E.mjs → chunk-XXHONFSQ.js} +3 -3
- package/dist/{chunk-KPPU6OWF.mjs → chunk-YETZPQFR.js} +4 -19
- package/dist/chunk-YETZPQFR.js.map +1 -0
- package/dist/{chunk-KZSTW27Q.mjs → chunk-YGBFDXXA.js} +2 -2
- package/dist/{chunk-H2PQQMRY.mjs → chunk-YO22XLHI.js} +1 -1
- package/dist/{chunk-65YIOCCD.mjs → chunk-YT73QWCN.js} +3 -3
- package/dist/{chunk-AZRVRNXT.mjs → chunk-YTQUNAZP.js} +3 -3
- package/dist/commonConstants.cjs +285 -0
- package/dist/commonConstants.cjs.map +1 -0
- package/dist/{commonConstants.d.mts → commonConstants.d.cts} +3 -3
- package/dist/commonConstants.d.ts +3 -3
- package/dist/commonConstants.js +37 -268
- package/dist/commonConstants.js.map +1 -1
- package/dist/commonSelectors.cjs +1487 -0
- package/dist/commonSelectors.cjs.map +1 -0
- package/dist/commonSelectors.js +53 -1500
- package/dist/commonSelectors.js.map +1 -1
- package/dist/constants.cjs +1297 -0
- package/dist/constants.cjs.map +1 -0
- package/dist/{constants.d.mts → constants.d.cts} +10 -10
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +220 -1189
- package/dist/constants.js.map +1 -1
- package/dist/deploymentdevicehook.cjs +4686 -0
- package/dist/deploymentdevicehook.cjs.map +1 -0
- package/dist/deploymentdevicehook.d.cts +3 -0
- package/dist/deploymentdevicehook.d.ts +3 -0
- package/dist/deploymentdevicehook.js +60 -0
- package/dist/deploymentdevicehook.js.map +1 -0
- package/dist/deploymentsSlice/constants.cjs +562 -0
- package/dist/deploymentsSlice/constants.cjs.map +1 -0
- package/dist/deploymentsSlice/constants.js +39 -1006
- package/dist/deploymentsSlice/constants.js.map +1 -1
- package/dist/deploymentsSlice/index.cjs +648 -0
- package/dist/deploymentsSlice/index.cjs.map +1 -0
- package/dist/deploymentsSlice/index.js +18 -1104
- package/dist/deploymentsSlice/index.js.map +1 -1
- package/dist/deploymentsSlice/selectors.cjs +561 -0
- package/dist/deploymentsSlice/selectors.cjs.map +1 -0
- package/dist/deploymentsSlice/selectors.js +22 -1014
- package/dist/deploymentsSlice/selectors.js.map +1 -1
- package/dist/deploymentsSlice/thunks.cjs +4686 -0
- package/dist/deploymentsSlice/thunks.cjs.map +1 -0
- package/dist/deploymentsSlice/thunks.js +60 -5757
- package/dist/deploymentsSlice/thunks.js.map +1 -1
- package/dist/devicesSlice/constants.cjs +435 -0
- package/dist/devicesSlice/constants.cjs.map +1 -0
- package/dist/devicesSlice/constants.js +37 -1007
- package/dist/devicesSlice/constants.js.map +1 -1
- package/dist/devicesSlice/index.cjs +586 -0
- package/dist/devicesSlice/index.cjs.map +1 -0
- package/dist/devicesSlice/index.js +18 -1161
- package/dist/devicesSlice/index.js.map +1 -1
- package/dist/devicesSlice/selectors.cjs +531 -0
- package/dist/devicesSlice/selectors.cjs.map +1 -0
- package/dist/devicesSlice/selectors.js +50 -1097
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.cjs +4758 -0
- package/dist/devicesSlice/thunks.cjs.map +1 -0
- package/dist/devicesSlice/{thunks.d.mts → thunks.d.cts} +3 -3
- package/dist/devicesSlice/thunks.d.ts +3 -3
- package/dist/devicesSlice/thunks.js +132 -5793
- package/dist/devicesSlice/thunks.js.map +1 -1
- package/dist/monitorSlice/constants.cjs +165 -0
- package/dist/monitorSlice/constants.cjs.map +1 -0
- package/dist/monitorSlice/constants.js +11 -970
- package/dist/monitorSlice/constants.js.map +1 -1
- package/dist/monitorSlice/index.cjs +435 -0
- package/dist/monitorSlice/index.cjs.map +1 -0
- package/dist/monitorSlice/index.js +18 -1022
- package/dist/monitorSlice/index.js.map +1 -1
- package/dist/monitorSlice/selectors.cjs +31 -0
- package/dist/monitorSlice/selectors.cjs.map +1 -0
- package/dist/monitorSlice/selectors.js +5 -25
- package/dist/monitorSlice/selectors.js.map +1 -1
- package/dist/monitorSlice/thunks.cjs +2623 -0
- package/dist/monitorSlice/thunks.cjs.map +1 -0
- package/dist/monitorSlice/{thunks.d.mts → thunks.d.cts} +1 -1
- package/dist/monitorSlice/thunks.d.ts +1 -1
- package/dist/monitorSlice/thunks.js +41 -2624
- package/dist/monitorSlice/thunks.js.map +1 -1
- package/dist/onboardingSlice/constants.cjs +71 -0
- package/dist/onboardingSlice/constants.cjs.map +1 -0
- package/dist/onboardingSlice/constants.js +7 -64
- package/dist/onboardingSlice/constants.js.map +1 -1
- package/dist/onboardingSlice/index.cjs +80 -0
- package/dist/onboardingSlice/index.cjs.map +1 -0
- package/dist/onboardingSlice/index.js +13 -71
- package/dist/onboardingSlice/index.js.map +1 -1
- package/dist/onboardingSlice/selectors.cjs +31 -0
- package/dist/onboardingSlice/selectors.cjs.map +1 -0
- package/dist/onboardingSlice/selectors.js +5 -25
- package/dist/onboardingSlice/selectors.js.map +1 -1
- package/dist/onboardingSlice/thunks.cjs +4774 -0
- package/dist/onboardingSlice/thunks.cjs.map +1 -0
- package/dist/onboardingSlice/thunks.js +48 -5753
- package/dist/onboardingSlice/thunks.js.map +1 -1
- package/dist/organizationSlice/constants.cjs +830 -0
- package/dist/organizationSlice/constants.cjs.map +1 -0
- package/dist/organizationSlice/constants.js +33 -1014
- package/dist/organizationSlice/constants.js.map +1 -1
- package/dist/organizationSlice/index.cjs +505 -0
- package/dist/organizationSlice/index.cjs.map +1 -0
- package/dist/organizationSlice/index.js +18 -1067
- package/dist/organizationSlice/index.js.map +1 -1
- package/dist/organizationSlice/selectors.cjs +300 -0
- package/dist/organizationSlice/selectors.cjs.map +1 -0
- package/dist/organizationSlice/selectors.js +36 -1013
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.cjs +5006 -0
- package/dist/organizationSlice/thunks.cjs.map +1 -0
- package/dist/organizationSlice/{thunks.d.mts → thunks.d.cts} +2 -2
- package/dist/organizationSlice/thunks.d.ts +2 -2
- package/dist/organizationSlice/thunks.js +98 -5776
- package/dist/organizationSlice/thunks.js.map +1 -1
- package/dist/releasesSlice/constants.cjs +40 -0
- package/dist/releasesSlice/constants.cjs.map +1 -0
- package/dist/releasesSlice/constants.js +11 -31
- package/dist/releasesSlice/constants.js.map +1 -1
- package/dist/releasesSlice/index.cjs +355 -0
- package/dist/releasesSlice/index.cjs.map +1 -0
- package/dist/releasesSlice/index.js +18 -1070
- package/dist/releasesSlice/index.js.map +1 -1
- package/dist/releasesSlice/selectors.cjs +290 -0
- package/dist/releasesSlice/selectors.cjs.map +1 -0
- package/dist/releasesSlice/selectors.js +25 -1009
- package/dist/releasesSlice/selectors.js.map +1 -1
- package/dist/releasesSlice/thunks.cjs +2896 -0
- package/dist/releasesSlice/thunks.cjs.map +1 -0
- package/dist/releasesSlice/{thunks.d.mts → thunks.d.cts} +1 -1
- package/dist/releasesSlice/thunks.d.ts +1 -1
- package/dist/releasesSlice/thunks.js +63 -2931
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/selectors.cjs +1641 -0
- package/dist/selectors.cjs.map +1 -0
- package/dist/{selectors.d.mts → selectors.d.cts} +9 -9
- package/dist/selectors.js +206 -1582
- package/dist/selectors.js.map +1 -1
- package/dist/store.cjs +1932 -0
- package/dist/store.cjs.map +1 -0
- package/dist/store.js +28 -1980
- package/dist/store.js.map +1 -1
- package/dist/storehooks.cjs +5565 -0
- package/dist/storehooks.cjs.map +1 -0
- package/dist/storehooks.js +122 -5802
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +5675 -0
- package/dist/thunks.cjs.map +1 -0
- package/dist/{thunks.d.mts → thunks.d.cts} +8 -8
- package/dist/thunks.js +360 -5910
- package/dist/thunks.js.map +1 -1
- package/dist/usersSlice/constants.cjs +798 -0
- package/dist/usersSlice/constants.cjs.map +1 -0
- package/dist/usersSlice/constants.js +42 -1001
- package/dist/usersSlice/constants.js.map +1 -1
- package/dist/usersSlice/index.cjs +890 -0
- package/dist/usersSlice/index.cjs.map +1 -0
- package/dist/usersSlice/index.js +18 -1107
- package/dist/usersSlice/index.js.map +1 -1
- package/dist/usersSlice/selectors.cjs +826 -0
- package/dist/usersSlice/selectors.cjs.map +1 -0
- package/dist/usersSlice/selectors.js +35 -1034
- package/dist/usersSlice/selectors.js.map +1 -1
- package/dist/usersSlice/thunks.cjs +4732 -0
- package/dist/usersSlice/thunks.cjs.map +1 -0
- package/dist/usersSlice/thunks.js +106 -5780
- package/dist/usersSlice/thunks.js.map +1 -1
- package/dist/utils.cjs +739 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/{utils.d.mts → utils.d.cts} +1 -3
- package/dist/utils.d.ts +1 -3
- package/dist/utils.js +42 -1186
- package/dist/utils.js.map +1 -1
- package/package.json +78 -52
- package/dist/actions.mjs +0 -21
- package/dist/api/general-api.mjs +0 -18
- package/dist/api/general-api.mjs.map +0 -1
- package/dist/api/users-api.mjs +0 -15
- package/dist/api/users-api.mjs.map +0 -1
- package/dist/appSlice/constants.mjs +0 -42
- package/dist/appSlice/constants.mjs.map +0 -1
- package/dist/appSlice/index.mjs +0 -21
- package/dist/appSlice/index.mjs.map +0 -1
- package/dist/appSlice/selectors.mjs +0 -20
- package/dist/appSlice/selectors.mjs.map +0 -1
- package/dist/appSlice/thunks.mjs +0 -45
- package/dist/appSlice/thunks.mjs.map +0 -1
- package/dist/auth.mjs +0 -23
- package/dist/auth.mjs.map +0 -1
- package/dist/chunk-5VNQCCAQ.mjs.map +0 -1
- package/dist/chunk-DIZJVB6M.mjs.map +0 -1
- package/dist/chunk-KPPU6OWF.mjs.map +0 -1
- package/dist/chunk-LZOMFHX3.mjs +0 -38
- package/dist/chunk-LZOMFHX3.mjs.map +0 -1
- package/dist/chunk-NJNSCJEY.mjs.map +0 -1
- package/dist/chunk-O6TYYKSD.mjs.map +0 -1
- package/dist/chunk-V32GTKOS.mjs +0 -1
- package/dist/chunk-V32GTKOS.mjs.map +0 -1
- package/dist/commonConstants.mjs +0 -40
- package/dist/commonConstants.mjs.map +0 -1
- package/dist/commonSelectors.mjs +0 -56
- package/dist/commonSelectors.mjs.map +0 -1
- package/dist/constants.mjs +0 -223
- package/dist/constants.mjs.map +0 -1
- package/dist/deploymentsSlice/constants.mjs +0 -42
- package/dist/deploymentsSlice/constants.mjs.map +0 -1
- package/dist/deploymentsSlice/index.mjs +0 -21
- package/dist/deploymentsSlice/index.mjs.map +0 -1
- package/dist/deploymentsSlice/selectors.mjs +0 -25
- package/dist/deploymentsSlice/selectors.mjs.map +0 -1
- package/dist/deploymentsSlice/thunks.mjs +0 -63
- package/dist/deploymentsSlice/thunks.mjs.map +0 -1
- package/dist/devicesSlice/constants.mjs +0 -40
- package/dist/devicesSlice/constants.mjs.map +0 -1
- package/dist/devicesSlice/index.mjs +0 -21
- package/dist/devicesSlice/index.mjs.map +0 -1
- package/dist/devicesSlice/selectors.mjs +0 -53
- package/dist/devicesSlice/selectors.mjs.map +0 -1
- package/dist/devicesSlice/thunks.mjs +0 -135
- package/dist/devicesSlice/thunks.mjs.map +0 -1
- package/dist/monitorSlice/constants.mjs +0 -14
- package/dist/monitorSlice/constants.mjs.map +0 -1
- package/dist/monitorSlice/index.mjs +0 -21
- package/dist/monitorSlice/index.mjs.map +0 -1
- package/dist/monitorSlice/selectors.mjs +0 -8
- package/dist/monitorSlice/selectors.mjs.map +0 -1
- package/dist/monitorSlice/thunks.mjs +0 -44
- package/dist/monitorSlice/thunks.mjs.map +0 -1
- package/dist/onboardingSlice/constants.mjs +0 -10
- package/dist/onboardingSlice/constants.mjs.map +0 -1
- package/dist/onboardingSlice/index.mjs +0 -16
- package/dist/onboardingSlice/index.mjs.map +0 -1
- package/dist/onboardingSlice/selectors.mjs +0 -8
- package/dist/onboardingSlice/selectors.mjs.map +0 -1
- package/dist/onboardingSlice/thunks.mjs +0 -51
- package/dist/onboardingSlice/thunks.mjs.map +0 -1
- package/dist/organizationSlice/constants.mjs +0 -36
- package/dist/organizationSlice/constants.mjs.map +0 -1
- package/dist/organizationSlice/index.mjs +0 -21
- package/dist/organizationSlice/index.mjs.map +0 -1
- package/dist/organizationSlice/selectors.mjs +0 -39
- package/dist/organizationSlice/selectors.mjs.map +0 -1
- package/dist/organizationSlice/thunks.mjs +0 -101
- package/dist/organizationSlice/thunks.mjs.map +0 -1
- package/dist/releasesSlice/constants.mjs +0 -14
- package/dist/releasesSlice/constants.mjs.map +0 -1
- package/dist/releasesSlice/index.mjs +0 -21
- package/dist/releasesSlice/index.mjs.map +0 -1
- package/dist/releasesSlice/selectors.mjs +0 -28
- package/dist/releasesSlice/selectors.mjs.map +0 -1
- package/dist/releasesSlice/thunks.mjs +0 -66
- package/dist/releasesSlice/thunks.mjs.map +0 -1
- package/dist/selectors.mjs +0 -209
- package/dist/selectors.mjs.map +0 -1
- package/dist/store.mjs +0 -32
- package/dist/store.mjs.map +0 -1
- package/dist/storehooks.mjs +0 -282
- package/dist/storehooks.mjs.map +0 -1
- package/dist/thunks.mjs +0 -363
- package/dist/thunks.mjs.map +0 -1
- package/dist/usersSlice/constants.mjs +0 -45
- package/dist/usersSlice/constants.mjs.map +0 -1
- package/dist/usersSlice/index.mjs +0 -21
- package/dist/usersSlice/index.mjs.map +0 -1
- package/dist/usersSlice/selectors.mjs +0 -38
- package/dist/usersSlice/selectors.mjs.map +0 -1
- package/dist/usersSlice/thunks.mjs +0 -109
- package/dist/usersSlice/thunks.mjs.map +0 -1
- package/dist/utils.mjs +0 -49
- package/dist/utils.mjs.map +0 -1
- /package/dist/{actions.d.mts → actions.d.cts} +0 -0
- /package/dist/api/{general-api.d.mts → general-api.d.cts} +0 -0
- /package/dist/api/{users-api.d.mts → users-api.d.cts} +0 -0
- /package/dist/appSlice/{index.d.mts → index.d.cts} +0 -0
- /package/dist/appSlice/{selectors.d.mts → selectors.d.cts} +0 -0
- /package/dist/appSlice/{thunks.d.mts → thunks.d.cts} +0 -0
- /package/dist/{auth.d.mts → auth.d.cts} +0 -0
- /package/dist/{chunk-3ORTTLIB.mjs.map → chunk-7PVGDMNM.js.map} +0 -0
- /package/dist/{chunk-IFWKT27G.mjs.map → chunk-A6CT6GTI.js.map} +0 -0
- /package/dist/{chunk-ZK4W5T53.mjs.map → chunk-AMGWP7A4.js.map} +0 -0
- /package/dist/{chunk-KJAZNKV2.mjs.map → chunk-ANB5BM5J.js.map} +0 -0
- /package/dist/{chunk-G4FGNSV3.mjs.map → chunk-CK6YE6AN.js.map} +0 -0
- /package/dist/{chunk-4SDUITD4.mjs.map → chunk-CYV6632F.js.map} +0 -0
- /package/dist/{chunk-JA27QXVB.mjs.map → chunk-E5LEU5PF.js.map} +0 -0
- /package/dist/{chunk-B42NUKMZ.mjs.map → chunk-FGKMJS3B.js.map} +0 -0
- /package/dist/{chunk-WYHJFSMQ.mjs.map → chunk-JAROCU6M.js.map} +0 -0
- /package/dist/{chunk-QBKCUIWO.mjs.map → chunk-JIS4PA3R.js.map} +0 -0
- /package/dist/{chunk-XD7INCM4.mjs.map → chunk-KAQJH2YL.js.map} +0 -0
- /package/dist/{chunk-2Z3RFYW4.mjs.map → chunk-LIJIIRON.js.map} +0 -0
- /package/dist/{chunk-IU4OXOPA.mjs.map → chunk-MRCFLG45.js.map} +0 -0
- /package/dist/{chunk-WCUGLHYM.mjs.map → chunk-NI4SZOCF.js.map} +0 -0
- /package/dist/{actions.mjs.map → chunk-NMAXZ3ZY.js.map} +0 -0
- /package/dist/{chunk-H5UCKQWK.mjs.map → chunk-NNADGHSL.js.map} +0 -0
- /package/dist/{chunk-K2NZL5V4.mjs.map → chunk-Q6M5TTDQ.js.map} +0 -0
- /package/dist/{chunk-CHUCIHMY.mjs.map → chunk-RX55KAKX.js.map} +0 -0
- /package/dist/{chunk-ZE7R2XXE.mjs.map → chunk-UEP36GCI.js.map} +0 -0
- /package/dist/{chunk-XC5UXEIB.mjs.map → chunk-VOCOFE4I.js.map} +0 -0
- /package/dist/{chunk-R7LXL3KJ.mjs.map → chunk-XTRPX7JZ.js.map} +0 -0
- /package/dist/{chunk-6CSGHZ3E.mjs.map → chunk-XXHONFSQ.js.map} +0 -0
- /package/dist/{chunk-KZSTW27Q.mjs.map → chunk-YGBFDXXA.js.map} +0 -0
- /package/dist/{chunk-H2PQQMRY.mjs.map → chunk-YO22XLHI.js.map} +0 -0
- /package/dist/{chunk-65YIOCCD.mjs.map → chunk-YT73QWCN.js.map} +0 -0
- /package/dist/{chunk-AZRVRNXT.mjs.map → chunk-YTQUNAZP.js.map} +0 -0
- /package/dist/{commonSelectors.d.mts → commonSelectors.d.cts} +0 -0
- /package/dist/deploymentsSlice/{constants.d.mts → constants.d.cts} +0 -0
- /package/dist/deploymentsSlice/{index.d.mts → index.d.cts} +0 -0
- /package/dist/deploymentsSlice/{selectors.d.mts → selectors.d.cts} +0 -0
- /package/dist/deploymentsSlice/{thunks.d.mts → thunks.d.cts} +0 -0
- /package/dist/devicesSlice/{constants.d.mts → constants.d.cts} +0 -0
- /package/dist/devicesSlice/{index.d.mts → index.d.cts} +0 -0
- /package/dist/devicesSlice/{selectors.d.mts → selectors.d.cts} +0 -0
- /package/dist/monitorSlice/{constants.d.mts → constants.d.cts} +0 -0
- /package/dist/monitorSlice/{index.d.mts → index.d.cts} +0 -0
- /package/dist/monitorSlice/{selectors.d.mts → selectors.d.cts} +0 -0
- /package/dist/onboardingSlice/{constants.d.mts → constants.d.cts} +0 -0
- /package/dist/onboardingSlice/{index.d.mts → index.d.cts} +0 -0
- /package/dist/onboardingSlice/{selectors.d.mts → selectors.d.cts} +0 -0
- /package/dist/onboardingSlice/{thunks.d.mts → thunks.d.cts} +0 -0
- /package/dist/organizationSlice/{constants.d.mts → constants.d.cts} +0 -0
- /package/dist/organizationSlice/{index.d.mts → index.d.cts} +0 -0
- /package/dist/organizationSlice/{selectors.d.mts → selectors.d.cts} +0 -0
- /package/dist/releasesSlice/{constants.d.mts → constants.d.cts} +0 -0
- /package/dist/releasesSlice/{index.d.mts → index.d.cts} +0 -0
- /package/dist/releasesSlice/{selectors.d.mts → selectors.d.cts} +0 -0
- /package/dist/{store.d.mts → store.d.cts} +0 -0
- /package/dist/{storehooks.d.mts → storehooks.d.cts} +0 -0
- /package/dist/usersSlice/{constants.d.mts → constants.d.cts} +0 -0
- /package/dist/usersSlice/{index.d.mts → index.d.cts} +0 -0
- /package/dist/usersSlice/{selectors.d.mts → selectors.d.cts} +0 -0
- /package/dist/usersSlice/{thunks.d.mts → thunks.d.cts} +0 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/commonConstants.tsx
|
|
21
|
+
var commonConstants_exports = {};
|
|
22
|
+
__export(commonConstants_exports, {
|
|
23
|
+
ALL_DEVICES: () => ALL_DEVICES,
|
|
24
|
+
ALL_RELEASES: () => ALL_RELEASES,
|
|
25
|
+
ATTRIBUTE_SCOPES: () => ATTRIBUTE_SCOPES,
|
|
26
|
+
DEVICE_FILTERING_OPTIONS: () => DEVICE_FILTERING_OPTIONS,
|
|
27
|
+
DEVICE_ISSUE_OPTIONS: () => DEVICE_ISSUE_OPTIONS,
|
|
28
|
+
DEVICE_LIST_DEFAULTS: () => DEVICE_LIST_DEFAULTS,
|
|
29
|
+
DEVICE_LIST_MAXIMUM_LENGTH: () => DEVICE_LIST_MAXIMUM_LENGTH,
|
|
30
|
+
DEVICE_ONLINE_CUTOFF: () => DEVICE_ONLINE_CUTOFF,
|
|
31
|
+
EXTERNAL_PROVIDER: () => EXTERNAL_PROVIDER,
|
|
32
|
+
MAX_PAGE_SIZE: () => MAX_PAGE_SIZE,
|
|
33
|
+
SORTING_OPTIONS: () => SORTING_OPTIONS,
|
|
34
|
+
TIMEOUTS: () => TIMEOUTS,
|
|
35
|
+
UNGROUPED_GROUP: () => UNGROUPED_GROUP,
|
|
36
|
+
defaultIdAttribute: () => defaultIdAttribute,
|
|
37
|
+
emptyRole: () => emptyRole,
|
|
38
|
+
emptyUiPermissions: () => emptyUiPermissions,
|
|
39
|
+
timeUnits: () => timeUnits
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(commonConstants_exports);
|
|
42
|
+
var import_js = require("@mdi/js");
|
|
43
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
|
+
var DEVICE_LIST_DEFAULTS = {
|
|
45
|
+
page: 1,
|
|
46
|
+
perPage: 20
|
|
47
|
+
};
|
|
48
|
+
var timeUnits = {
|
|
49
|
+
days: "days",
|
|
50
|
+
minutes: "minutes",
|
|
51
|
+
hours: "hours"
|
|
52
|
+
};
|
|
53
|
+
var ALL_DEVICES = "All devices";
|
|
54
|
+
var UNGROUPED_GROUP = { id: "*|=ungrouped=|*", name: "Unassigned" };
|
|
55
|
+
var DEVICE_LIST_MAXIMUM_LENGTH = 50;
|
|
56
|
+
var DEVICE_FILTERING_OPTIONS = {
|
|
57
|
+
$eq: { key: "$eq", title: "equals", shortform: "=" },
|
|
58
|
+
$ne: { key: "$ne", title: "not equal", shortform: "!=" },
|
|
59
|
+
$gt: {
|
|
60
|
+
key: "$gt",
|
|
61
|
+
title: ">",
|
|
62
|
+
shortform: ">",
|
|
63
|
+
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.'
|
|
64
|
+
},
|
|
65
|
+
$gte: {
|
|
66
|
+
title: ">=",
|
|
67
|
+
shortform: ">=",
|
|
68
|
+
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.'
|
|
69
|
+
},
|
|
70
|
+
$lt: {
|
|
71
|
+
key: "$lt",
|
|
72
|
+
title: "<",
|
|
73
|
+
shortform: "<",
|
|
74
|
+
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.'
|
|
75
|
+
},
|
|
76
|
+
$lte: {
|
|
77
|
+
title: "<=",
|
|
78
|
+
shortform: "<=",
|
|
79
|
+
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.'
|
|
80
|
+
},
|
|
81
|
+
$ltne: {
|
|
82
|
+
key: "$ltne",
|
|
83
|
+
title: "$ltne",
|
|
84
|
+
shortform: "ltne",
|
|
85
|
+
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.'
|
|
86
|
+
},
|
|
87
|
+
$in: {
|
|
88
|
+
key: "$in",
|
|
89
|
+
title: "in",
|
|
90
|
+
shortform: "in",
|
|
91
|
+
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.'
|
|
92
|
+
},
|
|
93
|
+
$nin: {
|
|
94
|
+
key: "$nin",
|
|
95
|
+
title: "not in",
|
|
96
|
+
shortform: "not in",
|
|
97
|
+
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.`
|
|
98
|
+
},
|
|
99
|
+
$exists: {
|
|
100
|
+
key: "$exists",
|
|
101
|
+
title: "exists",
|
|
102
|
+
shortform: "exists",
|
|
103
|
+
value: true,
|
|
104
|
+
help: `The "exists" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`
|
|
105
|
+
},
|
|
106
|
+
$nexists: {
|
|
107
|
+
key: "$nexists",
|
|
108
|
+
title: `doesn't exist`,
|
|
109
|
+
shortform: `doesn't exist`,
|
|
110
|
+
value: true,
|
|
111
|
+
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.`
|
|
112
|
+
},
|
|
113
|
+
$regex: {
|
|
114
|
+
key: "$regex",
|
|
115
|
+
title: `matches regular expression`,
|
|
116
|
+
shortform: `matches`,
|
|
117
|
+
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.`
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var DEVICE_ISSUE_OPTIONS = {
|
|
121
|
+
issues: {
|
|
122
|
+
isCategory: true,
|
|
123
|
+
key: "issues",
|
|
124
|
+
title: "Devices with issues",
|
|
125
|
+
filterRule: {}
|
|
126
|
+
},
|
|
127
|
+
offline: {
|
|
128
|
+
issueCategory: "issues",
|
|
129
|
+
key: "offline",
|
|
130
|
+
needsFullFiltering: true,
|
|
131
|
+
needsMonitor: false,
|
|
132
|
+
needsReporting: false,
|
|
133
|
+
filterRule: {
|
|
134
|
+
scope: "system",
|
|
135
|
+
key: "check_in_time",
|
|
136
|
+
operator: DEVICE_FILTERING_OPTIONS.$ltne.key,
|
|
137
|
+
value: ({ offlineThreshold }) => offlineThreshold
|
|
138
|
+
},
|
|
139
|
+
title: "Offline devices"
|
|
140
|
+
},
|
|
141
|
+
failedLastUpdate: {
|
|
142
|
+
issueCategory: "issues",
|
|
143
|
+
key: "failedLastUpdate",
|
|
144
|
+
needsFullFiltering: false,
|
|
145
|
+
needsMonitor: false,
|
|
146
|
+
needsReporting: true,
|
|
147
|
+
filterRule: { scope: "monitor", key: "failed_last_update", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
148
|
+
title: "Deployment failed"
|
|
149
|
+
},
|
|
150
|
+
monitoring: {
|
|
151
|
+
issueCategory: "issues",
|
|
152
|
+
key: "monitoring",
|
|
153
|
+
needsFullFiltering: false,
|
|
154
|
+
needsMonitor: true,
|
|
155
|
+
needsReporting: false,
|
|
156
|
+
filterRule: { scope: "monitor", key: "alerts", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
157
|
+
title: "Monitoring alert"
|
|
158
|
+
},
|
|
159
|
+
authRequests: {
|
|
160
|
+
key: "authRequests",
|
|
161
|
+
needsFullFiltering: false,
|
|
162
|
+
needsMonitor: false,
|
|
163
|
+
needsReporting: true,
|
|
164
|
+
filterRule: { scope: "monitor", key: "auth_requests", operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },
|
|
165
|
+
title: "Devices with new authentication requests"
|
|
166
|
+
},
|
|
167
|
+
gatewayDevices: {
|
|
168
|
+
key: "gatewayDevices",
|
|
169
|
+
needsFullFiltering: false,
|
|
170
|
+
needsMonitor: false,
|
|
171
|
+
needsReporting: true,
|
|
172
|
+
filterRule: { scope: "inventory", key: "mender_is_gateway", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: "true" },
|
|
173
|
+
title: "Gateway devices"
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
var oneSecond = 1e3;
|
|
177
|
+
var TIMEOUTS = {
|
|
178
|
+
debounceDefault: 700,
|
|
179
|
+
debounceShort: 300,
|
|
180
|
+
halfASecond: 0.5 * oneSecond,
|
|
181
|
+
oneSecond,
|
|
182
|
+
twoSeconds: 2 * oneSecond,
|
|
183
|
+
threeSeconds: 3 * oneSecond,
|
|
184
|
+
fiveSeconds: 5 * oneSecond,
|
|
185
|
+
refreshDefault: 10 * oneSecond,
|
|
186
|
+
refreshLong: 60 * oneSecond
|
|
187
|
+
};
|
|
188
|
+
var SORTING_OPTIONS = {
|
|
189
|
+
asc: "asc",
|
|
190
|
+
desc: "desc"
|
|
191
|
+
};
|
|
192
|
+
var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
|
|
193
|
+
var ATTRIBUTE_SCOPES = {
|
|
194
|
+
inventory: "inventory",
|
|
195
|
+
identity: "identity",
|
|
196
|
+
monitor: "monitor",
|
|
197
|
+
system: "system",
|
|
198
|
+
tags: "tags"
|
|
199
|
+
};
|
|
200
|
+
var defaultIdAttribute = Object.freeze({ attribute: "id", scope: ATTRIBUTE_SCOPES.identity });
|
|
201
|
+
var credentialTypes = {
|
|
202
|
+
aws: "aws",
|
|
203
|
+
http: "http",
|
|
204
|
+
sas: "sas",
|
|
205
|
+
x509: "x509"
|
|
206
|
+
};
|
|
207
|
+
var EXTERNAL_PROVIDER = {
|
|
208
|
+
"iot-core": {
|
|
209
|
+
credentialsType: credentialTypes.aws,
|
|
210
|
+
icon: import_js.mdiAws,
|
|
211
|
+
title: "AWS IoT Core",
|
|
212
|
+
twinTitle: "Device Shadow",
|
|
213
|
+
provider: "iot-core",
|
|
214
|
+
enabled: true,
|
|
215
|
+
deviceTwin: true,
|
|
216
|
+
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." })
|
|
217
|
+
},
|
|
218
|
+
"iot-hub": {
|
|
219
|
+
credentialsType: credentialTypes.sas,
|
|
220
|
+
icon: import_js.mdiMicrosoftAzure,
|
|
221
|
+
title: "Azure IoT Hub",
|
|
222
|
+
twinTitle: "Device Twin",
|
|
223
|
+
provider: "iot-hub",
|
|
224
|
+
enabled: true,
|
|
225
|
+
deviceTwin: true,
|
|
226
|
+
configHint: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
227
|
+
"For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described",
|
|
228
|
+
" ",
|
|
229
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
230
|
+
"a",
|
|
231
|
+
{
|
|
232
|
+
href: "https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn",
|
|
233
|
+
target: "_blank",
|
|
234
|
+
rel: "noopener noreferrer",
|
|
235
|
+
children: "here"
|
|
236
|
+
}
|
|
237
|
+
),
|
|
238
|
+
"."
|
|
239
|
+
] })
|
|
240
|
+
},
|
|
241
|
+
webhook: {
|
|
242
|
+
credentialsType: credentialTypes.http,
|
|
243
|
+
deviceTwin: false,
|
|
244
|
+
// disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.
|
|
245
|
+
enabled: false,
|
|
246
|
+
provider: "webhook"
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
var MAX_PAGE_SIZE = 500;
|
|
250
|
+
var ALL_RELEASES = "All releases";
|
|
251
|
+
var emptyUiPermissions = Object.freeze({
|
|
252
|
+
auditlog: [],
|
|
253
|
+
deployments: [],
|
|
254
|
+
groups: Object.freeze({}),
|
|
255
|
+
releases: Object.freeze({}),
|
|
256
|
+
tenantManagement: [],
|
|
257
|
+
userManagement: []
|
|
258
|
+
});
|
|
259
|
+
var emptyRole = Object.freeze({
|
|
260
|
+
name: void 0,
|
|
261
|
+
description: "",
|
|
262
|
+
permissions: [],
|
|
263
|
+
uiPermissions: Object.freeze({ ...emptyUiPermissions })
|
|
264
|
+
});
|
|
265
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
266
|
+
0 && (module.exports = {
|
|
267
|
+
ALL_DEVICES,
|
|
268
|
+
ALL_RELEASES,
|
|
269
|
+
ATTRIBUTE_SCOPES,
|
|
270
|
+
DEVICE_FILTERING_OPTIONS,
|
|
271
|
+
DEVICE_ISSUE_OPTIONS,
|
|
272
|
+
DEVICE_LIST_DEFAULTS,
|
|
273
|
+
DEVICE_LIST_MAXIMUM_LENGTH,
|
|
274
|
+
DEVICE_ONLINE_CUTOFF,
|
|
275
|
+
EXTERNAL_PROVIDER,
|
|
276
|
+
MAX_PAGE_SIZE,
|
|
277
|
+
SORTING_OPTIONS,
|
|
278
|
+
TIMEOUTS,
|
|
279
|
+
UNGROUPED_GROUP,
|
|
280
|
+
defaultIdAttribute,
|
|
281
|
+
emptyRole,
|
|
282
|
+
emptyUiPermissions,
|
|
283
|
+
timeUnits
|
|
284
|
+
});
|
|
285
|
+
//# sourceMappingURL=commonConstants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commonConstants.tsx"],"sourcesContent":["// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// @ts-nocheck\nimport React from 'react';\n\nimport { mdiAws as AWS, mdiMicrosoftAzure as Azure } from '@mdi/js';\n\nexport const DEVICE_LIST_DEFAULTS = {\n page: 1,\n perPage: 20\n};\n\nexport const timeUnits = {\n days: 'days',\n minutes: 'minutes',\n hours: 'hours'\n};\n\nexport const ALL_DEVICES = 'All devices';\nexport const UNGROUPED_GROUP = { id: '*|=ungrouped=|*', name: 'Unassigned' };\n\nexport const DEVICE_LIST_MAXIMUM_LENGTH = 50;\n\nexport const DEVICE_FILTERING_OPTIONS = {\n $eq: { key: '$eq', title: 'equals', shortform: '=' },\n $ne: { key: '$ne', title: 'not equal', shortform: '!=' },\n $gt: {\n key: '$gt',\n title: '>',\n shortform: '>',\n 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.'\n },\n $gte: {\n title: '>=',\n shortform: '>=',\n 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.'\n },\n $lt: {\n key: '$lt',\n title: '<',\n shortform: '<',\n 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.'\n },\n $lte: {\n title: '<=',\n shortform: '<=',\n 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.'\n },\n $ltne: {\n key: '$ltne',\n title: '$ltne',\n shortform: 'ltne',\n 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.'\n },\n $in: {\n key: '$in',\n title: 'in',\n shortform: 'in',\n 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.'\n },\n $nin: {\n key: '$nin',\n title: 'not in',\n shortform: 'not in',\n 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.`\n },\n $exists: {\n key: '$exists',\n title: 'exists',\n shortform: 'exists',\n value: true,\n help: `The \"exists\" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`\n },\n $nexists: {\n key: '$nexists',\n title: `doesn't exist`,\n shortform: `doesn't exist`,\n value: true,\n 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.`\n },\n $regex: {\n key: '$regex',\n title: `matches regular expression`,\n shortform: `matches`,\n 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.`\n }\n};\n\nexport const DEVICE_ISSUE_OPTIONS = {\n issues: {\n isCategory: true,\n key: 'issues',\n title: 'Devices with issues',\n filterRule: {}\n },\n offline: {\n issueCategory: 'issues',\n key: 'offline',\n needsFullFiltering: true,\n needsMonitor: false,\n needsReporting: false,\n filterRule: {\n scope: 'system',\n key: 'check_in_time',\n operator: DEVICE_FILTERING_OPTIONS.$ltne.key,\n value: ({ offlineThreshold }) => offlineThreshold\n },\n title: 'Offline devices'\n },\n failedLastUpdate: {\n issueCategory: 'issues',\n key: 'failedLastUpdate',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'failed_last_update', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Deployment failed'\n },\n monitoring: {\n issueCategory: 'issues',\n key: 'monitoring',\n needsFullFiltering: false,\n needsMonitor: true,\n needsReporting: false,\n filterRule: { scope: 'monitor', key: 'alerts', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },\n title: 'Monitoring alert'\n },\n authRequests: {\n key: 'authRequests',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'monitor', key: 'auth_requests', operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },\n title: 'Devices with new authentication requests'\n },\n gatewayDevices: {\n key: 'gatewayDevices',\n needsFullFiltering: false,\n needsMonitor: false,\n needsReporting: true,\n filterRule: { scope: 'inventory', key: 'mender_is_gateway', operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: 'true' },\n title: 'Gateway devices'\n }\n};\nconst oneSecond = 1000;\nexport const TIMEOUTS = {\n debounceDefault: 700,\n debounceShort: 300,\n halfASecond: 0.5 * oneSecond,\n oneSecond,\n twoSeconds: 2 * oneSecond,\n threeSeconds: 3 * oneSecond,\n fiveSeconds: 5 * oneSecond,\n refreshDefault: 10 * oneSecond,\n refreshLong: 60 * oneSecond\n};\n\nexport const SORTING_OPTIONS = {\n asc: 'asc',\n desc: 'desc'\n};\n\nexport const DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };\n\nexport const ATTRIBUTE_SCOPES = {\n inventory: 'inventory',\n identity: 'identity',\n monitor: 'monitor',\n system: 'system',\n tags: 'tags'\n};\n\nexport const defaultIdAttribute = Object.freeze({ attribute: 'id', scope: ATTRIBUTE_SCOPES.identity });\n\nconst credentialTypes = {\n aws: 'aws',\n http: 'http',\n sas: 'sas',\n x509: 'x509'\n};\nexport const EXTERNAL_PROVIDER = {\n 'iot-core': {\n credentialsType: credentialTypes.aws,\n icon: AWS,\n title: 'AWS IoT Core',\n twinTitle: 'Device Shadow',\n provider: 'iot-core',\n enabled: true,\n deviceTwin: true,\n configHint: <>For help finding your AWS IoT Core connection string, check the AWS IoT documentation.</>\n },\n 'iot-hub': {\n credentialsType: credentialTypes.sas,\n icon: Azure,\n title: 'Azure IoT Hub',\n twinTitle: 'Device Twin',\n provider: 'iot-hub',\n enabled: true,\n deviceTwin: true,\n configHint: (\n <span>\n For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described{' '}\n {\n <a\n href=\"https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n here\n </a>\n }\n .\n </span>\n )\n },\n webhook: {\n credentialsType: credentialTypes.http,\n deviceTwin: false,\n // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.\n enabled: false,\n provider: 'webhook'\n }\n};\nexport const MAX_PAGE_SIZE = 500;\n\nexport const ALL_RELEASES = 'All releases';\n\nexport type UiPermissionsDefinition = Readonly<{\n auditlog: string[];\n deployments?: string[]; // deployments are so far only covered indirectly through releases + device group permissions\n groups: Record<string, string[]>;\n releases: Record<string, string[]>;\n tenantManagement: string[];\n userManagement: string[];\n}>;\n\nexport type UiRoleDefinition = {\n name: string;\n description: string;\n editable?: boolean;\n isCustom?: boolean;\n permissions?: object[];\n uiPermissions: UiPermissionsDefinition;\n};\n\nexport const emptyUiPermissions: UiPermissionsDefinition = Object.freeze({\n auditlog: [],\n deployments: [],\n groups: Object.freeze({}),\n releases: Object.freeze({}),\n tenantManagement: [],\n userManagement: []\n});\n\nexport const emptyRole: UiRoleDefinition = Object.freeze({\n name: undefined,\n description: '',\n permissions: [],\n uiPermissions: Object.freeze({ ...emptyUiPermissions })\n});\n"],"mappings":"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","names":["AWS","Azure"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
declare const DEVICE_LIST_DEFAULTS: {
|
|
4
4
|
page: number;
|
|
@@ -204,7 +204,7 @@ declare const EXTERNAL_PROVIDER: {
|
|
|
204
204
|
provider: string;
|
|
205
205
|
enabled: boolean;
|
|
206
206
|
deviceTwin: boolean;
|
|
207
|
-
configHint:
|
|
207
|
+
configHint: react_jsx_runtime.JSX.Element;
|
|
208
208
|
};
|
|
209
209
|
'iot-hub': {
|
|
210
210
|
credentialsType: string;
|
|
@@ -214,7 +214,7 @@ declare const EXTERNAL_PROVIDER: {
|
|
|
214
214
|
provider: string;
|
|
215
215
|
enabled: boolean;
|
|
216
216
|
deviceTwin: boolean;
|
|
217
|
-
configHint:
|
|
217
|
+
configHint: react_jsx_runtime.JSX.Element;
|
|
218
218
|
};
|
|
219
219
|
webhook: {
|
|
220
220
|
credentialsType: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
declare const DEVICE_LIST_DEFAULTS: {
|
|
4
4
|
page: number;
|
|
@@ -204,7 +204,7 @@ declare const EXTERNAL_PROVIDER: {
|
|
|
204
204
|
provider: string;
|
|
205
205
|
enabled: boolean;
|
|
206
206
|
deviceTwin: boolean;
|
|
207
|
-
configHint:
|
|
207
|
+
configHint: react_jsx_runtime.JSX.Element;
|
|
208
208
|
};
|
|
209
209
|
'iot-hub': {
|
|
210
210
|
credentialsType: string;
|
|
@@ -214,7 +214,7 @@ declare const EXTERNAL_PROVIDER: {
|
|
|
214
214
|
provider: string;
|
|
215
215
|
enabled: boolean;
|
|
216
216
|
deviceTwin: boolean;
|
|
217
|
-
configHint:
|
|
217
|
+
configHint: react_jsx_runtime.JSX.Element;
|
|
218
218
|
};
|
|
219
219
|
webhook: {
|
|
220
220
|
credentialsType: string;
|
package/dist/commonConstants.js
CHANGED
|
@@ -1,270 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import {
|
|
2
|
+
ALL_DEVICES,
|
|
3
|
+
ALL_RELEASES,
|
|
4
|
+
ATTRIBUTE_SCOPES,
|
|
5
|
+
DEVICE_FILTERING_OPTIONS,
|
|
6
|
+
DEVICE_ISSUE_OPTIONS,
|
|
7
|
+
DEVICE_LIST_DEFAULTS,
|
|
8
|
+
DEVICE_LIST_MAXIMUM_LENGTH,
|
|
9
|
+
DEVICE_ONLINE_CUTOFF,
|
|
10
|
+
EXTERNAL_PROVIDER,
|
|
11
|
+
MAX_PAGE_SIZE,
|
|
12
|
+
SORTING_OPTIONS,
|
|
13
|
+
TIMEOUTS,
|
|
14
|
+
UNGROUPED_GROUP,
|
|
15
|
+
defaultIdAttribute,
|
|
16
|
+
emptyRole,
|
|
17
|
+
emptyUiPermissions,
|
|
18
|
+
timeUnits
|
|
19
|
+
} from "./chunk-4B3IMP4I.js";
|
|
20
|
+
export {
|
|
21
|
+
ALL_DEVICES,
|
|
22
|
+
ALL_RELEASES,
|
|
23
|
+
ATTRIBUTE_SCOPES,
|
|
24
|
+
DEVICE_FILTERING_OPTIONS,
|
|
25
|
+
DEVICE_ISSUE_OPTIONS,
|
|
26
|
+
DEVICE_LIST_DEFAULTS,
|
|
27
|
+
DEVICE_LIST_MAXIMUM_LENGTH,
|
|
28
|
+
DEVICE_ONLINE_CUTOFF,
|
|
29
|
+
EXTERNAL_PROVIDER,
|
|
30
|
+
MAX_PAGE_SIZE,
|
|
31
|
+
SORTING_OPTIONS,
|
|
32
|
+
TIMEOUTS,
|
|
33
|
+
UNGROUPED_GROUP,
|
|
34
|
+
defaultIdAttribute,
|
|
35
|
+
emptyRole,
|
|
36
|
+
emptyUiPermissions,
|
|
37
|
+
timeUnits
|
|
11
38
|
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/commonConstants.tsx
|
|
31
|
-
var commonConstants_exports = {};
|
|
32
|
-
__export(commonConstants_exports, {
|
|
33
|
-
ALL_DEVICES: () => ALL_DEVICES,
|
|
34
|
-
ALL_RELEASES: () => ALL_RELEASES,
|
|
35
|
-
ATTRIBUTE_SCOPES: () => ATTRIBUTE_SCOPES,
|
|
36
|
-
DEVICE_FILTERING_OPTIONS: () => DEVICE_FILTERING_OPTIONS,
|
|
37
|
-
DEVICE_ISSUE_OPTIONS: () => DEVICE_ISSUE_OPTIONS,
|
|
38
|
-
DEVICE_LIST_DEFAULTS: () => DEVICE_LIST_DEFAULTS,
|
|
39
|
-
DEVICE_LIST_MAXIMUM_LENGTH: () => DEVICE_LIST_MAXIMUM_LENGTH,
|
|
40
|
-
DEVICE_ONLINE_CUTOFF: () => DEVICE_ONLINE_CUTOFF,
|
|
41
|
-
EXTERNAL_PROVIDER: () => EXTERNAL_PROVIDER,
|
|
42
|
-
MAX_PAGE_SIZE: () => MAX_PAGE_SIZE,
|
|
43
|
-
SORTING_OPTIONS: () => SORTING_OPTIONS,
|
|
44
|
-
TIMEOUTS: () => TIMEOUTS,
|
|
45
|
-
UNGROUPED_GROUP: () => UNGROUPED_GROUP,
|
|
46
|
-
defaultIdAttribute: () => defaultIdAttribute,
|
|
47
|
-
emptyRole: () => emptyRole,
|
|
48
|
-
emptyUiPermissions: () => emptyUiPermissions,
|
|
49
|
-
timeUnits: () => timeUnits
|
|
50
|
-
});
|
|
51
|
-
module.exports = __toCommonJS(commonConstants_exports);
|
|
52
|
-
var import_react = __toESM(require("react"));
|
|
53
|
-
var import_js = require("@mdi/js");
|
|
54
|
-
var DEVICE_LIST_DEFAULTS = {
|
|
55
|
-
page: 1,
|
|
56
|
-
perPage: 20
|
|
57
|
-
};
|
|
58
|
-
var timeUnits = {
|
|
59
|
-
days: "days",
|
|
60
|
-
minutes: "minutes",
|
|
61
|
-
hours: "hours"
|
|
62
|
-
};
|
|
63
|
-
var ALL_DEVICES = "All devices";
|
|
64
|
-
var UNGROUPED_GROUP = { id: "*|=ungrouped=|*", name: "Unassigned" };
|
|
65
|
-
var DEVICE_LIST_MAXIMUM_LENGTH = 50;
|
|
66
|
-
var DEVICE_FILTERING_OPTIONS = {
|
|
67
|
-
$eq: { key: "$eq", title: "equals", shortform: "=" },
|
|
68
|
-
$ne: { key: "$ne", title: "not equal", shortform: "!=" },
|
|
69
|
-
$gt: {
|
|
70
|
-
key: "$gt",
|
|
71
|
-
title: ">",
|
|
72
|
-
shortform: ">",
|
|
73
|
-
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.'
|
|
74
|
-
},
|
|
75
|
-
$gte: {
|
|
76
|
-
title: ">=",
|
|
77
|
-
shortform: ">=",
|
|
78
|
-
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.'
|
|
79
|
-
},
|
|
80
|
-
$lt: {
|
|
81
|
-
key: "$lt",
|
|
82
|
-
title: "<",
|
|
83
|
-
shortform: "<",
|
|
84
|
-
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.'
|
|
85
|
-
},
|
|
86
|
-
$lte: {
|
|
87
|
-
title: "<=",
|
|
88
|
-
shortform: "<=",
|
|
89
|
-
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.'
|
|
90
|
-
},
|
|
91
|
-
$ltne: {
|
|
92
|
-
key: "$ltne",
|
|
93
|
-
title: "$ltne",
|
|
94
|
-
shortform: "ltne",
|
|
95
|
-
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.'
|
|
96
|
-
},
|
|
97
|
-
$in: {
|
|
98
|
-
key: "$in",
|
|
99
|
-
title: "in",
|
|
100
|
-
shortform: "in",
|
|
101
|
-
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.'
|
|
102
|
-
},
|
|
103
|
-
$nin: {
|
|
104
|
-
key: "$nin",
|
|
105
|
-
title: "not in",
|
|
106
|
-
shortform: "not in",
|
|
107
|
-
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.`
|
|
108
|
-
},
|
|
109
|
-
$exists: {
|
|
110
|
-
key: "$exists",
|
|
111
|
-
title: "exists",
|
|
112
|
-
shortform: "exists",
|
|
113
|
-
value: true,
|
|
114
|
-
help: `The "exists" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`
|
|
115
|
-
},
|
|
116
|
-
$nexists: {
|
|
117
|
-
key: "$nexists",
|
|
118
|
-
title: `doesn't exist`,
|
|
119
|
-
shortform: `doesn't exist`,
|
|
120
|
-
value: true,
|
|
121
|
-
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.`
|
|
122
|
-
},
|
|
123
|
-
$regex: {
|
|
124
|
-
key: "$regex",
|
|
125
|
-
title: `matches regular expression`,
|
|
126
|
-
shortform: `matches`,
|
|
127
|
-
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.`
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
var DEVICE_ISSUE_OPTIONS = {
|
|
131
|
-
issues: {
|
|
132
|
-
isCategory: true,
|
|
133
|
-
key: "issues",
|
|
134
|
-
title: "Devices with issues",
|
|
135
|
-
filterRule: {}
|
|
136
|
-
},
|
|
137
|
-
offline: {
|
|
138
|
-
issueCategory: "issues",
|
|
139
|
-
key: "offline",
|
|
140
|
-
needsFullFiltering: true,
|
|
141
|
-
needsMonitor: false,
|
|
142
|
-
needsReporting: false,
|
|
143
|
-
filterRule: {
|
|
144
|
-
scope: "system",
|
|
145
|
-
key: "check_in_time",
|
|
146
|
-
operator: DEVICE_FILTERING_OPTIONS.$ltne.key,
|
|
147
|
-
value: ({ offlineThreshold }) => offlineThreshold
|
|
148
|
-
},
|
|
149
|
-
title: "Offline devices"
|
|
150
|
-
},
|
|
151
|
-
failedLastUpdate: {
|
|
152
|
-
issueCategory: "issues",
|
|
153
|
-
key: "failedLastUpdate",
|
|
154
|
-
needsFullFiltering: false,
|
|
155
|
-
needsMonitor: false,
|
|
156
|
-
needsReporting: true,
|
|
157
|
-
filterRule: { scope: "monitor", key: "failed_last_update", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
158
|
-
title: "Deployment failed"
|
|
159
|
-
},
|
|
160
|
-
monitoring: {
|
|
161
|
-
issueCategory: "issues",
|
|
162
|
-
key: "monitoring",
|
|
163
|
-
needsFullFiltering: false,
|
|
164
|
-
needsMonitor: true,
|
|
165
|
-
needsReporting: false,
|
|
166
|
-
filterRule: { scope: "monitor", key: "alerts", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
|
|
167
|
-
title: "Monitoring alert"
|
|
168
|
-
},
|
|
169
|
-
authRequests: {
|
|
170
|
-
key: "authRequests",
|
|
171
|
-
needsFullFiltering: false,
|
|
172
|
-
needsMonitor: false,
|
|
173
|
-
needsReporting: true,
|
|
174
|
-
filterRule: { scope: "monitor", key: "auth_requests", operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },
|
|
175
|
-
title: "Devices with new authentication requests"
|
|
176
|
-
},
|
|
177
|
-
gatewayDevices: {
|
|
178
|
-
key: "gatewayDevices",
|
|
179
|
-
needsFullFiltering: false,
|
|
180
|
-
needsMonitor: false,
|
|
181
|
-
needsReporting: true,
|
|
182
|
-
filterRule: { scope: "inventory", key: "mender_is_gateway", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: "true" },
|
|
183
|
-
title: "Gateway devices"
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
var oneSecond = 1e3;
|
|
187
|
-
var TIMEOUTS = {
|
|
188
|
-
debounceDefault: 700,
|
|
189
|
-
debounceShort: 300,
|
|
190
|
-
halfASecond: 0.5 * oneSecond,
|
|
191
|
-
oneSecond,
|
|
192
|
-
twoSeconds: 2 * oneSecond,
|
|
193
|
-
threeSeconds: 3 * oneSecond,
|
|
194
|
-
fiveSeconds: 5 * oneSecond,
|
|
195
|
-
refreshDefault: 10 * oneSecond,
|
|
196
|
-
refreshLong: 60 * oneSecond
|
|
197
|
-
};
|
|
198
|
-
var SORTING_OPTIONS = {
|
|
199
|
-
asc: "asc",
|
|
200
|
-
desc: "desc"
|
|
201
|
-
};
|
|
202
|
-
var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
|
|
203
|
-
var ATTRIBUTE_SCOPES = {
|
|
204
|
-
inventory: "inventory",
|
|
205
|
-
identity: "identity",
|
|
206
|
-
monitor: "monitor",
|
|
207
|
-
system: "system",
|
|
208
|
-
tags: "tags"
|
|
209
|
-
};
|
|
210
|
-
var defaultIdAttribute = Object.freeze({ attribute: "id", scope: ATTRIBUTE_SCOPES.identity });
|
|
211
|
-
var credentialTypes = {
|
|
212
|
-
aws: "aws",
|
|
213
|
-
http: "http",
|
|
214
|
-
sas: "sas",
|
|
215
|
-
x509: "x509"
|
|
216
|
-
};
|
|
217
|
-
var EXTERNAL_PROVIDER = {
|
|
218
|
-
"iot-core": {
|
|
219
|
-
credentialsType: credentialTypes.aws,
|
|
220
|
-
icon: import_js.mdiAws,
|
|
221
|
-
title: "AWS IoT Core",
|
|
222
|
-
twinTitle: "Device Shadow",
|
|
223
|
-
provider: "iot-core",
|
|
224
|
-
enabled: true,
|
|
225
|
-
deviceTwin: true,
|
|
226
|
-
configHint: /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, "For help finding your AWS IoT Core connection string, check the AWS IoT documentation.")
|
|
227
|
-
},
|
|
228
|
-
"iot-hub": {
|
|
229
|
-
credentialsType: credentialTypes.sas,
|
|
230
|
-
icon: import_js.mdiMicrosoftAzure,
|
|
231
|
-
title: "Azure IoT Hub",
|
|
232
|
-
twinTitle: "Device Twin",
|
|
233
|
-
provider: "iot-hub",
|
|
234
|
-
enabled: true,
|
|
235
|
-
deviceTwin: true,
|
|
236
|
-
configHint: /* @__PURE__ */ import_react.default.createElement("span", null, "For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described", " ", /* @__PURE__ */ import_react.default.createElement(
|
|
237
|
-
"a",
|
|
238
|
-
{
|
|
239
|
-
href: "https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn",
|
|
240
|
-
target: "_blank",
|
|
241
|
-
rel: "noopener noreferrer"
|
|
242
|
-
},
|
|
243
|
-
"here"
|
|
244
|
-
), ".")
|
|
245
|
-
},
|
|
246
|
-
webhook: {
|
|
247
|
-
credentialsType: credentialTypes.http,
|
|
248
|
-
deviceTwin: false,
|
|
249
|
-
// disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.
|
|
250
|
-
enabled: false,
|
|
251
|
-
provider: "webhook"
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
var MAX_PAGE_SIZE = 500;
|
|
255
|
-
var ALL_RELEASES = "All releases";
|
|
256
|
-
var emptyUiPermissions = Object.freeze({
|
|
257
|
-
auditlog: [],
|
|
258
|
-
deployments: [],
|
|
259
|
-
groups: Object.freeze({}),
|
|
260
|
-
releases: Object.freeze({}),
|
|
261
|
-
tenantManagement: [],
|
|
262
|
-
userManagement: []
|
|
263
|
-
});
|
|
264
|
-
var emptyRole = Object.freeze({
|
|
265
|
-
name: void 0,
|
|
266
|
-
description: "",
|
|
267
|
-
permissions: [],
|
|
268
|
-
uiPermissions: Object.freeze({ ...emptyUiPermissions })
|
|
269
|
-
});
|
|
270
39
|
//# sourceMappingURL=commonConstants.js.map
|