@northern.tech/store 0.36.1 → 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.
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.d.cts +123 -134
- package/dist/actions.d.ts +123 -134
- package/dist/actions.js.map +1 -1
- package/dist/api/general-api.cjs +1 -1
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.d.cts +9 -10
- package/dist/api/general-api.d.ts +9 -10
- package/dist/api/general-api.js.map +1 -1
- package/dist/api/users-api.cjs +1 -1
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.d.cts +1 -2
- package/dist/api/users-api.d.ts +1 -2
- package/dist/api/users-api.js.map +1 -1
- package/dist/appSlice/constants.cjs +0 -1
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +1 -1
- package/dist/appSlice/constants.d.ts +1 -1
- package/dist/appSlice/constants.js.map +1 -1
- package/dist/appSlice/index.cjs +2 -4
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.d.cts +2 -2
- package/dist/appSlice/index.d.ts +2 -2
- package/dist/appSlice/index.js +2 -3
- package/dist/appSlice/index.js.map +1 -1
- package/dist/appSlice/mocks.cjs.map +1 -1
- package/dist/appSlice/mocks.d.cts +1 -1
- package/dist/appSlice/mocks.d.ts +1 -1
- package/dist/appSlice/mocks.js.map +1 -1
- package/dist/appSlice/selectors.cjs +2 -6
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +35 -128
- package/dist/appSlice/selectors.d.ts +35 -128
- package/dist/appSlice/selectors.js +2 -5
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.cjs +0 -1
- package/dist/appSlice/thunks.d.cts +6 -31
- package/dist/appSlice/thunks.d.ts +6 -31
- package/dist/appSlice/thunks.js +2 -2
- package/dist/auth.cjs +1 -1
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonSelectors.cjs +1 -1
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +164 -166
- package/dist/commonSelectors.d.ts +164 -166
- package/dist/commonSelectors.js.map +1 -1
- package/dist/{constants-CIx3fnBv.d.cts → constants-6kYRTdox.d.cts} +1 -1
- package/dist/{constants-BciiayPt.d.ts → constants-6kYRTdox.d.ts} +1 -1
- package/dist/{constants-BIIEMVoG.d.ts → constants-B_7FCJQX.d.cts} +3 -6
- package/dist/{constants-BFTS6mge.d.cts → constants-B_7FCJQX.d.ts} +3 -6
- package/dist/{constants-D41U_jbR.d.cts → constants-BwKiHHaB.d.cts} +1 -1
- package/dist/{constants-5cdwz1iH.d.ts → constants-BwKiHHaB.d.ts} +1 -1
- package/dist/{constants-DK7fI3Rh.d.cts → constants-Db_RBdlV.d.cts} +1 -1
- package/dist/{constants-BWEsNG5c.d.ts → constants-Db_RBdlV.d.ts} +1 -1
- package/dist/{constants-CNhpIMME.d.cts → constants-OZiiFKiA.d.cts} +1 -1
- package/dist/{constants-y2XVLQWf.d.ts → constants-OZiiFKiA.d.ts} +1 -1
- package/dist/{constants-CjO3_FOH.d.ts → constants-OcdoVk6f.d.ts} +3 -4
- package/dist/{constants-G3wymKIl.d.cts → constants-Sn4gnNA3.d.cts} +1 -1
- package/dist/{constants-Cpgyuy_r.d.ts → constants-Sn4gnNA3.d.ts} +1 -1
- package/dist/{constants-BrGIx40B.d.cts → constants-_p6w8uEp.d.cts} +3 -4
- package/dist/constants.cjs +0 -1
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +8 -8
- package/dist/constants.d.ts +8 -8
- package/dist/constants.js.map +1 -1
- package/dist/deploymentsSlice/constants.d.cts +1 -1
- package/dist/deploymentsSlice/constants.d.ts +1 -1
- package/dist/deploymentsSlice/index.cjs +0 -1
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.d.cts +1 -1
- package/dist/deploymentsSlice/index.d.ts +1 -1
- package/dist/deploymentsSlice/index.js.map +1 -1
- package/dist/deploymentsSlice/mocks.cjs.map +1 -1
- package/dist/deploymentsSlice/mocks.d.cts +1 -1
- package/dist/deploymentsSlice/mocks.d.ts +1 -1
- package/dist/deploymentsSlice/mocks.js.map +1 -1
- package/dist/deploymentsSlice/selectors.cjs +0 -1
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +15 -16
- package/dist/deploymentsSlice/selectors.d.ts +15 -16
- package/dist/deploymentsSlice/selectors.js.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +21 -22
- package/dist/deploymentsSlice/thunks.d.ts +21 -22
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/index.cjs +0 -1
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js.map +1 -1
- package/dist/devicesSlice/mocks.cjs +0 -1
- package/dist/devicesSlice/mocks.cjs.map +1 -1
- package/dist/devicesSlice/mocks.js.map +1 -1
- package/dist/devicesSlice/selectors.cjs +0 -1
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +79 -81
- package/dist/devicesSlice/selectors.d.ts +79 -81
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +67 -69
- package/dist/devicesSlice/thunks.d.ts +67 -69
- package/dist/{index-DUvrw_Ed.d.ts → index-5Q-iI4EB.d.cts} +17 -20
- package/dist/index-BBsUj1a8.d.ts +68 -0
- package/dist/index-BLvjQfGj.d.ts +119 -0
- package/dist/{index-BP0uAq36.d.cts → index-Bb4yvvgG.d.ts} +25 -28
- package/dist/index-Bj3OArhr.d.cts +68 -0
- package/dist/{index-CT5hgXm9.d.cts → index-ByfjrTdH.d.ts} +16 -19
- package/dist/index-C8QadAm7.d.cts +119 -0
- package/dist/{index-BI9O8JWe.d.ts → index-CPdMUfRr.d.ts} +41 -44
- package/dist/index-CSk4ENmk.d.cts +149 -0
- package/dist/index-Cf81vLTi.d.ts +149 -0
- package/dist/index-DBUt8xVc.d.cts +61 -0
- package/dist/index-DBUt8xVc.d.ts +61 -0
- package/dist/index-DLDY7bNT.d.ts +165 -0
- package/dist/{index-B64X5ozM.d.cts → index-DbfM03Gj.d.cts} +42 -45
- package/dist/{index-CkwVnIqd.d.ts → index-EPmsL6Lb.d.cts} +26 -29
- package/dist/index-Zs9RnVoR.d.cts +165 -0
- package/dist/liststatehook.cjs +5 -6
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.d.cts +1 -1
- package/dist/liststatehook.d.ts +1 -1
- package/dist/liststatehook.js +1 -1
- package/dist/liststatehook.js.map +1 -1
- package/dist/locationutils.cjs +0 -1
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +3 -3
- package/dist/locationutils.d.ts +3 -3
- package/dist/locationutils.js.map +1 -1
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.cjs +0 -1
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js.map +1 -1
- package/dist/monitorSlice/mocks.cjs +0 -1
- package/dist/monitorSlice/mocks.cjs.map +1 -1
- package/dist/monitorSlice/mocks.d.cts +1 -1
- package/dist/monitorSlice/mocks.d.ts +1 -1
- package/dist/monitorSlice/mocks.js.map +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.cjs +1 -3
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +11 -13
- package/dist/monitorSlice/thunks.d.ts +11 -13
- package/dist/monitorSlice/thunks.js +1 -2
- package/dist/monitorSlice/thunks.js.map +1 -1
- package/dist/onboardingSlice/constants.cjs.map +1 -1
- package/dist/onboardingSlice/constants.d.cts +1 -1
- package/dist/onboardingSlice/constants.d.ts +1 -1
- package/dist/onboardingSlice/constants.js.map +1 -1
- package/dist/onboardingSlice/index.cjs +0 -1
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/index.d.cts +1 -1
- package/dist/onboardingSlice/index.d.ts +1 -1
- package/dist/onboardingSlice/index.js.map +1 -1
- package/dist/onboardingSlice/mocks.cjs.map +1 -1
- package/dist/onboardingSlice/mocks.d.cts +1 -1
- package/dist/onboardingSlice/mocks.d.ts +1 -1
- package/dist/onboardingSlice/mocks.js.map +1 -1
- package/dist/onboardingSlice/selectors.d.cts +2 -2
- package/dist/onboardingSlice/selectors.d.ts +2 -2
- package/dist/onboardingSlice/thunks.d.cts +22 -23
- package/dist/onboardingSlice/thunks.d.ts +22 -23
- package/dist/organizationSlice/constants.d.cts +1 -1
- package/dist/organizationSlice/constants.d.ts +1 -1
- package/dist/organizationSlice/index.cjs +0 -1
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js.map +1 -1
- package/dist/organizationSlice/mocks.cjs +0 -1
- package/dist/organizationSlice/mocks.cjs.map +1 -1
- package/dist/organizationSlice/mocks.d.cts +3 -4
- package/dist/organizationSlice/mocks.d.ts +3 -4
- package/dist/organizationSlice/mocks.js.map +1 -1
- package/dist/organizationSlice/selectors.cjs +0 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +78 -81
- package/dist/organizationSlice/selectors.d.ts +78 -81
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +69 -72
- package/dist/organizationSlice/thunks.d.ts +69 -72
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/constants.cjs.map +1 -1
- package/dist/releasesSlice/constants.d.cts +1 -1
- package/dist/releasesSlice/constants.d.ts +1 -1
- package/dist/releasesSlice/constants.js.map +1 -1
- package/dist/releasesSlice/index.cjs +0 -1
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js.map +1 -1
- package/dist/releasesSlice/mocks.cjs +0 -1
- package/dist/releasesSlice/mocks.cjs.map +1 -1
- package/dist/releasesSlice/mocks.d.cts +3 -6
- package/dist/releasesSlice/mocks.d.ts +3 -6
- package/dist/releasesSlice/mocks.js.map +1 -1
- package/dist/releasesSlice/selectors.cjs +0 -1
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +107 -110
- package/dist/releasesSlice/selectors.d.ts +107 -110
- package/dist/releasesSlice/selectors.js.map +1 -1
- package/dist/releasesSlice/thunks.cjs +1 -1
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +52 -55
- package/dist/releasesSlice/thunks.d.ts +52 -55
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/sockethook.cjs +1 -1
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-BZo47jc-.d.ts → store-Co2ptTSm.d.ts} +30 -35
- package/dist/{store-BhRxVhtL.d.cts → store-Dd0Y2JCN.d.cts} +30 -35
- package/dist/store.cjs +0 -1
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +3 -3
- package/dist/store.d.ts +3 -3
- package/dist/store.js.map +1 -1
- package/dist/storehooks.cjs +6 -14
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.d.cts +6 -43
- package/dist/storehooks.d.ts +6 -43
- package/dist/storehooks.js +7 -15
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +4 -44
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +2 -2
- package/dist/thunks.d.ts +2 -2
- package/dist/thunks.js +5 -44
- package/dist/thunks.js.map +1 -1
- package/dist/{types-COdPU2QQ.d.cts → types-B33vKVhi.d.cts} +4 -4
- package/dist/{types-BPyM8Inu.d.ts → types-BjtmX60L.d.ts} +4 -4
- package/dist/useDeploymentDevice.cjs +1 -1
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js.map +1 -1
- package/dist/usersSlice/constants.d.cts +1 -1
- package/dist/usersSlice/constants.d.ts +1 -1
- package/dist/usersSlice/index.cjs +0 -1
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js.map +1 -1
- package/dist/usersSlice/mocks.cjs +0 -1
- package/dist/usersSlice/mocks.cjs.map +1 -1
- package/dist/usersSlice/mocks.d.cts +4 -6
- package/dist/usersSlice/mocks.d.ts +4 -6
- package/dist/usersSlice/mocks.js.map +1 -1
- package/dist/usersSlice/selectors.cjs +0 -1
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +44 -47
- package/dist/usersSlice/selectors.d.ts +44 -47
- package/dist/usersSlice/selectors.js.map +1 -1
- package/dist/usersSlice/thunks.d.cts +92 -95
- package/dist/usersSlice/thunks.d.ts +92 -95
- package/dist/{utils-CHBWS_tH.d.ts → utils-C_9XEfi_.d.ts} +8 -9
- package/dist/{utils-Do9z5TL1.d.cts → utils-DbXmZmGq.d.cts} +8 -9
- package/dist/utils.cjs +0 -3
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -2
- package/dist/utils.js.map +1 -1
- package/package.json +7 -7
- package/dist/index-B3IF6ur9.d.cts +0 -168
- package/dist/index-BFlHWzjv.d.cts +0 -152
- package/dist/index-BbaS7MzW.d.cts +0 -71
- package/dist/index-Bp1WpATs.d.ts +0 -154
- package/dist/index-C6wNUfiV.d.ts +0 -71
- package/dist/index-CJkrL0oA.d.ts +0 -64
- package/dist/index-DaD3yorF.d.ts +0 -168
- package/dist/index-DwACbyUg.d.cts +0 -154
- package/dist/index-UPc3wvVd.d.cts +0 -64
- package/dist/index-ez3oxfRo.d.ts +0 -152
- /package/dist/{chunk-CKQMccvm.cjs → chunk-D6vf50IK.cjs} +0 -0
package/dist/actions.d.ts
CHANGED
|
@@ -1,152 +1,149 @@
|
|
|
1
|
-
import { lt as AlertChannelKey, mt as DeviceAuthState } from "./constants-
|
|
2
|
-
import { i as ReadState } from "./constants-
|
|
3
|
-
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index-
|
|
4
|
-
import { n as ManifestsList, r as Release, s as SoftwareList } from "./index-
|
|
5
|
-
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-
|
|
6
|
-
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-
|
|
7
|
-
import { i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "./index-
|
|
8
|
-
import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, t as Device } from "./index-
|
|
9
|
-
import {
|
|
10
|
-
import * as _$_reduxjs_toolkit0 from "@reduxjs/toolkit";
|
|
11
|
-
import * as _$_northern_tech_utils_constants0 from "@northern.tech/utils/constants";
|
|
12
|
-
import * as _$_northern_tech_types_types_gen0 from "@northern.tech/types/types.gen";
|
|
1
|
+
import { lt as AlertChannelKey, mt as DeviceAuthState } from "./constants-OcdoVk6f.js";
|
|
2
|
+
import { i as ReadState } from "./constants-Sn4gnNA3.js";
|
|
3
|
+
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index-Cf81vLTi.js";
|
|
4
|
+
import { n as ManifestsList, r as Release, s as SoftwareList } from "./index-DLDY7bNT.js";
|
|
5
|
+
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-BjtmX60L.js";
|
|
6
|
+
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-DBUt8xVc.js";
|
|
7
|
+
import { i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "./index-Bb4yvvgG.js";
|
|
8
|
+
import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, t as Device } from "./index-CPdMUfRr.js";
|
|
9
|
+
import { a as Upload, i as SnackbarContent } from "./index-BLvjQfGj.js";
|
|
13
10
|
|
|
14
11
|
//#region src/actions.d.ts
|
|
15
12
|
declare const _default: {
|
|
16
|
-
receivedQrCode:
|
|
17
|
-
successfullyLoggedIn:
|
|
18
|
-
receivedUserList:
|
|
19
|
-
receivedUser:
|
|
20
|
-
removedUser:
|
|
21
|
-
updatedUser:
|
|
13
|
+
receivedQrCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "users/receivedQrCode">;
|
|
14
|
+
successfullyLoggedIn: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserSession, "users/successfullyLoggedIn">;
|
|
15
|
+
receivedUserList: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, User>, "users/receivedUserList">;
|
|
16
|
+
receivedUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<User, "users/receivedUser">;
|
|
17
|
+
removedUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "users/removedUser">;
|
|
18
|
+
updatedUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<User> & {
|
|
22
19
|
id: string;
|
|
23
20
|
}, "users/updatedUser">;
|
|
24
|
-
receivedPermissionSets:
|
|
25
|
-
receivedRoles:
|
|
26
|
-
finishedRoleInitialization:
|
|
27
|
-
createdRole:
|
|
28
|
-
removedRole:
|
|
29
|
-
setCustomColumns:
|
|
30
|
-
setGlobalSettings:
|
|
31
|
-
setUserSettings:
|
|
32
|
-
setTooltipState:
|
|
21
|
+
receivedPermissionSets: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, import("@northern.tech/utils/constants").PermissionSet>, "users/receivedPermissionSets">;
|
|
22
|
+
receivedRoles: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, import("@northern.tech/utils/constants").Role>, "users/receivedRoles">;
|
|
23
|
+
finishedRoleInitialization: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "users/finishedRoleInitialization">;
|
|
24
|
+
createdRole: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/utils/constants").Role, "users/createdRole">;
|
|
25
|
+
removedRole: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "users/removedRole">;
|
|
26
|
+
setCustomColumns: import("@reduxjs/toolkit").ActionCreatorWithPayload<CustomColumn[], "users/setCustomColumns">;
|
|
27
|
+
setGlobalSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<GlobalSettings, "users/setGlobalSettings">;
|
|
28
|
+
setUserSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserSettings, "users/setUserSettings">;
|
|
29
|
+
setTooltipState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
33
30
|
id: string;
|
|
34
31
|
readState: ReadState;
|
|
35
32
|
}, "users/setTooltipState">;
|
|
36
|
-
setTooltipsState:
|
|
33
|
+
setTooltipsState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, {
|
|
37
34
|
readState: ReadState;
|
|
38
35
|
}>, "users/setTooltipsState">;
|
|
39
|
-
setShowFeedbackDialog:
|
|
40
|
-
setShowConnectingDialog:
|
|
41
|
-
setShowStartupNotification:
|
|
42
|
-
receiveRelease:
|
|
43
|
-
receiveReleases:
|
|
44
|
-
receiveSoftwareTags:
|
|
45
|
-
receiveReleaseTags:
|
|
46
|
-
receiveReleaseTypes:
|
|
47
|
-
removeRelease:
|
|
48
|
-
selectedRelease:
|
|
49
|
-
setReleaseListState:
|
|
50
|
-
receivedDeltaJobs:
|
|
51
|
-
receivedDeltaJobDetails:
|
|
52
|
-
setDeltaJobsListState:
|
|
53
|
-
setSelectedJob:
|
|
54
|
-
setActiveTab:
|
|
55
|
-
receiveManifest:
|
|
56
|
-
receiveManifests:
|
|
57
|
-
receiveManifestTags:
|
|
58
|
-
removeManifest:
|
|
59
|
-
removeManifests:
|
|
60
|
-
selectedManifest:
|
|
61
|
-
setManifestsListState:
|
|
62
|
-
receiveSoftwareItems:
|
|
63
|
-
setSoftwareListState:
|
|
64
|
-
receiveAuditLogs:
|
|
65
|
-
events:
|
|
36
|
+
setShowFeedbackDialog: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "users/setShowFeedbackDialog">;
|
|
37
|
+
setShowConnectingDialog: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "users/setShowConnectingDialog">;
|
|
38
|
+
setShowStartupNotification: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "users/setShowStartupNotification">;
|
|
39
|
+
receiveRelease: import("@reduxjs/toolkit").ActionCreatorWithPayload<Release, "releases/receiveRelease">;
|
|
40
|
+
receiveReleases: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, Release>, "releases/receiveReleases">;
|
|
41
|
+
receiveSoftwareTags: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/types/types.gen").Tags, "releases/receiveSoftwareTags">;
|
|
42
|
+
receiveReleaseTags: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/types/types.gen").Tags, "releases/receiveReleaseTags">;
|
|
43
|
+
receiveReleaseTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "releases/receiveReleaseTypes">;
|
|
44
|
+
removeRelease: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "releases/removeRelease">;
|
|
45
|
+
selectedRelease: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "releases/selectedRelease">;
|
|
46
|
+
setReleaseListState: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "releases/setReleaseListState">;
|
|
47
|
+
receivedDeltaJobs: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "releases/receivedDeltaJobs">;
|
|
48
|
+
receivedDeltaJobDetails: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "releases/receivedDeltaJobDetails">;
|
|
49
|
+
setDeltaJobsListState: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "releases/setDeltaJobsListState">;
|
|
50
|
+
setSelectedJob: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "releases/setSelectedJob">;
|
|
51
|
+
setActiveTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"releases" | "delta" | "manifests", "releases/setActiveTab">;
|
|
52
|
+
receiveManifest: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/types/types.gen").Manifest, "releases/receiveManifest">;
|
|
53
|
+
receiveManifests: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, import("@northern.tech/types/types.gen").Manifest>, "releases/receiveManifests">;
|
|
54
|
+
receiveManifestTags: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/types/types.gen").Tags, "releases/receiveManifestTags">;
|
|
55
|
+
removeManifest: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "releases/removeManifest">;
|
|
56
|
+
removeManifests: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "releases/removeManifests">;
|
|
57
|
+
selectedManifest: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "releases/selectedManifest">;
|
|
58
|
+
setManifestsListState: import("@reduxjs/toolkit").ActionCreatorWithPayload<ManifestsList, "releases/setManifestsListState">;
|
|
59
|
+
receiveSoftwareItems: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, import("@northern.tech/types/types.gen").Software>, "releases/receiveSoftwareItems">;
|
|
60
|
+
setSoftwareListState: import("@reduxjs/toolkit").ActionCreatorWithPayload<SoftwareList, "releases/setSoftwareListState">;
|
|
61
|
+
receiveAuditLogs: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
62
|
+
events: import("@northern.tech/types/types.gen").AuditLog[];
|
|
66
63
|
total: number;
|
|
67
64
|
}, "organization/receiveAuditLogs">;
|
|
68
|
-
setAuditLogState:
|
|
69
|
-
receiveCurrentCard:
|
|
70
|
-
receiveSetupIntent:
|
|
71
|
-
setOrganization:
|
|
72
|
-
setSubscription:
|
|
73
|
-
setProducts:
|
|
74
|
-
setBillingProfile:
|
|
75
|
-
setTenantListState:
|
|
76
|
-
receiveExternalDeviceIntegrations:
|
|
77
|
-
receiveSsoConfigs:
|
|
78
|
-
receiveWebhookEvents:
|
|
65
|
+
setAuditLogState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<AuditLogSelectionState>, "organization/setAuditLogState">;
|
|
66
|
+
receiveCurrentCard: import("@reduxjs/toolkit").ActionCreatorWithPayload<Card, "organization/receiveCurrentCard">;
|
|
67
|
+
receiveSetupIntent: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "organization/receiveSetupIntent">;
|
|
68
|
+
setOrganization: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<Organization>, "organization/setOrganization">;
|
|
69
|
+
setSubscription: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "organization/setSubscription">;
|
|
70
|
+
setProducts: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProductConfig, "organization/setProducts">;
|
|
71
|
+
setBillingProfile: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/types/types.gen").BillingProfile, "organization/setBillingProfile">;
|
|
72
|
+
setTenantListState: import("@reduxjs/toolkit").ActionCreatorWithPayload<TenantList, "organization/setTenantListState">;
|
|
73
|
+
receiveExternalDeviceIntegrations: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/types/types.gen").Integration[], "organization/receiveExternalDeviceIntegrations">;
|
|
74
|
+
receiveSsoConfigs: import("@reduxjs/toolkit").ActionCreatorWithPayload<SSOConfig[], "organization/receiveSsoConfigs">;
|
|
75
|
+
receiveWebhookEvents: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
79
76
|
total: number;
|
|
80
|
-
value:
|
|
77
|
+
value: import("@northern.tech/types/types.gen").Event[];
|
|
81
78
|
}, "organization/receiveWebhookEvents">;
|
|
82
|
-
setOnboardingState:
|
|
83
|
-
setDemoArtifactPort:
|
|
84
|
-
setShowOnboardingHelp:
|
|
85
|
-
setShowDismissOnboardingTipsDialog:
|
|
86
|
-
setOnboardingComplete:
|
|
87
|
-
setOnboardingProgress:
|
|
88
|
-
setOnboardingDeviceType:
|
|
89
|
-
setOnboardingApproach:
|
|
90
|
-
changeAlertChannel:
|
|
79
|
+
setOnboardingState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<OnboardingSliceType>, "onboarding/setOnboardingState">;
|
|
80
|
+
setDemoArtifactPort: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "onboarding/setDemoArtifactPort">;
|
|
81
|
+
setShowOnboardingHelp: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "onboarding/setShowOnboardingHelp">;
|
|
82
|
+
setShowDismissOnboardingTipsDialog: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "onboarding/setShowDismissOnboardingTipsDialog">;
|
|
83
|
+
setOnboardingComplete: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "onboarding/setOnboardingComplete">;
|
|
84
|
+
setOnboardingProgress: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "onboarding/setOnboardingProgress">;
|
|
85
|
+
setOnboardingDeviceType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | string[], "onboarding/setOnboardingDeviceType">;
|
|
86
|
+
setOnboardingApproach: import("@reduxjs/toolkit").ActionCreatorWithPayload<OnboardingApproach, "onboarding/setOnboardingApproach">;
|
|
87
|
+
changeAlertChannel: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
91
88
|
channel: AlertChannelKey;
|
|
92
89
|
enabled: boolean;
|
|
93
90
|
}, "monitor/changeAlertChannel">;
|
|
94
|
-
receiveDeviceAlerts:
|
|
91
|
+
receiveDeviceAlerts: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
95
92
|
alerts: ({
|
|
96
93
|
id: string;
|
|
97
94
|
device_id?: string;
|
|
98
|
-
} &
|
|
95
|
+
} & import("@northern.tech/types/types.gen").PostAlert & {
|
|
99
96
|
fullName?: string;
|
|
100
97
|
})[];
|
|
101
98
|
deviceId: string;
|
|
102
99
|
}, "monitor/receiveDeviceAlerts">;
|
|
103
|
-
receiveLatestDeviceAlerts:
|
|
100
|
+
receiveLatestDeviceAlerts: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
104
101
|
alerts: ({
|
|
105
102
|
id: string;
|
|
106
103
|
device_id?: string;
|
|
107
|
-
} &
|
|
104
|
+
} & import("@northern.tech/types/types.gen").PostAlert & {
|
|
108
105
|
fullName?: string;
|
|
109
106
|
})[];
|
|
110
107
|
deviceId: string;
|
|
111
108
|
}, "monitor/receiveLatestDeviceAlerts">;
|
|
112
|
-
receiveDeviceIssueCounts:
|
|
109
|
+
receiveDeviceIssueCounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
113
110
|
counts: {
|
|
114
111
|
filtered: number;
|
|
115
112
|
total: number;
|
|
116
113
|
};
|
|
117
|
-
issueType:
|
|
114
|
+
issueType: import("@northern.tech/utils/constants").DeviceIssueOptionKey;
|
|
118
115
|
}, "monitor/receiveDeviceIssueCounts">;
|
|
119
|
-
setAlertListState:
|
|
120
|
-
receivedGroups:
|
|
121
|
-
addToGroup:
|
|
116
|
+
setAlertListState: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "monitor/setAlertListState">;
|
|
117
|
+
receivedGroups: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, DeviceGroup>, "devices/receivedGroups">;
|
|
118
|
+
addToGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
122
119
|
deviceIds: string[];
|
|
123
120
|
group: string;
|
|
124
121
|
}, "devices/addToGroup">;
|
|
125
|
-
removeFromGroup:
|
|
122
|
+
removeFromGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
126
123
|
deviceIds: string[];
|
|
127
124
|
group: string;
|
|
128
125
|
}, "devices/removeFromGroup">;
|
|
129
|
-
addGroup:
|
|
126
|
+
addGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
130
127
|
group: DeviceGroup;
|
|
131
128
|
groupName: string;
|
|
132
129
|
}, "devices/addGroup">;
|
|
133
|
-
selectGroup:
|
|
134
|
-
removeGroup:
|
|
135
|
-
setDeviceListState:
|
|
136
|
-
setFilterAttributes:
|
|
130
|
+
selectGroup: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, "devices/selectGroup">;
|
|
131
|
+
removeGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "devices/removeGroup">;
|
|
132
|
+
setDeviceListState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<DeviceListState>, "devices/setDeviceListState">;
|
|
133
|
+
setFilterAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
137
134
|
identityAttributes: string[];
|
|
138
135
|
inventoryAttributes: string[];
|
|
139
136
|
systemAttributes: string[];
|
|
140
137
|
tagAttributes: string[];
|
|
141
138
|
}, "devices/setFilterAttributes">;
|
|
142
|
-
setFilterablesConfig:
|
|
139
|
+
setFilterablesConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
143
140
|
attributes: Record<string, string[]>;
|
|
144
141
|
count: number;
|
|
145
142
|
limit: number;
|
|
146
143
|
}, "devices/setFilterablesConfig">;
|
|
147
|
-
receivedDevices:
|
|
148
|
-
setDeviceFilters:
|
|
149
|
-
setDeviceReports:
|
|
144
|
+
receivedDevices: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, Device>, "devices/receivedDevices">;
|
|
145
|
+
setDeviceFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<DeviceFilter[], "devices/setDeviceFilters">;
|
|
146
|
+
setDeviceReports: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
150
147
|
items: {
|
|
151
148
|
count: number;
|
|
152
149
|
key: string;
|
|
@@ -154,79 +151,71 @@ declare const _default: {
|
|
|
154
151
|
otherCount: number;
|
|
155
152
|
total: number;
|
|
156
153
|
}[], "devices/setDeviceReports">;
|
|
157
|
-
setDevicesByStatus:
|
|
154
|
+
setDevicesByStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
158
155
|
deviceIds: string[];
|
|
159
156
|
status: DeviceAuthState;
|
|
160
157
|
total: number;
|
|
161
158
|
}, "devices/setDevicesByStatus">;
|
|
162
|
-
setDevicesCountByStatus:
|
|
163
|
-
countsPerTier:
|
|
159
|
+
setDevicesCountByStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
160
|
+
countsPerTier: import("@northern.tech/types/types.gen").DeviceTierLimits;
|
|
164
161
|
status: DeviceAuthState;
|
|
165
162
|
}, "devices/setDevicesCountByStatus">;
|
|
166
|
-
setDeviceLimits:
|
|
167
|
-
receivedDevice:
|
|
163
|
+
setDeviceLimits: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@northern.tech/types/types.gen").DeviceTierLimits, "devices/setDeviceLimits">;
|
|
164
|
+
receivedDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
168
165
|
id: string;
|
|
169
166
|
} & Partial<Device>, "devices/receivedDevice">;
|
|
170
|
-
maybeUpdateDevicesByStatus:
|
|
167
|
+
maybeUpdateDevicesByStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
171
168
|
authId?: string;
|
|
172
169
|
deviceId: string;
|
|
173
170
|
}, "devices/maybeUpdateDevicesByStatus">;
|
|
174
|
-
createdDeployment:
|
|
175
|
-
removedDeployment:
|
|
176
|
-
receivedDeployment:
|
|
177
|
-
receivedDeploymentDeviceLog:
|
|
171
|
+
createdDeployment: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "deployments/createdDeployment">;
|
|
172
|
+
removedDeployment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "deployments/removedDeployment">;
|
|
173
|
+
receivedDeployment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Deployment, "deployments/receivedDeployment">;
|
|
174
|
+
receivedDeploymentDeviceLog: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
178
175
|
deviceId: string;
|
|
179
176
|
id: string;
|
|
180
177
|
log: boolean;
|
|
181
178
|
}, "deployments/receivedDeploymentDeviceLog">;
|
|
182
|
-
receivedDeploymentDevices:
|
|
183
|
-
devices: Record<string,
|
|
179
|
+
receivedDeploymentDevices: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
180
|
+
devices: Record<string, import("@northern.tech/types/types.gen").DeviceWithImage>;
|
|
184
181
|
id: string;
|
|
185
182
|
selectedDeviceIds: string[];
|
|
186
183
|
totalDeviceCount: number;
|
|
187
184
|
}, "deployments/receivedDeploymentDevices">;
|
|
188
|
-
receivedDeployments:
|
|
189
|
-
receivedDeploymentsForStatus:
|
|
185
|
+
receivedDeployments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, Deployment>, "deployments/receivedDeployments">;
|
|
186
|
+
receivedDeploymentsForStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
190
187
|
deploymentIds: string[];
|
|
191
188
|
status: DeploymentByStatusKey;
|
|
192
189
|
total: number;
|
|
193
190
|
}, "deployments/receivedDeploymentsForStatus">;
|
|
194
|
-
selectDeploymentsForStatus:
|
|
191
|
+
selectDeploymentsForStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
195
192
|
deploymentIds: string[];
|
|
196
193
|
status: DeploymentByStatusKey;
|
|
197
194
|
total: number;
|
|
198
195
|
}, "deployments/selectDeploymentsForStatus">;
|
|
199
|
-
setDeploymentsState:
|
|
200
|
-
setDeploymentsConfig:
|
|
201
|
-
setFeatures:
|
|
202
|
-
setSnackbar:
|
|
203
|
-
setFirstLoginAfterSignup:
|
|
204
|
-
setAnnouncement:
|
|
205
|
-
setSearchState:
|
|
206
|
-
setOfflineThreshold:
|
|
207
|
-
initUpload:
|
|
196
|
+
setDeploymentsState: import("@reduxjs/toolkit").ActionCreatorWithPayload<SelectionState, "deployments/setDeploymentsState">;
|
|
197
|
+
setDeploymentsConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<DeploymentConfig, "deployments/setDeploymentsConfig">;
|
|
198
|
+
setFeatures: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, boolean>, "app/setFeatures">;
|
|
199
|
+
setSnackbar: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | SnackbarContent, "app/setSnackbar">;
|
|
200
|
+
setFirstLoginAfterSignup: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "app/setFirstLoginAfterSignup">;
|
|
201
|
+
setAnnouncement: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "app/setAnnouncement">;
|
|
202
|
+
setSearchState: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "app/setSearchState">;
|
|
203
|
+
setOfflineThreshold: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "app/setOfflineThreshold">;
|
|
204
|
+
initUpload: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
208
205
|
id: string;
|
|
209
206
|
upload: Upload;
|
|
210
207
|
}, "app/initUpload">;
|
|
211
|
-
uploadProgress:
|
|
208
|
+
uploadProgress: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
212
209
|
id: string;
|
|
213
210
|
progress: number;
|
|
214
211
|
}, "app/uploadProgress">;
|
|
215
|
-
cleanUpUpload:
|
|
216
|
-
setVersionInformation:
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
repos: Record<string, string>;
|
|
220
|
-
} | undefined;
|
|
221
|
-
backend?: string;
|
|
222
|
-
GUI?: string;
|
|
223
|
-
latestRelease?: {
|
|
224
|
-
releaseDate: string;
|
|
225
|
-
repos: Record<string, string>;
|
|
226
|
-
};
|
|
212
|
+
cleanUpUpload: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "app/cleanUpUpload">;
|
|
213
|
+
setVersionInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
214
|
+
docsVersion?: string;
|
|
215
|
+
version?: string;
|
|
227
216
|
}, "app/setVersionInformation">;
|
|
228
|
-
setEnvironmentData:
|
|
229
|
-
setAppInitDone:
|
|
217
|
+
setEnvironmentData: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "app/setEnvironmentData">;
|
|
218
|
+
setAppInitDone: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"app/setAppInitDone">;
|
|
230
219
|
};
|
|
231
220
|
//#endregion
|
|
232
221
|
export { _default as default };
|
package/dist/actions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","names":["appActions","deploymentActions","devicesActions","monitorActions","onboardingActions","organizationActions","releaseActions","userActions"],"sources":["../src/actions.ts"],"sourcesContent":["// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { actions as appActions } from './appSlice';\nimport { actions as deploymentActions } from './deploymentsSlice';\nimport { actions as devicesActions } from './devicesSlice';\nimport { actions as monitorActions } from './monitorSlice';\nimport { actions as onboardingActions } from './onboardingSlice';\nimport { actions as organizationActions } from './organizationSlice';\nimport { actions as releaseActions } from './releasesSlice';\nimport { actions as userActions } from './usersSlice';\n\nexport default {\n ...appActions,\n ...deploymentActions,\n ...devicesActions,\n ...monitorActions,\n ...onboardingActions,\n ...organizationActions,\n ...releaseActions,\n ...userActions\n};\n"],"mappings":";;;;;;;;;AAsBA,IAAA,kBAAe;CACb,GAAGA;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;
|
|
1
|
+
{"version":3,"file":"actions.js","names":["appActions","deploymentActions","devicesActions","monitorActions","onboardingActions","organizationActions","releaseActions","userActions"],"sources":["../src/actions.ts"],"sourcesContent":["// Copyright 2024 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { actions as appActions } from './appSlice';\nimport { actions as deploymentActions } from './deploymentsSlice';\nimport { actions as devicesActions } from './devicesSlice';\nimport { actions as monitorActions } from './monitorSlice';\nimport { actions as onboardingActions } from './onboardingSlice';\nimport { actions as organizationActions } from './organizationSlice';\nimport { actions as releaseActions } from './releasesSlice';\nimport { actions as userActions } from './usersSlice';\n\nexport default {\n ...appActions,\n ...deploymentActions,\n ...devicesActions,\n ...monitorActions,\n ...onboardingActions,\n ...organizationActions,\n ...releaseActions,\n ...userActions\n};\n"],"mappings":";;;;;;;;;AAsBA,IAAA,kBAAe;CACb,GAAGA;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;CACH,GAAGC;AACL"}
|
package/dist/api/general-api.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_chunk = require("../chunk-
|
|
5
|
+
const require_chunk = require("../chunk-D6vf50IK.cjs");
|
|
6
6
|
const require_constants = require("../constants.cjs");
|
|
7
7
|
const require_auth = require("../auth.cjs");
|
|
8
8
|
let universal_cookie = require("universal-cookie");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general-api.cjs","names":["Cookies","getToken","TIMEOUTS"],"sources":["../../src/api/general-api.ts"],"sourcesContent":["// Copyright 2017 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 { AxiosError, AxiosProgressEvent, AxiosRequestConfig, GenericAbortSignal, InternalAxiosRequestConfig } from 'axios';\nimport axios, { isCancel } from 'axios';\nimport Cookies from 'universal-cookie';\n\nimport { cleanUp, getToken } from '../auth';\nimport { TIMEOUTS } from '../constants';\n\nconst cookies = new Cookies();\n\nconst unauthorizedRedirect = (error: AxiosError): Promise<never> => {\n if (!isCancel(error) && error.response?.status === 401 && getToken() && !window.location.pathname.endsWith('/subscription')) {\n // a new jwt might have been set by sso while the current request was in-flight with an old token\n // => reload instead of logging out\n if (cookies.get('JWT', { doNotParse: true })) {\n window.location.reload();\n return Promise.reject(error);\n }\n cleanUp();\n window.location.replace('/ui/');\n }\n return Promise.reject(error);\n};\n\nexport const commonRequestConfig: AxiosRequestConfig = { timeout: TIMEOUTS.refreshDefault, headers: { 'Content-Type': 'application/json' } };\n\nexport const authenticatedRequest = axios.create(commonRequestConfig);\nauthenticatedRequest.interceptors.response.use(res => res, unauthorizedRedirect);\nauthenticatedRequest.interceptors.request.use(\n (config: InternalAxiosRequestConfig) => {\n config.headers.Authorization = `Bearer ${getToken()}`;\n return config;\n },\n (error: AxiosError) => Promise.reject(error)\n);\n\nconst Api = {\n get: authenticatedRequest.get,\n delete: <T = unknown, D = unknown>(url: string, data?: D) => authenticatedRequest.request<T>({ method: 'delete', url, data }),\n patch: authenticatedRequest.patch,\n post: authenticatedRequest.post,\n postUnauthorized: <T = unknown, D = unknown>(url: string, data?: D, config: AxiosRequestConfig = {}) =>\n axios.post<T>(url, data, { ...commonRequestConfig, ...config }),\n put: authenticatedRequest.put,\n upload: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) =>\n authenticatedRequest.post<T>(url, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n onUploadProgress: progress,\n timeout: 0,\n signal: cancelSignal\n }),\n uploadPut: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) =>\n authenticatedRequest.put<T>(url, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n onUploadProgress: progress,\n timeout: 0,\n signal: cancelSignal\n })\n};\n\nexport default Api;\n"],"mappings":";;;;;;;;;;;;AAoBA,MAAM,UAAU,IAAIA,iBAAAA,
|
|
1
|
+
{"version":3,"file":"general-api.cjs","names":["Cookies","getToken","TIMEOUTS"],"sources":["../../src/api/general-api.ts"],"sourcesContent":["// Copyright 2017 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 { AxiosError, AxiosProgressEvent, AxiosRequestConfig, GenericAbortSignal, InternalAxiosRequestConfig } from 'axios';\nimport axios, { isCancel } from 'axios';\nimport Cookies from 'universal-cookie';\n\nimport { cleanUp, getToken } from '../auth';\nimport { TIMEOUTS } from '../constants';\n\nconst cookies = new Cookies();\n\nconst unauthorizedRedirect = (error: AxiosError): Promise<never> => {\n if (!isCancel(error) && error.response?.status === 401 && getToken() && !window.location.pathname.endsWith('/subscription')) {\n // a new jwt might have been set by sso while the current request was in-flight with an old token\n // => reload instead of logging out\n if (cookies.get('JWT', { doNotParse: true })) {\n window.location.reload();\n return Promise.reject(error);\n }\n cleanUp();\n window.location.replace('/ui/');\n }\n return Promise.reject(error);\n};\n\nexport const commonRequestConfig: AxiosRequestConfig = { timeout: TIMEOUTS.refreshDefault, headers: { 'Content-Type': 'application/json' } };\n\nexport const authenticatedRequest = axios.create(commonRequestConfig);\nauthenticatedRequest.interceptors.response.use(res => res, unauthorizedRedirect);\nauthenticatedRequest.interceptors.request.use(\n (config: InternalAxiosRequestConfig) => {\n config.headers.Authorization = `Bearer ${getToken()}`;\n return config;\n },\n (error: AxiosError) => Promise.reject(error)\n);\n\nconst Api = {\n get: authenticatedRequest.get,\n delete: <T = unknown, D = unknown>(url: string, data?: D) => authenticatedRequest.request<T>({ method: 'delete', url, data }),\n patch: authenticatedRequest.patch,\n post: authenticatedRequest.post,\n postUnauthorized: <T = unknown, D = unknown>(url: string, data?: D, config: AxiosRequestConfig = {}) =>\n axios.post<T>(url, data, { ...commonRequestConfig, ...config }),\n put: authenticatedRequest.put,\n upload: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) =>\n authenticatedRequest.post<T>(url, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n onUploadProgress: progress,\n timeout: 0,\n signal: cancelSignal\n }),\n uploadPut: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) =>\n authenticatedRequest.put<T>(url, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n onUploadProgress: progress,\n timeout: 0,\n signal: cancelSignal\n })\n};\n\nexport default Api;\n"],"mappings":";;;;;;;;;;;;AAoBA,MAAM,UAAU,IAAIA,iBAAAA,QAAQ;AAE5B,MAAM,wBAAwB,UAAsC;CAClE,IAAI,EAAA,GAAA,MAAA,UAAU,KAAK,KAAK,MAAM,UAAU,WAAW,OAAOC,aAAAA,SAAS,KAAK,CAAC,OAAO,SAAS,SAAS,SAAS,eAAe,GAAG;EAG3H,IAAI,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,GAAG;GAC5C,OAAO,SAAS,OAAO;GACvB,OAAO,QAAQ,OAAO,KAAK;EAC7B;EACA,aAAA,QAAQ;EACR,OAAO,SAAS,QAAQ,MAAM;CAChC;CACA,OAAO,QAAQ,OAAO,KAAK;AAC7B;AAEA,MAAa,sBAA0C;CAAE,SAASC,kBAAAA,SAAS;CAAgB,SAAS,EAAE,gBAAgB,mBAAmB;AAAE;AAE3I,MAAa,uBAAuB,MAAA,QAAM,OAAO,mBAAmB;AACpE,qBAAqB,aAAa,SAAS,KAAI,QAAO,KAAK,oBAAoB;AAC/E,qBAAqB,aAAa,QAAQ,KACvC,WAAuC;CACtC,OAAO,QAAQ,gBAAgB,UAAUD,aAAAA,SAAS;CAClD,OAAO;AACT,IACC,UAAsB,QAAQ,OAAO,KAAK,CAC7C;AAEA,MAAM,MAAM;CACV,KAAK,qBAAqB;CAC1B,SAAmC,KAAa,SAAa,qBAAqB,QAAW;EAAE,QAAQ;EAAU;EAAK;CAAK,CAAC;CAC5H,OAAO,qBAAqB;CAC5B,MAAM,qBAAqB;CAC3B,mBAA6C,KAAa,MAAU,SAA6B,CAAC,MAChG,MAAA,QAAM,KAAQ,KAAK,MAAM;EAAE,GAAG;EAAqB,GAAG;CAAO,CAAC;CAChE,KAAK,qBAAqB;CAC1B,SAAsB,KAAa,UAAoB,UAA+C,iBACpG,qBAAqB,KAAQ,KAAK,UAAU;EAC1C,SAAS,EAAE,gBAAgB,sBAAsB;EACjD,kBAAkB;EAClB,SAAS;EACT,QAAQ;CACV,CAAC;CACH,YAAyB,KAAa,UAAoB,UAA+C,iBACvG,qBAAqB,IAAO,KAAK,UAAU;EACzC,SAAS,EAAE,gBAAgB,sBAAsB;EACjD,kBAAkB;EAClB,SAAS;EACT,QAAQ;CACV,CAAC;AACL"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import * as _$axios from "axios";
|
|
2
1
|
import { AxiosProgressEvent, AxiosRequestConfig, GenericAbortSignal } from "axios";
|
|
3
2
|
|
|
4
3
|
//#region src/api/general-api.d.ts
|
|
5
4
|
declare const commonRequestConfig: AxiosRequestConfig;
|
|
6
|
-
declare const authenticatedRequest:
|
|
5
|
+
declare const authenticatedRequest: import("axios").AxiosInstance;
|
|
7
6
|
declare const Api: {
|
|
8
|
-
get: <T = any, R =
|
|
9
|
-
delete: <T = unknown, D = unknown>(url: string, data?: D) => Promise<
|
|
10
|
-
patch: <T = any, R =
|
|
11
|
-
post: <T = any, R =
|
|
12
|
-
postUnauthorized: <T = unknown, D = unknown>(url: string, data?: D, config?: AxiosRequestConfig) => Promise<
|
|
13
|
-
put: <T = any, R =
|
|
14
|
-
upload: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) => Promise<
|
|
15
|
-
uploadPut: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) => Promise<
|
|
7
|
+
get: <T = any, R = import("axios").AxiosResponse<T, any, {}>, D = any>(url: string, config?: AxiosRequestConfig<D>) => Promise<R>;
|
|
8
|
+
delete: <T = unknown, D = unknown>(url: string, data?: D) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
9
|
+
patch: <T = any, R = import("axios").AxiosResponse<T, any, {}>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>) => Promise<R>;
|
|
10
|
+
post: <T = any, R = import("axios").AxiosResponse<T, any, {}>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>) => Promise<R>;
|
|
11
|
+
postUnauthorized: <T = unknown, D = unknown>(url: string, data?: D, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
12
|
+
put: <T = any, R = import("axios").AxiosResponse<T, any, {}>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>) => Promise<R>;
|
|
13
|
+
upload: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
14
|
+
uploadPut: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
16
15
|
};
|
|
17
16
|
//#endregion
|
|
18
17
|
export { authenticatedRequest, commonRequestConfig, Api as default };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import * as _$axios from "axios";
|
|
2
1
|
import { AxiosProgressEvent, AxiosRequestConfig, GenericAbortSignal } from "axios";
|
|
3
2
|
|
|
4
3
|
//#region src/api/general-api.d.ts
|
|
5
4
|
declare const commonRequestConfig: AxiosRequestConfig;
|
|
6
|
-
declare const authenticatedRequest:
|
|
5
|
+
declare const authenticatedRequest: import("axios").AxiosInstance;
|
|
7
6
|
declare const Api: {
|
|
8
|
-
get: <T = any, R =
|
|
9
|
-
delete: <T = unknown, D = unknown>(url: string, data?: D) => Promise<
|
|
10
|
-
patch: <T = any, R =
|
|
11
|
-
post: <T = any, R =
|
|
12
|
-
postUnauthorized: <T = unknown, D = unknown>(url: string, data?: D, config?: AxiosRequestConfig) => Promise<
|
|
13
|
-
put: <T = any, R =
|
|
14
|
-
upload: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) => Promise<
|
|
15
|
-
uploadPut: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) => Promise<
|
|
7
|
+
get: <T = any, R = import("axios").AxiosResponse<T, any, {}>, D = any>(url: string, config?: AxiosRequestConfig<D>) => Promise<R>;
|
|
8
|
+
delete: <T = unknown, D = unknown>(url: string, data?: D) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
9
|
+
patch: <T = any, R = import("axios").AxiosResponse<T, any, {}>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>) => Promise<R>;
|
|
10
|
+
post: <T = any, R = import("axios").AxiosResponse<T, any, {}>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>) => Promise<R>;
|
|
11
|
+
postUnauthorized: <T = unknown, D = unknown>(url: string, data?: D, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
12
|
+
put: <T = any, R = import("axios").AxiosResponse<T, any, {}>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>) => Promise<R>;
|
|
13
|
+
upload: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
14
|
+
uploadPut: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
16
15
|
};
|
|
17
16
|
//#endregion
|
|
18
17
|
export { authenticatedRequest, commonRequestConfig, Api as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general-api.js","names":[],"sources":["../../src/api/general-api.ts"],"sourcesContent":["// Copyright 2017 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 { AxiosError, AxiosProgressEvent, AxiosRequestConfig, GenericAbortSignal, InternalAxiosRequestConfig } from 'axios';\nimport axios, { isCancel } from 'axios';\nimport Cookies from 'universal-cookie';\n\nimport { cleanUp, getToken } from '../auth';\nimport { TIMEOUTS } from '../constants';\n\nconst cookies = new Cookies();\n\nconst unauthorizedRedirect = (error: AxiosError): Promise<never> => {\n if (!isCancel(error) && error.response?.status === 401 && getToken() && !window.location.pathname.endsWith('/subscription')) {\n // a new jwt might have been set by sso while the current request was in-flight with an old token\n // => reload instead of logging out\n if (cookies.get('JWT', { doNotParse: true })) {\n window.location.reload();\n return Promise.reject(error);\n }\n cleanUp();\n window.location.replace('/ui/');\n }\n return Promise.reject(error);\n};\n\nexport const commonRequestConfig: AxiosRequestConfig = { timeout: TIMEOUTS.refreshDefault, headers: { 'Content-Type': 'application/json' } };\n\nexport const authenticatedRequest = axios.create(commonRequestConfig);\nauthenticatedRequest.interceptors.response.use(res => res, unauthorizedRedirect);\nauthenticatedRequest.interceptors.request.use(\n (config: InternalAxiosRequestConfig) => {\n config.headers.Authorization = `Bearer ${getToken()}`;\n return config;\n },\n (error: AxiosError) => Promise.reject(error)\n);\n\nconst Api = {\n get: authenticatedRequest.get,\n delete: <T = unknown, D = unknown>(url: string, data?: D) => authenticatedRequest.request<T>({ method: 'delete', url, data }),\n patch: authenticatedRequest.patch,\n post: authenticatedRequest.post,\n postUnauthorized: <T = unknown, D = unknown>(url: string, data?: D, config: AxiosRequestConfig = {}) =>\n axios.post<T>(url, data, { ...commonRequestConfig, ...config }),\n put: authenticatedRequest.put,\n upload: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) =>\n authenticatedRequest.post<T>(url, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n onUploadProgress: progress,\n timeout: 0,\n signal: cancelSignal\n }),\n uploadPut: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) =>\n authenticatedRequest.put<T>(url, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n onUploadProgress: progress,\n timeout: 0,\n signal: cancelSignal\n })\n};\n\nexport default Api;\n"],"mappings":";;;;;AAoBA,MAAM,UAAU,IAAI,
|
|
1
|
+
{"version":3,"file":"general-api.js","names":[],"sources":["../../src/api/general-api.ts"],"sourcesContent":["// Copyright 2017 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 { AxiosError, AxiosProgressEvent, AxiosRequestConfig, GenericAbortSignal, InternalAxiosRequestConfig } from 'axios';\nimport axios, { isCancel } from 'axios';\nimport Cookies from 'universal-cookie';\n\nimport { cleanUp, getToken } from '../auth';\nimport { TIMEOUTS } from '../constants';\n\nconst cookies = new Cookies();\n\nconst unauthorizedRedirect = (error: AxiosError): Promise<never> => {\n if (!isCancel(error) && error.response?.status === 401 && getToken() && !window.location.pathname.endsWith('/subscription')) {\n // a new jwt might have been set by sso while the current request was in-flight with an old token\n // => reload instead of logging out\n if (cookies.get('JWT', { doNotParse: true })) {\n window.location.reload();\n return Promise.reject(error);\n }\n cleanUp();\n window.location.replace('/ui/');\n }\n return Promise.reject(error);\n};\n\nexport const commonRequestConfig: AxiosRequestConfig = { timeout: TIMEOUTS.refreshDefault, headers: { 'Content-Type': 'application/json' } };\n\nexport const authenticatedRequest = axios.create(commonRequestConfig);\nauthenticatedRequest.interceptors.response.use(res => res, unauthorizedRedirect);\nauthenticatedRequest.interceptors.request.use(\n (config: InternalAxiosRequestConfig) => {\n config.headers.Authorization = `Bearer ${getToken()}`;\n return config;\n },\n (error: AxiosError) => Promise.reject(error)\n);\n\nconst Api = {\n get: authenticatedRequest.get,\n delete: <T = unknown, D = unknown>(url: string, data?: D) => authenticatedRequest.request<T>({ method: 'delete', url, data }),\n patch: authenticatedRequest.patch,\n post: authenticatedRequest.post,\n postUnauthorized: <T = unknown, D = unknown>(url: string, data?: D, config: AxiosRequestConfig = {}) =>\n axios.post<T>(url, data, { ...commonRequestConfig, ...config }),\n put: authenticatedRequest.put,\n upload: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) =>\n authenticatedRequest.post<T>(url, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n onUploadProgress: progress,\n timeout: 0,\n signal: cancelSignal\n }),\n uploadPut: <T = unknown>(url: string, formData: FormData, progress: (event: AxiosProgressEvent) => void, cancelSignal: GenericAbortSignal) =>\n authenticatedRequest.put<T>(url, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n onUploadProgress: progress,\n timeout: 0,\n signal: cancelSignal\n })\n};\n\nexport default Api;\n"],"mappings":";;;;;AAoBA,MAAM,UAAU,IAAI,QAAQ;AAE5B,MAAM,wBAAwB,UAAsC;CAClE,IAAI,CAAC,SAAS,KAAK,KAAK,MAAM,UAAU,WAAW,OAAO,SAAS,KAAK,CAAC,OAAO,SAAS,SAAS,SAAS,eAAe,GAAG;EAG3H,IAAI,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,GAAG;GAC5C,OAAO,SAAS,OAAO;GACvB,OAAO,QAAQ,OAAO,KAAK;EAC7B;EACA,QAAQ;EACR,OAAO,SAAS,QAAQ,MAAM;CAChC;CACA,OAAO,QAAQ,OAAO,KAAK;AAC7B;AAEA,MAAa,sBAA0C;CAAE,SAAS,SAAS;CAAgB,SAAS,EAAE,gBAAgB,mBAAmB;AAAE;AAE3I,MAAa,uBAAuB,MAAM,OAAO,mBAAmB;AACpE,qBAAqB,aAAa,SAAS,KAAI,QAAO,KAAK,oBAAoB;AAC/E,qBAAqB,aAAa,QAAQ,KACvC,WAAuC;CACtC,OAAO,QAAQ,gBAAgB,UAAU,SAAS;CAClD,OAAO;AACT,IACC,UAAsB,QAAQ,OAAO,KAAK,CAC7C;AAEA,MAAM,MAAM;CACV,KAAK,qBAAqB;CAC1B,SAAmC,KAAa,SAAa,qBAAqB,QAAW;EAAE,QAAQ;EAAU;EAAK;CAAK,CAAC;CAC5H,OAAO,qBAAqB;CAC5B,MAAM,qBAAqB;CAC3B,mBAA6C,KAAa,MAAU,SAA6B,CAAC,MAChG,MAAM,KAAQ,KAAK,MAAM;EAAE,GAAG;EAAqB,GAAG;CAAO,CAAC;CAChE,KAAK,qBAAqB;CAC1B,SAAsB,KAAa,UAAoB,UAA+C,iBACpG,qBAAqB,KAAQ,KAAK,UAAU;EAC1C,SAAS,EAAE,gBAAgB,sBAAsB;EACjD,kBAAkB;EAClB,SAAS;EACT,QAAQ;CACV,CAAC;CACH,YAAyB,KAAa,UAAoB,UAA+C,iBACvG,qBAAqB,IAAO,KAAK,UAAU;EACzC,SAAS,EAAE,gBAAgB,sBAAsB;EACjD,kBAAkB;EAClB,SAAS;EACT,QAAQ;CACV,CAAC;AACL"}
|
package/dist/api/users-api.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-api.cjs","names":["commonRequestConfig","getToken"],"sources":["../../src/api/users-api.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 type { LoginOptions } from '@northern.tech/types/MenderTypes';\nimport axios from 'axios';\n\nimport { getToken } from '../auth';\nimport { commonRequestConfig } from './general-api';\n\ntype PostLoginBody = LoginOptions & {\n email: string;\n password?: string;\n};\n\ntype VerifyTFAData = Pick<LoginOptions, 'token2fa'>;\n\nconst Api = {\n postLogin: (url: string, { email: username, password = '', ...body }: PostLoginBody) =>\n axios\n .post(url, body, { ...commonRequestConfig, auth: { username, password } })\n .then(res => ({ text: res.data as string, code: res.status, contentType: res.headers?.['content-type'] as string | undefined })),\n putVerifyTFA: (url: string, userData: VerifyTFAData) => {\n let body: VerifyTFAData = {};\n if (Object.hasOwn(userData, 'token2fa')) {\n body = { token2fa: userData.token2fa };\n }\n return axios.put(url, body, { ...commonRequestConfig, headers: { ...commonRequestConfig.headers, Authorization: `Bearer ${getToken()}` } });\n }\n};\n\nexport default Api;\n"],"mappings":";;;;;;AA0BA,MAAM,MAAM;CACV,YAAY,KAAa,EAAE,OAAO,UAAU,WAAW,IAAI,GAAG,WAC5D,MAAA,QACG,KAAK,KAAK,MAAM;EAAE,GAAGA,wBAAAA;EAAqB,MAAM;GAAE;GAAU;
|
|
1
|
+
{"version":3,"file":"users-api.cjs","names":["commonRequestConfig","getToken"],"sources":["../../src/api/users-api.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 type { LoginOptions } from '@northern.tech/types/MenderTypes';\nimport axios from 'axios';\n\nimport { getToken } from '../auth';\nimport { commonRequestConfig } from './general-api';\n\ntype PostLoginBody = LoginOptions & {\n email: string;\n password?: string;\n};\n\ntype VerifyTFAData = Pick<LoginOptions, 'token2fa'>;\n\nconst Api = {\n postLogin: (url: string, { email: username, password = '', ...body }: PostLoginBody) =>\n axios\n .post(url, body, { ...commonRequestConfig, auth: { username, password } })\n .then(res => ({ text: res.data as string, code: res.status, contentType: res.headers?.['content-type'] as string | undefined })),\n putVerifyTFA: (url: string, userData: VerifyTFAData) => {\n let body: VerifyTFAData = {};\n if (Object.hasOwn(userData, 'token2fa')) {\n body = { token2fa: userData.token2fa };\n }\n return axios.put(url, body, { ...commonRequestConfig, headers: { ...commonRequestConfig.headers, Authorization: `Bearer ${getToken()}` } });\n }\n};\n\nexport default Api;\n"],"mappings":";;;;;;AA0BA,MAAM,MAAM;CACV,YAAY,KAAa,EAAE,OAAO,UAAU,WAAW,IAAI,GAAG,WAC5D,MAAA,QACG,KAAK,KAAK,MAAM;EAAE,GAAGA,wBAAAA;EAAqB,MAAM;GAAE;GAAU;EAAS;CAAE,CAAC,EACxE,MAAK,SAAQ;EAAE,MAAM,IAAI;EAAgB,MAAM,IAAI;EAAQ,aAAa,IAAI,UAAU;CAAsC,EAAE;CACnI,eAAe,KAAa,aAA4B;EACtD,IAAI,OAAsB,CAAC;EAC3B,IAAI,OAAO,OAAO,UAAU,UAAU,GACpC,OAAO,EAAE,UAAU,SAAS,SAAS;EAEvC,OAAO,MAAA,QAAM,IAAI,KAAK,MAAM;GAAE,GAAGA,wBAAAA;GAAqB,SAAS;IAAE,GAAGA,wBAAAA,oBAAoB;IAAS,eAAe,UAAUC,aAAAA,SAAS;GAAI;EAAE,CAAC;CAC5I;AACF"}
|
package/dist/api/users-api.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LoginOptions } from "@northern.tech/types/MenderTypes";
|
|
2
|
-
import * as _$axios from "axios";
|
|
3
2
|
|
|
4
3
|
//#region src/api/users-api.d.ts
|
|
5
4
|
type PostLoginBody = LoginOptions & {
|
|
@@ -17,7 +16,7 @@ declare const Api: {
|
|
|
17
16
|
code: number;
|
|
18
17
|
contentType: string | undefined;
|
|
19
18
|
}>;
|
|
20
|
-
putVerifyTFA: (url: string, userData: VerifyTFAData) => Promise<
|
|
19
|
+
putVerifyTFA: (url: string, userData: VerifyTFAData) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
21
20
|
};
|
|
22
21
|
export = Api;
|
|
23
22
|
//# sourceMappingURL=users-api.d.cts.map
|
package/dist/api/users-api.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$axios from "axios";
|
|
2
1
|
import { LoginOptions } from "@northern.tech/types/MenderTypes";
|
|
3
2
|
|
|
4
3
|
//#region src/api/users-api.d.ts
|
|
@@ -17,7 +16,7 @@ declare const Api: {
|
|
|
17
16
|
code: number;
|
|
18
17
|
contentType: string | undefined;
|
|
19
18
|
}>;
|
|
20
|
-
putVerifyTFA: (url: string, userData: VerifyTFAData) => Promise<
|
|
19
|
+
putVerifyTFA: (url: string, userData: VerifyTFAData) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
21
20
|
};
|
|
22
21
|
//#endregion
|
|
23
22
|
export { Api as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-api.js","names":[],"sources":["../../src/api/users-api.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 type { LoginOptions } from '@northern.tech/types/MenderTypes';\nimport axios from 'axios';\n\nimport { getToken } from '../auth';\nimport { commonRequestConfig } from './general-api';\n\ntype PostLoginBody = LoginOptions & {\n email: string;\n password?: string;\n};\n\ntype VerifyTFAData = Pick<LoginOptions, 'token2fa'>;\n\nconst Api = {\n postLogin: (url: string, { email: username, password = '', ...body }: PostLoginBody) =>\n axios\n .post(url, body, { ...commonRequestConfig, auth: { username, password } })\n .then(res => ({ text: res.data as string, code: res.status, contentType: res.headers?.['content-type'] as string | undefined })),\n putVerifyTFA: (url: string, userData: VerifyTFAData) => {\n let body: VerifyTFAData = {};\n if (Object.hasOwn(userData, 'token2fa')) {\n body = { token2fa: userData.token2fa };\n }\n return axios.put(url, body, { ...commonRequestConfig, headers: { ...commonRequestConfig.headers, Authorization: `Bearer ${getToken()}` } });\n }\n};\n\nexport default Api;\n"],"mappings":";;;;AA0BA,MAAM,MAAM;CACV,YAAY,KAAa,EAAE,OAAO,UAAU,WAAW,IAAI,GAAG,WAC5D,MACG,KAAK,KAAK,MAAM;EAAE,GAAG;EAAqB,MAAM;GAAE;GAAU;
|
|
1
|
+
{"version":3,"file":"users-api.js","names":[],"sources":["../../src/api/users-api.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 type { LoginOptions } from '@northern.tech/types/MenderTypes';\nimport axios from 'axios';\n\nimport { getToken } from '../auth';\nimport { commonRequestConfig } from './general-api';\n\ntype PostLoginBody = LoginOptions & {\n email: string;\n password?: string;\n};\n\ntype VerifyTFAData = Pick<LoginOptions, 'token2fa'>;\n\nconst Api = {\n postLogin: (url: string, { email: username, password = '', ...body }: PostLoginBody) =>\n axios\n .post(url, body, { ...commonRequestConfig, auth: { username, password } })\n .then(res => ({ text: res.data as string, code: res.status, contentType: res.headers?.['content-type'] as string | undefined })),\n putVerifyTFA: (url: string, userData: VerifyTFAData) => {\n let body: VerifyTFAData = {};\n if (Object.hasOwn(userData, 'token2fa')) {\n body = { token2fa: userData.token2fa };\n }\n return axios.put(url, body, { ...commonRequestConfig, headers: { ...commonRequestConfig.headers, Authorization: `Bearer ${getToken()}` } });\n }\n};\n\nexport default Api;\n"],"mappings":";;;;AA0BA,MAAM,MAAM;CACV,YAAY,KAAa,EAAE,OAAO,UAAU,WAAW,IAAI,GAAG,WAC5D,MACG,KAAK,KAAK,MAAM;EAAE,GAAG;EAAqB,MAAM;GAAE;GAAU;EAAS;CAAE,CAAC,EACxE,MAAK,SAAQ;EAAE,MAAM,IAAI;EAAgB,MAAM,IAAI;EAAQ,aAAa,IAAI,UAAU;CAAsC,EAAE;CACnI,eAAe,KAAa,aAA4B;EACtD,IAAI,OAAsB,CAAC;EAC3B,IAAI,OAAO,OAAO,UAAU,UAAU,GACpC,OAAO,EAAE,UAAU,SAAS,SAAS;EAEvC,OAAO,MAAM,IAAI,KAAK,MAAM;GAAE,GAAG;GAAqB,SAAS;IAAE,GAAG,oBAAoB;IAAS,eAAe,UAAU,SAAS;GAAI;EAAE,CAAC;CAC5I;AACF"}
|