ydb-embedded-ui 6.15.0 → 6.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/components/ElapsedTime/ElapsedTime.js +2 -1
- package/dist/components/ElapsedTime/ElapsedTime.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +6 -0
- package/dist/components/EmptyState/EmptyState.js +6 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/EntitiesCount/EntitiesCount.js +3 -1
- package/dist/components/EntitiesCount/EntitiesCount.js.map +1 -1
- package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +11 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.js → EntityPageTitle/EntityPageTitle.js} +5 -5
- package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.scss → EntityPageTitle/EntityPageTitle.scss} +1 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +2 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +10 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +1 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +3 -0
- package/dist/components/PageMeta/PageMeta.d.ts +2 -1
- package/dist/components/PageMeta/PageMeta.js +9 -4
- package/dist/components/PageMeta/PageMeta.js.map +1 -1
- package/dist/components/PageMeta/PageMeta.scss +9 -6
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +5 -4
- package/dist/components/PaginatedTable/PaginatedTable.js +24 -116
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +2 -2
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +13 -5
- package/dist/components/PaginatedTable/TableChunk.js +51 -21
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableRow.js +1 -1
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +8 -1
- package/dist/components/Skeleton/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton/Skeleton.js +11 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Tablet/Tablet.js +2 -2
- package/dist/components/Tablet/Tablet.js.map +1 -1
- package/dist/components/TabletState/TabletState.d.ts +6 -0
- package/dist/components/TabletState/TabletState.js +7 -0
- package/dist/components/TabletState/TabletState.js.map +1 -0
- package/dist/containers/Cluster/Cluster.js +10 -10
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +14 -0
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +2 -2
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js.map +1 -1
- package/dist/containers/Nodes/Nodes.d.ts +2 -1
- package/dist/containers/Nodes/Nodes.js +2 -2
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesWrapper.d.ts +1 -0
- package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -1
- package/dist/containers/Nodes/PaginatedNodes.js +6 -18
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/getNodes.d.ts +3 -6
- package/dist/containers/Nodes/getNodes.js +19 -2
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +4 -5
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +0 -7
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +2 -2
- package/dist/containers/Storage/PaginatedStorage.js +3 -3
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +2 -2
- package/dist/containers/Storage/Storage.js +3 -3
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +2 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +5 -17
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js +15 -2
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +6 -18
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.d.ts +3 -5
- package/dist/containers/Storage/StorageNodes/getNodes.js +17 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.js +95 -52
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablet/Tablet.scss +4 -81
- package/dist/containers/Tablet/components/TabletControls/TabletControls.d.ts +6 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js +27 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -0
- package/dist/containers/Tablet/components/TabletControls/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +59 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +12 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/en.json +16 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +36 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +78 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +56 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/en.json +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.d.ts +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js +2 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js +29 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js.map +1 -0
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.d.ts +1 -1
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.js +7 -6
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -0
- package/dist/containers/Tablet/components/TabletTable/index.js.map +1 -0
- package/dist/containers/Tablet/i18n/en.json +5 -1
- package/dist/containers/Tablet/i18n/index.d.ts +1 -1
- package/dist/containers/Tablet/utils.d.ts +1 -0
- package/dist/containers/Tablet/utils.js +4 -0
- package/dist/containers/Tablet/utils.js.map +1 -0
- package/dist/containers/Tablets/Tablets.js +16 -10
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Acl/Acl.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +10 -9
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +13 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +21 -11
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -8
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +2 -5
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +0 -21
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.scss +0 -8
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +19 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/Query.js +2 -14
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -4
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +3 -3
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +8 -8
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +6 -6
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +4 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js +2 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -1
- package/dist/containers/Tenant/Tenant.js +5 -1
- package/dist/containers/Tenant/Tenant.js.map +1 -1
- package/dist/containers/Tenant/utils/queryTemplates.js +6 -5
- package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.js +5 -6
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +0 -4
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/routes.d.ts +1 -0
- package/dist/routes.js +3 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api.d.ts +13 -7
- package/dist/services/api.js +29 -7
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -2
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +4 -8
- package/dist/store/defaultStore.d.ts +2 -4
- 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/capabilities/capabilities.d.ts +6 -10
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- 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 +18 -4
- package/dist/store/reducers/executeQuery.js +50 -5
- 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 -2
- package/dist/store/reducers/header/types.d.ts +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -78
- 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 -6
- package/dist/store/reducers/index.js +0 -2
- package/dist/store/reducers/index.js.map +1 -1
- 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 -2
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodes/types.d.ts +11 -1
- package/dist/store/reducers/nodesList.d.ts +3 -4
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/overview/overview.js +1 -0
- package/dist/store/reducers/overview/overview.js.map +1 -1
- 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/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/storage/types.d.ts +15 -0
- package/dist/store/reducers/storage/types.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +14 -0
- package/dist/store/reducers/tableData.js +25 -0
- package/dist/store/reducers/tableData.js.map +1 -0
- package/dist/store/reducers/tablet.d.ts +19 -3
- package/dist/store/reducers/tablet.js +82 -13
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +15 -23
- package/dist/store/reducers/tablets.js +2 -20
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tabletsFilters.d.ts +1 -2
- 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 +27 -36
- package/dist/store/reducers/tenants/selectors.js +1 -1
- package/dist/store/reducers/tenants/selectors.js.map +1 -1
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -59
- 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 +0 -5
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/schema/shared.d.ts +1 -3
- package/dist/types/api/schema/shared.js.map +1 -1
- package/dist/types/api/schema/table.d.ts +2 -0
- package/dist/types/api/schema/table.js.map +1 -1
- package/dist/types/api/tablet.d.ts +22 -0
- package/dist/types/store/executeQuery.d.ts +5 -2
- package/dist/types/store/tablets.d.ts +1 -0
- package/dist/utils/constants.d.ts +1 -2
- package/dist/utils/constants.js +1 -2
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -0
- package/dist/utils/dataFormatters/dataFormatters.js +5 -0
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/developerUI/developerUI.d.ts +1 -1
- package/dist/utils/developerUI/developerUI.js +3 -2
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.js +3 -2
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/package.json +4 -3
- package/dist/components/DiskPageTitle/DiskPageTitle.d.ts +0 -10
- package/dist/components/DiskPageTitle/DiskPageTitle.js.map +0 -1
- package/dist/components/PaginatedTable/reducer.d.ts +0 -43
- package/dist/components/PaginatedTable/reducer.js +0 -104
- package/dist/components/PaginatedTable/reducer.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +0 -7
- package/dist/containers/Tablet/TabletControls/TabletControls.js +0 -29
- package/dist/containers/Tablet/TabletControls/TabletControls.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/index.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/TabletInfo.d.ts +0 -7
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js +0 -40
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/index.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/TabletTable.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/index.js.map +0 -1
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.js +0 -0
@@ -1,11 +1,10 @@
|
|
1
1
|
import singleClusterMode from './singleClusterMode';
|
2
2
|
export declare const rootReducer: {
|
3
|
-
api: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData", "api">, import("redux").UnknownAction>;
|
3
|
+
api: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api">, import("redux").UnknownAction>;
|
4
4
|
singleClusterMode: typeof singleClusterMode;
|
5
5
|
cluster: import("redux").Reducer<import("./cluster/types").ClusterState>;
|
6
6
|
tenant: import("redux").Reducer<import("./tenant/types").TenantState>;
|
7
7
|
tooltip: import("redux").Reducer<import("../../types/store/tooltip").ITooltipState, import("../../types/store/tooltip").ITooltipAction>;
|
8
|
-
tablets: import("redux").Reducer<import("../../types/store/tablets").TabletsState>;
|
9
8
|
schema: import("redux").Reducer<import("./schema/types").SchemaState, {
|
10
9
|
readonly type: "schema/SET_SHOW_PREVIEW";
|
11
10
|
readonly data: boolean;
|
@@ -28,12 +27,11 @@ export declare const rootReducer: {
|
|
28
27
|
clusters: import("redux").Reducer<import("./clusters/types").ClustersFilters>;
|
29
28
|
};
|
30
29
|
declare const combinedReducer: import("redux").Reducer<{
|
31
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData", "api">;
|
30
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api">;
|
32
31
|
singleClusterMode: boolean;
|
33
32
|
cluster: import("./cluster/types").ClusterState;
|
34
33
|
tenant: import("./tenant/types").TenantState;
|
35
34
|
tooltip: import("../../types/store/tooltip").ITooltipState;
|
36
|
-
tablets: import("../../types/store/tablets").TabletsState;
|
37
35
|
schema: import("./schema/types").SchemaState;
|
38
36
|
tenants: import("./tenants/types").TenantsState;
|
39
37
|
partitions: import("./partitions/types").PartitionsState;
|
@@ -59,12 +57,11 @@ declare const combinedReducer: import("redux").Reducer<{
|
|
59
57
|
} | {
|
60
58
|
readonly type: "DISABLE_FULLSCREEN_MODE";
|
61
59
|
} | import("redux").Action<string>, Partial<{
|
62
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData", "api"> | undefined;
|
60
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api"> | undefined;
|
63
61
|
singleClusterMode: boolean | undefined;
|
64
62
|
cluster: import("./cluster/types").ClusterState | undefined;
|
65
63
|
tenant: import("./tenant/types").TenantState | undefined;
|
66
64
|
tooltip: never;
|
67
|
-
tablets: import("../../types/store/tablets").TabletsState | undefined;
|
68
65
|
schema: never;
|
69
66
|
tenants: import("./tenants/types").TenantsState | undefined;
|
70
67
|
partitions: import("./partitions/types").PartitionsState | undefined;
|
@@ -14,7 +14,6 @@ import schema from './schema/schema';
|
|
14
14
|
import settings from './settings/settings';
|
15
15
|
import shardsWorkload from './shardsWorkload/shardsWorkload';
|
16
16
|
import singleClusterMode from './singleClusterMode';
|
17
|
-
import tablets from './tablets';
|
18
17
|
import tenant from './tenant/tenant';
|
19
18
|
import tenants from './tenants/tenants';
|
20
19
|
import tooltip from './tooltip';
|
@@ -24,7 +23,6 @@ export const rootReducer = {
|
|
24
23
|
cluster,
|
25
24
|
tenant,
|
26
25
|
tooltip,
|
27
|
-
tablets,
|
28
26
|
schema,
|
29
27
|
tenants,
|
30
28
|
partitions,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/reducers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,OAAO,MAAM,WAAW,CAAC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AO;IACP,MAAM;IACN,OAAO;IACP,UAAU;IACV,YAAY;IACZ,OAAO;IACP,QAAQ;IACR,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,MAAM;IACN,YAAY;IACZ,UAAU;IACV,QAAQ;CACX,CAAC;AAEF,MAAM,eAAe,GAAG,eAAe,CAAC;IACpC,GAAG,WAAW;CACjB,CAAC,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export declare const networkApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
2
|
-
getNetworkInfo: import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("../../../types/api/netInfo").TNetInfo | undefined, "api">;
|
3
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
2
|
+
getNetworkInfo: import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../../types/api/netInfo").TNetInfo | undefined, "api">;
|
3
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export declare const nodeApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
2
2
|
getNodeInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
nodeId: string;
|
4
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("./types").PreparedNode | undefined, "api">;
|
4
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").PreparedNode | undefined, "api">;
|
5
5
|
getNodeStructure: import("@reduxjs/toolkit/query").QueryDefinition<{
|
6
6
|
nodeId: string;
|
7
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("../../../types/api/storage").TStorageInfo | undefined, "api">;
|
8
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
7
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../../types/api/storage").TStorageInfo | undefined, "api">;
|
8
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import type { RootState } from '../../defaultStore';
|
2
2
|
import type { PreparedNodeStructure } from './types';
|
3
3
|
export declare const selectNodeStructure: ((state: {
|
4
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData", "api">;
|
4
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api">;
|
5
5
|
singleClusterMode: boolean;
|
6
6
|
cluster: import("../cluster/types").ClusterState;
|
7
7
|
tenant: import("../tenant/types").TenantState;
|
8
8
|
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
9
|
-
tablets: import("../../../types/store/tablets").TabletsState;
|
10
9
|
schema: import("../schema/types").SchemaState;
|
11
10
|
tenants: import("../tenants/types").TenantsState;
|
12
11
|
partitions: import("../partitions/types").PartitionsState;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ComputeApiRequestParams, NodesApiRequestParams } from './types';
|
2
2
|
export declare const nodesApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
3
|
-
getNodes: import("@reduxjs/toolkit/query").QueryDefinition<NodesApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("./types").NodesHandledResponse | undefined, "api">;
|
4
|
-
getComputeNodes: import("@reduxjs/toolkit/query").QueryDefinition<ComputeApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("./types").NodesHandledResponse | undefined, "api">;
|
5
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
3
|
+
getNodes: import("@reduxjs/toolkit/query").QueryDefinition<NodesApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").NodesHandledResponse | undefined, "api">;
|
4
|
+
getComputeNodes: import("@reduxjs/toolkit/query").QueryDefinition<ComputeApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").NodesHandledResponse | undefined, "api">;
|
5
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -3,7 +3,8 @@ import type { EVersion, TTabletStateInfo as TComputeTabletStateInfo } from '../.
|
|
3
3
|
import type { EFlag } from '../../../types/api/enums';
|
4
4
|
import type { TEndpoint, TPoolStats } from '../../../types/api/nodes';
|
5
5
|
import type { TTabletStateInfo as TFullTabletStateInfo } from '../../../types/api/tablet';
|
6
|
-
import type { NodesSortValue } from '../../../utils/nodes';
|
6
|
+
import type { NodesSortValue, NodesUptimeFilterValues } from '../../../utils/nodes';
|
7
|
+
import type { ProblemFilterValue } from '../settings/types';
|
7
8
|
import type { VisibleEntities } from '../storage/types';
|
8
9
|
export interface NodesPreparedEntity {
|
9
10
|
NodeId: number;
|
@@ -33,6 +34,13 @@ export interface NodesSortParams {
|
|
33
34
|
sortOrder: OrderType | undefined;
|
34
35
|
sortValue: NodesSortValue | undefined;
|
35
36
|
}
|
37
|
+
export interface NodesFilters {
|
38
|
+
searchValue: string;
|
39
|
+
problemFilter: ProblemFilterValue;
|
40
|
+
uptimeFilter: NodesUptimeFilterValues;
|
41
|
+
path?: string;
|
42
|
+
database?: string;
|
43
|
+
}
|
36
44
|
export interface NodesGeneralRequestParams extends Partial<NodesSortParams> {
|
37
45
|
filter?: string;
|
38
46
|
uptime?: number;
|
@@ -43,6 +51,8 @@ export interface NodesGeneralRequestParams extends Partial<NodesSortParams> {
|
|
43
51
|
export interface NodesApiRequestParams extends NodesGeneralRequestParams {
|
44
52
|
node_id?: number | string;
|
45
53
|
path?: string;
|
54
|
+
database?: string;
|
55
|
+
/** @deprecated use database instead */
|
46
56
|
tenant?: string;
|
47
57
|
type?: NodeType;
|
48
58
|
visibleEntities?: VisibleEntities;
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import type { RootState } from '../defaultStore';
|
2
2
|
export declare const nodesListApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
3
|
-
getNodesList: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("../../types/api/nodesList").TEvNodesInfo | undefined, "api">;
|
4
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
3
|
+
getNodesList: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../types/api/nodesList").TEvNodesInfo | undefined, "api">;
|
4
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
5
5
|
export declare const selectNodesMap: ((state: {
|
6
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData", "api">;
|
6
|
+
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api">;
|
7
7
|
singleClusterMode: boolean;
|
8
8
|
cluster: import("./cluster/types").ClusterState;
|
9
9
|
tenant: import("./tenant/types").TenantState;
|
10
10
|
tooltip: import("../../types/store/tooltip").ITooltipState;
|
11
|
-
tablets: import("../../types/store/tablets").TabletsState;
|
12
11
|
schema: import("./schema/types").SchemaState;
|
13
12
|
tenants: import("./tenants/types").TenantsState;
|
14
13
|
partitions: import("./partitions/types").PartitionsState;
|
@@ -2,8 +2,8 @@ export declare const overviewApi: import("@reduxjs/toolkit/query").Api<import("@
|
|
2
2
|
getOverview: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
paths: string[];
|
4
4
|
database: string;
|
5
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", {
|
5
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", {
|
6
6
|
data: import("../../../utils/typecheckers").Nullable<import("../../../types/api/schema").TEvDescribeSchemeResult>;
|
7
7
|
additionalData: import("../../../utils/typecheckers").Nullable<import("../../../types/api/schema").TEvDescribeSchemeResult>[];
|
8
8
|
} | undefined, "api">;
|
9
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
9
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"overview.js","sourceRoot":"","sources":["../../../../src/store/reducers/overview/overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC,eAAe,CAAC;IAC3C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC;YACrB,OAAO,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAsC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBAChF,IAAI,CAAC;oBACD,MAAM,CAAC,IAAI,EAAE,GAAG,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/C,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC,CAC1E,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC,EAAC,CAAC;gBAC1C,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;
|
1
|
+
{"version":3,"file":"overview.js","sourceRoot":"","sources":["../../../../src/store/reducers/overview/overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC,eAAe,CAAC;IAC3C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC;YACrB,OAAO,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAsC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBAChF,IAAI,CAAC;oBACD,MAAM,CAAC,IAAI,EAAE,GAAG,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/C,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC,CAC1E,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC,EAAC,CAAC;gBAC1C,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;CACL,CAAC,CAAC"}
|
@@ -7,5 +7,5 @@ export declare const partitionsApi: import("@reduxjs/toolkit/query").Api<import(
|
|
7
7
|
path: string;
|
8
8
|
database: string;
|
9
9
|
consumerName?: string;
|
10
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("./types").PreparedPartitionData[] | undefined, "api">;
|
11
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
10
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").PreparedPartitionData[] | undefined, "api">;
|
11
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -3,7 +3,7 @@ interface PDiskParams {
|
|
3
3
|
pDiskId: number | string;
|
4
4
|
}
|
5
5
|
export declare const pDiskApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
6
|
-
getPdiskInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("./types").PDiskData | undefined, "api">;
|
7
|
-
getStorageInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("../storage/types").PreparedStorageGroup[] | undefined, "api">;
|
8
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
6
|
+
getPdiskInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").PDiskData | undefined, "api">;
|
7
|
+
getStorageInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../storage/types").PreparedStorageGroup[] | undefined, "api">;
|
8
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
9
9
|
export {};
|
@@ -5,6 +5,6 @@ interface SendQueryParams {
|
|
5
5
|
action?: ExecuteActions;
|
6
6
|
}
|
7
7
|
export declare const previewApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
8
|
-
sendQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("../../types/store/query").IQueryResult | undefined, "api">;
|
9
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
8
|
+
sendQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../types/store/query").IQueryResult | undefined, "api">;
|
9
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
10
10
|
export {};
|
@@ -17,16 +17,16 @@ export declare const schemaApi: import("@reduxjs/toolkit/query").Api<import("@re
|
|
17
17
|
createDirectory: import("@reduxjs/toolkit/query").MutationDefinition<{
|
18
18
|
database: string;
|
19
19
|
path: string;
|
20
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", unknown, "api">;
|
20
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", unknown, "api">;
|
21
21
|
getSchema: import("@reduxjs/toolkit/query").QueryDefinition<{
|
22
22
|
path: string;
|
23
23
|
database: string;
|
24
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", {
|
24
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", {
|
25
25
|
[path: string]: TEvDescribeSchemeResult & {
|
26
26
|
partial?: boolean;
|
27
27
|
};
|
28
28
|
}, "api">;
|
29
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
29
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
30
30
|
export declare const selectSchemaMergedChildrenPaths: ((state: any, path: any, _type: any, database: string) => string[] | undefined) & {
|
31
31
|
clearCache: () => void;
|
32
32
|
resultsCount: () => number;
|
@@ -2,10 +2,10 @@ export declare const schemaAclApi: import("@reduxjs/toolkit/query").Api<import("
|
|
2
2
|
getSchemaAcl: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
path: string;
|
4
4
|
database: string;
|
5
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", {
|
5
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", {
|
6
6
|
acl: import("../../../types/api/acl").TACE[] | undefined;
|
7
7
|
effectiveAcl: import("../../../types/api/acl").TACE[] | undefined;
|
8
8
|
owner: string | undefined;
|
9
9
|
interruptInheritance: boolean | undefined;
|
10
10
|
} | undefined, "api">;
|
11
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
11
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", 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" | "UserData" | "PreviewData", import("../../../types/store/query").IQueryResult | undefined, "api">;
|
17
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", 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" | "PreviewData" | "Tablet", import("../../../types/store/query").IQueryResult | undefined, "api">;
|
17
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", 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" | "UserData" | "PreviewData", 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" | "PreviewData", import("./types").PreparedStorageResponse | undefined, "api">;
|
6
|
-
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData", 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" | "PreviewData" | "Tablet", 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" | "PreviewData" | "Tablet", import("./types").PreparedStorageResponse | undefined, "api">;
|
6
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -3,6 +3,7 @@ import { z } from 'zod';
|
|
3
3
|
import type { TSystemStateInfo } from '../../../types/api/nodes';
|
4
4
|
import type { EVersion, TStorageGroupInfo } from '../../../types/api/storage';
|
5
5
|
import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
|
6
|
+
import type { NodesUptimeFilterValues } from '../../../utils/nodes';
|
6
7
|
import type { StorageSortValue } from '../../../utils/storage';
|
7
8
|
export declare const visibleEntitiesSchema: z.ZodCatch<z.ZodNativeEnum<{
|
8
9
|
readonly all: "all";
|
@@ -15,6 +16,12 @@ export declare const storageTypeSchema: z.ZodCatch<z.ZodNativeEnum<{
|
|
15
16
|
readonly nodes: "nodes";
|
16
17
|
}>>;
|
17
18
|
export type StorageType = z.infer<typeof storageTypeSchema>;
|
19
|
+
export interface PreparedStorageNodeFilters {
|
20
|
+
searchValue: string;
|
21
|
+
nodesUptimeFilter: NodesUptimeFilterValues;
|
22
|
+
visibleEntities: VisibleEntities;
|
23
|
+
database?: string;
|
24
|
+
}
|
18
25
|
export interface PreparedStorageNode extends TSystemStateInfo {
|
19
26
|
NodeId: number;
|
20
27
|
PDisks?: PreparedPDisk[];
|
@@ -24,6 +31,12 @@ export interface PreparedStorageNode extends TSystemStateInfo {
|
|
24
31
|
Missing: number;
|
25
32
|
Uptime: string;
|
26
33
|
}
|
34
|
+
export interface PreparedStorageGroupFilters {
|
35
|
+
searchValue: string;
|
36
|
+
visibleEntities: VisibleEntities;
|
37
|
+
database?: string;
|
38
|
+
nodeId?: string;
|
39
|
+
}
|
27
40
|
export interface PreparedStorageGroup extends TStorageGroupInfo {
|
28
41
|
PoolName: string | undefined;
|
29
42
|
Usage: number;
|
@@ -50,7 +63,9 @@ export interface StorageSortAndFilterParams extends Partial<StorageSortParams> {
|
|
50
63
|
limit?: number;
|
51
64
|
}
|
52
65
|
export interface StorageApiRequestParams extends StorageSortAndFilterParams {
|
66
|
+
/** @deprecated use database instead */
|
53
67
|
tenant?: string;
|
68
|
+
database?: string;
|
54
69
|
nodeId?: string | number;
|
55
70
|
poolName?: string;
|
56
71
|
groupId?: string | number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAQtB,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAE5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;AAEhG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { BaseQueryFn } from '@reduxjs/toolkit/query';
|
2
|
+
import type { FetchData, PaginatedTableData, SortParams } from '../../components/PaginatedTable';
|
3
|
+
interface PaginatedTableParams<T, F> {
|
4
|
+
offset: number;
|
5
|
+
fetchData: FetchData<T, F>;
|
6
|
+
filters: F;
|
7
|
+
limit: number;
|
8
|
+
sortParams?: SortParams;
|
9
|
+
tableName: string;
|
10
|
+
}
|
11
|
+
export declare const tableDataApi: import("@reduxjs/toolkit/query").Api<BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
12
|
+
fetchTableChunk: import("@reduxjs/toolkit/query").QueryDefinition<PaginatedTableParams<unknown, unknown>, BaseQueryFn, string, PaginatedTableData<unknown>, string>;
|
13
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
14
|
+
export {};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { api } from './api';
|
2
|
+
function endpoints(build) {
|
3
|
+
return {
|
4
|
+
fetchTableChunk: build.query({
|
5
|
+
queryFn: async ({ offset, limit, sortParams, filters, fetchData }, { signal }) => {
|
6
|
+
try {
|
7
|
+
const response = await fetchData({
|
8
|
+
limit,
|
9
|
+
offset,
|
10
|
+
filters,
|
11
|
+
sortParams,
|
12
|
+
signal,
|
13
|
+
});
|
14
|
+
return { data: response };
|
15
|
+
}
|
16
|
+
catch (error) {
|
17
|
+
return { error: error };
|
18
|
+
}
|
19
|
+
},
|
20
|
+
providesTags: ['All'],
|
21
|
+
}),
|
22
|
+
};
|
23
|
+
}
|
24
|
+
export const tableDataApi = api.injectEndpoints({ endpoints });
|
25
|
+
//# sourceMappingURL=tableData.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tableData.js","sourceRoot":"","sources":["../../../src/store/reducers/tableData.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAW1B,SAAS,SAAS,CAAO,KAAmD;IACxE,OAAO;QACH,eAAe,EAAE,KAAK,CAAC,KAAK,CAAoD;YAC5E,OAAO,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACzE,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC;wBAC7B,KAAK;wBACL,MAAM;wBACN,OAAO;wBACP,UAAU;wBACV,MAAM;qBACT,CAAC,CAAC;oBACH,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC;gBAC5B,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC;gBAC1B,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;AACN,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,eAAe,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC"}
|
@@ -3,12 +3,28 @@ 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
|
-
|
6
|
+
database?: string;
|
7
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", {
|
7
8
|
id: string | undefined;
|
8
9
|
data: import("../../types/api/tablet").TTabletStateInfo;
|
9
10
|
history: ITabletPreparedHistoryItem[];
|
10
11
|
} | undefined, "api">;
|
11
12
|
getTabletDescribe: import("@reduxjs/toolkit/query").QueryDefinition<{
|
12
13
|
tenantId: TDomainKey;
|
13
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", string | undefined, "api">;
|
14
|
-
|
14
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", string | undefined, "api">;
|
15
|
+
getAdvancedTableInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
|
16
|
+
id: string;
|
17
|
+
hiveId: string;
|
18
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../types/api/tablet").TTabletHiveResponse | null | undefined, "api">;
|
19
|
+
killTablet: import("@reduxjs/toolkit/query").MutationDefinition<{
|
20
|
+
id: string;
|
21
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", string | undefined, "api">;
|
22
|
+
stopTablet: import("@reduxjs/toolkit/query").MutationDefinition<{
|
23
|
+
id: string;
|
24
|
+
hiveId: string;
|
25
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", string | undefined, "api">;
|
26
|
+
resumeTablet: import("@reduxjs/toolkit/query").MutationDefinition<{
|
27
|
+
id: string;
|
28
|
+
hiveId: string;
|
29
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", string | undefined, "api">;
|
30
|
+
}, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -3,11 +3,11 @@ import { api } from './api';
|
|
3
3
|
export const tabletApi = api.injectEndpoints({
|
4
4
|
endpoints: (build) => ({
|
5
5
|
getTablet: build.query({
|
6
|
-
queryFn: async ({ id }, { signal }) => {
|
6
|
+
queryFn: async ({ id, database }, { signal }) => {
|
7
7
|
try {
|
8
8
|
const [tabletResponseData, historyResponseData, nodesList] = await Promise.all([
|
9
|
-
window.api.getTablet({ id }, { signal }),
|
10
|
-
window.api.getTabletHistory({ id }, { signal }),
|
9
|
+
window.api.getTablet({ id, database }, { signal }),
|
10
|
+
window.api.getTabletHistory({ id, database }, { signal }),
|
11
11
|
window.api.getNodesList({ signal }),
|
12
12
|
]);
|
13
13
|
const nodesMap = prepareNodesMap(nodesList);
|
@@ -18,15 +18,17 @@ export const tabletApi = api.injectEndpoints({
|
|
18
18
|
const leaderTablet = tabletInfo.find((t) => t.Leader) || tabletInfo[0];
|
19
19
|
const { ChangeTime, Generation, State, Leader, FollowerId } = leaderTablet;
|
20
20
|
const fqdn = nodesMap && nodeId ? nodesMap.get(Number(nodeId)) : undefined;
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
21
|
+
if (State !== 'Dead') {
|
22
|
+
list.push({
|
23
|
+
nodeId,
|
24
|
+
generation: Generation,
|
25
|
+
changeTime: ChangeTime,
|
26
|
+
state: State,
|
27
|
+
leader: Leader,
|
28
|
+
followerId: FollowerId,
|
29
|
+
fqdn,
|
30
|
+
});
|
31
|
+
}
|
30
32
|
}
|
31
33
|
return list;
|
32
34
|
}, []);
|
@@ -39,7 +41,9 @@ export const tabletApi = api.injectEndpoints({
|
|
39
41
|
return { error };
|
40
42
|
}
|
41
43
|
},
|
42
|
-
providesTags:
|
44
|
+
providesTags: (_result, _error, arg) => {
|
45
|
+
return ['All', { type: 'Tablet', id: arg.id }];
|
46
|
+
},
|
43
47
|
}),
|
44
48
|
getTabletDescribe: build.query({
|
45
49
|
queryFn: async ({ tenantId }, { signal }) => {
|
@@ -55,6 +59,71 @@ export const tabletApi = api.injectEndpoints({
|
|
55
59
|
},
|
56
60
|
providesTags: ['All'],
|
57
61
|
}),
|
62
|
+
getAdvancedTableInfo: build.query({
|
63
|
+
queryFn: async ({ id, hiveId }, { signal }) => {
|
64
|
+
try {
|
65
|
+
const tabletResponseData = await window.api.getTabletFromHive({ id, hiveId }, { signal });
|
66
|
+
return { data: tabletResponseData };
|
67
|
+
}
|
68
|
+
catch (error) {
|
69
|
+
return { error };
|
70
|
+
}
|
71
|
+
},
|
72
|
+
providesTags: (_result, _error, arg) => {
|
73
|
+
return ['All', { type: 'Tablet', id: arg.id }];
|
74
|
+
},
|
75
|
+
}),
|
76
|
+
killTablet: build.mutation({
|
77
|
+
queryFn: async ({ id }) => {
|
78
|
+
try {
|
79
|
+
const data = await window.api.killTablet(id);
|
80
|
+
return { data };
|
81
|
+
}
|
82
|
+
catch (error) {
|
83
|
+
return { error };
|
84
|
+
}
|
85
|
+
},
|
86
|
+
invalidatesTags: (_result, _error, arg) => {
|
87
|
+
return [
|
88
|
+
{ type: 'Tablet', id: arg.id },
|
89
|
+
{ type: 'Tablet', id: 'LIST' },
|
90
|
+
];
|
91
|
+
},
|
92
|
+
}),
|
93
|
+
stopTablet: build.mutation({
|
94
|
+
queryFn: async ({ id, hiveId }) => {
|
95
|
+
try {
|
96
|
+
const data = await window.api.stopTablet(id, hiveId);
|
97
|
+
return { data };
|
98
|
+
}
|
99
|
+
catch (error) {
|
100
|
+
return { error };
|
101
|
+
}
|
102
|
+
},
|
103
|
+
invalidatesTags: (_result, _error, arg) => {
|
104
|
+
return [
|
105
|
+
{ type: 'Tablet', id: arg.id },
|
106
|
+
{ type: 'Tablet', id: 'LIST' },
|
107
|
+
];
|
108
|
+
},
|
109
|
+
}),
|
110
|
+
resumeTablet: build.mutation({
|
111
|
+
queryFn: async ({ id, hiveId }) => {
|
112
|
+
try {
|
113
|
+
const data = await window.api.resumeTablet(id, hiveId);
|
114
|
+
return { data };
|
115
|
+
}
|
116
|
+
catch (error) {
|
117
|
+
return { error };
|
118
|
+
}
|
119
|
+
},
|
120
|
+
invalidatesTags: (_result, _error, arg) => {
|
121
|
+
return [
|
122
|
+
{ type: 'Tablet', id: arg.id },
|
123
|
+
{ type: 'Tablet', id: 'LIST' },
|
124
|
+
];
|
125
|
+
},
|
126
|
+
}),
|
58
127
|
}),
|
59
128
|
overrideExisting: 'throw',
|
60
129
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tablet.js","sourceRoot":"","sources":["../../../src/store/reducers/tablet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC,eAAe,CAAC;IACzC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;YACnB,OAAO,EAAE,KAAK,EAAE,EAAC,EAAE,
|
1
|
+
{"version":3,"file":"tablet.js","sourceRoot":"","sources":["../../../src/store/reducers/tablet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC,eAAe,CAAC;IACzC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;YACnB,OAAO,EAAE,KAAK,EAAE,EAAC,EAAE,EAAE,QAAQ,EAAkC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACzE,IAAI,CAAC;oBACD,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;wBAC3E,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;wBAC9C,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;wBACrD,MAAM,CAA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