@northern.tech/store 0.36.0 → 0.36.2

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 (281) hide show
  1. package/dist/actions.cjs.map +1 -1
  2. package/dist/actions.d.cts +123 -134
  3. package/dist/actions.d.ts +123 -134
  4. package/dist/actions.js.map +1 -1
  5. package/dist/api/general-api.cjs +1 -1
  6. package/dist/api/general-api.cjs.map +1 -1
  7. package/dist/api/general-api.d.cts +9 -10
  8. package/dist/api/general-api.d.ts +9 -10
  9. package/dist/api/general-api.js.map +1 -1
  10. package/dist/api/users-api.cjs +1 -1
  11. package/dist/api/users-api.cjs.map +1 -1
  12. package/dist/api/users-api.d.cts +1 -2
  13. package/dist/api/users-api.d.ts +1 -2
  14. package/dist/api/users-api.js.map +1 -1
  15. package/dist/appSlice/constants.cjs +0 -1
  16. package/dist/appSlice/constants.cjs.map +1 -1
  17. package/dist/appSlice/constants.d.cts +1 -1
  18. package/dist/appSlice/constants.d.ts +1 -1
  19. package/dist/appSlice/constants.js.map +1 -1
  20. package/dist/appSlice/index.cjs +2 -4
  21. package/dist/appSlice/index.cjs.map +1 -1
  22. package/dist/appSlice/index.d.cts +2 -2
  23. package/dist/appSlice/index.d.ts +2 -2
  24. package/dist/appSlice/index.js +2 -3
  25. package/dist/appSlice/index.js.map +1 -1
  26. package/dist/appSlice/mocks.cjs.map +1 -1
  27. package/dist/appSlice/mocks.d.cts +1 -1
  28. package/dist/appSlice/mocks.d.ts +1 -1
  29. package/dist/appSlice/mocks.js.map +1 -1
  30. package/dist/appSlice/selectors.cjs +2 -6
  31. package/dist/appSlice/selectors.cjs.map +1 -1
  32. package/dist/appSlice/selectors.d.cts +35 -128
  33. package/dist/appSlice/selectors.d.ts +35 -128
  34. package/dist/appSlice/selectors.js +2 -5
  35. package/dist/appSlice/selectors.js.map +1 -1
  36. package/dist/appSlice/thunks.cjs +0 -1
  37. package/dist/appSlice/thunks.d.cts +6 -31
  38. package/dist/appSlice/thunks.d.ts +6 -31
  39. package/dist/appSlice/thunks.js +2 -2
  40. package/dist/auth.cjs +1 -1
  41. package/dist/auth.cjs.map +1 -1
  42. package/dist/auth.d.cts +1 -1
  43. package/dist/auth.d.ts +1 -1
  44. package/dist/auth.js.map +1 -1
  45. package/dist/commonConstants.d.cts +1 -1
  46. package/dist/commonConstants.d.ts +1 -1
  47. package/dist/commonSelectors.cjs +1 -1
  48. package/dist/commonSelectors.cjs.map +1 -1
  49. package/dist/commonSelectors.d.cts +164 -166
  50. package/dist/commonSelectors.d.ts +164 -166
  51. package/dist/commonSelectors.js.map +1 -1
  52. package/dist/{constants-CIx3fnBv.d.cts → constants-6kYRTdox.d.cts} +1 -1
  53. package/dist/{constants-BciiayPt.d.ts → constants-6kYRTdox.d.ts} +1 -1
  54. package/dist/{constants-BIIEMVoG.d.ts → constants-B_7FCJQX.d.cts} +3 -6
  55. package/dist/{constants-BFTS6mge.d.cts → constants-B_7FCJQX.d.ts} +3 -6
  56. package/dist/{constants-D41U_jbR.d.cts → constants-BwKiHHaB.d.cts} +1 -1
  57. package/dist/{constants-5cdwz1iH.d.ts → constants-BwKiHHaB.d.ts} +1 -1
  58. package/dist/{constants-DK7fI3Rh.d.cts → constants-Db_RBdlV.d.cts} +1 -1
  59. package/dist/{constants-BWEsNG5c.d.ts → constants-Db_RBdlV.d.ts} +1 -1
  60. package/dist/{constants-CNhpIMME.d.cts → constants-OZiiFKiA.d.cts} +1 -1
  61. package/dist/{constants-y2XVLQWf.d.ts → constants-OZiiFKiA.d.ts} +1 -1
  62. package/dist/{constants-CjO3_FOH.d.ts → constants-OcdoVk6f.d.ts} +3 -4
  63. package/dist/{constants-G3wymKIl.d.cts → constants-Sn4gnNA3.d.cts} +1 -1
  64. package/dist/{constants-Cpgyuy_r.d.ts → constants-Sn4gnNA3.d.ts} +1 -1
  65. package/dist/{constants-BrGIx40B.d.cts → constants-_p6w8uEp.d.cts} +3 -4
  66. package/dist/constants.cjs +0 -1
  67. package/dist/constants.cjs.map +1 -1
  68. package/dist/constants.d.cts +8 -8
  69. package/dist/constants.d.ts +8 -8
  70. package/dist/constants.js.map +1 -1
  71. package/dist/deploymentsSlice/constants.d.cts +1 -1
  72. package/dist/deploymentsSlice/constants.d.ts +1 -1
  73. package/dist/deploymentsSlice/index.cjs +0 -1
  74. package/dist/deploymentsSlice/index.cjs.map +1 -1
  75. package/dist/deploymentsSlice/index.d.cts +1 -1
  76. package/dist/deploymentsSlice/index.d.ts +1 -1
  77. package/dist/deploymentsSlice/index.js.map +1 -1
  78. package/dist/deploymentsSlice/mocks.cjs.map +1 -1
  79. package/dist/deploymentsSlice/mocks.d.cts +1 -1
  80. package/dist/deploymentsSlice/mocks.d.ts +1 -1
  81. package/dist/deploymentsSlice/mocks.js.map +1 -1
  82. package/dist/deploymentsSlice/selectors.cjs +0 -1
  83. package/dist/deploymentsSlice/selectors.cjs.map +1 -1
  84. package/dist/deploymentsSlice/selectors.d.cts +15 -16
  85. package/dist/deploymentsSlice/selectors.d.ts +15 -16
  86. package/dist/deploymentsSlice/selectors.js.map +1 -1
  87. package/dist/deploymentsSlice/thunks.d.cts +21 -22
  88. package/dist/deploymentsSlice/thunks.d.ts +21 -22
  89. package/dist/devicesSlice/constants.d.cts +1 -1
  90. package/dist/devicesSlice/constants.d.ts +1 -1
  91. package/dist/devicesSlice/index.cjs +0 -1
  92. package/dist/devicesSlice/index.cjs.map +1 -1
  93. package/dist/devicesSlice/index.d.cts +1 -1
  94. package/dist/devicesSlice/index.d.ts +1 -1
  95. package/dist/devicesSlice/index.js.map +1 -1
  96. package/dist/devicesSlice/mocks.cjs +0 -1
  97. package/dist/devicesSlice/mocks.cjs.map +1 -1
  98. package/dist/devicesSlice/mocks.js.map +1 -1
  99. package/dist/devicesSlice/selectors.cjs +0 -1
  100. package/dist/devicesSlice/selectors.cjs.map +1 -1
  101. package/dist/devicesSlice/selectors.d.cts +79 -81
  102. package/dist/devicesSlice/selectors.d.ts +79 -81
  103. package/dist/devicesSlice/selectors.js.map +1 -1
  104. package/dist/devicesSlice/thunks.d.cts +67 -69
  105. package/dist/devicesSlice/thunks.d.ts +67 -69
  106. package/dist/{index-DUvrw_Ed.d.ts → index-5Q-iI4EB.d.cts} +17 -20
  107. package/dist/index-BBsUj1a8.d.ts +68 -0
  108. package/dist/index-BLvjQfGj.d.ts +119 -0
  109. package/dist/{index-BP0uAq36.d.cts → index-Bb4yvvgG.d.ts} +25 -28
  110. package/dist/index-Bj3OArhr.d.cts +68 -0
  111. package/dist/{index-CT5hgXm9.d.cts → index-ByfjrTdH.d.ts} +16 -19
  112. package/dist/index-C8QadAm7.d.cts +119 -0
  113. package/dist/{index-BI9O8JWe.d.ts → index-CPdMUfRr.d.ts} +41 -44
  114. package/dist/index-CSk4ENmk.d.cts +149 -0
  115. package/dist/index-Cf81vLTi.d.ts +149 -0
  116. package/dist/index-DBUt8xVc.d.cts +61 -0
  117. package/dist/index-DBUt8xVc.d.ts +61 -0
  118. package/dist/index-DLDY7bNT.d.ts +165 -0
  119. package/dist/{index-B64X5ozM.d.cts → index-DbfM03Gj.d.cts} +42 -45
  120. package/dist/{index-CkwVnIqd.d.ts → index-EPmsL6Lb.d.cts} +26 -29
  121. package/dist/index-Zs9RnVoR.d.cts +165 -0
  122. package/dist/liststatehook.cjs +5 -6
  123. package/dist/liststatehook.cjs.map +1 -1
  124. package/dist/liststatehook.d.cts +1 -1
  125. package/dist/liststatehook.d.ts +1 -1
  126. package/dist/liststatehook.js +1 -1
  127. package/dist/liststatehook.js.map +1 -1
  128. package/dist/locationutils.cjs +0 -1
  129. package/dist/locationutils.cjs.map +1 -1
  130. package/dist/locationutils.d.cts +3 -3
  131. package/dist/locationutils.d.ts +3 -3
  132. package/dist/locationutils.js.map +1 -1
  133. package/dist/monitorSlice/constants.d.cts +1 -1
  134. package/dist/monitorSlice/constants.d.ts +1 -1
  135. package/dist/monitorSlice/index.cjs +0 -1
  136. package/dist/monitorSlice/index.cjs.map +1 -1
  137. package/dist/monitorSlice/index.d.cts +1 -1
  138. package/dist/monitorSlice/index.d.ts +1 -1
  139. package/dist/monitorSlice/index.js.map +1 -1
  140. package/dist/monitorSlice/mocks.cjs +0 -1
  141. package/dist/monitorSlice/mocks.cjs.map +1 -1
  142. package/dist/monitorSlice/mocks.d.cts +1 -1
  143. package/dist/monitorSlice/mocks.d.ts +1 -1
  144. package/dist/monitorSlice/mocks.js.map +1 -1
  145. package/dist/monitorSlice/selectors.d.cts +1 -1
  146. package/dist/monitorSlice/selectors.d.ts +1 -1
  147. package/dist/monitorSlice/thunks.cjs +1 -3
  148. package/dist/monitorSlice/thunks.cjs.map +1 -1
  149. package/dist/monitorSlice/thunks.d.cts +11 -13
  150. package/dist/monitorSlice/thunks.d.ts +11 -13
  151. package/dist/monitorSlice/thunks.js +1 -2
  152. package/dist/monitorSlice/thunks.js.map +1 -1
  153. package/dist/onboardingSlice/constants.cjs.map +1 -1
  154. package/dist/onboardingSlice/constants.d.cts +1 -1
  155. package/dist/onboardingSlice/constants.d.ts +1 -1
  156. package/dist/onboardingSlice/constants.js.map +1 -1
  157. package/dist/onboardingSlice/index.cjs +0 -1
  158. package/dist/onboardingSlice/index.cjs.map +1 -1
  159. package/dist/onboardingSlice/index.d.cts +1 -1
  160. package/dist/onboardingSlice/index.d.ts +1 -1
  161. package/dist/onboardingSlice/index.js.map +1 -1
  162. package/dist/onboardingSlice/mocks.cjs.map +1 -1
  163. package/dist/onboardingSlice/mocks.d.cts +1 -1
  164. package/dist/onboardingSlice/mocks.d.ts +1 -1
  165. package/dist/onboardingSlice/mocks.js.map +1 -1
  166. package/dist/onboardingSlice/selectors.d.cts +2 -2
  167. package/dist/onboardingSlice/selectors.d.ts +2 -2
  168. package/dist/onboardingSlice/thunks.d.cts +22 -23
  169. package/dist/onboardingSlice/thunks.d.ts +22 -23
  170. package/dist/organizationSlice/constants.d.cts +1 -1
  171. package/dist/organizationSlice/constants.d.ts +1 -1
  172. package/dist/organizationSlice/index.cjs +0 -1
  173. package/dist/organizationSlice/index.cjs.map +1 -1
  174. package/dist/organizationSlice/index.d.cts +1 -1
  175. package/dist/organizationSlice/index.d.ts +1 -1
  176. package/dist/organizationSlice/index.js.map +1 -1
  177. package/dist/organizationSlice/mocks.cjs +0 -1
  178. package/dist/organizationSlice/mocks.cjs.map +1 -1
  179. package/dist/organizationSlice/mocks.d.cts +3 -4
  180. package/dist/organizationSlice/mocks.d.ts +3 -4
  181. package/dist/organizationSlice/mocks.js.map +1 -1
  182. package/dist/organizationSlice/selectors.cjs +0 -1
  183. package/dist/organizationSlice/selectors.cjs.map +1 -1
  184. package/dist/organizationSlice/selectors.d.cts +78 -81
  185. package/dist/organizationSlice/selectors.d.ts +78 -81
  186. package/dist/organizationSlice/selectors.js.map +1 -1
  187. package/dist/organizationSlice/thunks.d.cts +69 -72
  188. package/dist/organizationSlice/thunks.d.ts +69 -72
  189. package/dist/organizationSlice/types.d.cts +1 -1
  190. package/dist/organizationSlice/types.d.ts +1 -1
  191. package/dist/releasesSlice/constants.cjs.map +1 -1
  192. package/dist/releasesSlice/constants.d.cts +1 -1
  193. package/dist/releasesSlice/constants.d.ts +1 -1
  194. package/dist/releasesSlice/constants.js.map +1 -1
  195. package/dist/releasesSlice/index.cjs +0 -1
  196. package/dist/releasesSlice/index.cjs.map +1 -1
  197. package/dist/releasesSlice/index.d.cts +1 -1
  198. package/dist/releasesSlice/index.d.ts +1 -1
  199. package/dist/releasesSlice/index.js.map +1 -1
  200. package/dist/releasesSlice/mocks.cjs +0 -1
  201. package/dist/releasesSlice/mocks.cjs.map +1 -1
  202. package/dist/releasesSlice/mocks.d.cts +3 -6
  203. package/dist/releasesSlice/mocks.d.ts +3 -6
  204. package/dist/releasesSlice/mocks.js.map +1 -1
  205. package/dist/releasesSlice/selectors.cjs +0 -1
  206. package/dist/releasesSlice/selectors.cjs.map +1 -1
  207. package/dist/releasesSlice/selectors.d.cts +107 -110
  208. package/dist/releasesSlice/selectors.d.ts +107 -110
  209. package/dist/releasesSlice/selectors.js.map +1 -1
  210. package/dist/releasesSlice/thunks.cjs +4 -5
  211. package/dist/releasesSlice/thunks.cjs.map +1 -1
  212. package/dist/releasesSlice/thunks.d.cts +52 -55
  213. package/dist/releasesSlice/thunks.d.ts +52 -55
  214. package/dist/releasesSlice/thunks.js +3 -4
  215. package/dist/releasesSlice/thunks.js.map +1 -1
  216. package/dist/sockethook.cjs +1 -1
  217. package/dist/sockethook.cjs.map +1 -1
  218. package/dist/sockethook.js.map +1 -1
  219. package/dist/{store-BZo47jc-.d.ts → store-Co2ptTSm.d.ts} +30 -35
  220. package/dist/{store-BhRxVhtL.d.cts → store-Dd0Y2JCN.d.cts} +30 -35
  221. package/dist/store.cjs +0 -1
  222. package/dist/store.cjs.map +1 -1
  223. package/dist/store.d.cts +3 -3
  224. package/dist/store.d.ts +3 -3
  225. package/dist/store.js.map +1 -1
  226. package/dist/storehooks.cjs +6 -14
  227. package/dist/storehooks.cjs.map +1 -1
  228. package/dist/storehooks.d.cts +6 -43
  229. package/dist/storehooks.d.ts +6 -43
  230. package/dist/storehooks.js +7 -15
  231. package/dist/storehooks.js.map +1 -1
  232. package/dist/thunks.cjs +4 -44
  233. package/dist/thunks.cjs.map +1 -1
  234. package/dist/thunks.d.cts +2 -2
  235. package/dist/thunks.d.ts +2 -2
  236. package/dist/thunks.js +5 -44
  237. package/dist/thunks.js.map +1 -1
  238. package/dist/{types-COdPU2QQ.d.cts → types-B33vKVhi.d.cts} +4 -4
  239. package/dist/{types-BPyM8Inu.d.ts → types-BjtmX60L.d.ts} +4 -4
  240. package/dist/useDeploymentDevice.cjs +1 -1
  241. package/dist/useDeploymentDevice.cjs.map +1 -1
  242. package/dist/useDeploymentDevice.js.map +1 -1
  243. package/dist/usersSlice/constants.d.cts +1 -1
  244. package/dist/usersSlice/constants.d.ts +1 -1
  245. package/dist/usersSlice/index.cjs +0 -1
  246. package/dist/usersSlice/index.cjs.map +1 -1
  247. package/dist/usersSlice/index.d.cts +1 -1
  248. package/dist/usersSlice/index.d.ts +1 -1
  249. package/dist/usersSlice/index.js.map +1 -1
  250. package/dist/usersSlice/mocks.cjs +0 -1
  251. package/dist/usersSlice/mocks.cjs.map +1 -1
  252. package/dist/usersSlice/mocks.d.cts +4 -6
  253. package/dist/usersSlice/mocks.d.ts +4 -6
  254. package/dist/usersSlice/mocks.js.map +1 -1
  255. package/dist/usersSlice/selectors.cjs +0 -1
  256. package/dist/usersSlice/selectors.cjs.map +1 -1
  257. package/dist/usersSlice/selectors.d.cts +44 -47
  258. package/dist/usersSlice/selectors.d.ts +44 -47
  259. package/dist/usersSlice/selectors.js.map +1 -1
  260. package/dist/usersSlice/thunks.d.cts +92 -95
  261. package/dist/usersSlice/thunks.d.ts +92 -95
  262. package/dist/{utils-CHBWS_tH.d.ts → utils-C_9XEfi_.d.ts} +8 -9
  263. package/dist/{utils-Do9z5TL1.d.cts → utils-DbXmZmGq.d.cts} +8 -9
  264. package/dist/utils.cjs +0 -3
  265. package/dist/utils.cjs.map +1 -1
  266. package/dist/utils.d.cts +2 -2
  267. package/dist/utils.d.ts +2 -2
  268. package/dist/utils.js +1 -2
  269. package/dist/utils.js.map +1 -1
  270. package/package.json +7 -7
  271. package/dist/index-B3IF6ur9.d.cts +0 -168
  272. package/dist/index-BFlHWzjv.d.cts +0 -152
  273. package/dist/index-BbaS7MzW.d.cts +0 -71
  274. package/dist/index-Bp1WpATs.d.ts +0 -154
  275. package/dist/index-C6wNUfiV.d.ts +0 -71
  276. package/dist/index-CJkrL0oA.d.ts +0 -64
  277. package/dist/index-DaD3yorF.d.ts +0 -168
  278. package/dist/index-DwACbyUg.d.cts +0 -154
  279. package/dist/index-UPc3wvVd.d.cts +0 -64
  280. package/dist/index-ez3oxfRo.d.ts +0 -152
  281. /package/dist/{chunk-CKQMccvm.cjs → chunk-D6vf50IK.cjs} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"mocks.cjs","names":["initialState","DEVICE_LIST_DEFAULTS","DEVICE_ISSUE_OPTIONS"],"sources":["../../src/monitorSlice/mocks.ts"],"sourcesContent":["// Copyright 2025 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceIssueOption } from '@northern.tech/utils/constants';\n\nimport { DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS } from '../constants';\nimport { initialState } from './index';\n\nexport const mockState = {\n ...initialState,\n alerts: {\n alertList: { ...DEVICE_LIST_DEFAULTS, total: 0 },\n byDeviceId: {\n a1: {\n alerts: [\n {\n description: 'something',\n id: '31346239-3839-6262-2d63-3365622d3437',\n name: 'SSH Daemon is not running',\n device_id: 'a1',\n level: 'CRITICAL',\n subject: {\n name: 'sshd',\n type: 'systemd',\n status: 'not-running',\n details: { description: 'Jul 22 10:40:56 raspberrypi sshd[32031]: pam_unix(sshd:session): session closed for user root' }\n },\n timestamp: '2021-07-23T12:22:36Z'\n }\n ],\n latest: []\n }\n }\n },\n issueCounts: {\n byType: Object.values<DeviceIssueOption>(DEVICE_ISSUE_OPTIONS).reduce(\n (accu, { isCategory, key }) => {\n if (isCategory) {\n return accu;\n }\n accu[key] = accu[key] ?? { filtered: 0, total: 0 };\n return accu;\n },\n {\n [DEVICE_ISSUE_OPTIONS.monitoring.key]: { filtered: 3, total: 0 },\n [DEVICE_ISSUE_OPTIONS.offline.key]: { filtered: 0, total: 0 }\n }\n )\n },\n settings: {\n global: {\n channels: { email: { enabled: true } }\n }\n }\n};\n"],"mappings":";;;;;AAkBA,MAAa,YAAY;CACvB,GAAGA,2BAAAA;CACH,QAAQ;EACN,WAAW;GAAE,GAAGC,+BAAAA;GAAsB,OAAO;GAAG;EAChD,YAAY,EACV,IAAI;GACF,QAAQ,CACN;IACE,aAAa;IACb,IAAI;IACJ,MAAM;IACN,WAAW;IACX,OAAO;IACP,SAAS;KACP,MAAM;KACN,MAAM;KACN,QAAQ;KACR,SAAS,EAAE,aAAa,iGAAiG;KAC1H;IACD,WAAW;IACZ,CACF;GACD,QAAQ,EAAE;GACX,EACF;EACF;CACD,aAAa,EACX,QAAQ,OAAO,OAA0BC,+BAAAA,qBAAqB,CAAC,QAC5D,MAAM,EAAE,YAAY,UAAU;EAC7B,IAAI,YACF,OAAO;EAET,KAAK,OAAO,KAAK,QAAQ;GAAE,UAAU;GAAG,OAAO;GAAG;EAClD,OAAO;IAET;GACGA,+BAAAA,qBAAqB,WAAW,MAAM;GAAE,UAAU;GAAG,OAAO;GAAG;GAC/DA,+BAAAA,qBAAqB,QAAQ,MAAM;GAAE,UAAU;GAAG,OAAO;GAAG;EAC9D,CACF,EACF;CACD,UAAU,EACR,QAAQ,EACN,UAAU,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,EACvC,EACF;CACF"}
1
+ {"version":3,"file":"mocks.cjs","names":["initialState","DEVICE_LIST_DEFAULTS","DEVICE_ISSUE_OPTIONS"],"sources":["../../src/monitorSlice/mocks.ts"],"sourcesContent":["// Copyright 2025 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceIssueOption } from '@northern.tech/utils/constants';\n\nimport { DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS } from '../constants';\nimport { initialState } from './index';\n\nexport const mockState = {\n ...initialState,\n alerts: {\n alertList: { ...DEVICE_LIST_DEFAULTS, total: 0 },\n byDeviceId: {\n a1: {\n alerts: [\n {\n description: 'something',\n id: '31346239-3839-6262-2d63-3365622d3437',\n name: 'SSH Daemon is not running',\n device_id: 'a1',\n level: 'CRITICAL',\n subject: {\n name: 'sshd',\n type: 'systemd',\n status: 'not-running',\n details: { description: 'Jul 22 10:40:56 raspberrypi sshd[32031]: pam_unix(sshd:session): session closed for user root' }\n },\n timestamp: '2021-07-23T12:22:36Z'\n }\n ],\n latest: []\n }\n }\n },\n issueCounts: {\n byType: Object.values<DeviceIssueOption>(DEVICE_ISSUE_OPTIONS).reduce(\n (accu, { isCategory, key }) => {\n if (isCategory) {\n return accu;\n }\n accu[key] = accu[key] ?? { filtered: 0, total: 0 };\n return accu;\n },\n {\n [DEVICE_ISSUE_OPTIONS.monitoring.key]: { filtered: 3, total: 0 },\n [DEVICE_ISSUE_OPTIONS.offline.key]: { filtered: 0, total: 0 }\n }\n )\n },\n settings: {\n global: {\n channels: { email: { enabled: true } }\n }\n }\n};\n"],"mappings":";;;;AAkBA,MAAa,YAAY;CACvB,GAAGA,2BAAAA;CACH,QAAQ;EACN,WAAW;GAAE,GAAGC,+BAAAA;GAAsB,OAAO;EAAE;EAC/C,YAAY,EACV,IAAI;GACF,QAAQ,CACN;IACE,aAAa;IACb,IAAI;IACJ,MAAM;IACN,WAAW;IACX,OAAO;IACP,SAAS;KACP,MAAM;KACN,MAAM;KACN,QAAQ;KACR,SAAS,EAAE,aAAa,gGAAgG;IAC1H;IACA,WAAW;GACb,CACF;GACA,QAAQ,CAAC;EACX,EACF;CACF;CACA,aAAa,EACX,QAAQ,OAAO,OAA0BC,+BAAAA,oBAAoB,EAAE,QAC5D,MAAM,EAAE,YAAY,UAAU;EAC7B,IAAI,YACF,OAAO;EAET,KAAK,OAAO,KAAK,QAAQ;GAAE,UAAU;GAAG,OAAO;EAAE;EACjD,OAAO;CACT,GACA;GACGA,+BAAAA,qBAAqB,WAAW,MAAM;GAAE,UAAU;GAAG,OAAO;EAAE;GAC9DA,+BAAAA,qBAAqB,QAAQ,MAAM;GAAE,UAAU;GAAG,OAAO;EAAE;CAC9D,CACF,EACF;CACA,UAAU,EACR,QAAQ,EACN,UAAU,EAAE,OAAO,EAAE,SAAS,KAAK,EAAE,EACvC,EACF;AACF"}
@@ -1,4 +1,4 @@
1
- import { u as DEVICE_ISSUE_OPTIONS } from "../constants-BrGIx40B.cjs";
1
+ import { u as DEVICE_ISSUE_OPTIONS } from "../constants-_p6w8uEp.cjs";
2
2
 
3
3
  //#region src/monitorSlice/mocks.d.ts
4
4
  declare const mockState: {
@@ -1,4 +1,4 @@
1
- import { u as DEVICE_ISSUE_OPTIONS } from "../constants-CjO3_FOH.js";
1
+ import { u as DEVICE_ISSUE_OPTIONS } from "../constants-OcdoVk6f.js";
2
2
 
3
3
  //#region src/monitorSlice/mocks.d.ts
4
4
  declare const mockState: {
@@ -1 +1 @@
1
- {"version":3,"file":"mocks.js","names":[],"sources":["../../src/monitorSlice/mocks.ts"],"sourcesContent":["// Copyright 2025 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceIssueOption } from '@northern.tech/utils/constants';\n\nimport { DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS } from '../constants';\nimport { initialState } from './index';\n\nexport const mockState = {\n ...initialState,\n alerts: {\n alertList: { ...DEVICE_LIST_DEFAULTS, total: 0 },\n byDeviceId: {\n a1: {\n alerts: [\n {\n description: 'something',\n id: '31346239-3839-6262-2d63-3365622d3437',\n name: 'SSH Daemon is not running',\n device_id: 'a1',\n level: 'CRITICAL',\n subject: {\n name: 'sshd',\n type: 'systemd',\n status: 'not-running',\n details: { description: 'Jul 22 10:40:56 raspberrypi sshd[32031]: pam_unix(sshd:session): session closed for user root' }\n },\n timestamp: '2021-07-23T12:22:36Z'\n }\n ],\n latest: []\n }\n }\n },\n issueCounts: {\n byType: Object.values<DeviceIssueOption>(DEVICE_ISSUE_OPTIONS).reduce(\n (accu, { isCategory, key }) => {\n if (isCategory) {\n return accu;\n }\n accu[key] = accu[key] ?? { filtered: 0, total: 0 };\n return accu;\n },\n {\n [DEVICE_ISSUE_OPTIONS.monitoring.key]: { filtered: 3, total: 0 },\n [DEVICE_ISSUE_OPTIONS.offline.key]: { filtered: 0, total: 0 }\n }\n )\n },\n settings: {\n global: {\n channels: { email: { enabled: true } }\n }\n }\n};\n"],"mappings":";;;AAkBA,MAAa,YAAY;CACvB,GAAG;CACH,QAAQ;EACN,WAAW;GAAE,GAAG;GAAsB,OAAO;GAAG;EAChD,YAAY,EACV,IAAI;GACF,QAAQ,CACN;IACE,aAAa;IACb,IAAI;IACJ,MAAM;IACN,WAAW;IACX,OAAO;IACP,SAAS;KACP,MAAM;KACN,MAAM;KACN,QAAQ;KACR,SAAS,EAAE,aAAa,iGAAiG;KAC1H;IACD,WAAW;IACZ,CACF;GACD,QAAQ,EAAE;GACX,EACF;EACF;CACD,aAAa,EACX,QAAQ,OAAO,OAA0B,qBAAqB,CAAC,QAC5D,MAAM,EAAE,YAAY,UAAU;EAC7B,IAAI,YACF,OAAO;EAET,KAAK,OAAO,KAAK,QAAQ;GAAE,UAAU;GAAG,OAAO;GAAG;EAClD,OAAO;IAET;GACG,qBAAqB,WAAW,MAAM;GAAE,UAAU;GAAG,OAAO;GAAG;GAC/D,qBAAqB,QAAQ,MAAM;GAAE,UAAU;GAAG,OAAO;GAAG;EAC9D,CACF,EACF;CACD,UAAU,EACR,QAAQ,EACN,UAAU,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,EACvC,EACF;CACF"}
1
+ {"version":3,"file":"mocks.js","names":[],"sources":["../../src/monitorSlice/mocks.ts"],"sourcesContent":["// Copyright 2025 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceIssueOption } from '@northern.tech/utils/constants';\n\nimport { DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS } from '../constants';\nimport { initialState } from './index';\n\nexport const mockState = {\n ...initialState,\n alerts: {\n alertList: { ...DEVICE_LIST_DEFAULTS, total: 0 },\n byDeviceId: {\n a1: {\n alerts: [\n {\n description: 'something',\n id: '31346239-3839-6262-2d63-3365622d3437',\n name: 'SSH Daemon is not running',\n device_id: 'a1',\n level: 'CRITICAL',\n subject: {\n name: 'sshd',\n type: 'systemd',\n status: 'not-running',\n details: { description: 'Jul 22 10:40:56 raspberrypi sshd[32031]: pam_unix(sshd:session): session closed for user root' }\n },\n timestamp: '2021-07-23T12:22:36Z'\n }\n ],\n latest: []\n }\n }\n },\n issueCounts: {\n byType: Object.values<DeviceIssueOption>(DEVICE_ISSUE_OPTIONS).reduce(\n (accu, { isCategory, key }) => {\n if (isCategory) {\n return accu;\n }\n accu[key] = accu[key] ?? { filtered: 0, total: 0 };\n return accu;\n },\n {\n [DEVICE_ISSUE_OPTIONS.monitoring.key]: { filtered: 3, total: 0 },\n [DEVICE_ISSUE_OPTIONS.offline.key]: { filtered: 0, total: 0 }\n }\n )\n },\n settings: {\n global: {\n channels: { email: { enabled: true } }\n }\n }\n};\n"],"mappings":";;;AAkBA,MAAa,YAAY;CACvB,GAAG;CACH,QAAQ;EACN,WAAW;GAAE,GAAG;GAAsB,OAAO;EAAE;EAC/C,YAAY,EACV,IAAI;GACF,QAAQ,CACN;IACE,aAAa;IACb,IAAI;IACJ,MAAM;IACN,WAAW;IACX,OAAO;IACP,SAAS;KACP,MAAM;KACN,MAAM;KACN,QAAQ;KACR,SAAS,EAAE,aAAa,gGAAgG;IAC1H;IACA,WAAW;GACb,CACF;GACA,QAAQ,CAAC;EACX,EACF;CACF;CACA,aAAa,EACX,QAAQ,OAAO,OAA0B,oBAAoB,EAAE,QAC5D,MAAM,EAAE,YAAY,UAAU;EAC7B,IAAI,YACF,OAAO;EAET,KAAK,OAAO,KAAK,QAAQ;GAAE,UAAU;GAAG,OAAO;EAAE;EACjD,OAAO;CACT,GACA;GACG,qBAAqB,WAAW,MAAM;GAAE,UAAU;GAAG,OAAO;EAAE;GAC9D,qBAAqB,QAAQ,MAAM;GAAE,UAAU;GAAG,OAAO;EAAE;CAC9D,CACF,EACF;CACA,UAAU,EACR,QAAQ,EACN,UAAU,EAAE,OAAO,EAAE,SAAS,KAAK,EAAE,EACvC,EACF;AACF"}
@@ -1,4 +1,4 @@
1
- import { r as RootState } from "../store-BhRxVhtL.cjs";
1
+ import { r as RootState } from "../store-Dd0Y2JCN.cjs";
2
2
 
3
3
  //#region src/monitorSlice/selectors.d.ts
4
4
  declare const getIssueCountsByType: (state: RootState) => {
@@ -1,4 +1,4 @@
1
- import { r as RootState } from "../store-BZo47jc-.js";
1
+ import { r as RootState } from "../store-Co2ptTSm.js";
2
2
 
3
3
  //#region src/monitorSlice/selectors.d.ts
4
4
  declare const getIssueCountsByType: (state: RootState) => {
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../chunk-CKQMccvm.cjs");
3
2
  const require_constants = require("../constants.cjs");
4
3
  const require_monitorSlice_index = require("./index.cjs");
5
4
  const require_actions = require("../actions.cjs");
@@ -10,9 +9,8 @@ const require_api_general_api = require("../api/general-api.cjs");
10
9
  let _northern_tech_utils_constants = require("@northern.tech/utils/constants");
11
10
  //#region src/monitorSlice/thunks.ts
12
11
  const { page: defaultPage, perPage: defaultPerPage } = _northern_tech_utils_constants.DEVICE_LIST_DEFAULTS;
13
- const cutoffLength = 75;
14
12
  const ellipsis = "...";
15
- const longTextTrimmer = (text) => text.length >= cutoffLength + 3 ? `${text.substring(0, cutoffLength + 3)}${ellipsis}` : text;
13
+ const longTextTrimmer = (text) => text.length >= 78 ? `${text.substring(0, 78)}${ellipsis}` : text;
16
14
  const sanitizeDeviceAlerts = (alerts) => alerts.map((alert) => ({
17
15
  ...alert,
18
16
  fullName: alert.name,
@@ -1 +1 @@
1
- {"version":3,"file":"thunks.cjs","names":["DEVICE_LIST_DEFAULTS","createAppAsyncThunk","sliceName","Api","monitorApiUrlv1","commonErrorHandler","actions","headerNames","getDeviceFilters","convertDeviceListStateToFilters","inventoryApiUrlV2","commonErrorFallback","storeActions","alertChannels","TIMEOUTS"],"sources":["../../src/monitorSlice/thunks.ts"],"sourcesContent":["// Copyright 2021 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceFilter } from '@/src/devicesSlice';\nimport type { Alert, DeviceInventory, MonitorConfiguration } from '@northern.tech/types/MenderTypes';\n\nimport { actions, sliceName } from '.';\nimport storeActions from '../actions';\nimport Api from '../api/general-api';\nimport type { AlertChannelKey, DeviceIssueOptionKey } from '../constants';\nimport { DEVICE_LIST_DEFAULTS, TIMEOUTS, alertChannels, headerNames, inventoryApiUrlV2, monitorApiUrlv1 } from '../constants';\nimport { getDeviceFilters } from '../selectors';\nimport { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from '../store';\nimport { convertDeviceListStateToFilters } from '../utils';\n\nconst { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;\n\nconst cutoffLength = 75;\nconst ellipsis = '...';\nconst longTextTrimmer = (text: string): string =>\n text.length >= cutoffLength + ellipsis.length ? `${text.substring(0, cutoffLength + ellipsis.length)}${ellipsis}` : text;\n\nconst sanitizeDeviceAlerts = (alerts: Alert[]) => alerts.map(alert => ({ ...alert, fullName: alert.name, name: longTextTrimmer(alert.name || '') }));\n\ninterface GetDeviceAlertsPayload {\n config?: { issuedAfter?: string; issuedBefore?: string; page?: number; perPage?: number; sortAscending?: boolean };\n id: string;\n}\nexport const getDeviceAlerts = createAppAsyncThunk(`${sliceName}/getDeviceAlerts`, ({ id, config = {} }: GetDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = defaultPerPage, issuedBefore, issuedAfter, sortAscending = false } = config;\n const issued_after = issuedAfter ? `&issued_after=${issuedAfter}` : '';\n const issued_before = issuedBefore ? `&issued_before=${issuedBefore}` : '';\n return Api.get<Alert[]>(\n `${monitorApiUrlv1}/devices/${id}/alerts?page=${page}&per_page=${perPage}${issued_after}${issued_before}&sort_ascending=${sortAscending}`\n )\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res =>\n Promise.all([\n dispatch(actions.receiveDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) })),\n dispatch(actions.setAlertListState({ total: Number(res.headers[headerNames.total]) }))\n ])\n );\n});\n\ninterface GetLatestDeviceAlertsPayload {\n config?: { page?: number; perPage?: number };\n id: string;\n}\nexport const getLatestDeviceAlerts = createAppAsyncThunk(\n `${sliceName}/getLatestDeviceAlerts`,\n ({ id, config = {} }: GetLatestDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = 10 } = config;\n return Api.get<Alert[]>(`${monitorApiUrlv1}/devices/${id}/alerts/latest?page=${page}&per_page=${perPage}`)\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res => Promise.resolve(dispatch(actions.receiveLatestDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) }))));\n }\n);\n\ninterface GetIssueCountsByTypePayload {\n options?: Partial<{ filters: DeviceFilter[]; group: string; status: string; type: string }>;\n type: DeviceIssueOptionKey;\n}\nexport const getIssueCountsByType = createAppAsyncThunk(\n `${sliceName}/getIssueCountsByType`,\n async ({ type, options = {} }: GetIssueCountsByTypePayload, { dispatch, getState }) => {\n const state = getState();\n const { filters = getDeviceFilters(state), group, status, ...remainder } = options;\n const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters({\n ...remainder,\n filters,\n group,\n offlineThreshold: state.app.offlineThreshold,\n selectedIssues: [type],\n status\n });\n const res = await Api.post<DeviceInventory[]>(`${inventoryApiUrlV2}/filters/search`, {\n page: 1,\n per_page: 1,\n filters: filterTerms,\n attributes: [{ scope: 'identity', attribute: 'status' }]\n }).catch(err => commonErrorHandler(err, `Retrieving issue counts failed:`, dispatch, commonErrorFallback));\n const total = nonMonitorFilters.length ? state.monitor.issueCounts.byType[type].total : Number(res.headers[headerNames.total]);\n const filtered = nonMonitorFilters.length ? Number(res.headers[headerNames.total]) : total;\n if (total === state.monitor.issueCounts.byType[type].total && filtered === state.monitor.issueCounts.byType[type].filtered) {\n return;\n }\n return dispatch(actions.receiveDeviceIssueCounts({ counts: { filtered, total }, issueType: type }));\n }\n);\n\nexport const getDeviceMonitorConfig = createAppAsyncThunk(`${sliceName}/getDeviceMonitorConfig`, (id: string, { dispatch }) =>\n Api.get<MonitorConfiguration[]>(`${monitorApiUrlv1}/devices/${id}/config`)\n .catch(err => commonErrorHandler(err, `Retrieving device monitor config for device ${id} failed:`, dispatch))\n .then(({ data }) => Promise.all([dispatch(storeActions.receivedDevice({ id, monitors: data }), Promise.resolve(data))]))\n);\n\ninterface ChangeNotificationSettingPayload {\n channel?: AlertChannelKey;\n enabled: boolean;\n}\nexport const changeNotificationSetting = createAppAsyncThunk(\n `${sliceName}/changeNotificationSetting`,\n ({ enabled, channel = alertChannels.email as AlertChannelKey }: ChangeNotificationSettingPayload, { dispatch }) =>\n Api.put(`${monitorApiUrlv1}/settings/global/channel/alerts/${channel}/status`, { enabled })\n .catch(err => commonErrorHandler(err, `${enabled ? 'En' : 'Dis'}abling ${channel} alerts failed:`, dispatch))\n .then(() =>\n Promise.all([\n dispatch(actions.changeAlertChannel({ channel, enabled })),\n dispatch(\n storeActions.setSnackbar({ message: `Successfully ${enabled ? 'en' : 'dis'}abled ${channel} alerts`, autoHideDuration: TIMEOUTS.fiveSeconds })\n )\n ])\n )\n);\n"],"mappings":";;;;;;;;;;;AAyBA,MAAM,EAAE,MAAM,aAAa,SAAS,mBAAmBA,+BAAAA;AAEvD,MAAM,eAAe;AACrB,MAAM,WAAW;AACjB,MAAM,mBAAmB,SACvB,KAAK,UAAU,eAAe,IAAkB,GAAG,KAAK,UAAU,GAAG,eAAe,EAAgB,GAAG,aAAa;AAEtH,MAAM,wBAAwB,WAAoB,OAAO,KAAI,WAAU;CAAE,GAAG;CAAO,UAAU,MAAM;CAAM,MAAM,gBAAgB,MAAM,QAAQ,GAAG;CAAE,EAAE;AAMpJ,MAAa,kBAAkBC,cAAAA,oBAAoB,GAAGC,2BAAAA,UAAU,oBAAoB,EAAE,IAAI,SAAS,EAAE,IAA4B,EAAE,eAAe;CAChJ,MAAM,EAAE,OAAO,aAAa,UAAU,gBAAgB,cAAc,aAAa,gBAAgB,UAAU;CAC3G,MAAM,eAAe,cAAc,iBAAiB,gBAAgB;CACpE,MAAM,gBAAgB,eAAe,kBAAkB,iBAAiB;CACxE,OAAOC,wBAAAA,QAAI,IACT,GAAGC,+BAAAA,gBAAgB,WAAW,GAAG,eAAe,KAAK,YAAY,UAAU,eAAe,cAAc,kBAAkB,gBAC3H,CACE,OAAM,QAAOC,cAAAA,mBAAmB,KAAK,uCAAuC,GAAG,WAAW,SAAS,CAAC,CACpG,MAAK,QACJ,QAAQ,IAAI,CACV,SAASC,2BAAAA,QAAQ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AC,CAAC,EAC1D,SACEM,gBAAa,YAAY;CAAE,SAAS,gBAAgB,UAAU,OAAO,MAAM,QAAQ,QAAQ;CAAU,kBAAkBE,kBAAAA,SAAS;CAAa,CAAC,CAC/I,CACF,CAAC,CACH,CACN"}
1
+ {"version":3,"file":"thunks.cjs","names":["DEVICE_LIST_DEFAULTS","createAppAsyncThunk","sliceName","Api","monitorApiUrlv1","commonErrorHandler","actions","headerNames","getDeviceFilters","convertDeviceListStateToFilters","inventoryApiUrlV2","commonErrorFallback","storeActions","alertChannels","TIMEOUTS"],"sources":["../../src/monitorSlice/thunks.ts"],"sourcesContent":["// Copyright 2021 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceFilter } from '@/src/devicesSlice';\nimport type { Alert, DeviceInventory, MonitorConfiguration } from '@northern.tech/types/MenderTypes';\n\nimport { actions, sliceName } from '.';\nimport storeActions from '../actions';\nimport Api from '../api/general-api';\nimport type { AlertChannelKey, DeviceIssueOptionKey } from '../constants';\nimport { DEVICE_LIST_DEFAULTS, TIMEOUTS, alertChannels, headerNames, inventoryApiUrlV2, monitorApiUrlv1 } from '../constants';\nimport { getDeviceFilters } from '../selectors';\nimport { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from '../store';\nimport { convertDeviceListStateToFilters } from '../utils';\n\nconst { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;\n\nconst cutoffLength = 75;\nconst ellipsis = '...';\nconst longTextTrimmer = (text: string): string =>\n text.length >= cutoffLength + ellipsis.length ? `${text.substring(0, cutoffLength + ellipsis.length)}${ellipsis}` : text;\n\nconst sanitizeDeviceAlerts = (alerts: Alert[]) => alerts.map(alert => ({ ...alert, fullName: alert.name, name: longTextTrimmer(alert.name || '') }));\n\ninterface GetDeviceAlertsPayload {\n config?: { issuedAfter?: string; issuedBefore?: string; page?: number; perPage?: number; sortAscending?: boolean };\n id: string;\n}\nexport const getDeviceAlerts = createAppAsyncThunk(`${sliceName}/getDeviceAlerts`, ({ id, config = {} }: GetDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = defaultPerPage, issuedBefore, issuedAfter, sortAscending = false } = config;\n const issued_after = issuedAfter ? `&issued_after=${issuedAfter}` : '';\n const issued_before = issuedBefore ? `&issued_before=${issuedBefore}` : '';\n return Api.get<Alert[]>(\n `${monitorApiUrlv1}/devices/${id}/alerts?page=${page}&per_page=${perPage}${issued_after}${issued_before}&sort_ascending=${sortAscending}`\n )\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res =>\n Promise.all([\n dispatch(actions.receiveDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) })),\n dispatch(actions.setAlertListState({ total: Number(res.headers[headerNames.total]) }))\n ])\n );\n});\n\ninterface GetLatestDeviceAlertsPayload {\n config?: { page?: number; perPage?: number };\n id: string;\n}\nexport const getLatestDeviceAlerts = createAppAsyncThunk(\n `${sliceName}/getLatestDeviceAlerts`,\n ({ id, config = {} }: GetLatestDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = 10 } = config;\n return Api.get<Alert[]>(`${monitorApiUrlv1}/devices/${id}/alerts/latest?page=${page}&per_page=${perPage}`)\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res => Promise.resolve(dispatch(actions.receiveLatestDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) }))));\n }\n);\n\ninterface GetIssueCountsByTypePayload {\n options?: Partial<{ filters: DeviceFilter[]; group: string; status: string; type: string }>;\n type: DeviceIssueOptionKey;\n}\nexport const getIssueCountsByType = createAppAsyncThunk(\n `${sliceName}/getIssueCountsByType`,\n async ({ type, options = {} }: GetIssueCountsByTypePayload, { dispatch, getState }) => {\n const state = getState();\n const { filters = getDeviceFilters(state), group, status, ...remainder } = options;\n const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters({\n ...remainder,\n filters,\n group,\n offlineThreshold: state.app.offlineThreshold,\n selectedIssues: [type],\n status\n });\n const res = await Api.post<DeviceInventory[]>(`${inventoryApiUrlV2}/filters/search`, {\n page: 1,\n per_page: 1,\n filters: filterTerms,\n attributes: [{ scope: 'identity', attribute: 'status' }]\n }).catch(err => commonErrorHandler(err, `Retrieving issue counts failed:`, dispatch, commonErrorFallback));\n const total = nonMonitorFilters.length ? state.monitor.issueCounts.byType[type].total : Number(res.headers[headerNames.total]);\n const filtered = nonMonitorFilters.length ? Number(res.headers[headerNames.total]) : total;\n if (total === state.monitor.issueCounts.byType[type].total && filtered === state.monitor.issueCounts.byType[type].filtered) {\n return;\n }\n return dispatch(actions.receiveDeviceIssueCounts({ counts: { filtered, total }, issueType: type }));\n }\n);\n\nexport const getDeviceMonitorConfig = createAppAsyncThunk(`${sliceName}/getDeviceMonitorConfig`, (id: string, { dispatch }) =>\n Api.get<MonitorConfiguration[]>(`${monitorApiUrlv1}/devices/${id}/config`)\n .catch(err => commonErrorHandler(err, `Retrieving device monitor config for device ${id} failed:`, dispatch))\n .then(({ data }) => Promise.all([dispatch(storeActions.receivedDevice({ id, monitors: data }), Promise.resolve(data))]))\n);\n\ninterface ChangeNotificationSettingPayload {\n channel?: AlertChannelKey;\n enabled: boolean;\n}\nexport const changeNotificationSetting = createAppAsyncThunk(\n `${sliceName}/changeNotificationSetting`,\n ({ enabled, channel = alertChannels.email as AlertChannelKey }: ChangeNotificationSettingPayload, { dispatch }) =>\n Api.put(`${monitorApiUrlv1}/settings/global/channel/alerts/${channel}/status`, { enabled })\n .catch(err => commonErrorHandler(err, `${enabled ? 'En' : 'Dis'}abling ${channel} alerts failed:`, dispatch))\n .then(() =>\n Promise.all([\n dispatch(actions.changeAlertChannel({ channel, enabled })),\n dispatch(\n storeActions.setSnackbar({ message: `Successfully ${enabled ? 'en' : 'dis'}abled ${channel} alerts`, autoHideDuration: TIMEOUTS.fiveSeconds })\n )\n ])\n )\n);\n"],"mappings":";;;;;;;;;;AAyBA,MAAM,EAAE,MAAM,aAAa,SAAS,mBAAmBA,+BAAAA;AAGvD,MAAM,WAAW;AACjB,MAAM,mBAAmB,SACvB,KAAK,UAAU,KAAiC,GAAG,KAAK,UAAU,GAAG,EAA8B,IAAI,aAAa;AAEtH,MAAM,wBAAwB,WAAoB,OAAO,KAAI,WAAU;CAAE,GAAG;CAAO,UAAU,MAAM;CAAM,MAAM,gBAAgB,MAAM,QAAQ,EAAE;AAAE,EAAE;AAMnJ,MAAa,kBAAkBC,cAAAA,oBAAoB,GAAGC,2BAAAA,UAAU,oBAAoB,EAAE,IAAI,SAAS,CAAC,KAA6B,EAAE,eAAe;CAChJ,MAAM,EAAE,OAAO,aAAa,UAAU,gBAAgB,cAAc,aAAa,gBAAgB,UAAU;CAC3G,MAAM,eAAe,cAAc,iBAAiB,gBAAgB;CACpE,MAAM,gBAAgB,eAAe,kBAAkB,iBAAiB;CACxE,OAAOC,wBAAAA,QAAI,IACT,GAAGC,+BAAAA,gBAAgB,WAAW,GAAG,eAAe,KAAK,YAAY,UAAU,eAAe,cAAc,kBAAkB,eAC5H,EACG,OAAM,QAAOC,cAAAA,mBAAmB,KAAK,uCAAuC,GAAG,WAAW,QAAQ,CAAC,EACnG,MAAK,QACJ,QAAQ,IAAI,CACV,SAASC,2BAAAA,QAAQ,oBAAoB;EAAE,UAAU;EAAI,QAAQ,qBAAqB,IAAI,IAAI;CAAE,CAAC,CAAC,GAC9F,SAASA,2BAAAA,QAAQ,kBAAkB,EAAE,OAAO,OAAO,IAAI,QAAQC,+BAAAA,YAAY,MAAM,EAAE,CAAC,CAAC,CACvF,CAAC,CACH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@@
1
- import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "../constants-BrGIx40B.cjs";
2
- import { n as DeviceFilter, t as Device } from "../index-B64X5ozM.cjs";
3
- import { s as SnackbarContent } from "../index-DwACbyUg.cjs";
4
- import { r as RootState, t as AppDispatch } from "../store-BhRxVhtL.cjs";
5
- import * as _$_reduxjs_toolkit0 from "@reduxjs/toolkit";
6
- import * as _$_northern_tech_types_types_gen0 from "@northern.tech/types/types.gen";
1
+ import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "../constants-_p6w8uEp.cjs";
2
+ import { n as DeviceFilter, t as Device } from "../index-DbfM03Gj.cjs";
3
+ import { i as SnackbarContent } from "../index-C8QadAm7.cjs";
4
+ import { r as RootState, t as AppDispatch } from "../store-Dd0Y2JCN.cjs";
7
5
 
8
6
  //#region src/monitorSlice/thunks.d.ts
9
7
  interface GetDeviceAlertsPayload {
@@ -16,12 +14,12 @@ interface GetDeviceAlertsPayload {
16
14
  };
17
15
  id: string;
18
16
  }
19
- declare const getDeviceAlerts: _$_reduxjs_toolkit0.AsyncThunk<[{
17
+ declare const getDeviceAlerts: import("@reduxjs/toolkit").AsyncThunk<[{
20
18
  payload: {
21
19
  alerts: ({
22
20
  id: string;
23
21
  device_id?: string;
24
- } & _$_northern_tech_types_types_gen0.PostAlert & {
22
+ } & import("@northern.tech/types/types.gen").PostAlert & {
25
23
  fullName?: string;
26
24
  })[];
27
25
  deviceId: string;
@@ -47,12 +45,12 @@ interface GetLatestDeviceAlertsPayload {
47
45
  };
48
46
  id: string;
49
47
  }
50
- declare const getLatestDeviceAlerts: _$_reduxjs_toolkit0.AsyncThunk<{
48
+ declare const getLatestDeviceAlerts: import("@reduxjs/toolkit").AsyncThunk<{
51
49
  payload: {
52
50
  alerts: ({
53
51
  id: string;
54
52
  device_id?: string;
55
- } & _$_northern_tech_types_types_gen0.PostAlert & {
53
+ } & import("@northern.tech/types/types.gen").PostAlert & {
56
54
  fullName?: string;
57
55
  })[];
58
56
  deviceId: string;
@@ -77,7 +75,7 @@ interface GetIssueCountsByTypePayload {
77
75
  }>;
78
76
  type: DeviceIssueOptionKey;
79
77
  }
80
- declare const getIssueCountsByType: _$_reduxjs_toolkit0.AsyncThunk<{
78
+ declare const getIssueCountsByType: import("@reduxjs/toolkit").AsyncThunk<{
81
79
  payload: {
82
80
  counts: {
83
81
  filtered: number;
@@ -96,7 +94,7 @@ declare const getIssueCountsByType: _$_reduxjs_toolkit0.AsyncThunk<{
96
94
  fulfilledMeta?: unknown;
97
95
  rejectedMeta?: unknown;
98
96
  }>;
99
- declare const getDeviceMonitorConfig: _$_reduxjs_toolkit0.AsyncThunk<[{
97
+ declare const getDeviceMonitorConfig: import("@reduxjs/toolkit").AsyncThunk<[{
100
98
  payload: {
101
99
  id: string;
102
100
  } & Partial<Device>;
@@ -115,7 +113,7 @@ interface ChangeNotificationSettingPayload {
115
113
  channel?: AlertChannelKey;
116
114
  enabled: boolean;
117
115
  }
118
- declare const changeNotificationSetting: _$_reduxjs_toolkit0.AsyncThunk<[{
116
+ declare const changeNotificationSetting: import("@reduxjs/toolkit").AsyncThunk<[{
119
117
  payload: {
120
118
  channel: AlertChannelKey;
121
119
  enabled: boolean;
@@ -1,9 +1,7 @@
1
- import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "../constants-CjO3_FOH.js";
2
- import { n as DeviceFilter, t as Device } from "../index-BI9O8JWe.js";
3
- import { s as SnackbarContent } from "../index-Bp1WpATs.js";
4
- import { r as RootState, t as AppDispatch } from "../store-BZo47jc-.js";
5
- import * as _$_reduxjs_toolkit0 from "@reduxjs/toolkit";
6
- import * as _$_northern_tech_types_types_gen0 from "@northern.tech/types/types.gen";
1
+ import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "../constants-OcdoVk6f.js";
2
+ import { n as DeviceFilter, t as Device } from "../index-CPdMUfRr.js";
3
+ import { i as SnackbarContent } from "../index-BLvjQfGj.js";
4
+ import { r as RootState, t as AppDispatch } from "../store-Co2ptTSm.js";
7
5
 
8
6
  //#region src/monitorSlice/thunks.d.ts
9
7
  interface GetDeviceAlertsPayload {
@@ -16,12 +14,12 @@ interface GetDeviceAlertsPayload {
16
14
  };
17
15
  id: string;
18
16
  }
19
- declare const getDeviceAlerts: _$_reduxjs_toolkit0.AsyncThunk<[{
17
+ declare const getDeviceAlerts: import("@reduxjs/toolkit").AsyncThunk<[{
20
18
  payload: {
21
19
  alerts: ({
22
20
  id: string;
23
21
  device_id?: string;
24
- } & _$_northern_tech_types_types_gen0.PostAlert & {
22
+ } & import("@northern.tech/types/types.gen").PostAlert & {
25
23
  fullName?: string;
26
24
  })[];
27
25
  deviceId: string;
@@ -47,12 +45,12 @@ interface GetLatestDeviceAlertsPayload {
47
45
  };
48
46
  id: string;
49
47
  }
50
- declare const getLatestDeviceAlerts: _$_reduxjs_toolkit0.AsyncThunk<{
48
+ declare const getLatestDeviceAlerts: import("@reduxjs/toolkit").AsyncThunk<{
51
49
  payload: {
52
50
  alerts: ({
53
51
  id: string;
54
52
  device_id?: string;
55
- } & _$_northern_tech_types_types_gen0.PostAlert & {
53
+ } & import("@northern.tech/types/types.gen").PostAlert & {
56
54
  fullName?: string;
57
55
  })[];
58
56
  deviceId: string;
@@ -77,7 +75,7 @@ interface GetIssueCountsByTypePayload {
77
75
  }>;
78
76
  type: DeviceIssueOptionKey;
79
77
  }
80
- declare const getIssueCountsByType: _$_reduxjs_toolkit0.AsyncThunk<{
78
+ declare const getIssueCountsByType: import("@reduxjs/toolkit").AsyncThunk<{
81
79
  payload: {
82
80
  counts: {
83
81
  filtered: number;
@@ -96,7 +94,7 @@ declare const getIssueCountsByType: _$_reduxjs_toolkit0.AsyncThunk<{
96
94
  fulfilledMeta?: unknown;
97
95
  rejectedMeta?: unknown;
98
96
  }>;
99
- declare const getDeviceMonitorConfig: _$_reduxjs_toolkit0.AsyncThunk<[{
97
+ declare const getDeviceMonitorConfig: import("@reduxjs/toolkit").AsyncThunk<[{
100
98
  payload: {
101
99
  id: string;
102
100
  } & Partial<Device>;
@@ -115,7 +113,7 @@ interface ChangeNotificationSettingPayload {
115
113
  channel?: AlertChannelKey;
116
114
  enabled: boolean;
117
115
  }
118
- declare const changeNotificationSetting: _$_reduxjs_toolkit0.AsyncThunk<[{
116
+ declare const changeNotificationSetting: import("@reduxjs/toolkit").AsyncThunk<[{
119
117
  payload: {
120
118
  channel: AlertChannelKey;
121
119
  enabled: boolean;
@@ -7,9 +7,8 @@ import { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from "..
7
7
  import Api from "../api/general-api.js";
8
8
  //#region src/monitorSlice/thunks.ts
9
9
  const { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;
10
- const cutoffLength = 75;
11
10
  const ellipsis = "...";
12
- const longTextTrimmer = (text) => text.length >= cutoffLength + 3 ? `${text.substring(0, cutoffLength + 3)}${ellipsis}` : text;
11
+ const longTextTrimmer = (text) => text.length >= 78 ? `${text.substring(0, 78)}${ellipsis}` : text;
13
12
  const sanitizeDeviceAlerts = (alerts) => alerts.map((alert) => ({
14
13
  ...alert,
15
14
  fullName: alert.name,
@@ -1 +1 @@
1
- {"version":3,"file":"thunks.js","names":["storeActions"],"sources":["../../src/monitorSlice/thunks.ts"],"sourcesContent":["// Copyright 2021 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceFilter } from '@/src/devicesSlice';\nimport type { Alert, DeviceInventory, MonitorConfiguration } from '@northern.tech/types/MenderTypes';\n\nimport { actions, sliceName } from '.';\nimport storeActions from '../actions';\nimport Api from '../api/general-api';\nimport type { AlertChannelKey, DeviceIssueOptionKey } from '../constants';\nimport { DEVICE_LIST_DEFAULTS, TIMEOUTS, alertChannels, headerNames, inventoryApiUrlV2, monitorApiUrlv1 } from '../constants';\nimport { getDeviceFilters } from '../selectors';\nimport { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from '../store';\nimport { convertDeviceListStateToFilters } from '../utils';\n\nconst { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;\n\nconst cutoffLength = 75;\nconst ellipsis = '...';\nconst longTextTrimmer = (text: string): string =>\n text.length >= cutoffLength + ellipsis.length ? `${text.substring(0, cutoffLength + ellipsis.length)}${ellipsis}` : text;\n\nconst sanitizeDeviceAlerts = (alerts: Alert[]) => alerts.map(alert => ({ ...alert, fullName: alert.name, name: longTextTrimmer(alert.name || '') }));\n\ninterface GetDeviceAlertsPayload {\n config?: { issuedAfter?: string; issuedBefore?: string; page?: number; perPage?: number; sortAscending?: boolean };\n id: string;\n}\nexport const getDeviceAlerts = createAppAsyncThunk(`${sliceName}/getDeviceAlerts`, ({ id, config = {} }: GetDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = defaultPerPage, issuedBefore, issuedAfter, sortAscending = false } = config;\n const issued_after = issuedAfter ? `&issued_after=${issuedAfter}` : '';\n const issued_before = issuedBefore ? `&issued_before=${issuedBefore}` : '';\n return Api.get<Alert[]>(\n `${monitorApiUrlv1}/devices/${id}/alerts?page=${page}&per_page=${perPage}${issued_after}${issued_before}&sort_ascending=${sortAscending}`\n )\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res =>\n Promise.all([\n dispatch(actions.receiveDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) })),\n dispatch(actions.setAlertListState({ total: Number(res.headers[headerNames.total]) }))\n ])\n );\n});\n\ninterface GetLatestDeviceAlertsPayload {\n config?: { page?: number; perPage?: number };\n id: string;\n}\nexport const getLatestDeviceAlerts = createAppAsyncThunk(\n `${sliceName}/getLatestDeviceAlerts`,\n ({ id, config = {} }: GetLatestDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = 10 } = config;\n return Api.get<Alert[]>(`${monitorApiUrlv1}/devices/${id}/alerts/latest?page=${page}&per_page=${perPage}`)\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res => Promise.resolve(dispatch(actions.receiveLatestDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) }))));\n }\n);\n\ninterface GetIssueCountsByTypePayload {\n options?: Partial<{ filters: DeviceFilter[]; group: string; status: string; type: string }>;\n type: DeviceIssueOptionKey;\n}\nexport const getIssueCountsByType = createAppAsyncThunk(\n `${sliceName}/getIssueCountsByType`,\n async ({ type, options = {} }: GetIssueCountsByTypePayload, { dispatch, getState }) => {\n const state = getState();\n const { filters = getDeviceFilters(state), group, status, ...remainder } = options;\n const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters({\n ...remainder,\n filters,\n group,\n offlineThreshold: state.app.offlineThreshold,\n selectedIssues: [type],\n status\n });\n const res = await Api.post<DeviceInventory[]>(`${inventoryApiUrlV2}/filters/search`, {\n page: 1,\n per_page: 1,\n filters: filterTerms,\n attributes: [{ scope: 'identity', attribute: 'status' }]\n }).catch(err => commonErrorHandler(err, `Retrieving issue counts failed:`, dispatch, commonErrorFallback));\n const total = nonMonitorFilters.length ? state.monitor.issueCounts.byType[type].total : Number(res.headers[headerNames.total]);\n const filtered = nonMonitorFilters.length ? Number(res.headers[headerNames.total]) : total;\n if (total === state.monitor.issueCounts.byType[type].total && filtered === state.monitor.issueCounts.byType[type].filtered) {\n return;\n }\n return dispatch(actions.receiveDeviceIssueCounts({ counts: { filtered, total }, issueType: type }));\n }\n);\n\nexport const getDeviceMonitorConfig = createAppAsyncThunk(`${sliceName}/getDeviceMonitorConfig`, (id: string, { dispatch }) =>\n Api.get<MonitorConfiguration[]>(`${monitorApiUrlv1}/devices/${id}/config`)\n .catch(err => commonErrorHandler(err, `Retrieving device monitor config for device ${id} failed:`, dispatch))\n .then(({ data }) => Promise.all([dispatch(storeActions.receivedDevice({ id, monitors: data }), Promise.resolve(data))]))\n);\n\ninterface ChangeNotificationSettingPayload {\n channel?: AlertChannelKey;\n enabled: boolean;\n}\nexport const changeNotificationSetting = createAppAsyncThunk(\n `${sliceName}/changeNotificationSetting`,\n ({ enabled, channel = alertChannels.email as AlertChannelKey }: ChangeNotificationSettingPayload, { dispatch }) =>\n Api.put(`${monitorApiUrlv1}/settings/global/channel/alerts/${channel}/status`, { enabled })\n .catch(err => commonErrorHandler(err, `${enabled ? 'En' : 'Dis'}abling ${channel} alerts failed:`, dispatch))\n .then(() =>\n Promise.all([\n dispatch(actions.changeAlertChannel({ channel, enabled })),\n dispatch(\n storeActions.setSnackbar({ message: `Successfully ${enabled ? 'en' : 'dis'}abled ${channel} alerts`, autoHideDuration: TIMEOUTS.fiveSeconds })\n )\n ])\n )\n);\n"],"mappings":";;;;;;;;AAyBA,MAAM,EAAE,MAAM,aAAa,SAAS,mBAAmB;AAEvD,MAAM,eAAe;AACrB,MAAM,WAAW;AACjB,MAAM,mBAAmB,SACvB,KAAK,UAAU,eAAe,IAAkB,GAAG,KAAK,UAAU,GAAG,eAAe,EAAgB,GAAG,aAAa;AAEtH,MAAM,wBAAwB,WAAoB,OAAO,KAAI,WAAU;CAAE,GAAG;CAAO,UAAU,MAAM;CAAM,MAAM,gBAAgB,MAAM,QAAQ,GAAG;CAAE,EAAE;AAMpJ,MAAa,kBAAkB,oBAAoB,GAAG,UAAU,oBAAoB,EAAE,IAAI,SAAS,EAAE,IAA4B,EAAE,eAAe;CAChJ,MAAM,EAAE,OAAO,aAAa,UAAU,gBAAgB,cAAc,aAAa,gBAAgB,UAAU;CAC3G,MAAM,eAAe,cAAc,iBAAiB,gBAAgB;CACpE,MAAM,gBAAgB,eAAe,kBAAkB,iBAAiB;CACxE,OAAO,IAAI,IACT,GAAG,gBAAgB,WAAW,GAAG,eAAe,K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AC/I,CACF,CAAC,CACH,CACN"}
1
+ {"version":3,"file":"thunks.js","names":["storeActions"],"sources":["../../src/monitorSlice/thunks.ts"],"sourcesContent":["// Copyright 2021 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport type { DeviceFilter } from '@/src/devicesSlice';\nimport type { Alert, DeviceInventory, MonitorConfiguration } from '@northern.tech/types/MenderTypes';\n\nimport { actions, sliceName } from '.';\nimport storeActions from '../actions';\nimport Api from '../api/general-api';\nimport type { AlertChannelKey, DeviceIssueOptionKey } from '../constants';\nimport { DEVICE_LIST_DEFAULTS, TIMEOUTS, alertChannels, headerNames, inventoryApiUrlV2, monitorApiUrlv1 } from '../constants';\nimport { getDeviceFilters } from '../selectors';\nimport { commonErrorFallback, commonErrorHandler, createAppAsyncThunk } from '../store';\nimport { convertDeviceListStateToFilters } from '../utils';\n\nconst { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;\n\nconst cutoffLength = 75;\nconst ellipsis = '...';\nconst longTextTrimmer = (text: string): string =>\n text.length >= cutoffLength + ellipsis.length ? `${text.substring(0, cutoffLength + ellipsis.length)}${ellipsis}` : text;\n\nconst sanitizeDeviceAlerts = (alerts: Alert[]) => alerts.map(alert => ({ ...alert, fullName: alert.name, name: longTextTrimmer(alert.name || '') }));\n\ninterface GetDeviceAlertsPayload {\n config?: { issuedAfter?: string; issuedBefore?: string; page?: number; perPage?: number; sortAscending?: boolean };\n id: string;\n}\nexport const getDeviceAlerts = createAppAsyncThunk(`${sliceName}/getDeviceAlerts`, ({ id, config = {} }: GetDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = defaultPerPage, issuedBefore, issuedAfter, sortAscending = false } = config;\n const issued_after = issuedAfter ? `&issued_after=${issuedAfter}` : '';\n const issued_before = issuedBefore ? `&issued_before=${issuedBefore}` : '';\n return Api.get<Alert[]>(\n `${monitorApiUrlv1}/devices/${id}/alerts?page=${page}&per_page=${perPage}${issued_after}${issued_before}&sort_ascending=${sortAscending}`\n )\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res =>\n Promise.all([\n dispatch(actions.receiveDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) })),\n dispatch(actions.setAlertListState({ total: Number(res.headers[headerNames.total]) }))\n ])\n );\n});\n\ninterface GetLatestDeviceAlertsPayload {\n config?: { page?: number; perPage?: number };\n id: string;\n}\nexport const getLatestDeviceAlerts = createAppAsyncThunk(\n `${sliceName}/getLatestDeviceAlerts`,\n ({ id, config = {} }: GetLatestDeviceAlertsPayload, { dispatch }) => {\n const { page = defaultPage, perPage = 10 } = config;\n return Api.get<Alert[]>(`${monitorApiUrlv1}/devices/${id}/alerts/latest?page=${page}&per_page=${perPage}`)\n .catch(err => commonErrorHandler(err, `Retrieving device alerts for device ${id} failed:`, dispatch))\n .then(res => Promise.resolve(dispatch(actions.receiveLatestDeviceAlerts({ deviceId: id, alerts: sanitizeDeviceAlerts(res.data) }))));\n }\n);\n\ninterface GetIssueCountsByTypePayload {\n options?: Partial<{ filters: DeviceFilter[]; group: string; status: string; type: string }>;\n type: DeviceIssueOptionKey;\n}\nexport const getIssueCountsByType = createAppAsyncThunk(\n `${sliceName}/getIssueCountsByType`,\n async ({ type, options = {} }: GetIssueCountsByTypePayload, { dispatch, getState }) => {\n const state = getState();\n const { filters = getDeviceFilters(state), group, status, ...remainder } = options;\n const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters({\n ...remainder,\n filters,\n group,\n offlineThreshold: state.app.offlineThreshold,\n selectedIssues: [type],\n status\n });\n const res = await Api.post<DeviceInventory[]>(`${inventoryApiUrlV2}/filters/search`, {\n page: 1,\n per_page: 1,\n filters: filterTerms,\n attributes: [{ scope: 'identity', attribute: 'status' }]\n }).catch(err => commonErrorHandler(err, `Retrieving issue counts failed:`, dispatch, commonErrorFallback));\n const total = nonMonitorFilters.length ? state.monitor.issueCounts.byType[type].total : Number(res.headers[headerNames.total]);\n const filtered = nonMonitorFilters.length ? Number(res.headers[headerNames.total]) : total;\n if (total === state.monitor.issueCounts.byType[type].total && filtered === state.monitor.issueCounts.byType[type].filtered) {\n return;\n }\n return dispatch(actions.receiveDeviceIssueCounts({ counts: { filtered, total }, issueType: type }));\n }\n);\n\nexport const getDeviceMonitorConfig = createAppAsyncThunk(`${sliceName}/getDeviceMonitorConfig`, (id: string, { dispatch }) =>\n Api.get<MonitorConfiguration[]>(`${monitorApiUrlv1}/devices/${id}/config`)\n .catch(err => commonErrorHandler(err, `Retrieving device monitor config for device ${id} failed:`, dispatch))\n .then(({ data }) => Promise.all([dispatch(storeActions.receivedDevice({ id, monitors: data }), Promise.resolve(data))]))\n);\n\ninterface ChangeNotificationSettingPayload {\n channel?: AlertChannelKey;\n enabled: boolean;\n}\nexport const changeNotificationSetting = createAppAsyncThunk(\n `${sliceName}/changeNotificationSetting`,\n ({ enabled, channel = alertChannels.email as AlertChannelKey }: ChangeNotificationSettingPayload, { dispatch }) =>\n Api.put(`${monitorApiUrlv1}/settings/global/channel/alerts/${channel}/status`, { enabled })\n .catch(err => commonErrorHandler(err, `${enabled ? 'En' : 'Dis'}abling ${channel} alerts failed:`, dispatch))\n .then(() =>\n Promise.all([\n dispatch(actions.changeAlertChannel({ channel, enabled })),\n dispatch(\n storeActions.setSnackbar({ message: `Successfully ${enabled ? 'en' : 'dis'}abled ${channel} alerts`, autoHideDuration: TIMEOUTS.fiveSeconds })\n )\n ])\n )\n);\n"],"mappings":";;;;;;;;AAyBA,MAAM,EAAE,MAAM,aAAa,SAAS,mBAAmB;AAGvD,MAAM,WAAW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ASA,gBAAa,eAAe;CAAE;CAAI,UAAU;AAAK,CAAC,GAAG,QAAQ,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC,CAC3H;AAMA,MAAa,4BAA4B,oBACvC,GAAG,UAAU,8BACZ,EAAE,SAAS,UAAU,cAAc,SAA8D,EAAE,eAClG,IAAI,IAAI,GAAG,gBAAgB,kCAAkC,QAAQ,UAAU,EAAE,QAAQ,CAAC,EACvF,OAAM,QAAO,mBAAmB,KAAK,GAAG,UAAU,OAAO,MAAM,UAAU,QAAQ,kBAAkB,QAAQ,CAAC,EAC5G,WACC,QAAQ,IAAI,CACV,SAAS,QAAQ,mBAAmB;CAAE;CAAS;AAAQ,CAAC,CAAC,GACzD,SACEA,gBAAa,YAAY;CAAE,SAAS,gBAAgB,UAAU,OAAO,MAAM,QAAQ,QAAQ;CAAU,kBAAkB,SAAS;AAAY,CAAC,CAC/I,CACF,CAAC,CACH,CACN"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.cjs","names":[],"sources":["../../src/onboardingSlice/constants.ts"],"sourcesContent":["// Copyright 2020 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const onboardingSteps = {\n ONBOARDING_START: 'onboarding-start',\n DEVICES_PENDING_ONBOARDING_START: 'devices-pending-onboarding-start',\n DASHBOARD_ONBOARDING_START: 'dashboard-onboarding-start',\n DASHBOARD_ONBOARDING_PENDINGS: 'dashboard-onboarding-pendings',\n DEVICES_DELAYED_ONBOARDING: 'devices-delayed-onboarding',\n DEVICES_PENDING_ONBOARDING: 'devices-pending-onboarding',\n DEVICES_ACCEPTED_ONBOARDING: 'devices-accepted-onboarding',\n DEVICES_PENDING_ACCEPTING_ONBOARDING: 'devices-pending-accepting-onboarding',\n DEVICES_DEPLOY_RELEASE_ONBOARDING: 'devices-deploy-release-onboarding',\n SCHEDULING_ARTIFACT_SELECTION: 'scheduling-artifact-selection',\n SCHEDULING_ALL_DEVICES_SELECTION: 'scheduling-all-devices-selection',\n SCHEDULING_GROUP_SELECTION: 'scheduling-group-selection',\n SCHEDULING_RELEASE_TO_DEVICES: 'scheduling-release-to-devices',\n DEPLOYMENTS_INPROGRESS: 'deployments-inprogress',\n DEPLOYMENTS_COMPLETED: 'deployments-completed',\n DEPLOYMENTS_PAST: 'deployments-past',\n DEPLOYMENTS_PAST_COMPLETED: 'deployments-past-completed',\n DEPLOYMENTS_PAST_COMPLETED_FAILURE: 'deployments-past-completed-failure',\n ONBOARDING_CANCELED: 'onboarding-canceled'\n} as const;\n\nexport type OnboardingStepKey = keyof typeof onboardingSteps;\nexport type OnboardingStep = (typeof onboardingSteps)[OnboardingStepKey];\n\n// TODO: Update this to reflect the onboarding steps used in Mender?\nexport const orderedOnboardingSteps = [\n onboardingSteps.DASHBOARD_ONBOARDING_START,\n onboardingSteps.DEVICES_PENDING_ONBOARDING_START,\n onboardingSteps.DEVICES_DELAYED_ONBOARDING,\n onboardingSteps.DEVICES_PENDING_ONBOARDING,\n onboardingSteps.DEVICES_PENDING_ACCEPTING_ONBOARDING,\n onboardingSteps.DASHBOARD_ONBOARDING_PENDINGS,\n onboardingSteps.DEVICES_ACCEPTED_ONBOARDING,\n onboardingSteps.DEVICES_DEPLOY_RELEASE_ONBOARDING,\n onboardingSteps.SCHEDULING_ALL_DEVICES_SELECTION,\n onboardingSteps.SCHEDULING_GROUP_SELECTION,\n onboardingSteps.SCHEDULING_ARTIFACT_SELECTION,\n onboardingSteps.SCHEDULING_RELEASE_TO_DEVICES,\n onboardingSteps.DEPLOYMENTS_INPROGRESS,\n onboardingSteps.DEPLOYMENTS_PAST,\n onboardingSteps.DEPLOYMENTS_PAST_COMPLETED,\n onboardingSteps.DEPLOYMENTS_PAST_COMPLETED_FAILURE,\n onboardingSteps.ONBOARDING_CANCELED\n];\n"],"mappings":";;AAaA,MAAa,kBAAkB;CAC7B,kBAAkB;CAClB,kCAAkC;CAClC,4BAA4B;CAC5B,+BAA+B;CAC/B,4BAA4B;CAC5B,4BAA4B;CAC5B,6BAA6B;CAC7B,sCAAsC;CACtC,mCAAmC;CACnC,+BAA+B;CAC/B,kCAAkC;CAClC,4BAA4B;CAC5B,+BAA+B;CAC/B,wBAAwB;CACxB,uBAAuB;CACvB,kBAAkB;CAClB,4BAA4B;CAC5B,oCAAoC;CACpC,qBAAqB;CACtB;AAMD,MAAa,yBAAyB;CACpC,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CACjB"}
1
+ {"version":3,"file":"constants.cjs","names":[],"sources":["../../src/onboardingSlice/constants.ts"],"sourcesContent":["// Copyright 2020 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const onboardingSteps = {\n ONBOARDING_START: 'onboarding-start',\n DEVICES_PENDING_ONBOARDING_START: 'devices-pending-onboarding-start',\n DASHBOARD_ONBOARDING_START: 'dashboard-onboarding-start',\n DASHBOARD_ONBOARDING_PENDINGS: 'dashboard-onboarding-pendings',\n DEVICES_DELAYED_ONBOARDING: 'devices-delayed-onboarding',\n DEVICES_PENDING_ONBOARDING: 'devices-pending-onboarding',\n DEVICES_ACCEPTED_ONBOARDING: 'devices-accepted-onboarding',\n DEVICES_PENDING_ACCEPTING_ONBOARDING: 'devices-pending-accepting-onboarding',\n DEVICES_DEPLOY_RELEASE_ONBOARDING: 'devices-deploy-release-onboarding',\n SCHEDULING_ARTIFACT_SELECTION: 'scheduling-artifact-selection',\n SCHEDULING_ALL_DEVICES_SELECTION: 'scheduling-all-devices-selection',\n SCHEDULING_GROUP_SELECTION: 'scheduling-group-selection',\n SCHEDULING_RELEASE_TO_DEVICES: 'scheduling-release-to-devices',\n DEPLOYMENTS_INPROGRESS: 'deployments-inprogress',\n DEPLOYMENTS_COMPLETED: 'deployments-completed',\n DEPLOYMENTS_PAST: 'deployments-past',\n DEPLOYMENTS_PAST_COMPLETED: 'deployments-past-completed',\n DEPLOYMENTS_PAST_COMPLETED_FAILURE: 'deployments-past-completed-failure',\n ONBOARDING_CANCELED: 'onboarding-canceled'\n} as const;\n\nexport type OnboardingStepKey = keyof typeof onboardingSteps;\nexport type OnboardingStep = (typeof onboardingSteps)[OnboardingStepKey];\n\n// TODO: Update this to reflect the onboarding steps used in Mender?\nexport const orderedOnboardingSteps = [\n onboardingSteps.DASHBOARD_ONBOARDING_START,\n onboardingSteps.DEVICES_PENDING_ONBOARDING_START,\n onboardingSteps.DEVICES_DELAYED_ONBOARDING,\n onboardingSteps.DEVICES_PENDING_ONBOARDING,\n onboardingSteps.DEVICES_PENDING_ACCEPTING_ONBOARDING,\n onboardingSteps.DASHBOARD_ONBOARDING_PENDINGS,\n onboardingSteps.DEVICES_ACCEPTED_ONBOARDING,\n onboardingSteps.DEVICES_DEPLOY_RELEASE_ONBOARDING,\n onboardingSteps.SCHEDULING_ALL_DEVICES_SELECTION,\n onboardingSteps.SCHEDULING_GROUP_SELECTION,\n onboardingSteps.SCHEDULING_ARTIFACT_SELECTION,\n onboardingSteps.SCHEDULING_RELEASE_TO_DEVICES,\n onboardingSteps.DEPLOYMENTS_INPROGRESS,\n onboardingSteps.DEPLOYMENTS_PAST,\n onboardingSteps.DEPLOYMENTS_PAST_COMPLETED,\n onboardingSteps.DEPLOYMENTS_PAST_COMPLETED_FAILURE,\n onboardingSteps.ONBOARDING_CANCELED\n];\n"],"mappings":";;AAaA,MAAa,kBAAkB;CAC7B,kBAAkB;CAClB,kCAAkC;CAClC,4BAA4B;CAC5B,+BAA+B;CAC/B,4BAA4B;CAC5B,4BAA4B;CAC5B,6BAA6B;CAC7B,sCAAsC;CACtC,mCAAmC;CACnC,+BAA+B;CAC/B,kCAAkC;CAClC,4BAA4B;CAC5B,+BAA+B;CAC/B,wBAAwB;CACxB,uBAAuB;CACvB,kBAAkB;CAClB,4BAA4B;CAC5B,oCAAoC;CACpC,qBAAqB;AACvB;AAMA,MAAa,yBAAyB;CACpC,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;AAClB"}
@@ -1,2 +1,2 @@
1
- import { i as orderedOnboardingSteps, n as OnboardingStepKey, r as onboardingSteps, t as OnboardingStep } from "../constants-DK7fI3Rh.cjs";
1
+ import { i as orderedOnboardingSteps, n as OnboardingStepKey, r as onboardingSteps, t as OnboardingStep } from "../constants-Db_RBdlV.cjs";
2
2
  export { OnboardingStep, OnboardingStepKey, onboardingSteps, orderedOnboardingSteps };
@@ -1,2 +1,2 @@
1
- import { i as orderedOnboardingSteps, n as OnboardingStepKey, r as onboardingSteps, t as OnboardingStep } from "../constants-BWEsNG5c.js";
1
+ import { i as orderedOnboardingSteps, n as OnboardingStepKey, r as onboardingSteps, t as OnboardingStep } from "../constants-Db_RBdlV.js";
2
2
  export { OnboardingStep, OnboardingStepKey, onboardingSteps, orderedOnboardingSteps };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":[],"sources":["../../src/onboardingSlice/constants.ts"],"sourcesContent":["// Copyright 2020 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const onboardingSteps = {\n ONBOARDING_START: 'onboarding-start',\n DEVICES_PENDING_ONBOARDING_START: 'devices-pending-onboarding-start',\n DASHBOARD_ONBOARDING_START: 'dashboard-onboarding-start',\n DASHBOARD_ONBOARDING_PENDINGS: 'dashboard-onboarding-pendings',\n DEVICES_DELAYED_ONBOARDING: 'devices-delayed-onboarding',\n DEVICES_PENDING_ONBOARDING: 'devices-pending-onboarding',\n DEVICES_ACCEPTED_ONBOARDING: 'devices-accepted-onboarding',\n DEVICES_PENDING_ACCEPTING_ONBOARDING: 'devices-pending-accepting-onboarding',\n DEVICES_DEPLOY_RELEASE_ONBOARDING: 'devices-deploy-release-onboarding',\n SCHEDULING_ARTIFACT_SELECTION: 'scheduling-artifact-selection',\n SCHEDULING_ALL_DEVICES_SELECTION: 'scheduling-all-devices-selection',\n SCHEDULING_GROUP_SELECTION: 'scheduling-group-selection',\n SCHEDULING_RELEASE_TO_DEVICES: 'scheduling-release-to-devices',\n DEPLOYMENTS_INPROGRESS: 'deployments-inprogress',\n DEPLOYMENTS_COMPLETED: 'deployments-completed',\n DEPLOYMENTS_PAST: 'deployments-past',\n DEPLOYMENTS_PAST_COMPLETED: 'deployments-past-completed',\n DEPLOYMENTS_PAST_COMPLETED_FAILURE: 'deployments-past-completed-failure',\n ONBOARDING_CANCELED: 'onboarding-canceled'\n} as const;\n\nexport type OnboardingStepKey = keyof typeof onboardingSteps;\nexport type OnboardingStep = (typeof onboardingSteps)[OnboardingStepKey];\n\n// TODO: Update this to reflect the onboarding steps used in Mender?\nexport const orderedOnboardingSteps = [\n onboardingSteps.DASHBOARD_ONBOARDING_START,\n onboardingSteps.DEVICES_PENDING_ONBOARDING_START,\n onboardingSteps.DEVICES_DELAYED_ONBOARDING,\n onboardingSteps.DEVICES_PENDING_ONBOARDING,\n onboardingSteps.DEVICES_PENDING_ACCEPTING_ONBOARDING,\n onboardingSteps.DASHBOARD_ONBOARDING_PENDINGS,\n onboardingSteps.DEVICES_ACCEPTED_ONBOARDING,\n onboardingSteps.DEVICES_DEPLOY_RELEASE_ONBOARDING,\n onboardingSteps.SCHEDULING_ALL_DEVICES_SELECTION,\n onboardingSteps.SCHEDULING_GROUP_SELECTION,\n onboardingSteps.SCHEDULING_ARTIFACT_SELECTION,\n onboardingSteps.SCHEDULING_RELEASE_TO_DEVICES,\n onboardingSteps.DEPLOYMENTS_INPROGRESS,\n onboardingSteps.DEPLOYMENTS_PAST,\n onboardingSteps.DEPLOYMENTS_PAST_COMPLETED,\n onboardingSteps.DEPLOYMENTS_PAST_COMPLETED_FAILURE,\n onboardingSteps.ONBOARDING_CANCELED\n];\n"],"mappings":";AAaA,MAAa,kBAAkB;CAC7B,kBAAkB;CAClB,kCAAkC;CAClC,4BAA4B;CAC5B,+BAA+B;CAC/B,4BAA4B;CAC5B,4BAA4B;CAC5B,6BAA6B;CAC7B,sCAAsC;CACtC,mCAAmC;CACnC,+BAA+B;CAC/B,kCAAkC;CAClC,4BAA4B;CAC5B,+BAA+B;CAC/B,wBAAwB;CACxB,uBAAuB;CACvB,kBAAkB;CAClB,4BAA4B;CAC5B,oCAAoC;CACpC,qBAAqB;CACtB;AAMD,MAAa,yBAAyB;CACpC,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CACjB"}
1
+ {"version":3,"file":"constants.js","names":[],"sources":["../../src/onboardingSlice/constants.ts"],"sourcesContent":["// Copyright 2020 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nexport const onboardingSteps = {\n ONBOARDING_START: 'onboarding-start',\n DEVICES_PENDING_ONBOARDING_START: 'devices-pending-onboarding-start',\n DASHBOARD_ONBOARDING_START: 'dashboard-onboarding-start',\n DASHBOARD_ONBOARDING_PENDINGS: 'dashboard-onboarding-pendings',\n DEVICES_DELAYED_ONBOARDING: 'devices-delayed-onboarding',\n DEVICES_PENDING_ONBOARDING: 'devices-pending-onboarding',\n DEVICES_ACCEPTED_ONBOARDING: 'devices-accepted-onboarding',\n DEVICES_PENDING_ACCEPTING_ONBOARDING: 'devices-pending-accepting-onboarding',\n DEVICES_DEPLOY_RELEASE_ONBOARDING: 'devices-deploy-release-onboarding',\n SCHEDULING_ARTIFACT_SELECTION: 'scheduling-artifact-selection',\n SCHEDULING_ALL_DEVICES_SELECTION: 'scheduling-all-devices-selection',\n SCHEDULING_GROUP_SELECTION: 'scheduling-group-selection',\n SCHEDULING_RELEASE_TO_DEVICES: 'scheduling-release-to-devices',\n DEPLOYMENTS_INPROGRESS: 'deployments-inprogress',\n DEPLOYMENTS_COMPLETED: 'deployments-completed',\n DEPLOYMENTS_PAST: 'deployments-past',\n DEPLOYMENTS_PAST_COMPLETED: 'deployments-past-completed',\n DEPLOYMENTS_PAST_COMPLETED_FAILURE: 'deployments-past-completed-failure',\n ONBOARDING_CANCELED: 'onboarding-canceled'\n} as const;\n\nexport type OnboardingStepKey = keyof typeof onboardingSteps;\nexport type OnboardingStep = (typeof onboardingSteps)[OnboardingStepKey];\n\n// TODO: Update this to reflect the onboarding steps used in Mender?\nexport const orderedOnboardingSteps = [\n onboardingSteps.DASHBOARD_ONBOARDING_START,\n onboardingSteps.DEVICES_PENDING_ONBOARDING_START,\n onboardingSteps.DEVICES_DELAYED_ONBOARDING,\n onboardingSteps.DEVICES_PENDING_ONBOARDING,\n onboardingSteps.DEVICES_PENDING_ACCEPTING_ONBOARDING,\n onboardingSteps.DASHBOARD_ONBOARDING_PENDINGS,\n onboardingSteps.DEVICES_ACCEPTED_ONBOARDING,\n onboardingSteps.DEVICES_DEPLOY_RELEASE_ONBOARDING,\n onboardingSteps.SCHEDULING_ALL_DEVICES_SELECTION,\n onboardingSteps.SCHEDULING_GROUP_SELECTION,\n onboardingSteps.SCHEDULING_ARTIFACT_SELECTION,\n onboardingSteps.SCHEDULING_RELEASE_TO_DEVICES,\n onboardingSteps.DEPLOYMENTS_INPROGRESS,\n onboardingSteps.DEPLOYMENTS_PAST,\n onboardingSteps.DEPLOYMENTS_PAST_COMPLETED,\n onboardingSteps.DEPLOYMENTS_PAST_COMPLETED_FAILURE,\n onboardingSteps.ONBOARDING_CANCELED\n];\n"],"mappings":";AAaA,MAAa,kBAAkB;CAC7B,kBAAkB;CAClB,kCAAkC;CAClC,4BAA4B;CAC5B,+BAA+B;CAC/B,4BAA4B;CAC5B,4BAA4B;CAC5B,6BAA6B;CAC7B,sCAAsC;CACtC,mCAAmC;CACnC,+BAA+B;CAC/B,kCAAkC;CAClC,4BAA4B;CAC5B,+BAA+B;CAC/B,wBAAwB;CACxB,uBAAuB;CACvB,kBAAkB;CAClB,4BAA4B;CAC5B,oCAAoC;CACpC,qBAAqB;AACvB;AAMA,MAAa,yBAAyB;CACpC,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;AAClB"}
@@ -2,7 +2,6 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- require("../chunk-CKQMccvm.cjs");
6
5
  let _reduxjs_toolkit = require("@reduxjs/toolkit");
7
6
  //#region src/onboardingSlice/index.ts
8
7
  const sliceName = "onboarding";
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../src/onboardingSlice/index.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.\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'onboarding';\n\nexport type OnboardingApproach = 'virtual' | 'physical' | 'mcu';\n\nexport type OnboardingSliceType = {\n address?: string;\n approach: OnboardingApproach | null;\n complete: boolean;\n demoArtifactPort: number;\n deviceConnection?: string;\n deviceType: string[] | string | null;\n progress: string | null;\n showTips: boolean | null;\n showTipsDialog: boolean;\n};\n\nexport const initialState: OnboardingSliceType = {\n approach: null,\n complete: false,\n deviceType: null,\n demoArtifactPort: 85,\n progress: null,\n showTips: null,\n showTipsDialog: false\n};\n\nexport const onboardingSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setOnboardingState: (state, action: PayloadAction<Partial<OnboardingSliceType>>) => ({ ...state, ...action.payload }),\n setDemoArtifactPort: (state, action: PayloadAction<number>) => {\n state.demoArtifactPort = action.payload;\n },\n setShowOnboardingHelp: (state, action: PayloadAction<boolean>) => {\n state.showTips = action.payload;\n },\n setShowDismissOnboardingTipsDialog: (state, action: PayloadAction<boolean>) => {\n state.showTipsDialog = action.payload;\n },\n setOnboardingComplete: (state, action: PayloadAction<boolean>) => {\n state.complete = action.payload;\n },\n setOnboardingProgress: (state, action: PayloadAction<string>) => {\n state.progress = action.payload;\n },\n setOnboardingDeviceType: (state, action: PayloadAction<string[] | string>) => {\n state.deviceType = action.payload;\n },\n setOnboardingApproach: (state, action: PayloadAction<OnboardingApproach>) => {\n state.approach = action.payload;\n }\n }\n});\n\nexport const actions = onboardingSlice.actions;\nexport default onboardingSlice.reducer;\n"],"mappings":";;;;;;;AAgBA,MAAa,YAAY;AAgBzB,MAAa,eAAoC;CAC/C,UAAU;CACV,UAAU;CACV,YAAY;CACZ,kBAAkB;CAClB,UAAU;CACV,UAAU;CACV,gBAAgB;CACjB;AAED,MAAa,mBAAA,GAAA,iBAAA,aAA8B;CACzC,MAAM;CACN;CACA,UAAU;EACR,qBAAqB,OAAO,YAAyD;GAAE,GAAG;GAAO,GAAG,OAAO;GAAS;EACpH,sBAAsB,OAAO,WAAkC;GAC7D,MAAM,mBAAmB,OAAO;;EAElC,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;;EAE1B,qCAAqC,OAAO,WAAmC;GAC7E,MAAM,iBAAiB,OAAO;;EAEhC,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;;EAE1B,wBAAwB,OAAO,WAAkC;GAC/D,MAAM,WAAW,OAAO;;EAE1B,0BAA0B,OAAO,WAA6C;GAC5E,MAAM,aAAa,OAAO;;EAE5B,wBAAwB,OAAO,WAA8C;GAC3E,MAAM,WAAW,OAAO;;EAE3B;CACF,CAAC;AAEF,MAAa,UAAU,gBAAgB;AACvC,IAAA,0BAAe,gBAAgB"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../src/onboardingSlice/index.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.\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'onboarding';\n\nexport type OnboardingApproach = 'virtual' | 'physical' | 'mcu';\n\nexport type OnboardingSliceType = {\n address?: string;\n approach: OnboardingApproach | null;\n complete: boolean;\n demoArtifactPort: number;\n deviceConnection?: string;\n deviceType: string[] | string | null;\n progress: string | null;\n showTips: boolean | null;\n showTipsDialog: boolean;\n};\n\nexport const initialState: OnboardingSliceType = {\n approach: null,\n complete: false,\n deviceType: null,\n demoArtifactPort: 85,\n progress: null,\n showTips: null,\n showTipsDialog: false\n};\n\nexport const onboardingSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setOnboardingState: (state, action: PayloadAction<Partial<OnboardingSliceType>>) => ({ ...state, ...action.payload }),\n setDemoArtifactPort: (state, action: PayloadAction<number>) => {\n state.demoArtifactPort = action.payload;\n },\n setShowOnboardingHelp: (state, action: PayloadAction<boolean>) => {\n state.showTips = action.payload;\n },\n setShowDismissOnboardingTipsDialog: (state, action: PayloadAction<boolean>) => {\n state.showTipsDialog = action.payload;\n },\n setOnboardingComplete: (state, action: PayloadAction<boolean>) => {\n state.complete = action.payload;\n },\n setOnboardingProgress: (state, action: PayloadAction<string>) => {\n state.progress = action.payload;\n },\n setOnboardingDeviceType: (state, action: PayloadAction<string[] | string>) => {\n state.deviceType = action.payload;\n },\n setOnboardingApproach: (state, action: PayloadAction<OnboardingApproach>) => {\n state.approach = action.payload;\n }\n }\n});\n\nexport const actions = onboardingSlice.actions;\nexport default onboardingSlice.reducer;\n"],"mappings":";;;;;;AAgBA,MAAa,YAAY;AAgBzB,MAAa,eAAoC;CAC/C,UAAU;CACV,UAAU;CACV,YAAY;CACZ,kBAAkB;CAClB,UAAU;CACV,UAAU;CACV,gBAAgB;AAClB;AAEA,MAAa,mBAAA,GAAA,iBAAA,aAA8B;CACzC,MAAM;CACN;CACA,UAAU;EACR,qBAAqB,OAAO,YAAyD;GAAE,GAAG;GAAO,GAAG,OAAO;EAAQ;EACnH,sBAAsB,OAAO,WAAkC;GAC7D,MAAM,mBAAmB,OAAO;EAClC;EACA,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;EAC1B;EACA,qCAAqC,OAAO,WAAmC;GAC7E,MAAM,iBAAiB,OAAO;EAChC;EACA,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;EAC1B;EACA,wBAAwB,OAAO,WAAkC;GAC/D,MAAM,WAAW,OAAO;EAC1B;EACA,0BAA0B,OAAO,WAA6C;GAC5E,MAAM,aAAa,OAAO;EAC5B;EACA,wBAAwB,OAAO,WAA8C;GAC3E,MAAM,WAAW,OAAO;EAC1B;CACF;AACF,CAAC;AAED,MAAa,UAAU,gBAAgB;AACvC,IAAA,0BAAe,gBAAgB"}
@@ -1,2 +1,2 @@
1
- import { a as initialState, i as actions, n as OnboardingSliceType, o as onboardingSlice, r as _default, s as sliceName, t as OnboardingApproach } from "../index-UPc3wvVd.cjs";
1
+ import { a as initialState, i as actions, n as OnboardingSliceType, o as onboardingSlice, r as _default, s as sliceName, t as OnboardingApproach } from "../index-DBUt8xVc.cjs";
2
2
  export { OnboardingApproach, OnboardingSliceType, actions, _default as default, initialState, onboardingSlice, sliceName };
@@ -1,2 +1,2 @@
1
- import { a as initialState, i as actions, n as OnboardingSliceType, o as onboardingSlice, r as _default, s as sliceName, t as OnboardingApproach } from "../index-CJkrL0oA.js";
1
+ import { a as initialState, i as actions, n as OnboardingSliceType, o as onboardingSlice, r as _default, s as sliceName, t as OnboardingApproach } from "../index-DBUt8xVc.js";
2
2
  export { OnboardingApproach, OnboardingSliceType, actions, _default as default, initialState, onboardingSlice, sliceName };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/onboardingSlice/index.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.\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'onboarding';\n\nexport type OnboardingApproach = 'virtual' | 'physical' | 'mcu';\n\nexport type OnboardingSliceType = {\n address?: string;\n approach: OnboardingApproach | null;\n complete: boolean;\n demoArtifactPort: number;\n deviceConnection?: string;\n deviceType: string[] | string | null;\n progress: string | null;\n showTips: boolean | null;\n showTipsDialog: boolean;\n};\n\nexport const initialState: OnboardingSliceType = {\n approach: null,\n complete: false,\n deviceType: null,\n demoArtifactPort: 85,\n progress: null,\n showTips: null,\n showTipsDialog: false\n};\n\nexport const onboardingSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setOnboardingState: (state, action: PayloadAction<Partial<OnboardingSliceType>>) => ({ ...state, ...action.payload }),\n setDemoArtifactPort: (state, action: PayloadAction<number>) => {\n state.demoArtifactPort = action.payload;\n },\n setShowOnboardingHelp: (state, action: PayloadAction<boolean>) => {\n state.showTips = action.payload;\n },\n setShowDismissOnboardingTipsDialog: (state, action: PayloadAction<boolean>) => {\n state.showTipsDialog = action.payload;\n },\n setOnboardingComplete: (state, action: PayloadAction<boolean>) => {\n state.complete = action.payload;\n },\n setOnboardingProgress: (state, action: PayloadAction<string>) => {\n state.progress = action.payload;\n },\n setOnboardingDeviceType: (state, action: PayloadAction<string[] | string>) => {\n state.deviceType = action.payload;\n },\n setOnboardingApproach: (state, action: PayloadAction<OnboardingApproach>) => {\n state.approach = action.payload;\n }\n }\n});\n\nexport const actions = onboardingSlice.actions;\nexport default onboardingSlice.reducer;\n"],"mappings":";;AAgBA,MAAa,YAAY;AAgBzB,MAAa,eAAoC;CAC/C,UAAU;CACV,UAAU;CACV,YAAY;CACZ,kBAAkB;CAClB,UAAU;CACV,UAAU;CACV,gBAAgB;CACjB;AAED,MAAa,kBAAkB,YAAY;CACzC,MAAM;CACN;CACA,UAAU;EACR,qBAAqB,OAAO,YAAyD;GAAE,GAAG;GAAO,GAAG,OAAO;GAAS;EACpH,sBAAsB,OAAO,WAAkC;GAC7D,MAAM,mBAAmB,OAAO;;EAElC,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;;EAE1B,qCAAqC,OAAO,WAAmC;GAC7E,MAAM,iBAAiB,OAAO;;EAEhC,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;;EAE1B,wBAAwB,OAAO,WAAkC;GAC/D,MAAM,WAAW,OAAO;;EAE1B,0BAA0B,OAAO,WAA6C;GAC5E,MAAM,aAAa,OAAO;;EAE5B,wBAAwB,OAAO,WAA8C;GAC3E,MAAM,WAAW,OAAO;;EAE3B;CACF,CAAC;AAEF,MAAa,UAAU,gBAAgB;AACvC,IAAA,0BAAe,gBAAgB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/onboardingSlice/index.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.\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nexport const sliceName = 'onboarding';\n\nexport type OnboardingApproach = 'virtual' | 'physical' | 'mcu';\n\nexport type OnboardingSliceType = {\n address?: string;\n approach: OnboardingApproach | null;\n complete: boolean;\n demoArtifactPort: number;\n deviceConnection?: string;\n deviceType: string[] | string | null;\n progress: string | null;\n showTips: boolean | null;\n showTipsDialog: boolean;\n};\n\nexport const initialState: OnboardingSliceType = {\n approach: null,\n complete: false,\n deviceType: null,\n demoArtifactPort: 85,\n progress: null,\n showTips: null,\n showTipsDialog: false\n};\n\nexport const onboardingSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n setOnboardingState: (state, action: PayloadAction<Partial<OnboardingSliceType>>) => ({ ...state, ...action.payload }),\n setDemoArtifactPort: (state, action: PayloadAction<number>) => {\n state.demoArtifactPort = action.payload;\n },\n setShowOnboardingHelp: (state, action: PayloadAction<boolean>) => {\n state.showTips = action.payload;\n },\n setShowDismissOnboardingTipsDialog: (state, action: PayloadAction<boolean>) => {\n state.showTipsDialog = action.payload;\n },\n setOnboardingComplete: (state, action: PayloadAction<boolean>) => {\n state.complete = action.payload;\n },\n setOnboardingProgress: (state, action: PayloadAction<string>) => {\n state.progress = action.payload;\n },\n setOnboardingDeviceType: (state, action: PayloadAction<string[] | string>) => {\n state.deviceType = action.payload;\n },\n setOnboardingApproach: (state, action: PayloadAction<OnboardingApproach>) => {\n state.approach = action.payload;\n }\n }\n});\n\nexport const actions = onboardingSlice.actions;\nexport default onboardingSlice.reducer;\n"],"mappings":";;AAgBA,MAAa,YAAY;AAgBzB,MAAa,eAAoC;CAC/C,UAAU;CACV,UAAU;CACV,YAAY;CACZ,kBAAkB;CAClB,UAAU;CACV,UAAU;CACV,gBAAgB;AAClB;AAEA,MAAa,kBAAkB,YAAY;CACzC,MAAM;CACN;CACA,UAAU;EACR,qBAAqB,OAAO,YAAyD;GAAE,GAAG;GAAO,GAAG,OAAO;EAAQ;EACnH,sBAAsB,OAAO,WAAkC;GAC7D,MAAM,mBAAmB,OAAO;EAClC;EACA,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;EAC1B;EACA,qCAAqC,OAAO,WAAmC;GAC7E,MAAM,iBAAiB,OAAO;EAChC;EACA,wBAAwB,OAAO,WAAmC;GAChE,MAAM,WAAW,OAAO;EAC1B;EACA,wBAAwB,OAAO,WAAkC;GAC/D,MAAM,WAAW,OAAO;EAC1B;EACA,0BAA0B,OAAO,WAA6C;GAC5E,MAAM,aAAa,OAAO;EAC5B;EACA,wBAAwB,OAAO,WAA8C;GAC3E,MAAM,WAAW,OAAO;EAC1B;CACF;AACF,CAAC;AAED,MAAa,UAAU,gBAAgB;AACvC,IAAA,0BAAe,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"mocks.cjs","names":["initialState"],"sources":["../../src/onboardingSlice/mocks.ts"],"sourcesContent":["// Copyright 2025 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 { initialState } from './index';\n\nexport const mockState = {\n ...initialState,\n progress: undefined,\n complete: false,\n demoArtifactPort: 85,\n showConnectDeviceDialog: false,\n showTipsDialog: false\n};\n"],"mappings":";;AAeA,MAAa,YAAY;CACvB,yBAAGA,CAAAA;CACH,UAAU,KAAA;CACV,UAAU;CACV,kBAAkB;CAClB,yBAAyB;CACzB,gBAAgB;CACjB"}
1
+ {"version":3,"file":"mocks.cjs","names":["initialState"],"sources":["../../src/onboardingSlice/mocks.ts"],"sourcesContent":["// Copyright 2025 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 { initialState } from './index';\n\nexport const mockState = {\n ...initialState,\n progress: undefined,\n complete: false,\n demoArtifactPort: 85,\n showConnectDeviceDialog: false,\n showTipsDialog: false\n};\n"],"mappings":";;AAeA,MAAa,YAAY;CACvB,wBAAGA,EAAAA;CACH,UAAU,KAAA;CACV,UAAU;CACV,kBAAkB;CAClB,yBAAyB;CACzB,gBAAgB;AAClB"}
@@ -1,4 +1,4 @@
1
- import { t as OnboardingApproach } from "../index-UPc3wvVd.cjs";
1
+ import { t as OnboardingApproach } from "../index-DBUt8xVc.cjs";
2
2
 
3
3
  //#region src/onboardingSlice/mocks.d.ts
4
4
  declare const mockState: {
@@ -1,4 +1,4 @@
1
- import { t as OnboardingApproach } from "../index-CJkrL0oA.js";
1
+ import { t as OnboardingApproach } from "../index-DBUt8xVc.js";
2
2
 
3
3
  //#region src/onboardingSlice/mocks.d.ts
4
4
  declare const mockState: {
@@ -1 +1 @@
1
- {"version":3,"file":"mocks.js","names":[],"sources":["../../src/onboardingSlice/mocks.ts"],"sourcesContent":["// Copyright 2025 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 { initialState } from './index';\n\nexport const mockState = {\n ...initialState,\n progress: undefined,\n complete: false,\n demoArtifactPort: 85,\n showConnectDeviceDialog: false,\n showTipsDialog: false\n};\n"],"mappings":";;AAeA,MAAa,YAAY;CACvB,GAAG;CACH,UAAU,KAAA;CACV,UAAU;CACV,kBAAkB;CAClB,yBAAyB;CACzB,gBAAgB;CACjB"}
1
+ {"version":3,"file":"mocks.js","names":[],"sources":["../../src/onboardingSlice/mocks.ts"],"sourcesContent":["// Copyright 2025 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 { initialState } from './index';\n\nexport const mockState = {\n ...initialState,\n progress: undefined,\n complete: false,\n demoArtifactPort: 85,\n showConnectDeviceDialog: false,\n showTipsDialog: false\n};\n"],"mappings":";;AAeA,MAAa,YAAY;CACvB,GAAG;CACH,UAAU,KAAA;CACV,UAAU;CACV,kBAAkB;CAClB,yBAAyB;CACzB,gBAAgB;AAClB"}
@@ -1,5 +1,5 @@
1
- import { n as OnboardingSliceType } from "../index-UPc3wvVd.cjs";
2
- import { r as RootState } from "../store-BhRxVhtL.cjs";
1
+ import { n as OnboardingSliceType } from "../index-DBUt8xVc.cjs";
2
+ import { r as RootState } from "../store-Dd0Y2JCN.cjs";
3
3
 
4
4
  //#region src/onboardingSlice/selectors.d.ts
5
5
  declare const getOnboarding: (state: RootState) => OnboardingSliceType;
@@ -1,5 +1,5 @@
1
- import { n as OnboardingSliceType } from "../index-CJkrL0oA.js";
2
- import { r as RootState } from "../store-BZo47jc-.js";
1
+ import { n as OnboardingSliceType } from "../index-DBUt8xVc.js";
2
+ import { r as RootState } from "../store-Co2ptTSm.js";
3
3
 
4
4
  //#region src/onboardingSlice/selectors.d.ts
5
5
  declare const getOnboarding: (state: RootState) => OnboardingSliceType;