@northern.tech/store 0.25.0 → 0.26.1

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 (74) 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 +4 -4
  6. package/dist/appSlice/thunks.cjs +1 -5
  7. package/dist/appSlice/thunks.cjs.map +1 -1
  8. package/dist/appSlice/thunks.js +10 -10
  9. package/dist/{chunk-F77BXZXX.js → chunk-5Z3UATPD.js} +28 -23
  10. package/dist/chunk-5Z3UATPD.js.map +1 -0
  11. package/dist/{chunk-CEO2PODV.js → chunk-6OZEBSRX.js} +6 -6
  12. package/dist/{chunk-4NG7EGAG.js → chunk-CJZEPHH3.js} +1 -5
  13. package/dist/chunk-CJZEPHH3.js.map +1 -0
  14. package/dist/{chunk-WTVM2QSK.js → chunk-DIUSRRVW.js} +7 -7
  15. package/dist/{chunk-PHYVVNDW.js → chunk-UTVFECIG.js} +6 -6
  16. package/dist/{chunk-5AYPT3F5.js → chunk-VMVUOCMF.js} +4 -4
  17. package/dist/{chunk-JJDXPFDG.js → chunk-YVHZD73Z.js} +4 -4
  18. package/dist/commonSelectors.js +2 -2
  19. package/dist/deploymentsSlice/thunks.cjs +1 -5
  20. package/dist/deploymentsSlice/thunks.cjs.map +1 -1
  21. package/dist/deploymentsSlice/thunks.js +10 -10
  22. package/dist/devicesSlice/thunks.cjs +1 -5
  23. package/dist/devicesSlice/thunks.cjs.map +1 -1
  24. package/dist/devicesSlice/thunks.js +10 -10
  25. package/dist/monitorSlice/thunks.cjs +0 -4
  26. package/dist/monitorSlice/thunks.cjs.map +1 -1
  27. package/dist/monitorSlice/thunks.js +8 -8
  28. package/dist/onboardingSlice/thunks.cjs +1 -5
  29. package/dist/onboardingSlice/thunks.cjs.map +1 -1
  30. package/dist/onboardingSlice/thunks.js +10 -10
  31. package/dist/organizationSlice/thunks.cjs +12 -11
  32. package/dist/organizationSlice/thunks.cjs.map +1 -1
  33. package/dist/organizationSlice/thunks.d.cts +3 -1
  34. package/dist/organizationSlice/thunks.d.ts +3 -1
  35. package/dist/organizationSlice/thunks.js +10 -10
  36. package/dist/releasesSlice/thunks.cjs +0 -4
  37. package/dist/releasesSlice/thunks.cjs.map +1 -1
  38. package/dist/releasesSlice/thunks.js +8 -8
  39. package/dist/selectors.js +11 -11
  40. package/dist/store.cjs +0 -4
  41. package/dist/store.cjs.map +1 -1
  42. package/dist/store.js +5 -5
  43. package/dist/storehooks.cjs +12 -11
  44. package/dist/storehooks.cjs.map +1 -1
  45. package/dist/storehooks.js +10 -10
  46. package/dist/thunks.cjs +12 -11
  47. package/dist/thunks.cjs.map +1 -1
  48. package/dist/thunks.js +10 -10
  49. package/dist/useDeploymentDevice.cjs +1 -5
  50. package/dist/useDeploymentDevice.cjs.map +1 -1
  51. package/dist/useDeploymentDevice.js +10 -10
  52. package/dist/usersSlice/index.cjs +0 -4
  53. package/dist/usersSlice/index.cjs.map +1 -1
  54. package/dist/usersSlice/index.d.cts +0 -3
  55. package/dist/usersSlice/index.d.ts +0 -3
  56. package/dist/usersSlice/index.js +1 -1
  57. package/dist/usersSlice/mocks.cjs +0 -4
  58. package/dist/usersSlice/mocks.cjs.map +1 -1
  59. package/dist/usersSlice/mocks.d.cts +0 -1
  60. package/dist/usersSlice/mocks.d.ts +0 -1
  61. package/dist/usersSlice/mocks.js +1 -1
  62. package/dist/usersSlice/thunks.cjs +1 -5
  63. package/dist/usersSlice/thunks.cjs.map +1 -1
  64. package/dist/usersSlice/thunks.d.cts +1 -4
  65. package/dist/usersSlice/thunks.d.ts +1 -4
  66. package/dist/usersSlice/thunks.js +10 -10
  67. package/package.json +1 -1
  68. package/dist/chunk-4NG7EGAG.js.map +0 -1
  69. package/dist/chunk-F77BXZXX.js.map +0 -1
  70. /package/dist/{chunk-CEO2PODV.js.map → chunk-6OZEBSRX.js.map} +0 -0
  71. /package/dist/{chunk-WTVM2QSK.js.map → chunk-DIUSRRVW.js.map} +0 -0
  72. /package/dist/{chunk-PHYVVNDW.js.map → chunk-UTVFECIG.js.map} +0 -0
  73. /package/dist/{chunk-5AYPT3F5.js.map → chunk-VMVUOCMF.js.map} +0 -0
  74. /package/dist/{chunk-JJDXPFDG.js.map → chunk-YVHZD73Z.js.map} +0 -0
@@ -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";
@@ -14,14 +14,14 @@ import {
14
14
  actions as actions5
15
15
  } from "./chunk-CQXDAXQF.js";
16
16
  import {
17
- actions as actions3
18
- } from "./chunk-GLIQTGWN.js";
17
+ actions as actions2
18
+ } from "./chunk-F2ADELYA.js";
19
19
  import {
20
20
  actions
21
21
  } from "./chunk-JKLFEHCF.js";
22
22
  import {
23
- actions as actions2
24
- } from "./chunk-F2ADELYA.js";
23
+ actions as actions3
24
+ } from "./chunk-GLIQTGWN.js";
25
25
 
26
26
  // src/actions.ts
27
27
  var actions_default = {
@@ -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-6OZEBSRX.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-6OZEBSRX.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
@@ -19,14 +19,14 @@ import {
19
19
  onboardingSlice_default
20
20
  } from "./chunk-CQXDAXQF.js";
21
21
  import {
22
- devicesSlice_default
23
- } from "./chunk-GLIQTGWN.js";
22
+ deploymentsSlice_default
23
+ } from "./chunk-F2ADELYA.js";
24
24
  import {
25
25
  appSlice_default
26
26
  } from "./chunk-JKLFEHCF.js";
27
27
  import {
28
- deploymentsSlice_default
29
- } from "./chunk-F2ADELYA.js";
28
+ devicesSlice_default
29
+ } from "./chunk-GLIQTGWN.js";
30
30
  import {
31
31
  getToken
32
32
  } from "./chunk-WKXBJVZ7.js";
@@ -139,4 +139,4 @@ export {
139
139
  useAppDispatch,
140
140
  createAppAsyncThunk
141
141
  };
142
- //# sourceMappingURL=chunk-WTVM2QSK.js.map
142
+ //# sourceMappingURL=chunk-DIUSRRVW.js.map
@@ -22,11 +22,6 @@ import {
22
22
  import {
23
23
  getOnboarding
24
24
  } from "./chunk-JIS4PA3R.js";
25
- import {
26
- getDeploymentsById,
27
- getDeploymentsSelectionState,
28
- getSelectedDeploymentDeviceIds
29
- } from "./chunk-CXRORJR5.js";
30
25
  import {
31
26
  getDeviceById,
32
27
  getDevicesById,
@@ -34,6 +29,11 @@ import {
34
29
  getGroupsById,
35
30
  getListedDevices
36
31
  } from "./chunk-2AGBXDGF.js";
32
+ import {
33
+ getDeploymentsById,
34
+ getDeploymentsSelectionState,
35
+ getSelectedDeploymentDeviceIds
36
+ } from "./chunk-CXRORJR5.js";
37
37
  import {
38
38
  getFeatures,
39
39
  getSearchedDevices
@@ -310,4 +310,4 @@ export {
310
310
  getRelevantRoles,
311
311
  getShowSecurityAlert
312
312
  };
313
- //# sourceMappingURL=chunk-PHYVVNDW.js.map
313
+ //# sourceMappingURL=chunk-UTVFECIG.js.map
@@ -2,13 +2,13 @@ import {
2
2
  commonErrorFallback,
3
3
  commonErrorHandler,
4
4
  createAppAsyncThunk
5
- } from "./chunk-WTVM2QSK.js";
5
+ } from "./chunk-DIUSRRVW.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-6OZEBSRX.js";
12
12
  import {
13
13
  actions,
14
14
  sliceName
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-X4TGUR22.js";
19
19
  import {
20
20
  getSearchEndpoint
21
- } from "./chunk-PHYVVNDW.js";
21
+ } from "./chunk-UTVFECIG.js";
22
22
  import {
23
23
  getReleasesById
24
24
  } from "./chunk-E2X525PA.js";
@@ -442,4 +442,4 @@ export {
442
442
  getDeltaGenerationJobs,
443
443
  getDeltaGenerationJobDetails
444
444
  };
445
- //# sourceMappingURL=chunk-5AYPT3F5.js.map
445
+ //# sourceMappingURL=chunk-VMVUOCMF.js.map
@@ -2,20 +2,20 @@ import {
2
2
  commonErrorFallback,
3
3
  commonErrorHandler,
4
4
  createAppAsyncThunk
5
- } from "./chunk-WTVM2QSK.js";
5
+ } from "./chunk-DIUSRRVW.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-6OZEBSRX.js";
12
12
  import {
13
13
  actions,
14
14
  sliceName
15
15
  } from "./chunk-NYDBCHD7.js";
16
16
  import {
17
17
  getSearchEndpoint
18
- } from "./chunk-PHYVVNDW.js";
18
+ } from "./chunk-UTVFECIG.js";
19
19
  import {
20
20
  getDeviceFilters
21
21
  } from "./chunk-2AGBXDGF.js";
@@ -107,4 +107,4 @@ export {
107
107
  getDeviceMonitorConfig,
108
108
  changeNotificationSetting
109
109
  };
110
- //# sourceMappingURL=chunk-JJDXPFDG.js.map
110
+ //# sourceMappingURL=chunk-YVHZD73Z.js.map
@@ -18,14 +18,14 @@ import {
18
18
  getTenantCapabilities,
19
19
  getUserCapabilities,
20
20
  getUserRoles
21
- } from "./chunk-PHYVVNDW.js";
21
+ } from "./chunk-UTVFECIG.js";
22
22
  import "./chunk-E2X525PA.js";
23
23
  import "./chunk-IDKMS5RA.js";
24
24
  import "./chunk-X6AM6P6X.js";
25
25
  import "./chunk-YO22XLHI.js";
26
26
  import "./chunk-JIS4PA3R.js";
27
- import "./chunk-CXRORJR5.js";
28
27
  import "./chunk-2AGBXDGF.js";
28
+ import "./chunk-CXRORJR5.js";
29
29
  import "./chunk-4BHM6WVX.js";
30
30
  import "./chunk-S7XYEGLR.js";
31
31
  import "./chunk-AERWBWRM.js";
@@ -1528,7 +1528,6 @@ var releasesSlice_default = releaseSlice.reducer;
1528
1528
  var import_toolkit8 = require("@reduxjs/toolkit");
1529
1529
  var sliceName8 = "users";
1530
1530
  var initialState8 = {
1531
- activationCode: void 0,
1532
1531
  byId: {},
1533
1532
  currentUser: null,
1534
1533
  currentSession: {
@@ -1579,9 +1578,6 @@ var usersSlice = (0, import_toolkit8.createSlice)({
1579
1578
  receivedUserList: (state, action) => {
1580
1579
  state.byId = action.payload;
1581
1580
  },
1582
- receivedActivationCode: (state, action) => {
1583
- state.activationCode = action.payload;
1584
- },
1585
1581
  receivedUser: (state, action) => {
1586
1582
  state.byId[action.payload.id] = action.payload;
1587
1583
  state.currentUser = action.payload.id;
@@ -3706,7 +3702,7 @@ var verifyEmailStart = createAppAsyncThunk(
3706
3702
  );
3707
3703
  var verifyEmailComplete = createAppAsyncThunk(
3708
3704
  `${sliceName8}/verifyEmailComplete`,
3709
- (secret_hash, { dispatch }) => general_api_default.post(`${import_constants5.useradmApiUrl}/auth/verify-email/complete`, { secret_hash }).then(() => dispatch(actions8.receivedActivationCode(""))).catch((err) => commonErrorHandler(err, "An error occured completing the email verification process:", dispatch)).finally(() => Promise.resolve(dispatch(getUser(OWN_USER_ID))))
3705
+ (secret_hash, { dispatch, rejectWithValue }) => general_api_default.post(`${import_constants5.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))))
3710
3706
  );
3711
3707
  var verify2FA = createAppAsyncThunk(
3712
3708
  `${sliceName8}/verify2FA`,