ydb-embedded-ui 6.21.0 → 6.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
- package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
- package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDisk/VDisk.d.ts +2 -1
- package/dist/components/VDisk/VDisk.js +2 -2
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/containers/App/App.scss +1 -1
- package/dist/containers/Cluster/Cluster.js +1 -1
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/Clusters.js +3 -3
- package/dist/containers/Clusters/Clusters.js.map +1 -1
- package/dist/containers/Clusters/columns.js +2 -2
- package/dist/containers/Clusters/columns.js.map +1 -1
- package/dist/containers/Clusters/constants.d.ts +4 -4
- package/dist/containers/Clusters/constants.js +3 -3
- package/dist/containers/Clusters/constants.js.map +1 -1
- package/dist/containers/Node/Node.js +14 -4
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.js +4 -5
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +10 -11
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.js +10 -11
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
- package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +29 -39
- package/dist/containers/Nodes/columns/columns.js.map +1 -0
- package/dist/containers/Nodes/columns/constants.d.ts +39 -0
- package/dist/containers/Nodes/columns/constants.js +79 -0
- package/dist/containers/Nodes/columns/constants.js.map +1 -0
- package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
- package/dist/containers/Nodes/columns/hooks.js +11 -0
- package/dist/containers/Nodes/columns/hooks.js.map +1 -0
- package/dist/containers/Nodes/columns/i18n/en.json +16 -0
- package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Nodes/columns/i18n/index.js +5 -0
- package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Nodes/columns/types.d.ts +9 -0
- package/dist/containers/Nodes/columns/types.js +2 -0
- package/dist/containers/Nodes/columns/types.js.map +1 -0
- package/dist/containers/Nodes/getNodes.d.ts +3 -2
- package/dist/containers/Nodes/getNodes.js +6 -3
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +12 -10
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
- package/dist/containers/PDiskPage/i18n/en.json +1 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
- package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +4 -4
- package/dist/containers/Storage/PDisk/PDisk.js +2 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +2 -3
- package/dist/containers/Storage/PaginatedStorage.js +27 -6
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +4 -4
- package/dist/containers/Storage/Storage.js +45 -11
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageControls/StorageControls.d.ts +4 -1
- package/dist/containers/Storage/StorageControls/StorageControls.js +4 -2
- package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +3 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +2 -4
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +3 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.js +2 -4
- package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
- package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +33 -81
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +37 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js +75 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +6 -2
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +22 -14
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +15 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js +4 -1
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +3 -3
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +2 -5
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +4 -6
- package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -4
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
- package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +23 -0
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
- package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +21 -31
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +25 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js +47 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +9 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js +7 -4
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
- package/dist/containers/Storage/StorageWrapper.js.map +1 -1
- package/dist/containers/Storage/utils/index.js +6 -5
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
- package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -2
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +46 -55
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +12 -12
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
- package/dist/containers/Tenant/utils/schema.js +1 -0
- package/dist/containers/Tenant/utils/schema.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
- package/dist/containers/VDiskPage/VDiskPage.js +9 -33
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
- package/dist/containers/VDiskPage/i18n/en.json +1 -1
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/services/api.d.ts +16 -5
- package/dist/services/api.js +50 -11
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +2 -2
- package/dist/services/settings.js +2 -3
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
- package/dist/store/reducers/capabilities/capabilities.js +6 -1
- package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
- package/dist/store/reducers/executeQuery.js +3 -0
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +2 -24
- package/dist/store/reducers/pdisk/pdisk.js +29 -2
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.js +1 -1
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/storage/storage.d.ts +2 -2
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/tooltip.d.ts +1 -1
- package/dist/styles/mixins.scss +3 -3
- package/dist/types/api/common.d.ts +1 -0
- package/dist/types/api/nodes.d.ts +33 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/query.d.ts +1 -0
- package/dist/types/api/storage.d.ts +8 -5
- package/dist/types/store/query.d.ts +5 -8
- package/dist/utils/constants.d.ts +0 -8
- package/dist/utils/constants.js +0 -9
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/filters.d.ts +2 -1
- package/dist/utils/filters.js +1 -4
- package/dist/utils/filters.js.map +1 -1
- package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
- package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
- package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
- package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
- package/dist/utils/hooks/useSelectedColumns.js +35 -0
- package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
- package/dist/utils/nodes.d.ts +3 -22
- package/dist/utils/nodes.js +16 -19
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +129 -0
- package/dist/utils/query.js +33 -1
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/storage.d.ts +1 -1
- package/dist/utils/storage.js.map +1 -1
- package/package.json +2 -1
- package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
- package/dist/containers/Clusters/useSelectedColumns.js +0 -26
- package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
- package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
- package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
- package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
- package/dist/containers/VDiskPage/utils.d.ts +0 -2
- package/dist/containers/VDiskPage/utils.js +0 -7
- package/dist/containers/VDiskPage/utils.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
@@ -1,13 +1,40 @@
|
|
1
1
|
import { getPDiskId } from '../../../utils/disks/helpers';
|
2
2
|
import { api } from '../api';
|
3
|
+
import { queryCapability } from '../capabilities/capabilities';
|
3
4
|
import { preparePDiskDataResponse } from './utils';
|
4
5
|
export const pDiskApi = api.injectEndpoints({
|
5
6
|
endpoints: (build) => ({
|
6
7
|
getPdiskInfo: build.query({
|
7
|
-
queryFn: async ({ nodeId, pDiskId }, { signal }) => {
|
8
|
+
queryFn: async ({ nodeId, pDiskId }, { signal, getState, dispatch }) => {
|
9
|
+
const pDiskInfoHandlerVersion = await queryCapability('/pdisk/info', {
|
10
|
+
getState: getState,
|
11
|
+
dispatch,
|
12
|
+
});
|
13
|
+
const newApiAvailable = pDiskInfoHandlerVersion > 0;
|
14
|
+
let diskInfoPromise;
|
15
|
+
if (newApiAvailable) {
|
16
|
+
diskInfoPromise = window.api.getPDiskInfo({ nodeId, pDiskId }, { signal });
|
17
|
+
}
|
18
|
+
else {
|
19
|
+
diskInfoPromise = window.api
|
20
|
+
.getNodeWhiteboardPDiskInfo({ nodeId, pDiskId }, { signal })
|
21
|
+
.then((result) => {
|
22
|
+
if (result.PDiskStateInfo) {
|
23
|
+
return {
|
24
|
+
Whiteboard: {
|
25
|
+
PDisk: {
|
26
|
+
...result.PDiskStateInfo[0],
|
27
|
+
ExpectedSlotCount: undefined,
|
28
|
+
},
|
29
|
+
},
|
30
|
+
};
|
31
|
+
}
|
32
|
+
return {};
|
33
|
+
});
|
34
|
+
}
|
8
35
|
try {
|
9
36
|
const response = await Promise.all([
|
10
|
-
|
37
|
+
diskInfoPromise,
|
11
38
|
window.api.getNodeInfo(nodeId, { signal }),
|
12
39
|
]);
|
13
40
|
const data = preparePDiskDataResponse(response);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pdisk.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/pdisk.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"pdisk.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/pdisk.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAC,wBAAwB,EAAC,MAAM,SAAS,CAAC;AAOjD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC,eAAe,CAAC;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC;YACtB,OAAO,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,OAAO,EAAc,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAC,EAAE,EAAE;gBAC5E,MAAM,uBAAuB,GAAG,MAAM,eAAe,CAAC,aAAa,EAAE;oBACjE,QAAQ,EAAE,QAAoB;oBAC9B,QAAQ;iBACX,CAAC,CAAC;gBACH,MAAM,eAAe,GAAG,uBAAuB,GAAG,CAAC,CAAC;gBAEpD,IAAI,eAA4C,CAAC;gBACjD,IAAI,eAAe,EAAE,CAAC;oBAClB,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;gBAC3E,CAAC;qBAAM,CAAC;oBACJ,eAAe,GAAG,MAAM,CAAC,GAAG;yBACvB,0BAA0B,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;yBACvD,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;wBACb,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;4BACxB,OAAO;gCACH,UAAU,EAAE;oCACR,KAAK,EAAE;wCACH,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;wCAC3B,iBAAiB,EAAE,SAAS;qCAC/B;iCACJ;6BACJ,CAAC;wBACN,CAAC;wBACD,OAAO,EAAE,CAAC;oBACd,CAAC,CAAC,CAAC;gBACX,CAAC;gBAED,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;wBAC/B,eAAe;wBACf,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC;qBAC3C,CAAC,CAAC;oBACH,MAAM,IAAI,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC;oBAChD,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC;gBACpC,KAAK;gBACL;oBACI,IAAI,EAAE,WAAW;oBACjB,EAAE,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC;iBAC1C;aACJ;SACJ,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -60,7 +60,7 @@ export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
|
|
60
60
|
});
|
61
61
|
}
|
62
62
|
const diskSlots = [...vdisksSlots, ...emptySlots];
|
63
|
-
if (logSlot) {
|
63
|
+
if (logSlot && diskSlots.length > 0) {
|
64
64
|
diskSlots.unshift(logSlot);
|
65
65
|
}
|
66
66
|
const rawNode = (_a = nodeResponse.SystemStateInfo) === null || _a === void 0 ? void 0 : _a[0];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAI5D,MAAM,UAAU,wBAAwB,CAAC,CAAC,aAAa,GAAG,EAAE,EAAE,YAAY,CAGzE;;IACG,MAAM,EAAC,GAAG,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,EAAC,GAAG,aAAa,IAAI,EAAE,CAAC;IAExD,MAAM,EAAC,KAAK,EAAE,mBAAmB,GAAG,EAAE,EAAE,MAAM,EAAE,oBAAoB,GAAG,EAAE,EAAC,GAAG,UAAU,CAAC;IACxF,MAAM,EAAC,KAAK,EAAE,YAAY,GAAG,EAAE,EAAC,GAAG,GAAG,CAAC;IAEvC,MAAM,aAAa,GAAG,gBAAgB,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;IAE1E,MAAM,EACF,WAAW,EACX,YAAY,EACZ,SAAS,EAAE,cAAc,EACzB,UAAU,EACV,iBAAiB,EACjB,uBAAuB,GAC1B,GAAG,aAAa,CAAC;IAElB,IAAI,OAAoC,CAAC;IAEzC,IAAI,cAAc,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,OAAO,GAAG;YACN,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC;YACzB,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC;YAC3B,YAAY,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC;YAChE,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE;gBACN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AI,YAAY,CAAC,MAAM;QACnD,QAAQ,EAAE,YAAY,CAAC,IAAI;QAC3B,QAAQ,EAAE,MAAA,YAAY,CAAC,KAAK,0CAAG,CAAC,CAAC;QACjC,MAAM,EAAE,YAAY,CAAC,EAAE;QACvB,SAAS,EAAE,SAAS;KACvB,CAAC;AACN,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import type { NodesRequestParams } from '../../../types/api/nodes';
|
1
2
|
import type { StorageRequestParams } from '../../../types/api/storage';
|
2
|
-
import type { NodesApiRequestParams } from '../nodes/types';
|
3
3
|
export declare const storageApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
4
|
-
getStorageNodesInfo: import("@reduxjs/toolkit/query").QueryDefinition<Omit<
|
4
|
+
getStorageNodesInfo: import("@reduxjs/toolkit/query").QueryDefinition<Omit<NodesRequestParams, "type">, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedStorageResponse | undefined, "api">;
|
5
5
|
getStorageGroupsInfo: import("@reduxjs/toolkit/query").QueryDefinition<StorageRequestParams & {
|
6
6
|
shouldUseGroupsHandler?: boolean;
|
7
7
|
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedStorageResponse | undefined, "api">;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/storage.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,O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AC5B,CAAC,CAAC"}
|
@@ -9,7 +9,7 @@ export declare const showTooltip: (node: EventTarget | null, data: any, template
|
|
9
9
|
type: string;
|
10
10
|
node: EventTarget | null;
|
11
11
|
data: any;
|
12
|
-
templateType: "pool" | "
|
12
|
+
templateType: "pool" | "node" | "tablet" | "nodeEndpoints" | "tabletsOverall" | "histogram" | "cell" | "json";
|
13
13
|
additionalData: any;
|
14
14
|
positions: ITooltipPositions | undefined;
|
15
15
|
};
|
package/dist/styles/mixins.scss
CHANGED
@@ -352,10 +352,10 @@
|
|
352
352
|
}
|
353
353
|
|
354
354
|
&_orange {
|
355
|
-
--entity-state-font-color: var(--g-color-
|
355
|
+
--entity-state-font-color: var(--g-color-private-orange-500);
|
356
356
|
--entity-state-border-color: var(--ydb-color-status-orange);
|
357
|
-
--entity-state-background-color: var(--g-color-
|
358
|
-
--entity-state-fill-color: var(--g-color-
|
357
|
+
--entity-state-background-color: var(--g-color-private-orange-100);
|
358
|
+
--entity-state-fill-color: var(--g-color-private-orange-300);
|
359
359
|
}
|
360
360
|
&_red {
|
361
361
|
--entity-state-font-color: var(--g-color-text-danger);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { BackendSortParam } from './common';
|
1
2
|
import type { EFlag } from './enums';
|
2
3
|
import type { TPDiskStateInfo } from './pdisk';
|
3
4
|
import type { TTabletStateInfo } from './tablet';
|
@@ -116,4 +117,36 @@ declare enum EConfigState {
|
|
116
117
|
'Consistent' = "Consistent",
|
117
118
|
'Outdated' = "Outdated"
|
118
119
|
}
|
120
|
+
type NodesType = 'static' | 'dynamic' | 'any';
|
121
|
+
type NodesWithFilter = 'space' | 'missing' | 'all';
|
122
|
+
type NodesGroupByField = 'NodeId' | 'Host' | 'NodeName' | 'Database' | 'DiskSpaceUsage' | 'DC' | 'Rack' | 'Missing' | 'Uptime' | 'Version';
|
123
|
+
type NodesRequiredField = 'NodeId' | 'SystemState' | 'PDisks' | 'VDisks' | 'Tablets' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'Memory' | 'CPU' | 'LoadAverage' | 'Missing' | 'DiskSpaceUsage' | 'SubDomainKey' | 'DisconnectTime' | 'Database';
|
124
|
+
export type NodesSortValue = 'NodeId' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'CPU' | 'LoadAverage' | 'Memory' | `Missing` | `DiskSpaceUsage` | `Database`;
|
125
|
+
export type NodesSort = BackendSortParam<NodesSortValue>;
|
126
|
+
export interface NodesRequestParams {
|
127
|
+
/** @deprecated use database instead */
|
128
|
+
tenant?: string;
|
129
|
+
database?: string;
|
130
|
+
path?: string;
|
131
|
+
node_id?: string | number;
|
132
|
+
group_id?: string | number;
|
133
|
+
pool?: string;
|
134
|
+
type?: NodesType;
|
135
|
+
with?: NodesWithFilter;
|
136
|
+
storage?: boolean;
|
137
|
+
tablets?: boolean;
|
138
|
+
/** return nodes with less uptime in seconds */
|
139
|
+
uptime?: number;
|
140
|
+
/** return nodes with SystemState !== EFlag.Green */
|
141
|
+
problems_only?: boolean;
|
142
|
+
/** filter nodes by id or host */
|
143
|
+
filter?: string;
|
144
|
+
sort?: NodesSort;
|
145
|
+
group?: NodesGroupByField;
|
146
|
+
filter_group_by?: NodesGroupByField;
|
147
|
+
filter_group?: string;
|
148
|
+
fieldsRequired?: NodesRequiredField[] | 'all';
|
149
|
+
offset?: number;
|
150
|
+
limit?: number;
|
151
|
+
}
|
119
152
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"AAoIA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACb,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { BackendSortParam } from './common';
|
1
2
|
import type { EFlag } from './enums';
|
2
3
|
import type { EDecommitStatus, EDriveStatus, TPDiskStateInfo } from './pdisk';
|
3
4
|
import type { EVDiskStatus, TVDiskStateInfo } from './vdisk';
|
@@ -190,12 +191,12 @@ export type StorageV2SortValue = 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' |
|
|
190
191
|
/**
|
191
192
|
* Values to sort /storage/groups response
|
192
193
|
*/
|
193
|
-
export type GroupsSortField = StorageV2SortValue | 'MissingDisks' | 'State' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits';
|
194
|
-
export type StorageV2Sort =
|
195
|
-
export type GroupsSort =
|
194
|
+
export type GroupsSortField = StorageV2SortValue | 'MissingDisks' | 'State' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits' | 'Latency';
|
195
|
+
export type StorageV2Sort = BackendSortParam<StorageV2SortValue>;
|
196
|
+
export type GroupsSort = BackendSortParam<GroupsSortField>;
|
196
197
|
export type StorageWithFilter = 'space' | 'missing' | 'all';
|
197
|
-
export type GroupsGroupByField = 'GroupId' | 'Erasure' | 'Usage' | 'DiskSpaceUsage' | 'PoolName' | 'Kind' | 'Encryption' | 'MediaType' | 'MissingDisks' | 'State';
|
198
|
-
export type GroupsRequiredField = 'GroupId' | 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'MissingDisks' | 'Degraded' | 'State' | 'Usage' | 'Used' | 'Limit' | 'Usage' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits' | 'Read' | 'Write' | 'PDisk' | 'VDisk';
|
198
|
+
export type GroupsGroupByField = 'GroupId' | 'Erasure' | 'Usage' | 'DiskSpaceUsage' | 'PoolName' | 'Kind' | 'Encryption' | 'MediaType' | 'MissingDisks' | 'State' | 'Latency';
|
199
|
+
export type GroupsRequiredField = 'GroupId' | 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'MissingDisks' | 'Degraded' | 'State' | 'Usage' | 'Used' | 'Limit' | 'Usage' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits' | 'Read' | 'Write' | 'PDisk' | 'VDisk' | 'Latency';
|
199
200
|
interface BaseStorageRequestParams {
|
200
201
|
/** @deprecated use database instead */
|
201
202
|
tenant?: string;
|
@@ -220,6 +221,8 @@ export interface GroupsRequestParams extends BaseStorageRequestParams {
|
|
220
221
|
groupId?: string | number | (string | number)[];
|
221
222
|
sort?: GroupsSort;
|
222
223
|
group?: GroupsGroupByField;
|
224
|
+
filter_group_by?: GroupsGroupByField;
|
225
|
+
filter_group?: string;
|
223
226
|
fieldsRequired?: GroupsRequiredField[] | 'all';
|
224
227
|
}
|
225
228
|
export {};
|
@@ -1,10 +1,12 @@
|
|
1
|
-
import type {
|
1
|
+
import type { z } from 'zod';
|
2
|
+
import type { QUERY_ACTIONS, QUERY_MODES, QUERY_SYNTAX, STATISTICS_MODES, TRACING_LEVELS, TRANSACTION_MODES, querySettingsValidationSchema } from '../../utils/query';
|
2
3
|
import type { IResponseError, NetworkError } from '../api/error';
|
3
4
|
import type { ColumnType, KeyValueRow, ErrorResponse as QueryErrorResponseData, QueryPlan, ScriptPlan, TKqpStatsQuery } from '../api/query';
|
4
5
|
import type { ValueOf } from '../common';
|
5
6
|
export interface ParsedResultSet {
|
6
7
|
columns?: ColumnType[];
|
7
8
|
result?: KeyValueRow[];
|
9
|
+
truncated?: boolean;
|
8
10
|
}
|
9
11
|
export interface IQueryResult {
|
10
12
|
resultSets?: ParsedResultSet[];
|
@@ -14,18 +16,13 @@ export interface IQueryResult {
|
|
14
16
|
plan?: ScriptPlan | QueryPlan;
|
15
17
|
ast?: string;
|
16
18
|
traceId?: string;
|
19
|
+
truncated?: boolean;
|
17
20
|
}
|
18
21
|
export interface QueryRequestParams {
|
19
22
|
database: string;
|
20
23
|
query: string;
|
21
24
|
}
|
22
|
-
export
|
23
|
-
queryMode: QueryMode;
|
24
|
-
transactionMode: TransactionMode;
|
25
|
-
timeout?: string;
|
26
|
-
statisticsMode?: StatisticsMode;
|
27
|
-
tracingLevel?: TracingLevel;
|
28
|
-
}
|
25
|
+
export type QuerySettings = z.infer<typeof querySettingsValidationSchema>;
|
29
26
|
export type QueryErrorResponse = IResponseError<QueryErrorResponseData>;
|
30
27
|
export type QueryError = NetworkError | QueryErrorResponse;
|
31
28
|
export type QueryAction = ValueOf<typeof QUERY_ACTIONS>;
|
@@ -95,13 +95,6 @@ export declare const TENANT_OVERVIEW_TABLES_SETTINGS: {
|
|
95
95
|
readonly stripedRows?: boolean;
|
96
96
|
readonly headerMod?: "multiline" | "pre";
|
97
97
|
};
|
98
|
-
export declare const DEFAULT_QUERY_SETTINGS: {
|
99
|
-
queryMode: "query";
|
100
|
-
transactionMode: "implicit";
|
101
|
-
timeout: string;
|
102
|
-
statisticsMode: "none";
|
103
|
-
tracingLevel: "detailed";
|
104
|
-
};
|
105
98
|
export declare const QUERY_EXECUTION_SETTINGS_KEY = "queryExecutionSettings";
|
106
99
|
export declare const LAST_QUERY_EXECUTION_SETTINGS_KEY = "last_query_execution_settings";
|
107
100
|
export declare const QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY = "querySettingsBannerLastClosed";
|
@@ -116,4 +109,3 @@ export declare const ENABLE_AUTOCOMPLETE = "enableAutocomplete";
|
|
116
109
|
export declare const AUTOCOMPLETE_ON_ENTER = "autocompleteOnEnter";
|
117
110
|
export declare const IS_HOTKEYS_HELP_HIDDEN_KEY = "isHotKeysHelpHidden";
|
118
111
|
export declare const DEV_ENABLE_TRACING_FOR_ALL_REQUESTS = "enable_tracing_for_all_requests";
|
119
|
-
export declare const USE_ADVANCED_STORAGE_KEY = "use_advanced_storage";
|
package/dist/utils/constants.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import DataTable from '@gravity-ui/react-data-table';
|
2
2
|
import { EType } from '../types/api/tablet';
|
3
|
-
import { QUERY_MODES, STATISTICS_MODES, TRACING_LEVELS, TRANSACTION_MODES } from './query';
|
4
3
|
const SECOND = 1000;
|
5
4
|
export const AUTO_RELOAD_INTERVAL = 10 * SECOND;
|
6
5
|
export const DEFAULT_POLLING_INTERVAL = 30 * SECOND;
|
@@ -96,13 +95,6 @@ export const TENANT_OVERVIEW_TABLES_SETTINGS = {
|
|
96
95
|
stickyHead: 'fixed',
|
97
96
|
dynamicRender: false,
|
98
97
|
};
|
99
|
-
export const DEFAULT_QUERY_SETTINGS = {
|
100
|
-
queryMode: QUERY_MODES.query,
|
101
|
-
transactionMode: TRANSACTION_MODES.implicit,
|
102
|
-
timeout: '60',
|
103
|
-
statisticsMode: STATISTICS_MODES.none,
|
104
|
-
tracingLevel: TRACING_LEVELS.detailed,
|
105
|
-
};
|
106
98
|
export const QUERY_EXECUTION_SETTINGS_KEY = 'queryExecutionSettings';
|
107
99
|
export const LAST_QUERY_EXECUTION_SETTINGS_KEY = 'last_query_execution_settings';
|
108
100
|
export const QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY = 'querySettingsBannerLastClosed';
|
@@ -122,5 +114,4 @@ export const ENABLE_AUTOCOMPLETE = 'enableAutocomplete';
|
|
122
114
|
export const AUTOCOMPLETE_ON_ENTER = 'autocompleteOnEnter';
|
123
115
|
export const IS_HOTKEYS_HELP_HIDDEN_KEY = 'isHotKeysHelpHidden';
|
124
116
|
export const DEV_ENABLE_TRACING_FOR_ALL_REQUESTS = 'enable_tracing_for_all_requests';
|
125
|
-
export const USE_ADVANCED_STORAGE_KEY = 'use_advanced_storage';
|
126
117
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAC,KAAK,EAAC,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,O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SAAS,CAAC,MAAM;IAC5B,gBAAgB,EAAE,IAAI;IACtB,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,IAAI;CACb,CAAC;AAEX,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC3C,GAAG,sBAAsB;IACzB,UAAU,EAAE,OAAO;IACnB,aAAa,EAAE,KAAK;CACd,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG,wBAAwB,CAAC;AACrE,MAAM,CAAC,MAAM,iCAAiC,GAAG,+BAA+B,CAAC;AACjF,MAAM,CAAC,MAAM,qCAAqC,GAAG,+BAA+B,CAAC;AAErF,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAEnE,MAAM,CAAC,MAAM,6BAA6B,GAAG,yBAAyB,CAAC;AAEvE,sDAAsD;AACtD,MAAM,CAAC,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAElE,kCAAkC;AAClC,2CAA2C;AAC3C,MAAM,CAAC,MAAM,wBAAwB,GAAG,2BAA2B,CAAC;AAEpE,0CAA0C;AAC1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,kDAAkD;AAClD,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,4BAA4B,CAAC;AAEhF,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAE3D,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,iCAAiC,CAAC"}
|
package/dist/utils/filters.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
1
|
import type { OrderType } from '@gravity-ui/react-data-table';
|
2
|
-
|
2
|
+
import type { BackendSortParam } from '../types/api/common';
|
3
|
+
export declare const prepareSortValue: <T extends string>(sortValue: T, sortOrder?: OrderType) => BackendSortParam<T>;
|
3
4
|
export declare const prepareSearchValue: (searchValue?: string) => RegExp;
|
package/dist/utils/filters.js
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
import { DESCENDING } from '@gravity-ui/react-data-table/build/esm/lib/constants';
|
2
2
|
import escapeRegExp from 'lodash/escapeRegExp';
|
3
3
|
export const prepareSortValue = (sortValue, sortOrder = DESCENDING) => {
|
4
|
-
if (!sortValue) {
|
5
|
-
return '';
|
6
|
-
}
|
7
4
|
if (sortOrder === DESCENDING) {
|
8
|
-
return
|
5
|
+
return `-${sortValue}`;
|
9
6
|
}
|
10
7
|
return sortValue;
|
11
8
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/utils/filters.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,sDAAsD,CAAC;AAChF,OAAO,YAAY,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/utils/filters.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,sDAAsD,CAAC;AAChF,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAI/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,SAAY,EACZ,YAAuB,UAAU,EACd,EAAE;IACrB,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;QAC3B,OAAO,IAAI,SAAS,EAAE,CAAC;IAC3B,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,WAAW,GAAG,EAAE,EAAE,EAAE;IACnD,OAAO,IAAI,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC,CAAC;AACtD,CAAC,CAAC"}
|
@@ -3,8 +3,8 @@ export declare const useChangedQuerySettings: () => {
|
|
3
3
|
isIndicatorShown: boolean | 0 | undefined;
|
4
4
|
closeBanner: () => void;
|
5
5
|
resetBanner: () => void;
|
6
|
-
changedCurrentSettings: (
|
6
|
+
changedCurrentSettings: (("queryMode" | "transactionMode" | "statisticsMode" | "tracingLevel") | ("timeout" | "limitRows"))[];
|
7
7
|
changedCurrentSettingsDescriptions: Record<string, string>;
|
8
|
-
changedLastExucutionSettings: (
|
8
|
+
changedLastExucutionSettings: (("queryMode" | "transactionMode" | "statisticsMode" | "tracingLevel") | ("timeout" | "limitRows"))[];
|
9
9
|
changedLastExecutionSettingsDescriptions: Record<string, string>;
|
10
10
|
};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import getChangedQueryExecutionSettings from '../../containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings';
|
2
2
|
import getChangedQueryExecutionSettingsDescription from '../../containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription';
|
3
|
-
import {
|
3
|
+
import { QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY, WEEK_IN_SECONDS } from '../constants';
|
4
|
+
import { DEFAULT_QUERY_SETTINGS } from '../query';
|
4
5
|
import { useLastQueryExecutionSettings } from './useLastQueryExecutionSettings';
|
5
6
|
import { useQueryExecutionSettings } from './useQueryExecutionSettings';
|
6
7
|
import { useSetting } from './useSetting';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useChangedQuerySettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useChangedQuerySettings.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,MAAM,0FAA0F,CAAC;AACxI,OAAO,2CAA2C,MAAM,qGAAqG,CAAC;AAC9J,OAAO,
|
1
|
+
{"version":3,"file":"useChangedQuerySettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useChangedQuerySettings.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,MAAM,0FAA0F,CAAC;AACxI,OAAO,2CAA2C,MAAM,qGAAqG,CAAC;AAC9J,OAAO,EAAC,qCAAqC,EAAE,eAA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G,IAAI,CAAC;IAEpE,MAAM,aAAa,GAAG,+BAA+B,IAAI,CAAC,gBAAgB,CAAC;IAC3E,MAAM,gBAAgB,GAAG,+BAA+B,IAAI,gBAAgB,CAAC;IAE7E,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,4BAA4B,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAEnE,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC;IAElE,OAAO;QACH,aAAa;QACb,gBAAgB;QAChB,WAAW;QACX,WAAW;QAEX,sBAAsB;QACtB,kCAAkC;QAElC,4BAA4B;QAC5B,wCAAwC;KAC3C,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,2 +1,15 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const useLastQueryExecutionSettings: () => readonly [{
|
2
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
3
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
4
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
5
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
6
|
+
timeout?: number | undefined;
|
7
|
+
limitRows?: number | undefined;
|
8
|
+
} | undefined, (value: {
|
9
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
10
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
11
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
12
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
13
|
+
timeout?: number | undefined;
|
14
|
+
limitRows?: number | undefined;
|
15
|
+
} | undefined) => void];
|
@@ -1,16 +1,15 @@
|
|
1
1
|
import { LAST_QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
|
2
|
+
import { querySettingsValidationSchema } from '../query';
|
2
3
|
import { useSetting } from './useSetting';
|
3
4
|
export const useLastQueryExecutionSettings = () => {
|
4
5
|
const [lastStorageSettings, setLastSettings] = useSetting(LAST_QUERY_EXECUTION_SETTINGS_KEY);
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
13
|
-
: undefined;
|
6
|
+
let lastSettings;
|
7
|
+
try {
|
8
|
+
lastSettings = querySettingsValidationSchema.parse(lastStorageSettings);
|
9
|
+
}
|
10
|
+
catch (error) {
|
11
|
+
lastSettings = undefined;
|
12
|
+
}
|
14
13
|
return [lastSettings, setLastSettings];
|
15
14
|
};
|
16
15
|
//# sourceMappingURL=useLastQueryExecutionSettings.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useLastQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useLastQueryExecutionSettings.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iCAAiC,EAAC,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"useLastQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useLastQueryExecutionSettings.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iCAAiC,EAAC,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAC,6BAA6B,EAAC,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,GAAG,UAAU,CACrD,iCAAiC,CACpC,CAAC;IACF,IAAI,YAAuC,CAAC;IAE5C,IAAI,CAAC;QACD,YAAY,GAAG,6BAA6B,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC5E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,YAAY,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,OAAO,CAAC,YAAY,EAAE,eAAe,CAAU,CAAC;AACpD,CAAC,CAAC"}
|
@@ -1,2 +1,15 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const useQueryExecutionSettings: () => readonly [{
|
2
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
3
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
4
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
5
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
6
|
+
timeout?: number | undefined;
|
7
|
+
limitRows?: number | undefined;
|
8
|
+
}, (value: {
|
9
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
10
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
11
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
12
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
13
|
+
timeout?: number | undefined;
|
14
|
+
limitRows?: number | undefined;
|
15
|
+
}) => void];
|
@@ -1,17 +1,15 @@
|
|
1
1
|
import { useTracingLevelOptionAvailable } from '../../store/reducers/capabilities/hooks';
|
2
|
-
import {
|
2
|
+
import { QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
|
3
|
+
import { DEFAULT_QUERY_SETTINGS, querySettingsRestoreSchema } from '../query';
|
3
4
|
import { useSetting } from './useSetting';
|
4
5
|
export const useQueryExecutionSettings = () => {
|
5
|
-
var _a, _b, _c, _d;
|
6
6
|
const enableTracingLevel = useTracingLevelOptionAvailable();
|
7
7
|
const [storageSettings, setSettings] = useSetting(QUERY_EXECUTION_SETTINGS_KEY);
|
8
|
+
const validatedSettings = querySettingsRestoreSchema.parse(storageSettings);
|
8
9
|
const settings = {
|
9
|
-
|
10
|
-
timeout: (_b = storageSettings.timeout) !== null && _b !== void 0 ? _b : DEFAULT_QUERY_SETTINGS.timeout,
|
11
|
-
statisticsMode: (_c = storageSettings.statisticsMode) !== null && _c !== void 0 ? _c : DEFAULT_QUERY_SETTINGS.statisticsMode,
|
12
|
-
transactionMode: (_d = storageSettings.transactionMode) !== null && _d !== void 0 ? _d : DEFAULT_QUERY_SETTINGS.transactionMode,
|
10
|
+
...validatedSettings,
|
13
11
|
tracingLevel: enableTracingLevel
|
14
|
-
?
|
12
|
+
? validatedSettings.tracingLevel
|
15
13
|
: DEFAULT_QUERY_SETTINGS.tracingLevel,
|
16
14
|
};
|
17
15
|
return [settings, setSettings];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,yCAAyC,CAAC;AAEvF,OAAO,EAAC,sBAAsB,EAAE,
|
1
|
+
{"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,yCAAyC,CAAC;AAEvF,OAAO,EAAC,4BAA4B,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,sBAAsB,EAAE,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAE5E,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,MAAM,kBAAkB,GAAG,8BAA8B,EAAE,CAAC;IAC5D,MAAM,CAAC,eAAe,EAAE,WAAW,CAAC,GAAG,UAAU,CAAgB,4BAA4B,CAAC,CAAC;IAE/F,MAAM,iBAAiB,GAAG,0BAA0B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAE5E,MAAM,QAAQ,GAAkB;QAC5B,GAAG,iBAAiB;QACpB,YAAY,EAAE,kBAAkB;YAC5B,CAAC,CAAC,iBAAiB,CAAC,YAAY;YAChC,CAAC,CAAC,sBAAsB,CAAC,YAAY;KAC5C,CAAC;IAEF,OAAO,CAAC,QAAQ,EAAE,WAAW,CAAU,CAAC;AAC5C,CAAC,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { TableColumnSetupItem } from '@gravity-ui/uikit';
|
2
|
+
export declare const useSelectedColumns: <T extends {
|
3
|
+
name: string;
|
4
|
+
}>(columns: T[], storageKey: string, columnsTitles: Record<string, string>, defaultColumnsIds: string[], requiredColumnsIds?: string[]) => {
|
5
|
+
columnsToShow: T[];
|
6
|
+
columnsToSelect: TableColumnSetupItem[];
|
7
|
+
setColumns: (updated: TableColumnSetupItem[]) => void;
|
8
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { settingsManager } from '../../services/settings';
|
3
|
+
export const useSelectedColumns = (columns, storageKey, columnsTitles, defaultColumnsIds, requiredColumnsIds) => {
|
4
|
+
const [selectedColumnsIds, setSelectedColumnsIds] = React.useState(() => {
|
5
|
+
return settingsManager.readUserSettingsValue(storageKey, defaultColumnsIds);
|
6
|
+
});
|
7
|
+
const columnsToShow = React.useMemo(() => {
|
8
|
+
return columns.filter((column) => selectedColumnsIds.find((name) => name === column.name));
|
9
|
+
}, [columns, selectedColumnsIds]);
|
10
|
+
const columnsToSelect = React.useMemo(() => {
|
11
|
+
const columnsIds = columns.map((column) => column.name);
|
12
|
+
return columnsIds.map((id) => {
|
13
|
+
const isRequired = requiredColumnsIds === null || requiredColumnsIds === void 0 ? void 0 : requiredColumnsIds.includes(id);
|
14
|
+
const isSelected = selectedColumnsIds.includes(id);
|
15
|
+
return {
|
16
|
+
id,
|
17
|
+
title: columnsTitles[id],
|
18
|
+
selected: isRequired || isSelected,
|
19
|
+
required: isRequired,
|
20
|
+
sticky: isRequired ? 'start' : undefined,
|
21
|
+
};
|
22
|
+
});
|
23
|
+
}, [columns, columnsTitles, requiredColumnsIds, selectedColumnsIds]);
|
24
|
+
const setColumns = React.useCallback((value) => {
|
25
|
+
const selectedColumns = value.filter((el) => el.selected).map((el) => el.id);
|
26
|
+
settingsManager.setUserSettingsValue(storageKey, selectedColumns);
|
27
|
+
setSelectedColumnsIds(selectedColumns);
|
28
|
+
}, [storageKey]);
|
29
|
+
return {
|
30
|
+
columnsToShow,
|
31
|
+
columnsToSelect,
|
32
|
+
setColumns,
|
33
|
+
};
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=useSelectedColumns.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useSelectedColumns.js","sourceRoot":"","sources":["../../../src/utils/hooks/useSelectedColumns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAC9B,OAAY,EACZ,UAAkB,EAClB,aAAqC,EACrC,iBAA2B,EAC3B,kBAA6B,EAC/B,EAAE;IACA,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAW,GAAG,EAAE;QAC9E,OAAO,eAAe,CAAC,qBAAqB,CAAC,UAAU,EAAE,iBAAiB,CAAa,CAAC;IAC5F,CAAC,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACrC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/F,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAElC,MAAM,eAAe,GAA2B,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/D,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAExD,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;YACzB,MAAM,UAAU,GAAG,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YACpD,MAAM,UAAU,GAAG,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAEnD,OAAO;gBACH,EAAE;gBACF,KAAK,EAAE,aAAa,CAAC,EAAE,CAAC;gBACxB,QAAQ,EAAE,UAAU,IAAI,UAAU;gBAClC,QAAQ,EAAE,UAAU;gBACpB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;aAC3C,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAErE,MAAM,UAAU,GAAsC,KAAK,CAAC,WAAW,CACnE,CAAC,KAAK,EAAE,EAAE;QACN,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAE7E,eAAe,CAAC,oBAAoB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;QAClE,qBAAqB,CAAC,eAAe,CAAC,CAAC;IAC3C,CAAC,EACD,CAAC,UAAU,CAAC,CACf,CAAC;IAEF,OAAO;QACH,aAAa;QACb,eAAe;QACf,UAAU;KACb,CAAC;AACN,CAAC,CAAC"}
|
package/dist/utils/nodes.d.ts
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import type { NodesPreparedEntity } from '../store/reducers/nodes/types';
|
3
3
|
import type { ProblemFilterValue } from '../store/reducers/settings/types';
|
4
|
-
import type { TSystemStateInfo } from '../types/api/nodes';
|
4
|
+
import type { NodesSortValue, TSystemStateInfo } from '../types/api/nodes';
|
5
5
|
import type { TNodeInfo } from '../types/api/nodesList';
|
6
|
-
import type { ValueOf } from '../types/common';
|
7
6
|
import type { NodesMap } from '../types/store/nodesList';
|
8
7
|
export declare enum NodesUptimeFilterValues {
|
9
8
|
'All' = "All",
|
@@ -26,23 +25,5 @@ export interface PreparedNodeSystemState extends TSystemStateInfo {
|
|
26
25
|
export declare const prepareNodeSystemState: (systemState?: TSystemStateInfo) => PreparedNodeSystemState;
|
27
26
|
export declare const getProblemParamValue: (problemFilter: ProblemFilterValue | undefined) => problemFilter is "With problems";
|
28
27
|
export declare const getUptimeParamValue: (nodesUptimeFilter: NodesUptimeFilterValues | undefined) => number | undefined;
|
29
|
-
|
30
|
-
|
31
|
-
*
|
32
|
-
* For actual values go to:\
|
33
|
-
* /nodes: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_nodes.h\
|
34
|
-
* /compute: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_compute.h
|
35
|
-
*/
|
36
|
-
export declare const NODES_SORT_VALUES: {
|
37
|
-
readonly NodeId: "NodeId";
|
38
|
-
readonly Host: "Host";
|
39
|
-
readonly DC: "DC";
|
40
|
-
readonly Rack: "Rack";
|
41
|
-
readonly Version: "Version";
|
42
|
-
readonly Uptime: "Uptime";
|
43
|
-
readonly Memory: "Memory";
|
44
|
-
readonly CPU: "CPU";
|
45
|
-
readonly LoadAverage: "LoadAverage";
|
46
|
-
};
|
47
|
-
export type NodesSortValue = ValueOf<typeof NODES_SORT_VALUES>;
|
48
|
-
export declare const isSortableNodesProperty: (value: string) => value is NodesSortValue;
|
28
|
+
export declare const NODES_SORT_VALUES: NodesSortValue[];
|
29
|
+
export declare const isSortableNodesProperty: (value: unknown) => value is NodesSortValue;
|