@northern.tech/store 0.21.0 → 0.22.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 +0 -1
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.js +2 -2
- package/dist/appSlice/index.cjs +0 -1
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.cjs +0 -1
- package/dist/appSlice/mocks.cjs.map +1 -1
- package/dist/appSlice/mocks.js +1 -1
- package/dist/appSlice/thunks.cjs +15 -5
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +7 -7
- package/dist/{chunk-6WJI4MOP.js → chunk-DI46RPAR.js} +1 -2
- package/dist/chunk-DI46RPAR.js.map +1 -0
- package/dist/{chunk-6PYYMAFS.js → chunk-EOD3DPQM.js} +3 -3
- package/dist/{chunk-53W2NRSL.js → chunk-FSYLFJAF.js} +7 -3
- package/dist/chunk-FSYLFJAF.js.map +1 -0
- package/dist/{chunk-GHATCG2U.js → chunk-HYOIJFRD.js} +2 -2
- package/dist/{chunk-7VFPMJCH.js → chunk-IJFBK5K3.js} +4 -4
- package/dist/{chunk-4UV7ZJXY.js → chunk-QDJQ36VD.js} +43 -28
- package/dist/chunk-QDJQ36VD.js.map +1 -0
- package/dist/{chunk-7KSKENLP.js → chunk-YLDLYOAY.js} +3 -3
- package/dist/commonSelectors.d.cts +14 -10
- package/dist/commonSelectors.d.ts +14 -10
- package/dist/deploymentsSlice/thunks.cjs +15 -5
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +3 -3
- package/dist/deploymentsSlice/thunks.d.ts +3 -3
- package/dist/deploymentsSlice/thunks.js +7 -7
- package/dist/devicesSlice/thunks.cjs +17 -5
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +12 -1
- package/dist/devicesSlice/thunks.d.ts +12 -1
- package/dist/devicesSlice/thunks.js +9 -7
- 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 +0 -1
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +4 -4
- package/dist/onboardingSlice/thunks.cjs +15 -5
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +7 -7
- package/dist/organizationSlice/thunks.cjs +37 -24
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +2 -2
- package/dist/organizationSlice/thunks.d.ts +2 -2
- package/dist/organizationSlice/thunks.js +7 -7
- package/dist/releasesSlice/thunks.cjs +0 -1
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +5 -5
- package/dist/store.cjs +0 -1
- package/dist/store.cjs.map +1 -1
- package/dist/store.js +3 -3
- package/dist/storehooks.cjs +37 -26
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +7 -9
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +39 -24
- 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 +9 -7
- package/dist/useDeploymentDevice.cjs +15 -5
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +7 -7
- package/dist/usersSlice/selectors.d.cts +4 -4
- package/dist/usersSlice/selectors.d.ts +4 -4
- package/dist/usersSlice/thunks.cjs +15 -5
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +7 -7
- package/package.json +1 -1
- 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-EOD3DPQM.js.map} +0 -0
- /package/dist/{chunk-GHATCG2U.js.map → chunk-HYOIJFRD.js.map} +0 -0
- /package/dist/{chunk-7VFPMJCH.js.map → chunk-IJFBK5K3.js.map} +0 -0
- /package/dist/{chunk-7KSKENLP.js.map → chunk-YLDLYOAY.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
actions_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HYOIJFRD.js";
|
|
4
4
|
import {
|
|
5
5
|
releasesSlice_default
|
|
6
6
|
} from "./chunk-TRKA7XYU.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-VODRLEDP.js";
|
|
24
24
|
import {
|
|
25
25
|
appSlice_default
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DI46RPAR.js";
|
|
27
27
|
import {
|
|
28
28
|
deploymentsSlice_default
|
|
29
29
|
} from "./chunk-OLKM53RL.js";
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
useAppDispatch,
|
|
140
140
|
createAppAsyncThunk
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-YLDLYOAY.js.map
|
|
@@ -1126,6 +1126,7 @@ declare const getAuditlogDevice: ((state: {
|
|
|
1126
1126
|
auth_sets?: Array<_northern_tech_types_types_gen.AuthSet>;
|
|
1127
1127
|
decommissioning?: boolean;
|
|
1128
1128
|
external_id?: _northern_tech_types_types_gen.ExternalIdentity;
|
|
1129
|
+
tier?: "standard" | "micro" | "system";
|
|
1129
1130
|
attributes: InventoryAttributes;
|
|
1130
1131
|
identity?: Record<string, string>;
|
|
1131
1132
|
monitor?: Record<string, string>;
|
|
@@ -1162,6 +1163,7 @@ declare const getAuditlogDevice: ((state: {
|
|
|
1162
1163
|
auth_sets?: Array<_northern_tech_types_types_gen.AuthSet>;
|
|
1163
1164
|
decommissioning?: boolean;
|
|
1164
1165
|
external_id?: _northern_tech_types_types_gen.ExternalIdentity;
|
|
1166
|
+
tier?: "standard" | "micro" | "system";
|
|
1165
1167
|
attributes: InventoryAttributes;
|
|
1166
1168
|
identity?: Record<string, string>;
|
|
1167
1169
|
monitor?: Record<string, string>;
|
|
@@ -1194,6 +1196,7 @@ declare const getAuditlogDevice: ((state: {
|
|
|
1194
1196
|
auth_sets?: Array<_northern_tech_types_types_gen.AuthSet>;
|
|
1195
1197
|
decommissioning?: boolean;
|
|
1196
1198
|
external_id?: _northern_tech_types_types_gen.ExternalIdentity;
|
|
1199
|
+
tier?: "standard" | "micro" | "system";
|
|
1197
1200
|
attributes: InventoryAttributes;
|
|
1198
1201
|
identity?: Record<string, string>;
|
|
1199
1202
|
monitor?: Record<string, string>;
|
|
@@ -1230,6 +1233,7 @@ declare const getAuditlogDevice: ((state: {
|
|
|
1230
1233
|
auth_sets?: Array<_northern_tech_types_types_gen.AuthSet>;
|
|
1231
1234
|
decommissioning?: boolean;
|
|
1232
1235
|
external_id?: _northern_tech_types_types_gen.ExternalIdentity;
|
|
1236
|
+
tier?: "standard" | "micro" | "system";
|
|
1233
1237
|
attributes: InventoryAttributes;
|
|
1234
1238
|
identity?: Record<string, string>;
|
|
1235
1239
|
monitor?: Record<string, string>;
|
|
@@ -1302,8 +1306,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1302
1306
|
}) => {
|
|
1303
1307
|
name: string;
|
|
1304
1308
|
description?: string;
|
|
1309
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1305
1310
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1306
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1307
1311
|
editable?: boolean;
|
|
1308
1312
|
isCustom?: boolean;
|
|
1309
1313
|
uiPermissions: Readonly<{
|
|
@@ -1349,8 +1353,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1349
1353
|
resultFunc: (resultFuncArgs_0: Partial<Organization>, resultFuncArgs_1: {
|
|
1350
1354
|
name: string;
|
|
1351
1355
|
description?: string;
|
|
1356
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1352
1357
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1353
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1354
1358
|
editable?: boolean;
|
|
1355
1359
|
isCustom?: boolean;
|
|
1356
1360
|
uiPermissions: Readonly<{
|
|
@@ -1365,8 +1369,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1365
1369
|
}[]) => {
|
|
1366
1370
|
name: string;
|
|
1367
1371
|
description?: string;
|
|
1372
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1368
1373
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1369
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1370
1374
|
editable?: boolean;
|
|
1371
1375
|
isCustom?: boolean;
|
|
1372
1376
|
uiPermissions: Readonly<{
|
|
@@ -1408,8 +1412,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1408
1412
|
memoizedResultFunc: ((resultFuncArgs_0: Partial<Organization>, resultFuncArgs_1: {
|
|
1409
1413
|
name: string;
|
|
1410
1414
|
description?: string;
|
|
1415
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1411
1416
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1412
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1413
1417
|
editable?: boolean;
|
|
1414
1418
|
isCustom?: boolean;
|
|
1415
1419
|
uiPermissions: Readonly<{
|
|
@@ -1424,8 +1428,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1424
1428
|
}[]) => {
|
|
1425
1429
|
name: string;
|
|
1426
1430
|
description?: string;
|
|
1431
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1427
1432
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1428
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1429
1433
|
editable?: boolean;
|
|
1430
1434
|
isCustom?: boolean;
|
|
1431
1435
|
uiPermissions: Readonly<{
|
|
@@ -1471,8 +1475,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1471
1475
|
lastResult: () => {
|
|
1472
1476
|
name: string;
|
|
1473
1477
|
description?: string;
|
|
1478
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1474
1479
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1475
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1476
1480
|
editable?: boolean;
|
|
1477
1481
|
isCustom?: boolean;
|
|
1478
1482
|
uiPermissions: Readonly<{
|
|
@@ -1523,8 +1527,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1523
1527
|
}) => {
|
|
1524
1528
|
name: string;
|
|
1525
1529
|
description?: string;
|
|
1530
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1526
1531
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1527
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1528
1532
|
editable?: boolean;
|
|
1529
1533
|
isCustom?: boolean;
|
|
1530
1534
|
uiPermissions: Readonly<{
|
|
@@ -1544,8 +1548,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1544
1548
|
resultFunc: (resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
|
|
1545
1549
|
name: string;
|
|
1546
1550
|
description?: string;
|
|
1551
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1547
1552
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1548
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1549
1553
|
editable?: boolean;
|
|
1550
1554
|
isCustom?: boolean;
|
|
1551
1555
|
uiPermissions: Readonly<{
|
|
@@ -1561,8 +1565,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1561
1565
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
|
|
1562
1566
|
name: string;
|
|
1563
1567
|
description?: string;
|
|
1568
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1564
1569
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1565
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1566
1570
|
editable?: boolean;
|
|
1567
1571
|
isCustom?: boolean;
|
|
1568
1572
|
uiPermissions: Readonly<{
|
|
@@ -1582,8 +1586,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1582
1586
|
lastResult: () => {
|
|
1583
1587
|
name: string;
|
|
1584
1588
|
description?: string;
|
|
1589
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1585
1590
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1586
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1587
1591
|
editable?: boolean;
|
|
1588
1592
|
isCustom?: boolean;
|
|
1589
1593
|
uiPermissions: Readonly<{
|
|
@@ -1126,6 +1126,7 @@ declare const getAuditlogDevice: ((state: {
|
|
|
1126
1126
|
auth_sets?: Array<_northern_tech_types_types_gen.AuthSet>;
|
|
1127
1127
|
decommissioning?: boolean;
|
|
1128
1128
|
external_id?: _northern_tech_types_types_gen.ExternalIdentity;
|
|
1129
|
+
tier?: "standard" | "micro" | "system";
|
|
1129
1130
|
attributes: InventoryAttributes;
|
|
1130
1131
|
identity?: Record<string, string>;
|
|
1131
1132
|
monitor?: Record<string, string>;
|
|
@@ -1162,6 +1163,7 @@ declare const getAuditlogDevice: ((state: {
|
|
|
1162
1163
|
auth_sets?: Array<_northern_tech_types_types_gen.AuthSet>;
|
|
1163
1164
|
decommissioning?: boolean;
|
|
1164
1165
|
external_id?: _northern_tech_types_types_gen.ExternalIdentity;
|
|
1166
|
+
tier?: "standard" | "micro" | "system";
|
|
1165
1167
|
attributes: InventoryAttributes;
|
|
1166
1168
|
identity?: Record<string, string>;
|
|
1167
1169
|
monitor?: Record<string, string>;
|
|
@@ -1194,6 +1196,7 @@ declare const getAuditlogDevice: ((state: {
|
|
|
1194
1196
|
auth_sets?: Array<_northern_tech_types_types_gen.AuthSet>;
|
|
1195
1197
|
decommissioning?: boolean;
|
|
1196
1198
|
external_id?: _northern_tech_types_types_gen.ExternalIdentity;
|
|
1199
|
+
tier?: "standard" | "micro" | "system";
|
|
1197
1200
|
attributes: InventoryAttributes;
|
|
1198
1201
|
identity?: Record<string, string>;
|
|
1199
1202
|
monitor?: Record<string, string>;
|
|
@@ -1230,6 +1233,7 @@ declare const getAuditlogDevice: ((state: {
|
|
|
1230
1233
|
auth_sets?: Array<_northern_tech_types_types_gen.AuthSet>;
|
|
1231
1234
|
decommissioning?: boolean;
|
|
1232
1235
|
external_id?: _northern_tech_types_types_gen.ExternalIdentity;
|
|
1236
|
+
tier?: "standard" | "micro" | "system";
|
|
1233
1237
|
attributes: InventoryAttributes;
|
|
1234
1238
|
identity?: Record<string, string>;
|
|
1235
1239
|
monitor?: Record<string, string>;
|
|
@@ -1302,8 +1306,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1302
1306
|
}) => {
|
|
1303
1307
|
name: string;
|
|
1304
1308
|
description?: string;
|
|
1309
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1305
1310
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1306
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1307
1311
|
editable?: boolean;
|
|
1308
1312
|
isCustom?: boolean;
|
|
1309
1313
|
uiPermissions: Readonly<{
|
|
@@ -1349,8 +1353,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1349
1353
|
resultFunc: (resultFuncArgs_0: Partial<Organization>, resultFuncArgs_1: {
|
|
1350
1354
|
name: string;
|
|
1351
1355
|
description?: string;
|
|
1356
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1352
1357
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1353
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1354
1358
|
editable?: boolean;
|
|
1355
1359
|
isCustom?: boolean;
|
|
1356
1360
|
uiPermissions: Readonly<{
|
|
@@ -1365,8 +1369,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1365
1369
|
}[]) => {
|
|
1366
1370
|
name: string;
|
|
1367
1371
|
description?: string;
|
|
1372
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1368
1373
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1369
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1370
1374
|
editable?: boolean;
|
|
1371
1375
|
isCustom?: boolean;
|
|
1372
1376
|
uiPermissions: Readonly<{
|
|
@@ -1408,8 +1412,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1408
1412
|
memoizedResultFunc: ((resultFuncArgs_0: Partial<Organization>, resultFuncArgs_1: {
|
|
1409
1413
|
name: string;
|
|
1410
1414
|
description?: string;
|
|
1415
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1411
1416
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1412
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1413
1417
|
editable?: boolean;
|
|
1414
1418
|
isCustom?: boolean;
|
|
1415
1419
|
uiPermissions: Readonly<{
|
|
@@ -1424,8 +1428,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1424
1428
|
}[]) => {
|
|
1425
1429
|
name: string;
|
|
1426
1430
|
description?: string;
|
|
1431
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1427
1432
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1428
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1429
1433
|
editable?: boolean;
|
|
1430
1434
|
isCustom?: boolean;
|
|
1431
1435
|
uiPermissions: Readonly<{
|
|
@@ -1471,8 +1475,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1471
1475
|
lastResult: () => {
|
|
1472
1476
|
name: string;
|
|
1473
1477
|
description?: string;
|
|
1478
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1474
1479
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1475
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1476
1480
|
editable?: boolean;
|
|
1477
1481
|
isCustom?: boolean;
|
|
1478
1482
|
uiPermissions: Readonly<{
|
|
@@ -1523,8 +1527,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1523
1527
|
}) => {
|
|
1524
1528
|
name: string;
|
|
1525
1529
|
description?: string;
|
|
1530
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1526
1531
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1527
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1528
1532
|
editable?: boolean;
|
|
1529
1533
|
isCustom?: boolean;
|
|
1530
1534
|
uiPermissions: Readonly<{
|
|
@@ -1544,8 +1548,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1544
1548
|
resultFunc: (resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
|
|
1545
1549
|
name: string;
|
|
1546
1550
|
description?: string;
|
|
1551
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1547
1552
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1548
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1549
1553
|
editable?: boolean;
|
|
1550
1554
|
isCustom?: boolean;
|
|
1551
1555
|
uiPermissions: Readonly<{
|
|
@@ -1561,8 +1565,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1561
1565
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
|
|
1562
1566
|
name: string;
|
|
1563
1567
|
description?: string;
|
|
1568
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1564
1569
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1565
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1566
1570
|
editable?: boolean;
|
|
1567
1571
|
isCustom?: boolean;
|
|
1568
1572
|
uiPermissions: Readonly<{
|
|
@@ -1582,8 +1586,8 @@ declare const getRelevantRoles: ((state: {
|
|
|
1582
1586
|
lastResult: () => {
|
|
1583
1587
|
name: string;
|
|
1584
1588
|
description?: string;
|
|
1589
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission>;
|
|
1585
1590
|
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1586
|
-
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1587
1591
|
editable?: boolean;
|
|
1588
1592
|
isCustom?: boolean;
|
|
1589
1593
|
uiPermissions: Readonly<{
|
|
@@ -920,7 +920,6 @@ var initialState2 = {
|
|
|
920
920
|
offlineThreshold: getYesterday(),
|
|
921
921
|
versionInformation: {
|
|
922
922
|
Integration: "",
|
|
923
|
-
"Mender-Client": "",
|
|
924
923
|
"Mender-Artifact": "",
|
|
925
924
|
"Meta-Mender": ""
|
|
926
925
|
},
|
|
@@ -2519,7 +2518,6 @@ var getLatestRelease = (thing) => {
|
|
|
2519
2518
|
};
|
|
2520
2519
|
var repoKeyMap = {
|
|
2521
2520
|
integration: "Integration",
|
|
2522
|
-
mender: "Mender-Client",
|
|
2523
2521
|
"mender-artifact": "Mender-Artifact"
|
|
2524
2522
|
};
|
|
2525
2523
|
var deductSaasState = (latestRelease, guiTags) => {
|
|
@@ -2720,6 +2718,15 @@ var removeStaticGroup = createAppAsyncThunk(
|
|
|
2720
2718
|
])
|
|
2721
2719
|
)
|
|
2722
2720
|
);
|
|
2721
|
+
var getDynamicGroup = createAppAsyncThunk(
|
|
2722
|
+
`${sliceName3}/getDynamicGroupById`,
|
|
2723
|
+
(id, { dispatch }) => general_api_default.get(`${import_constants5.inventoryApiUrlV2}/filters/${id}`).catch((err) => {
|
|
2724
|
+
if (err.response && err.response.status === 404) {
|
|
2725
|
+
throw new Error("Request failed with status code 404");
|
|
2726
|
+
}
|
|
2727
|
+
return commonErrorHandler(err, `Error retrieving the group: `, dispatch, commonErrorFallback);
|
|
2728
|
+
})
|
|
2729
|
+
);
|
|
2723
2730
|
var getDynamicGroups = createAppAsyncThunk(
|
|
2724
2731
|
`${sliceName3}/getDynamicGroups`,
|
|
2725
2732
|
(_, { dispatch, getState }) => general_api_default.get(`${import_constants5.inventoryApiUrlV2}/filters?per_page=${MAX_PAGE_SIZE}`).then(({ data: filters }) => {
|
|
@@ -3838,6 +3845,9 @@ var isEmptyPermissionSet = (permissionSet) => !Object.values(permissionSet).redu
|
|
|
3838
3845
|
var parseRolePermissions = ({ permission_sets_with_scope = [], permissions = [] }, permissionSets) => {
|
|
3839
3846
|
const preliminaryResult = permission_sets_with_scope.reduce(
|
|
3840
3847
|
(accu, permissionSet) => {
|
|
3848
|
+
if (!permissionSet.name) {
|
|
3849
|
+
return accu;
|
|
3850
|
+
}
|
|
3841
3851
|
const processor = permissionSets[permissionSet.name];
|
|
3842
3852
|
if (!processor) {
|
|
3843
3853
|
return accu;
|
|
@@ -3846,7 +3856,7 @@ var parseRolePermissions = ({ permission_sets_with_scope = [], permissions = []
|
|
|
3846
3856
|
if (scope) {
|
|
3847
3857
|
const result = mapPermissionSet(
|
|
3848
3858
|
permissionSet.name,
|
|
3849
|
-
permissionSet.scope
|
|
3859
|
+
permissionSet.scope?.value ?? [],
|
|
3850
3860
|
scope,
|
|
3851
3861
|
accu.uiPermissions[scope]
|
|
3852
3862
|
);
|
|
@@ -4242,10 +4252,10 @@ var getDeploymentsByStatus2 = createAppAsyncThunk(
|
|
|
4242
4252
|
const { status, page = defaultPage3, perPage = defaultPerPage3, startDate, endDate, group, type, shouldSelect = true, sort = import_constants5.SORTING_OPTIONS.desc } = options;
|
|
4243
4253
|
const created_after = startDate ? `&created_after=${startDate}` : "";
|
|
4244
4254
|
const created_before = endDate ? `&created_before=${endDate}` : "";
|
|
4245
|
-
const search = group ? `&
|
|
4255
|
+
const search = group ? `&name=${group}` : "";
|
|
4246
4256
|
const typeFilter = type ? `&type=${type}` : "";
|
|
4247
4257
|
return general_api_default.get(
|
|
4248
|
-
`${import_constants5.
|
|
4258
|
+
`${import_constants5.deploymentsApiUrlV2}/deployments?status=${status}&per_page=${perPage}&page=${page}${created_after}${created_before}${search}${typeFilter}&sort=${sort}`
|
|
4249
4259
|
).then((res) => {
|
|
4250
4260
|
const { deployments, deploymentIds } = transformDeployments(res.data, getState().deployments.byId);
|
|
4251
4261
|
const total = Number(res.headers[import_constants5.headerNames.total]);
|