ydb-embedded-ui 6.18.0 → 6.20.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +2 -1
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +11 -3
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
- package/dist/components/CriticalActionDialog/i18n/en.json +2 -1
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +7 -36
- package/dist/components/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +4 -0
- package/dist/components/PaginatedTable/TableChunk.js +5 -2
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableRow.js +1 -1
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -4
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/Tag/Tag.d.ts +2 -1
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Tags/Tags.d.ts +2 -1
- package/dist/components/Tags/Tags.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js +4 -2
- package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +4 -3
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
- package/dist/containers/AppWithClusters/useClusterData.d.ts +7 -1
- package/dist/containers/AppWithClusters/useClusterData.js +8 -8
- package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
- package/dist/containers/AsideNavigation/AsideNavigation.d.ts +3 -0
- package/dist/containers/AsideNavigation/AsideNavigation.js +6 -10
- package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
- package/dist/containers/AsideNavigation/Navigation.js +4 -1
- package/dist/containers/AsideNavigation/Navigation.js.map +1 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +3 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -4
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +5 -13
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +1 -0
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -112
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -14
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.d.ts +7 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js +43 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.scss +11 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.d.ts +8 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js +8 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +16 -0
- package/dist/containers/Cluster/ClusterInfo/shared.d.ts +1 -0
- package/dist/containers/Cluster/ClusterInfo/shared.js +3 -0
- package/dist/containers/Cluster/ClusterInfo/shared.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +12 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js +145 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
- package/dist/containers/Cluster/i18n/en.json +7 -1
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Cluster/i18n/index.js +1 -2
- package/dist/containers/Cluster/i18n/index.js.map +1 -1
- package/dist/containers/Header/Header.js +3 -7
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Node/Node.js +1 -5
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.js +5 -4
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Node/NodeStructure/NodeStructure.js +9 -3
- package/dist/containers/Node/NodeStructure/NodeStructure.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +3 -13
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +1 -1
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +16 -7
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +2 -0
- package/dist/containers/PDiskPage/PDiskGroups/utils.js +14 -0
- package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +1 -0
- package/dist/containers/PDiskPage/PDiskPage.js +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/Storage/Storage.js +9 -9
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +7 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js +7 -20
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -1
- package/dist/containers/Storage/StorageGroups/getGroups.js +27 -24
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +1 -1
- package/dist/containers/Storage/utils/index.js +3 -4
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.js +79 -0
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.scss +8 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/en.json +11 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +3 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +21 -4
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +7 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +1 -0
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +8 -3
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.d.ts +7 -0
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js +17 -0
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js.map +1 -0
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +9 -0
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +5 -9
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +7 -7
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -12
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +9 -24
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +0 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +4 -12
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +7 -5
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -6
- package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +1 -2
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/Query.js +14 -2
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +3 -2
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -36
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +1 -0
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/queryTemplates.js +1 -1
- package/dist/containers/Tenant/utils/queryTemplates.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 -12
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
- package/dist/containers/VDiskPage/VDiskPage.js +33 -10
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/utils.d.ts +2 -0
- package/dist/containers/VDiskPage/utils.js +7 -0
- package/dist/containers/VDiskPage/utils.js.map +1 -0
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +1 -0
- package/dist/lib.js.map +1 -1
- package/dist/services/api.d.ts +20 -16
- package/dist/services/api.js +62 -21
- package/dist/services/api.js.map +1 -1
- package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
- package/dist/services/parsers/parseMetaCluster.js +17 -31
- package/dist/services/parsers/parseMetaCluster.js.map +1 -1
- package/dist/services/settings.d.ts +0 -1
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +4 -4
- package/dist/store/defaultStore.d.ts +2 -2
- package/dist/store/getUrlData.js +9 -6
- package/dist/store/getUrlData.js.map +1 -1
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/api.js.map +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +4 -4
- package/dist/store/reducers/cancelQuery.d.ts +2 -2
- package/dist/store/reducers/cancelQuery.js.map +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +8 -1
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +230 -2
- package/dist/store/reducers/cluster/cluster.js +45 -3
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/utils.d.ts +4 -1
- package/dist/store/reducers/cluster/utils.js +16 -3
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +2 -2
- package/dist/store/reducers/executeQuery.d.ts +8 -4
- package/dist/store/reducers/executeQuery.js +35 -2
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -3
- package/dist/store/reducers/explainQuery/explainQuery.js +23 -2
- package/dist/store/reducers/explainQuery/explainQuery.js.map +1 -1
- package/dist/store/reducers/explainQuery/types.d.ts +1 -0
- package/dist/store/reducers/explainQuery/utils.d.ts +1 -1
- package/dist/store/reducers/explainQuery/utils.js.map +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +3 -3
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/nodes/nodes.d.ts +3 -4
- package/dist/store/reducers/nodes/nodes.js +1 -17
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +1 -6
- package/dist/store/reducers/nodes/utils.d.ts +1 -4
- package/dist/store/reducers/nodes/utils.js +1 -41
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/nodesList.d.ts +3 -3
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +2 -3
- package/dist/store/reducers/pdisk/pdisk.js +1 -21
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.d.ts +0 -3
- package/dist/store/reducers/pdisk/utils.js +0 -22
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/storage/requestStorageData.d.ts +5 -0
- package/dist/store/reducers/storage/requestStorageData.js +12 -0
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -0
- package/dist/store/reducers/storage/selectors.js +1 -1
- package/dist/store/reducers/storage/storage.d.ts +6 -4
- package/dist/store/reducers/storage/storage.js +6 -6
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +11 -23
- package/dist/store/reducers/storage/utils.d.ts +3 -2
- package/dist/store/reducers/storage/utils.js +52 -26
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +1 -1
- package/dist/store/reducers/tablet.d.ts +7 -7
- package/dist/store/reducers/tablets.d.ts +13 -13
- package/dist/store/reducers/tenant/constants.d.ts +1 -0
- package/dist/store/reducers/tenant/constants.js +1 -0
- package/dist/store/reducers/tenant/constants.js.map +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +5 -2
- package/dist/store/reducers/tenant/tenant.js +12 -0
- package/dist/store/reducers/tenant/tenant.js.map +1 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +27 -27
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -44
- package/dist/store/reducers/trace.d.ts +4 -5
- package/dist/store/reducers/trace.js +5 -8
- package/dist/store/reducers/trace.js.map +1 -1
- package/dist/store/reducers/vdisk/utils.d.ts +0 -2
- package/dist/store/reducers/vdisk/utils.js +0 -10
- package/dist/store/reducers/vdisk/utils.js.map +1 -1
- package/dist/store/reducers/vdisk/vdisk.d.ts +8 -5
- package/dist/store/reducers/vdisk/vdisk.js +17 -32
- package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
- package/dist/styles/mixins.scss +45 -0
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/cluster.d.ts +31 -1
- package/dist/types/api/cluster.js +3 -1
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/types/api/featureFlags.d.ts +13 -0
- package/dist/types/api/featureFlags.js +2 -0
- package/dist/types/api/featureFlags.js.map +1 -0
- package/dist/types/api/meta.d.ts +6 -4
- package/dist/types/api/pdisk.d.ts +1 -1
- package/dist/types/api/storage.d.ts +132 -6
- package/dist/types/api/storage.js +1 -5
- package/dist/types/api/storage.js.map +1 -1
- package/dist/types/api/trace.d.ts +16 -6
- package/dist/types/api/trace.js +7 -1
- package/dist/types/api/trace.js.map +1 -1
- package/dist/types/api/vdisk.d.ts +1 -1
- package/dist/types/store/executeQuery.d.ts +25 -3
- package/dist/types/store/executeQuery.js +5 -1
- package/dist/types/store/executeQuery.js.map +1 -1
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/constants.js +0 -1
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/disks/helpers.d.ts +4 -1
- package/dist/utils/disks/helpers.js +7 -1
- package/dist/utils/disks/helpers.js.map +1 -1
- package/dist/utils/monaco/yql/generateSuggestions.js +8 -3
- package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
- package/dist/utils/nodes.d.ts +1 -2
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/storage.d.ts +2 -21
- package/dist/utils/storage.js +14 -19
- package/dist/utils/storage.js.map +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.js +3 -2
- package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
- package/package.json +2 -6
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +0 -9
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +0 -9
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +0 -1
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +0 -3
- package/dist/containers/Cluster/i18n/ru.json +0 -16
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +0 -29
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.js +0 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/utils.d.ts +0 -3
- package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js +0 -13
- package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js.map +0 -1
- package/dist/types/api/compute.d.ts +0 -60
- package/dist/types/api/compute.js +0 -6
- package/dist/types/api/compute.js.map +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import singleClusterMode from './singleClusterMode';
|
2
2
|
export declare const rootReducer: {
|
3
|
-
api: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "
|
3
|
+
api: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">, import("redux").UnknownAction>;
|
4
4
|
singleClusterMode: typeof singleClusterMode;
|
5
5
|
cluster: import("redux").Reducer<import("./cluster/types").ClusterState>;
|
6
6
|
tenant: import("redux").Reducer<import("./tenant/types").TenantState>;
|
@@ -27,7 +27,7 @@ export declare const rootReducer: {
|
|
27
27
|
clusters: import("redux").Reducer<import("./clusters/types").ClustersFilters>;
|
28
28
|
};
|
29
29
|
declare const combinedReducer: import("redux").Reducer<{
|
30
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "
|
30
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
|
31
31
|
singleClusterMode: boolean;
|
32
32
|
cluster: import("./cluster/types").ClusterState;
|
33
33
|
tenant: import("./tenant/types").TenantState;
|
@@ -57,7 +57,7 @@ declare const combinedReducer: import("redux").Reducer<{
|
|
57
57
|
} | {
|
58
58
|
readonly type: "DISABLE_FULLSCREEN_MODE";
|
59
59
|
} | import("redux").Action<string>, Partial<{
|
60
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "
|
60
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api"> | undefined;
|
61
61
|
singleClusterMode: boolean | undefined;
|
62
62
|
cluster: import("./cluster/types").ClusterState | undefined;
|
63
63
|
tenant: import("./tenant/types").TenantState | undefined;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export declare const networkApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
2
|
-
getNetworkInfo: import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
3
|
-
}, "api", "All" | "PDiskData" | "
|
2
|
+
getNetworkInfo: import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../../types/api/netInfo").TNetInfo | undefined, "api">;
|
3
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export declare const nodeApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
2
2
|
getNodeInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
nodeId: string;
|
4
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
4
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedNode | undefined, "api">;
|
5
5
|
getNodeStructure: import("@reduxjs/toolkit/query").QueryDefinition<{
|
6
6
|
nodeId: string;
|
7
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
8
|
-
}, "api", "All" | "PDiskData" | "
|
7
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../../types/api/storage").TStorageInfo | undefined, "api">;
|
8
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { RootState } from '../../defaultStore';
|
2
2
|
import type { PreparedNodeStructure } from './types';
|
3
3
|
export declare const selectNodeStructure: ((state: {
|
4
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "
|
4
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
|
5
5
|
singleClusterMode: boolean;
|
6
6
|
cluster: import("../cluster/types").ClusterState;
|
7
7
|
tenant: import("../tenant/types").TenantState;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { NodesApiRequestParams } from './types';
|
2
2
|
export declare const nodesApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
3
|
-
getNodes: import("@reduxjs/toolkit/query").QueryDefinition<NodesApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
4
|
-
|
5
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
3
|
+
getNodes: import("@reduxjs/toolkit/query").QueryDefinition<NodesApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").NodesHandledResponse | undefined, "api">;
|
4
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { EVersion } from '../../../types/api/compute';
|
2
1
|
import { api } from '../api';
|
3
|
-
import {
|
2
|
+
import { prepareNodesData } from './utils';
|
4
3
|
export const nodesApi = api.injectEndpoints({
|
5
4
|
endpoints: (builder) => ({
|
6
5
|
getNodes: builder.query({
|
@@ -20,21 +19,6 @@ export const nodesApi = api.injectEndpoints({
|
|
20
19
|
},
|
21
20
|
providesTags: ['All'],
|
22
21
|
}),
|
23
|
-
getComputeNodes: builder.query({
|
24
|
-
queryFn: async (params, { signal }) => {
|
25
|
-
try {
|
26
|
-
const data = await window.api.getCompute({
|
27
|
-
version: EVersion.v2,
|
28
|
-
...params,
|
29
|
-
}, { signal });
|
30
|
-
return { data: prepareComputeNodesData(data) };
|
31
|
-
}
|
32
|
-
catch (error) {
|
33
|
-
return { error };
|
34
|
-
}
|
35
|
-
},
|
36
|
-
providesTags: ['All'],
|
37
|
-
}),
|
38
22
|
}),
|
39
23
|
overrideExisting: 'throw',
|
40
24
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../../src/store/reducers/nodes/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../../src/store/reducers/nodes/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC,eAAe,CAAC;IACxC,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrB,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC;YACpB,OAAO,EAAE,KAAK,EAAE,MAA6B,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACvD,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CAClC;wBACI,IAAI,EAAE,KAAK;wBACX,OAAO,EAAE,KAAK;wBACd,OAAO,EAAE,IAAI;wBACb,GAAG,MAAM;qBACZ,EACD,EAAC,MAAM,EAAC,CACX,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,EAAC,CAAC;gBAC1C,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { OrderType } from '@gravity-ui/react-data-table';
|
2
|
-
import type { EVersion, TTabletStateInfo as TComputeTabletStateInfo } from '../../../types/api/compute';
|
3
2
|
import type { EFlag } from '../../../types/api/enums';
|
4
3
|
import type { TEndpoint, TPoolStats } from '../../../types/api/nodes';
|
5
4
|
import type { TTabletStateInfo as TFullTabletStateInfo } from '../../../types/api/tablet';
|
@@ -25,7 +24,7 @@ export interface NodesPreparedEntity {
|
|
25
24
|
PoolStats?: TPoolStats[];
|
26
25
|
LoadAverage?: number[];
|
27
26
|
LoadAveragePercents?: number[];
|
28
|
-
Tablets?: TFullTabletStateInfo[]
|
27
|
+
Tablets?: TFullTabletStateInfo[];
|
29
28
|
Endpoints?: TEndpoint[];
|
30
29
|
TotalSessions?: number;
|
31
30
|
}
|
@@ -60,10 +59,6 @@ export interface NodesApiRequestParams extends NodesGeneralRequestParams {
|
|
60
59
|
tablets?: boolean;
|
61
60
|
group?: string;
|
62
61
|
}
|
63
|
-
export interface ComputeApiRequestParams extends NodesGeneralRequestParams {
|
64
|
-
path: string;
|
65
|
-
version?: EVersion;
|
66
|
-
}
|
67
62
|
export interface NodesGroup {
|
68
63
|
name: string;
|
69
64
|
count: number;
|
@@ -1,7 +1,4 @@
|
|
1
|
-
import type { TComputeInfo, TComputeNodeInfo, TComputeTenantInfo } from '../../../types/api/compute';
|
2
1
|
import type { TNodesInfo } from '../../../types/api/nodes';
|
3
|
-
import type { NodesHandledResponse
|
4
|
-
export declare const prepareComputeNodes: (nodes?: TComputeNodeInfo[], tenants?: TComputeTenantInfo[]) => NodesPreparedEntity[];
|
5
|
-
export declare const prepareComputeNodesData: (data: TComputeInfo) => NodesHandledResponse;
|
2
|
+
import type { NodesHandledResponse } from './types';
|
6
3
|
export declare const prepareNodesData: (data: TNodesInfo) => NodesHandledResponse;
|
7
4
|
export declare const getLoadSeverityForNode: (value: number) => "success" | "danger" | "warning" | undefined;
|
@@ -1,45 +1,5 @@
|
|
1
|
-
import { calcUptime } from '../../../utils/dataFormatters/dataFormatters';
|
2
1
|
import { generateEvaluator } from '../../../utils/generateEvaluator';
|
3
|
-
import {
|
4
|
-
const prepareComputeNode = (node, tenantName) => {
|
5
|
-
var _a;
|
6
|
-
return {
|
7
|
-
...node,
|
8
|
-
// v2 response has tenant name, v1 - doesn't
|
9
|
-
TenantName: (_a = node.Tenant) !== null && _a !== void 0 ? _a : tenantName,
|
10
|
-
SystemState: node === null || node === void 0 ? void 0 : node.Overall,
|
11
|
-
Uptime: calcUptime(node === null || node === void 0 ? void 0 : node.StartTime),
|
12
|
-
LoadAveragePercents: calculateLoadAveragePercents(node),
|
13
|
-
DC: node.DataCenter,
|
14
|
-
};
|
15
|
-
};
|
16
|
-
export const prepareComputeNodes = (nodes, tenants) => {
|
17
|
-
var _a;
|
18
|
-
const preparedNodes = [];
|
19
|
-
// First try to parse v2 response in case backend supports it
|
20
|
-
// Else parse v1 response
|
21
|
-
if (nodes) {
|
22
|
-
nodes.forEach((node) => {
|
23
|
-
preparedNodes.push(prepareComputeNode(node));
|
24
|
-
});
|
25
|
-
}
|
26
|
-
else if (tenants) {
|
27
|
-
for (const tenant of tenants) {
|
28
|
-
(_a = tenant.Nodes) === null || _a === void 0 ? void 0 : _a.forEach((node) => {
|
29
|
-
preparedNodes.push(prepareComputeNode(node, tenant.Name));
|
30
|
-
});
|
31
|
-
}
|
32
|
-
}
|
33
|
-
return preparedNodes;
|
34
|
-
};
|
35
|
-
export const prepareComputeNodesData = (data) => {
|
36
|
-
const preparedNodes = prepareComputeNodes(data.Nodes, data.Tenants);
|
37
|
-
return {
|
38
|
-
Nodes: preparedNodes,
|
39
|
-
TotalNodes: Number(data.TotalNodes) || preparedNodes.length,
|
40
|
-
FoundNodes: Number(data.FoundNodes),
|
41
|
-
};
|
42
|
-
};
|
2
|
+
import { prepareNodeSystemState } from '../../../utils/nodes';
|
43
3
|
export const prepareNodesData = (data) => {
|
44
4
|
var _a;
|
45
5
|
const rawNodes = data.Nodes || [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/nodes/utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/nodes/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAI5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAgB,EAAwB,EAAE;;IACvE,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IAElC,MAAM,aAAa,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;;QACxC,iEAAiE;QACjE,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAA,IAAI,CAAC,WAAW,CAAC,gBAAgB,0CAAE,UAAU,CAAC,IAAI,SAAS,CAAC;QAE5F,OAAO;YACH,GAAG,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3C,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,OAAO,0CAAG,CAAC,CAAC;YAC1C,eAAe,EAAE,MAAA,IAAI,CAAC,WAAW,CAAC,gBAAgB,0CAAE,SAAS;YAC7D,gBAAgB,EAAE,gBAAgB;SACrC,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACpD,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,KAAK,EAAE,KAAK,CAAC,SAAS;KACzB,CAAC,CAAC,CAAC;IAEJ,OAAO;QACH,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,cAAc;QAC1B,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,aAAa,CAAC,MAAM;QAC3D,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KACtC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { RootState } from '../defaultStore';
|
2
2
|
export declare const nodesListApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
3
|
-
getNodesList: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
4
|
-
}, "api", "All" | "PDiskData" | "
|
3
|
+
getNodesList: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../types/api/nodesList").TEvNodesInfo | undefined, "api">;
|
4
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
5
5
|
export declare const selectNodesMap: ((state: {
|
6
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "
|
6
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
|
7
7
|
singleClusterMode: boolean;
|
8
8
|
cluster: import("./cluster/types").ClusterState;
|
9
9
|
tenant: import("./tenant/types").TenantState;
|
@@ -2,8 +2,8 @@ export declare const overviewApi: import("@reduxjs/toolkit/query").Api<import("@
|
|
2
2
|
getOverview: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
paths: string[];
|
4
4
|
database: string;
|
5
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
5
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
6
6
|
data: import("../../../utils/typecheckers").Nullable<import("../../../types/api/schema").TEvDescribeSchemeResult>;
|
7
7
|
additionalData: import("../../../utils/typecheckers").Nullable<import("../../../types/api/schema").TEvDescribeSchemeResult>[];
|
8
8
|
} | undefined, "api">;
|
9
|
-
}, "api", "All" | "PDiskData" | "
|
9
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -7,5 +7,5 @@ export declare const partitionsApi: import("@reduxjs/toolkit/query").Api<import(
|
|
7
7
|
path: string;
|
8
8
|
database: string;
|
9
9
|
consumerName?: string;
|
10
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
11
|
-
}, "api", "All" | "PDiskData" | "
|
10
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedPartitionData[] | undefined, "api">;
|
11
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -3,7 +3,6 @@ interface PDiskParams {
|
|
3
3
|
pDiskId: number | string;
|
4
4
|
}
|
5
5
|
export declare const pDiskApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
6
|
-
getPdiskInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
7
|
-
|
8
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
6
|
+
getPdiskInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PDiskData | undefined, "api">;
|
7
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
9
8
|
export {};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { EVersion } from '../../../types/api/storage';
|
2
1
|
import { getPDiskId } from '../../../utils/disks/helpers';
|
3
2
|
import { api } from '../api';
|
4
|
-
import { preparePDiskDataResponse
|
3
|
+
import { preparePDiskDataResponse } from './utils';
|
5
4
|
export const pDiskApi = api.injectEndpoints({
|
6
5
|
endpoints: (build) => ({
|
7
6
|
getPdiskInfo: build.query({
|
@@ -26,25 +25,6 @@ export const pDiskApi = api.injectEndpoints({
|
|
26
25
|
},
|
27
26
|
],
|
28
27
|
}),
|
29
|
-
getStorageInfo: build.query({
|
30
|
-
queryFn: async ({ nodeId, pDiskId }, { signal }) => {
|
31
|
-
try {
|
32
|
-
const response = await window.api.getStorageInfo({ nodeId, version: EVersion.v1 }, { signal });
|
33
|
-
const data = preparePDiskStorageResponse(response, pDiskId, nodeId);
|
34
|
-
return { data };
|
35
|
-
}
|
36
|
-
catch (error) {
|
37
|
-
return { error };
|
38
|
-
}
|
39
|
-
},
|
40
|
-
providesTags: (_result, _error, arg) => [
|
41
|
-
'All',
|
42
|
-
{
|
43
|
-
type: 'PDiskData',
|
44
|
-
id: getPDiskId(arg.nodeId, arg.pDiskId),
|
45
|
-
},
|
46
|
-
],
|
47
|
-
}),
|
48
28
|
}),
|
49
29
|
overrideExisting: 'throw',
|
50
30
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pdisk.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/pdisk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"pdisk.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/pdisk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,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,EAAC,EAAE,EAAE;gBACxD,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;wBAC/B,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;wBACpD,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"}
|
@@ -1,10 +1,7 @@
|
|
1
1
|
import type { TPDiskInfoResponse } from '../../../types/api/pdisk';
|
2
|
-
import type { TStorageInfo } from '../../../types/api/storage';
|
3
2
|
import type { TEvSystemStateResponse } from '../../../types/api/systemState';
|
4
|
-
import type { PreparedStorageGroup } from '../storage/types';
|
5
3
|
import type { PDiskData } from './types';
|
6
4
|
export declare function preparePDiskDataResponse([pdiskResponse, nodeResponse]: [
|
7
5
|
TPDiskInfoResponse,
|
8
6
|
TEvSystemStateResponse
|
9
7
|
]): PDiskData;
|
10
|
-
export declare function preparePDiskStorageResponse(data: TStorageInfo, pDiskId: number | string, nodeId: number | string): PreparedStorageGroup[];
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { getArray, valueIsDefined } from '../../../utils';
|
2
2
|
import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
|
3
3
|
import { prepareNodeSystemState } from '../../../utils/nodes';
|
4
|
-
import { prepareStorageGroupData } from '../storage/utils';
|
5
4
|
export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
|
6
5
|
var _a, _b, _c;
|
7
6
|
const { BSC = {}, Whiteboard = {} } = pdiskResponse || {};
|
@@ -75,25 +74,4 @@ export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
|
|
75
74
|
SlotItems: diskSlots,
|
76
75
|
};
|
77
76
|
}
|
78
|
-
export function preparePDiskStorageResponse(data, pDiskId, nodeId) {
|
79
|
-
var _a;
|
80
|
-
const preparedGroups = [];
|
81
|
-
(_a = data.StoragePools) === null || _a === void 0 ? void 0 : _a.forEach((pool) => {
|
82
|
-
var _a;
|
83
|
-
return (_a = pool.Groups) === null || _a === void 0 ? void 0 : _a.forEach((group) => {
|
84
|
-
var _a;
|
85
|
-
const groupHasPDiskVDisks = (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.some((vdisk) => {
|
86
|
-
var _a, _b, _c, _d;
|
87
|
-
// If VDisk has PDisk inside, PDiskId and NodeId fields could be only inside PDisk and vice versa
|
88
|
-
const groupPDiskId = (_a = vdisk.PDiskId) !== null && _a !== void 0 ? _a : (_b = vdisk.PDisk) === null || _b === void 0 ? void 0 : _b.PDiskId;
|
89
|
-
const groupNodeId = (_c = vdisk.NodeId) !== null && _c !== void 0 ? _c : (_d = vdisk.PDisk) === null || _d === void 0 ? void 0 : _d.NodeId;
|
90
|
-
return groupPDiskId === Number(pDiskId) && groupNodeId === Number(nodeId);
|
91
|
-
});
|
92
|
-
if (groupHasPDiskVDisks) {
|
93
|
-
preparedGroups.push(prepareStorageGroupData(group, pool));
|
94
|
-
}
|
95
|
-
});
|
96
|
-
});
|
97
|
-
return preparedGroups;
|
98
|
-
}
|
99
77
|
//# sourceMappingURL=utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/utils.ts"],"names":[],"mappings":"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"}
|
@@ -5,6 +5,6 @@ interface SendQueryParams {
|
|
5
5
|
action?: ExecuteActions;
|
6
6
|
}
|
7
7
|
export declare const previewApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
8
|
-
sendQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
9
|
-
}, "api", "All" | "PDiskData" | "
|
8
|
+
sendQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../types/store/query").IQueryResult | undefined, "api">;
|
9
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
10
10
|
export {};
|
@@ -17,16 +17,16 @@ export declare const schemaApi: import("@reduxjs/toolkit/query").Api<import("@re
|
|
17
17
|
createDirectory: import("@reduxjs/toolkit/query").MutationDefinition<{
|
18
18
|
database: string;
|
19
19
|
path: string;
|
20
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
20
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", unknown, "api">;
|
21
21
|
getSchema: import("@reduxjs/toolkit/query").QueryDefinition<{
|
22
22
|
path: string;
|
23
23
|
database: string;
|
24
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
24
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
25
25
|
[path: string]: TEvDescribeSchemeResult & {
|
26
26
|
partial?: boolean;
|
27
27
|
};
|
28
28
|
}, "api">;
|
29
|
-
}, "api", "All" | "PDiskData" | "
|
29
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
30
30
|
export declare const selectSchemaMergedChildrenPaths: ((state: any, path: any, _type: any, database: string) => string[] | undefined) & {
|
31
31
|
clearCache: () => void;
|
32
32
|
resultsCount: () => number;
|
@@ -2,10 +2,10 @@ export declare const schemaAclApi: import("@reduxjs/toolkit/query").Api<import("
|
|
2
2
|
getSchemaAcl: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
path: string;
|
4
4
|
database: string;
|
5
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
5
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
6
6
|
acl: import("../../../types/api/acl").TACE[] | undefined;
|
7
7
|
effectiveAcl: import("../../../types/api/acl").TACE[] | undefined;
|
8
8
|
owner: string | undefined;
|
9
9
|
interruptInheritance: boolean | undefined;
|
10
10
|
} | undefined, "api">;
|
11
|
-
}, "api", "All" | "PDiskData" | "
|
11
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -13,5 +13,5 @@ interface SendShardQueryParams {
|
|
13
13
|
filters?: ShardsWorkloadFilters;
|
14
14
|
}
|
15
15
|
export declare const shardApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
16
|
-
sendShardQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendShardQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
17
|
-
}, "api", "All" | "PDiskData" | "
|
16
|
+
sendShardQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendShardQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../../types/store/query").IQueryResult | undefined, "api">;
|
17
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { AxiosOptions } from '../../../services/api';
|
2
|
+
import type { StorageRequestParams } from '../../../types/api/storage';
|
3
|
+
export declare function requestStorageData({ version, shouldUseGroupsHandler, ...params }: StorageRequestParams & {
|
4
|
+
shouldUseGroupsHandler?: boolean;
|
5
|
+
}, options: AxiosOptions): Promise<import("./types").PreparedStorageResponse>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { prepareGroupsResponse, prepareStorageResponse } from './utils';
|
2
|
+
export async function requestStorageData({ version = 'v2', shouldUseGroupsHandler, ...params }, options) {
|
3
|
+
if (shouldUseGroupsHandler && version !== 'v1') {
|
4
|
+
const result = await window.api.getStorageGroups({ ...params }, options);
|
5
|
+
return prepareGroupsResponse(result);
|
6
|
+
}
|
7
|
+
else {
|
8
|
+
const result = await window.api.getStorageInfo({ version, ...params }, options);
|
9
|
+
return prepareStorageResponse(result);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=requestStorageData.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"requestStorageData.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/requestStorageData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,qBAAqB,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAEtE,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACpC,EACI,OAAO,GAAG,IAAI,EACd,sBAAsB,EACtB,GAAG,MAAM,EAC+C,EAC5D,OAAqB;IAErB,IAAI,sBAAsB,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC7C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAC,GAAG,MAAM,EAAC,EAAE,OAAO,CAAC,CAAC;QACvE,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;SAAM,CAAC;QACJ,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,EAAC,OAAO,EAAE,GAAG,MAAM,EAAC,EAAE,OAAO,CAAC,CAAC;QAC9E,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;AACL,CAAC"}
|
@@ -21,7 +21,7 @@ const filterGroupsByText = (entities, text) => {
|
|
21
21
|
return entities.filter((entity) => {
|
22
22
|
var _a, _b;
|
23
23
|
return (((_a = entity.PoolName) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(preparedSearch)) ||
|
24
|
-
((_b = entity.
|
24
|
+
((_b = entity.GroupId) === null || _b === void 0 ? void 0 : _b.toString().includes(preparedSearch)));
|
25
25
|
});
|
26
26
|
};
|
27
27
|
const filterGroupsByUsage = (entities, usage) => {
|
@@ -1,6 +1,8 @@
|
|
1
|
+
import type { StorageRequestParams } from '../../../types/api/storage';
|
1
2
|
import type { NodesApiRequestParams } from '../nodes/types';
|
2
|
-
import type { StorageApiRequestParams } from './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<NodesApiRequestParams, "type">, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
5
|
-
getStorageGroupsInfo: import("@reduxjs/toolkit/query").QueryDefinition<
|
6
|
-
|
4
|
+
getStorageNodesInfo: import("@reduxjs/toolkit/query").QueryDefinition<Omit<NodesApiRequestParams, "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
|
+
getStorageGroupsInfo: import("@reduxjs/toolkit/query").QueryDefinition<StorageRequestParams & {
|
6
|
+
shouldUseGroupsHandler?: boolean;
|
7
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedStorageResponse | undefined, "api">;
|
8
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { EVersion } from '../../../types/api/storage';
|
2
1
|
import { api } from '../api';
|
3
|
-
import {
|
2
|
+
import { requestStorageData } from './requestStorageData';
|
3
|
+
import { prepareStorageNodesResponse } from './utils';
|
4
4
|
export const storageApi = api.injectEndpoints({
|
5
5
|
endpoints: (builder) => ({
|
6
6
|
getStorageNodesInfo: builder.query({
|
@@ -13,19 +13,19 @@ export const storageApi = api.injectEndpoints({
|
|
13
13
|
return { error };
|
14
14
|
}
|
15
15
|
},
|
16
|
-
providesTags: ['All'],
|
16
|
+
providesTags: ['All', 'StorageData'],
|
17
17
|
}),
|
18
18
|
getStorageGroupsInfo: builder.query({
|
19
19
|
queryFn: async (params, { signal }) => {
|
20
20
|
try {
|
21
|
-
const result = await
|
22
|
-
return { data:
|
21
|
+
const result = await requestStorageData(params, { signal });
|
22
|
+
return { data: result };
|
23
23
|
}
|
24
24
|
catch (error) {
|
25
25
|
return { error };
|
26
26
|
}
|
27
27
|
},
|
28
|
-
providesTags: ['All'],
|
28
|
+
providesTags: ['All', 'StorageData'],
|
29
29
|
}),
|
30
30
|
}),
|
31
31
|
overrideExisting: 'throw',
|
@@ -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":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,2BAA2B,EAAC,MAAM,SAAS,CAAC;AAEpD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,eAAe,CAAC;IAC1C,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrB,mBAAmB,EAAE,OAAO,CAAC,KAAK,CAAC;YAC/B,OAAO,EAAE,KAAK,EAAE,MAA2C,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACrE,IAAI,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CACpC,EAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAC,EAC1C,EAAC,MAAM,EAAC,CACX,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,2BAA2B,CAAC,MAAM,CAAC,EAAC,CAAC;gBACvD,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;SACvC,CAAC;QACF,oBAAoB,EAAE,OAAO,CAAC,KAAK,CAAC;YAChC,OAAO,EAAE,KAAK,EACV,MAAiE,EACjE,EAAC,MAAM,EAAC,EACV,EAAE;gBACA,IAAI,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;oBAC1D,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;gBAC1B,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;SACvC,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { OrderType } from '@gravity-ui/react-data-table';
|
2
2
|
import { z } from 'zod';
|
3
|
+
import type { EFlag } from '../../../types/api/enums';
|
3
4
|
import type { TSystemStateInfo } from '../../../types/api/nodes';
|
4
|
-
import type {
|
5
|
+
import type { StorageV2SortValue } from '../../../types/api/storage';
|
5
6
|
import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
|
6
7
|
import type { NodesUptimeFilterValues } from '../../../utils/nodes';
|
7
|
-
import type { StorageSortValue } from '../../../utils/storage';
|
8
8
|
export declare const visibleEntitiesSchema: z.ZodCatch<z.ZodNativeEnum<{
|
9
9
|
readonly all: "all";
|
10
10
|
readonly missing: "missing";
|
@@ -37,16 +37,19 @@ export interface PreparedStorageGroupFilters {
|
|
37
37
|
database?: string;
|
38
38
|
nodeId?: string;
|
39
39
|
}
|
40
|
-
export interface PreparedStorageGroup
|
41
|
-
PoolName
|
40
|
+
export interface PreparedStorageGroup {
|
41
|
+
PoolName?: string;
|
42
|
+
MediaType?: string;
|
43
|
+
Encryption?: boolean;
|
44
|
+
ErasureSpecies?: string;
|
45
|
+
Degraded: number;
|
46
|
+
GroupId?: string | number;
|
42
47
|
Usage: number;
|
43
48
|
Read: number;
|
44
49
|
Write: number;
|
45
50
|
Used: number;
|
46
51
|
Limit: number;
|
47
|
-
|
48
|
-
MediaType?: string;
|
49
|
-
UsedSpaceFlag: number;
|
52
|
+
DiskSpace: EFlag;
|
50
53
|
VDisks?: PreparedVDisk[];
|
51
54
|
}
|
52
55
|
export interface UsageFilter {
|
@@ -55,22 +58,7 @@ export interface UsageFilter {
|
|
55
58
|
}
|
56
59
|
export interface StorageSortParams {
|
57
60
|
sortOrder: OrderType | undefined;
|
58
|
-
sortValue:
|
59
|
-
}
|
60
|
-
export interface StorageSortAndFilterParams extends Partial<StorageSortParams> {
|
61
|
-
filter?: string;
|
62
|
-
offset?: number;
|
63
|
-
limit?: number;
|
64
|
-
}
|
65
|
-
export interface StorageApiRequestParams extends StorageSortAndFilterParams {
|
66
|
-
/** @deprecated use database instead */
|
67
|
-
tenant?: string;
|
68
|
-
database?: string;
|
69
|
-
nodeId?: string | number;
|
70
|
-
poolName?: string;
|
71
|
-
groupId?: string | number;
|
72
|
-
visibleEntities?: VisibleEntities;
|
73
|
-
version?: EVersion;
|
61
|
+
sortValue: StorageV2SortValue | undefined;
|
74
62
|
}
|
75
63
|
export interface PreparedStorageResponse {
|
76
64
|
nodes?: PreparedStorageNode[];
|