@northern.tech/store 0.2.1 → 0.3.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.
Files changed (391) hide show
  1. package/dist/actions.cjs +1812 -0
  2. package/dist/actions.cjs.map +1 -0
  3. package/dist/actions.js +18 -1860
  4. package/dist/actions.js.map +1 -1
  5. package/dist/api/general-api.cjs +336 -0
  6. package/dist/api/general-api.cjs.map +1 -0
  7. package/dist/api/general-api.js +15 -1051
  8. package/dist/api/general-api.js.map +1 -1
  9. package/dist/api/users-api.cjs +342 -0
  10. package/dist/api/users-api.cjs.map +1 -0
  11. package/dist/api/users-api.js +12 -1062
  12. package/dist/api/users-api.js.map +1 -1
  13. package/dist/appSlice/constants.cjs +207 -0
  14. package/dist/appSlice/constants.cjs.map +1 -0
  15. package/dist/appSlice/{constants.d.mts → constants.d.cts} +12 -1
  16. package/dist/appSlice/constants.d.ts +12 -1
  17. package/dist/appSlice/constants.js +39 -181
  18. package/dist/appSlice/constants.js.map +1 -1
  19. package/dist/appSlice/index.cjs +393 -0
  20. package/dist/appSlice/index.cjs.map +1 -0
  21. package/dist/appSlice/index.js +18 -1112
  22. package/dist/appSlice/index.js.map +1 -1
  23. package/dist/appSlice/selectors.cjs +58 -0
  24. package/dist/appSlice/selectors.cjs.map +1 -0
  25. package/dist/appSlice/selectors.js +17 -46
  26. package/dist/appSlice/selectors.js.map +1 -1
  27. package/dist/appSlice/thunks.cjs +4670 -0
  28. package/dist/appSlice/thunks.cjs.map +1 -0
  29. package/dist/appSlice/thunks.js +42 -5750
  30. package/dist/appSlice/thunks.js.map +1 -1
  31. package/dist/auth.cjs +320 -0
  32. package/dist/auth.cjs.map +1 -0
  33. package/dist/auth.js +20 -1031
  34. package/dist/auth.js.map +1 -1
  35. package/dist/{chunk-5VNQCCAQ.mjs → chunk-25AKG5HH.js} +5 -2
  36. package/dist/chunk-25AKG5HH.js.map +1 -0
  37. package/dist/{chunk-QQBUNZHA.mjs → chunk-4B3IMP4I.js} +17 -12
  38. package/dist/{chunk-QQBUNZHA.mjs.map → chunk-4B3IMP4I.js.map} +1 -1
  39. package/dist/{chunk-3ORTTLIB.mjs → chunk-7PVGDMNM.js} +2 -2
  40. package/dist/{chunk-IFWKT27G.mjs → chunk-A6CT6GTI.js} +3 -3
  41. package/dist/{chunk-ZK4W5T53.mjs → chunk-AMGWP7A4.js} +2 -2
  42. package/dist/{chunk-G4FGNSV3.mjs → chunk-CK6YE6AN.js} +1 -1
  43. package/dist/{chunk-4SDUITD4.mjs → chunk-CYV6632F.js} +2 -2
  44. package/dist/{chunk-KJAZNKV2.mjs → chunk-DGD6FVWF.js} +29 -29
  45. package/dist/{chunk-DIZJVB6M.mjs → chunk-DQ4ZLUIU.js} +75 -431
  46. package/dist/chunk-DQ4ZLUIU.js.map +1 -0
  47. package/dist/{chunk-JA27QXVB.mjs → chunk-E5LEU5PF.js} +3 -3
  48. package/dist/{chunk-B42NUKMZ.mjs → chunk-FGKMJS3B.js} +1 -1
  49. package/dist/{chunk-NJNSCJEY.mjs → chunk-GZ5VQMDM.js} +18 -21
  50. package/dist/chunk-GZ5VQMDM.js.map +1 -0
  51. package/dist/{chunk-O6TYYKSD.mjs → chunk-H6DUEJFF.js} +20 -70
  52. package/dist/chunk-H6DUEJFF.js.map +1 -0
  53. package/dist/{chunk-WYHJFSMQ.mjs → chunk-JAROCU6M.js} +3 -3
  54. package/dist/{chunk-QBKCUIWO.mjs → chunk-JIS4PA3R.js} +1 -1
  55. package/dist/{chunk-XD7INCM4.mjs → chunk-KAQJH2YL.js} +4 -4
  56. package/dist/{chunk-2Z3RFYW4.mjs → chunk-LIJIIRON.js} +1 -1
  57. package/dist/{chunk-IU4OXOPA.mjs → chunk-MRCFLG45.js} +1 -1
  58. package/dist/chunk-NMAXZ3ZY.js +1 -0
  59. package/dist/{chunk-K2NZL5V4.mjs → chunk-Q6M5TTDQ.js} +2 -2
  60. package/dist/{chunk-CHUCIHMY.mjs → chunk-RX55KAKX.js} +2 -2
  61. package/dist/{chunk-ZE7R2XXE.mjs → chunk-UEP36GCI.js} +3 -3
  62. package/dist/{chunk-WCUGLHYM.mjs → chunk-UVQX743T.js} +13 -13
  63. package/dist/{chunk-H5UCKQWK.mjs → chunk-V4DKKRWS.js} +14 -14
  64. package/dist/{chunk-XC5UXEIB.mjs → chunk-VOCOFE4I.js} +2 -2
  65. package/dist/{chunk-R7LXL3KJ.mjs → chunk-XTRPX7JZ.js} +3 -3
  66. package/dist/{chunk-6CSGHZ3E.mjs → chunk-XXHONFSQ.js} +3 -3
  67. package/dist/{chunk-KPPU6OWF.mjs → chunk-YETZPQFR.js} +4 -19
  68. package/dist/chunk-YETZPQFR.js.map +1 -0
  69. package/dist/{chunk-KZSTW27Q.mjs → chunk-YGBFDXXA.js} +2 -2
  70. package/dist/{chunk-H2PQQMRY.mjs → chunk-YO22XLHI.js} +1 -1
  71. package/dist/{chunk-65YIOCCD.mjs → chunk-YT73QWCN.js} +3 -3
  72. package/dist/{chunk-AZRVRNXT.mjs → chunk-YTQUNAZP.js} +3 -3
  73. package/dist/commonConstants.cjs +285 -0
  74. package/dist/commonConstants.cjs.map +1 -0
  75. package/dist/{commonConstants.d.mts → commonConstants.d.cts} +3 -3
  76. package/dist/commonConstants.d.ts +3 -3
  77. package/dist/commonConstants.js +37 -268
  78. package/dist/commonConstants.js.map +1 -1
  79. package/dist/commonSelectors.cjs +1487 -0
  80. package/dist/commonSelectors.cjs.map +1 -0
  81. package/dist/commonSelectors.js +53 -1500
  82. package/dist/commonSelectors.js.map +1 -1
  83. package/dist/constants.cjs +1297 -0
  84. package/dist/constants.cjs.map +1 -0
  85. package/dist/{constants.d.mts → constants.d.cts} +10 -10
  86. package/dist/constants.d.ts +1 -1
  87. package/dist/constants.js +220 -1189
  88. package/dist/constants.js.map +1 -1
  89. package/dist/deploymentdevicehook.cjs +4686 -0
  90. package/dist/deploymentdevicehook.cjs.map +1 -0
  91. package/dist/deploymentdevicehook.d.cts +3 -0
  92. package/dist/deploymentdevicehook.d.ts +3 -0
  93. package/dist/deploymentdevicehook.js +60 -0
  94. package/dist/deploymentdevicehook.js.map +1 -0
  95. package/dist/deploymentsSlice/constants.cjs +562 -0
  96. package/dist/deploymentsSlice/constants.cjs.map +1 -0
  97. package/dist/deploymentsSlice/constants.js +39 -1006
  98. package/dist/deploymentsSlice/constants.js.map +1 -1
  99. package/dist/deploymentsSlice/index.cjs +648 -0
  100. package/dist/deploymentsSlice/index.cjs.map +1 -0
  101. package/dist/deploymentsSlice/index.js +18 -1104
  102. package/dist/deploymentsSlice/index.js.map +1 -1
  103. package/dist/deploymentsSlice/selectors.cjs +561 -0
  104. package/dist/deploymentsSlice/selectors.cjs.map +1 -0
  105. package/dist/deploymentsSlice/selectors.js +22 -1014
  106. package/dist/deploymentsSlice/selectors.js.map +1 -1
  107. package/dist/deploymentsSlice/thunks.cjs +4686 -0
  108. package/dist/deploymentsSlice/thunks.cjs.map +1 -0
  109. package/dist/deploymentsSlice/thunks.js +60 -5757
  110. package/dist/deploymentsSlice/thunks.js.map +1 -1
  111. package/dist/devicesSlice/constants.cjs +435 -0
  112. package/dist/devicesSlice/constants.cjs.map +1 -0
  113. package/dist/devicesSlice/constants.js +37 -1007
  114. package/dist/devicesSlice/constants.js.map +1 -1
  115. package/dist/devicesSlice/index.cjs +586 -0
  116. package/dist/devicesSlice/index.cjs.map +1 -0
  117. package/dist/devicesSlice/index.js +18 -1161
  118. package/dist/devicesSlice/index.js.map +1 -1
  119. package/dist/devicesSlice/selectors.cjs +531 -0
  120. package/dist/devicesSlice/selectors.cjs.map +1 -0
  121. package/dist/devicesSlice/selectors.js +50 -1097
  122. package/dist/devicesSlice/selectors.js.map +1 -1
  123. package/dist/devicesSlice/thunks.cjs +4758 -0
  124. package/dist/devicesSlice/thunks.cjs.map +1 -0
  125. package/dist/devicesSlice/thunks.js +132 -5793
  126. package/dist/devicesSlice/thunks.js.map +1 -1
  127. package/dist/monitorSlice/constants.cjs +165 -0
  128. package/dist/monitorSlice/constants.cjs.map +1 -0
  129. package/dist/monitorSlice/constants.js +11 -970
  130. package/dist/monitorSlice/constants.js.map +1 -1
  131. package/dist/monitorSlice/index.cjs +435 -0
  132. package/dist/monitorSlice/index.cjs.map +1 -0
  133. package/dist/monitorSlice/index.js +18 -1022
  134. package/dist/monitorSlice/index.js.map +1 -1
  135. package/dist/monitorSlice/selectors.cjs +31 -0
  136. package/dist/monitorSlice/selectors.cjs.map +1 -0
  137. package/dist/monitorSlice/selectors.js +5 -25
  138. package/dist/monitorSlice/selectors.js.map +1 -1
  139. package/dist/monitorSlice/thunks.cjs +2623 -0
  140. package/dist/monitorSlice/thunks.cjs.map +1 -0
  141. package/dist/monitorSlice/thunks.js +41 -2624
  142. package/dist/monitorSlice/thunks.js.map +1 -1
  143. package/dist/onboardingSlice/constants.cjs +71 -0
  144. package/dist/onboardingSlice/constants.cjs.map +1 -0
  145. package/dist/onboardingSlice/constants.js +7 -64
  146. package/dist/onboardingSlice/constants.js.map +1 -1
  147. package/dist/onboardingSlice/index.cjs +80 -0
  148. package/dist/onboardingSlice/index.cjs.map +1 -0
  149. package/dist/onboardingSlice/index.js +13 -71
  150. package/dist/onboardingSlice/index.js.map +1 -1
  151. package/dist/onboardingSlice/selectors.cjs +31 -0
  152. package/dist/onboardingSlice/selectors.cjs.map +1 -0
  153. package/dist/onboardingSlice/selectors.js +5 -25
  154. package/dist/onboardingSlice/selectors.js.map +1 -1
  155. package/dist/onboardingSlice/thunks.cjs +4774 -0
  156. package/dist/onboardingSlice/thunks.cjs.map +1 -0
  157. package/dist/onboardingSlice/thunks.js +48 -5753
  158. package/dist/onboardingSlice/thunks.js.map +1 -1
  159. package/dist/organizationSlice/constants.cjs +830 -0
  160. package/dist/organizationSlice/constants.cjs.map +1 -0
  161. package/dist/organizationSlice/constants.js +33 -1014
  162. package/dist/organizationSlice/constants.js.map +1 -1
  163. package/dist/organizationSlice/index.cjs +505 -0
  164. package/dist/organizationSlice/index.cjs.map +1 -0
  165. package/dist/organizationSlice/index.js +18 -1067
  166. package/dist/organizationSlice/index.js.map +1 -1
  167. package/dist/organizationSlice/selectors.cjs +300 -0
  168. package/dist/organizationSlice/selectors.cjs.map +1 -0
  169. package/dist/organizationSlice/selectors.js +36 -1013
  170. package/dist/organizationSlice/selectors.js.map +1 -1
  171. package/dist/organizationSlice/thunks.cjs +5006 -0
  172. package/dist/organizationSlice/thunks.cjs.map +1 -0
  173. package/dist/organizationSlice/thunks.js +98 -5776
  174. package/dist/organizationSlice/thunks.js.map +1 -1
  175. package/dist/releasesSlice/constants.cjs +40 -0
  176. package/dist/releasesSlice/constants.cjs.map +1 -0
  177. package/dist/releasesSlice/constants.js +11 -31
  178. package/dist/releasesSlice/constants.js.map +1 -1
  179. package/dist/releasesSlice/index.cjs +355 -0
  180. package/dist/releasesSlice/index.cjs.map +1 -0
  181. package/dist/releasesSlice/index.js +18 -1070
  182. package/dist/releasesSlice/index.js.map +1 -1
  183. package/dist/releasesSlice/selectors.cjs +290 -0
  184. package/dist/releasesSlice/selectors.cjs.map +1 -0
  185. package/dist/releasesSlice/selectors.js +25 -1009
  186. package/dist/releasesSlice/selectors.js.map +1 -1
  187. package/dist/releasesSlice/thunks.cjs +2896 -0
  188. package/dist/releasesSlice/thunks.cjs.map +1 -0
  189. package/dist/releasesSlice/thunks.js +63 -2931
  190. package/dist/releasesSlice/thunks.js.map +1 -1
  191. package/dist/selectors.cjs +1641 -0
  192. package/dist/selectors.cjs.map +1 -0
  193. package/dist/{selectors.d.mts → selectors.d.cts} +9 -9
  194. package/dist/selectors.js +206 -1582
  195. package/dist/selectors.js.map +1 -1
  196. package/dist/store.cjs +1932 -0
  197. package/dist/store.cjs.map +1 -0
  198. package/dist/store.js +28 -1980
  199. package/dist/store.js.map +1 -1
  200. package/dist/storehooks.cjs +5565 -0
  201. package/dist/storehooks.cjs.map +1 -0
  202. package/dist/storehooks.js +122 -5802
  203. package/dist/storehooks.js.map +1 -1
  204. package/dist/thunks.cjs +5675 -0
  205. package/dist/thunks.cjs.map +1 -0
  206. package/dist/{thunks.d.mts → thunks.d.cts} +8 -8
  207. package/dist/thunks.js +360 -5910
  208. package/dist/thunks.js.map +1 -1
  209. package/dist/usersSlice/constants.cjs +798 -0
  210. package/dist/usersSlice/constants.cjs.map +1 -0
  211. package/dist/usersSlice/constants.js +42 -1001
  212. package/dist/usersSlice/constants.js.map +1 -1
  213. package/dist/usersSlice/index.cjs +890 -0
  214. package/dist/usersSlice/index.cjs.map +1 -0
  215. package/dist/usersSlice/index.js +18 -1107
  216. package/dist/usersSlice/index.js.map +1 -1
  217. package/dist/usersSlice/selectors.cjs +826 -0
  218. package/dist/usersSlice/selectors.cjs.map +1 -0
  219. package/dist/usersSlice/selectors.js +35 -1034
  220. package/dist/usersSlice/selectors.js.map +1 -1
  221. package/dist/usersSlice/thunks.cjs +4732 -0
  222. package/dist/usersSlice/thunks.cjs.map +1 -0
  223. package/dist/usersSlice/thunks.js +106 -5780
  224. package/dist/usersSlice/thunks.js.map +1 -1
  225. package/dist/utils.cjs +739 -0
  226. package/dist/utils.cjs.map +1 -0
  227. package/dist/{utils.d.mts → utils.d.cts} +1 -3
  228. package/dist/utils.d.ts +1 -3
  229. package/dist/utils.js +42 -1186
  230. package/dist/utils.js.map +1 -1
  231. package/package.json +71 -47
  232. package/dist/actions.mjs +0 -21
  233. package/dist/api/general-api.mjs +0 -18
  234. package/dist/api/general-api.mjs.map +0 -1
  235. package/dist/api/users-api.mjs +0 -15
  236. package/dist/api/users-api.mjs.map +0 -1
  237. package/dist/appSlice/constants.mjs +0 -42
  238. package/dist/appSlice/constants.mjs.map +0 -1
  239. package/dist/appSlice/index.mjs +0 -21
  240. package/dist/appSlice/index.mjs.map +0 -1
  241. package/dist/appSlice/selectors.mjs +0 -20
  242. package/dist/appSlice/selectors.mjs.map +0 -1
  243. package/dist/appSlice/thunks.mjs +0 -45
  244. package/dist/appSlice/thunks.mjs.map +0 -1
  245. package/dist/auth.mjs +0 -23
  246. package/dist/auth.mjs.map +0 -1
  247. package/dist/chunk-5VNQCCAQ.mjs.map +0 -1
  248. package/dist/chunk-DIZJVB6M.mjs.map +0 -1
  249. package/dist/chunk-KPPU6OWF.mjs.map +0 -1
  250. package/dist/chunk-LZOMFHX3.mjs +0 -38
  251. package/dist/chunk-LZOMFHX3.mjs.map +0 -1
  252. package/dist/chunk-NJNSCJEY.mjs.map +0 -1
  253. package/dist/chunk-O6TYYKSD.mjs.map +0 -1
  254. package/dist/chunk-V32GTKOS.mjs +0 -1
  255. package/dist/chunk-V32GTKOS.mjs.map +0 -1
  256. package/dist/commonConstants.mjs +0 -40
  257. package/dist/commonConstants.mjs.map +0 -1
  258. package/dist/commonSelectors.mjs +0 -56
  259. package/dist/commonSelectors.mjs.map +0 -1
  260. package/dist/constants.mjs +0 -223
  261. package/dist/constants.mjs.map +0 -1
  262. package/dist/deploymentsSlice/constants.mjs +0 -42
  263. package/dist/deploymentsSlice/constants.mjs.map +0 -1
  264. package/dist/deploymentsSlice/index.mjs +0 -21
  265. package/dist/deploymentsSlice/index.mjs.map +0 -1
  266. package/dist/deploymentsSlice/selectors.mjs +0 -25
  267. package/dist/deploymentsSlice/selectors.mjs.map +0 -1
  268. package/dist/deploymentsSlice/thunks.mjs +0 -63
  269. package/dist/deploymentsSlice/thunks.mjs.map +0 -1
  270. package/dist/devicesSlice/constants.mjs +0 -40
  271. package/dist/devicesSlice/constants.mjs.map +0 -1
  272. package/dist/devicesSlice/index.mjs +0 -21
  273. package/dist/devicesSlice/index.mjs.map +0 -1
  274. package/dist/devicesSlice/selectors.mjs +0 -53
  275. package/dist/devicesSlice/selectors.mjs.map +0 -1
  276. package/dist/devicesSlice/thunks.mjs +0 -135
  277. package/dist/devicesSlice/thunks.mjs.map +0 -1
  278. package/dist/monitorSlice/constants.mjs +0 -14
  279. package/dist/monitorSlice/constants.mjs.map +0 -1
  280. package/dist/monitorSlice/index.mjs +0 -21
  281. package/dist/monitorSlice/index.mjs.map +0 -1
  282. package/dist/monitorSlice/selectors.mjs +0 -8
  283. package/dist/monitorSlice/selectors.mjs.map +0 -1
  284. package/dist/monitorSlice/thunks.mjs +0 -44
  285. package/dist/monitorSlice/thunks.mjs.map +0 -1
  286. package/dist/onboardingSlice/constants.mjs +0 -10
  287. package/dist/onboardingSlice/constants.mjs.map +0 -1
  288. package/dist/onboardingSlice/index.mjs +0 -16
  289. package/dist/onboardingSlice/index.mjs.map +0 -1
  290. package/dist/onboardingSlice/selectors.mjs +0 -8
  291. package/dist/onboardingSlice/selectors.mjs.map +0 -1
  292. package/dist/onboardingSlice/thunks.mjs +0 -51
  293. package/dist/onboardingSlice/thunks.mjs.map +0 -1
  294. package/dist/organizationSlice/constants.mjs +0 -36
  295. package/dist/organizationSlice/constants.mjs.map +0 -1
  296. package/dist/organizationSlice/index.mjs +0 -21
  297. package/dist/organizationSlice/index.mjs.map +0 -1
  298. package/dist/organizationSlice/selectors.mjs +0 -39
  299. package/dist/organizationSlice/selectors.mjs.map +0 -1
  300. package/dist/organizationSlice/thunks.mjs +0 -101
  301. package/dist/organizationSlice/thunks.mjs.map +0 -1
  302. package/dist/releasesSlice/constants.mjs +0 -14
  303. package/dist/releasesSlice/constants.mjs.map +0 -1
  304. package/dist/releasesSlice/index.mjs +0 -21
  305. package/dist/releasesSlice/index.mjs.map +0 -1
  306. package/dist/releasesSlice/selectors.mjs +0 -28
  307. package/dist/releasesSlice/selectors.mjs.map +0 -1
  308. package/dist/releasesSlice/thunks.mjs +0 -66
  309. package/dist/releasesSlice/thunks.mjs.map +0 -1
  310. package/dist/selectors.mjs +0 -209
  311. package/dist/selectors.mjs.map +0 -1
  312. package/dist/store.mjs +0 -32
  313. package/dist/store.mjs.map +0 -1
  314. package/dist/storehooks.mjs +0 -282
  315. package/dist/storehooks.mjs.map +0 -1
  316. package/dist/thunks.mjs +0 -363
  317. package/dist/thunks.mjs.map +0 -1
  318. package/dist/usersSlice/constants.mjs +0 -45
  319. package/dist/usersSlice/constants.mjs.map +0 -1
  320. package/dist/usersSlice/index.mjs +0 -21
  321. package/dist/usersSlice/index.mjs.map +0 -1
  322. package/dist/usersSlice/selectors.mjs +0 -38
  323. package/dist/usersSlice/selectors.mjs.map +0 -1
  324. package/dist/usersSlice/thunks.mjs +0 -109
  325. package/dist/usersSlice/thunks.mjs.map +0 -1
  326. package/dist/utils.mjs +0 -49
  327. package/dist/utils.mjs.map +0 -1
  328. /package/dist/{actions.d.mts → actions.d.cts} +0 -0
  329. /package/dist/api/{general-api.d.mts → general-api.d.cts} +0 -0
  330. /package/dist/api/{users-api.d.mts → users-api.d.cts} +0 -0
  331. /package/dist/appSlice/{index.d.mts → index.d.cts} +0 -0
  332. /package/dist/appSlice/{selectors.d.mts → selectors.d.cts} +0 -0
  333. /package/dist/appSlice/{thunks.d.mts → thunks.d.cts} +0 -0
  334. /package/dist/{auth.d.mts → auth.d.cts} +0 -0
  335. /package/dist/{chunk-3ORTTLIB.mjs.map → chunk-7PVGDMNM.js.map} +0 -0
  336. /package/dist/{chunk-IFWKT27G.mjs.map → chunk-A6CT6GTI.js.map} +0 -0
  337. /package/dist/{chunk-ZK4W5T53.mjs.map → chunk-AMGWP7A4.js.map} +0 -0
  338. /package/dist/{chunk-G4FGNSV3.mjs.map → chunk-CK6YE6AN.js.map} +0 -0
  339. /package/dist/{chunk-4SDUITD4.mjs.map → chunk-CYV6632F.js.map} +0 -0
  340. /package/dist/{chunk-KJAZNKV2.mjs.map → chunk-DGD6FVWF.js.map} +0 -0
  341. /package/dist/{chunk-JA27QXVB.mjs.map → chunk-E5LEU5PF.js.map} +0 -0
  342. /package/dist/{chunk-B42NUKMZ.mjs.map → chunk-FGKMJS3B.js.map} +0 -0
  343. /package/dist/{chunk-WYHJFSMQ.mjs.map → chunk-JAROCU6M.js.map} +0 -0
  344. /package/dist/{chunk-QBKCUIWO.mjs.map → chunk-JIS4PA3R.js.map} +0 -0
  345. /package/dist/{chunk-XD7INCM4.mjs.map → chunk-KAQJH2YL.js.map} +0 -0
  346. /package/dist/{chunk-2Z3RFYW4.mjs.map → chunk-LIJIIRON.js.map} +0 -0
  347. /package/dist/{chunk-IU4OXOPA.mjs.map → chunk-MRCFLG45.js.map} +0 -0
  348. /package/dist/{actions.mjs.map → chunk-NMAXZ3ZY.js.map} +0 -0
  349. /package/dist/{chunk-K2NZL5V4.mjs.map → chunk-Q6M5TTDQ.js.map} +0 -0
  350. /package/dist/{chunk-CHUCIHMY.mjs.map → chunk-RX55KAKX.js.map} +0 -0
  351. /package/dist/{chunk-ZE7R2XXE.mjs.map → chunk-UEP36GCI.js.map} +0 -0
  352. /package/dist/{chunk-WCUGLHYM.mjs.map → chunk-UVQX743T.js.map} +0 -0
  353. /package/dist/{chunk-H5UCKQWK.mjs.map → chunk-V4DKKRWS.js.map} +0 -0
  354. /package/dist/{chunk-XC5UXEIB.mjs.map → chunk-VOCOFE4I.js.map} +0 -0
  355. /package/dist/{chunk-R7LXL3KJ.mjs.map → chunk-XTRPX7JZ.js.map} +0 -0
  356. /package/dist/{chunk-6CSGHZ3E.mjs.map → chunk-XXHONFSQ.js.map} +0 -0
  357. /package/dist/{chunk-KZSTW27Q.mjs.map → chunk-YGBFDXXA.js.map} +0 -0
  358. /package/dist/{chunk-H2PQQMRY.mjs.map → chunk-YO22XLHI.js.map} +0 -0
  359. /package/dist/{chunk-65YIOCCD.mjs.map → chunk-YT73QWCN.js.map} +0 -0
  360. /package/dist/{chunk-AZRVRNXT.mjs.map → chunk-YTQUNAZP.js.map} +0 -0
  361. /package/dist/{commonSelectors.d.mts → commonSelectors.d.cts} +0 -0
  362. /package/dist/deploymentsSlice/{constants.d.mts → constants.d.cts} +0 -0
  363. /package/dist/deploymentsSlice/{index.d.mts → index.d.cts} +0 -0
  364. /package/dist/deploymentsSlice/{selectors.d.mts → selectors.d.cts} +0 -0
  365. /package/dist/deploymentsSlice/{thunks.d.mts → thunks.d.cts} +0 -0
  366. /package/dist/devicesSlice/{constants.d.mts → constants.d.cts} +0 -0
  367. /package/dist/devicesSlice/{index.d.mts → index.d.cts} +0 -0
  368. /package/dist/devicesSlice/{selectors.d.mts → selectors.d.cts} +0 -0
  369. /package/dist/devicesSlice/{thunks.d.mts → thunks.d.cts} +0 -0
  370. /package/dist/monitorSlice/{constants.d.mts → constants.d.cts} +0 -0
  371. /package/dist/monitorSlice/{index.d.mts → index.d.cts} +0 -0
  372. /package/dist/monitorSlice/{selectors.d.mts → selectors.d.cts} +0 -0
  373. /package/dist/monitorSlice/{thunks.d.mts → thunks.d.cts} +0 -0
  374. /package/dist/onboardingSlice/{constants.d.mts → constants.d.cts} +0 -0
  375. /package/dist/onboardingSlice/{index.d.mts → index.d.cts} +0 -0
  376. /package/dist/onboardingSlice/{selectors.d.mts → selectors.d.cts} +0 -0
  377. /package/dist/onboardingSlice/{thunks.d.mts → thunks.d.cts} +0 -0
  378. /package/dist/organizationSlice/{constants.d.mts → constants.d.cts} +0 -0
  379. /package/dist/organizationSlice/{index.d.mts → index.d.cts} +0 -0
  380. /package/dist/organizationSlice/{selectors.d.mts → selectors.d.cts} +0 -0
  381. /package/dist/organizationSlice/{thunks.d.mts → thunks.d.cts} +0 -0
  382. /package/dist/releasesSlice/{constants.d.mts → constants.d.cts} +0 -0
  383. /package/dist/releasesSlice/{index.d.mts → index.d.cts} +0 -0
  384. /package/dist/releasesSlice/{selectors.d.mts → selectors.d.cts} +0 -0
  385. /package/dist/releasesSlice/{thunks.d.mts → thunks.d.cts} +0 -0
  386. /package/dist/{store.d.mts → store.d.cts} +0 -0
  387. /package/dist/{storehooks.d.mts → storehooks.d.cts} +0 -0
  388. /package/dist/usersSlice/{constants.d.mts → constants.d.cts} +0 -0
  389. /package/dist/usersSlice/{index.d.mts → index.d.cts} +0 -0
  390. /package/dist/usersSlice/{selectors.d.mts → selectors.d.cts} +0 -0
  391. /package/dist/usersSlice/{thunks.d.mts → thunks.d.cts} +0 -0
@@ -0,0 +1,531 @@
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/devicesSlice/selectors.ts
21
+ var selectors_exports = {};
22
+ __export(selectors_exports, {
23
+ getAcceptedDevices: () => getAcceptedDevices,
24
+ getAttributesList: () => getAttributesList,
25
+ getDeviceById: () => getDeviceById,
26
+ getDeviceCountsByStatus: () => getDeviceCountsByStatus,
27
+ getDeviceFilters: () => getDeviceFilters,
28
+ getDeviceIdentityAttributes: () => getDeviceIdentityAttributes,
29
+ getDeviceLimit: () => getDeviceLimit,
30
+ getDeviceListState: () => getDeviceListState,
31
+ getDeviceReports: () => getDeviceReports,
32
+ getDeviceTypes: () => getDeviceTypes,
33
+ getDevicesById: () => getDevicesById,
34
+ getDevicesByStatus: () => getDevicesByStatus,
35
+ getFilteringAttributes: () => getFilteringAttributes,
36
+ getGroups: () => getGroups,
37
+ getGroupsById: () => getGroupsById,
38
+ getGroupsByIdWithoutUngrouped: () => getGroupsByIdWithoutUngrouped,
39
+ getLimitMaxed: () => getLimitMaxed,
40
+ getListedDevices: () => getListedDevices,
41
+ getSelectedGroup: () => getSelectedGroup,
42
+ getSelectedGroupInfo: () => getSelectedGroupInfo,
43
+ getSortedFilteringAttributes: () => getSortedFilteringAttributes
44
+ });
45
+ module.exports = __toCommonJS(selectors_exports);
46
+
47
+ // src/appSlice/constants.ts
48
+ var import_icons_material = require("@mui/icons-material");
49
+ var startingDeviceCount = {
50
+ os: "for first 50 devices",
51
+ professional: "for first 250 devices"
52
+ };
53
+ var apiRoot = "/api/management";
54
+ var apiUrl = {
55
+ v1: `${apiRoot}/v1`,
56
+ v2: `${apiRoot}/v2`
57
+ };
58
+ var chartTypes = {
59
+ bar: { key: "bar", Icon: import_icons_material.BarChart },
60
+ pie: { key: "pie", Icon: import_icons_material.PieChartOutline }
61
+ };
62
+ var emptyChartSelection = { software: "", group: "", chartType: chartTypes.bar.key, attribute: "artifact_name" };
63
+ var defaultReportType = "distribution";
64
+ var defaultReports = [{ ...emptyChartSelection, group: null, attribute: "artifact_name", type: defaultReportType }];
65
+ var PLANS = {
66
+ os: {
67
+ id: "os",
68
+ name: "Basic",
69
+ offer: true,
70
+ price: "$32/month",
71
+ deviceCount: startingDeviceCount.os,
72
+ offerprice: "$23/month for first 50 devices",
73
+ price2: "for first 6 months;\n$29/month thereafter",
74
+ features: ["Basic OTA features"]
75
+ },
76
+ professional: {
77
+ id: "professional",
78
+ name: "Professional",
79
+ offer: true,
80
+ price: "$269/month",
81
+ deviceCount: startingDeviceCount.professional,
82
+ offerprice: "$200/month for first 50 devices",
83
+ price2: "for first 6 months;\n$249/month thereafter",
84
+ features: ["+ Advanced OTA features", "+ Standard support"]
85
+ },
86
+ enterprise: {
87
+ id: "enterprise",
88
+ name: "Enterprise",
89
+ price: "Custom pricing",
90
+ deviceCount: "unlimited devices",
91
+ features: ["+ Enterprise-grade OTA features", "+ Premium support"]
92
+ }
93
+ };
94
+ var ADDONS = {
95
+ configure: {
96
+ id: "configure",
97
+ title: "Configure",
98
+ description: "Expand your plan with device configuration features",
99
+ needs: ["hasDeviceConfig"],
100
+ os: {
101
+ price: "$11/month",
102
+ deviceCount: startingDeviceCount.os
103
+ },
104
+ professional: {
105
+ price: "$65/month",
106
+ deviceCount: startingDeviceCount.professional
107
+ },
108
+ eligible: ["os", "professional", "enterprise"]
109
+ },
110
+ troubleshoot: {
111
+ id: "troubleshoot",
112
+ title: "Troubleshoot",
113
+ description: "Expand your plan with device troubleshooting features",
114
+ needs: ["hasDeviceConnect"],
115
+ os: {
116
+ price: "$27/month",
117
+ deviceCount: startingDeviceCount.os
118
+ },
119
+ professional: {
120
+ price: "$72/month",
121
+ deviceCount: startingDeviceCount.professional
122
+ },
123
+ eligible: ["os", "professional", "enterprise"]
124
+ },
125
+ monitor: {
126
+ id: "monitor",
127
+ title: "Monitor",
128
+ description: "Expand your plan with device monitoring features",
129
+ needs: ["hasMonitor"],
130
+ os: {
131
+ price: "-",
132
+ deviceCount: "-"
133
+ },
134
+ professional: {
135
+ price: "$86/month",
136
+ deviceCount: startingDeviceCount.professional
137
+ },
138
+ eligible: ["professional", "enterprise"]
139
+ }
140
+ };
141
+ var BENEFITS = {
142
+ auditlog: { id: "auditlog", benefit: "trace change across your devices and access troubleshooting session replay", requiredPlan: PLANS.professional.id },
143
+ dashboard: { id: "dashboard", benefit: "actionable insights into the devices you are updating with Mender", requiredPlan: PLANS.enterprise.id },
144
+ deltaGeneration: {
145
+ id: "deltaGeneration",
146
+ benefit: "automatic delta artifacts generation to minimize data transfer and improve the update delivery",
147
+ requiredPlan: PLANS.enterprise.id
148
+ },
149
+ deviceConfiguration: { id: "deviceConfiguration", benefit: "device configuration features", requiredAddon: ADDONS.configure.id },
150
+ deviceMonitor: { id: "deviceMonitor", benefit: "device monitoring features", requiredAddon: ADDONS.monitor.id, requiredPlan: PLANS.professional.id },
151
+ deviceTroubleshoot: { id: "deviceTroubleshoot", benefit: "device troubleshooting features", requiredAddon: ADDONS.troubleshoot.id },
152
+ dynamicGroups: { id: "dynamicGroups", benefit: "create dynamic groups to ease device management", requiredPlan: PLANS.enterprise.id },
153
+ fullFiltering: { id: "fullFiltering", benefit: "filtering by multiple attributes to improve the device overview", requiredPlan: PLANS.professional.id },
154
+ gateway: { id: "gateway", benefit: "see devices connected to your gateway device for easy access", requiredPlans: PLANS.professional.id },
155
+ pausedDeployments: {
156
+ id: "pausedDeployments",
157
+ benefit: "granular control about update rollout to allow synchronization across your fleet",
158
+ requiredPlan: PLANS.enterprise.id
159
+ },
160
+ phasedDeployments: { id: "phasedDeployments", benefit: "choose to roll out deployments in multiple phases", requiredPlan: PLANS.enterprise.id },
161
+ rbac: { id: "rbac", benefit: "granular role based access control", requiredPlan: PLANS.enterprise.id },
162
+ retryDeployments: { id: "retryDeployments", benefit: "optional retries for failed rollout attempts", requiredPlan: PLANS.professional.id },
163
+ scheduledDeployments: {
164
+ id: "scheduledDeployments",
165
+ benefit: "scheduled deployments to steer the distribution of your updates.",
166
+ requiredPlan: PLANS.professional.id
167
+ },
168
+ webhookEvents: {
169
+ id: "webhookEvents",
170
+ benefit: "receive inventory events and select which type(s) of events the webhook will receive",
171
+ requiredPlan: PLANS.professional.id
172
+ },
173
+ default: { id: "default", benefit: "gain access to this feature", requiredPlan: PLANS.enterprise.id }
174
+ };
175
+
176
+ // src/commonConstants.tsx
177
+ var import_js = require("@mdi/js");
178
+ var import_jsx_runtime = require("react/jsx-runtime");
179
+ var timeUnits = {
180
+ days: "days",
181
+ minutes: "minutes",
182
+ hours: "hours"
183
+ };
184
+ var UNGROUPED_GROUP = { id: "*|=ungrouped=|*", name: "Unassigned" };
185
+ var DEVICE_FILTERING_OPTIONS = {
186
+ $eq: { key: "$eq", title: "equals", shortform: "=" },
187
+ $ne: { key: "$ne", title: "not equal", shortform: "!=" },
188
+ $gt: {
189
+ key: "$gt",
190
+ title: ">",
191
+ shortform: ">",
192
+ help: 'The "greater than" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
193
+ },
194
+ $gte: {
195
+ title: ">=",
196
+ shortform: ">=",
197
+ help: 'The "greater than or equal" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
198
+ },
199
+ $lt: {
200
+ key: "$lt",
201
+ title: "<",
202
+ shortform: "<",
203
+ help: 'The "lesser than" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
204
+ },
205
+ $lte: {
206
+ title: "<=",
207
+ shortform: "<=",
208
+ help: 'The "lesser than or equal" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
209
+ },
210
+ $ltne: {
211
+ key: "$ltne",
212
+ title: "$ltne",
213
+ shortform: "ltne",
214
+ help: 'The "lesser than or does not exist" operator can work both on numbers and strings. In the latter case, the operator applies the lexicographical order to the value strings.'
215
+ },
216
+ $in: {
217
+ key: "$in",
218
+ title: "in",
219
+ shortform: "in",
220
+ help: 'The "in" operator accepts a list of comma-separated values. It matches if the selected field is equal to one of the specified values.'
221
+ },
222
+ $nin: {
223
+ key: "$nin",
224
+ title: "not in",
225
+ shortform: "not in",
226
+ help: `The "not in" operator accepts a list of comma-separated values. It matches if the selected field's value is not equal to any of the specified options.`
227
+ },
228
+ $exists: {
229
+ key: "$exists",
230
+ title: "exists",
231
+ shortform: "exists",
232
+ value: true,
233
+ help: `The "exists" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`
234
+ },
235
+ $nexists: {
236
+ key: "$nexists",
237
+ title: `doesn't exist`,
238
+ shortform: `doesn't exist`,
239
+ value: true,
240
+ help: `The "doesn't exist" operator matches if the selected field's value has no value. No value needs to be provided for this operator.`
241
+ },
242
+ $regex: {
243
+ key: "$regex",
244
+ title: `matches regular expression`,
245
+ shortform: `matches`,
246
+ help: `The "regular expression" operator matches the selected field's value with a Perl compatible regular expression (PCRE), automatically anchored by ^. If the regular expression is not valid, the filter will produce no results. If you need to specify options and flags, you can provide the full regex in the format of /regex/flags, for example.`
247
+ }
248
+ };
249
+ var DEVICE_ISSUE_OPTIONS = {
250
+ issues: {
251
+ isCategory: true,
252
+ key: "issues",
253
+ title: "Devices with issues",
254
+ filterRule: {}
255
+ },
256
+ offline: {
257
+ issueCategory: "issues",
258
+ key: "offline",
259
+ needsFullFiltering: true,
260
+ needsMonitor: false,
261
+ needsReporting: false,
262
+ filterRule: {
263
+ scope: "system",
264
+ key: "check_in_time",
265
+ operator: DEVICE_FILTERING_OPTIONS.$ltne.key,
266
+ value: ({ offlineThreshold }) => offlineThreshold
267
+ },
268
+ title: "Offline devices"
269
+ },
270
+ failedLastUpdate: {
271
+ issueCategory: "issues",
272
+ key: "failedLastUpdate",
273
+ needsFullFiltering: false,
274
+ needsMonitor: false,
275
+ needsReporting: true,
276
+ filterRule: { scope: "monitor", key: "failed_last_update", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
277
+ title: "Deployment failed"
278
+ },
279
+ monitoring: {
280
+ issueCategory: "issues",
281
+ key: "monitoring",
282
+ needsFullFiltering: false,
283
+ needsMonitor: true,
284
+ needsReporting: false,
285
+ filterRule: { scope: "monitor", key: "alerts", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
286
+ title: "Monitoring alert"
287
+ },
288
+ authRequests: {
289
+ key: "authRequests",
290
+ needsFullFiltering: false,
291
+ needsMonitor: false,
292
+ needsReporting: true,
293
+ filterRule: { scope: "monitor", key: "auth_requests", operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },
294
+ title: "Devices with new authentication requests"
295
+ },
296
+ gatewayDevices: {
297
+ key: "gatewayDevices",
298
+ needsFullFiltering: false,
299
+ needsMonitor: false,
300
+ needsReporting: true,
301
+ filterRule: { scope: "inventory", key: "mender_is_gateway", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: "true" },
302
+ title: "Gateway devices"
303
+ }
304
+ };
305
+ var oneSecond = 1e3;
306
+ var TIMEOUTS = {
307
+ debounceDefault: 700,
308
+ debounceShort: 300,
309
+ halfASecond: 0.5 * oneSecond,
310
+ oneSecond,
311
+ twoSeconds: 2 * oneSecond,
312
+ threeSeconds: 3 * oneSecond,
313
+ fiveSeconds: 5 * oneSecond,
314
+ refreshDefault: 10 * oneSecond,
315
+ refreshLong: 60 * oneSecond
316
+ };
317
+ var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
318
+ var ATTRIBUTE_SCOPES = {
319
+ inventory: "inventory",
320
+ identity: "identity",
321
+ monitor: "monitor",
322
+ system: "system",
323
+ tags: "tags"
324
+ };
325
+ var defaultIdAttribute = Object.freeze({ attribute: "id", scope: ATTRIBUTE_SCOPES.identity });
326
+ var credentialTypes = {
327
+ aws: "aws",
328
+ http: "http",
329
+ sas: "sas",
330
+ x509: "x509"
331
+ };
332
+ var EXTERNAL_PROVIDER = {
333
+ "iot-core": {
334
+ credentialsType: credentialTypes.aws,
335
+ icon: import_js.mdiAws,
336
+ title: "AWS IoT Core",
337
+ twinTitle: "Device Shadow",
338
+ provider: "iot-core",
339
+ enabled: true,
340
+ deviceTwin: true,
341
+ 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." })
342
+ },
343
+ "iot-hub": {
344
+ credentialsType: credentialTypes.sas,
345
+ icon: import_js.mdiMicrosoftAzure,
346
+ title: "Azure IoT Hub",
347
+ twinTitle: "Device Twin",
348
+ provider: "iot-hub",
349
+ enabled: true,
350
+ deviceTwin: true,
351
+ configHint: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
352
+ "For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described",
353
+ " ",
354
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
355
+ "a",
356
+ {
357
+ href: "https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn",
358
+ target: "_blank",
359
+ rel: "noopener noreferrer",
360
+ children: "here"
361
+ }
362
+ ),
363
+ "."
364
+ ] })
365
+ },
366
+ webhook: {
367
+ credentialsType: credentialTypes.http,
368
+ deviceTwin: false,
369
+ // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.
370
+ enabled: false,
371
+ provider: "webhook"
372
+ }
373
+ };
374
+ var emptyUiPermissions = Object.freeze({
375
+ auditlog: [],
376
+ deployments: [],
377
+ groups: Object.freeze({}),
378
+ releases: Object.freeze({}),
379
+ tenantManagement: [],
380
+ userManagement: []
381
+ });
382
+ var emptyRole = Object.freeze({
383
+ name: void 0,
384
+ description: "",
385
+ permissions: [],
386
+ uiPermissions: Object.freeze({ ...emptyUiPermissions })
387
+ });
388
+
389
+ // src/devicesSlice/constants.ts
390
+ var emptyFilter = { key: null, value: "", operator: DEVICE_FILTERING_OPTIONS.$eq.key, scope: "inventory" };
391
+ var deviceAuthV2 = `${apiUrl.v2}/devauth`;
392
+ var deviceConnect = `${apiUrl.v1}/deviceconnect`;
393
+ var inventoryApiUrl = `${apiUrl.v1}/inventory`;
394
+ var inventoryApiUrlV2 = `${apiUrl.v2}/inventory`;
395
+ var deviceConfig = `${apiUrl.v1}/deviceconfig/configurations/device`;
396
+ var reportingApiUrl = `${apiUrl.v1}/reporting`;
397
+ var iotManagerBaseURL = `${apiUrl.v1}/iot-manager`;
398
+ var DEVICE_STATES = {
399
+ accepted: "accepted",
400
+ pending: "pending",
401
+ preauth: "preauthorized",
402
+ rejected: "rejected"
403
+ };
404
+ var geoAttributes = ["geo-lat", "geo-lon"].map((attribute) => ({ attribute, scope: "inventory" }));
405
+
406
+ // src/devicesSlice/selectors.ts
407
+ var import_helpers = require("@northern.tech/utils/helpers");
408
+ var import_toolkit = require("@reduxjs/toolkit");
409
+ var getAcceptedDevices = (state) => state.devices.byStatus.accepted;
410
+ var getDevicesByStatus = (state) => state.devices.byStatus;
411
+ var getDevicesById = (state) => state.devices.byId;
412
+ var getDeviceReports = (state) => state.devices.reports;
413
+ var getGroupsById = (state) => state.devices.groups.byId;
414
+ var getSelectedGroup = (state) => state.devices.groups.selectedGroup;
415
+ var getDeviceListState = (state) => state.devices.deviceList;
416
+ var getListedDevices = (state) => state.devices.deviceList.deviceIds;
417
+ var getFilteringAttributes = (state) => state.devices.filteringAttributes;
418
+ var getDeviceFilters = (state) => state.devices.filters || [];
419
+ var getFilteringAttributesFromConfig = (state) => state.devices.filteringAttributesConfig.attributes;
420
+ var getSortedFilteringAttributes = (0, import_toolkit.createSelector)([getFilteringAttributes], (filteringAttributes) => ({
421
+ ...filteringAttributes,
422
+ identityAttributes: [...filteringAttributes.identityAttributes, "id"]
423
+ }));
424
+ var getDeviceLimit = (state) => state.devices.limit;
425
+ var getFilteringAttributesLimit = (state) => state.devices.filteringAttributesLimit;
426
+ var getDeviceIdentityAttributes = (0, import_toolkit.createSelector)(
427
+ [getFilteringAttributes, getFilteringAttributesLimit],
428
+ ({ identityAttributes }, filteringAttributesLimit) => {
429
+ const attributes = identityAttributes.slice(0, filteringAttributesLimit);
430
+ return attributes.reduce(
431
+ (accu, value) => {
432
+ accu.push({ value, label: value, scope: "identity" });
433
+ return accu;
434
+ },
435
+ [
436
+ { value: "name", label: "Name", scope: "tags" },
437
+ { value: "id", label: "Device ID", scope: "identity" }
438
+ ]
439
+ );
440
+ }
441
+ );
442
+ var getDeviceCountsByStatus = (0, import_toolkit.createSelector)(
443
+ [getDevicesByStatus],
444
+ (byStatus) => Object.values(DEVICE_STATES).reduce((accu, state) => {
445
+ accu[state] = byStatus[state].total || 0;
446
+ return accu;
447
+ }, {})
448
+ );
449
+ var getDeviceById = (0, import_toolkit.createSelector)([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = "") => devicesById[deviceId] ?? {});
450
+ var getSelectedGroupInfo = (0, import_toolkit.createSelector)(
451
+ [getAcceptedDevices, getGroupsById, getSelectedGroup],
452
+ ({ total: acceptedDeviceTotal }, groupsById, selectedGroup) => {
453
+ let groupCount = acceptedDeviceTotal;
454
+ let groupFilters = [];
455
+ if (selectedGroup && groupsById[selectedGroup]) {
456
+ groupCount = groupsById[selectedGroup].total;
457
+ groupFilters = groupsById[selectedGroup].filters || [];
458
+ }
459
+ return { groupCount, selectedGroup, groupFilters };
460
+ }
461
+ );
462
+ var getLimitMaxed = (0, import_toolkit.createSelector)(
463
+ [getAcceptedDevices, getDeviceLimit],
464
+ ({ total: acceptedDevices = 0 }, deviceLimit) => Boolean(deviceLimit && deviceLimit <= acceptedDevices)
465
+ );
466
+ var getGroupsByIdWithoutUngrouped = (0, import_toolkit.createSelector)([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);
467
+ var getGroups = (0, import_toolkit.createSelector)([getGroupsById], (groupsById) => {
468
+ const groupNames = Object.keys(groupsById).sort();
469
+ const groupedGroups = Object.entries(groupsById).sort((a, b) => a[0].localeCompare(b[0])).reduce(
470
+ (accu, [groupname, group]) => {
471
+ const name = groupname === UNGROUPED_GROUP.id ? UNGROUPED_GROUP.name : groupname;
472
+ const groupItem = { ...group, groupId: name, name: groupname };
473
+ if (group.filters.length > 0) {
474
+ if (groupname !== UNGROUPED_GROUP.id) {
475
+ accu.dynamic.push(groupItem);
476
+ } else {
477
+ accu.ungrouped.push(groupItem);
478
+ }
479
+ } else {
480
+ accu.static.push(groupItem);
481
+ }
482
+ return accu;
483
+ },
484
+ { dynamic: [], static: [], ungrouped: [] }
485
+ );
486
+ return { groupNames, ...groupedGroups };
487
+ });
488
+ var getAttributesList = (0, import_toolkit.createSelector)(
489
+ [getFilteringAttributes, getFilteringAttributesFromConfig],
490
+ ({ identityAttributes = [], inventoryAttributes = [] }, { identity = [], inventory = [] }) => [...identityAttributes, ...inventoryAttributes, ...identity, ...inventory].filter(import_helpers.duplicateFilter)
491
+ );
492
+ var getDeviceTypes = (0, import_toolkit.createSelector)(
493
+ [getAcceptedDevices, getDevicesById],
494
+ ({ deviceIds = [] }, devicesById) => Object.keys(
495
+ deviceIds.slice(0, 200).reduce((accu, item) => {
496
+ const { device_type: deviceTypes = [] } = devicesById[item] ? devicesById[item].attributes : {};
497
+ accu = deviceTypes.reduce((deviceTypeAccu, deviceType) => {
498
+ if (deviceType.length > 1) {
499
+ deviceTypeAccu[deviceType] = deviceTypeAccu[deviceType] ? deviceTypeAccu[deviceType] + 1 : 1;
500
+ }
501
+ return deviceTypeAccu;
502
+ }, accu);
503
+ return accu;
504
+ }, {})
505
+ )
506
+ );
507
+ // Annotate the CommonJS export names for ESM import in node:
508
+ 0 && (module.exports = {
509
+ getAcceptedDevices,
510
+ getAttributesList,
511
+ getDeviceById,
512
+ getDeviceCountsByStatus,
513
+ getDeviceFilters,
514
+ getDeviceIdentityAttributes,
515
+ getDeviceLimit,
516
+ getDeviceListState,
517
+ getDeviceReports,
518
+ getDeviceTypes,
519
+ getDevicesById,
520
+ getDevicesByStatus,
521
+ getFilteringAttributes,
522
+ getGroups,
523
+ getGroupsById,
524
+ getGroupsByIdWithoutUngrouped,
525
+ getLimitMaxed,
526
+ getListedDevices,
527
+ getSelectedGroup,
528
+ getSelectedGroupInfo,
529
+ getSortedFilteringAttributes
530
+ });
531
+ //# sourceMappingURL=selectors.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/devicesSlice/selectors.ts","../../src/appSlice/constants.ts","../../src/commonConstants.tsx","../../src/devicesSlice/constants.ts"],"sourcesContent":["// Copyright 2023 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 { DEVICE_STATES, UNGROUPED_GROUP } from '@northern.tech/store/constants';\nimport { duplicateFilter } from '@northern.tech/utils/helpers';\nimport { createSelector } from '@reduxjs/toolkit';\n\nexport const getAcceptedDevices = state => state.devices.byStatus.accepted;\nexport const getDevicesByStatus = state => state.devices.byStatus;\nexport const getDevicesById = state => state.devices.byId;\nexport const getDeviceReports = state => state.devices.reports;\nexport const getGroupsById = state => state.devices.groups.byId;\nexport const getSelectedGroup = state => state.devices.groups.selectedGroup;\n\nexport const getDeviceListState = state => state.devices.deviceList;\nexport const getListedDevices = state => state.devices.deviceList.deviceIds;\nexport const getFilteringAttributes = state => state.devices.filteringAttributes;\nexport const getDeviceFilters = state => state.devices.filters || [];\nconst getFilteringAttributesFromConfig = state => state.devices.filteringAttributesConfig.attributes;\nexport const getSortedFilteringAttributes = createSelector([getFilteringAttributes], filteringAttributes => ({\n ...filteringAttributes,\n identityAttributes: [...filteringAttributes.identityAttributes, 'id']\n}));\nexport const getDeviceLimit = state => state.devices.limit;\nconst getFilteringAttributesLimit = state => state.devices.filteringAttributesLimit;\n\nexport const getDeviceIdentityAttributes = createSelector(\n [getFilteringAttributes, getFilteringAttributesLimit],\n ({ identityAttributes }, filteringAttributesLimit) => {\n // limit the selection of the available attribute to AVAILABLE_ATTRIBUTE_LIMIT\n const attributes = identityAttributes.slice(0, filteringAttributesLimit);\n return attributes.reduce(\n (accu, value) => {\n accu.push({ value, label: value, scope: 'identity' });\n return accu;\n },\n [\n { value: 'name', label: 'Name', scope: 'tags' },\n { value: 'id', label: 'Device ID', scope: 'identity' }\n ]\n );\n }\n);\n\nexport const getDeviceCountsByStatus = createSelector([getDevicesByStatus], byStatus =>\n Object.values(DEVICE_STATES).reduce((accu, state) => {\n accu[state] = byStatus[state].total || 0;\n return accu;\n }, {})\n);\n\nexport const getDeviceById = createSelector([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = '') => devicesById[deviceId] ?? {});\n\nexport const getSelectedGroupInfo = createSelector(\n [getAcceptedDevices, getGroupsById, getSelectedGroup],\n ({ total: acceptedDeviceTotal }, groupsById, selectedGroup) => {\n let groupCount = acceptedDeviceTotal;\n let groupFilters = [];\n if (selectedGroup && groupsById[selectedGroup]) {\n groupCount = groupsById[selectedGroup].total;\n groupFilters = groupsById[selectedGroup].filters || [];\n }\n return { groupCount, selectedGroup, groupFilters };\n }\n);\n\nexport const getLimitMaxed = createSelector([getAcceptedDevices, getDeviceLimit], ({ total: acceptedDevices = 0 }, deviceLimit) =>\n Boolean(deviceLimit && deviceLimit <= acceptedDevices)\n);\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport const getGroupsByIdWithoutUngrouped = createSelector([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);\n\nexport const getGroups = createSelector([getGroupsById], groupsById => {\n const groupNames = Object.keys(groupsById).sort();\n const groupedGroups = Object.entries(groupsById)\n .sort((a, b) => a[0].localeCompare(b[0]))\n .reduce(\n (accu, [groupname, group]) => {\n const name = groupname === UNGROUPED_GROUP.id ? UNGROUPED_GROUP.name : groupname;\n const groupItem = { ...group, groupId: name, name: groupname };\n if (group.filters.length > 0) {\n if (groupname !== UNGROUPED_GROUP.id) {\n accu.dynamic.push(groupItem);\n } else {\n accu.ungrouped.push(groupItem);\n }\n } else {\n accu.static.push(groupItem);\n }\n return accu;\n },\n { dynamic: [], static: [], ungrouped: [] }\n );\n return { groupNames, ...groupedGroups };\n});\nexport const getAttributesList = createSelector(\n [getFilteringAttributes, getFilteringAttributesFromConfig],\n ({ identityAttributes = [], inventoryAttributes = [] }, { identity = [], inventory = [] }) =>\n [...identityAttributes, ...inventoryAttributes, ...identity, ...inventory].filter(duplicateFilter)\n);\n\nexport const getDeviceTypes = createSelector([getAcceptedDevices, getDevicesById], ({ deviceIds = [] }, devicesById) =>\n Object.keys(\n deviceIds.slice(0, 200).reduce((accu, item) => {\n const { device_type: deviceTypes = [] } = devicesById[item] ? devicesById[item].attributes : {};\n accu = deviceTypes.reduce((deviceTypeAccu, deviceType) => {\n if (deviceType.length > 1) {\n deviceTypeAccu[deviceType] = deviceTypeAccu[deviceType] ? deviceTypeAccu[deviceType] + 1 : 1;\n }\n return deviceTypeAccu;\n }, accu);\n return accu;\n }, {})\n )\n);\n","// 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.\nimport { BarChart as BarChartIcon, PieChartOutline as PieChartIcon } from '@mui/icons-material';\n\nconst startingDeviceCount = {\n os: 'for first 50 devices',\n professional: 'for first 250 devices'\n};\n\nexport const apiRoot = '/api/management';\nexport const apiUrl = {\n v1: `${apiRoot}/v1`,\n v2: `${apiRoot}/v2`\n};\n\nexport const headerNames = {\n link: 'link',\n location: 'location',\n total: 'x-total-count'\n};\n\nexport const chartTypes = {\n bar: { key: 'bar', Icon: BarChartIcon },\n pie: { key: 'pie', Icon: PieChartIcon }\n};\nexport const emptyChartSelection = { software: '', group: '', chartType: chartTypes.bar.key, attribute: 'artifact_name' };\nexport const defaultReportType = 'distribution';\nexport const defaultReports = [{ ...emptyChartSelection, group: null, attribute: 'artifact_name', type: defaultReportType }];\n\nexport const BEGINNING_OF_TIME = '2016-01-01T00:00:00.000Z';\n\nexport const locations = {\n eu: { key: 'eu', title: 'EU', location: 'eu.hosted.mender.io' },\n us: { key: 'us', title: 'US', location: 'hosted.mender.io' }\n};\n\nexport const PLANS = {\n os: {\n id: 'os',\n name: 'Basic',\n offer: true,\n price: '$32/month',\n deviceCount: startingDeviceCount.os,\n offerprice: '$23/month for first 50 devices',\n price2: 'for first 6 months;\\n$29/month thereafter',\n features: ['Basic OTA features']\n },\n professional: {\n id: 'professional',\n name: 'Professional',\n offer: true,\n price: '$269/month',\n deviceCount: startingDeviceCount.professional,\n offerprice: '$200/month for first 50 devices',\n price2: 'for first 6 months;\\n$249/month thereafter',\n features: ['+ Advanced OTA features', '+ Standard support']\n },\n enterprise: {\n id: 'enterprise',\n name: 'Enterprise',\n price: 'Custom pricing',\n deviceCount: 'unlimited devices',\n features: ['+ Enterprise-grade OTA features', '+ Premium support']\n }\n};\n// the needs names need to be aligned with the name of the features in the appReducer, as they will be checked in the addonselection\nexport const ADDONS = {\n configure: {\n id: 'configure',\n title: 'Configure',\n description: 'Expand your plan with device configuration features',\n needs: ['hasDeviceConfig'],\n os: {\n price: '$11/month',\n deviceCount: startingDeviceCount.os\n },\n professional: {\n price: '$65/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['os', 'professional', 'enterprise']\n },\n troubleshoot: {\n id: 'troubleshoot',\n title: 'Troubleshoot',\n description: 'Expand your plan with device troubleshooting features',\n needs: ['hasDeviceConnect'],\n os: {\n price: '$27/month',\n deviceCount: startingDeviceCount.os\n },\n professional: {\n price: '$72/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['os', 'professional', 'enterprise']\n },\n monitor: {\n id: 'monitor',\n title: 'Monitor',\n description: 'Expand your plan with device monitoring features',\n needs: ['hasMonitor'],\n os: {\n price: '-',\n deviceCount: '-'\n },\n professional: {\n price: '$86/month',\n deviceCount: startingDeviceCount.professional\n },\n eligible: ['professional', 'enterprise']\n }\n};\n\nexport const BENEFITS = {\n auditlog: { id: 'auditlog', benefit: 'trace change across your devices and access troubleshooting session replay', requiredPlan: PLANS.professional.id },\n dashboard: { id: 'dashboard', benefit: 'actionable insights into the devices you are updating with Mender', requiredPlan: PLANS.enterprise.id },\n deltaGeneration: {\n id: 'deltaGeneration',\n benefit: 'automatic delta artifacts generation to minimize data transfer and improve the update delivery',\n requiredPlan: PLANS.enterprise.id\n },\n deviceConfiguration: { id: 'deviceConfiguration', benefit: 'device configuration features', requiredAddon: ADDONS.configure.id },\n deviceMonitor: { id: 'deviceMonitor', benefit: 'device monitoring features', requiredAddon: ADDONS.monitor.id, requiredPlan: PLANS.professional.id },\n deviceTroubleshoot: { id: 'deviceTroubleshoot', benefit: 'device troubleshooting features', requiredAddon: ADDONS.troubleshoot.id },\n dynamicGroups: { id: 'dynamicGroups', benefit: 'create dynamic groups to ease device management', requiredPlan: PLANS.enterprise.id },\n fullFiltering: { id: 'fullFiltering', benefit: 'filtering by multiple attributes to improve the device overview', requiredPlan: PLANS.professional.id },\n gateway: { id: 'gateway', benefit: 'see devices connected to your gateway device for easy access', requiredPlans: PLANS.professional.id },\n pausedDeployments: {\n id: 'pausedDeployments',\n benefit: 'granular control about update rollout to allow synchronization across your fleet',\n requiredPlan: PLANS.enterprise.id\n },\n phasedDeployments: { id: 'phasedDeployments', benefit: 'choose to roll out deployments in multiple phases', requiredPlan: PLANS.enterprise.id },\n rbac: { id: 'rbac', benefit: 'granular role based access control', requiredPlan: PLANS.enterprise.id },\n retryDeployments: { id: 'retryDeployments', benefit: 'optional retries for failed rollout attempts', requiredPlan: PLANS.professional.id },\n scheduledDeployments: {\n id: 'scheduledDeployments',\n benefit: 'scheduled deployments to steer the distribution of your updates.',\n requiredPlan: PLANS.professional.id\n },\n webhookEvents: {\n id: 'webhookEvents',\n benefit: 'receive inventory events and select which type(s) of events the webhook will receive',\n requiredPlan: PLANS.professional.id\n },\n\n default: { id: 'default', benefit: 'gain access to this feature', requiredPlan: PLANS.enterprise.id }\n};\n\nexport const yes = () => true;\nexport const canAccess = yes;\n\nexport const DARK_MODE = 'dark';\nexport const LIGHT_MODE = 'light';\n\nexport const APPLICATION_JSON_CONTENT_TYPE = 'application/json';\nexport const APPLICATION_JWT_CONTENT_TYPE = 'application/jwt';\n","// 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 &apos;Shared access policies&apos; 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","// 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.\nimport { DEVICE_FILTERING_OPTIONS, apiUrl } from '@northern.tech/store/constants';\n\nexport const emptyFilter = { key: null, value: '', operator: DEVICE_FILTERING_OPTIONS.$eq.key, scope: 'inventory' };\n\nexport const deviceAuthV2 = `${apiUrl.v2}/devauth`;\nexport const deviceConnect = `${apiUrl.v1}/deviceconnect`;\nexport const inventoryApiUrl = `${apiUrl.v1}/inventory`;\nexport const inventoryApiUrlV2 = `${apiUrl.v2}/inventory`;\nexport const deviceConfig = `${apiUrl.v1}/deviceconfig/configurations/device`;\nexport const reportingApiUrl = `${apiUrl.v1}/reporting`;\nexport const iotManagerBaseURL = `${apiUrl.v1}/iot-manager`;\n\n// see https://github.com/mendersoftware/go-lib-micro/tree/master/ws\n// for the description of proto_header and the consts\n// *Note*: this needs to be aligned with mender-connect and deviceconnect.\nexport const DEVICE_MESSAGE_PROTOCOLS = {\n Shell: 1\n};\nexport const DEVICE_MESSAGE_TYPES = {\n Delay: 'delay',\n New: 'new',\n Ping: 'ping',\n Pong: 'pong',\n Resize: 'resize',\n Shell: 'shell',\n Stop: 'stop'\n};\n\n// we can't include the dismiss state with the rest since this would include dismissed devices in several queries\nexport const DEVICE_DISMISSAL_STATE = 'dismiss';\nexport const ALL_DEVICE_STATES = 'any';\nexport const DEVICE_STATES = {\n accepted: 'accepted',\n pending: 'pending',\n preauth: 'preauthorized',\n rejected: 'rejected'\n};\nexport const DEVICE_CONNECT_STATES = {\n connected: 'connected',\n disconnected: 'disconnected',\n unknown: 'unknown'\n};\n\nexport const geoAttributes = ['geo-lat', 'geo-lon'].map(attribute => ({ attribute, scope: 'inventory' }));\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACaA,4BAA0E;AAE1E,IAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,cAAc;AAChB;AAEO,IAAM,UAAU;AAChB,IAAM,SAAS;AAAA,EACpB,IAAI,GAAG,OAAO;AAAA,EACd,IAAI,GAAG,OAAO;AAChB;AAQO,IAAM,aAAa;AAAA,EACxB,KAAK,EAAE,KAAK,OAAO,MAAM,sBAAAA,SAAa;AAAA,EACtC,KAAK,EAAE,KAAK,OAAO,MAAM,sBAAAC,gBAAa;AACxC;AACO,IAAM,sBAAsB,EAAE,UAAU,IAAI,OAAO,IAAI,WAAW,WAAW,IAAI,KAAK,WAAW,gBAAgB;AACjH,IAAM,oBAAoB;AAC1B,IAAM,iBAAiB,CAAC,EAAE,GAAG,qBAAqB,OAAO,MAAM,WAAW,iBAAiB,MAAM,kBAAkB,CAAC;AASpH,IAAM,QAAQ;AAAA,EACnB,IAAI;AAAA,IACF,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,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