@northern.tech/store 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.cjs +1 -2
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.js +3 -3
- package/dist/appSlice/index.cjs +1 -2
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.cjs +1 -2
- package/dist/appSlice/mocks.cjs.map +1 -1
- package/dist/appSlice/mocks.js +1 -1
- package/dist/appSlice/selectors.d.cts +1 -1
- package/dist/appSlice/selectors.d.ts +1 -1
- package/dist/appSlice/thunks.cjs +17 -7
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +10 -10
- package/dist/{chunk-6PYYMAFS.js → chunk-73JXR6WS.js} +4 -4
- package/dist/{chunk-ZVE23XXF.js → chunk-AROYP5V5.js} +6 -6
- package/dist/{chunk-7VFPMJCH.js → chunk-DDY7IFSE.js} +5 -5
- package/dist/{chunk-6WJI4MOP.js → chunk-DYUOBPAI.js} +2 -3
- package/dist/chunk-DYUOBPAI.js.map +1 -0
- package/dist/{chunk-7KSKENLP.js → chunk-FQ6CCYUU.js} +7 -7
- package/dist/{chunk-53W2NRSL.js → chunk-ML5CUAQD.js} +7 -3
- package/dist/chunk-ML5CUAQD.js.map +1 -0
- package/dist/{chunk-GHATCG2U.js → chunk-SVSHXLCN.js} +6 -6
- package/dist/{chunk-4UV7ZJXY.js → chunk-Y54UJUE4.js} +55 -40
- package/dist/chunk-Y54UJUE4.js.map +1 -0
- package/dist/commonSelectors.d.cts +18 -14
- package/dist/commonSelectors.d.ts +18 -14
- package/dist/commonSelectors.js +2 -2
- package/dist/deploymentsSlice/thunks.cjs +17 -7
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +4 -4
- package/dist/deploymentsSlice/thunks.d.ts +4 -4
- package/dist/deploymentsSlice/thunks.js +10 -10
- package/dist/devicesSlice/selectors.d.cts +1 -1
- package/dist/devicesSlice/selectors.d.ts +1 -1
- package/dist/devicesSlice/thunks.cjs +19 -7
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +14 -3
- package/dist/devicesSlice/thunks.d.ts +14 -3
- package/dist/devicesSlice/thunks.js +12 -10
- package/dist/liststatehook.cjs +6 -2
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.d.cts +8 -2
- package/dist/liststatehook.d.ts +8 -2
- package/dist/liststatehook.js +1 -1
- package/dist/locationutils.cjs +6 -2
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +4 -1
- package/dist/locationutils.d.ts +4 -1
- package/dist/locationutils.js +1 -1
- package/dist/monitorSlice/thunks.cjs +1 -2
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +1 -1
- package/dist/monitorSlice/thunks.d.ts +1 -1
- package/dist/monitorSlice/thunks.js +7 -7
- package/dist/onboardingSlice/thunks.cjs +17 -7
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +10 -10
- package/dist/organizationSlice/selectors.d.cts +1 -1
- package/dist/organizationSlice/selectors.d.ts +1 -1
- package/dist/organizationSlice/thunks.cjs +39 -26
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +4 -4
- package/dist/organizationSlice/thunks.d.ts +4 -4
- package/dist/organizationSlice/thunks.js +10 -10
- package/dist/releasesSlice/selectors.d.cts +1 -1
- package/dist/releasesSlice/selectors.d.ts +1 -1
- package/dist/releasesSlice/thunks.cjs +1 -2
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +2 -2
- package/dist/releasesSlice/thunks.d.ts +2 -2
- package/dist/releasesSlice/thunks.js +8 -8
- package/dist/selectors.js +11 -11
- package/dist/store.cjs +1 -2
- package/dist/store.cjs.map +1 -1
- package/dist/store.js +4 -4
- package/dist/storehooks.cjs +41 -37
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +12 -21
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +41 -26
- 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 +12 -10
- package/dist/useDeploymentDevice.cjs +17 -7
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +10 -10
- package/dist/usersSlice/selectors.d.cts +5 -5
- package/dist/usersSlice/selectors.d.ts +5 -5
- package/dist/usersSlice/thunks.cjs +17 -7
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.d.cts +5 -2
- package/dist/usersSlice/thunks.d.ts +5 -2
- package/dist/usersSlice/thunks.js +10 -10
- package/package.json +7 -6
- package/dist/chunk-4UV7ZJXY.js.map +0 -1
- package/dist/chunk-53W2NRSL.js.map +0 -1
- package/dist/chunk-6WJI4MOP.js.map +0 -1
- /package/dist/{chunk-6PYYMAFS.js.map → chunk-73JXR6WS.js.map} +0 -0
- /package/dist/{chunk-ZVE23XXF.js.map → chunk-AROYP5V5.js.map} +0 -0
- /package/dist/{chunk-7VFPMJCH.js.map → chunk-DDY7IFSE.js.map} +0 -0
- /package/dist/{chunk-7KSKENLP.js.map → chunk-FQ6CCYUU.js.map} +0 -0
- /package/dist/{chunk-GHATCG2U.js.map → chunk-SVSHXLCN.js.map} +0 -0
package/dist/thunks.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getLatestReleaseInfo, setFirstLoginAfterSignup, setOfflineThreshold, setSearchState } from './appSlice/thunks.cjs';
|
|
2
2
|
export { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, updateDeploymentControlMap } from './deploymentsSlice/thunks.cjs';
|
|
3
|
-
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from './devicesSlice/thunks.cjs';
|
|
3
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from './devicesSlice/thunks.cjs';
|
|
4
4
|
export { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts } from './monitorSlice/thunks.cjs';
|
|
5
5
|
export { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType } from './onboardingSlice/thunks.cjs';
|
|
6
6
|
export { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenantDeviceLimit, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getIntegrations, getProducts, getSsoConfigById, getSsoConfigs, getTargetLocation, getTenants, getUserBilling, getUserOrganization, getUserSubscription, getWebhookEvents, removeTenant, requestPlanChange, requestPlanUpgrade, sendSupportMessage, setAuditlogsState, setTenantsListState, startCardUpdate, startUpgrade, storeSsoConfig, tenantDataDivergedMessage, transformProductResponse } from './organizationSlice/thunks.cjs';
|
|
@@ -31,6 +31,6 @@ import './deploymentsSlice/index.cjs';
|
|
|
31
31
|
import './devicesSlice/index.cjs';
|
|
32
32
|
import './devicesSlice/constants.cjs';
|
|
33
33
|
import './appSlice/index.cjs';
|
|
34
|
+
import 'axios';
|
|
34
35
|
import './onboardingSlice/constants.cjs';
|
|
35
36
|
import '@northern.tech/types/types.gen';
|
|
36
|
-
import 'axios';
|
package/dist/thunks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getLatestReleaseInfo, setFirstLoginAfterSignup, setOfflineThreshold, setSearchState } from './appSlice/thunks.js';
|
|
2
2
|
export { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, updateDeploymentControlMap } from './deploymentsSlice/thunks.js';
|
|
3
|
-
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from './devicesSlice/thunks.js';
|
|
3
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroup, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from './devicesSlice/thunks.js';
|
|
4
4
|
export { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts } from './monitorSlice/thunks.js';
|
|
5
5
|
export { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType } from './onboardingSlice/thunks.js';
|
|
6
6
|
export { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenantDeviceLimit, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getIntegrations, getProducts, getSsoConfigById, getSsoConfigs, getTargetLocation, getTenants, getUserBilling, getUserOrganization, getUserSubscription, getWebhookEvents, removeTenant, requestPlanChange, requestPlanUpgrade, sendSupportMessage, setAuditlogsState, setTenantsListState, startCardUpdate, startUpgrade, storeSsoConfig, tenantDataDivergedMessage, transformProductResponse } from './organizationSlice/thunks.js';
|
|
@@ -31,6 +31,6 @@ import './deploymentsSlice/index.js';
|
|
|
31
31
|
import './devicesSlice/index.js';
|
|
32
32
|
import './devicesSlice/constants.js';
|
|
33
33
|
import './appSlice/index.js';
|
|
34
|
+
import 'axios';
|
|
34
35
|
import './onboardingSlice/constants.js';
|
|
35
36
|
import '@northern.tech/types/types.gen';
|
|
36
|
-
import 'axios';
|
package/dist/thunks.js
CHANGED
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
getDeviceTwin,
|
|
62
62
|
getDevicesByStatus,
|
|
63
63
|
getDevicesWithAuth,
|
|
64
|
+
getDynamicGroup,
|
|
64
65
|
getDynamicGroups,
|
|
65
66
|
getGatewayDevices,
|
|
66
67
|
getGlobalSettings,
|
|
@@ -146,7 +147,7 @@ import {
|
|
|
146
147
|
verify2FA,
|
|
147
148
|
verifyEmailComplete,
|
|
148
149
|
verifyEmailStart
|
|
149
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-Y54UJUE4.js";
|
|
150
151
|
import {
|
|
151
152
|
cancelFileUpload,
|
|
152
153
|
createArtifact,
|
|
@@ -169,37 +170,37 @@ import {
|
|
|
169
170
|
setSingleReleaseTags,
|
|
170
171
|
updateReleaseInfo,
|
|
171
172
|
uploadArtifact
|
|
172
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-DDY7IFSE.js";
|
|
173
174
|
import {
|
|
174
175
|
changeNotificationSetting,
|
|
175
176
|
getDeviceAlerts,
|
|
176
177
|
getDeviceMonitorConfig,
|
|
177
178
|
getIssueCountsByType,
|
|
178
179
|
getLatestDeviceAlerts
|
|
179
|
-
} from "./chunk-
|
|
180
|
-
import "./chunk-
|
|
180
|
+
} from "./chunk-73JXR6WS.js";
|
|
181
|
+
import "./chunk-FQ6CCYUU.js";
|
|
181
182
|
import "./chunk-XJLZK4QY.js";
|
|
182
183
|
import "./chunk-IRQRV552.js";
|
|
183
|
-
import "./chunk-
|
|
184
|
+
import "./chunk-SVSHXLCN.js";
|
|
184
185
|
import "./chunk-TRKA7XYU.js";
|
|
185
186
|
import "./chunk-YR65C62H.js";
|
|
186
187
|
import "./chunk-TIL2S3JA.js";
|
|
187
188
|
import "./chunk-PVCHKW35.js";
|
|
188
189
|
import "./chunk-CQXDAXQF.js";
|
|
189
|
-
import "./chunk-VODRLEDP.js";
|
|
190
|
-
import "./chunk-6WJI4MOP.js";
|
|
191
190
|
import "./chunk-OLKM53RL.js";
|
|
191
|
+
import "./chunk-DYUOBPAI.js";
|
|
192
|
+
import "./chunk-VODRLEDP.js";
|
|
192
193
|
import "./chunk-UVTLZV34.js";
|
|
193
|
-
import "./chunk-
|
|
194
|
+
import "./chunk-ML5CUAQD.js";
|
|
194
195
|
import "./chunk-NMAXZ3ZY.js";
|
|
195
|
-
import "./chunk-
|
|
196
|
+
import "./chunk-AROYP5V5.js";
|
|
196
197
|
import "./chunk-PL6RIFD5.js";
|
|
197
198
|
import "./chunk-4ZYLGBJU.js";
|
|
198
199
|
import "./chunk-ZZQJWNQT.js";
|
|
199
200
|
import "./chunk-YO22XLHI.js";
|
|
200
201
|
import "./chunk-JIS4PA3R.js";
|
|
201
|
-
import "./chunk-WR6RQKF5.js";
|
|
202
202
|
import "./chunk-ZGRY42BZ.js";
|
|
203
|
+
import "./chunk-WR6RQKF5.js";
|
|
203
204
|
import "./chunk-4BHM6WVX.js";
|
|
204
205
|
import "./chunk-7WIISD2N.js";
|
|
205
206
|
import "./chunk-WWED74SG.js";
|
|
@@ -280,6 +281,7 @@ export {
|
|
|
280
281
|
getDeviceTwin,
|
|
281
282
|
getDevicesByStatus,
|
|
282
283
|
getDevicesWithAuth,
|
|
284
|
+
getDynamicGroup,
|
|
283
285
|
getDynamicGroups,
|
|
284
286
|
getExistingReleaseTags,
|
|
285
287
|
getGatewayDevices,
|
|
@@ -1386,9 +1386,9 @@ var initialState = {
|
|
|
1386
1386
|
hasDeviceConfig: false,
|
|
1387
1387
|
hasDeviceConnect: false,
|
|
1388
1388
|
hasFeedbackEnabled: false,
|
|
1389
|
+
hasManifestsEnabled: false,
|
|
1389
1390
|
hasMonitor: false,
|
|
1390
1391
|
hasMCUEnabled: false,
|
|
1391
|
-
hasOldTheme: false,
|
|
1392
1392
|
hasReporting: false,
|
|
1393
1393
|
isHosted: true,
|
|
1394
1394
|
isEnterprise: false
|
|
@@ -1423,7 +1423,6 @@ var initialState = {
|
|
|
1423
1423
|
offlineThreshold: getYesterday(),
|
|
1424
1424
|
versionInformation: {
|
|
1425
1425
|
Integration: "",
|
|
1426
|
-
"Mender-Client": "",
|
|
1427
1426
|
"Mender-Artifact": "",
|
|
1428
1427
|
"Meta-Mender": ""
|
|
1429
1428
|
},
|
|
@@ -2509,7 +2508,6 @@ var getLatestRelease = (thing) => {
|
|
|
2509
2508
|
};
|
|
2510
2509
|
var repoKeyMap = {
|
|
2511
2510
|
integration: "Integration",
|
|
2512
|
-
mender: "Mender-Client",
|
|
2513
2511
|
"mender-artifact": "Mender-Artifact"
|
|
2514
2512
|
};
|
|
2515
2513
|
var deductSaasState = (latestRelease, guiTags) => {
|
|
@@ -2613,10 +2611,10 @@ var getDeploymentsByStatus2 = createAppAsyncThunk(
|
|
|
2613
2611
|
const { status, page = defaultPage, perPage = defaultPerPage, startDate, endDate, group, type, shouldSelect = true, sort = import_constants4.SORTING_OPTIONS.desc } = options;
|
|
2614
2612
|
const created_after = startDate ? `&created_after=${startDate}` : "";
|
|
2615
2613
|
const created_before = endDate ? `&created_before=${endDate}` : "";
|
|
2616
|
-
const search = group ? `&
|
|
2614
|
+
const search = group ? `&name=${group}` : "";
|
|
2617
2615
|
const typeFilter = type ? `&type=${type}` : "";
|
|
2618
2616
|
return general_api_default.get(
|
|
2619
|
-
`${import_constants4.
|
|
2617
|
+
`${import_constants4.deploymentsApiUrlV2}/deployments?status=${status}&per_page=${perPage}&page=${page}${created_after}${created_before}${search}${typeFilter}&sort=${sort}`
|
|
2620
2618
|
).then((res) => {
|
|
2621
2619
|
const { deployments, deploymentIds } = transformDeployments(res.data, getState().deployments.byId);
|
|
2622
2620
|
const total = Number(res.headers[import_constants4.headerNames.total]);
|
|
@@ -3080,6 +3078,15 @@ var removeStaticGroup = createAppAsyncThunk(
|
|
|
3080
3078
|
])
|
|
3081
3079
|
)
|
|
3082
3080
|
);
|
|
3081
|
+
var getDynamicGroup = createAppAsyncThunk(
|
|
3082
|
+
`${sliceName3}/getDynamicGroupById`,
|
|
3083
|
+
(id, { dispatch }) => general_api_default.get(`${import_constants4.inventoryApiUrlV2}/filters/${id}`).catch((err) => {
|
|
3084
|
+
if (err.response && err.response.status === 404) {
|
|
3085
|
+
throw new Error("Request failed with status code 404");
|
|
3086
|
+
}
|
|
3087
|
+
return commonErrorHandler(err, `Error retrieving the group: `, dispatch, commonErrorFallback);
|
|
3088
|
+
})
|
|
3089
|
+
);
|
|
3083
3090
|
var getDynamicGroups = createAppAsyncThunk(
|
|
3084
3091
|
`${sliceName3}/getDynamicGroups`,
|
|
3085
3092
|
(_, { dispatch, getState }) => general_api_default.get(`${import_constants4.inventoryApiUrlV2}/filters?per_page=${MAX_PAGE_SIZE}`).then(({ data: filters }) => {
|
|
@@ -4022,7 +4029,7 @@ var verifyEmailStart = createAppAsyncThunk(
|
|
|
4022
4029
|
);
|
|
4023
4030
|
var verifyEmailComplete = createAppAsyncThunk(
|
|
4024
4031
|
`${sliceName8}/verifyEmailComplete`,
|
|
4025
|
-
(secret_hash, { dispatch }) => general_api_default.post(`${import_constants4.useradmApiUrl}/auth/verify-email/complete`, { secret_hash }).catch((err) => commonErrorHandler(err, "An error occured completing the email verification process:", dispatch)).finally(() => Promise.resolve(dispatch(getUser(OWN_USER_ID))))
|
|
4032
|
+
(secret_hash, { dispatch }) => general_api_default.post(`${import_constants4.useradmApiUrl}/auth/verify-email/complete`, { secret_hash }).then(() => dispatch(actions8.receivedActivationCode(""))).catch((err) => commonErrorHandler(err, "An error occured completing the email verification process:", dispatch)).finally(() => Promise.resolve(dispatch(getUser(OWN_USER_ID))))
|
|
4026
4033
|
);
|
|
4027
4034
|
var verify2FA = createAppAsyncThunk(
|
|
4028
4035
|
`${sliceName8}/verify2FA`,
|
|
@@ -4198,6 +4205,9 @@ var isEmptyPermissionSet = (permissionSet) => !Object.values(permissionSet).redu
|
|
|
4198
4205
|
var parseRolePermissions = ({ permission_sets_with_scope = [], permissions = [] }, permissionSets) => {
|
|
4199
4206
|
const preliminaryResult = permission_sets_with_scope.reduce(
|
|
4200
4207
|
(accu, permissionSet) => {
|
|
4208
|
+
if (!permissionSet.name) {
|
|
4209
|
+
return accu;
|
|
4210
|
+
}
|
|
4201
4211
|
const processor = permissionSets[permissionSet.name];
|
|
4202
4212
|
if (!processor) {
|
|
4203
4213
|
return accu;
|
|
@@ -4206,7 +4216,7 @@ var parseRolePermissions = ({ permission_sets_with_scope = [], permissions = []
|
|
|
4206
4216
|
if (scope) {
|
|
4207
4217
|
const result = mapPermissionSet(
|
|
4208
4218
|
permissionSet.name,
|
|
4209
|
-
permissionSet.scope
|
|
4219
|
+
permissionSet.scope?.value ?? [],
|
|
4210
4220
|
scope,
|
|
4211
4221
|
accu.uiPermissions[scope]
|
|
4212
4222
|
);
|