@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
package/dist/auth.cjs ADDED
@@ -0,0 +1,320 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
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/auth.ts
31
+ var auth_exports = {};
32
+ __export(auth_exports, {
33
+ cleanUp: () => cleanUp,
34
+ getSessionInfo: () => getSessionInfo,
35
+ getToken: () => getToken,
36
+ maxSessionAge: () => maxSessionAge,
37
+ setSessionInfo: () => setSessionInfo,
38
+ updateMaxAge: () => updateMaxAge
39
+ });
40
+ module.exports = __toCommonJS(auth_exports);
41
+ var import_universal_cookie = __toESM(require("universal-cookie"), 1);
42
+
43
+ // src/commonConstants.tsx
44
+ var import_js = require("@mdi/js");
45
+ var import_jsx_runtime = require("react/jsx-runtime");
46
+ var timeUnits = {
47
+ days: "days",
48
+ minutes: "minutes",
49
+ hours: "hours"
50
+ };
51
+ var DEVICE_FILTERING_OPTIONS = {
52
+ $eq: { key: "$eq", title: "equals", shortform: "=" },
53
+ $ne: { key: "$ne", title: "not equal", shortform: "!=" },
54
+ $gt: {
55
+ key: "$gt",
56
+ title: ">",
57
+ shortform: ">",
58
+ 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.'
59
+ },
60
+ $gte: {
61
+ title: ">=",
62
+ shortform: ">=",
63
+ 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.'
64
+ },
65
+ $lt: {
66
+ key: "$lt",
67
+ title: "<",
68
+ shortform: "<",
69
+ 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.'
70
+ },
71
+ $lte: {
72
+ title: "<=",
73
+ shortform: "<=",
74
+ 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.'
75
+ },
76
+ $ltne: {
77
+ key: "$ltne",
78
+ title: "$ltne",
79
+ shortform: "ltne",
80
+ 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.'
81
+ },
82
+ $in: {
83
+ key: "$in",
84
+ title: "in",
85
+ shortform: "in",
86
+ 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.'
87
+ },
88
+ $nin: {
89
+ key: "$nin",
90
+ title: "not in",
91
+ shortform: "not in",
92
+ 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.`
93
+ },
94
+ $exists: {
95
+ key: "$exists",
96
+ title: "exists",
97
+ shortform: "exists",
98
+ value: true,
99
+ help: `The "exists" operator matches if the selected field's value has a value. No value needs to be provided for this operator.`
100
+ },
101
+ $nexists: {
102
+ key: "$nexists",
103
+ title: `doesn't exist`,
104
+ shortform: `doesn't exist`,
105
+ value: true,
106
+ 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.`
107
+ },
108
+ $regex: {
109
+ key: "$regex",
110
+ title: `matches regular expression`,
111
+ shortform: `matches`,
112
+ 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.`
113
+ }
114
+ };
115
+ var DEVICE_ISSUE_OPTIONS = {
116
+ issues: {
117
+ isCategory: true,
118
+ key: "issues",
119
+ title: "Devices with issues",
120
+ filterRule: {}
121
+ },
122
+ offline: {
123
+ issueCategory: "issues",
124
+ key: "offline",
125
+ needsFullFiltering: true,
126
+ needsMonitor: false,
127
+ needsReporting: false,
128
+ filterRule: {
129
+ scope: "system",
130
+ key: "check_in_time",
131
+ operator: DEVICE_FILTERING_OPTIONS.$ltne.key,
132
+ value: ({ offlineThreshold }) => offlineThreshold
133
+ },
134
+ title: "Offline devices"
135
+ },
136
+ failedLastUpdate: {
137
+ issueCategory: "issues",
138
+ key: "failedLastUpdate",
139
+ needsFullFiltering: false,
140
+ needsMonitor: false,
141
+ needsReporting: true,
142
+ filterRule: { scope: "monitor", key: "failed_last_update", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
143
+ title: "Deployment failed"
144
+ },
145
+ monitoring: {
146
+ issueCategory: "issues",
147
+ key: "monitoring",
148
+ needsFullFiltering: false,
149
+ needsMonitor: true,
150
+ needsReporting: false,
151
+ filterRule: { scope: "monitor", key: "alerts", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: true },
152
+ title: "Monitoring alert"
153
+ },
154
+ authRequests: {
155
+ key: "authRequests",
156
+ needsFullFiltering: false,
157
+ needsMonitor: false,
158
+ needsReporting: true,
159
+ filterRule: { scope: "monitor", key: "auth_requests", operator: DEVICE_FILTERING_OPTIONS.$gt.key, value: 1 },
160
+ title: "Devices with new authentication requests"
161
+ },
162
+ gatewayDevices: {
163
+ key: "gatewayDevices",
164
+ needsFullFiltering: false,
165
+ needsMonitor: false,
166
+ needsReporting: true,
167
+ filterRule: { scope: "inventory", key: "mender_is_gateway", operator: DEVICE_FILTERING_OPTIONS.$eq.key, value: "true" },
168
+ title: "Gateway devices"
169
+ }
170
+ };
171
+ var oneSecond = 1e3;
172
+ var TIMEOUTS = {
173
+ debounceDefault: 700,
174
+ debounceShort: 300,
175
+ halfASecond: 0.5 * oneSecond,
176
+ oneSecond,
177
+ twoSeconds: 2 * oneSecond,
178
+ threeSeconds: 3 * oneSecond,
179
+ fiveSeconds: 5 * oneSecond,
180
+ refreshDefault: 10 * oneSecond,
181
+ refreshLong: 60 * oneSecond
182
+ };
183
+ var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
184
+ var ATTRIBUTE_SCOPES = {
185
+ inventory: "inventory",
186
+ identity: "identity",
187
+ monitor: "monitor",
188
+ system: "system",
189
+ tags: "tags"
190
+ };
191
+ var defaultIdAttribute = Object.freeze({ attribute: "id", scope: ATTRIBUTE_SCOPES.identity });
192
+ var credentialTypes = {
193
+ aws: "aws",
194
+ http: "http",
195
+ sas: "sas",
196
+ x509: "x509"
197
+ };
198
+ var EXTERNAL_PROVIDER = {
199
+ "iot-core": {
200
+ credentialsType: credentialTypes.aws,
201
+ icon: import_js.mdiAws,
202
+ title: "AWS IoT Core",
203
+ twinTitle: "Device Shadow",
204
+ provider: "iot-core",
205
+ enabled: true,
206
+ deviceTwin: true,
207
+ 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." })
208
+ },
209
+ "iot-hub": {
210
+ credentialsType: credentialTypes.sas,
211
+ icon: import_js.mdiMicrosoftAzure,
212
+ title: "Azure IoT Hub",
213
+ twinTitle: "Device Twin",
214
+ provider: "iot-hub",
215
+ enabled: true,
216
+ deviceTwin: true,
217
+ configHint: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
218
+ "For help finding your Azure IoT Hub connection string, look under 'Shared access policies' in the Microsoft Azure UI as described",
219
+ " ",
220
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
221
+ "a",
222
+ {
223
+ href: "https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/#iothubconn",
224
+ target: "_blank",
225
+ rel: "noopener noreferrer",
226
+ children: "here"
227
+ }
228
+ ),
229
+ "."
230
+ ] })
231
+ },
232
+ webhook: {
233
+ credentialsType: credentialTypes.http,
234
+ deviceTwin: false,
235
+ // disable the webhook provider here, since it is treated different than other integrations, with a custom configuration & management view, etc.
236
+ enabled: false,
237
+ provider: "webhook"
238
+ }
239
+ };
240
+ var emptyUiPermissions = Object.freeze({
241
+ auditlog: [],
242
+ deployments: [],
243
+ groups: Object.freeze({}),
244
+ releases: Object.freeze({}),
245
+ tenantManagement: [],
246
+ userManagement: []
247
+ });
248
+ var emptyRole = Object.freeze({
249
+ name: void 0,
250
+ description: "",
251
+ permissions: [],
252
+ uiPermissions: Object.freeze({ ...emptyUiPermissions })
253
+ });
254
+
255
+ // src/auth.ts
256
+ var cookies = new import_universal_cookie.default();
257
+ var emptySession = Object.freeze({ token: "", exiresAt: void 0 });
258
+ var tokenCache = "";
259
+ var getSessionInfo = () => {
260
+ let sessionInfo = { ...emptySession };
261
+ try {
262
+ sessionInfo = JSON.parse(window.localStorage.getItem("JWT") ?? "");
263
+ } catch {
264
+ }
265
+ if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < /* @__PURE__ */ new Date()) {
266
+ cleanUp();
267
+ return { ...emptySession };
268
+ }
269
+ if (!sessionInfo.token) {
270
+ let jwtTokenFromCookie = cookies.get("JWT", { doNotParse: true }) ?? "";
271
+ if (jwtTokenFromCookie) {
272
+ setSessionInfo({ token: jwtTokenFromCookie, undefined: void 0 });
273
+ sessionInfo.token = jwtTokenFromCookie;
274
+ cookies.remove("JWT");
275
+ cookies.remove("JWT", { path: "/" });
276
+ }
277
+ }
278
+ sessionInfo.token = sessionInfo.token || void 0;
279
+ tokenCache = sessionInfo.token;
280
+ return sessionInfo;
281
+ };
282
+ var getToken = () => tokenCache ? tokenCache : getSessionInfo().token;
283
+ var setSessionInfo = ({ token, expiresAt }) => {
284
+ tokenCache = token;
285
+ window.localStorage.setItem("JWT", JSON.stringify({ token, expiresAt }));
286
+ };
287
+ var cleanUp = () => {
288
+ tokenCache = "";
289
+ cookies.remove("JWT");
290
+ cookies.remove("JWT", { path: "/" });
291
+ window.localStorage.removeItem("JWT");
292
+ window.localStorage.removeItem("oauth");
293
+ };
294
+ var maxSessionAge = 900;
295
+ var updateMaxAge = ({ expiresAt, token }) => {
296
+ const oAuthExpiration = Number(window.localStorage.getItem("oauth"));
297
+ let updateWithOAuth = false;
298
+ if (oAuthExpiration) {
299
+ const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;
300
+ updateWithOAuth = oAuthExpiration <= soon;
301
+ if (updateWithOAuth) {
302
+ window.localStorage.removeItem("oauth");
303
+ }
304
+ }
305
+ if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {
306
+ const expiration = /* @__PURE__ */ new Date();
307
+ expiration.setSeconds(expiration.getSeconds() + maxSessionAge);
308
+ setSessionInfo({ token, expiresAt: expiration.toISOString() });
309
+ }
310
+ };
311
+ // Annotate the CommonJS export names for ESM import in node:
312
+ 0 && (module.exports = {
313
+ cleanUp,
314
+ getSessionInfo,
315
+ getToken,
316
+ maxSessionAge,
317
+ setSessionInfo,
318
+ updateMaxAge
319
+ });
320
+ //# sourceMappingURL=auth.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/auth.ts","../src/commonConstants.tsx"],"sourcesContent":["// Copyright 2016 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 Cookies from 'universal-cookie';\n\nimport { TIMEOUTS } from './constants';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', exiresAt: undefined });\n\nlet tokenCache = '';\n\nexport const getSessionInfo = () => {\n let sessionInfo = { ...emptySession };\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n if (!sessionInfo.token) {\n let jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie, undefined });\n sessionInfo.token = jwtTokenFromCookie;\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n }\n }\n sessionInfo.token = sessionInfo.token || undefined;\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n};\n\nexport const maxSessionAge = 900;\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcA,8BAAoB;;;ACEpB,gBAA0D;AAwL1C;AAjLT,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AACT;AAOO,IAAM,2BAA2B;AAAA,EACtC,KAAK,EAAE,KAAK,OAAO,OAAO,UAAU,WAAW,IAAI;AAAA,EACnD,KAAK,EAAE,KAAK,OAAO,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