@northern.tech/store 0.46.0 → 0.46.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.d.cts +6 -6
- package/dist/actions.d.ts +6 -6
- package/dist/api/general-api.js +1 -1
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.d.cts +1 -1
- package/dist/appSlice/mocks.d.ts +1 -1
- package/dist/appSlice/selectors.cjs +1 -2
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +7 -7
- package/dist/appSlice/selectors.d.ts +7 -7
- package/dist/appSlice/selectors.js +1 -2
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.d.cts +2 -2
- package/dist/appSlice/thunks.d.ts +2 -2
- package/dist/auth.cjs +1 -0
- 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 +2 -1
- package/dist/auth.js.map +1 -1
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.d.cts +9 -9
- package/dist/commonSelectors.d.ts +9 -9
- package/dist/commonSelectors.js +1 -1
- package/dist/{constants-B_H4squx.d.ts → constants-BJuY-ODE.d.ts} +3 -3
- package/dist/{constants-Rl3FJzFf.d.cts → constants-C2O55iZu.d.cts} +3 -3
- package/dist/{constants-eWaA3HCq.js → constants-D5hACLhF.js} +3 -3
- package/dist/{constants-eWaA3HCq.js.map → constants-D5hACLhF.js.map} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/deploymentsSlice/constants.js +1 -1
- package/dist/deploymentsSlice/index.js +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +7 -7
- package/dist/deploymentsSlice/selectors.d.ts +7 -7
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +4 -4
- package/dist/deploymentsSlice/thunks.d.ts +4 -4
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/constants.js +1 -1
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js +1 -1
- package/dist/devicesSlice/mocks.js +1 -1
- package/dist/devicesSlice/selectors.d.cts +7 -7
- package/dist/devicesSlice/selectors.d.ts +7 -7
- package/dist/devicesSlice/selectors.js +1 -1
- package/dist/devicesSlice/thunks.d.cts +4 -4
- package/dist/devicesSlice/thunks.d.ts +4 -4
- package/dist/{index-DgiMpzq3.d.ts → index--SKVGToc.d.ts} +2 -2
- package/dist/{index-DeOpb2oK.d.cts → index-BKU1G9-x.d.cts} +2 -2
- package/dist/{index-CGT1O9T5.d.ts → index-BMsafOyJ.d.ts} +2 -2
- package/dist/{index-ChKTa1aL.d.ts → index-BVNS-Aut.d.ts} +2 -2
- package/dist/{index-Ctj2r57a.d.cts → index-BfmRpbiJ.d.cts} +2 -2
- package/dist/{index-BAGyeC-q.d.ts → index-CRqnH_go.d.ts} +2 -2
- package/dist/{index-Cf6_W5Y7.d.cts → index-CqhXqGLt.d.cts} +2 -2
- package/dist/{index-BpamudGf.d.ts → index-D9GJhX1I.d.ts} +2 -2
- package/dist/{index-C_LGDJN2.d.cts → index-HjOSTTGF.d.cts} +2 -2
- package/dist/{index-DnKVKM0G.d.cts → index-KxRmyFLr.d.cts} +2 -2
- package/dist/{index-ExguKUh-.d.cts → index-fGVC5s1C.d.cts} +2 -2
- package/dist/{index-Bs0c1-WY.d.ts → index-xxqlerg5.d.ts} +2 -2
- package/dist/locationutils.d.cts +2 -2
- package/dist/locationutils.d.ts +2 -2
- package/dist/locationutils.js +1 -1
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js +1 -1
- package/dist/monitorSlice/mocks.d.cts +1 -1
- package/dist/monitorSlice/mocks.d.ts +1 -1
- package/dist/monitorSlice/mocks.js +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.d.cts +4 -4
- package/dist/monitorSlice/thunks.d.ts +4 -4
- package/dist/monitorSlice/thunks.js +1 -1
- package/dist/onboardingSlice/selectors.d.cts +1 -1
- package/dist/onboardingSlice/selectors.d.ts +1 -1
- package/dist/onboardingSlice/thunks.d.cts +3 -3
- package/dist/onboardingSlice/thunks.d.ts +3 -3
- package/dist/organizationSlice/constants.js +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js +1 -1
- package/dist/organizationSlice/mocks.d.cts +2 -2
- package/dist/organizationSlice/mocks.d.ts +2 -2
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.cjs +6 -6
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +14 -14
- package/dist/organizationSlice/selectors.d.ts +14 -14
- package/dist/organizationSlice/selectors.js +7 -7
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +6 -4
- package/dist/organizationSlice/thunks.d.ts +6 -4
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.d.cts +7 -7
- package/dist/releasesSlice/selectors.d.ts +7 -7
- package/dist/releasesSlice/thunks.d.cts +4 -4
- package/dist/releasesSlice/thunks.d.ts +4 -4
- package/dist/releasesSlice/thunks.js +1 -1
- package/dist/selectors.cjs +1 -1
- package/dist/selectors.d.cts +2 -2
- package/dist/selectors.d.ts +2 -2
- package/dist/selectors.js +2 -2
- package/dist/sockethook.js +1 -1
- package/dist/{store-CmvNnqoc.d.ts → store-DLp6ajT8.d.ts} +9 -9
- package/dist/{store-C-W8nPdd.d.cts → store-Dw8Uo_Df.d.cts} +9 -9
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/storehooks.d.cts +2 -2
- package/dist/storehooks.d.ts +2 -2
- package/dist/storehooks.js +1 -1
- package/dist/thunks.cjs +7 -4
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +8 -5
- package/dist/thunks.js.map +1 -1
- package/dist/{types-B80ckxiy.d.cts → types-B67YW1jV.d.cts} +2 -2
- package/dist/{types-B3qGQoMx.d.ts → types-DY0J79yF.d.ts} +2 -2
- package/dist/usersSlice/constants.js +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js +1 -1
- package/dist/usersSlice/mocks.d.cts +1 -1
- package/dist/usersSlice/mocks.d.ts +1 -1
- package/dist/usersSlice/mocks.js +1 -1
- package/dist/usersSlice/selectors.d.cts +7 -7
- package/dist/usersSlice/selectors.d.ts +7 -7
- package/dist/usersSlice/selectors.js +1 -1
- package/dist/usersSlice/thunks.d.cts +4 -4
- package/dist/usersSlice/thunks.d.ts +4 -4
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
package/dist/actions.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ht as DeviceAuthState, ut as AlertChannelKey } from "./constants-
|
|
1
|
+
import { ht as DeviceAuthState, ut as AlertChannelKey } from "./constants-C2O55iZu.cjs";
|
|
2
2
|
import { i as ReadState } from "./constants-D8-yUk19.cjs";
|
|
3
|
-
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index-
|
|
4
|
-
import { c as SoftwareList, i as Release, n as Manifest, r as ManifestsList } from "./index-
|
|
5
|
-
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-
|
|
3
|
+
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index-CqhXqGLt.cjs";
|
|
4
|
+
import { c as SoftwareList, i as Release, n as Manifest, r as ManifestsList } from "./index-fGVC5s1C.cjs";
|
|
5
|
+
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-B67YW1jV.cjs";
|
|
6
6
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-CoObjWL4.cjs";
|
|
7
7
|
import { i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "./index-mvxjivTJ.cjs";
|
|
8
|
-
import { i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "./index-
|
|
9
|
-
import { a as Upload, i as SnackbarContent } from "./index-
|
|
8
|
+
import { i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "./index-KxRmyFLr.cjs";
|
|
9
|
+
import { a as Upload, i as SnackbarContent } from "./index-BKU1G9-x.cjs";
|
|
10
10
|
//#region src/actions.d.ts
|
|
11
11
|
declare const _default: {
|
|
12
12
|
receivedQrCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "users/receivedQrCode">;
|
package/dist/actions.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ht as DeviceAuthState, ut as AlertChannelKey } from "./constants-
|
|
1
|
+
import { ht as DeviceAuthState, ut as AlertChannelKey } from "./constants-BJuY-ODE.js";
|
|
2
2
|
import { i as ReadState } from "./constants-D8-yUk19.js";
|
|
3
|
-
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index
|
|
4
|
-
import { c as SoftwareList, i as Release, n as Manifest, r as ManifestsList } from "./index-
|
|
5
|
-
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-
|
|
3
|
+
import { a as UserSettings, i as UserSession, n as GlobalSettings, r as User, t as CustomColumn } from "./index--SKVGToc.js";
|
|
4
|
+
import { c as SoftwareList, i as Release, n as Manifest, r as ManifestsList } from "./index-BMsafOyJ.js";
|
|
5
|
+
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "./types-DY0J79yF.js";
|
|
6
6
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-CoObjWL4.js";
|
|
7
7
|
import { i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "./index-B8td4-rY.js";
|
|
8
|
-
import { i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "./index-
|
|
9
|
-
import { a as Upload, i as SnackbarContent } from "./index-
|
|
8
|
+
import { i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "./index-D9GJhX1I.js";
|
|
9
|
+
import { a as Upload, i as SnackbarContent } from "./index-xxqlerg5.js";
|
|
10
10
|
//#region src/actions.d.ts
|
|
11
11
|
declare const _default: {
|
|
12
12
|
receivedQrCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "users/receivedQrCode">;
|
package/dist/api/general-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Upload, c as appSlice, i as SnackbarContent, l as initialState, n as SearchState, o as _default, r as SentryConfig, s as actions, t as AppSliceType, u as sliceName } from "../index-
|
|
1
|
+
import { a as Upload, c as appSlice, i as SnackbarContent, l as initialState, n as SearchState, o as _default, r as SentryConfig, s as actions, t as AppSliceType, u as sliceName } from "../index-BKU1G9-x.cjs";
|
|
2
2
|
export { AppSliceType, SearchState, SentryConfig, SnackbarContent, Upload, actions, appSlice, _default as default, initialState, sliceName };
|
package/dist/appSlice/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Upload, c as appSlice, i as SnackbarContent, l as initialState, n as SearchState, o as _default, r as SentryConfig, s as actions, t as AppSliceType, u as sliceName } from "../index-
|
|
1
|
+
import { a as Upload, c as appSlice, i as SnackbarContent, l as initialState, n as SearchState, o as _default, r as SentryConfig, s as actions, t as AppSliceType, u as sliceName } from "../index-xxqlerg5.js";
|
|
2
2
|
export { AppSliceType, SearchState, SentryConfig, SnackbarContent, Upload, actions, appSlice, _default as default, initialState, sliceName };
|
package/dist/appSlice/index.js
CHANGED
package/dist/appSlice/mocks.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _reduxjs_toolkit = require("@reduxjs/toolkit");
|
|
3
|
-
let _northern_tech_utils_helpers = require("@northern.tech/utils/helpers");
|
|
4
3
|
//#region src/appSlice/selectors.ts
|
|
5
4
|
const getDocsVersion = (state) => state.app.docsVersion;
|
|
6
5
|
const getFeatures = (state) => state.app.features;
|
|
@@ -20,7 +19,7 @@ const getFeedbackProbability = (state) => state.app.feedbackProbability;
|
|
|
20
19
|
const getAppInitDone = (state) => state.app.appInitDone;
|
|
21
20
|
const getIsUploading = (0, _reduxjs_toolkit.createSelector)([getUploads], (uploadsById) => !!Object.keys(uploadsById).length);
|
|
22
21
|
const getSearchedDevices = (0, _reduxjs_toolkit.createSelector)([getSearchState], ({ deviceIds }) => deviceIds);
|
|
23
|
-
const getIsPreview = (0, _reduxjs_toolkit.createSelector)([getVersionInformation], ({ version }) =>
|
|
22
|
+
const getIsPreview = (0, _reduxjs_toolkit.createSelector)([getVersionInformation], ({ version }) => version === "next");
|
|
24
23
|
//#endregion
|
|
25
24
|
exports.getAppInitDone = getAppInitDone;
|
|
26
25
|
exports.getCommit = getCommit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.cjs","names":["createSelector"
|
|
1
|
+
{"version":3,"file":"selectors.cjs","names":["createSelector"],"sources":["../../src/appSlice/selectors.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 { createSelector } from '@reduxjs/toolkit';\n\nimport type { RootState } from '../store';\n\nexport const getDocsVersion = (state: RootState) => state.app.docsVersion;\nexport const getFeatures = (state: RootState) => state.app.features;\nexport const getVersionInformation = (state: RootState) => state.app.versionInformation;\nexport const getSearchState = (state: RootState) => state.app.searchState;\nexport const getUploads = (state: RootState) => state.app.uploadsById;\nexport const getSnackbar = (state: RootState) => state.app.snackbar;\nexport const getHostAddress = (state: RootState) => state.app.hostAddress;\nexport const getHostedAnnouncement = (state: RootState) => state.app.hostedAnnouncement;\nexport const getRecaptchaKey = (state: RootState) => state.app.recaptchaSiteKey;\nexport const getStripeKey = (state: RootState) => state.app.stripeAPIKey;\nexport const getTrackerCode = (state: RootState) => state.app.trackerCode;\nexport const getSentryConfig = (state: RootState) => state.app.sentry;\nexport const getCommit = (state: RootState) => state.app.commit;\nexport const getIsFirstLogin = (state: RootState) => state.app.firstLoginAfterSignup;\nexport const getFeedbackProbability = (state: RootState) => state.app.feedbackProbability;\nexport const getAppInitDone = (state: RootState) => state.app.appInitDone;\n\nexport const getIsUploading = createSelector([getUploads], uploadsById => !!Object.keys(uploadsById).length);\nexport const getSearchedDevices = createSelector([getSearchState], ({ deviceIds }) => deviceIds);\n\nexport const getIsPreview = createSelector([getVersionInformation], ({ version }) => version === 'next');\n"],"mappings":";;;AAiBA,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,cAAc,UAAqB,MAAM,IAAI;AAC1D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,gBAAgB,UAAqB,MAAM,IAAI;AAC5D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,aAAa,UAAqB,MAAM,IAAI;AACzD,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,0BAA0B,UAAqB,MAAM,IAAI;AACtE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAE9D,MAAa,kBAAA,GAAiBA,iBAAAA,eAAAA,CAAe,CAAC,UAAU,IAAG,gBAAe,CAAC,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,MAAM;AAC3G,MAAa,sBAAA,GAAqBA,iBAAAA,eAAAA,CAAe,CAAC,cAAc,IAAI,EAAE,gBAAgB,SAAS;AAE/F,MAAa,gBAAA,GAAeA,iBAAAA,eAAAA,CAAe,CAAC,qBAAqB,IAAI,EAAE,cAAc,YAAY,MAAM"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { a as ReleaseSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-CqhXqGLt.cjs";
|
|
2
|
+
import { a as ReleaseSliceType } from "../index-fGVC5s1C.cjs";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-mvxjivTJ.cjs";
|
|
5
|
-
import { c as DeviceSliceType } from "../index-
|
|
6
|
-
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-
|
|
7
|
-
import { t as MonitorSliceType } from "../index-
|
|
8
|
-
import { t as OrganizationSliceType } from "../index-
|
|
9
|
-
import { r as RootState } from "../store-
|
|
5
|
+
import { c as DeviceSliceType } from "../index-KxRmyFLr.cjs";
|
|
6
|
+
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-BKU1G9-x.cjs";
|
|
7
|
+
import { t as MonitorSliceType } from "../index-BfmRpbiJ.cjs";
|
|
8
|
+
import { t as OrganizationSliceType } from "../index-HjOSTTGF.cjs";
|
|
9
|
+
import { r as RootState } from "../store-Dw8Uo_Df.cjs";
|
|
10
10
|
//#region src/appSlice/selectors.d.ts
|
|
11
11
|
declare const getDocsVersion: (state: RootState) => string;
|
|
12
12
|
declare const getFeatures: (state: RootState) => Record<string, boolean>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index
|
|
2
|
-
import { a as ReleaseSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index--SKVGToc.js";
|
|
2
|
+
import { a as ReleaseSliceType } from "../index-BMsafOyJ.js";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-B8td4-rY.js";
|
|
5
|
-
import { c as DeviceSliceType } from "../index-
|
|
6
|
-
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-
|
|
7
|
-
import { t as MonitorSliceType } from "../index-
|
|
8
|
-
import { t as OrganizationSliceType } from "../index-
|
|
9
|
-
import { r as RootState } from "../store-
|
|
5
|
+
import { c as DeviceSliceType } from "../index-D9GJhX1I.js";
|
|
6
|
+
import { a as Upload, i as SnackbarContent, n as SearchState, r as SentryConfig, t as AppSliceType } from "../index-xxqlerg5.js";
|
|
7
|
+
import { t as MonitorSliceType } from "../index-CRqnH_go.js";
|
|
8
|
+
import { t as OrganizationSliceType } from "../index-BVNS-Aut.js";
|
|
9
|
+
import { r as RootState } from "../store-DLp6ajT8.js";
|
|
10
10
|
//#region src/appSlice/selectors.d.ts
|
|
11
11
|
declare const getDocsVersion: (state: RootState) => string;
|
|
12
12
|
declare const getFeatures: (state: RootState) => Record<string, boolean>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createSelector } from "@reduxjs/toolkit";
|
|
2
|
-
import { versionCompare } from "@northern.tech/utils/helpers";
|
|
3
2
|
//#region src/appSlice/selectors.ts
|
|
4
3
|
const getDocsVersion = (state) => state.app.docsVersion;
|
|
5
4
|
const getFeatures = (state) => state.app.features;
|
|
@@ -19,7 +18,7 @@ const getFeedbackProbability = (state) => state.app.feedbackProbability;
|
|
|
19
18
|
const getAppInitDone = (state) => state.app.appInitDone;
|
|
20
19
|
const getIsUploading = createSelector([getUploads], (uploadsById) => !!Object.keys(uploadsById).length);
|
|
21
20
|
const getSearchedDevices = createSelector([getSearchState], ({ deviceIds }) => deviceIds);
|
|
22
|
-
const getIsPreview = createSelector([getVersionInformation], ({ version }) =>
|
|
21
|
+
const getIsPreview = createSelector([getVersionInformation], ({ version }) => version === "next");
|
|
23
22
|
//#endregion
|
|
24
23
|
export { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation };
|
|
25
24
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.js","names":[],"sources":["../../src/appSlice/selectors.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 {
|
|
1
|
+
{"version":3,"file":"selectors.js","names":[],"sources":["../../src/appSlice/selectors.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 { createSelector } from '@reduxjs/toolkit';\n\nimport type { RootState } from '../store';\n\nexport const getDocsVersion = (state: RootState) => state.app.docsVersion;\nexport const getFeatures = (state: RootState) => state.app.features;\nexport const getVersionInformation = (state: RootState) => state.app.versionInformation;\nexport const getSearchState = (state: RootState) => state.app.searchState;\nexport const getUploads = (state: RootState) => state.app.uploadsById;\nexport const getSnackbar = (state: RootState) => state.app.snackbar;\nexport const getHostAddress = (state: RootState) => state.app.hostAddress;\nexport const getHostedAnnouncement = (state: RootState) => state.app.hostedAnnouncement;\nexport const getRecaptchaKey = (state: RootState) => state.app.recaptchaSiteKey;\nexport const getStripeKey = (state: RootState) => state.app.stripeAPIKey;\nexport const getTrackerCode = (state: RootState) => state.app.trackerCode;\nexport const getSentryConfig = (state: RootState) => state.app.sentry;\nexport const getCommit = (state: RootState) => state.app.commit;\nexport const getIsFirstLogin = (state: RootState) => state.app.firstLoginAfterSignup;\nexport const getFeedbackProbability = (state: RootState) => state.app.feedbackProbability;\nexport const getAppInitDone = (state: RootState) => state.app.appInitDone;\n\nexport const getIsUploading = createSelector([getUploads], uploadsById => !!Object.keys(uploadsById).length);\nexport const getSearchedDevices = createSelector([getSearchState], ({ deviceIds }) => deviceIds);\n\nexport const getIsPreview = createSelector([getVersionInformation], ({ version }) => version === 'next');\n"],"mappings":";;AAiBA,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,cAAc,UAAqB,MAAM,IAAI;AAC1D,MAAa,eAAe,UAAqB,MAAM,IAAI;AAC3D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,yBAAyB,UAAqB,MAAM,IAAI;AACrE,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,gBAAgB,UAAqB,MAAM,IAAI;AAC5D,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAC9D,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,aAAa,UAAqB,MAAM,IAAI;AACzD,MAAa,mBAAmB,UAAqB,MAAM,IAAI;AAC/D,MAAa,0BAA0B,UAAqB,MAAM,IAAI;AACtE,MAAa,kBAAkB,UAAqB,MAAM,IAAI;AAE9D,MAAa,iBAAiB,eAAe,CAAC,UAAU,IAAG,gBAAe,CAAC,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,MAAM;AAC3G,MAAa,qBAAqB,eAAe,CAAC,cAAc,IAAI,EAAE,gBAAgB,SAAS;AAE/F,MAAa,eAAe,eAAe,CAAC,qBAAqB,IAAI,EAAE,cAAc,YAAY,MAAM"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as SearchState } from "../index-
|
|
2
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
1
|
+
import { n as SearchState } from "../index-BKU1G9-x.cjs";
|
|
2
|
+
import { r as RootState, t as AppDispatch } from "../store-Dw8Uo_Df.cjs";
|
|
3
3
|
//#region src/appSlice/thunks.d.ts
|
|
4
4
|
declare const setFirstLoginAfterSignup: import("@reduxjs/toolkit").AsyncThunk<void, boolean, {
|
|
5
5
|
dispatch: AppDispatch;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as SearchState } from "../index-
|
|
2
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
1
|
+
import { n as SearchState } from "../index-xxqlerg5.js";
|
|
2
|
+
import { r as RootState, t as AppDispatch } from "../store-DLp6ajT8.js";
|
|
3
3
|
//#region src/appSlice/thunks.d.ts
|
|
4
4
|
declare const setFirstLoginAfterSignup: import("@reduxjs/toolkit").AsyncThunk<void, boolean, {
|
|
5
5
|
dispatch: AppDispatch;
|
package/dist/auth.cjs
CHANGED
|
@@ -48,6 +48,7 @@ const cleanUp = () => {
|
|
|
48
48
|
cookies.remove("JWT", { path: "/" });
|
|
49
49
|
window.localStorage.removeItem("JWT");
|
|
50
50
|
window.localStorage.removeItem("oauth");
|
|
51
|
+
window.localStorage.removeItem(require_constants.settingsKeys.colorScheme);
|
|
51
52
|
};
|
|
52
53
|
const updateMaxAge = ({ expiresAt, token }) => {
|
|
53
54
|
const oAuthExpiration = Number(window.localStorage.getItem("oauth"));
|
package/dist/auth.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.cjs","names":["Cookies","maxSessionAge","TIMEOUTS"],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;;;;;AAkBA,MAAM,UAAU,IAAIA,iBAAAA,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;
|
|
1
|
+
{"version":3,"file":"auth.cjs","names":["Cookies","settingsKeys","maxSessionAge","TIMEOUTS"],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge, settingsKeys } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n window.localStorage.removeItem(settingsKeys.colorScheme);\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;;;;;AAkBA,MAAM,UAAU,IAAIA,iBAAAA,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;CACtC,OAAO,aAAa,WAAWC,kBAAAA,aAAa,WAAW;AACzD;AAEA,MAAa,gBAAgB,EAAE,WAAW,YAAY;CACpD,MAAM,kBAAkB,OAAO,OAAO,aAAa,QAAQ,OAAO,CAAC;CACnE,IAAI,kBAAkB;CACtB,IAAI,iBAAiB;EAEnB,kBAAkB,mBADL,KAAK,IAAI,IAAIC,+BAAAA,gBAAgBC,kBAAAA,SAAS;EAEnD,IAAI,iBACF,OAAO,aAAa,WAAW,OAAO;CAE1C;CACA,IAAI,SAAS,cAAc,CAAC,mBAAmB,kBAAkB;EAC/D,MAAM,6BAAa,IAAI,KAAK;EAC5B,WAAW,WAAW,WAAW,WAAW,IAAID,+BAAAA,aAAa;EAC7D,eAAe;GAAE;GAAO,WAAW,WAAW,YAAY;EAAE,CAAC;CAC/D;AACF"}
|
package/dist/auth.d.cts
CHANGED
package/dist/auth.d.ts
CHANGED
package/dist/auth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as maxSessionAge, Pt as TIMEOUTS } from "./constants-
|
|
1
|
+
import { M as maxSessionAge, Pt as TIMEOUTS, Q as settingsKeys } from "./constants-D5hACLhF.js";
|
|
2
2
|
import Cookies from "universal-cookie";
|
|
3
3
|
//#region src/auth.ts
|
|
4
4
|
const cookies = new Cookies();
|
|
@@ -44,6 +44,7 @@ const cleanUp = () => {
|
|
|
44
44
|
cookies.remove("JWT", { path: "/" });
|
|
45
45
|
window.localStorage.removeItem("JWT");
|
|
46
46
|
window.localStorage.removeItem("oauth");
|
|
47
|
+
window.localStorage.removeItem(settingsKeys.colorScheme);
|
|
47
48
|
};
|
|
48
49
|
const updateMaxAge = ({ expiresAt, token }) => {
|
|
49
50
|
const oAuthExpiration = Number(window.localStorage.getItem("oauth"));
|
package/dist/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;AAkBA,MAAM,UAAU,IAAI,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;
|
|
1
|
+
{"version":3,"file":"auth.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge, settingsKeys } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n window.localStorage.removeItem(settingsKeys.colorScheme);\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;AAkBA,MAAM,UAAU,IAAI,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;CACtC,OAAO,aAAa,WAAW,aAAa,WAAW;AACzD;AAEA,MAAa,gBAAgB,EAAE,WAAW,YAAY;CACpD,MAAM,kBAAkB,OAAO,OAAO,aAAa,QAAQ,OAAO,CAAC;CACnE,IAAI,kBAAkB;CACtB,IAAI,iBAAiB;EAEnB,kBAAkB,mBADL,KAAK,IAAI,IAAI,gBAAgB,SAAS;EAEnD,IAAI,iBACF,OAAO,aAAa,WAAW,OAAO;CAE1C;CACA,IAAI,SAAS,cAAc,CAAC,mBAAmB,kBAAkB;EAC/D,MAAM,6BAAa,IAAI,KAAK;EAC5B,WAAW,WAAW,WAAW,WAAW,IAAI,aAAa;EAC7D,eAAe;GAAE;GAAO,WAAW,WAAW,YAAY;EAAE,CAAC;CAC/D;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { At as countries, Ct as FilterOperator, Dt as TIMEOUTS, Et as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ft as timeUnits, Mt as defaultIdAttribute, Nt as emptyWebhook, Ot as UNGROUPED_GROUP, Pt as productOrder, St as EXTERNAL_PROVIDER, Tt as MAX_PAGE_SIZE, bt as DEVICE_LIST_MAXIMUM_LENGTH, jt as credentialTypes, kt as Webhook, wt as IdAttribute, xt as DEVICE_ONLINE_CUTOFF, yt as ATTRIBUTE_SCOPE_LABELS } from "./constants-
|
|
1
|
+
import { At as countries, Ct as FilterOperator, Dt as TIMEOUTS, Et as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ft as timeUnits, Mt as defaultIdAttribute, Nt as emptyWebhook, Ot as UNGROUPED_GROUP, Pt as productOrder, St as EXTERNAL_PROVIDER, Tt as MAX_PAGE_SIZE, bt as DEVICE_LIST_MAXIMUM_LENGTH, jt as credentialTypes, kt as Webhook, wt as IdAttribute, xt as DEVICE_ONLINE_CUTOFF, yt as ATTRIBUTE_SCOPE_LABELS } from "./constants-C2O55iZu.cjs";
|
|
2
2
|
export { ATTRIBUTE_SCOPE_LABELS, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_ONLINE_CUTOFF, EXTERNAL_PROVIDER, FilterOperator, IdAttribute, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, TIMEOUTS, UNGROUPED_GROUP, Webhook, countries, credentialTypes, defaultIdAttribute, emptyWebhook, productOrder, timeUnits };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { At as countries, Ct as FilterOperator, Dt as TIMEOUTS, Et as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ft as timeUnits, Mt as defaultIdAttribute, Nt as emptyWebhook, Ot as UNGROUPED_GROUP, Pt as productOrder, St as EXTERNAL_PROVIDER, Tt as MAX_PAGE_SIZE, bt as DEVICE_LIST_MAXIMUM_LENGTH, jt as credentialTypes, kt as Webhook, wt as IdAttribute, xt as DEVICE_ONLINE_CUTOFF, yt as ATTRIBUTE_SCOPE_LABELS } from "./constants-
|
|
1
|
+
import { At as countries, Ct as FilterOperator, Dt as TIMEOUTS, Et as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ft as timeUnits, Mt as defaultIdAttribute, Nt as emptyWebhook, Ot as UNGROUPED_GROUP, Pt as productOrder, St as EXTERNAL_PROVIDER, Tt as MAX_PAGE_SIZE, bt as DEVICE_LIST_MAXIMUM_LENGTH, jt as credentialTypes, kt as Webhook, wt as IdAttribute, xt as DEVICE_ONLINE_CUTOFF, yt as ATTRIBUTE_SCOPE_LABELS } from "./constants-BJuY-ODE.js";
|
|
2
2
|
export { ATTRIBUTE_SCOPE_LABELS, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_ONLINE_CUTOFF, EXTERNAL_PROVIDER, FilterOperator, IdAttribute, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, TIMEOUTS, UNGROUPED_GROUP, Webhook, countries, credentialTypes, defaultIdAttribute, emptyWebhook, productOrder, timeUnits };
|
package/dist/commonConstants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { At as DEVICE_ONLINE_CUTOFF, Bt as productOrder, Ft as UNGROUPED_GROUP, It as countries, Lt as credentialTypes, Mt as MAX_PAGE_SIZE, Nt as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ot as ATTRIBUTE_SCOPE_LABELS, Pt as TIMEOUTS, Rt as defaultIdAttribute, Vt as timeUnits, jt as EXTERNAL_PROVIDER, kt as DEVICE_LIST_MAXIMUM_LENGTH, zt as emptyWebhook } from "./constants-
|
|
1
|
+
import { At as DEVICE_ONLINE_CUTOFF, Bt as productOrder, Ft as UNGROUPED_GROUP, It as countries, Lt as credentialTypes, Mt as MAX_PAGE_SIZE, Nt as ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, Ot as ATTRIBUTE_SCOPE_LABELS, Pt as TIMEOUTS, Rt as defaultIdAttribute, Vt as timeUnits, jt as EXTERNAL_PROVIDER, kt as DEVICE_LIST_MAXIMUM_LENGTH, zt as emptyWebhook } from "./constants-D5hACLhF.js";
|
|
2
2
|
export { ATTRIBUTE_SCOPE_LABELS, DEVICE_LIST_MAXIMUM_LENGTH, DEVICE_ONLINE_CUTOFF, EXTERNAL_PROVIDER, MAX_PAGE_SIZE, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX, TIMEOUTS, UNGROUPED_GROUP, countries, credentialTypes, defaultIdAttribute, emptyWebhook, productOrder, timeUnits };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as AvailablePlans } from "./constants-nKSWZ8oD.cjs";
|
|
2
|
-
import { S as Role } from "./constants-
|
|
3
|
-
import { a as UserSettings, n as GlobalSettings, o as UserSliceType, r as User } from "./index-
|
|
4
|
-
import { a as ReleaseSliceType, i as Release } from "./index-
|
|
5
|
-
import { i as Organization, n as AuditLogSelectionState } from "./types-
|
|
2
|
+
import { S as Role } from "./constants-C2O55iZu.cjs";
|
|
3
|
+
import { a as UserSettings, n as GlobalSettings, o as UserSliceType, r as User } from "./index-CqhXqGLt.cjs";
|
|
4
|
+
import { a as ReleaseSliceType, i as Release } from "./index-fGVC5s1C.cjs";
|
|
5
|
+
import { i as Organization, n as AuditLogSelectionState } from "./types-B67YW1jV.cjs";
|
|
6
6
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-CoObjWL4.cjs";
|
|
7
7
|
import { l as SelectionState, o as DeploymentsSliceType, s as DeviceDeployment, t as Deployment } from "./index-mvxjivTJ.cjs";
|
|
8
|
-
import { c as DeviceSliceType, i as DeviceGroup, n as DeviceComponents, t as Device, u as InventoryAttributes } from "./index-
|
|
9
|
-
import { t as AppSliceType } from "./index-
|
|
10
|
-
import { t as MonitorSliceType } from "./index-
|
|
11
|
-
import { t as OrganizationSliceType } from "./index-
|
|
12
|
-
import { r as RootState } from "./store-
|
|
8
|
+
import { c as DeviceSliceType, i as DeviceGroup, n as DeviceComponents, t as Device, u as InventoryAttributes } from "./index-KxRmyFLr.cjs";
|
|
9
|
+
import { t as AppSliceType } from "./index-BKU1G9-x.cjs";
|
|
10
|
+
import { t as MonitorSliceType } from "./index-BfmRpbiJ.cjs";
|
|
11
|
+
import { t as OrganizationSliceType } from "./index-HjOSTTGF.cjs";
|
|
12
|
+
import { r as RootState } from "./store-Dw8Uo_Df.cjs";
|
|
13
13
|
import { AuditLog } from "@northern.tech/types/types.gen";
|
|
14
14
|
//#region src/commonSelectors.d.ts
|
|
15
15
|
declare const getIsEnterprise: ((state: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as AvailablePlans } from "./constants-nKSWZ8oD.js";
|
|
2
|
-
import { S as Role } from "./constants-
|
|
3
|
-
import { a as UserSettings, n as GlobalSettings, o as UserSliceType, r as User } from "./index
|
|
4
|
-
import { a as ReleaseSliceType, i as Release } from "./index-
|
|
5
|
-
import { i as Organization, n as AuditLogSelectionState } from "./types-
|
|
2
|
+
import { S as Role } from "./constants-BJuY-ODE.js";
|
|
3
|
+
import { a as UserSettings, n as GlobalSettings, o as UserSliceType, r as User } from "./index--SKVGToc.js";
|
|
4
|
+
import { a as ReleaseSliceType, i as Release } from "./index-BMsafOyJ.js";
|
|
5
|
+
import { i as Organization, n as AuditLogSelectionState } from "./types-DY0J79yF.js";
|
|
6
6
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "./index-CoObjWL4.js";
|
|
7
7
|
import { l as SelectionState, o as DeploymentsSliceType, s as DeviceDeployment, t as Deployment } from "./index-B8td4-rY.js";
|
|
8
|
-
import { c as DeviceSliceType, i as DeviceGroup, n as DeviceComponents, t as Device, u as InventoryAttributes } from "./index-
|
|
9
|
-
import { t as AppSliceType } from "./index-
|
|
10
|
-
import { t as MonitorSliceType } from "./index-
|
|
11
|
-
import { t as OrganizationSliceType } from "./index-
|
|
12
|
-
import { r as RootState } from "./store-
|
|
8
|
+
import { c as DeviceSliceType, i as DeviceGroup, n as DeviceComponents, t as Device, u as InventoryAttributes } from "./index-D9GJhX1I.js";
|
|
9
|
+
import { t as AppSliceType } from "./index-xxqlerg5.js";
|
|
10
|
+
import { t as MonitorSliceType } from "./index-CRqnH_go.js";
|
|
11
|
+
import { t as OrganizationSliceType } from "./index-BVNS-Aut.js";
|
|
12
|
+
import { r as RootState } from "./store-DLp6ajT8.js";
|
|
13
13
|
import { AuditLog } from "@northern.tech/types/types.gen";
|
|
14
14
|
//#region src/commonSelectors.d.ts
|
|
15
15
|
declare const getIsEnterprise: ((state: {
|
package/dist/commonSelectors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ADDONS, PLANS, defaultReports } from "./appSlice/constants.js";
|
|
2
|
-
import { F as rolesByName, Ft as UNGROUPED_GROUP, L as serviceProviderRolesById, Ot as ATTRIBUTE_SCOPE_LABELS, P as rolesById, U as uiPermissionsById, c as DEVICE_ISSUE_OPTIONS, o as ATTRIBUTE_SCOPES, t as ALL_DEVICES } from "./constants-
|
|
2
|
+
import { F as rolesByName, Ft as UNGROUPED_GROUP, L as serviceProviderRolesById, Ot as ATTRIBUTE_SCOPE_LABELS, P as rolesById, U as uiPermissionsById, c as DEVICE_ISSUE_OPTIONS, o as ATTRIBUTE_SCOPES, t as ALL_DEVICES } from "./constants-D5hACLhF.js";
|
|
3
3
|
import { onboardingSteps } from "./onboardingSlice/constants.js";
|
|
4
4
|
import { getFeatures, getSearchedDevices } from "./appSlice/selectors.js";
|
|
5
5
|
import { getDeploymentsById, getDeploymentsSelectionState, getSelectedDeploymentDeviceIds } from "./deploymentsSlice/selectors.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./constants-C6TIYaY4.js";
|
|
2
|
-
import { ALL_DEVICES, ALL_DEVICE_STATES,
|
|
2
|
+
import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_SOFTWARE, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, AnyPermission, AuditLogPermission, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, DeploymentPermission, DeviceIssueOptionKey, GroupsPermission, PaginationOptions, PermissionObject, PermissionSet, PermissionSetId, PermissionTypes, ReleasesPermission, Role, SORTING_OPTIONS, ScopedPermissionsByAreaKey, SortOptions, UiPermissionsByAreaKey, UiPermissionsByIdKey, UiPermissionsDefinition, UserManagementPermission, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
|
|
3
3
|
import { Integration } from "@northern.tech/types/MenderTypes";
|
|
4
4
|
//#region src/commonConstants.d.ts
|
|
5
5
|
declare const timeUnits: {
|
|
@@ -120,5 +120,5 @@ declare const REPORT_CHART_SIZE_LIMIT = 6;
|
|
|
120
120
|
//#region src/monitorSlice/constants.d.ts
|
|
121
121
|
type AlertChannelKey = keyof typeof alertChannels;
|
|
122
122
|
//#endregion
|
|
123
|
-
export { scopedPermissionAreas as $, alertChannels as A, countries as At, deviceConnect as B, SORTING_OPTIONS as C, FilterOperator as Ct, UiPermissionsByIdKey as D, TIMEOUTS as Dt, UiPermissionsByAreaKey as E, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Et, deploymentsApiUrl as F, timeUnits as Ft, inventoryApiUrlV2 as G, emptyUiPermissions as H, deploymentsApiUrlV1alpha1 as I, limitDefault as J, inventoryApiUrlV2alpha1 as K, deploymentsApiUrlV2 as L, apiUrl as M, defaultIdAttribute as Mt, auditLogsApiUrl as N, emptyWebhook as Nt, UiPermissionsDefinition as O, UNGROUPED_GROUP as Ot, defaultPermissionSets as P, productOrder as Pt, rolesByName as Q, deviceAuthV2 as R, Role as S, EXTERNAL_PROVIDER as St, SortOptions as T, MAX_PAGE_SIZE as Tt, headerNames as U, emptyRole as V, inventoryApiUrl as W, monitorApiUrlv1 as X, maxSessionAge as Y, rolesById as Z, PermissionObject as _, emptyFilter as _t, APPLICATION_JWT_CONTENT_TYPE as a, uiPermissionsByArea as at, PermissionTypes as b, DEVICE_LIST_MAXIMUM_LENGTH as bt, AuditLogPermission as c, useradmApiUrlv1 as ct, DEVICE_LIST_DEFAULTS as d, DEVICE_CONNECT_STATES as dt, serviceProviderRolesById as et, DEVICE_STATES as f, DEVICE_DISMISSAL_STATE as ft, PaginationOptions as g, REPORT_CHART_SIZE_LIMIT as gt, GroupsPermission as h, DeviceAuthState as ht, APPLICATION_JSON_CONTENT_TYPE as i, twoFAStates as it, apiRoot as j, credentialTypes as jt, UserManagementPermission as k, Webhook as kt, DEVICE_FILTERING_OPTIONS as l, useradmApiUrlv2 as lt, DeviceIssueOptionKey as m, DEVICE_MESSAGE_TYPES as mt, ALL_DEVICE_STATES as n, tenantadmApiUrlv1 as nt, ATTRIBUTE_SCOPES as o, uiPermissionsById as ot, DeploymentPermission as p, DEVICE_MESSAGE_PROTOCOLS as pt, iotManagerBaseURL as q,
|
|
124
|
-
//# sourceMappingURL=constants-
|
|
123
|
+
export { scopedPermissionAreas as $, alertChannels as A, countries as At, deviceConnect as B, SORTING_OPTIONS as C, FilterOperator as Ct, UiPermissionsByIdKey as D, TIMEOUTS as Dt, UiPermissionsByAreaKey as E, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Et, deploymentsApiUrl as F, timeUnits as Ft, inventoryApiUrlV2 as G, emptyUiPermissions as H, deploymentsApiUrlV1alpha1 as I, limitDefault as J, inventoryApiUrlV2alpha1 as K, deploymentsApiUrlV2 as L, apiUrl as M, defaultIdAttribute as Mt, auditLogsApiUrl as N, emptyWebhook as Nt, UiPermissionsDefinition as O, UNGROUPED_GROUP as Ot, defaultPermissionSets as P, productOrder as Pt, rolesByName as Q, deviceAuthV2 as R, Role as S, EXTERNAL_PROVIDER as St, SortOptions as T, MAX_PAGE_SIZE as Tt, headerNames as U, emptyRole as V, inventoryApiUrl as W, monitorApiUrlv1 as X, maxSessionAge as Y, rolesById as Z, PermissionObject as _, emptyFilter as _t, APPLICATION_JWT_CONTENT_TYPE as a, uiPermissionsByArea as at, PermissionTypes as b, DEVICE_LIST_MAXIMUM_LENGTH as bt, AuditLogPermission as c, useradmApiUrlv1 as ct, DEVICE_LIST_DEFAULTS as d, DEVICE_CONNECT_STATES as dt, serviceProviderRolesById as et, DEVICE_STATES as f, DEVICE_DISMISSAL_STATE as ft, PaginationOptions as g, REPORT_CHART_SIZE_LIMIT as gt, GroupsPermission as h, DeviceAuthState as ht, APPLICATION_JSON_CONTENT_TYPE as i, twoFAStates as it, apiRoot as j, credentialTypes as jt, UserManagementPermission as k, Webhook as kt, DEVICE_FILTERING_OPTIONS as l, useradmApiUrlv2 as lt, DeviceIssueOptionKey as m, DEVICE_MESSAGE_TYPES as mt, ALL_DEVICE_STATES as n, tenantadmApiUrlv1 as nt, ATTRIBUTE_SCOPES as o, uiPermissionsById as ot, DeploymentPermission as p, DEVICE_MESSAGE_PROTOCOLS as pt, iotManagerBaseURL as q, ALL_SOFTWARE as r, tenantadmApiUrlv2 as rt, AnyPermission as s, useradmApiUrl as st, ALL_DEVICES as t, ssoIdpApiUrlv1 as tt, DEVICE_ISSUE_OPTIONS as u, AlertChannelKey as ut, PermissionSet as v, geoAttributes as vt, ScopedPermissionsByAreaKey as w, IdAttribute as wt, ReleasesPermission as x, DEVICE_ONLINE_CUTOFF as xt, PermissionSetId as y, ATTRIBUTE_SCOPE_LABELS as yt, deviceConfig as z };
|
|
124
|
+
//# sourceMappingURL=constants-BJuY-ODE.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./constants-C6TIYaY4.cjs";
|
|
2
2
|
import { Integration } from "@northern.tech/types/MenderTypes";
|
|
3
|
-
import { ALL_DEVICES, ALL_DEVICE_STATES,
|
|
3
|
+
import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_SOFTWARE, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, AnyPermission, AuditLogPermission, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, DeploymentPermission, DeviceIssueOptionKey, GroupsPermission, PaginationOptions, PermissionObject, PermissionSet, PermissionSetId, PermissionTypes, ReleasesPermission, Role, SORTING_OPTIONS, ScopedPermissionsByAreaKey, SortOptions, UiPermissionsByAreaKey, UiPermissionsByIdKey, UiPermissionsDefinition, UserManagementPermission, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
|
|
4
4
|
//#region src/commonConstants.d.ts
|
|
5
5
|
declare const timeUnits: {
|
|
6
6
|
days: string;
|
|
@@ -120,5 +120,5 @@ declare const REPORT_CHART_SIZE_LIMIT = 6;
|
|
|
120
120
|
//#region src/monitorSlice/constants.d.ts
|
|
121
121
|
type AlertChannelKey = keyof typeof alertChannels;
|
|
122
122
|
//#endregion
|
|
123
|
-
export { scopedPermissionAreas as $, alertChannels as A, countries as At, deviceConnect as B, SORTING_OPTIONS as C, FilterOperator as Ct, UiPermissionsByIdKey as D, TIMEOUTS as Dt, UiPermissionsByAreaKey as E, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Et, deploymentsApiUrl as F, timeUnits as Ft, inventoryApiUrlV2 as G, emptyUiPermissions as H, deploymentsApiUrlV1alpha1 as I, limitDefault as J, inventoryApiUrlV2alpha1 as K, deploymentsApiUrlV2 as L, apiUrl as M, defaultIdAttribute as Mt, auditLogsApiUrl as N, emptyWebhook as Nt, UiPermissionsDefinition as O, UNGROUPED_GROUP as Ot, defaultPermissionSets as P, productOrder as Pt, rolesByName as Q, deviceAuthV2 as R, Role as S, EXTERNAL_PROVIDER as St, SortOptions as T, MAX_PAGE_SIZE as Tt, headerNames as U, emptyRole as V, inventoryApiUrl as W, monitorApiUrlv1 as X, maxSessionAge as Y, rolesById as Z, PermissionObject as _, emptyFilter as _t, APPLICATION_JWT_CONTENT_TYPE as a, uiPermissionsByArea as at, PermissionTypes as b, DEVICE_LIST_MAXIMUM_LENGTH as bt, AuditLogPermission as c, useradmApiUrlv1 as ct, DEVICE_LIST_DEFAULTS as d, DEVICE_CONNECT_STATES as dt, serviceProviderRolesById as et, DEVICE_STATES as f, DEVICE_DISMISSAL_STATE as ft, PaginationOptions as g, REPORT_CHART_SIZE_LIMIT as gt, GroupsPermission as h, DeviceAuthState as ht, APPLICATION_JSON_CONTENT_TYPE as i, twoFAStates as it, apiRoot as j, credentialTypes as jt, UserManagementPermission as k, Webhook as kt, DEVICE_FILTERING_OPTIONS as l, useradmApiUrlv2 as lt, DeviceIssueOptionKey as m, DEVICE_MESSAGE_TYPES as mt, ALL_DEVICE_STATES as n, tenantadmApiUrlv1 as nt, ATTRIBUTE_SCOPES as o, uiPermissionsById as ot, DeploymentPermission as p, DEVICE_MESSAGE_PROTOCOLS as pt, iotManagerBaseURL as q,
|
|
124
|
-
//# sourceMappingURL=constants-
|
|
123
|
+
export { scopedPermissionAreas as $, alertChannels as A, countries as At, deviceConnect as B, SORTING_OPTIONS as C, FilterOperator as Ct, UiPermissionsByIdKey as D, TIMEOUTS as Dt, UiPermissionsByAreaKey as E, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Et, deploymentsApiUrl as F, timeUnits as Ft, inventoryApiUrlV2 as G, emptyUiPermissions as H, deploymentsApiUrlV1alpha1 as I, limitDefault as J, inventoryApiUrlV2alpha1 as K, deploymentsApiUrlV2 as L, apiUrl as M, defaultIdAttribute as Mt, auditLogsApiUrl as N, emptyWebhook as Nt, UiPermissionsDefinition as O, UNGROUPED_GROUP as Ot, defaultPermissionSets as P, productOrder as Pt, rolesByName as Q, deviceAuthV2 as R, Role as S, EXTERNAL_PROVIDER as St, SortOptions as T, MAX_PAGE_SIZE as Tt, headerNames as U, emptyRole as V, inventoryApiUrl as W, monitorApiUrlv1 as X, maxSessionAge as Y, rolesById as Z, PermissionObject as _, emptyFilter as _t, APPLICATION_JWT_CONTENT_TYPE as a, uiPermissionsByArea as at, PermissionTypes as b, DEVICE_LIST_MAXIMUM_LENGTH as bt, AuditLogPermission as c, useradmApiUrlv1 as ct, DEVICE_LIST_DEFAULTS as d, DEVICE_CONNECT_STATES as dt, serviceProviderRolesById as et, DEVICE_STATES as f, DEVICE_DISMISSAL_STATE as ft, PaginationOptions as g, REPORT_CHART_SIZE_LIMIT as gt, GroupsPermission as h, DeviceAuthState as ht, APPLICATION_JSON_CONTENT_TYPE as i, twoFAStates as it, apiRoot as j, credentialTypes as jt, UserManagementPermission as k, Webhook as kt, DEVICE_FILTERING_OPTIONS as l, useradmApiUrlv2 as lt, DeviceIssueOptionKey as m, DEVICE_MESSAGE_TYPES as mt, ALL_DEVICE_STATES as n, tenantadmApiUrlv1 as nt, ATTRIBUTE_SCOPES as o, uiPermissionsById as ot, DeploymentPermission as p, DEVICE_MESSAGE_PROTOCOLS as pt, iotManagerBaseURL as q, ALL_SOFTWARE as r, tenantadmApiUrlv2 as rt, AnyPermission as s, useradmApiUrl as st, ALL_DEVICES as t, ssoIdpApiUrlv1 as tt, DEVICE_ISSUE_OPTIONS as u, AlertChannelKey as ut, PermissionSet as v, geoAttributes as vt, ScopedPermissionsByAreaKey as w, IdAttribute as wt, ReleasesPermission as x, DEVICE_ONLINE_CUTOFF as xt, PermissionSetId as y, ATTRIBUTE_SCOPE_LABELS as yt, deviceConfig as z };
|
|
124
|
+
//# sourceMappingURL=constants-C2O55iZu.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ALL_DEVICES, ALL_DEVICE_STATES,
|
|
1
|
+
import { ALL_DEVICES, ALL_DEVICE_STATES, ALL_SOFTWARE, APPLICATION_JSON_CONTENT_TYPE, APPLICATION_JWT_CONTENT_TYPE, ATTRIBUTE_SCOPES, DEVICE_FILTERING_OPTIONS, DEVICE_ISSUE_OPTIONS, DEVICE_LIST_DEFAULTS, DEVICE_STATES, PermissionTypes, SORTING_OPTIONS, alertChannels, apiRoot, apiUrl, auditLogsApiUrl, defaultPermissionSets, deploymentsApiUrl, deploymentsApiUrlV1alpha1, deploymentsApiUrlV2, deviceAuthV2, deviceConfig, deviceConnect, emptyRole, emptyUiPermissions, headerNames, inventoryApiUrl, inventoryApiUrlV2, inventoryApiUrlV2alpha1, iotManagerBaseURL, limitDefault, maxSessionAge, monitorApiUrlv1, rolesById, rolesByName, scopedPermissionAreas, serviceProviderRolesById, ssoIdpApiUrlv1, tenantadmApiUrlv1, tenantadmApiUrlv2, twoFAStates, uiPermissionsByArea, uiPermissionsById, useradmApiUrl, useradmApiUrlv1, useradmApiUrlv2 } from "@northern.tech/utils/constants";
|
|
2
2
|
import { mdiAws, mdiMicrosoftAzure } from "@mdi/js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/commonConstants.tsx
|
|
@@ -679,6 +679,6 @@ const READ_STATES = {
|
|
|
679
679
|
unread: "unread"
|
|
680
680
|
};
|
|
681
681
|
//#endregion
|
|
682
|
-
export { AUDIT_LOGS_TYPES as $, iotManagerBaseURL as A, DEVICE_ONLINE_CUTOFF as At, tenantadmApiUrlv2 as B, productOrder as Bt, deviceConnect as C, deploymentStatesToSubstatesWithSkipped as Ct, inventoryApiUrl as D, pauseMap as Dt, headerNames as E, listDefaultsByState as Et, rolesByName as F, UNGROUPED_GROUP as Ft, useradmApiUrlv1 as G, uiPermissionsByArea as H, scopedPermissionAreas as I, countries as It, READ_STATES as J, useradmApiUrlv2 as K, serviceProviderRolesById as L, credentialTypes as Lt, maxSessionAge as M, MAX_PAGE_SIZE as Mt, monitorApiUrlv1 as N, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Nt, inventoryApiUrlV2 as O, ATTRIBUTE_SCOPE_LABELS as Ot, rolesById as P, TIMEOUTS as Pt, settingsKeys as Q, ssoIdpApiUrlv1 as R, defaultIdAttribute as Rt, deviceConfig as S, deploymentStatesToSubstates as St, emptyUiPermissions as T, installationSubstatesMap as Tt, uiPermissionsById as U, twoFAStates as V, timeUnits as Vt, useradmApiUrl as W, checkPermissionsObject as X, USER_LOGOUT as Y, itemUiPermissionsReducer as Z, defaultPermissionSets as _, DEPLOYMENT_STATES as _t, APPLICATION_JWT_CONTENT_TYPE as a, auditlogTypes as at, deploymentsApiUrlV2 as b, deploymentDisplayStates as bt, DEVICE_ISSUE_OPTIONS as c, DEVICE_CONNECT_STATES as ct, PermissionTypes as d, DEVICE_MESSAGE_TYPES as dt, JSON_METADATA_FORMAT as et, SORTING_OPTIONS as f, REPORT_CHART_SIZE_LIMIT as ft, auditLogsApiUrl as g, DEPLOYMENT_ROUTES as gt, apiUrl as h, DEFAULT_PENDING_INPROGRESS_COUNT as ht, APPLICATION_JSON_CONTENT_TYPE as i, XML_METADATA_FORMAT as it, limitDefault as j, EXTERNAL_PROVIDER as jt, inventoryApiUrlV2alpha1 as k, DEVICE_LIST_MAXIMUM_LENGTH as kt, DEVICE_LIST_DEFAULTS as l, DEVICE_DISMISSAL_STATE as lt, apiRoot as m, geoAttributes as mt, ALL_DEVICE_STATES as n, SSO_TYPES as nt, ATTRIBUTE_SCOPES as o, getOidcStartUrl as ot, alertChannels as p, emptyFilter as pt, OWN_USER_ID as q,
|
|
682
|
+
export { AUDIT_LOGS_TYPES as $, iotManagerBaseURL as A, DEVICE_ONLINE_CUTOFF as At, tenantadmApiUrlv2 as B, productOrder as Bt, deviceConnect as C, deploymentStatesToSubstatesWithSkipped as Ct, inventoryApiUrl as D, pauseMap as Dt, headerNames as E, listDefaultsByState as Et, rolesByName as F, UNGROUPED_GROUP as Ft, useradmApiUrlv1 as G, uiPermissionsByArea as H, scopedPermissionAreas as I, countries as It, READ_STATES as J, useradmApiUrlv2 as K, serviceProviderRolesById as L, credentialTypes as Lt, maxSessionAge as M, MAX_PAGE_SIZE as Mt, monitorApiUrlv1 as N, ORCHESTRATOR_MANIFEST_ATTRIBUTE_PREFIX as Nt, inventoryApiUrlV2 as O, ATTRIBUTE_SCOPE_LABELS as Ot, rolesById as P, TIMEOUTS as Pt, settingsKeys as Q, ssoIdpApiUrlv1 as R, defaultIdAttribute as Rt, deviceConfig as S, deploymentStatesToSubstates as St, emptyUiPermissions as T, installationSubstatesMap as Tt, uiPermissionsById as U, twoFAStates as V, timeUnits as Vt, useradmApiUrl as W, checkPermissionsObject as X, USER_LOGOUT as Y, itemUiPermissionsReducer as Z, defaultPermissionSets as _, DEPLOYMENT_STATES as _t, APPLICATION_JWT_CONTENT_TYPE as a, auditlogTypes as at, deploymentsApiUrlV2 as b, deploymentDisplayStates as bt, DEVICE_ISSUE_OPTIONS as c, DEVICE_CONNECT_STATES as ct, PermissionTypes as d, DEVICE_MESSAGE_TYPES as dt, JSON_METADATA_FORMAT as et, SORTING_OPTIONS as f, REPORT_CHART_SIZE_LIMIT as ft, auditLogsApiUrl as g, DEPLOYMENT_ROUTES as gt, apiUrl as h, DEFAULT_PENDING_INPROGRESS_COUNT as ht, APPLICATION_JSON_CONTENT_TYPE as i, XML_METADATA_FORMAT as it, limitDefault as j, EXTERNAL_PROVIDER as jt, inventoryApiUrlV2alpha1 as k, DEVICE_LIST_MAXIMUM_LENGTH as kt, DEVICE_LIST_DEFAULTS as l, DEVICE_DISMISSAL_STATE as lt, apiRoot as m, geoAttributes as mt, ALL_DEVICE_STATES as n, SSO_TYPES as nt, ATTRIBUTE_SCOPES as o, getOidcStartUrl as ot, alertChannels as p, emptyFilter as pt, OWN_USER_ID as q, ALL_SOFTWARE as r, TENANT_LIST_DEFAULT as rt, DEVICE_FILTERING_OPTIONS as s, getSamlStartUrl as st, ALL_DEVICES as t, SP_AUDIT_LOGS_TYPES as tt, DEVICE_STATES as u, DEVICE_MESSAGE_PROTOCOLS as ut, deploymentsApiUrl as v, DEPLOYMENT_TYPES as vt, emptyRole as w, deploymentSubstates as wt, deviceAuthV2 as x, deploymentPrototype as xt, deploymentsApiUrlV1alpha1 as y, defaultStats as yt, tenantadmApiUrlv1 as z, emptyWebhook as zt };
|
|
683
683
|
|
|
684
|
-
//# sourceMappingURL=constants-
|
|
684
|
+
//# sourceMappingURL=constants-D5hACLhF.js.map
|