ydb-embedded-ui 6.12.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/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/PDiskInfo/PDiskInfo.d.ts +2 -2
- package/dist/components/PDiskInfo/PDiskInfo.js +9 -6
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- 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 +2 -2
- package/dist/components/VDiskInfo/VDiskInfo.js +4 -2
- 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/ClusterInfo/ClusterInfo.js +6 -6
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Heatmap/Heatmap.js +5 -4
- package/dist/containers/Node/Node.js +5 -7
- package/dist/containers/Node/Node.scss +4 -0
- package/dist/containers/Node/NodeStructure/NodeStructure.js +4 -4
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +4 -0
- package/dist/containers/Node/NodeStructure/Pdisk.js +2 -2
- package/dist/containers/Nodes/Nodes.js +6 -8
- package/dist/containers/Nodes/getNodesColumns.js +6 -21
- package/dist/containers/PDiskPage/PDiskPage.js +19 -8
- package/dist/containers/PDiskPage/i18n/en.json +1 -0
- 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/Tablet/Tablet.js +2 -2
- package/dist/containers/Tablet/TabletControls/TabletControls.js +2 -1
- package/dist/containers/Tablets/Tablets.js +3 -5
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +2 -5
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +10 -13
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +1 -0
- 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 +1 -2
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +3 -5
- 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/TenantOverviewTableLayout.js +3 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +4 -3
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +4 -3
- 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/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 +91 -95
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +4 -6
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +18 -49
- 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.js +20 -23
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +123 -7
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +32 -10
- package/dist/containers/Tenant/Query/i18n/en.json +3 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +6 -6
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +5 -2
- 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/utils/schemaActions.d.ts +2 -2
- package/dist/containers/Tenant/utils/schemaActions.js +2 -2
- package/dist/containers/Tenants/Tenants.js +4 -7
- package/dist/containers/UserSettings/i18n/en.json +3 -5
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +2 -3
- package/dist/containers/UserSettings/settings.js +17 -23
- 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/services/api.d.ts +21 -8
- package/dist/services/api.js +29 -42
- package/dist/services/settings.d.ts +11 -4
- package/dist/services/settings.js +7 -6
- 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 +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/explainQuery/explainQuery.d.ts +5 -4
- package/dist/store/reducers/explainQuery/explainQuery.js +14 -4
- 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/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +6 -6
- 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/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 +3 -3
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +3 -3
- package/dist/store/reducers/schema/schema.js +10 -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/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/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- 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/viewSchema/viewSchema.d.ts +2 -2
- package/dist/styles/mixins.scss +2 -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/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/store/query.d.ts +7 -0
- 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 -4
- package/dist/utils/constants.js +15 -4
- package/dist/utils/dataFormatters/dataFormatters.d.ts +0 -1
- package/dist/utils/dataFormatters/dataFormatters.js +1 -4
- 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/prepareQueryExplain.d.ts +3 -1
- package/dist/utils/prepareQueryExplain.js +54 -2
- package/dist/utils/query.js +1 -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 +4 -2
- package/dist/containers/Tenant/Query/ExplainResult/utils.d.ts +0 -2
- package/dist/containers/Tenant/Query/ExplainResult/utils.js +0 -4
- 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/{types/api/restartPDisk.js → containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.js} +0 -0
@@ -45,7 +45,10 @@ export const schemaApi = api.injectEndpoints({
|
|
45
45
|
queryFn: async ({ path, database }, { signal }) => {
|
46
46
|
try {
|
47
47
|
const data = await window.api.getSchema({ path, database }, { signal });
|
48
|
-
|
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 };
|
@@ -93,14 +96,18 @@ export const selectSchemaMergedChildrenPaths = createSelector([
|
|
93
96
|
: undefined;
|
94
97
|
});
|
95
98
|
export function useGetSchemaQuery({ path, database }) {
|
96
|
-
const { currentData, isFetching, error, refetch } = schemaApi.useGetSchemaQuery({
|
99
|
+
const { currentData, isFetching, error, refetch, originalArgs } = schemaApi.useGetSchemaQuery({
|
100
|
+
path,
|
101
|
+
database,
|
102
|
+
});
|
97
103
|
const data = currentData === null || currentData === void 0 ? void 0 : currentData[path];
|
98
104
|
const isLoading = isFetching && data === undefined;
|
105
|
+
const currentPathError = (originalArgs === null || originalArgs === void 0 ? void 0 : originalArgs.path) === path ? error : undefined;
|
99
106
|
const shouldLoad = !isLoading && ((!data && !error) || (data === null || data === void 0 ? void 0 : data.partial));
|
100
107
|
React.useEffect(() => {
|
101
108
|
if (shouldLoad) {
|
102
109
|
refetch();
|
103
110
|
}
|
104
111
|
}, [refetch, path, shouldLoad]);
|
105
|
-
return { data, isLoading, error };
|
112
|
+
return { data, isLoading, error: currentPathError };
|
106
113
|
}
|
@@ -2,9 +2,9 @@ export declare const schemaAclApi: import("@reduxjs/toolkit/query").Api<import("
|
|
2
2
|
getSchemaAcl: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
path: string;
|
4
4
|
database: string;
|
5
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", {
|
5
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", {
|
6
6
|
acl: import("../../../types/api/acl").TACE[] | undefined;
|
7
7
|
effectiveAcl: import("../../../types/api/acl").TACE[] | undefined;
|
8
8
|
owner: string | undefined;
|
9
9
|
} | undefined, "api">;
|
10
|
-
}, "api", "All" | "PDiskData", 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>;
|
@@ -13,5 +13,5 @@ interface SendShardQueryParams {
|
|
13
13
|
filters?: ShardsWorkloadFilters;
|
14
14
|
}
|
15
15
|
export declare const shardApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
16
|
-
sendShardQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendShardQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", import("../../../types/store/query").IQueryResult | undefined, "api">;
|
17
|
-
}, "api", "All" | "PDiskData", 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,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" | "PDiskData", 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", import("./types").PreparedStorageResponse | undefined, "api">;
|
6
|
-
}, "api", "All" | "PDiskData", 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" | "PDiskData", {
|
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" | "PDiskData", string | undefined, "api">;
|
14
|
-
}, "api", "All" | "PDiskData", 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" | "PDiskData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
9
|
-
}, "api", "All" | "PDiskData", 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" | "PDiskData", "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" | "PDiskData", "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" | "PDiskData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
57
|
-
}, "All" | "PDiskData", "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", 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" | "PDiskData", "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" | "PDiskData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
80
|
-
}, "All" | "PDiskData", "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", 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" | "PDiskData", "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" | "PDiskData", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
|
108
|
-
}, "All" | "PDiskData", "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", 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" | "PDiskData", "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" | "PDiskData", "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" | "PDiskData", import("../../../types/api/tenant").TTenant | null | undefined, "api">;
|
9
|
-
}, "api", "All" | "PDiskData", 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>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const topTablesApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, {
|
2
2
|
getTopTables: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
path: string;
|
4
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData", import("../../../../types/store/query").IQueryResult | undefined, "api">;
|
5
|
-
}, "api", "All" | "PDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
4
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../../../types/store/query").IQueryResult | undefined, "api">;
|
5
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { NodesApiRequestParams } from '../../nodes/types';
|
2
2
|
export declare const topNodesApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, {
|
3
|
-
getTopNodes: import("@reduxjs/toolkit/query").QueryDefinition<NodesApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData", import("../../nodes/types").NodesPreparedEntity[] | undefined, "api">;
|
4
|
-
}, "api", "All" | "PDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
3
|
+
getTopNodes: import("@reduxjs/toolkit/query").QueryDefinition<NodesApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../nodes/types").NodesPreparedEntity[] | undefined, "api">;
|
4
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -2,5 +2,5 @@ export declare const topShardsApi: import("@reduxjs/toolkit/query").Api<import("
|
|
2
2
|
getTopShards: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
database: string;
|
4
4
|
path?: string;
|
5
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData", import("../../../../types/store/query").IQueryResult | undefined, "api">;
|
6
|
-
}, "api", "All" | "PDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
5
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../../../types/store/query").IQueryResult | undefined, "api">;
|
6
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { StorageApiRequestParams } from '../../storage/types';
|
2
2
|
export declare const topStorageGroupsApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, {
|
3
|
-
getTopStorageGroups: import("@reduxjs/toolkit/query").QueryDefinition<StorageApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData", import("../../storage/types").PreparedStorageGroup[] | undefined, "api">;
|
4
|
-
}, "api", "All" | "PDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
3
|
+
getTopStorageGroups: import("@reduxjs/toolkit/query").QueryDefinition<StorageApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("../../storage/types").PreparedStorageGroup[] | undefined, "api">;
|
4
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -2,7 +2,7 @@ import type { RootState } from '../..';
|
|
2
2
|
import type { ProblemFilterValue } from '../settings/types';
|
3
3
|
import type { PreparedTenant, TenantsStateSlice } from './types';
|
4
4
|
export declare const selectTenants: ((state: {
|
5
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData", "api">;
|
5
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
6
6
|
singleClusterMode: boolean;
|
7
7
|
cluster: import("../cluster/types").ClusterState;
|
8
8
|
tenant: import("../tenant/types").TenantState;
|
@@ -27,7 +27,7 @@ export declare const selectTenants: ((state: {
|
|
27
27
|
resetResultsCount: () => void;
|
28
28
|
} & {
|
29
29
|
resultFunc: (resultFuncArgs_0: {
|
30
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData", "api">;
|
30
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
31
31
|
singleClusterMode: boolean;
|
32
32
|
cluster: import("../cluster/types").ClusterState;
|
33
33
|
tenant: import("../tenant/types").TenantState;
|
@@ -49,12 +49,12 @@ export declare const selectTenants: ((state: {
|
|
49
49
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
50
50
|
getTenantsInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
51
51
|
clusterName?: string;
|
52
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">;
|
53
|
-
}, "All" | "PDiskData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
52
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">;
|
53
|
+
}, "All" | "PDiskData" | "UserData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
54
54
|
clusterName?: string;
|
55
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">>) => PreparedTenant[];
|
55
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">>) => PreparedTenant[];
|
56
56
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
57
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData", "api">;
|
57
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
58
58
|
singleClusterMode: boolean;
|
59
59
|
cluster: import("../cluster/types").ClusterState;
|
60
60
|
tenant: import("../tenant/types").TenantState;
|
@@ -76,17 +76,17 @@ export declare const selectTenants: ((state: {
|
|
76
76
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
77
77
|
getTenantsInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
78
78
|
clusterName?: string;
|
79
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">;
|
80
|
-
}, "All" | "PDiskData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
79
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">;
|
80
|
+
}, "All" | "PDiskData" | "UserData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
81
81
|
clusterName?: string;
|
82
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">>) => PreparedTenant[]) & {
|
82
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">>) => PreparedTenant[]) & {
|
83
83
|
clearCache: () => void;
|
84
84
|
resultsCount: () => number;
|
85
85
|
resetResultsCount: () => void;
|
86
86
|
};
|
87
87
|
lastResult: () => PreparedTenant[];
|
88
88
|
dependencies: [(state: RootState) => {
|
89
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData", "api">;
|
89
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
90
90
|
singleClusterMode: boolean;
|
91
91
|
cluster: import("../cluster/types").ClusterState;
|
92
92
|
tenant: import("../tenant/types").TenantState;
|
@@ -108,10 +108,10 @@ export declare const selectTenants: ((state: {
|
|
108
108
|
}, (_state: RootState, clusterName: string | undefined) => (state: import("@reduxjs/toolkit/query").RootState<{
|
109
109
|
getTenantsInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
110
110
|
clusterName?: string;
|
111
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">;
|
112
|
-
}, "All" | "PDiskData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
111
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">;
|
112
|
+
}, "All" | "PDiskData" | "UserData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
113
113
|
clusterName?: string;
|
114
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">>];
|
114
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">>];
|
115
115
|
recomputations: () => number;
|
116
116
|
resetRecomputations: () => void;
|
117
117
|
dependencyRecomputations: () => number;
|
@@ -121,8 +121,9 @@ export declare const selectTenants: ((state: {
|
|
121
121
|
memoize: typeof import("reselect").weakMapMemoize;
|
122
122
|
};
|
123
123
|
export declare const selectTenantsSearchValue: (state: TenantsStateSlice) => string;
|
124
|
+
export declare const selectShowDomainDatabase: (state: RootState) => unknown;
|
124
125
|
export declare const selectFilteredTenants: ((state: {
|
125
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData", "api">;
|
126
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
126
127
|
singleClusterMode: boolean;
|
127
128
|
cluster: import("../cluster/types").ClusterState;
|
128
129
|
tenant: import("../tenant/types").TenantState;
|
@@ -148,15 +149,15 @@ export declare const selectFilteredTenants: ((state: {
|
|
148
149
|
resultsCount: () => number;
|
149
150
|
resetResultsCount: () => void;
|
150
151
|
} & {
|
151
|
-
resultFunc: (resultFuncArgs_0: PreparedTenant[], resultFuncArgs_1: ProblemFilterValue, resultFuncArgs_2: string) => PreparedTenant[];
|
152
|
-
memoizedResultFunc: ((resultFuncArgs_0: PreparedTenant[], resultFuncArgs_1: ProblemFilterValue, resultFuncArgs_2: string) => PreparedTenant[]) & {
|
152
|
+
resultFunc: (resultFuncArgs_0: PreparedTenant[], resultFuncArgs_1: ProblemFilterValue, resultFuncArgs_2: string, resultFuncArgs_3: any) => PreparedTenant[];
|
153
|
+
memoizedResultFunc: ((resultFuncArgs_0: PreparedTenant[], resultFuncArgs_1: ProblemFilterValue, resultFuncArgs_2: string, resultFuncArgs_3: any) => PreparedTenant[]) & {
|
153
154
|
clearCache: () => void;
|
154
155
|
resultsCount: () => number;
|
155
156
|
resetResultsCount: () => void;
|
156
157
|
};
|
157
158
|
lastResult: () => PreparedTenant[];
|
158
159
|
dependencies: [((state: {
|
159
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData", "api">;
|
160
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
160
161
|
singleClusterMode: boolean;
|
161
162
|
cluster: import("../cluster/types").ClusterState;
|
162
163
|
tenant: import("../tenant/types").TenantState;
|
@@ -181,7 +182,7 @@ export declare const selectFilteredTenants: ((state: {
|
|
181
182
|
resetResultsCount: () => void;
|
182
183
|
} & {
|
183
184
|
resultFunc: (resultFuncArgs_0: {
|
184
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData", "api">;
|
185
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
185
186
|
singleClusterMode: boolean;
|
186
187
|
cluster: import("../cluster/types").ClusterState;
|
187
188
|
tenant: import("../tenant/types").TenantState;
|
@@ -203,12 +204,12 @@ export declare const selectFilteredTenants: ((state: {
|
|
203
204
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
204
205
|
getTenantsInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
205
206
|
clusterName?: string;
|
206
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">;
|
207
|
-
}, "All" | "PDiskData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
207
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">;
|
208
|
+
}, "All" | "PDiskData" | "UserData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
208
209
|
clusterName?: string;
|
209
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">>) => PreparedTenant[];
|
210
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">>) => PreparedTenant[];
|
210
211
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
211
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData", "api">;
|
212
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
212
213
|
singleClusterMode: boolean;
|
213
214
|
cluster: import("../cluster/types").ClusterState;
|
214
215
|
tenant: import("../tenant/types").TenantState;
|
@@ -230,17 +231,17 @@ export declare const selectFilteredTenants: ((state: {
|
|
230
231
|
}, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
|
231
232
|
getTenantsInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
232
233
|
clusterName?: string;
|
233
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">;
|
234
|
-
}, "All" | "PDiskData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
234
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">;
|
235
|
+
}, "All" | "PDiskData" | "UserData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
235
236
|
clusterName?: string;
|
236
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">>) => PreparedTenant[]) & {
|
237
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">>) => PreparedTenant[]) & {
|
237
238
|
clearCache: () => void;
|
238
239
|
resultsCount: () => number;
|
239
240
|
resetResultsCount: () => void;
|
240
241
|
};
|
241
242
|
lastResult: () => PreparedTenant[];
|
242
243
|
dependencies: [(state: RootState) => {
|
243
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData", "api">;
|
244
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData", "api">;
|
244
245
|
singleClusterMode: boolean;
|
245
246
|
cluster: import("../cluster/types").ClusterState;
|
246
247
|
tenant: import("../tenant/types").TenantState;
|
@@ -262,10 +263,10 @@ export declare const selectFilteredTenants: ((state: {
|
|
262
263
|
}, (_state: RootState, clusterName: string | undefined) => (state: import("@reduxjs/toolkit/query").RootState<{
|
263
264
|
getTenantsInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
264
265
|
clusterName?: string;
|
265
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">;
|
266
|
-
}, "All" | "PDiskData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
266
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">;
|
267
|
+
}, "All" | "PDiskData" | "UserData", "api">) => import("@reduxjs/toolkit/query").QueryResultSelectorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
267
268
|
clusterName?: string;
|
268
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">>];
|
269
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", PreparedTenant[] | undefined, "api">>];
|
269
270
|
recomputations: () => number;
|
270
271
|
resetRecomputations: () => void;
|
271
272
|
dependencyRecomputations: () => number;
|
@@ -277,7 +278,7 @@ export declare const selectFilteredTenants: ((state: {
|
|
277
278
|
settings: import("../settings/types").SettingsState;
|
278
279
|
}, ProblemFilterValue, []> & {
|
279
280
|
unwrapped: (state: import("../settings/types").SettingsState) => ProblemFilterValue;
|
280
|
-
}, (state: TenantsStateSlice) => string];
|
281
|
+
}, (state: TenantsStateSlice) => string, (state: RootState) => unknown];
|
281
282
|
recomputations: () => number;
|
282
283
|
resetRecomputations: () => void;
|
283
284
|
dependencyRecomputations: () => number;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { createSelector } from '@reduxjs/toolkit';
|
2
2
|
import escapeRegExp from 'lodash/escapeRegExp';
|
3
|
+
import { SHOW_DOMAIN_DATABASE_KEY } from '../../../lib';
|
3
4
|
import { EFlag } from '../../../types/api/enums';
|
4
|
-
import { ProblemFilterValues, selectProblemFilter } from '../settings/settings';
|
5
|
+
import { ProblemFilterValues, getSettingValue, selectProblemFilter } from '../settings/settings';
|
5
6
|
import { tenantsApi } from './tenants';
|
6
7
|
// ==== Filters ====
|
7
8
|
const filterTenantsByProblems = (tenants, problemFilter) => {
|
@@ -22,9 +23,14 @@ const filteredTenantsBySearch = (tenants, searchQuery) => {
|
|
22
23
|
const createGetTenantsInfoSelector = createSelector((clusterName) => clusterName, (clusterName) => tenantsApi.endpoints.getTenantsInfo.select({ clusterName }));
|
23
24
|
export const selectTenants = createSelector((state) => state, (_state, clusterName) => createGetTenantsInfoSelector(clusterName), (state, selectTenantsInfo) => { var _a; return (_a = selectTenantsInfo(state).data) !== null && _a !== void 0 ? _a : []; });
|
24
25
|
export const selectTenantsSearchValue = (state) => state.tenants.searchValue;
|
26
|
+
export const selectShowDomainDatabase = (state) => getSettingValue(state, SHOW_DOMAIN_DATABASE_KEY);
|
25
27
|
// ==== Complex selectors ====
|
26
|
-
export const selectFilteredTenants = createSelector([selectTenants, selectProblemFilter, selectTenantsSearchValue], (tenants, problemFilter, searchQuery) => {
|
28
|
+
export const selectFilteredTenants = createSelector([selectTenants, selectProblemFilter, selectTenantsSearchValue, selectShowDomainDatabase], (tenants, problemFilter, searchQuery, showDomainDatabase) => {
|
27
29
|
let result = filterTenantsByProblems(tenants, problemFilter);
|
28
30
|
result = filteredTenantsBySearch(result, searchQuery);
|
31
|
+
result =
|
32
|
+
!showDomainDatabase && result.length > 1
|
33
|
+
? result.filter((item) => item.Type !== 'Domain')
|
34
|
+
: result;
|
29
35
|
return result;
|
30
36
|
});
|
@@ -5,5 +5,5 @@ export default _default;
|
|
5
5
|
export declare const tenantsApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
6
6
|
getTenantsInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
7
7
|
clusterName?: string;
|
8
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", PreparedTenant[] | undefined, "api">;
|
9
|
-
}, "api", "All" | "PDiskData", 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", PreparedTenant[] | undefined, "api">;
|
9
|
+
}, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|