ydb-embedded-ui 6.11.0 → 6.13.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/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +3 -2
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +9 -5
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +5 -3
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +8 -7
- package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +1 -1
- package/dist/components/CriticalActionDialog/i18n/en.json +1 -0
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
- package/dist/components/DateRange/DateRange.d.ts +4 -4
- package/dist/components/DateRange/DateRange.js +23 -26
- package/dist/components/DateRange/DateRange.scss +14 -13
- package/dist/components/DateRange/__test__/fromDateRangeValues.test.js +80 -0
- package/dist/components/DateRange/__test__/getdatePickerSize.test.d.ts +1 -0
- package/dist/components/DateRange/__test__/getdatePickerSize.test.js +56 -0
- package/dist/components/DateRange/__test__/toDateRangeValues.test.d.ts +1 -0
- package/dist/components/DateRange/__test__/toDateRangeValues.test.js +80 -0
- package/dist/components/DateRange/i18n/en.json +4 -0
- package/dist/components/DateRange/i18n/index.d.ts +2 -0
- package/dist/components/DateRange/i18n/index.js +5 -0
- package/dist/components/DateRange/i18n/ru.json +4 -0
- package/dist/components/DateRange/utils.d.ts +5 -0
- package/dist/components/DateRange/utils.js +41 -0
- package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.d.ts +8 -0
- package/dist/components/{DeveloperUiLink/DeveloperUiLink.js → DeveloperUILinkButton/DeveloperUILinkButton.js} +3 -3
- package/dist/components/{DeveloperUiLink/DeveloperUiLink.scss → DeveloperUILinkButton/DeveloperUILinkButton.scss} +3 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +6 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +22 -12
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +45 -45
- package/dist/components/EntityStatus/EntityStatus.js +1 -1
- package/dist/components/EntityStatus/EntityStatus.scss +6 -2
- package/dist/components/Errors/PageError/PageError.d.ts +11 -0
- package/dist/components/Errors/PageError/PageError.js +19 -0
- package/dist/components/Errors/i18n/en.json +2 -1
- package/dist/components/Errors/i18n/index.d.ts +1 -1
- package/dist/components/Errors/i18n/ru.json +2 -1
- package/dist/components/Fullscreen/Fullscreen.d.ts +1 -1
- package/dist/components/Fullscreen/Fullscreen.js +34 -27
- package/dist/components/Fullscreen/Fullscreen.scss +16 -8
- package/dist/components/Graph/Graph.d.ts +13 -0
- package/dist/components/Graph/Graph.js +41 -0
- package/dist/components/LabelWithPopover/LabelWithPopover.d.ts +4 -1
- package/dist/components/LabelWithPopover/LabelWithPopover.js +1 -1
- package/dist/components/Loader/Loader.d.ts +2 -1
- package/dist/components/Loader/Loader.js +6 -1
- package/dist/components/LoaderWrapper/LoaderWrapper.d.ts +10 -0
- package/dist/components/LoaderWrapper/LoaderWrapper.js +8 -0
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/MonacoEditor/MonacoEditor.js +0 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +0 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -6
- package/dist/components/PDiskInfo/PDiskInfo.d.ts +8 -5
- package/dist/components/PDiskInfo/PDiskInfo.js +76 -26
- package/dist/components/PDiskInfo/PDiskInfo.scss +15 -1
- package/dist/components/PDiskInfo/i18n/en.json +11 -5
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +8 -2
- package/dist/components/ProgressViewer/ProgressViewer.js +3 -0
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.js +13 -3
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.scss +4 -0
- package/dist/components/QuerySettingsDescription/QuerySettingsDescription.d.ts +7 -0
- package/dist/components/QuerySettingsDescription/QuerySettingsDescription.js +8 -0
- package/dist/components/QuerySettingsDescription/QuerySettingsDescription.scss +8 -0
- package/dist/components/QuerySettingsDescription/index.d.ts +1 -0
- package/dist/components/QuerySettingsDescription/index.js +1 -0
- package/dist/components/VDisk/VDisk.js +3 -4
- package/dist/components/VDiskInfo/VDiskInfo.d.ts +4 -3
- package/dist/components/VDiskInfo/VDiskInfo.js +12 -5
- package/dist/components/VDiskInfo/VDiskInfo.scss +7 -1
- package/dist/components/VDiskInfo/i18n/en.json +2 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/containers/App/Content.js +15 -19
- package/dist/containers/AsideNavigation/AsideNavigation.js +2 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +4 -4
- package/dist/containers/Authentication/Authentication.js +8 -10
- package/dist/containers/Authentication/utils.d.ts +8 -0
- package/dist/containers/Authentication/utils.js +15 -0
- package/dist/containers/Cluster/Cluster.scss +1 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +6 -6
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Heatmap/Heatmap.d.ts +2 -1
- package/dist/containers/Heatmap/Heatmap.js +7 -6
- package/dist/containers/Node/Node.js +5 -7
- package/dist/containers/Node/Node.scss +5 -4
- package/dist/containers/Node/NodeStructure/NodeStructure.js +4 -4
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +4 -20
- package/dist/containers/Node/NodeStructure/Pdisk.js +3 -3
- package/dist/containers/Nodes/Nodes.js +6 -8
- package/dist/containers/Nodes/getNodesColumns.js +6 -21
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +6 -0
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +24 -0
- package/dist/containers/PDiskPage/PDiskPage.js +79 -30
- package/dist/containers/PDiskPage/PDiskPage.scss +8 -5
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.d.ts +7 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +93 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.scss +52 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.d.ts +4 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.js +9 -0
- package/dist/containers/PDiskPage/i18n/en.json +9 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PDisk/PDisk.js +3 -4
- package/dist/containers/Storage/Storage.js +4 -6
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +16 -6
- package/dist/containers/Tablet/Tablet.js +2 -2
- package/dist/containers/Tablet/TabletControls/TabletControls.js +2 -1
- package/dist/containers/Tablets/Tablets.js +14 -13
- package/dist/containers/Tenant/Acl/Acl.d.ts +2 -1
- package/dist/containers/Tenant/Acl/Acl.js +10 -8
- package/dist/containers/Tenant/Acl/Acl.scss +8 -8
- package/dist/containers/Tenant/Acl/i18n/en.json +6 -0
- package/dist/containers/Tenant/Acl/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Acl/i18n/index.js +4 -0
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +2 -5
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +14 -17
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +1 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +3 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Network/Network.js +8 -11
- package/dist/containers/Tenant/Diagnostics/Network/Network.scss +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +8 -10
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +14 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.js +1 -2
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +36 -17
- package/dist/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.js +3 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +1 -4
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +8 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +3 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +6 -5
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +14 -14
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +7 -6
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +4 -4
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +31 -18
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +56 -20
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +10 -6
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +7 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.js +4 -0
- package/dist/containers/Tenant/Query/ExecuteResult/utils.d.ts +18 -0
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js +36 -0
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +23 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +56 -111
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +1 -30
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.d.ts +7 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.js +18 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.scss +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.d.ts +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js +14 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.scss +14 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.d.ts +6 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.js +11 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.d.ts +13 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.js +48 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.d.ts +6 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.js +66 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.d.ts +7 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +100 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.scss +128 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.d.ts +5 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.js +1 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +5 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +59 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.d.ts +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.js +11 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.scss +14 -0
- package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.js +4 -0
- package/dist/containers/Tenant/Query/Preview/Preview.js +2 -3
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +1 -19
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.js +1 -1
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.scss +11 -0
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +96 -95
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +5 -6
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +18 -47
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.d.ts +2 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +5 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.d.ts +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +42 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.d.ts +5 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +19 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.d.ts +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +56 -0
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.js +12 -0
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.scss +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +35 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +63 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +15 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +14 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.scss +19 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +215 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +131 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +13 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.js +5 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +13 -0
- package/dist/containers/Tenant/Query/i18n/en.json +17 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.d.ts +3 -2
- package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +8 -8
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +6 -3
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.d.ts +2 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +13 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/en.json +1 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +3 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -0
- package/dist/containers/Tenant/Tenant.js +4 -8
- package/dist/containers/Tenant/TenantPages.d.ts +12 -1
- package/dist/containers/Tenant/TenantPages.js +1 -1
- package/dist/containers/Tenant/i18n/en.json +2 -2
- package/dist/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schema.js +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +2 -2
- package/dist/containers/Tenant/utils/schemaActions.js +2 -2
- package/dist/containers/Tenants/Tenants.js +5 -8
- package/dist/containers/Tenants/Tenants.scss +0 -4
- package/dist/containers/UserSettings/i18n/en.json +3 -3
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +2 -2
- package/dist/containers/UserSettings/settings.js +18 -19
- package/dist/containers/VDiskPage/VDiskPage.js +27 -13
- package/dist/containers/VDiskPage/i18n/en.json +1 -0
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/routes.js +2 -2
- package/dist/services/api.d.ts +59 -28
- package/dist/services/api.js +74 -98
- package/dist/services/settings.d.ts +11 -3
- package/dist/services/settings.js +7 -5
- package/dist/store/configureStore.d.ts +7 -7
- package/dist/store/defaultStore.d.ts +3 -3
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +37 -24
- package/dist/store/reducers/authentication/authentication.js +77 -57
- package/dist/store/reducers/authentication/types.d.ts +0 -8
- package/dist/store/reducers/capabilities/capabilities.d.ts +106 -0
- package/dist/store/reducers/capabilities/capabilities.js +22 -0
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +13 -0
- package/dist/store/reducers/cluster/cluster.d.ts +2 -2
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +5 -2
- package/dist/store/reducers/describe.js +2 -2
- package/dist/store/reducers/executeQuery.d.ts +7 -14
- package/dist/store/reducers/executeQuery.js +19 -14
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +19 -14
- package/dist/store/reducers/executeTopQueries/types.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/utils.js +11 -7
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +5 -4
- package/dist/store/reducers/explainQuery/explainQuery.js +20 -5
- package/dist/store/reducers/explainQuery/types.d.ts +13 -1
- package/dist/store/reducers/explainQuery/utils.js +7 -2
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/heatmap.js +3 -3
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +3 -2
- package/dist/store/reducers/hotKeys/hotKeys.js +3 -3
- package/dist/store/reducers/index.d.ts +6 -6
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/network/network.js +1 -1
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/node/selectors.js +2 -2
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodesList.d.ts +3 -3
- package/dist/store/reducers/overview/overview.d.ts +5 -2
- package/dist/store/reducers/overview/overview.js +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
- package/dist/store/reducers/pdisk/pdisk.js +15 -2
- package/dist/store/reducers/pdisk/types.d.ts +17 -1
- package/dist/store/reducers/pdisk/utils.d.ts +2 -2
- package/dist/store/reducers/pdisk/utils.js +68 -8
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/preview.js +1 -1
- package/dist/store/reducers/queryActions/types.d.ts +1 -1
- package/dist/store/reducers/schema/schema.d.ts +28 -10
- package/dist/store/reducers/schema/schema.js +20 -14
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +4 -2
- package/dist/store/reducers/schemaAcl/schemaAcl.js +9 -3
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +22 -6
- package/dist/store/reducers/shardsWorkload/types.d.ts +2 -2
- package/dist/store/reducers/storage/storage.d.ts +3 -3
- package/dist/store/reducers/tablet.d.ts +3 -3
- package/dist/store/reducers/tablets.d.ts +13 -13
- package/dist/store/reducers/tabletsFilters.d.ts +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +1 -1
- 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/tenantOverview/topShards/tenantOverviewTopShards.js +1 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +31 -30
- package/dist/store/reducers/tenants/selectors.js +8 -2
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -44
- package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
- package/dist/store/reducers/vdisk/vdisk.js +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
- package/dist/store/state-url-mapping.d.ts +70 -0
- package/dist/store/state-url-mapping.js +1 -5
- package/dist/styles/mixins.scss +13 -0
- package/dist/types/api/acl.d.ts +1 -0
- package/dist/types/api/capabilities.d.ts +7 -0
- package/dist/types/api/capabilities.js +1 -0
- package/dist/types/api/modifyDisk.d.ts +8 -0
- package/dist/types/api/modifyDisk.js +1 -0
- package/dist/types/api/pdisk.d.ts +65 -2
- package/dist/types/api/query.d.ts +39 -3
- package/dist/types/api/query.js +9 -1
- package/dist/types/api/schema/shared.d.ts +8 -0
- package/dist/types/api/vdisk.d.ts +33 -2
- package/dist/types/common.d.ts +3 -0
- package/dist/types/store/heatmap.d.ts +1 -0
- package/dist/types/store/query.d.ts +11 -1
- package/dist/utils/__test__/prepareQueryExplain.test.d.ts +1 -0
- package/dist/utils/__test__/prepareQueryExplain.test.js +115 -0
- package/dist/utils/constants.d.ts +13 -3
- package/dist/utils/constants.js +15 -3
- package/dist/utils/dataFormatters/dataFormatters.d.ts +0 -5
- package/dist/utils/dataFormatters/dataFormatters.js +3 -12
- package/dist/utils/developerUI/developerUI.d.ts +1 -0
- package/dist/utils/developerUI/developerUI.js +3 -0
- package/dist/utils/disks/getPDiskType.d.ts +3 -3
- package/dist/utils/disks/helpers.d.ts +1 -0
- package/dist/utils/disks/helpers.js +3 -0
- package/dist/utils/disks/prepareDisks.d.ts +2 -2
- package/dist/utils/disks/prepareDisks.js +17 -22
- package/dist/utils/disks/types.d.ts +7 -5
- package/dist/utils/hooks/index.d.ts +2 -1
- package/dist/utils/hooks/index.js +2 -1
- package/dist/utils/hooks/useChangedQuerySettings.d.ts +10 -0
- package/dist/utils/hooks/useChangedQuerySettings.js +46 -0
- package/dist/utils/hooks/useDelayed.d.ts +1 -0
- package/dist/utils/hooks/useDelayed.js +13 -0
- package/dist/utils/hooks/useEventHandler.d.ts +6 -0
- package/dist/utils/hooks/useEventHandler.js +17 -0
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +2 -0
- package/dist/utils/hooks/useLastQueryExecutionSettings.js +5 -0
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +8 -0
- package/dist/utils/hooks/useQueryExecutionSettings.js +15 -0
- package/dist/utils/monaco/constats.d.ts +2 -0
- package/dist/utils/monaco/constats.js +2 -0
- package/dist/utils/monaco/yql/constants.d.ts +0 -1
- package/dist/utils/monaco/yql/constants.js +0 -1
- package/dist/utils/monaco/yql/yql.completionItemProvider.js +2 -2
- package/dist/utils/prepareQueryExplain.d.ts +3 -1
- package/dist/utils/prepareQueryExplain.js +54 -2
- package/dist/utils/query.d.ts +24 -1
- package/dist/utils/query.js +41 -0
- package/dist/utils/query.test.js +3 -0
- package/dist/utils/utils.d.ts +8 -7
- package/dist/utils/utils.js +23 -11
- package/package.json +8 -2
- package/dist/components/DeveloperUiLink/DeveloperUiLink.d.ts +0 -8
- package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +0 -15
- package/dist/containers/Node/NodeStructure/Vdisk.d.ts +0 -6
- package/dist/containers/Node/NodeStructure/Vdisk.js +0 -13
- package/dist/containers/PDiskPage/PDiskGroups.d.ts +0 -9
- package/dist/containers/PDiskPage/PDiskGroups.js +0 -20
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/ru.json +0 -5
- package/dist/containers/Tenant/Query/ExplainResult/utils.d.ts +0 -2
- package/dist/containers/Tenant/Query/ExplainResult/utils.js +0 -4
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +0 -5
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.js +0 -38
- package/dist/store/utils.d.ts +0 -23
- package/dist/store/utils.js +0 -49
- package/dist/types/api/restartPDisk.d.ts +0 -4
- package/dist/utils/hooks/useQueryModes.d.ts +0 -2
- package/dist/utils/hooks/useQueryModes.js +0 -5
- package/dist/utils/monaco/index.d.ts +0 -1
- package/dist/utils/monaco/index.js +0 -6
- package/dist/utils/monaco/s-expression/constants.d.ts +0 -1
- package/dist/utils/monaco/s-expression/constants.js +0 -1
- package/dist/utils/monaco/s-expression/registerLanguage.d.ts +0 -1
- package/dist/utils/monaco/s-expression/registerLanguage.js +0 -59
- package/dist/utils/monaco/yql/registerLanguage.d.ts +0 -1
- package/dist/utils/monaco/yql/registerLanguage.js +0 -8
- package/dist/utils/monaco/yql/yql.d.ts +0 -7
- package/dist/utils/monaco/yql/yql.js +0 -180
- package/dist/utils/monaco/yql/yql.keywords.d.ts +0 -3
- package/dist/utils/monaco/yql/yql.keywords.js +0 -3
- /package/dist/{types/api/restartPDisk.js → components/DateRange/__test__/fromDateRangeValues.test.d.ts} +0 -0
@@ -6,5 +6,5 @@ export declare const partitionsApi: import("@reduxjs/toolkit/query").Api<import(
|
|
6
6
|
getPartitions: import("@reduxjs/toolkit/query").QueryDefinition<{
|
7
7
|
path: string;
|
8
8
|
consumerName?: string;
|
9
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All", import("./types").PreparedPartitionData[] | undefined, "api">;
|
10
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
9
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("./types").PreparedPartitionData[] | undefined, "api">;
|
10
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -3,7 +3,7 @@ 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", import("./types").PDiskData | undefined, "api">;
|
7
|
-
getStorageInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All", import("../storage/types").PreparedStorageGroup[] | undefined, "api">;
|
8
|
-
}, "api", "All", 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" | "UserData", import("./types").PDiskData | undefined, "api">;
|
7
|
+
getStorageInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../storage/types").PreparedStorageGroup[] | undefined, "api">;
|
8
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
9
9
|
export {};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { EVersion } from '../../../types/api/storage';
|
2
|
+
import { getPDiskId } from '../../../utils/disks/helpers';
|
2
3
|
import { api } from '../api';
|
3
4
|
import { preparePDiskDataResponse, preparePDiskStorageResponse } from './utils';
|
4
5
|
export const pDiskApi = api.injectEndpoints({
|
@@ -17,7 +18,13 @@ export const pDiskApi = api.injectEndpoints({
|
|
17
18
|
return { error };
|
18
19
|
}
|
19
20
|
},
|
20
|
-
providesTags: [
|
21
|
+
providesTags: (_result, _error, arg) => [
|
22
|
+
'All',
|
23
|
+
{
|
24
|
+
type: 'PDiskData',
|
25
|
+
id: getPDiskId(arg.nodeId, arg.pDiskId),
|
26
|
+
},
|
27
|
+
],
|
21
28
|
}),
|
22
29
|
getStorageInfo: build.query({
|
23
30
|
queryFn: async ({ nodeId, pDiskId }, { signal }) => {
|
@@ -30,7 +37,13 @@ export const pDiskApi = api.injectEndpoints({
|
|
30
37
|
return { error };
|
31
38
|
}
|
32
39
|
},
|
33
|
-
providesTags: [
|
40
|
+
providesTags: (_result, _error, arg) => [
|
41
|
+
'All',
|
42
|
+
{
|
43
|
+
type: 'PDiskData',
|
44
|
+
id: getPDiskId(arg.nodeId, arg.pDiskId),
|
45
|
+
},
|
46
|
+
],
|
34
47
|
}),
|
35
48
|
}),
|
36
49
|
overrideExisting: 'throw',
|
@@ -1,7 +1,23 @@
|
|
1
|
-
import type { PreparedPDisk } from '../../../utils/disks/types';
|
1
|
+
import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
|
2
2
|
export interface PDiskData extends PreparedPDisk {
|
3
3
|
NodeId?: number;
|
4
4
|
NodeHost?: string;
|
5
5
|
NodeType?: string;
|
6
6
|
NodeDC?: string;
|
7
|
+
SlotItems?: (SlotItem<'vDisk'> | SlotItem<'log'> | SlotItem<'empty'>)[];
|
7
8
|
}
|
9
|
+
export interface SlotItem<T extends SlotItemType> {
|
10
|
+
SlotType: T;
|
11
|
+
Id?: string | number;
|
12
|
+
Title?: string;
|
13
|
+
Severity?: number;
|
14
|
+
Used?: number;
|
15
|
+
Total?: number;
|
16
|
+
UsagePercent?: number;
|
17
|
+
SlotData: T extends 'vDisk' ? PreparedVDisk : T extends 'log' ? LogSlotData : T extends 'empty' ? EmptySlotData : undefined;
|
18
|
+
}
|
19
|
+
export type LogSlotData = Pick<PDiskData, 'LogUsedSize' | 'LogTotalSize' | 'SystemSize'>;
|
20
|
+
export type EmptySlotData = {
|
21
|
+
Size: number;
|
22
|
+
};
|
23
|
+
export type SlotItemType = 'vDisk' | 'log' | 'empty';
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import type {
|
1
|
+
import type { TPDiskInfoResponse } from '../../../types/api/pdisk';
|
2
2
|
import type { TStorageInfo } from '../../../types/api/storage';
|
3
3
|
import type { TEvSystemStateResponse } from '../../../types/api/systemState';
|
4
4
|
import type { PreparedStorageGroup } from '../storage/types';
|
5
5
|
import type { PDiskData } from './types';
|
6
6
|
export declare function preparePDiskDataResponse([pdiskResponse, nodeResponse]: [
|
7
|
-
|
7
|
+
TPDiskInfoResponse,
|
8
8
|
TEvSystemStateResponse
|
9
9
|
]): PDiskData;
|
10
10
|
export declare function preparePDiskStorageResponse(data: TStorageInfo, pDiskId: number | string, nodeId: number | string): PreparedStorageGroup[];
|
@@ -1,18 +1,78 @@
|
|
1
|
-
import {
|
1
|
+
import { getArray, valueIsDefined } from '../../../utils';
|
2
|
+
import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
|
2
3
|
import { prepareNodeSystemState } from '../../../utils/nodes';
|
3
4
|
import { prepareStorageGroupData } from '../storage/utils';
|
4
|
-
export function preparePDiskDataResponse([pdiskResponse, nodeResponse]) {
|
5
|
-
var _a, _b, _c
|
6
|
-
const
|
7
|
-
const
|
8
|
-
const
|
5
|
+
export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
|
6
|
+
var _a, _b, _c;
|
7
|
+
const { BSC = {}, Whiteboard = {} } = pdiskResponse || {};
|
8
|
+
const { PDisk: WhiteboardPDiskData = {}, VDisks: WhiteboardVDisksData = [] } = Whiteboard;
|
9
|
+
const { PDisk: BSCPDiskData = {} } = BSC;
|
10
|
+
const preparedPDisk = preparePDiskData(WhiteboardPDiskData, BSCPDiskData);
|
11
|
+
const { LogUsedSize, LogTotalSize, TotalSize: PDiskTotalSize, SystemSize, ExpectedSlotCount, EnforcedDynamicSlotSize, } = preparedPDisk;
|
12
|
+
let logSlot;
|
13
|
+
if (valueIsDefined(LogTotalSize)) {
|
14
|
+
logSlot = {
|
15
|
+
SlotType: 'log',
|
16
|
+
Used: Number(LogUsedSize),
|
17
|
+
Total: Number(LogTotalSize),
|
18
|
+
UsagePercent: (Number(LogUsedSize) * 100) / Number(LogTotalSize),
|
19
|
+
Severity: 1,
|
20
|
+
SlotData: {
|
21
|
+
LogUsedSize,
|
22
|
+
LogTotalSize,
|
23
|
+
SystemSize,
|
24
|
+
},
|
25
|
+
};
|
26
|
+
}
|
27
|
+
const preparedVDisks = WhiteboardVDisksData.map(prepareVDiskData).sort((disk1, disk2) => Number(disk2.VDiskSlotId) - Number(disk1.VDiskSlotId));
|
28
|
+
const vdisksSlots = preparedVDisks.map((preparedVDisk) => {
|
29
|
+
var _a;
|
30
|
+
return {
|
31
|
+
SlotType: 'vDisk',
|
32
|
+
Id: (_a = preparedVDisk.VDiskId) === null || _a === void 0 ? void 0 : _a.GroupID,
|
33
|
+
Title: preparedVDisk.StoragePoolName,
|
34
|
+
Severity: preparedVDisk.Severity,
|
35
|
+
Used: Number(preparedVDisk.AllocatedSize),
|
36
|
+
Total: Number(preparedVDisk.TotalSize),
|
37
|
+
UsagePercent: preparedVDisk.AllocatedPercent,
|
38
|
+
SlotData: preparedVDisk,
|
39
|
+
};
|
40
|
+
});
|
41
|
+
let emptySlots = [];
|
42
|
+
if (ExpectedSlotCount && ExpectedSlotCount > vdisksSlots.length) {
|
43
|
+
const emptySlotsCount = ExpectedSlotCount - vdisksSlots.length;
|
44
|
+
let emptySlotSize = Number(EnforcedDynamicSlotSize);
|
45
|
+
if (isNaN(emptySlotSize)) {
|
46
|
+
const vDisksTotalSize = vdisksSlots.reduce((sum, item) => {
|
47
|
+
return item.Total ? sum + item.Total : sum;
|
48
|
+
}, 0);
|
49
|
+
emptySlotSize =
|
50
|
+
(Number(PDiskTotalSize) - vDisksTotalSize - Number(LogTotalSize)) / emptySlotsCount;
|
51
|
+
}
|
52
|
+
emptySlots = getArray(emptySlotsCount).map(() => {
|
53
|
+
return {
|
54
|
+
SlotType: 'empty',
|
55
|
+
Total: emptySlotSize,
|
56
|
+
Severity: 1,
|
57
|
+
SlotData: {
|
58
|
+
Size: emptySlotSize,
|
59
|
+
},
|
60
|
+
};
|
61
|
+
});
|
62
|
+
}
|
63
|
+
const diskSlots = [...vdisksSlots, ...emptySlots];
|
64
|
+
if (logSlot) {
|
65
|
+
diskSlots.unshift(logSlot);
|
66
|
+
}
|
67
|
+
const rawNode = (_a = nodeResponse.SystemStateInfo) === null || _a === void 0 ? void 0 : _a[0];
|
9
68
|
const preparedNode = prepareNodeSystemState(rawNode);
|
10
69
|
return {
|
11
70
|
...preparedPDisk,
|
12
|
-
NodeId: (
|
71
|
+
NodeId: (_b = preparedPDisk.NodeId) !== null && _b !== void 0 ? _b : preparedNode.NodeId,
|
13
72
|
NodeHost: preparedNode.Host,
|
14
|
-
NodeType: (
|
73
|
+
NodeType: (_c = preparedNode.Roles) === null || _c === void 0 ? void 0 : _c[0],
|
15
74
|
NodeDC: preparedNode.DC,
|
75
|
+
SlotItems: diskSlots,
|
16
76
|
};
|
17
77
|
}
|
18
78
|
export function preparePDiskStorageResponse(data, pDiskId, nodeId) {
|
@@ -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", import("../../types/store/query").IQueryResult | undefined, "api">;
|
9
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
8
|
+
sendQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../types/store/query").IQueryResult | undefined, "api">;
|
9
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
10
10
|
export {};
|
@@ -5,7 +5,7 @@ export const previewApi = api.injectEndpoints({
|
|
5
5
|
sendQuery: build.query({
|
6
6
|
queryFn: async ({ query, database, action }, { signal }) => {
|
7
7
|
try {
|
8
|
-
const response = await window.api.sendQuery({ schema: 'modern', query, database, action }, { signal });
|
8
|
+
const response = await window.api.sendQuery({ schema: 'modern', query, database, action }, { signal, withRetries: true });
|
9
9
|
if (isQueryErrorResponse(response)) {
|
10
10
|
return { error: response };
|
11
11
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type { Reducer
|
1
|
+
import type { Reducer } from '@reduxjs/toolkit';
|
2
2
|
import type { EPathType, TEvDescribeSchemeResult } from '../../../types/api/schema';
|
3
|
-
import type { RootState } from '../../defaultStore';
|
4
3
|
import type { SchemaAction, SchemaState } from './types';
|
5
4
|
export declare const initialState: {
|
6
5
|
loading: boolean;
|
@@ -18,21 +17,40 @@ export declare const schemaApi: import("@reduxjs/toolkit/query").Api<import("@re
|
|
18
17
|
createDirectory: import("@reduxjs/toolkit/query").MutationDefinition<{
|
19
18
|
database: string;
|
20
19
|
path: string;
|
21
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All", unknown, "api">;
|
20
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", unknown, "api">;
|
22
21
|
getSchema: import("@reduxjs/toolkit/query").QueryDefinition<{
|
23
22
|
path: string;
|
24
|
-
|
23
|
+
database: string;
|
24
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", {
|
25
25
|
[path: string]: TEvDescribeSchemeResult & {
|
26
26
|
partial?: boolean;
|
27
27
|
};
|
28
28
|
}, "api">;
|
29
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
30
|
-
export declare const selectSchemaMergedChildrenPaths:
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
30
|
+
export declare const selectSchemaMergedChildrenPaths: ((state: any, path: any, _type: any, database: string) => string[] | undefined) & {
|
31
|
+
clearCache: () => void;
|
32
|
+
resultsCount: () => number;
|
33
|
+
resetResultsCount: () => void;
|
34
|
+
} & {
|
35
|
+
resultFunc: (resultFuncArgs_0: string, resultFuncArgs_1: EPathType | undefined, resultFuncArgs_2: import("../../../types/api/schema").TDirEntry[] | undefined) => string[] | undefined;
|
36
|
+
memoizedResultFunc: ((resultFuncArgs_0: string, resultFuncArgs_1: EPathType | undefined, resultFuncArgs_2: import("../../../types/api/schema").TDirEntry[] | undefined) => string[] | undefined) & {
|
37
|
+
clearCache: () => void;
|
38
|
+
resultsCount: () => number;
|
39
|
+
resetResultsCount: () => void;
|
40
|
+
};
|
41
|
+
lastResult: () => string[] | undefined;
|
42
|
+
dependencies: [(_: any, path: string) => string, (_: any, _path: any, type: EPathType | undefined) => EPathType | undefined, (state: any, path: any, _type: any, database: string) => import("../../../types/api/schema").TDirEntry[] | undefined];
|
43
|
+
recomputations: () => number;
|
44
|
+
resetRecomputations: () => void;
|
45
|
+
dependencyRecomputations: () => number;
|
46
|
+
resetDependencyRecomputations: () => void;
|
47
|
+
} & {
|
48
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
49
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
50
|
+
};
|
51
|
+
export declare function useGetSchemaQuery({ path, database }: {
|
35
52
|
path: string;
|
53
|
+
database: string;
|
36
54
|
}): {
|
37
55
|
data: (TEvDescribeSchemeResult & {
|
38
56
|
partial?: boolean;
|
@@ -33,7 +33,7 @@ export const schemaApi = api.injectEndpoints({
|
|
33
33
|
createDirectory: builder.mutation({
|
34
34
|
queryFn: async ({ database, path }, { signal }) => {
|
35
35
|
try {
|
36
|
-
const data = await window.api.createSchemaDirectory(database, path, { signal });
|
36
|
+
const data = await window.api.createSchemaDirectory({ database, path }, { signal });
|
37
37
|
return { data };
|
38
38
|
}
|
39
39
|
catch (error) {
|
@@ -42,19 +42,21 @@ export const schemaApi = api.injectEndpoints({
|
|
42
42
|
},
|
43
43
|
}),
|
44
44
|
getSchema: builder.query({
|
45
|
-
queryFn: async ({ path }, { signal }) => {
|
45
|
+
queryFn: async ({ path, database }, { signal }) => {
|
46
46
|
try {
|
47
|
-
const data = await window.api.getSchema({ path }, { signal });
|
48
|
-
|
47
|
+
const data = await window.api.getSchema({ path, database }, { signal });
|
48
|
+
if (!data) {
|
49
|
+
return { error: new Error('Schema is not available') };
|
50
|
+
}
|
51
|
+
return { data: { [path]: data, ...getSchemaChildren(data) } };
|
49
52
|
}
|
50
53
|
catch (error) {
|
51
54
|
return { error };
|
52
55
|
}
|
53
56
|
},
|
54
57
|
keepUnusedDataFor: Infinity,
|
55
|
-
serializeQueryArgs: ({ queryArgs: {
|
56
|
-
|
57
|
-
return { path: parts[0] || parts[1] };
|
58
|
+
serializeQueryArgs: ({ queryArgs: { database } }) => {
|
59
|
+
return { database };
|
58
60
|
},
|
59
61
|
merge: (existing, incoming, { arg: { path } }) => {
|
60
62
|
const { [path]: data, ...children } = incoming;
|
@@ -81,27 +83,31 @@ function getSchemaChildren(data) {
|
|
81
83
|
}
|
82
84
|
return children;
|
83
85
|
}
|
84
|
-
const getSchemaSelector = createSelector((path) => path, (path) => schemaApi.endpoints.getSchema.select({ path }));
|
85
|
-
const selectGetSchema = createSelector((state) => state, (_state, path) => path, (_state, path) => getSchemaSelector(path), (state, path, selectTabletsInfo) => { var _a; return (_a = selectTabletsInfo(state).data) === null || _a === void 0 ? void 0 : _a[path]; });
|
86
|
-
const selectSchemaChildren = (state, path) => { var _a, _b; return (_b = (_a = selectGetSchema(state, path)) === null || _a === void 0 ? void 0 : _a.PathDescription) === null || _b === void 0 ? void 0 : _b.Children; };
|
86
|
+
const getSchemaSelector = createSelector((path) => path, (_path, database) => database, (path, database) => schemaApi.endpoints.getSchema.select({ path, database }));
|
87
|
+
const selectGetSchema = createSelector((state) => state, (_state, path) => path, (_state, path, database) => getSchemaSelector(path, database), (state, path, selectTabletsInfo) => { var _a; return (_a = selectTabletsInfo(state).data) === null || _a === void 0 ? void 0 : _a[path]; });
|
88
|
+
const selectSchemaChildren = (state, path, database) => { var _a, _b; return (_b = (_a = selectGetSchema(state, path, database)) === null || _a === void 0 ? void 0 : _a.PathDescription) === null || _b === void 0 ? void 0 : _b.Children; };
|
87
89
|
export const selectSchemaMergedChildrenPaths = createSelector([
|
88
90
|
(_, path) => path,
|
89
91
|
(_, _path, type) => type,
|
90
|
-
selectSchemaChildren,
|
92
|
+
(state, path, _type, database) => selectSchemaChildren(state, path, database),
|
91
93
|
], (path, type, children) => {
|
92
94
|
return isEntityWithMergedImplementation(type)
|
93
95
|
? children === null || children === void 0 ? void 0 : children.map(({ Name }) => path + '/' + Name)
|
94
96
|
: undefined;
|
95
97
|
});
|
96
|
-
export function useGetSchemaQuery({ path }) {
|
97
|
-
const { currentData, isFetching, error, refetch } = schemaApi.useGetSchemaQuery({
|
98
|
+
export function useGetSchemaQuery({ path, database }) {
|
99
|
+
const { currentData, isFetching, error, refetch, originalArgs } = schemaApi.useGetSchemaQuery({
|
100
|
+
path,
|
101
|
+
database,
|
102
|
+
});
|
98
103
|
const data = currentData === null || currentData === void 0 ? void 0 : currentData[path];
|
99
104
|
const isLoading = isFetching && data === undefined;
|
105
|
+
const currentPathError = (originalArgs === null || originalArgs === void 0 ? void 0 : originalArgs.path) === path ? error : undefined;
|
100
106
|
const shouldLoad = !isLoading && ((!data && !error) || (data === null || data === void 0 ? void 0 : data.partial));
|
101
107
|
React.useEffect(() => {
|
102
108
|
if (shouldLoad) {
|
103
109
|
refetch();
|
104
110
|
}
|
105
111
|
}, [refetch, path, shouldLoad]);
|
106
|
-
return { data, isLoading, error };
|
112
|
+
return { data, isLoading, error: currentPathError };
|
107
113
|
}
|
@@ -1,8 +1,10 @@
|
|
1
1
|
export declare const schemaAclApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
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" | "UserData", {
|
5
6
|
acl: import("../../../types/api/acl").TACE[] | undefined;
|
7
|
+
effectiveAcl: import("../../../types/api/acl").TACE[] | undefined;
|
6
8
|
owner: string | undefined;
|
7
9
|
} | undefined, "api">;
|
8
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
10
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -2,10 +2,16 @@ import { api } from '../api';
|
|
2
2
|
export const schemaAclApi = api.injectEndpoints({
|
3
3
|
endpoints: (build) => ({
|
4
4
|
getSchemaAcl: build.query({
|
5
|
-
queryFn: async ({ path }, { signal }) => {
|
5
|
+
queryFn: async ({ path, database }, { signal }) => {
|
6
6
|
try {
|
7
|
-
const data = await window.api.getSchemaAcl({ path }, { signal });
|
8
|
-
return {
|
7
|
+
const data = await window.api.getSchemaAcl({ path, database }, { signal });
|
8
|
+
return {
|
9
|
+
data: {
|
10
|
+
acl: data.Common.ACL,
|
11
|
+
effectiveAcl: data.Common.EffectiveACL,
|
12
|
+
owner: data.Common.Owner,
|
13
|
+
},
|
14
|
+
};
|
9
15
|
}
|
10
16
|
catch (error) {
|
11
17
|
return { error };
|
@@ -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", import("../../../types/store/query").IQueryResult | undefined, "api">;
|
17
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
16
|
+
sendShardQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendShardQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../../types/store/query").IQueryResult | undefined, "api">;
|
17
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { dateTimeParse, isLikeRelative } from '@gravity-ui/date-utils';
|
1
2
|
import { createSlice } from '@reduxjs/toolkit';
|
2
3
|
import { isQueryErrorResponse, parseQueryAPIExecuteResponse } from '../../../utils/query';
|
3
4
|
import { api } from '../api';
|
@@ -7,18 +8,21 @@ function formatSortOrder({ columnId, order }) {
|
|
7
8
|
return `${columnId} ${order}`;
|
8
9
|
}
|
9
10
|
function getFiltersConditions(filters) {
|
11
|
+
var _a, _b;
|
10
12
|
const conditions = [];
|
11
|
-
|
13
|
+
const to = (_a = dateTimeParse(Number(filters === null || filters === void 0 ? void 0 : filters.to) || (filters === null || filters === void 0 ? void 0 : filters.to))) === null || _a === void 0 ? void 0 : _a.valueOf();
|
14
|
+
const from = (_b = dateTimeParse(Number(filters === null || filters === void 0 ? void 0 : filters.from) || (filters === null || filters === void 0 ? void 0 : filters.from))) === null || _b === void 0 ? void 0 : _b.valueOf();
|
15
|
+
if (from && to && from > to) {
|
12
16
|
throw new Error('Invalid date range');
|
13
17
|
}
|
14
|
-
if (
|
18
|
+
if (from) {
|
15
19
|
// matching `from` & `to` is an edge case
|
16
20
|
// other cases should not include the starting point, since intervals are stored using the ending time
|
17
|
-
const gt =
|
18
|
-
conditions.push(`IntervalEnd ${gt} Timestamp('${new Date(
|
21
|
+
const gt = to === from ? '>=' : '>';
|
22
|
+
conditions.push(`IntervalEnd ${gt} Timestamp('${new Date(from).toISOString()}')`);
|
19
23
|
}
|
20
|
-
if (
|
21
|
-
conditions.push(`IntervalEnd <= Timestamp('${new Date(
|
24
|
+
if (to) {
|
25
|
+
conditions.push(`IntervalEnd <= Timestamp('${new Date(to).toISOString()}')`);
|
22
26
|
}
|
23
27
|
return conditions.join(' AND ');
|
24
28
|
}
|
@@ -94,6 +98,7 @@ export const shardApi = api.injectEndpoints({
|
|
94
98
|
action: queryAction,
|
95
99
|
}, {
|
96
100
|
signal,
|
101
|
+
withRetries: true,
|
97
102
|
});
|
98
103
|
if (isQueryErrorResponse(response)) {
|
99
104
|
return { error: response };
|
@@ -106,6 +111,17 @@ export const shardApi = api.injectEndpoints({
|
|
106
111
|
}
|
107
112
|
},
|
108
113
|
providesTags: ['All'],
|
114
|
+
forceRefetch: ({ currentArg }) => {
|
115
|
+
var _a, _b, _c;
|
116
|
+
if (((_a = currentArg === null || currentArg === void 0 ? void 0 : currentArg.filters) === null || _a === void 0 ? void 0 : _a.mode) === 'immediate') {
|
117
|
+
return true;
|
118
|
+
}
|
119
|
+
if (isLikeRelative((_b = currentArg === null || currentArg === void 0 ? void 0 : currentArg.filters) === null || _b === void 0 ? void 0 : _b.from) ||
|
120
|
+
isLikeRelative((_c = currentArg === null || currentArg === void 0 ? void 0 : currentArg.filters) === null || _c === void 0 ? void 0 : _c.to)) {
|
121
|
+
return true;
|
122
|
+
}
|
123
|
+
return false;
|
124
|
+
},
|
109
125
|
}),
|
110
126
|
}),
|
111
127
|
overrideExisting: 'throw',
|
@@ -4,9 +4,9 @@ export declare enum EShardsWorkloadMode {
|
|
4
4
|
}
|
5
5
|
export interface ShardsWorkloadFilters {
|
6
6
|
/** ms from epoch */
|
7
|
-
from?:
|
7
|
+
from?: string;
|
8
8
|
/** ms from epoch */
|
9
|
-
to?:
|
9
|
+
to?: string;
|
10
10
|
mode?: EShardsWorkloadMode;
|
11
11
|
}
|
12
12
|
export interface ShardsWorkloadRootStateSlice {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { NodesApiRequestParams } from '../nodes/types';
|
2
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", import("./types").PreparedStorageResponse | undefined, "api">;
|
5
|
-
getStorageGroupsInfo: import("@reduxjs/toolkit/query").QueryDefinition<StorageApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All", import("./types").PreparedStorageResponse | undefined, "api">;
|
6
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
4
|
+
getStorageNodesInfo: import("@reduxjs/toolkit/query").QueryDefinition<Omit<NodesApiRequestParams, "type">, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("./types").PreparedStorageResponse | undefined, "api">;
|
5
|
+
getStorageGroupsInfo: import("@reduxjs/toolkit/query").QueryDefinition<StorageApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("./types").PreparedStorageResponse | undefined, "api">;
|
6
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -3,12 +3,12 @@ import type { ITabletPreparedHistoryItem } from '../../types/store/tablet';
|
|
3
3
|
export declare const tabletApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
4
4
|
getTablet: import("@reduxjs/toolkit/query").QueryDefinition<{
|
5
5
|
id: string;
|
6
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", {
|
6
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", {
|
7
7
|
id: string | undefined;
|
8
8
|
data: import("../../types/api/tablet").TTabletStateInfo;
|
9
9
|
history: ITabletPreparedHistoryItem[];
|
10
10
|
} | undefined, "api">;
|
11
11
|
getTabletDescribe: import("@reduxjs/toolkit/query").QueryDefinition<{
|
12
12
|
tenantId: TDomainKey;
|
13
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", string | undefined, "api">;
|
14
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
13
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", string | undefined, "api">;
|
14
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -5,10 +5,10 @@ export declare const setStateFilter: import("@reduxjs/toolkit").ActionCreatorWit
|
|
5
5
|
declare const _default: import("redux").Reducer<TabletsState>;
|
6
6
|
export default _default;
|
7
7
|
export declare const tabletsApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
8
|
-
getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
9
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
8
|
+
getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
9
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
10
10
|
export declare const selectGetTabletsInfo: ((state: {
|
11
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
11
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
12
12
|
singleClusterMode: boolean;
|
13
13
|
cluster: import("./cluster/types").ClusterState;
|
14
14
|
tenant: import("./tenant/types").TenantState;
|
@@ -33,7 +33,7 @@ export declare const selectGetTabletsInfo: ((state: {
|
|
33
33
|
resetResultsCount: () => void;
|
34
34
|
} & {
|
35
35
|
resultFunc: (resultFuncArgs_0: {
|
36
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
36
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
37
37
|
singleClusterMode: boolean;
|
38
38
|
cluster: import("./cluster/types").ClusterState;
|
39
39
|
tenant: import("./tenant/types").TenantState;
|
@@ -53,10 +53,10 @@ export declare const selectGetTabletsInfo: ((state: {
|
|
53
53
|
fullscreen: boolean;
|
54
54
|
clusters: import("./clusters/types").ClustersFilters;
|
55
55
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
56
|
-
getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
57
|
-
}, "All", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">>) => import("../../types/api/tablet").TEvTabletStateResponse | undefined;
|
56
|
+
getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
57
|
+
}, "All" | "PDiskData" | "UserData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">>) => import("../../types/api/tablet").TEvTabletStateResponse | undefined;
|
58
58
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
59
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
59
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
60
60
|
singleClusterMode: boolean;
|
61
61
|
cluster: import("./cluster/types").ClusterState;
|
62
62
|
tenant: import("./tenant/types").TenantState;
|
@@ -76,15 +76,15 @@ export declare const selectGetTabletsInfo: ((state: {
|
|
76
76
|
fullscreen: boolean;
|
77
77
|
clusters: import("./clusters/types").ClustersFilters;
|
78
78
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
79
|
-
getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
80
|
-
}, "All", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">>) => import("../../types/api/tablet").TEvTabletStateResponse | undefined) & {
|
79
|
+
getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
80
|
+
}, "All" | "PDiskData" | "UserData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">>) => import("../../types/api/tablet").TEvTabletStateResponse | undefined) & {
|
81
81
|
clearCache: () => void;
|
82
82
|
resultsCount: () => number;
|
83
83
|
resetResultsCount: () => void;
|
84
84
|
};
|
85
85
|
lastResult: () => import("../../types/api/tablet").TEvTabletStateResponse | undefined;
|
86
86
|
dependencies: [(state: RootState) => {
|
87
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
87
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
88
88
|
singleClusterMode: boolean;
|
89
89
|
cluster: import("./cluster/types").ClusterState;
|
90
90
|
tenant: import("./tenant/types").TenantState;
|
@@ -104,8 +104,8 @@ export declare const selectGetTabletsInfo: ((state: {
|
|
104
104
|
fullscreen: boolean;
|
105
105
|
clusters: import("./clusters/types").ClustersFilters;
|
106
106
|
}, (_state: RootState, params: TabletsApiRequestParams) => (state: import("@reduxjs/toolkit/query").RootState<{
|
107
|
-
getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
108
|
-
}, "All", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">>];
|
107
|
+
getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
108
|
+
}, "All" | "PDiskData" | "UserData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">>];
|
109
109
|
recomputations: () => number;
|
110
110
|
resetRecomputations: () => void;
|
111
111
|
dependencyRecomputations: () => number;
|
@@ -115,7 +115,7 @@ export declare const selectGetTabletsInfo: ((state: {
|
|
115
115
|
memoize: typeof import("reselect").weakMapMemoize;
|
116
116
|
};
|
117
117
|
export declare const selectTabletsWithFqdn: ((state: {
|
118
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
118
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
119
119
|
singleClusterMode: boolean;
|
120
120
|
cluster: import("./cluster/types").ClusterState;
|
121
121
|
tenant: import("./tenant/types").TenantState;
|
@@ -3,7 +3,7 @@ import type { TTabletStateInfo } from '../../types/api/tablet';
|
|
3
3
|
import type { TabletsApiRequestParams } from '../../types/store/tablets';
|
4
4
|
import type { RootState } from '../defaultStore';
|
5
5
|
export declare const getFilteredTablets: ((state: {
|
6
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
6
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
7
7
|
singleClusterMode: boolean;
|
8
8
|
cluster: import("./cluster/types").ClusterState;
|
9
9
|
tenant: import("./tenant/types").TenantState;
|
@@ -5,5 +5,5 @@ export declare const setTenantPage: import("@reduxjs/toolkit").ActionCreatorWith
|
|
5
5
|
export declare const tenantApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
6
6
|
getTenantInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
7
7
|
path: string;
|
8
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All", import("../../../types/api/tenant").TTenant | null | undefined, "api">;
|
9
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
8
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../../types/api/tenant").TTenant | null | undefined, "api">;
|
9
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|