@northern.tech/store 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.js +4 -4
- package/dist/api/general-api.js +2 -2
- package/dist/api/users-api.js +2 -2
- package/dist/appSlice/constants.cjs +2 -10
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +0 -2
- package/dist/appSlice/constants.d.ts +0 -2
- package/dist/appSlice/constants.js +1 -1
- package/dist/appSlice/index.js +2 -2
- package/dist/appSlice/mocks.js +2 -2
- package/dist/appSlice/selectors.cjs +6 -0
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +3 -1
- package/dist/appSlice/selectors.d.ts +3 -1
- package/dist/appSlice/selectors.js +5 -1
- package/dist/appSlice/thunks.cjs +8 -3
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +16 -16
- package/dist/auth.js +2 -2
- package/dist/{chunk-ZRSYBSSY.js → chunk-4E7ZSEFL.js} +2 -2
- package/dist/{chunk-X4GUACQO.js → chunk-6XVREXI4.js} +2 -2
- package/dist/{chunk-URNS6A5T.js → chunk-7PRZYHDP.js} +4 -4
- package/dist/{chunk-MBKAZVE3.js → chunk-BYUPW7RA.js} +5 -1
- package/dist/chunk-BYUPW7RA.js.map +1 -0
- package/dist/{chunk-ZN5TB2NJ.js → chunk-FQW72QFK.js} +23 -17
- package/dist/chunk-FQW72QFK.js.map +1 -0
- package/dist/{chunk-OHF3YUXX.js → chunk-HFOTAPIJ.js} +3 -11
- package/dist/chunk-HFOTAPIJ.js.map +1 -0
- package/dist/{chunk-CW5T6OGF.js → chunk-MPYYSFPL.js} +5 -5
- package/dist/{chunk-IQG5I7AM.js → chunk-NQIP7VFB.js} +14 -14
- package/dist/{chunk-XWYJACQC.js → chunk-QEKN5R7E.js} +2 -2
- package/dist/{chunk-N2KLYPS5.js → chunk-YWHRAPDQ.js} +6 -6
- package/dist/{chunk-4TUJPE6G.js → chunk-YY6SKZDF.js} +2 -2
- package/dist/chunk-YY6SKZDF.js.map +1 -0
- package/dist/{chunk-JUGE7L3K.js → chunk-ZIUUV35J.js} +5 -5
- package/dist/commonConstants.js +2 -2
- package/dist/commonSelectors.cjs +1 -1
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.js +10 -10
- package/dist/constants.cjs +2 -10
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/deploymentsSlice/constants.js +2 -2
- package/dist/deploymentsSlice/index.js +2 -2
- package/dist/deploymentsSlice/mocks.js +2 -2
- package/dist/deploymentsSlice/selectors.js +2 -2
- package/dist/deploymentsSlice/thunks.cjs +8 -3
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +16 -16
- package/dist/devicesSlice/constants.js +2 -2
- package/dist/devicesSlice/index.js +2 -2
- package/dist/devicesSlice/mocks.js +2 -2
- package/dist/devicesSlice/selectors.js +2 -2
- package/dist/devicesSlice/thunks.cjs +8 -3
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.js +16 -16
- package/dist/liststatehook.js +2 -2
- package/dist/locationutils.js +2 -2
- package/dist/monitorSlice/index.js +2 -2
- package/dist/monitorSlice/mocks.js +2 -2
- package/dist/monitorSlice/thunks.cjs +1 -1
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +14 -14
- package/dist/onboardingSlice/thunks.cjs +8 -3
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +16 -16
- package/dist/organizationSlice/constants.js +2 -2
- package/dist/organizationSlice/index.js +2 -2
- package/dist/organizationSlice/mocks.js +2 -2
- package/dist/organizationSlice/selectors.cjs +1 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.js +3 -3
- package/dist/organizationSlice/thunks.cjs +12 -15
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.js +16 -16
- package/dist/releasesSlice/index.js +2 -2
- package/dist/releasesSlice/mocks.js +2 -2
- package/dist/releasesSlice/selectors.js +4 -4
- package/dist/releasesSlice/thunks.cjs +1 -1
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +14 -14
- package/dist/selectors.cjs +7 -1
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +1 -1
- package/dist/selectors.d.ts +1 -1
- package/dist/selectors.js +23 -19
- package/dist/sockethook.js +2 -2
- package/dist/store.js +5 -5
- package/dist/storehooks.cjs +13 -16
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +17 -17
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +14 -15
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +1 -1
- package/dist/thunks.d.ts +1 -1
- package/dist/thunks.js +18 -16
- package/dist/useDeploymentDevice.cjs +11 -5
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +18 -17
- package/dist/useDeploymentDevice.js.map +1 -1
- package/dist/usersSlice/constants.js +2 -2
- package/dist/usersSlice/index.js +2 -2
- package/dist/usersSlice/mocks.js +2 -2
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.js +4 -4
- package/dist/usersSlice/thunks.cjs +10 -3
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.d.cts +11 -1
- package/dist/usersSlice/thunks.d.ts +11 -1
- package/dist/usersSlice/thunks.js +18 -16
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-4TUJPE6G.js.map +0 -1
- package/dist/chunk-MBKAZVE3.js.map +0 -1
- package/dist/chunk-OHF3YUXX.js.map +0 -1
- package/dist/chunk-ZN5TB2NJ.js.map +0 -1
- package/dist/flag-eu-5477R2P4.svg +0 -130
- package/dist/flag-us-HNQAF66I.svg +0 -63
- /package/dist/{chunk-ZRSYBSSY.js.map → chunk-4E7ZSEFL.js.map} +0 -0
- /package/dist/{chunk-X4GUACQO.js.map → chunk-6XVREXI4.js.map} +0 -0
- /package/dist/{chunk-URNS6A5T.js.map → chunk-7PRZYHDP.js.map} +0 -0
- /package/dist/{chunk-CW5T6OGF.js.map → chunk-MPYYSFPL.js.map} +0 -0
- /package/dist/{chunk-IQG5I7AM.js.map → chunk-NQIP7VFB.js.map} +0 -0
- /package/dist/{chunk-XWYJACQC.js.map → chunk-QEKN5R7E.js.map} +0 -0
- /package/dist/{chunk-N2KLYPS5.js.map → chunk-YWHRAPDQ.js.map} +0 -0
- /package/dist/{chunk-JUGE7L3K.js.map → chunk-ZIUUV35J.js.map} +0 -0
package/dist/appSlice/thunks.js
CHANGED
|
@@ -3,39 +3,39 @@ import {
|
|
|
3
3
|
setFirstLoginAfterSignup,
|
|
4
4
|
setOfflineThreshold,
|
|
5
5
|
setSearchState
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-FQW72QFK.js";
|
|
7
|
+
import "../chunk-YWHRAPDQ.js";
|
|
8
|
+
import "../chunk-ZIUUV35J.js";
|
|
9
|
+
import "../chunk-MPYYSFPL.js";
|
|
10
10
|
import "../chunk-QHK7GGV4.js";
|
|
11
11
|
import "../chunk-RS37Y2PQ.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-7PRZYHDP.js";
|
|
13
13
|
import "../chunk-OOICURFL.js";
|
|
14
14
|
import "../chunk-UGSLGUS6.js";
|
|
15
15
|
import "../chunk-MZNANSS2.js";
|
|
16
|
+
import "../chunk-PGFVHKP5.js";
|
|
16
17
|
import "../chunk-VANBSJS5.js";
|
|
17
18
|
import "../chunk-VUFRP6P3.js";
|
|
18
|
-
import "../chunk-PGFVHKP5.js";
|
|
19
19
|
import "../chunk-6KGTHJKC.js";
|
|
20
20
|
import "../chunk-ABJLRDCO.js";
|
|
21
21
|
import "../chunk-ZJW3QIPM.js";
|
|
22
22
|
import "../chunk-KC7SKI3U.js";
|
|
23
23
|
import "../chunk-NMAXZ3ZY.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-NQIP7VFB.js";
|
|
25
|
+
import "../chunk-6XVREXI4.js";
|
|
26
|
+
import "../chunk-4E7ZSEFL.js";
|
|
27
|
+
import "../chunk-YY6SKZDF.js";
|
|
28
|
+
import "../chunk-YO22XLHI.js";
|
|
28
29
|
import "../chunk-JIS4PA3R.js";
|
|
29
|
-
import "../chunk-JXQUFKID.js";
|
|
30
30
|
import "../chunk-KJNNEDRV.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-JXQUFKID.js";
|
|
32
|
+
import "../chunk-BYUPW7RA.js";
|
|
33
|
+
import "../chunk-QEKN5R7E.js";
|
|
34
34
|
import "../chunk-7C4SQBEE.js";
|
|
35
35
|
import "../chunk-2DYA3X77.js";
|
|
36
|
-
import "../chunk-ZKAH3APE.js";
|
|
37
36
|
import "../chunk-FAJ3I2UQ.js";
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-ZKAH3APE.js";
|
|
38
|
+
import "../chunk-HFOTAPIJ.js";
|
|
39
39
|
export {
|
|
40
40
|
getLatestReleaseInfo,
|
|
41
41
|
setFirstLoginAfterSignup,
|
package/dist/auth.js
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
} from "./chunk-ZJW3QIPM.js";
|
|
8
8
|
import "./chunk-7C4SQBEE.js";
|
|
9
9
|
import "./chunk-2DYA3X77.js";
|
|
10
|
-
import "./chunk-ZKAH3APE.js";
|
|
11
10
|
import "./chunk-FAJ3I2UQ.js";
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ZKAH3APE.js";
|
|
12
|
+
import "./chunk-HFOTAPIJ.js";
|
|
13
13
|
export {
|
|
14
14
|
cleanUp,
|
|
15
15
|
getSessionInfo,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isDarkMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QEKN5R7E.js";
|
|
4
4
|
import {
|
|
5
5
|
DEVICE_ONLINE_CUTOFF,
|
|
6
6
|
READ_STATES,
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
getCurrentSession,
|
|
76
76
|
getRolesInitialized
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-4E7ZSEFL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listItemMapper
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QEKN5R7E.js";
|
|
4
4
|
|
|
5
5
|
// src/releasesSlice/selectors.ts
|
|
6
6
|
import { createSelector } from "@reduxjs/toolkit";
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
getSelectedRelease,
|
|
33
33
|
getSelectedReleases
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-6XVREXI4.js.map
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
actions as actions6
|
|
9
9
|
} from "./chunk-MZNANSS2.js";
|
|
10
|
+
import {
|
|
11
|
+
actions as actions4
|
|
12
|
+
} from "./chunk-PGFVHKP5.js";
|
|
10
13
|
import {
|
|
11
14
|
actions as actions5
|
|
12
15
|
} from "./chunk-VANBSJS5.js";
|
|
13
16
|
import {
|
|
14
17
|
actions as actions2
|
|
15
18
|
} from "./chunk-VUFRP6P3.js";
|
|
16
|
-
import {
|
|
17
|
-
actions as actions4
|
|
18
|
-
} from "./chunk-PGFVHKP5.js";
|
|
19
19
|
import {
|
|
20
20
|
actions
|
|
21
21
|
} from "./chunk-6KGTHJKC.js";
|
|
@@ -38,4 +38,4 @@ var actions_default = {
|
|
|
38
38
|
export {
|
|
39
39
|
actions_default
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-7PRZYHDP.js.map
|
|
@@ -12,6 +12,8 @@ var getHostedAnnouncement = (state) => state.app.hostedAnnouncement;
|
|
|
12
12
|
var getRecaptchaKey = (state) => state.app.recaptchaSiteKey;
|
|
13
13
|
var getStripeKey = (state) => state.app.stripeAPIKey;
|
|
14
14
|
var getTrackerCode = (state) => state.app.trackerCode;
|
|
15
|
+
var getSentryConfig = (state) => state.app.sentry;
|
|
16
|
+
var getCommit = (state) => state.app.commit;
|
|
15
17
|
var getIsFirstLogin = (state) => state.app.firstLoginAfterSignup;
|
|
16
18
|
var getFeedbackProbability = (state) => state.app.feedbackProbability;
|
|
17
19
|
var getIsUploading = createSelector([getUploads], (uploadsById) => !!Object.keys(uploadsById).length);
|
|
@@ -34,6 +36,8 @@ export {
|
|
|
34
36
|
getRecaptchaKey,
|
|
35
37
|
getStripeKey,
|
|
36
38
|
getTrackerCode,
|
|
39
|
+
getSentryConfig,
|
|
40
|
+
getCommit,
|
|
37
41
|
getIsFirstLogin,
|
|
38
42
|
getFeedbackProbability,
|
|
39
43
|
getIsUploading,
|
|
@@ -41,4 +45,4 @@ export {
|
|
|
41
45
|
getVersionInformation,
|
|
42
46
|
getIsPreview
|
|
43
47
|
};
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-BYUPW7RA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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 { versionCompare } from '@northern.tech/utils/helpers';\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 getFullVersionInformation = (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;\n\nexport const getIsUploading = createSelector([getUploads], uploadsById => !!Object.keys(uploadsById).length);\nexport const getSearchedDevices = createSelector([getSearchState], ({ deviceIds }) => deviceIds);\nexport const getVersionInformation = createSelector([getFullVersionInformation, getFeatures], ({ Integration, ...remainder }, { isHosted }) =>\n isHosted && Integration !== 'next' ? remainder : { ...remainder, Integration }\n);\nexport const getIsPreview = createSelector([getFullVersionInformation], ({ Integration }) => versionCompare(Integration, 'next') > -1);\n"],"mappings":";AAaA,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAIxB,IAAM,iBAAiB,CAAC,UAAqB,MAAM,IAAI;AACvD,IAAM,cAAc,CAAC,UAAqB,MAAM,IAAI;AACpD,IAAM,4BAA4B,CAAC,UAAqB,MAAM,IAAI;AAClE,IAAM,iBAAiB,CAAC,UAAqB,MAAM,IAAI;AACvD,IAAM,aAAa,CAAC,UAAqB,MAAM,IAAI;AACnD,IAAM,cAAc,CAAC,UAAqB,MAAM,IAAI;AACpD,IAAM,iBAAiB,CAAC,UAAqB,MAAM,IAAI;AACvD,IAAM,wBAAwB,CAAC,UAAqB,MAAM,IAAI;AAC9D,IAAM,kBAAkB,CAAC,UAAqB,MAAM,IAAI;AACxD,IAAM,eAAe,CAAC,UAAqB,MAAM,IAAI;AACrD,IAAM,iBAAiB,CAAC,UAAqB,MAAM,IAAI;AACvD,IAAM,kBAAkB,CAAC,UAAqB,MAAM,IAAI;AACxD,IAAM,YAAY,CAAC,UAAqB,MAAM,IAAI;AAClD,IAAM,kBAAkB,CAAC,UAAqB,MAAM,IAAI;AACxD,IAAM,yBAAyB,CAAC,UAAqB,MAAM,IAAI;AAE/D,IAAM,iBAAiB,eAAe,CAAC,UAAU,GAAG,iBAAe,CAAC,CAAC,OAAO,KAAK,WAAW,EAAE,MAAM;AACpG,IAAM,qBAAqB,eAAe,CAAC,cAAc,GAAG,CAAC,EAAE,UAAU,MAAM,SAAS;AACxF,IAAM,wBAAwB;AAAA,EAAe,CAAC,2BAA2B,WAAW;AAAA,EAAG,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,EAAE,SAAS,MACvI,YAAY,gBAAgB,SAAS,YAAY,EAAE,GAAG,WAAW,YAAY;AAC/E;AACO,IAAM,eAAe,eAAe,CAAC,yBAAyB,GAAG,CAAC,EAAE,YAAY,MAAM,eAAe,aAAa,MAAM,IAAI,EAAE;","names":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDeviceMonitorConfig,
|
|
3
3
|
getLatestDeviceAlerts
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZIUUV35J.js";
|
|
5
5
|
import {
|
|
6
6
|
commonErrorFallback,
|
|
7
7
|
commonErrorHandler,
|
|
8
8
|
createAppAsyncThunk
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MPYYSFPL.js";
|
|
10
10
|
import {
|
|
11
11
|
users_api_default
|
|
12
12
|
} from "./chunk-QHK7GGV4.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-RS37Y2PQ.js";
|
|
16
16
|
import {
|
|
17
17
|
actions_default
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7PRZYHDP.js";
|
|
19
19
|
import {
|
|
20
20
|
actions as actions6,
|
|
21
21
|
sliceName as sliceName6
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
getSearchEndpoint,
|
|
53
53
|
getTenantCapabilities,
|
|
54
54
|
getUserCapabilities
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NQIP7VFB.js";
|
|
56
56
|
import {
|
|
57
57
|
getCurrentSession,
|
|
58
58
|
getCurrentUser,
|
|
@@ -64,17 +64,13 @@ import {
|
|
|
64
64
|
getTooltipsState,
|
|
65
65
|
getUserSettings,
|
|
66
66
|
getUsersById
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-4E7ZSEFL.js";
|
|
68
68
|
import {
|
|
69
69
|
getAuditlogState,
|
|
70
70
|
getDeviceTwinIntegrations,
|
|
71
71
|
getOrganization,
|
|
72
72
|
getTenantsList
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import {
|
|
75
|
-
getDeploymentsById,
|
|
76
|
-
getDeploymentsByStatus
|
|
77
|
-
} from "./chunk-JXQUFKID.js";
|
|
73
|
+
} from "./chunk-YY6SKZDF.js";
|
|
78
74
|
import {
|
|
79
75
|
getAcceptedDevices,
|
|
80
76
|
getDeviceById,
|
|
@@ -85,10 +81,14 @@ import {
|
|
|
85
81
|
getGroupsById,
|
|
86
82
|
getSelectedGroup
|
|
87
83
|
} from "./chunk-KJNNEDRV.js";
|
|
84
|
+
import {
|
|
85
|
+
getDeploymentsById,
|
|
86
|
+
getDeploymentsByStatus
|
|
87
|
+
} from "./chunk-JXQUFKID.js";
|
|
88
88
|
import {
|
|
89
89
|
getFeatures,
|
|
90
90
|
getSearchState
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-BYUPW7RA.js";
|
|
92
92
|
import {
|
|
93
93
|
convertDeviceListStateToFilters,
|
|
94
94
|
extractErrorMessage,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
mergePermissions,
|
|
101
101
|
parseSubscriptionPreview,
|
|
102
102
|
progress
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-QEKN5R7E.js";
|
|
104
104
|
import {
|
|
105
105
|
ALL_DEVICE_STATES,
|
|
106
106
|
ALL_RELEASES,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
import {
|
|
164
164
|
PLANS,
|
|
165
165
|
locations
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-HFOTAPIJ.js";
|
|
167
167
|
|
|
168
168
|
// src/appSlice/thunks.ts
|
|
169
169
|
import { deepCompare as deepCompare4, extractErrorMessage as extractErrorMessage3 } from "@northern.tech/utils/helpers";
|
|
@@ -172,7 +172,8 @@ import Cookies4 from "universal-cookie";
|
|
|
172
172
|
// src/deploymentsSlice/thunks.ts
|
|
173
173
|
import { customSort, deepCompare, isEmpty, standardizePhases } from "@northern.tech/utils/helpers";
|
|
174
174
|
import Tracking from "@northern.tech/utils/tracking";
|
|
175
|
-
import
|
|
175
|
+
import validator from "validator";
|
|
176
|
+
var { isUUID } = validator;
|
|
176
177
|
var { receivedDevice, setSnackbar } = actions_default;
|
|
177
178
|
var { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;
|
|
178
179
|
var deriveDeploymentGroup = ({ filter, group, groups = [], name }) => group || groups.length === 1 && !isUUID(name) ? groups[0] : filter?.name;
|
|
@@ -1514,7 +1515,7 @@ var advanceOnboarding = createAppAsyncThunk(`${sliceName4}/advanceOnboarding`, (
|
|
|
1514
1515
|
import { PreviewRequest as PreviewRequestEnum } from "@northern.tech/types/MenderTypes";
|
|
1515
1516
|
import { dateRangeToUnix as dateRangeToUnix2, deepCompare as deepCompare3 } from "@northern.tech/utils/helpers";
|
|
1516
1517
|
import dayjs from "dayjs";
|
|
1517
|
-
import utc from "dayjs/plugin/utc";
|
|
1518
|
+
import utc from "dayjs/plugin/utc.js";
|
|
1518
1519
|
import { jwtDecode } from "jwt-decode";
|
|
1519
1520
|
import hashString from "md5";
|
|
1520
1521
|
import Cookies2 from "universal-cookie";
|
|
@@ -1771,7 +1772,7 @@ var requestPlanChange = createAppAsyncThunk(
|
|
|
1771
1772
|
);
|
|
1772
1773
|
var downloadLicenseReport = createAppAsyncThunk(
|
|
1773
1774
|
`${sliceName5}/downloadLicenseReport`,
|
|
1774
|
-
(_, { dispatch }) => general_api_default.get(`${deviceAuthV2}/
|
|
1775
|
+
(_, { dispatch }) => general_api_default.get(`${deviceAuthV2}/license`).catch((err) => commonErrorHandler(err, "There was an error downloading the report", dispatch, commonErrorFallback)).then((res) => res.data)
|
|
1775
1776
|
);
|
|
1776
1777
|
var createIntegration = createAppAsyncThunk(
|
|
1777
1778
|
`${sliceName5}/createIntegration`,
|
|
@@ -2049,6 +2050,10 @@ var editUser = createAppAsyncThunk(
|
|
|
2049
2050
|
])
|
|
2050
2051
|
).catch((err) => userActionErrorHandler(err, "edit", dispatch))
|
|
2051
2052
|
);
|
|
2053
|
+
var checkEmailExists = createAppAsyncThunk(`${sliceName6}/checkEmailExists`, async (email) => {
|
|
2054
|
+
const response = await general_api_default.get(`${useradmApiUrl}/users/exists?email=${encodeURIComponent(email)}`);
|
|
2055
|
+
return response.data.exists;
|
|
2056
|
+
});
|
|
2052
2057
|
var addUserToCurrentTenant = createAppAsyncThunk(`${sliceName6}/addUserToTenant`, (userId, { dispatch, getState }) => {
|
|
2053
2058
|
const { id } = getOrganization(getState());
|
|
2054
2059
|
return general_api_default.post(`${useradmApiUrl}/users/${userId}/assign`, { tenant_ids: [id] }).catch((err) => commonErrorHandler(err, `There was an error adding the user to your organization:`, dispatch)).then(() => Promise.all([dispatch(setSnackbar4(userActions.add.successMessage)), dispatch(getUserList())]));
|
|
@@ -2730,6 +2735,7 @@ export {
|
|
|
2730
2735
|
createUser,
|
|
2731
2736
|
removeUser,
|
|
2732
2737
|
editUser,
|
|
2738
|
+
checkEmailExists,
|
|
2733
2739
|
addUserToCurrentTenant,
|
|
2734
2740
|
enableUser2fa,
|
|
2735
2741
|
disableUser2fa,
|
|
@@ -2752,4 +2758,4 @@ export {
|
|
|
2752
2758
|
setAllTooltipsReadState,
|
|
2753
2759
|
submitFeedback
|
|
2754
2760
|
};
|
|
2755
|
-
//# sourceMappingURL=chunk-
|
|
2761
|
+
//# sourceMappingURL=chunk-FQW72QFK.js.map
|