@northern.tech/store 0.46.5 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/actions.d.cts +6 -6
  2. package/dist/actions.d.ts +6 -6
  3. package/dist/api/general-api.cjs +2 -2
  4. package/dist/api/general-api.cjs.map +1 -1
  5. package/dist/api/general-api.js +1 -1
  6. package/dist/api/general-api.js.map +1 -1
  7. package/dist/appSlice/constants.cjs +3 -4
  8. package/dist/appSlice/constants.cjs.map +1 -1
  9. package/dist/appSlice/constants.d.cts +1 -1
  10. package/dist/appSlice/constants.d.ts +1 -1
  11. package/dist/appSlice/constants.js +1 -2
  12. package/dist/appSlice/constants.js.map +1 -1
  13. package/dist/appSlice/index.d.cts +1 -1
  14. package/dist/appSlice/index.d.ts +1 -1
  15. package/dist/appSlice/index.js +1 -1
  16. package/dist/appSlice/mocks.d.cts +1 -1
  17. package/dist/appSlice/mocks.d.ts +1 -1
  18. package/dist/appSlice/selectors.cjs.map +1 -1
  19. package/dist/appSlice/selectors.d.cts +2 -130
  20. package/dist/appSlice/selectors.d.ts +2 -130
  21. package/dist/appSlice/selectors.js.map +1 -1
  22. package/dist/appSlice/thunks.d.cts +2 -2
  23. package/dist/appSlice/thunks.d.ts +2 -2
  24. package/dist/auth.cjs +3 -3
  25. package/dist/auth.cjs.map +1 -1
  26. package/dist/auth.d.cts +1 -1
  27. package/dist/auth.d.ts +1 -1
  28. package/dist/auth.js +2 -1
  29. package/dist/auth.js.map +1 -1
  30. package/dist/commonConstants.cjs +4 -3
  31. package/dist/commonConstants.d.cts +2 -2
  32. package/dist/commonConstants.d.ts +2 -2
  33. package/dist/commonConstants.js +1 -1
  34. package/dist/commonSelectors.cjs +1 -1
  35. package/dist/commonSelectors.d.cts +76 -369
  36. package/dist/commonSelectors.d.ts +76 -369
  37. package/dist/commonSelectors.js +1 -1
  38. package/dist/constants-CCkKh9KM.d.ts +109 -0
  39. package/dist/constants-CUwYPOYK.d.cts +109 -0
  40. package/dist/{constants-D5hACLhF.js → constants-DjiC_FnZ.js} +3 -269
  41. package/dist/constants-DjiC_FnZ.js.map +1 -0
  42. package/dist/{constants-MVizYy89.cjs → constants-DsOnY5o5.cjs} +1 -279
  43. package/dist/constants-DsOnY5o5.cjs.map +1 -0
  44. package/dist/{constants-nKSWZ8oD.d.ts → constants-tC3RR_Oo.d.cts} +2 -3
  45. package/dist/{constants-nKSWZ8oD.d.cts → constants-tC3RR_Oo.d.ts} +2 -3
  46. package/dist/constants.cjs +5 -5
  47. package/dist/constants.d.cts +3 -3
  48. package/dist/constants.d.ts +3 -3
  49. package/dist/constants.js +1 -1
  50. package/dist/deploymentsSlice/constants.cjs +1 -1
  51. package/dist/deploymentsSlice/constants.js +1 -1
  52. package/dist/deploymentsSlice/index.cjs +1 -1
  53. package/dist/deploymentsSlice/index.js +1 -1
  54. package/dist/deploymentsSlice/selectors.cjs +1 -1
  55. package/dist/deploymentsSlice/selectors.cjs.map +1 -1
  56. package/dist/deploymentsSlice/selectors.d.cts +2 -97
  57. package/dist/deploymentsSlice/selectors.d.ts +2 -97
  58. package/dist/deploymentsSlice/selectors.js +1 -1
  59. package/dist/deploymentsSlice/selectors.js.map +1 -1
  60. package/dist/deploymentsSlice/thunks.d.cts +13 -13
  61. package/dist/deploymentsSlice/thunks.d.ts +13 -13
  62. package/dist/devicesSlice/constants.cjs +1 -1
  63. package/dist/devicesSlice/constants.d.cts +1 -1
  64. package/dist/devicesSlice/constants.d.ts +1 -1
  65. package/dist/devicesSlice/constants.js +1 -1
  66. package/dist/devicesSlice/index.d.cts +1 -1
  67. package/dist/devicesSlice/index.d.ts +1 -1
  68. package/dist/devicesSlice/index.js +1 -1
  69. package/dist/devicesSlice/mocks.js +1 -1
  70. package/dist/devicesSlice/selectors.cjs +1 -1
  71. package/dist/devicesSlice/selectors.cjs.map +1 -1
  72. package/dist/devicesSlice/selectors.d.cts +2 -887
  73. package/dist/devicesSlice/selectors.d.ts +2 -887
  74. package/dist/devicesSlice/selectors.js +1 -1
  75. package/dist/devicesSlice/selectors.js.map +1 -1
  76. package/dist/devicesSlice/thunks.d.cts +4 -4
  77. package/dist/devicesSlice/thunks.d.ts +4 -4
  78. package/dist/{index-KxRmyFLr.d.cts → index-7jVuB4tG.d.cts} +2 -2
  79. package/dist/{index-fGVC5s1C.d.cts → index-BWtIaimn.d.cts} +2 -2
  80. package/dist/{index-BfmRpbiJ.d.cts → index-BcrZxKLw.d.cts} +2 -2
  81. package/dist/{index--SKVGToc.d.ts → index-C1vNDCYR.d.ts} +2 -2
  82. package/dist/{index-CRqnH_go.d.ts → index-C2za83Qs.d.ts} +2 -2
  83. package/dist/{index-xxqlerg5.d.ts → index-CThE5Gfh.d.ts} +2 -2
  84. package/dist/{index-BKU1G9-x.d.cts → index-CaNZaXie.d.cts} +2 -2
  85. package/dist/{index-BVNS-Aut.d.ts → index-CvMpbsOo.d.ts} +2 -2
  86. package/dist/{index-HjOSTTGF.d.cts → index-CzQRHJ6f.d.cts} +2 -2
  87. package/dist/{index-CqhXqGLt.d.cts → index-DNYeo7wc.d.cts} +2 -2
  88. package/dist/{index-D9GJhX1I.d.ts → index-DOPRnlaC.d.ts} +2 -2
  89. package/dist/{index-BMsafOyJ.d.ts → index-o_m7WKiR.d.ts} +2 -2
  90. package/dist/locationutils.cjs +1 -1
  91. package/dist/locationutils.d.cts +2 -2
  92. package/dist/locationutils.d.ts +2 -2
  93. package/dist/locationutils.js +1 -1
  94. package/dist/mockState.cjs +24 -0
  95. package/dist/mockState.cjs.map +1 -0
  96. package/dist/mockState.d.cts +7 -0
  97. package/dist/mockState.d.ts +7 -0
  98. package/dist/mockState.js +23 -0
  99. package/dist/mockState.js.map +1 -0
  100. package/dist/monitorSlice/constants.d.cts +1 -1
  101. package/dist/monitorSlice/constants.d.ts +1 -1
  102. package/dist/monitorSlice/index.d.cts +1 -1
  103. package/dist/monitorSlice/index.d.ts +1 -1
  104. package/dist/monitorSlice/index.js +1 -1
  105. package/dist/monitorSlice/mocks.d.cts +1 -1
  106. package/dist/monitorSlice/mocks.d.ts +1 -1
  107. package/dist/monitorSlice/mocks.js +1 -1
  108. package/dist/monitorSlice/selectors.cjs.map +1 -1
  109. package/dist/monitorSlice/selectors.d.cts +2 -10
  110. package/dist/monitorSlice/selectors.d.ts +2 -10
  111. package/dist/monitorSlice/selectors.js.map +1 -1
  112. package/dist/monitorSlice/thunks.cjs +2 -3
  113. package/dist/monitorSlice/thunks.cjs.map +1 -1
  114. package/dist/monitorSlice/thunks.d.cts +4 -4
  115. package/dist/monitorSlice/thunks.d.ts +4 -4
  116. package/dist/monitorSlice/thunks.js +3 -2
  117. package/dist/monitorSlice/thunks.js.map +1 -1
  118. package/dist/onboardingSlice/selectors.cjs.map +1 -1
  119. package/dist/onboardingSlice/selectors.d.cts +2 -6
  120. package/dist/onboardingSlice/selectors.d.ts +2 -6
  121. package/dist/onboardingSlice/selectors.js.map +1 -1
  122. package/dist/onboardingSlice/thunks.d.cts +3 -3
  123. package/dist/onboardingSlice/thunks.d.ts +3 -3
  124. package/dist/organizationSlice/constants.cjs +1 -1
  125. package/dist/organizationSlice/constants.js +1 -1
  126. package/dist/organizationSlice/index.cjs +1 -1
  127. package/dist/organizationSlice/index.d.cts +1 -1
  128. package/dist/organizationSlice/index.d.ts +1 -1
  129. package/dist/organizationSlice/index.js +1 -1
  130. package/dist/organizationSlice/mocks.d.cts +3 -3
  131. package/dist/organizationSlice/mocks.d.ts +3 -3
  132. package/dist/organizationSlice/mocks.js +1 -1
  133. package/dist/organizationSlice/selectors.cjs +1 -1
  134. package/dist/organizationSlice/selectors.cjs.map +1 -1
  135. package/dist/organizationSlice/selectors.d.cts +2 -472
  136. package/dist/organizationSlice/selectors.d.ts +2 -472
  137. package/dist/organizationSlice/selectors.js +1 -1
  138. package/dist/organizationSlice/selectors.js.map +1 -1
  139. package/dist/organizationSlice/thunks.d.cts +25 -21
  140. package/dist/organizationSlice/thunks.d.ts +25 -21
  141. package/dist/organizationSlice/types.d.cts +1 -1
  142. package/dist/organizationSlice/types.d.ts +1 -1
  143. package/dist/releasesSlice/index.d.cts +1 -1
  144. package/dist/releasesSlice/index.d.ts +1 -1
  145. package/dist/releasesSlice/index.js +1 -1
  146. package/dist/releasesSlice/mocks.js +1 -1
  147. package/dist/releasesSlice/selectors.cjs.map +1 -1
  148. package/dist/releasesSlice/selectors.d.cts +2 -795
  149. package/dist/releasesSlice/selectors.d.ts +2 -795
  150. package/dist/releasesSlice/selectors.js.map +1 -1
  151. package/dist/releasesSlice/thunks.cjs +17 -17
  152. package/dist/releasesSlice/thunks.cjs.map +1 -1
  153. package/dist/releasesSlice/thunks.d.cts +4 -4
  154. package/dist/releasesSlice/thunks.d.ts +4 -4
  155. package/dist/releasesSlice/thunks.js +2 -1
  156. package/dist/releasesSlice/thunks.js.map +1 -1
  157. package/dist/selectors-1394DVvN.d.ts +712 -0
  158. package/dist/selectors-Ba9LUr_0.d.ts +593 -0
  159. package/dist/selectors-CAo0fzIZ.d.ts +99 -0
  160. package/dist/selectors-CH-yXu-7.d.cts +84 -0
  161. package/dist/selectors-CQYkG1VI.d.cts +9 -0
  162. package/dist/selectors-D9t4It2i.d.ts +84 -0
  163. package/dist/selectors-DDsFLtxz.d.cts +712 -0
  164. package/dist/selectors-DFSv4A_m.d.ts +378 -0
  165. package/dist/selectors-DQKg681M.d.ts +363 -0
  166. package/dist/selectors-DeqP_VLU.d.cts +593 -0
  167. package/dist/selectors-LhR8TyWU.d.cts +378 -0
  168. package/dist/selectors-XzNyGFJI.d.cts +99 -0
  169. package/dist/selectors-aLOjKkxN.d.cts +14 -0
  170. package/dist/selectors-elCimAHX.d.ts +9 -0
  171. package/dist/selectors-jusUdUdc.d.cts +363 -0
  172. package/dist/selectors-vk0GUGHf.d.ts +14 -0
  173. package/dist/selectors.d.cts +9 -9
  174. package/dist/selectors.d.ts +9 -9
  175. package/dist/sockethook.cjs +4 -4
  176. package/dist/sockethook.cjs.map +1 -1
  177. package/dist/sockethook.js +2 -1
  178. package/dist/sockethook.js.map +1 -1
  179. package/dist/{store-Dw8Uo_Df.d.cts → store-CCvk8X-k.d.cts} +14 -33
  180. package/dist/{store-DLp6ajT8.d.ts → store-v5V-bbB_.d.ts} +15 -34
  181. package/dist/store.cjs +2 -4
  182. package/dist/store.cjs.map +1 -1
  183. package/dist/store.d.cts +2 -2
  184. package/dist/store.d.ts +2 -2
  185. package/dist/store.js +2 -4
  186. package/dist/store.js.map +1 -1
  187. package/dist/thunks.cjs +30 -38
  188. package/dist/thunks.cjs.map +1 -1
  189. package/dist/thunks.js +10 -17
  190. package/dist/thunks.js.map +1 -1
  191. package/dist/{types-DY0J79yF.d.ts → types-B2gphGj8.d.ts} +3 -3
  192. package/dist/{types-B67YW1jV.d.cts → types-CLASWtVP.d.cts} +3 -3
  193. package/dist/usersSlice/constants.cjs +1 -1
  194. package/dist/usersSlice/constants.js +1 -1
  195. package/dist/usersSlice/index.cjs +1 -1
  196. package/dist/usersSlice/index.d.cts +1 -1
  197. package/dist/usersSlice/index.d.ts +1 -1
  198. package/dist/usersSlice/index.js +1 -1
  199. package/dist/usersSlice/mocks.d.cts +1 -1
  200. package/dist/usersSlice/mocks.d.ts +1 -1
  201. package/dist/usersSlice/mocks.js +1 -1
  202. package/dist/usersSlice/selectors.cjs +3 -3
  203. package/dist/usersSlice/selectors.cjs.map +1 -1
  204. package/dist/usersSlice/selectors.d.cts +2 -466
  205. package/dist/usersSlice/selectors.d.ts +2 -466
  206. package/dist/usersSlice/selectors.js +2 -2
  207. package/dist/usersSlice/selectors.js.map +1 -1
  208. package/dist/usersSlice/thunks.d.cts +88 -88
  209. package/dist/usersSlice/thunks.d.ts +88 -88
  210. package/dist/utils.cjs +4 -6
  211. package/dist/utils.cjs.map +1 -1
  212. package/dist/utils.d.cts +1 -1
  213. package/dist/utils.d.ts +1 -1
  214. package/dist/utils.js +3 -4
  215. package/dist/utils.js.map +1 -1
  216. package/package.json +1 -1
  217. package/dist/constants-BJuY-ODE.d.ts +0 -124
  218. package/dist/constants-C2O55iZu.d.cts +0 -124
  219. package/dist/constants-D5hACLhF.js.map +0 -1
  220. package/dist/constants-MVizYy89.cjs.map +0 -1
  221. package/dist/storehooks.cjs +0 -249
  222. package/dist/storehooks.cjs.map +0 -1
  223. package/dist/storehooks.d.cts +0 -49
  224. package/dist/storehooks.d.ts +0 -49
  225. package/dist/storehooks.js +0 -241
  226. package/dist/storehooks.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { n as SearchState } from "../index-xxqlerg5.js";
2
- import { r as RootState, t as AppDispatch } from "../store-DLp6ajT8.js";
1
+ import { n as SearchState } from "../index-CThE5Gfh.js";
2
+ import { i as RootState, t as AppDispatch } from "../store-v5V-bbB_.js";
3
3
  //#region src/appSlice/thunks.d.ts
4
4
  export declare const setFirstLoginAfterSignup: import("@reduxjs/toolkit").AsyncThunk<void, boolean, {
5
5
  dispatch: AppDispatch;
package/dist/auth.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
3
- const require_constants = require("./constants-MVizYy89.cjs");
3
+ const require_constants = require("./constants-DsOnY5o5.cjs");
4
+ let _northern_tech_utils_constants = require("@northern.tech/utils/constants");
4
5
  let universal_cookie = require("universal-cookie");
5
6
  universal_cookie = require_rolldown_runtime.__toESM(universal_cookie, 1);
6
- let _northern_tech_utils_constants = require("@northern.tech/utils/constants");
7
7
  //#region src/auth.ts
8
8
  const cookies = new universal_cookie.default();
9
9
  const emptySession = Object.freeze({
@@ -54,7 +54,7 @@ const updateMaxAge = ({ expiresAt, token }) => {
54
54
  const oAuthExpiration = Number(window.localStorage.getItem("oauth"));
55
55
  let updateWithOAuth = false;
56
56
  if (oAuthExpiration) {
57
- updateWithOAuth = oAuthExpiration <= Date.now() + _northern_tech_utils_constants.maxSessionAge * require_constants.TIMEOUTS.oneSecond;
57
+ updateWithOAuth = oAuthExpiration <= Date.now() + _northern_tech_utils_constants.maxSessionAge * _northern_tech_utils_constants.TIMEOUTS.oneSecond;
58
58
  if (updateWithOAuth) window.localStorage.removeItem("oauth");
59
59
  }
60
60
  if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {
package/dist/auth.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.cjs","names":["Cookies","settingsKeys","maxSessionAge","TIMEOUTS"],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge, settingsKeys } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n window.localStorage.removeItem(settingsKeys.colorScheme);\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;;;;;AAkBA,MAAM,UAAU,IAAIA,iBAAAA,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;CACtC,OAAO,aAAa,WAAWC,kBAAAA,aAAa,WAAW;AACzD;AAEA,MAAa,gBAAgB,EAAE,WAAW,YAAY;CACpD,MAAM,kBAAkB,OAAO,OAAO,aAAa,QAAQ,OAAO,CAAC;CACnE,IAAI,kBAAkB;CACtB,IAAI,iBAAiB;EAEnB,kBAAkB,mBADL,KAAK,IAAI,IAAIC,+BAAAA,gBAAgBC,kBAAAA,SAAS;EAEnD,IAAI,iBACF,OAAO,aAAa,WAAW,OAAO;CAE1C;CACA,IAAI,SAAS,cAAc,CAAC,mBAAmB,kBAAkB;EAC/D,MAAM,6BAAa,IAAI,KAAK;EAC5B,WAAW,WAAW,WAAW,WAAW,IAAID,+BAAAA,aAAa;EAC7D,eAAe;GAAE;GAAO,WAAW,WAAW,YAAY;EAAE,CAAC;CAC/D;AACF"}
1
+ {"version":3,"file":"auth.cjs","names":["Cookies","settingsKeys","maxSessionAge","TIMEOUTS"],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { TIMEOUTS } from '@northern.tech/utils/constants';\nimport Cookies from 'universal-cookie';\n\nimport { maxSessionAge, settingsKeys } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n window.localStorage.removeItem(settingsKeys.colorScheme);\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;;;;;AAmBA,MAAM,UAAU,IAAIA,iBAAAA,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;CACtC,OAAO,aAAa,WAAWC,kBAAAA,aAAa,WAAW;AACzD;AAEA,MAAa,gBAAgB,EAAE,WAAW,YAAY;CACpD,MAAM,kBAAkB,OAAO,OAAO,aAAa,QAAQ,OAAO,CAAC;CACnE,IAAI,kBAAkB;CACtB,IAAI,iBAAiB;EAEnB,kBAAkB,mBADL,KAAK,IAAI,IAAIC,+BAAAA,gBAAgBC,+BAAAA,SAAS;EAEnD,IAAI,iBACF,OAAO,aAAa,WAAW,OAAO;CAE1C;CACA,IAAI,SAAS,cAAc,CAAC,mBAAmB,kBAAkB;EAC/D,MAAM,6BAAa,IAAI,KAAK;EAC5B,WAAW,WAAW,WAAW,WAAW,IAAID,+BAAAA,aAAa;EAC7D,eAAe;GAAE;GAAO,WAAW,WAAW,YAAY;EAAE,CAAC;CAC/D;AACF"}
package/dist/auth.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as UserSession } from "./index-CqhXqGLt.cjs";
1
+ import { i as UserSession } from "./index-DNYeo7wc.cjs";
2
2
  //#region src/auth.d.ts
3
3
  export declare const getSessionInfo: () => UserSession;
4
4
  export declare const getToken: () => string;
package/dist/auth.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as UserSession } from "./index--SKVGToc.js";
1
+ import { i as UserSession } from "./index-C1vNDCYR.js";
2
2
  //#region src/auth.d.ts
3
3
  export declare const getSessionInfo: () => UserSession;
4
4
  export declare const getToken: () => string;
package/dist/auth.js CHANGED
@@ -1,4 +1,5 @@
1
- import { M as maxSessionAge, Pt as TIMEOUTS, Q as settingsKeys } from "./constants-D5hACLhF.js";
1
+ import { M as maxSessionAge, Q as settingsKeys } from "./constants-DjiC_FnZ.js";
2
+ import { TIMEOUTS } from "@northern.tech/utils/constants";
2
3
  import Cookies from "universal-cookie";
3
4
  //#region src/auth.ts
4
5
  const cookies = new Cookies();
package/dist/auth.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge, settingsKeys } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n window.localStorage.removeItem(settingsKeys.colorScheme);\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;AAkBA,MAAM,UAAU,IAAI,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;CACtC,OAAO,aAAa,WAAW,aAAa,WAAW;AACzD;AAEA,MAAa,gBAAgB,EAAE,WAAW,YAAY;CACpD,MAAM,kBAAkB,OAAO,OAAO,aAAa,QAAQ,OAAO,CAAC;CACnE,IAAI,kBAAkB;CACtB,IAAI,iBAAiB;EAEnB,kBAAkB,mBADL,KAAK,IAAI,IAAI,gBAAgB,SAAS;EAEnD,IAAI,iBACF,OAAO,aAAa,WAAW,OAAO;CAE1C;CACA,IAAI,SAAS,cAAc,CAAC,mBAAmB,kBAAkB;EAC/D,MAAM,6BAAa,IAAI,KAAK;EAC5B,WAAW,WAAW,WAAW,WAAW,IAAI,aAAa;EAC7D,eAAe;GAAE;GAAO,WAAW,WAAW,YAAY;EAAE,CAAC;CAC/D;AACF"}
1
+ {"version":3,"file":"auth.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { TIMEOUTS } from '@northern.tech/utils/constants';\nimport Cookies from 'universal-cookie';\n\nimport { maxSessionAge, settingsKeys } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n window.localStorage.removeItem(settingsKeys.colorScheme);\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;;AAmBA,MAAM,UAAU,IAAI,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;CACtC,OAAO,aAAa,WAAW,aAAa,WAAW;AACzD;AAEA,MAAa,gBAAgB,EAAE,WAAW,YAAY;CACpD,MAAM,kBAAkB,OAAO,OAAO,aAAa,QAAQ,OAAO,CAAC;CACnE,IAAI,kBAAkB;CACtB,IAAI,iBAAiB;EAEnB,kBAAkB,mBADL,KAAK,IAAI,IAAI,gBAAgB,SAAS;EAEnD,IAAI,iBACF,OAAO,aAAa,WAAW,OAAO;CAE1C;CACA,IAAI,SAAS,cAAc,CAAC,mBAAmB,kBAAkB;EAC/D,MAAM,6BAAa,IAAI,KAAK;EAC5B,WAAW,WAAW,WAAW,WAAW,IAAI,aAAa;EAC7D,eAAe;GAAE;GAAO,WAAW,WAAW,YAAY;EAAE,CAAC;CAC/D;AACF"}
@@ -1,14 +1,15 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_constants = require("./constants-MVizYy89.cjs");
2
+ const require_constants = require("./constants-DsOnY5o5.cjs");
3
+ let _northern_tech_utils_constants = require("@northern.tech/utils/constants");
3
4
  exports.ATTRIBUTE_SCOPE_LABELS = require_constants.ATTRIBUTE_SCOPE_LABELS;
4
5
  exports.DEVICE_LIST_MAXIMUM_LENGTH = require_constants.DEVICE_LIST_MAXIMUM_LENGTH;
5
6
  exports.DEVICE_ONLINE_CUTOFF = require_constants.DEVICE_ONLINE_CUTOFF;
6
7
  exports.EXTERNAL_PROVIDER = require_constants.EXTERNAL_PROVIDER;
7
8
  exports.MAX_PAGE_SIZE = require_constants.MAX_PAGE_SIZE;
8
9
  exports.ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX = require_constants.ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX;
9
- exports.TIMEOUTS = require_constants.TIMEOUTS;
10
+ exports.TIMEOUTS = _northern_tech_utils_constants.TIMEOUTS;
10
11
  exports.UNGROUPED_GROUP = require_constants.UNGROUPED_GROUP;
11
- exports.countries = require_constants.countries;
12
+ exports.countries = _northern_tech_utils_constants.countries;
12
13
  exports.credentialTypes = require_constants.credentialTypes;
13
14
  exports.defaultIdAttribute = require_constants.defaultIdAttribute;
14
15
  exports.emptyWebhook = require_constants.emptyWebhook;
@@ -1,2 +1,2 @@
1
- import { At as countries, Ct as FilterOperator, Dt as TIMEOUTS, Et as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ft as timeUnits, Mt as defaultIdAttribute, Nt as emptyWebhook, Ot as UNGROUPED_GROUP, Pt as productOrder, St as EXTERNAL_PROVIDER, Tt as MAX_PAGE_SIZE, bt as DEVICE_LIST_MAXIMUM_LENGTH, jt as credentialTypes, kt as Webhook, wt as IdAttribute, xt as DEVICE_ONLINE_CUTOFF, yt as ATTRIBUTE_SCOPE_LABELS } from "./constants-C2O55iZu.cjs";
2
- export { ATTRIBUTE_SCOPE_LABELS, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_ONLINE_CUTOFF, EXTERNAL_PROVIDER, FilterOperator, IdAttribute, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, TIMEOUTS, UNGROUPED_GROUP, Webhook, countries, credentialTypes, defaultIdAttribute, emptyWebhook, productOrder, timeUnits };
1
+ import { At as Webhook, Ct as EXTERNAL_PROVIDER, Dt as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Et as MAX_PAGE_SIZE, Ft as productOrder, It as timeUnits, Mt as credentialTypes, Nt as defaultIdAttribute, Ot as TIMEOUTS, Pt as emptyWebhook, St as DEVICE_ONLINE_CUTOFF, Tt as IdAttribute, bt as CountryType, jt as countries, kt as UNGROUPED_GROUP, wt as FilterOperator, xt as DEVICE_LIST_MAXIMUM_LENGTH, yt as ATTRIBUTE_SCOPE_LABELS } from "./constants-CUwYPOYK.cjs";
2
+ export { ATTRIBUTE_SCOPE_LABELS, type CountryType, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_ONLINE_CUTOFF, EXTERNAL_PROVIDER, FilterOperator, IdAttribute, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, TIMEOUTS, UNGROUPED_GROUP, Webhook, countries, credentialTypes, defaultIdAttribute, emptyWebhook, productOrder, timeUnits };
@@ -1,2 +1,2 @@
1
- import { At as countries, Ct as FilterOperator, Dt as TIMEOUTS, Et as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ft as timeUnits, Mt as defaultIdAttribute, Nt as emptyWebhook, Ot as UNGROUPED_GROUP, Pt as productOrder, St as EXTERNAL_PROVIDER, Tt as MAX_PAGE_SIZE, bt as DEVICE_LIST_MAXIMUM_LENGTH, jt as credentialTypes, kt as Webhook, wt as IdAttribute, xt as DEVICE_ONLINE_CUTOFF, yt as ATTRIBUTE_SCOPE_LABELS } from "./constants-BJuY-ODE.js";
2
- export { ATTRIBUTE_SCOPE_LABELS, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_ONLINE_CUTOFF, EXTERNAL_PROVIDER, FilterOperator, IdAttribute, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, TIMEOUTS, UNGROUPED_GROUP, Webhook, countries, credentialTypes, defaultIdAttribute, emptyWebhook, productOrder, timeUnits };
1
+ import { At as Webhook, Ct as EXTERNAL_PROVIDER, Dt as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Et as MAX_PAGE_SIZE, Ft as productOrder, It as timeUnits, Mt as credentialTypes, Nt as defaultIdAttribute, Ot as TIMEOUTS, Pt as emptyWebhook, St as DEVICE_ONLINE_CUTOFF, Tt as IdAttribute, bt as CountryType, jt as countries, kt as UNGROUPED_GROUP, wt as FilterOperator, xt as DEVICE_LIST_MAXIMUM_LENGTH, yt as ATTRIBUTE_SCOPE_LABELS } from "./constants-CCkKh9KM.js";
2
+ export { ATTRIBUTE_SCOPE_LABELS, type CountryType, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_ONLINE_CUTOFF, EXTERNAL_PROVIDER, FilterOperator, IdAttribute, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, TIMEOUTS, UNGROUPED_GROUP, Webhook, countries, credentialTypes, defaultIdAttribute, emptyWebhook, productOrder, timeUnits };
@@ -1,2 +1,2 @@
1
- import { At as DEVICE_ONLINE_CUTOFF, Bt as productOrder, Ft as UNGROUPED_GROUP, It as countries, Lt as credentialTypes, Mt as MAX_PAGE_SIZE, Nt as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ot as ATTRIBUTE_SCOPE_LABELS, Pt as TIMEOUTS, Rt as defaultIdAttribute, Vt as timeUnits, jt as EXTERNAL_PROVIDER, kt as DEVICE_LIST_MAXIMUM_LENGTH, zt as emptyWebhook } from "./constants-D5hACLhF.js";
1
+ import { At as DEVICE_ONLINE_CUTOFF, Bt as productOrder, Ft as UNGROUPED_GROUP, It as countries, Lt as credentialTypes, Mt as MAX_PAGE_SIZE, Nt as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ot as ATTRIBUTE_SCOPE_LABELS, Pt as TIMEOUTS, Rt as defaultIdAttribute, Vt as timeUnits, jt as EXTERNAL_PROVIDER, kt as DEVICE_LIST_MAXIMUM_LENGTH, zt as emptyWebhook } from "./constants-DjiC_FnZ.js";
2
2
  export { ATTRIBUTE_SCOPE_LABELS, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_ONLINE_CUTOFF, EXTERNAL_PROVIDER, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, TIMEOUTS, UNGROUPED_GROUP, countries, credentialTypes, defaultIdAttribute, emptyWebhook, productOrder, timeUnits };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
3
3
  const require_appSlice_constants = require("./appSlice/constants.cjs");
4
- const require_constants = require("./constants-MVizYy89.cjs");
4
+ const require_constants = require("./constants-DsOnY5o5.cjs");
5
5
  const require_onboardingSlice_constants = require("./onboardingSlice/constants.cjs");
6
6
  const require_appSlice_selectors = require("./appSlice/selectors.cjs");
7
7
  const require_deploymentsSlice_selectors = require("./deploymentsSlice/selectors.cjs");