@northern.tech/store 0.25.0 → 0.26.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 (67) hide show
  1. package/dist/actions.cjs +0 -4
  2. package/dist/actions.cjs.map +1 -1
  3. package/dist/actions.d.cts +0 -1
  4. package/dist/actions.d.ts +0 -1
  5. package/dist/actions.js +2 -2
  6. package/dist/appSlice/thunks.cjs +1 -5
  7. package/dist/appSlice/thunks.cjs.map +1 -1
  8. package/dist/appSlice/thunks.js +6 -6
  9. package/dist/{chunk-CEO2PODV.js → chunk-634BQTKQ.js} +2 -2
  10. package/dist/{chunk-4NG7EGAG.js → chunk-CJZEPHH3.js} +1 -5
  11. package/dist/chunk-CJZEPHH3.js.map +1 -0
  12. package/dist/{chunk-WTVM2QSK.js → chunk-EHB6JIGL.js} +3 -3
  13. package/dist/{chunk-5AYPT3F5.js → chunk-JBVVWAWD.js} +3 -3
  14. package/dist/{chunk-F77BXZXX.js → chunk-WJMPMJEK.js} +6 -6
  15. package/dist/{chunk-F77BXZXX.js.map → chunk-WJMPMJEK.js.map} +1 -1
  16. package/dist/{chunk-JJDXPFDG.js → chunk-ZEI4FHIT.js} +3 -3
  17. package/dist/deploymentsSlice/thunks.cjs +1 -5
  18. package/dist/deploymentsSlice/thunks.cjs.map +1 -1
  19. package/dist/deploymentsSlice/thunks.js +6 -6
  20. package/dist/devicesSlice/thunks.cjs +1 -5
  21. package/dist/devicesSlice/thunks.cjs.map +1 -1
  22. package/dist/devicesSlice/thunks.js +6 -6
  23. package/dist/monitorSlice/thunks.cjs +0 -4
  24. package/dist/monitorSlice/thunks.cjs.map +1 -1
  25. package/dist/monitorSlice/thunks.js +4 -4
  26. package/dist/onboardingSlice/thunks.cjs +1 -5
  27. package/dist/onboardingSlice/thunks.cjs.map +1 -1
  28. package/dist/onboardingSlice/thunks.js +6 -6
  29. package/dist/organizationSlice/thunks.cjs +1 -5
  30. package/dist/organizationSlice/thunks.cjs.map +1 -1
  31. package/dist/organizationSlice/thunks.js +6 -6
  32. package/dist/releasesSlice/thunks.cjs +0 -4
  33. package/dist/releasesSlice/thunks.cjs.map +1 -1
  34. package/dist/releasesSlice/thunks.js +4 -4
  35. package/dist/store.cjs +0 -4
  36. package/dist/store.cjs.map +1 -1
  37. package/dist/store.js +3 -3
  38. package/dist/storehooks.cjs +1 -5
  39. package/dist/storehooks.cjs.map +1 -1
  40. package/dist/storehooks.js +6 -6
  41. package/dist/thunks.cjs +1 -5
  42. package/dist/thunks.cjs.map +1 -1
  43. package/dist/thunks.js +6 -6
  44. package/dist/useDeploymentDevice.cjs +1 -5
  45. package/dist/useDeploymentDevice.cjs.map +1 -1
  46. package/dist/useDeploymentDevice.js +6 -6
  47. package/dist/usersSlice/index.cjs +0 -4
  48. package/dist/usersSlice/index.cjs.map +1 -1
  49. package/dist/usersSlice/index.d.cts +0 -3
  50. package/dist/usersSlice/index.d.ts +0 -3
  51. package/dist/usersSlice/index.js +1 -1
  52. package/dist/usersSlice/mocks.cjs +0 -4
  53. package/dist/usersSlice/mocks.cjs.map +1 -1
  54. package/dist/usersSlice/mocks.d.cts +0 -1
  55. package/dist/usersSlice/mocks.d.ts +0 -1
  56. package/dist/usersSlice/mocks.js +1 -1
  57. package/dist/usersSlice/thunks.cjs +1 -5
  58. package/dist/usersSlice/thunks.cjs.map +1 -1
  59. package/dist/usersSlice/thunks.d.cts +1 -4
  60. package/dist/usersSlice/thunks.d.ts +1 -4
  61. package/dist/usersSlice/thunks.js +6 -6
  62. package/package.json +1 -1
  63. package/dist/chunk-4NG7EGAG.js.map +0 -1
  64. /package/dist/{chunk-CEO2PODV.js.map → chunk-634BQTKQ.js.map} +0 -0
  65. /package/dist/{chunk-WTVM2QSK.js.map → chunk-EHB6JIGL.js.map} +0 -0
  66. /package/dist/{chunk-5AYPT3F5.js.map → chunk-JBVVWAWD.js.map} +0 -0
  67. /package/dist/{chunk-JJDXPFDG.js.map → chunk-ZEI4FHIT.js.map} +0 -0
@@ -3,15 +3,15 @@ import {
3
3
  setFirstLoginAfterSignup,
4
4
  setOfflineThreshold,
5
5
  setSearchState
6
- } from "../chunk-F77BXZXX.js";
7
- import "../chunk-5AYPT3F5.js";
8
- import "../chunk-JJDXPFDG.js";
9
- import "../chunk-WTVM2QSK.js";
6
+ } from "../chunk-WJMPMJEK.js";
7
+ import "../chunk-JBVVWAWD.js";
8
+ import "../chunk-ZEI4FHIT.js";
9
+ import "../chunk-EHB6JIGL.js";
10
10
  import "../chunk-3IXBQAMO.js";
11
11
  import "../chunk-6NLGT2LD.js";
12
- import "../chunk-CEO2PODV.js";
12
+ import "../chunk-634BQTKQ.js";
13
13
  import "../chunk-NRHTBY6E.js";
14
- import "../chunk-4NG7EGAG.js";
14
+ import "../chunk-CJZEPHH3.js";
15
15
  import "../chunk-IJ6KKUA2.js";
16
16
  import "../chunk-NYDBCHD7.js";
17
17
  import "../chunk-CQXDAXQF.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-NRHTBY6E.js";
4
4
  import {
5
5
  actions as actions8
6
- } from "./chunk-4NG7EGAG.js";
6
+ } from "./chunk-CJZEPHH3.js";
7
7
  import {
8
8
  actions as actions6
9
9
  } from "./chunk-IJ6KKUA2.js";
@@ -38,4 +38,4 @@ var actions_default = {
38
38
  export {
39
39
  actions_default
40
40
  };
41
- //# sourceMappingURL=chunk-CEO2PODV.js.map
41
+ //# sourceMappingURL=chunk-634BQTKQ.js.map
@@ -8,7 +8,6 @@ import {
8
8
  import { createSlice } from "@reduxjs/toolkit";
9
9
  var sliceName = "users";
10
10
  var initialState = {
11
- activationCode: void 0,
12
11
  byId: {},
13
12
  currentUser: null,
14
13
  currentSession: {
@@ -59,9 +58,6 @@ var usersSlice = createSlice({
59
58
  receivedUserList: (state, action) => {
60
59
  state.byId = action.payload;
61
60
  },
62
- receivedActivationCode: (state, action) => {
63
- state.activationCode = action.payload;
64
- },
65
61
  receivedUser: (state, action) => {
66
62
  state.byId[action.payload.id] = action.payload;
67
63
  state.currentUser = action.payload.id;
@@ -145,4 +141,4 @@ export {
145
141
  actions,
146
142
  usersSlice_default
147
143
  };
148
- //# sourceMappingURL=chunk-4NG7EGAG.js.map
144
+ //# sourceMappingURL=chunk-CJZEPHH3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/usersSlice/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 { User as BackendUser, DeploymentPhase, TenantInfo, TenantsIdName } from '@northern.tech/types/MenderTypes';\nimport type { PayloadAction } from '@reduxjs/toolkit';\nimport { createSlice } from '@reduxjs/toolkit';\n\nimport type { FilterOperator, PermissionSet, Role } from '../constants';\nimport { defaultPermissionSets, rolesById } from '../constants';\nimport type { ReadState } from './constants';\nimport { READ_STATES } from './constants';\n\nexport const sliceName = 'users';\nexport type User = BackendUser & TenantInfo & { tenants?: TenantsIdName };\nexport type UserSession = {\n expiresAt?: string;\n token: string;\n};\nexport type CustomColumn = {\n attribute: {\n name: string;\n scope: string;\n };\n size: number;\n};\n\ntype FilterOption = {\n key: string;\n operator: FilterOperator;\n scope: string;\n value: string;\n};\nexport type GlobalSettings = {\n [x: string]: any;\n id_attribute?: {\n attribute: string;\n scope: string;\n };\n previousFilters: FilterOption[];\n previousPhases: DeploymentPhase[][];\n retries: number;\n};\ntype Column = {\n id: string;\n key: string;\n name: string;\n scope: string;\n title: string;\n};\nexport type UserSettings = {\n [x: string]: any;\n columnSelection: Column[];\n feedbackCollectedAt?: string;\n firstLoginTimestamp: null | string;\n mode?: 'light' | 'dark';\n onboarding: Partial<{\n address: string;\n approach: 'physical' | 'virtual' | 'mcu' | null;\n complete: boolean;\n demoArtifactPort: number;\n deviceType: string[] | string;\n progress: string;\n showTips: null | boolean;\n showTipsDialog: boolean;\n }>;\n securityAlertDismissedTimestamp: null | string;\n tooltips?: object;\n trackingConsentGiven?: boolean;\n};\n\nexport type UserSliceType = {\n byId: Record<string, User>;\n currentSession?: UserSession | object;\n currentUser: string | null;\n customColumns: CustomColumn[];\n globalSettings: GlobalSettings;\n permissionSetsById: Record<string, PermissionSet>;\n qrCode: string | null;\n rolesById: Record<string, Role>;\n rolesInitialized: boolean;\n settingsInitialized: boolean;\n showConnectDeviceDialog: boolean;\n showFeedbackDialog: boolean;\n showStartupNotification: boolean;\n tooltips: {\n byId: Record<string, { readState: ReadState }>;\n };\n userSettings: UserSettings;\n userSettingsInitialized: boolean;\n};\n\nexport const initialState: UserSliceType = {\n byId: {},\n currentUser: null,\n currentSession: {\n // { token: window.localStorage.getItem('JWT'), expiresAt: '2023-01-01T00:15:00.000Z' | undefined }, // expiresAt depending on the stay logged in setting\n },\n customColumns: [],\n qrCode: null,\n globalSettings: {\n id_attribute: undefined,\n previousFilters: [],\n previousPhases: [],\n retries: 0\n },\n permissionSetsById: {\n ...defaultPermissionSets\n },\n rolesById: {\n ...rolesById\n },\n rolesInitialized: false,\n settingsInitialized: false,\n showConnectDeviceDialog: false,\n showFeedbackDialog: false,\n showStartupNotification: false,\n tooltips: {\n byId: {\n // <id>: { readState: <read|unread> } // this object is getting enhanced by the tooltip texts in the app constants\n }\n },\n userSettings: {\n columnSelection: [],\n onboarding: {},\n firstLoginTimestamp: null,\n securityAlertDismissedTimestamp: null\n },\n userSettingsInitialized: false\n};\n\nexport const usersSlice = createSlice({\n name: sliceName,\n initialState,\n reducers: {\n receivedQrCode: (state, action: PayloadAction<string | null>) => {\n state.qrCode = action.payload;\n },\n successfullyLoggedIn: (state, action: PayloadAction<UserSession>) => {\n state.currentSession = action.payload;\n },\n receivedUserList: (state, action: PayloadAction<Record<string, User>>) => {\n state.byId = action.payload;\n },\n receivedUser: (state, action: PayloadAction<User>) => {\n state.byId[action.payload.id] = action.payload;\n state.currentUser = action.payload.id;\n },\n removedUser: (state, action: PayloadAction<string>) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: removedUser, ...byId } = state.byId;\n state.byId = byId;\n state.currentUser = state.currentUser === action.payload ? null : state.currentUser;\n },\n updatedUser: (state, action: PayloadAction<Partial<User> & { id: string }>) => {\n state.byId[action.payload.id] = {\n ...state.byId[action.payload.id],\n ...action.payload\n };\n },\n receivedPermissionSets: (state, action: PayloadAction<Record<string, PermissionSet>>) => {\n state.permissionSetsById = action.payload;\n },\n receivedRoles: (state, action: PayloadAction<Record<string, Role>>) => {\n state.rolesById = action.payload;\n state.rolesInitialized = true;\n },\n finishedRoleInitialization: (state, action) => {\n state.rolesInitialized = action.payload;\n },\n createdRole: (state, action: PayloadAction<Role>) => {\n state.rolesById[action.payload.name] = {\n ...state.rolesById[action.payload.name],\n ...action.payload\n };\n },\n removedRole: (state, action: PayloadAction<string>) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [action.payload]: toBeRemoved, ...rolesById } = state.rolesById;\n state.rolesById = rolesById;\n },\n setCustomColumns: (state, action: PayloadAction<CustomColumn[]>) => {\n state.customColumns = action.payload;\n },\n setGlobalSettings: (state, action: PayloadAction<GlobalSettings>) => {\n state.settingsInitialized = true;\n state.globalSettings = {\n ...state.globalSettings,\n ...action.payload\n };\n },\n setUserSettings: (state, action: PayloadAction<UserSettings>) => {\n state.userSettingsInitialized = true;\n state.userSettings = {\n ...state.userSettings,\n ...action.payload\n };\n },\n setTooltipState: (state, action: PayloadAction<{ id: string; readState: ReadState }>) => {\n const { id, readState = READ_STATES.read } = action.payload;\n state.tooltips.byId[id] = { ...state.tooltips.byId[id], readState };\n },\n setTooltipsState: (state, action: PayloadAction<UserSliceType['tooltips']['byId']>) => {\n state.tooltips.byId = {\n ...state.tooltips.byId,\n ...action.payload\n };\n },\n setShowFeedbackDialog: (state, action: PayloadAction<boolean>) => {\n state.showFeedbackDialog = action.payload;\n },\n setShowConnectingDialog: (state, action: PayloadAction<boolean>) => {\n state.showConnectDeviceDialog = action.payload;\n },\n setShowStartupNotification: (state, action: PayloadAction<boolean>) => {\n state.showStartupNotification = action.payload;\n }\n }\n});\n\nexport const actions = usersSlice.actions;\nexport default usersSlice.reducer;\n"],"mappings":"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","names":["rolesById"]}
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  actions_default
3
- } from "./chunk-CEO2PODV.js";
3
+ } from "./chunk-634BQTKQ.js";
4
4
  import {
5
5
  releasesSlice_default
6
6
  } from "./chunk-NRHTBY6E.js";
7
7
  import {
8
8
  actions as actions2,
9
9
  usersSlice_default
10
- } from "./chunk-4NG7EGAG.js";
10
+ } from "./chunk-CJZEPHH3.js";
11
11
  import {
12
12
  actions,
13
13
  organizationSlice_default
@@ -139,4 +139,4 @@ export {
139
139
  useAppDispatch,
140
140
  createAppAsyncThunk
141
141
  };
142
- //# sourceMappingURL=chunk-WTVM2QSK.js.map
142
+ //# sourceMappingURL=chunk-EHB6JIGL.js.map
@@ -2,13 +2,13 @@ import {
2
2
  commonErrorFallback,
3
3
  commonErrorHandler,
4
4
  createAppAsyncThunk
5
- } from "./chunk-WTVM2QSK.js";
5
+ } from "./chunk-EHB6JIGL.js";
6
6
  import {
7
7
  general_api_default
8
8
  } from "./chunk-6NLGT2LD.js";
9
9
  import {
10
10
  actions_default
11
- } from "./chunk-CEO2PODV.js";
11
+ } from "./chunk-634BQTKQ.js";
12
12
  import {
13
13
  actions,
14
14
  sliceName
@@ -442,4 +442,4 @@ export {
442
442
  getDeltaGenerationJobs,
443
443
  getDeltaGenerationJobDetails
444
444
  };
445
- //# sourceMappingURL=chunk-5AYPT3F5.js.map
445
+ //# sourceMappingURL=chunk-JBVVWAWD.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getDeviceMonitorConfig,
3
3
  getLatestDeviceAlerts
4
- } from "./chunk-JJDXPFDG.js";
4
+ } from "./chunk-ZEI4FHIT.js";
5
5
  import {
6
6
  commonErrorFallback,
7
7
  commonErrorHandler,
8
8
  createAppAsyncThunk
9
- } from "./chunk-WTVM2QSK.js";
9
+ } from "./chunk-EHB6JIGL.js";
10
10
  import {
11
11
  users_api_default
12
12
  } from "./chunk-3IXBQAMO.js";
@@ -15,11 +15,11 @@ import {
15
15
  } from "./chunk-6NLGT2LD.js";
16
16
  import {
17
17
  actions_default
18
- } from "./chunk-CEO2PODV.js";
18
+ } from "./chunk-634BQTKQ.js";
19
19
  import {
20
20
  actions as actions6,
21
21
  sliceName as sliceName6
22
- } from "./chunk-4NG7EGAG.js";
22
+ } from "./chunk-CJZEPHH3.js";
23
23
  import {
24
24
  actions as actions5,
25
25
  sliceName as sliceName5
@@ -2060,7 +2060,7 @@ var verifyEmailStart = createAppAsyncThunk(
2060
2060
  );
2061
2061
  var verifyEmailComplete = createAppAsyncThunk(
2062
2062
  `${sliceName6}/verifyEmailComplete`,
2063
- (secret_hash, { dispatch }) => general_api_default.post(`${useradmApiUrl}/auth/verify-email/complete`, { secret_hash }).then(() => dispatch(actions6.receivedActivationCode(""))).catch((err) => commonErrorHandler(err, "An error occured completing the email verification process:", dispatch)).finally(() => Promise.resolve(dispatch(getUser(OWN_USER_ID))))
2063
+ (secret_hash, { dispatch, rejectWithValue }) => general_api_default.post(`${useradmApiUrl}/auth/verify-email/complete`, { secret_hash }).catch((err) => rejectWithValue({ status: err.response?.status, data: err.response?.data })).finally(() => Promise.resolve(dispatch(getUser(OWN_USER_ID))))
2064
2064
  );
2065
2065
  var verify2FA = createAppAsyncThunk(
2066
2066
  `${sliceName6}/verify2FA`,
@@ -2865,4 +2865,4 @@ export {
2865
2865
  setAllTooltipsReadState,
2866
2866
  submitUserFeedback
2867
2867
  };
2868
- //# sourceMappingURL=chunk-F77BXZXX.js.map
2868
+ //# sourceMappingURL=chunk-WJMPMJEK.js.map