ydb-embedded-ui 6.17.2 → 6.19.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/icons/decommission.svg +6 -0
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +3 -2
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +10 -16
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js.map +1 -1
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +4 -2
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +7 -4
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
- package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +23 -1
- package/dist/components/CriticalActionDialog/utils.d.ts +5 -0
- package/dist/components/CriticalActionDialog/utils.js +4 -0
- package/dist/components/CriticalActionDialog/utils.js.map +1 -0
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +5 -3
- package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +1 -2
- package/dist/components/EntityPageTitle/EntityPageTitle.js +2 -2
- package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -1
- package/dist/components/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +1 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
- package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +2 -1
- package/dist/components/LinkWithIcon/LinkWithIcon.js +3 -3
- package/dist/components/LinkWithIcon/LinkWithIcon.js.map +1 -1
- package/dist/components/Loader/Loader.js +1 -1
- package/dist/components/Loader/Loader.js.map +1 -1
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/PDiskInfo/PDiskInfo.js +1 -7
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/en.json +0 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +3 -5
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
- package/dist/components/PaginatedTable/PaginatedTable.js +2 -2
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +16 -14
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.js +2 -1
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.js +12 -4
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableHead.js +14 -10
- package/dist/components/PaginatedTable/TableHead.js.map +1 -1
- package/dist/components/PaginatedTable/TableRow.js +14 -6
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +5 -0
- package/dist/components/VDisk/VDisk.d.ts +6 -3
- package/dist/components/VDisk/VDisk.js +6 -4
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.d.ts +3 -5
- package/dist/components/VDisk/VDiskWithDonorsStack.js +4 -4
- package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.js +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.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/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/PDiskPage/DecommissionButton/DecommissionButton.d.ts +11 -0
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +91 -0
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -0
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.scss +6 -0
- package/dist/containers/PDiskPage/DecommissionLabel/DecommissionLabel.d.ts +6 -0
- package/dist/containers/PDiskPage/DecommissionLabel/DecommissionLabel.js +20 -0
- package/dist/containers/PDiskPage/DecommissionLabel/DecommissionLabel.js.map +1 -0
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +19 -14
- 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 +33 -15
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +7 -0
- package/dist/containers/PDiskPage/i18n/en.json +16 -2
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/Disks/Disks.d.ts +9 -0
- package/dist/containers/Storage/Disks/Disks.js +37 -0
- package/dist/containers/Storage/Disks/Disks.js.map +1 -0
- package/dist/containers/Storage/Disks/Disks.scss +46 -0
- package/dist/containers/Storage/PDisk/PDisk.d.ts +6 -2
- package/dist/containers/Storage/PDisk/PDisk.js +14 -7
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.scss +4 -2
- package/dist/containers/Storage/PaginatedStorage.js +1 -4
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/Storage.js +11 -13
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +1 -3
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +11 -7
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +1 -4
- package/dist/containers/Storage/StorageGroups/StorageGroups.js +4 -7
- package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/{StorageGroups.scss → columns/StorageGroupsColumns.scss} +3 -2
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +21 -0
- package/dist/containers/Storage/StorageGroups/{getStorageGroupsColumns.js → columns/getStorageGroupsColumns.js} +47 -40
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -0
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +19 -0
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +14 -0
- package/dist/containers/Storage/StorageGroups/columns/types.js.map +1 -0
- 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/StorageNodes/getStorageNodesColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +1 -1
- package/dist/containers/Storage/utils/index.js +3 -4
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/Tablet/Tablet.js +13 -11
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js +1 -1
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -1
- package/dist/containers/Tablet/i18n/en.json +6 -3
- package/dist/containers/Tablet/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/Tablets.js +1 -1
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tablets/i18n/en.json +2 -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 +22 -5
- 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/Diagnostics/TopShards/TopShards.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
- 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 +8 -6
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -6
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +5 -0
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +28 -0
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -2
- 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/Query/utils/__test__/replaceParams.test.d.ts +1 -0
- package/dist/containers/Tenant/Query/utils/__test__/replaceParams.test.js +50 -0
- package/dist/containers/Tenant/Query/utils/__test__/replaceParams.test.js.map +1 -0
- package/dist/containers/Tenant/Query/utils/replaceParams.d.ts +1 -0
- package/dist/containers/Tenant/Query/utils/replaceParams.js +6 -0
- package/dist/containers/Tenant/Query/utils/replaceParams.js.map +1 -0
- 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 +2 -0
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +1 -0
- package/dist/containers/UserSettings/settings.js +12 -2
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
- package/dist/containers/VDiskPage/VDiskPage.js +37 -17
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/i18n/en.json +2 -1
- package/dist/containers/VDiskPage/i18n/index.d.ts +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 +27 -11
- package/dist/services/api.js +110 -21
- package/dist/services/api.js.map +1 -1
- package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
- package/dist/services/parsers/parseMetaCluster.js +20 -1
- package/dist/services/parsers/parseMetaCluster.js.map +1 -1
- package/dist/services/settings.d.ts +1 -0
- package/dist/services/settings.js +2 -1
- 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 +36 -3
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/utils.d.ts +1 -0
- package/dist/store/reducers/cluster/utils.js +7 -0
- 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 +36 -1
- 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/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 -3
- package/dist/store/reducers/nodes/nodes.js +1 -2
- package/dist/store/reducers/nodes/nodes.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 +7 -0
- package/dist/store/reducers/trace.js +18 -0
- package/dist/store/reducers/trace.js.map +1 -0
- 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/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/cluster.d.ts +3 -0
- package/dist/types/api/compute.d.ts +1 -4
- package/dist/types/api/compute.js +1 -5
- package/dist/types/api/compute.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 +5 -1
- package/dist/types/api/modifyDisk.d.ts +1 -0
- package/dist/types/api/pdisk.d.ts +2 -2
- package/dist/types/api/query.d.ts +7 -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 +17 -0
- package/dist/types/api/trace.js +8 -0
- package/dist/types/api/trace.js.map +1 -0
- 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/types/store/query.d.ts +1 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/disks/helpers.d.ts +5 -2
- package/dist/utils/disks/helpers.js +12 -2
- package/dist/utils/disks/helpers.js.map +1 -1
- package/dist/utils/disks/prepareDisks.js +10 -5
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/hooks/useDelayed.d.ts +1 -1
- package/dist/utils/hooks/useDelayed.js +6 -1
- package/dist/utils/hooks/useDelayed.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.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/query.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/package.json +1 -6
- package/dist/components/CriticalActionDialog/index.d.ts +0 -1
- package/dist/components/CriticalActionDialog/index.js +0 -2
- package/dist/components/CriticalActionDialog/index.js.map +0 -1
- 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/Storage/StorageGroups/getStorageGroupsColumns.d.ts +0 -62
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js.map +0 -1
- 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.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/{store/reducers/tenantOverview/topStorageGroups → containers/Storage/StorageGroups/columns}/types.js +0 -0
@@ -1,5 +1,9 @@
|
|
1
1
|
import { useTypedSelector } from '../../../utils/hooks';
|
2
|
-
import { selectCapabilityVersion } from './capabilities';
|
2
|
+
import { capabilitiesApi, selectCapabilityVersion } from './capabilities';
|
3
|
+
export function useCapabilitiesLoaded() {
|
4
|
+
const { data, error } = capabilitiesApi.useGetClusterCapabilitiesQuery(undefined);
|
5
|
+
return Boolean(data || error);
|
6
|
+
}
|
3
7
|
const useGetFeatureVersion = (feature) => {
|
4
8
|
return useTypedSelector((state) => selectCapabilityVersion(state, feature) || 0);
|
5
9
|
};
|
@@ -14,4 +18,7 @@ export const useDiskPagesAvailable = () => {
|
|
14
18
|
export const useTracingLevelOptionAvailable = () => {
|
15
19
|
return useGetFeatureVersion('/viewer/query') > 2;
|
16
20
|
};
|
21
|
+
export const useStorageGroupsHandlerAvailable = () => {
|
22
|
+
return useGetFeatureVersion('/storage/groups') > 2;
|
23
|
+
};
|
17
24
|
//# sourceMappingURL=hooks.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/store/reducers/capabilities/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAC,uBAAuB,EAAC,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/store/reducers/capabilities/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAC,eAAe,EAAE,uBAAuB,EAAC,MAAM,gBAAgB,CAAC;AAExE,MAAM,UAAU,qBAAqB;IACjC,MAAM,EAAC,IAAI,EAAE,KAAK,EAAC,GAAG,eAAe,CAAC,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAEhF,OAAO,OAAO,CAAC,IAAI,IAAI,KAAK,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,oBAAoB,GAAG,CAAC,OAAmB,EAAE,EAAE;IACjD,OAAO,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AACrF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAG,EAAE;IACnD,OAAO,oBAAoB,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;AACzD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACtC,iFAAiF;IACjF,0CAA0C;IAC1C,OAAO,oBAAoB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC/C,OAAO,oBAAoB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;AACrD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,EAAE;IACjD,OAAO,oBAAoB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;AACvD,CAAC,CAAC"}
|
@@ -1,12 +1,240 @@
|
|
1
1
|
import type { Dispatch } from '@reduxjs/toolkit';
|
2
2
|
import type { TClusterInfo } from '../../../types/api/cluster';
|
3
|
+
import type { RootState } from '../../defaultStore';
|
3
4
|
import type { ClusterGroupsStats, ClusterState } from './types';
|
4
5
|
export declare function updateDefaultClusterTab(tab: string): (dispatch: Dispatch) => void;
|
5
6
|
declare const _default: import("redux").Reducer<ClusterState>;
|
6
7
|
export default _default;
|
7
8
|
export declare const clusterApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
8
|
-
getClusterInfo: import("@reduxjs/toolkit/query").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
9
|
+
getClusterInfo: import("@reduxjs/toolkit/query").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
9
10
|
clusterData: TClusterInfo;
|
10
11
|
groupsStats?: ClusterGroupsStats;
|
11
12
|
}, "api">;
|
12
|
-
|
13
|
+
getClusterBaseInfo: 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/meta").MetaBaseClusterInfo | undefined, "api">;
|
14
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
15
|
+
export declare function useClusterBaseInfo(): {
|
16
|
+
name: string | undefined;
|
17
|
+
monitoring: string | undefined;
|
18
|
+
traceCheck: {
|
19
|
+
url: string;
|
20
|
+
} | undefined;
|
21
|
+
traceView: {
|
22
|
+
url: string;
|
23
|
+
} | undefined;
|
24
|
+
owner?: string;
|
25
|
+
location?: string;
|
26
|
+
image?: string;
|
27
|
+
title?: string;
|
28
|
+
endpoint?: string;
|
29
|
+
mvp_token?: string;
|
30
|
+
status?: string;
|
31
|
+
scale?: number;
|
32
|
+
environment?: string;
|
33
|
+
control_plane?: string;
|
34
|
+
description?: string;
|
35
|
+
balancer?: string;
|
36
|
+
service?: string;
|
37
|
+
} | {
|
38
|
+
name: string | undefined;
|
39
|
+
monitoring: string | undefined;
|
40
|
+
traceCheck?: undefined;
|
41
|
+
traceView?: undefined;
|
42
|
+
owner?: string;
|
43
|
+
location?: string;
|
44
|
+
image?: string;
|
45
|
+
title?: string;
|
46
|
+
endpoint?: string;
|
47
|
+
mvp_token?: string;
|
48
|
+
status?: string;
|
49
|
+
scale?: number;
|
50
|
+
environment?: string;
|
51
|
+
control_plane?: string;
|
52
|
+
description?: string;
|
53
|
+
balancer?: string;
|
54
|
+
service?: string;
|
55
|
+
};
|
56
|
+
export declare const selectClusterInfo: ((state: {
|
57
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
|
58
|
+
singleClusterMode: boolean;
|
59
|
+
cluster: ClusterState;
|
60
|
+
tenant: import("../tenant/types").TenantState;
|
61
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
62
|
+
schema: import("../schema/types").SchemaState;
|
63
|
+
tenants: import("../tenants/types").TenantsState;
|
64
|
+
partitions: import("../partitions/types").PartitionsState;
|
65
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
66
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
67
|
+
settings: import("../settings/types").SettingsState;
|
68
|
+
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
69
|
+
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
70
|
+
authentication: import("../authentication/types").AuthenticationState;
|
71
|
+
header: import("../header/types").HeaderState;
|
72
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
73
|
+
fullscreen: boolean;
|
74
|
+
clusters: import("../clusters/types").ClustersFilters;
|
75
|
+
}, clusterName?: string | undefined) => {
|
76
|
+
clusterData: TClusterInfo;
|
77
|
+
groupsStats?: ClusterGroupsStats;
|
78
|
+
} | undefined) & {
|
79
|
+
clearCache: () => void;
|
80
|
+
resultsCount: () => number;
|
81
|
+
resetResultsCount: () => void;
|
82
|
+
} & {
|
83
|
+
resultFunc: (resultFuncArgs_0: {
|
84
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
|
85
|
+
singleClusterMode: boolean;
|
86
|
+
cluster: ClusterState;
|
87
|
+
tenant: import("../tenant/types").TenantState;
|
88
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
89
|
+
schema: import("../schema/types").SchemaState;
|
90
|
+
tenants: import("../tenants/types").TenantsState;
|
91
|
+
partitions: import("../partitions/types").PartitionsState;
|
92
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
93
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
94
|
+
settings: import("../settings/types").SettingsState;
|
95
|
+
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
96
|
+
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
97
|
+
authentication: import("../authentication/types").AuthenticationState;
|
98
|
+
header: import("../header/types").HeaderState;
|
99
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
100
|
+
fullscreen: boolean;
|
101
|
+
clusters: import("../clusters/types").ClustersFilters;
|
102
|
+
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
103
|
+
getClusterInfo: import("@reduxjs/toolkit/query").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
104
|
+
clusterData: TClusterInfo;
|
105
|
+
groupsStats?: ClusterGroupsStats;
|
106
|
+
}, "api">;
|
107
|
+
getClusterBaseInfo: 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/meta").MetaBaseClusterInfo | undefined, "api">;
|
108
|
+
}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
109
|
+
clusterData: TClusterInfo;
|
110
|
+
groupsStats?: ClusterGroupsStats;
|
111
|
+
}, "api">>) => {
|
112
|
+
clusterData: TClusterInfo;
|
113
|
+
groupsStats?: ClusterGroupsStats;
|
114
|
+
} | undefined;
|
115
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
116
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
|
117
|
+
singleClusterMode: boolean;
|
118
|
+
cluster: ClusterState;
|
119
|
+
tenant: import("../tenant/types").TenantState;
|
120
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
121
|
+
schema: import("../schema/types").SchemaState;
|
122
|
+
tenants: import("../tenants/types").TenantsState;
|
123
|
+
partitions: import("../partitions/types").PartitionsState;
|
124
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
125
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
126
|
+
settings: import("../settings/types").SettingsState;
|
127
|
+
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
128
|
+
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
129
|
+
authentication: import("../authentication/types").AuthenticationState;
|
130
|
+
header: import("../header/types").HeaderState;
|
131
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
132
|
+
fullscreen: boolean;
|
133
|
+
clusters: import("../clusters/types").ClustersFilters;
|
134
|
+
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
135
|
+
getClusterInfo: import("@reduxjs/toolkit/query").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
136
|
+
clusterData: TClusterInfo;
|
137
|
+
groupsStats?: ClusterGroupsStats;
|
138
|
+
}, "api">;
|
139
|
+
getClusterBaseInfo: 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/meta").MetaBaseClusterInfo | undefined, "api">;
|
140
|
+
}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
141
|
+
clusterData: TClusterInfo;
|
142
|
+
groupsStats?: ClusterGroupsStats;
|
143
|
+
}, "api">>) => {
|
144
|
+
clusterData: TClusterInfo;
|
145
|
+
groupsStats?: ClusterGroupsStats;
|
146
|
+
} | undefined) & {
|
147
|
+
clearCache: () => void;
|
148
|
+
resultsCount: () => number;
|
149
|
+
resetResultsCount: () => void;
|
150
|
+
};
|
151
|
+
lastResult: () => {
|
152
|
+
clusterData: TClusterInfo;
|
153
|
+
groupsStats?: ClusterGroupsStats;
|
154
|
+
} | undefined;
|
155
|
+
dependencies: [(state: RootState) => {
|
156
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
|
157
|
+
singleClusterMode: boolean;
|
158
|
+
cluster: ClusterState;
|
159
|
+
tenant: import("../tenant/types").TenantState;
|
160
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
161
|
+
schema: import("../schema/types").SchemaState;
|
162
|
+
tenants: import("../tenants/types").TenantsState;
|
163
|
+
partitions: import("../partitions/types").PartitionsState;
|
164
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
165
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
166
|
+
settings: import("../settings/types").SettingsState;
|
167
|
+
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
168
|
+
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
169
|
+
authentication: import("../authentication/types").AuthenticationState;
|
170
|
+
header: import("../header/types").HeaderState;
|
171
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
172
|
+
fullscreen: boolean;
|
173
|
+
clusters: import("../clusters/types").ClustersFilters;
|
174
|
+
}, (_state: RootState, clusterName?: string) => (state: import("@reduxjs/toolkit/query").RootState<{
|
175
|
+
getClusterInfo: import("@reduxjs/toolkit/query").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
176
|
+
clusterData: TClusterInfo;
|
177
|
+
groupsStats?: ClusterGroupsStats;
|
178
|
+
}, "api">;
|
179
|
+
getClusterBaseInfo: 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/meta").MetaBaseClusterInfo | undefined, "api">;
|
180
|
+
}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<string | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
|
181
|
+
clusterData: TClusterInfo;
|
182
|
+
groupsStats?: ClusterGroupsStats;
|
183
|
+
}, "api">>];
|
184
|
+
recomputations: () => number;
|
185
|
+
resetRecomputations: () => void;
|
186
|
+
dependencyRecomputations: () => number;
|
187
|
+
resetDependencyRecomputations: () => void;
|
188
|
+
} & {
|
189
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
190
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
191
|
+
};
|
192
|
+
export declare const selectClusterTitle: ((state: {
|
193
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
|
194
|
+
singleClusterMode: boolean;
|
195
|
+
cluster: ClusterState;
|
196
|
+
tenant: import("../tenant/types").TenantState;
|
197
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
198
|
+
schema: import("../schema/types").SchemaState;
|
199
|
+
tenants: import("../tenants/types").TenantsState;
|
200
|
+
partitions: import("../partitions/types").PartitionsState;
|
201
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
202
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
203
|
+
settings: import("../settings/types").SettingsState;
|
204
|
+
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
205
|
+
shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
|
206
|
+
authentication: import("../authentication/types").AuthenticationState;
|
207
|
+
header: import("../header/types").HeaderState;
|
208
|
+
queryActions: import("../queryActions/types").QueryActionsState;
|
209
|
+
fullscreen: boolean;
|
210
|
+
clusters: import("../clusters/types").ClustersFilters;
|
211
|
+
}, clusterName?: string | undefined) => string) & {
|
212
|
+
clearCache: () => void;
|
213
|
+
resultsCount: () => number;
|
214
|
+
resetResultsCount: () => void;
|
215
|
+
} & {
|
216
|
+
resultFunc: (resultFuncArgs_0: string | undefined, resultFuncArgs_1: {
|
217
|
+
clusterData: TClusterInfo;
|
218
|
+
groupsStats?: ClusterGroupsStats;
|
219
|
+
} | undefined) => string;
|
220
|
+
memoizedResultFunc: ((resultFuncArgs_0: string | undefined, resultFuncArgs_1: {
|
221
|
+
clusterData: TClusterInfo;
|
222
|
+
groupsStats?: ClusterGroupsStats;
|
223
|
+
} | undefined) => string) & {
|
224
|
+
clearCache: () => void;
|
225
|
+
resultsCount: () => number;
|
226
|
+
resetResultsCount: () => void;
|
227
|
+
};
|
228
|
+
lastResult: () => string;
|
229
|
+
dependencies: [(_state: RootState, clusterName?: string) => string | undefined, (state: RootState, clusterName?: string) => {
|
230
|
+
clusterData: TClusterInfo;
|
231
|
+
groupsStats?: ClusterGroupsStats;
|
232
|
+
} | undefined];
|
233
|
+
recomputations: () => number;
|
234
|
+
resetRecomputations: () => void;
|
235
|
+
dependencyRecomputations: () => number;
|
236
|
+
resetDependencyRecomputations: () => void;
|
237
|
+
} & {
|
238
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
239
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
240
|
+
};
|
@@ -1,9 +1,12 @@
|
|
1
|
-
import { createSlice } from '@reduxjs/toolkit';
|
1
|
+
import { createSelector, createSlice } from '@reduxjs/toolkit';
|
2
|
+
import { skipToken } from '@reduxjs/toolkit/query';
|
3
|
+
import { StringParam, useQueryParam } from 'use-query-params';
|
2
4
|
import { clusterTabsIds, isClusterTab } from '../../../containers/Cluster/utils';
|
3
|
-
import {
|
5
|
+
import { parseTraceFields } from '../../../services/parsers/parseMetaCluster';
|
6
|
+
import { CLUSTER_DEFAULT_TITLE, DEFAULT_CLUSTER_TAB_KEY } from '../../../utils/constants';
|
4
7
|
import { isQueryErrorResponse } from '../../../utils/query';
|
5
8
|
import { api } from '../api';
|
6
|
-
import { createSelectClusterGroupsQuery, parseGroupsStatsQueryResponse } from './utils';
|
9
|
+
import { createSelectClusterGroupsQuery, normalizeDomain, parseGroupsStatsQueryResponse, } from './utils';
|
7
10
|
const defaultClusterTabLS = localStorage.getItem(DEFAULT_CLUSTER_TAB_KEY);
|
8
11
|
let defaultClusterTab;
|
9
12
|
if (isClusterTab(defaultClusterTabLS)) {
|
@@ -75,7 +78,37 @@ export const clusterApi = api.injectEndpoints({
|
|
75
78
|
},
|
76
79
|
providesTags: ['All'],
|
77
80
|
}),
|
81
|
+
getClusterBaseInfo: builder.query({
|
82
|
+
queryFn: async (clusterName, { signal }) => {
|
83
|
+
try {
|
84
|
+
const data = await window.api.getClusterBaseInfo(clusterName, { signal });
|
85
|
+
return { data };
|
86
|
+
}
|
87
|
+
catch (error) {
|
88
|
+
return { error };
|
89
|
+
}
|
90
|
+
},
|
91
|
+
providesTags: ['All'],
|
92
|
+
}),
|
78
93
|
}),
|
79
94
|
overrideExisting: 'throw',
|
80
95
|
});
|
96
|
+
export function useClusterBaseInfo() {
|
97
|
+
var _a;
|
98
|
+
const [clusterName] = useQueryParam('clusterName', StringParam);
|
99
|
+
const { currentData } = clusterApi.useGetClusterBaseInfoQuery(clusterName !== null && clusterName !== void 0 ? clusterName : skipToken);
|
100
|
+
const { solomon: monitoring, name, trace_check: traceCheck, trace_view: traceView, ...data } = currentData || {};
|
101
|
+
return {
|
102
|
+
...data,
|
103
|
+
...parseTraceFields({ traceCheck, traceView }),
|
104
|
+
name: (_a = name !== null && name !== void 0 ? name : clusterName) !== null && _a !== void 0 ? _a : undefined,
|
105
|
+
monitoring,
|
106
|
+
};
|
107
|
+
}
|
108
|
+
const createClusterInfoSelector = createSelector((clusterName) => clusterName, (clusterName) => clusterApi.endpoints.getClusterInfo.select(clusterName));
|
109
|
+
export const selectClusterInfo = createSelector((state) => state, (_state, clusterName) => createClusterInfoSelector(clusterName), (state, selectGetClusterInfo) => selectGetClusterInfo(state).data);
|
110
|
+
export const selectClusterTitle = createSelector((_state, clusterName) => clusterName, (state, clusterName) => selectClusterInfo(state, clusterName), (clusterName, clusterInfo) => {
|
111
|
+
const { Name, Domain } = (clusterInfo === null || clusterInfo === void 0 ? void 0 : clusterInfo.clusterData) || {};
|
112
|
+
return Name || clusterName || normalizeDomain(Domain) || CLUSTER_DEFAULT_TITLE;
|
113
|
+
});
|
81
114
|
//# sourceMappingURL=cluster.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../../src/store/reducers/cluster/cluster.ts"],"names":[],"mappings":"AAAA,OAAO,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se } from '../../../types/api/query';
|
|
2
2
|
import type { ClusterGroupsStats } from './types';
|
3
3
|
export declare const createSelectClusterGroupsQuery: (clusterRoot: string) => string;
|
4
4
|
export declare const parseGroupsStatsQueryResponse: (data: ExecuteQueryResponse<"modern">) => ClusterGroupsStats;
|
5
|
+
export declare function normalizeDomain(domain?: string): string | undefined;
|
@@ -66,4 +66,11 @@ export const parseGroupsStatsQueryResponse = (data) => {
|
|
66
66
|
});
|
67
67
|
return result;
|
68
68
|
};
|
69
|
+
export function normalizeDomain(domain) {
|
70
|
+
if (!domain) {
|
71
|
+
return undefined;
|
72
|
+
}
|
73
|
+
const normalizedDomain = domain.startsWith('/') ? domain.slice(1) : domain;
|
74
|
+
return normalizedDomain.toUpperCase();
|
75
|
+
}
|
69
76
|
//# sourceMappingURL=utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/cluster/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,sBAAsB,CAAC;AAIlE,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,WAAmB,EAAE,EAAE;IAClE,OAAO;;;;;;;;aAQE,WAAW;;CAEvB,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,aAAqB,EAAE,EAAE;;IAC1C,6DAA6D;IAC7D,MAAM,UAAU,GAAG,0BAA0B,CAAC;IAE9C,MAAM,QAAQ,GAAG,MAAA,MAAA,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,0CAAE,MAAM,0CAAG,MAAM,CAAC,CAAC;IAEnE,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;QACrB,qBAAqB;QACrB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CACzC,IAAoC,EAClB,EAAE;IACpB,MAAM,UAAU,GAAG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AG,aAAa;wBACzD,WAAW,EAAE,YAAY,CAAC,WAAW,GAAG,WAAW;wBACnD,aAAa,EAAE,YAAY,CAAC,aAAa,GAAG,aAAa;wBACzD,aAAa,EAAE,YAAY,CAAC,aAAa,GAAG,aAAa;qBAC5D,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC;gBAC9C,CAAC;YACL,CAAC;iBAAM,CAAC;gBACJ,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAC,CAAC,OAAO,CAAC,EAAE,aAAa,EAAC,CAAC;YAClD,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,MAAe;IAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC3E,OAAO,gBAAgB,CAAC,WAAW,EAAE,CAAC;AAC1C,CAAC"}
|
@@ -3,5 +3,5 @@ declare const _default: import("redux").Reducer<ClustersFilters>;
|
|
3
3
|
export default _default;
|
4
4
|
export declare const changeClustersFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<ClustersFilters>, "clusters/changeClustersFilters">;
|
5
5
|
export declare const clustersApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
6
|
-
getClustersList: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
7
|
-
}, "api", "All" | "PDiskData" | "
|
6
|
+
getClustersList: 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").PreparedCluster[] | undefined, "api">;
|
7
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -3,5 +3,5 @@ export declare const describeApi: import("@reduxjs/toolkit/query").Api<import("@
|
|
3
3
|
getDescribe: import("@reduxjs/toolkit/query").QueryDefinition<{
|
4
4
|
paths: string[];
|
5
5
|
database: string;
|
6
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
7
|
-
}, "api", "All" | "PDiskData" | "
|
6
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", IDescribeData | undefined, "api">;
|
7
|
+
}, "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 { Reducer } from '@reduxjs/toolkit';
|
2
2
|
import type { Schemas } from '../../types/api/query';
|
3
|
-
import type { ExecuteQueryAction, ExecuteQueryState, ExecuteQueryStateSlice, QueryInHistory } from '../../types/store/executeQuery';
|
4
|
-
import type {
|
3
|
+
import type { ExecuteQueryAction, ExecuteQueryState, ExecuteQueryStateSlice, QueryInHistory, QueryResult } from '../../types/store/executeQuery';
|
4
|
+
import type { QueryRequestParams, QuerySettings } from '../../types/store/query';
|
5
5
|
declare const executeQuery: Reducer<ExecuteQueryState, ExecuteQueryAction>;
|
6
6
|
interface SendQueryParams extends QueryRequestParams {
|
7
7
|
queryId: string;
|
@@ -14,8 +14,8 @@ interface QueryStats {
|
|
14
14
|
endTime?: string | number;
|
15
15
|
}
|
16
16
|
export declare const executeQueryApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
17
|
-
executeQuery: import("@reduxjs/toolkit/query").MutationDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
18
|
-
}, "api", "All" | "PDiskData" | "
|
17
|
+
executeQuery: import("@reduxjs/toolkit/query").MutationDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", null, "api">;
|
18
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
19
19
|
export declare const saveQueryToHistory: (queryText: string, queryId: string) => {
|
20
20
|
readonly type: "query/SAVE_QUERY_TO_HISTORY";
|
21
21
|
readonly data: {
|
@@ -30,6 +30,10 @@ export declare function updateQueryInHistory(stats: QueryStats, queryId: string)
|
|
30
30
|
readonly stats: QueryStats;
|
31
31
|
};
|
32
32
|
};
|
33
|
+
export declare function setQueryResult(data?: QueryResult): {
|
34
|
+
readonly type: "query/SET_QUERY_RESULT";
|
35
|
+
readonly data: QueryResult | undefined;
|
36
|
+
};
|
33
37
|
export declare const goToPreviousQuery: () => {
|
34
38
|
readonly type: "query/GO_TO_PREVIOUS_QUERY";
|
35
39
|
};
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import { settingsManager } from '../../services/settings';
|
2
2
|
import { TracingLevelNumber } from '../../types/api/query';
|
3
|
+
import { ResultType } from '../../types/store/executeQuery';
|
3
4
|
import { QUERIES_HISTORY_KEY } from '../../utils/constants';
|
4
5
|
import { QUERY_SYNTAX, isQueryErrorResponse, parseQueryAPIExecuteResponse } from '../../utils/query';
|
5
6
|
import { isNumeric } from '../../utils/utils';
|
6
7
|
import { api } from './api';
|
7
8
|
const MAXIMUM_QUERIES_IN_HISTORY = 20;
|
8
9
|
const CHANGE_USER_INPUT = 'query/CHANGE_USER_INPUT';
|
10
|
+
const SET_QUERY_RESULT = 'query/SET_QUERY_RESULT';
|
9
11
|
const SAVE_QUERY_TO_HISTORY = 'query/SAVE_QUERY_TO_HISTORY';
|
10
12
|
const UPDATE_QUERY_IN_HISTORY = 'query/UPDATE_QUERY_IN_HISTORY';
|
11
13
|
const SET_QUERY_HISTORY_FILTER = 'query/SET_QUERY_HISTORY_FILTER';
|
@@ -35,6 +37,12 @@ const executeQuery = (state = initialState, action) => {
|
|
35
37
|
input: action.data.input,
|
36
38
|
};
|
37
39
|
}
|
40
|
+
case SET_QUERY_RESULT: {
|
41
|
+
return {
|
42
|
+
...state,
|
43
|
+
result: action.data,
|
44
|
+
};
|
45
|
+
}
|
38
46
|
case SAVE_QUERY_TO_HISTORY: {
|
39
47
|
const { queryText, queryId } = action.data;
|
40
48
|
const newQueries = [...state.history.queries, { queryText, queryId }].slice(state.history.queries.length >= MAXIMUM_QUERIES_IN_HISTORY ? 1 : 0);
|
@@ -129,8 +137,10 @@ export const executeQueryApi = api.injectEndpoints({
|
|
129
137
|
endpoints: (build) => ({
|
130
138
|
executeQuery: build.mutation({
|
131
139
|
queryFn: async ({ query, database, querySettings = {}, schema = 'modern', enableTracingLevel, queryId, }, { signal, dispatch }) => {
|
140
|
+
var _a;
|
132
141
|
let action = 'execute';
|
133
142
|
let syntax = QUERY_SYNTAX.yql;
|
143
|
+
dispatch(setQueryResult({ type: ResultType.EXECUTE, queryId, isLoading: true }));
|
134
144
|
if (querySettings.queryMode === 'pg') {
|
135
145
|
action = 'execute-query';
|
136
146
|
syntax = QUERY_SYNTAX.pg;
|
@@ -159,9 +169,16 @@ export const executeQueryApi = api.injectEndpoints({
|
|
159
169
|
query_id: queryId,
|
160
170
|
}, { signal });
|
161
171
|
if (isQueryErrorResponse(response)) {
|
172
|
+
dispatch(setQueryResult({
|
173
|
+
type: ResultType.EXECUTE,
|
174
|
+
error: response,
|
175
|
+
isLoading: false,
|
176
|
+
queryId,
|
177
|
+
}));
|
162
178
|
return { error: response };
|
163
179
|
}
|
164
180
|
const data = parseQueryAPIExecuteResponse(response);
|
181
|
+
data.traceId = (_a = response._meta) === null || _a === void 0 ? void 0 : _a.traceId;
|
165
182
|
const queryStats = {};
|
166
183
|
if (data.stats) {
|
167
184
|
const { DurationUs, Executions: [{ FinishTimeMs }] = [{}] } = data.stats;
|
@@ -174,9 +191,21 @@ export const executeQueryApi = api.injectEndpoints({
|
|
174
191
|
queryStats.endTime = now;
|
175
192
|
}
|
176
193
|
dispatch(updateQueryInHistory(queryStats, queryId));
|
177
|
-
|
194
|
+
dispatch(setQueryResult({
|
195
|
+
type: ResultType.EXECUTE,
|
196
|
+
data,
|
197
|
+
isLoading: false,
|
198
|
+
queryId,
|
199
|
+
}));
|
200
|
+
return { data: null };
|
178
201
|
}
|
179
202
|
catch (error) {
|
203
|
+
dispatch(setQueryResult({
|
204
|
+
type: ResultType.EXECUTE,
|
205
|
+
error,
|
206
|
+
isLoading: false,
|
207
|
+
queryId,
|
208
|
+
}));
|
180
209
|
return { error };
|
181
210
|
}
|
182
211
|
},
|
@@ -196,6 +225,12 @@ export function updateQueryInHistory(stats, queryId) {
|
|
196
225
|
data: { queryId, stats },
|
197
226
|
};
|
198
227
|
}
|
228
|
+
export function setQueryResult(data) {
|
229
|
+
return {
|
230
|
+
type: SET_QUERY_RESULT,
|
231
|
+
data,
|
232
|
+
};
|
233
|
+
}
|
199
234
|
export const goToPreviousQuery = () => {
|
200
235
|
return {
|
201
236
|
type: GO_TO_PREVIOUS_QUERY,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"executeQuery.js","sourceRoot":"","sources":["../../../src/store/reducers/executeQuery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;
|
1
|
+
{"version":3,"file":"executeQuery.js","sourceRoot":"","sources":["../../../src/store/reducers/executeQuery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAC,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAS1D,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAE,oBAAoB,EAAE,4BAA4B,EAAC,MAAM,mBAAmB,CAAC;AACnG,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAE1B,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAEtC,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AACpD,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAClD,MAAM,qBAAqB,GAAG,6BAA6B,CAAC;AAC5D,MAAM,uBAAuB,GAAG,+BAA+B,CAAC;AAChE,MAAM,wBAAwB,GAAG,gCAAgC,CAAC;AAClE,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAC1D,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAClD,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAEhD,MAAM,qBAAqB,GAAG,eAAe,CAAC,qBAAqB,CAC/D,mBAAmB,EACnB,EAAE,CACO,CAAC;AAEd,MAAM,UAAU,GAAG,qBAAqB,CAAC,MAAM,GAAG,0BAA0B,CAAC;AAE7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QAC9B,IAAI,EAAE,EAAC,MAAM,EAAC;KACR,CAAC;AACf,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -6,5 +6,5 @@ export declare const topQueriesApi: import("@reduxjs/toolkit/query").Api<import(
|
|
6
6
|
getTopQueries: import("@reduxjs/toolkit/query").QueryDefinition<{
|
7
7
|
database: string;
|
8
8
|
filters?: TopQueriesFilters;
|
9
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
10
|
-
}, "api", "All" | "PDiskData" | "
|
9
|
+
}, 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">;
|
10
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import type { QueryRequestParams, QuerySettings } from '../../../types/store/query';
|
2
|
-
import type { PreparedExplainResponse } from './types';
|
3
2
|
interface ExplainQueryParams extends QueryRequestParams {
|
4
3
|
queryId: string;
|
5
4
|
querySettings?: Partial<QuerySettings>;
|
6
5
|
enableTracingLevel?: boolean;
|
7
6
|
}
|
8
7
|
export declare const explainQueryApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
9
|
-
explainQuery: import("@reduxjs/toolkit/query").MutationDefinition<ExplainQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
10
|
-
}, "api", "All" | "PDiskData" | "
|
8
|
+
explainQuery: import("@reduxjs/toolkit/query").MutationDefinition<ExplainQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", null, "api">;
|
9
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
11
10
|
export {};
|