ydb-embedded-ui 6.21.0 → 6.23.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/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
- package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
- package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
- package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
- package/dist/components/PaginatedTable/TableChunk.js +5 -2
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
- package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
- package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
- package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
- package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
- package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
- package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
- package/dist/components/VDisk/VDisk.d.ts +2 -3
- package/dist/components/VDisk/VDisk.js +2 -2
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
- package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/containers/App/App.scss +1 -1
- package/dist/containers/Cluster/Cluster.js +1 -1
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +2 -3
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/Clusters.js +3 -3
- package/dist/containers/Clusters/Clusters.js.map +1 -1
- package/dist/containers/Clusters/columns.js +2 -2
- package/dist/containers/Clusters/columns.js.map +1 -1
- package/dist/containers/Clusters/constants.d.ts +4 -4
- package/dist/containers/Clusters/constants.js +3 -3
- package/dist/containers/Clusters/constants.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +2 -3
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Node/Node.js +14 -4
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.js +4 -5
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +10 -11
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.js +10 -11
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
- package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +37 -39
- package/dist/containers/Nodes/columns/columns.js.map +1 -0
- package/dist/containers/Nodes/columns/constants.d.ts +41 -0
- package/dist/containers/Nodes/columns/constants.js +83 -0
- package/dist/containers/Nodes/columns/constants.js.map +1 -0
- package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
- package/dist/containers/Nodes/columns/hooks.js +11 -0
- package/dist/containers/Nodes/columns/hooks.js.map +1 -0
- package/dist/containers/Nodes/columns/i18n/en.json +17 -0
- package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Nodes/columns/i18n/index.js +5 -0
- package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Nodes/columns/types.d.ts +9 -0
- package/dist/containers/Nodes/columns/types.js +2 -0
- package/dist/containers/Nodes/columns/types.js.map +1 -0
- package/dist/containers/Nodes/getNodes.d.ts +3 -2
- package/dist/containers/Nodes/getNodes.js +6 -3
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +12 -10
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
- package/dist/containers/PDiskPage/i18n/en.json +1 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
- package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
- package/dist/containers/Storage/Disks/Disks.js +6 -7
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +5 -4
- package/dist/containers/Storage/PDisk/PDisk.js +3 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +5 -6
- package/dist/containers/Storage/PaginatedStorage.js +9 -54
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
- package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
- package/dist/containers/Storage/Storage.d.ts +4 -4
- package/dist/containers/Storage/Storage.js +46 -67
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/Storage.scss +4 -0
- package/dist/containers/Storage/StorageControls/StorageControls.d.ts +6 -16
- package/dist/containers/Storage/StorageControls/StorageControls.js +18 -9
- package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
- package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +24 -8
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +14 -0
- package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +5 -6
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
- package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +66 -89
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +54 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js +120 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +7 -3
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +21 -16
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +21 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +5 -7
- package/dist/containers/Storage/StorageGroups/getGroups.js +10 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
- package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +24 -9
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +16 -0
- package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +9 -9
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +24 -0
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
- package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +20 -31
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +34 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js +74 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +11 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js +13 -9
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
- package/dist/containers/Storage/StorageWrapper.js.map +1 -1
- package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
- package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
- package/dist/containers/Storage/i18n/en.json +4 -1
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/i18n/index.js +1 -2
- package/dist/containers/Storage/i18n/index.js.map +1 -1
- package/dist/containers/Storage/shared.d.ts +2 -0
- package/dist/containers/Storage/shared.js +9 -0
- package/dist/containers/Storage/shared.js.map +1 -1
- package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
- package/dist/containers/Storage/useStorageQueryParams.js +64 -0
- package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
- package/dist/containers/Storage/utils/index.d.ts +6 -2
- package/dist/containers/Storage/utils/index.js +17 -11
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
- package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -3
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +4 -4
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +71 -62
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +14 -12
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +3 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Tenant.js +7 -3
- package/dist/containers/Tenant/Tenant.js.map +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
- package/dist/containers/Tenant/utils/schema.js +1 -0
- package/dist/containers/Tenant/utils/schema.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +8 -6
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
- 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.d.ts +0 -3
- package/dist/containers/VDiskPage/VDiskPage.js +9 -33
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
- package/dist/containers/VDiskPage/i18n/en.json +1 -1
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/services/api.d.ts +16 -5
- package/dist/services/api.js +53 -14
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +2 -2
- package/dist/services/settings.js +2 -3
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
- package/dist/store/reducers/capabilities/capabilities.js +6 -1
- package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +6 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/executeQuery.js +3 -0
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +3 -24
- package/dist/store/reducers/nodesList.d.ts +5 -5
- package/dist/store/reducers/nodesList.js +2 -2
- package/dist/store/reducers/nodesList.js.map +1 -1
- package/dist/store/reducers/overview/overview.js +5 -1
- package/dist/store/reducers/overview/overview.js.map +1 -1
- package/dist/store/reducers/pdisk/pdisk.js +29 -2
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.js +1 -1
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
- package/dist/store/reducers/storage/selectors.d.ts +2 -3
- package/dist/store/reducers/storage/selectors.js +1 -27
- package/dist/store/reducers/storage/selectors.js.map +1 -1
- package/dist/store/reducers/storage/storage.d.ts +4 -4
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +19 -10
- package/dist/store/reducers/storage/utils.js +27 -3
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tablet.js +5 -3
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +3 -3
- package/dist/store/reducers/tablets.js +4 -4
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tooltip.d.ts +1 -1
- package/dist/styles/mixins.scss +3 -3
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/common.d.ts +1 -0
- package/dist/types/api/nodes.d.ts +34 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/query.d.ts +1 -0
- package/dist/types/api/storage.d.ts +29 -8
- package/dist/types/store/nodesList.d.ts +1 -1
- package/dist/types/store/query.d.ts +5 -8
- package/dist/utils/constants.d.ts +0 -8
- package/dist/utils/constants.js +0 -9
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/filters.d.ts +2 -1
- package/dist/utils/filters.js +1 -4
- package/dist/utils/filters.js.map +1 -1
- package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
- package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
- package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
- package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
- package/dist/utils/hooks/useSelectedColumns.js +40 -0
- package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
- package/dist/utils/nodes.d.ts +5 -24
- package/dist/utils/nodes.js +20 -23
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +129 -0
- package/dist/utils/query.js +33 -1
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/storage.d.ts +1 -1
- package/dist/utils/storage.js +2 -0
- package/dist/utils/storage.js.map +1 -1
- package/dist/utils/utils.js +2 -1
- package/dist/utils/utils.js.map +1 -1
- package/package.json +2 -1
- package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
- package/dist/containers/Clusters/useSelectedColumns.js +0 -26
- package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
- package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
- package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
- package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -14
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +0 -13
- package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +0 -19
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
- package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
- package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
- package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
- package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
- package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
- package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
- package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
- package/dist/containers/Storage/UsageFilter/index.js +0 -2
- package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
- package/dist/containers/Storage/i18n/ru.json +0 -6
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
- package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
- package/dist/containers/VDiskPage/utils.d.ts +0 -2
- package/dist/containers/VDiskPage/utils.js +0 -7
- package/dist/containers/VDiskPage/utils.js.map +0 -1
- package/dist/store/reducers/describe.d.ts +0 -7
- package/dist/store/reducers/describe.js +0 -25
- package/dist/store/reducers/describe.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
- /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -1,10 +1,12 @@
|
|
1
|
-
import type {
|
1
|
+
import type { z } from 'zod';
|
2
|
+
import type { QUERY_ACTIONS, QUERY_MODES, QUERY_SYNTAX, STATISTICS_MODES, TRACING_LEVELS, TRANSACTION_MODES, querySettingsValidationSchema } from '../../utils/query';
|
2
3
|
import type { IResponseError, NetworkError } from '../api/error';
|
3
4
|
import type { ColumnType, KeyValueRow, ErrorResponse as QueryErrorResponseData, QueryPlan, ScriptPlan, TKqpStatsQuery } from '../api/query';
|
4
5
|
import type { ValueOf } from '../common';
|
5
6
|
export interface ParsedResultSet {
|
6
7
|
columns?: ColumnType[];
|
7
8
|
result?: KeyValueRow[];
|
9
|
+
truncated?: boolean;
|
8
10
|
}
|
9
11
|
export interface IQueryResult {
|
10
12
|
resultSets?: ParsedResultSet[];
|
@@ -14,18 +16,13 @@ export interface IQueryResult {
|
|
14
16
|
plan?: ScriptPlan | QueryPlan;
|
15
17
|
ast?: string;
|
16
18
|
traceId?: string;
|
19
|
+
truncated?: boolean;
|
17
20
|
}
|
18
21
|
export interface QueryRequestParams {
|
19
22
|
database: string;
|
20
23
|
query: string;
|
21
24
|
}
|
22
|
-
export
|
23
|
-
queryMode: QueryMode;
|
24
|
-
transactionMode: TransactionMode;
|
25
|
-
timeout?: string;
|
26
|
-
statisticsMode?: StatisticsMode;
|
27
|
-
tracingLevel?: TracingLevel;
|
28
|
-
}
|
25
|
+
export type QuerySettings = z.infer<typeof querySettingsValidationSchema>;
|
29
26
|
export type QueryErrorResponse = IResponseError<QueryErrorResponseData>;
|
30
27
|
export type QueryError = NetworkError | QueryErrorResponse;
|
31
28
|
export type QueryAction = ValueOf<typeof QUERY_ACTIONS>;
|
@@ -95,13 +95,6 @@ export declare const TENANT_OVERVIEW_TABLES_SETTINGS: {
|
|
95
95
|
readonly stripedRows?: boolean;
|
96
96
|
readonly headerMod?: "multiline" | "pre";
|
97
97
|
};
|
98
|
-
export declare const DEFAULT_QUERY_SETTINGS: {
|
99
|
-
queryMode: "query";
|
100
|
-
transactionMode: "implicit";
|
101
|
-
timeout: string;
|
102
|
-
statisticsMode: "none";
|
103
|
-
tracingLevel: "detailed";
|
104
|
-
};
|
105
98
|
export declare const QUERY_EXECUTION_SETTINGS_KEY = "queryExecutionSettings";
|
106
99
|
export declare const LAST_QUERY_EXECUTION_SETTINGS_KEY = "last_query_execution_settings";
|
107
100
|
export declare const QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY = "querySettingsBannerLastClosed";
|
@@ -116,4 +109,3 @@ export declare const ENABLE_AUTOCOMPLETE = "enableAutocomplete";
|
|
116
109
|
export declare const AUTOCOMPLETE_ON_ENTER = "autocompleteOnEnter";
|
117
110
|
export declare const IS_HOTKEYS_HELP_HIDDEN_KEY = "isHotKeysHelpHidden";
|
118
111
|
export declare const DEV_ENABLE_TRACING_FOR_ALL_REQUESTS = "enable_tracing_for_all_requests";
|
119
|
-
export declare const USE_ADVANCED_STORAGE_KEY = "use_advanced_storage";
|
package/dist/utils/constants.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import DataTable from '@gravity-ui/react-data-table';
|
2
2
|
import { EType } from '../types/api/tablet';
|
3
|
-
import { QUERY_MODES, STATISTICS_MODES, TRACING_LEVELS, TRANSACTION_MODES } from './query';
|
4
3
|
const SECOND = 1000;
|
5
4
|
export const AUTO_RELOAD_INTERVAL = 10 * SECOND;
|
6
5
|
export const DEFAULT_POLLING_INTERVAL = 30 * SECOND;
|
@@ -96,13 +95,6 @@ export const TENANT_OVERVIEW_TABLES_SETTINGS = {
|
|
96
95
|
stickyHead: 'fixed',
|
97
96
|
dynamicRender: false,
|
98
97
|
};
|
99
|
-
export const DEFAULT_QUERY_SETTINGS = {
|
100
|
-
queryMode: QUERY_MODES.query,
|
101
|
-
transactionMode: TRANSACTION_MODES.implicit,
|
102
|
-
timeout: '60',
|
103
|
-
statisticsMode: STATISTICS_MODES.none,
|
104
|
-
tracingLevel: TRACING_LEVELS.detailed,
|
105
|
-
};
|
106
98
|
export const QUERY_EXECUTION_SETTINGS_KEY = 'queryExecutionSettings';
|
107
99
|
export const LAST_QUERY_EXECUTION_SETTINGS_KEY = 'last_query_execution_settings';
|
108
100
|
export const QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY = 'querySettingsBannerLastClosed';
|
@@ -122,5 +114,4 @@ export const ENABLE_AUTOCOMPLETE = 'enableAutocomplete';
|
|
122
114
|
export const AUTOCOMPLETE_ON_ENTER = 'autocompleteOnEnter';
|
123
115
|
export const IS_HOTKEYS_HELP_HIDDEN_KEY = 'isHotKeysHelpHidden';
|
124
116
|
export const DEV_ENABLE_TRACING_FOR_ALL_REQUESTS = 'enable_tracing_for_all_requests';
|
125
|
-
export const USE_ADVANCED_STORAGE_KEY = 'use_advanced_storage';
|
126
117
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAC,KAAK,EAAC,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAC,KAAK,EAAC,MAAM,qBAAqB,CAAC;AAE1C,MAAM,MAAM,GAAG,IAAI,CAAC;AAEpB,MAAM,CAAC,MAAM,oBAAoB,GAA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BAAsB;IACzB,UAAU,EAAE,OAAO;IACnB,aAAa,EAAE,KAAK;CACd,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG,wBAAwB,CAAC;AACrE,MAAM,CAAC,MAAM,iCAAiC,GAAG,+BAA+B,CAAC;AACjF,MAAM,CAAC,MAAM,qCAAqC,GAAG,+BAA+B,CAAC;AAErF,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAEnE,MAAM,CAAC,MAAM,6BAA6B,GAAG,yBAAyB,CAAC;AAEvE,sDAAsD;AACtD,MAAM,CAAC,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAElE,kCAAkC;AAClC,2CAA2C;AAC3C,MAAM,CAAC,MAAM,wBAAwB,GAAG,2BAA2B,CAAC;AAEpE,0CAA0C;AAC1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,kDAAkD;AAClD,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,4BAA4B,CAAC;AAEhF,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAE3D,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,iCAAiC,CAAC"}
|
package/dist/utils/filters.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
1
|
import type { OrderType } from '@gravity-ui/react-data-table';
|
2
|
-
|
2
|
+
import type { BackendSortParam } from '../types/api/common';
|
3
|
+
export declare const prepareSortValue: <T extends string>(sortValue: T, sortOrder?: OrderType) => BackendSortParam<T>;
|
3
4
|
export declare const prepareSearchValue: (searchValue?: string) => RegExp;
|
package/dist/utils/filters.js
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
import { DESCENDING } from '@gravity-ui/react-data-table/build/esm/lib/constants';
|
2
2
|
import escapeRegExp from 'lodash/escapeRegExp';
|
3
3
|
export const prepareSortValue = (sortValue, sortOrder = DESCENDING) => {
|
4
|
-
if (!sortValue) {
|
5
|
-
return '';
|
6
|
-
}
|
7
4
|
if (sortOrder === DESCENDING) {
|
8
|
-
return
|
5
|
+
return `-${sortValue}`;
|
9
6
|
}
|
10
7
|
return sortValue;
|
11
8
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/utils/filters.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,sDAAsD,CAAC;AAChF,OAAO,YAAY,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/utils/filters.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,sDAAsD,CAAC;AAChF,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAI/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,SAAY,EACZ,YAAuB,UAAU,EACd,EAAE;IACrB,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;QAC3B,OAAO,IAAI,SAAS,EAAE,CAAC;IAC3B,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,WAAW,GAAG,EAAE,EAAE,EAAE;IACnD,OAAO,IAAI,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC,CAAC;AACtD,CAAC,CAAC"}
|
@@ -3,8 +3,8 @@ export declare const useChangedQuerySettings: () => {
|
|
3
3
|
isIndicatorShown: boolean | 0 | undefined;
|
4
4
|
closeBanner: () => void;
|
5
5
|
resetBanner: () => void;
|
6
|
-
changedCurrentSettings: (
|
6
|
+
changedCurrentSettings: (("queryMode" | "transactionMode" | "statisticsMode" | "tracingLevel") | ("timeout" | "limitRows"))[];
|
7
7
|
changedCurrentSettingsDescriptions: Record<string, string>;
|
8
|
-
changedLastExucutionSettings: (
|
8
|
+
changedLastExucutionSettings: (("queryMode" | "transactionMode" | "statisticsMode" | "tracingLevel") | ("timeout" | "limitRows"))[];
|
9
9
|
changedLastExecutionSettingsDescriptions: Record<string, string>;
|
10
10
|
};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import getChangedQueryExecutionSettings from '../../containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings';
|
2
2
|
import getChangedQueryExecutionSettingsDescription from '../../containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription';
|
3
|
-
import {
|
3
|
+
import { QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY, WEEK_IN_SECONDS } from '../constants';
|
4
|
+
import { DEFAULT_QUERY_SETTINGS } from '../query';
|
4
5
|
import { useLastQueryExecutionSettings } from './useLastQueryExecutionSettings';
|
5
6
|
import { useQueryExecutionSettings } from './useQueryExecutionSettings';
|
6
7
|
import { useSetting } from './useSetting';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useChangedQuerySettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useChangedQuerySettings.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,MAAM,0FAA0F,CAAC;AACxI,OAAO,2CAA2C,MAAM,qGAAqG,CAAC;AAC9J,OAAO,
|
1
|
+
{"version":3,"file":"useChangedQuerySettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useChangedQuerySettings.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,MAAM,0FAA0F,CAAC;AACxI,OAAO,2CAA2C,MAAM,qGAAqG,CAAC;AAC9J,OAAO,EAAC,qCAAqC,EAAE,eAAe,EAAC,MAAM,cAAc,CAAC;AACpF,OAAO,EAAC,sBAAsB,EAAC,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,yBAAyB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AAG,EAAE,CAAC,4BAA4B,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAEnE,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC;IAElE,OAAO;QACH,aAAa;QACb,gBAAgB;QAChB,WAAW;QACX,WAAW;QAEX,sBAAsB;QACtB,kCAAkC;QAElC,4BAA4B;QAC5B,wCAAwC;KAC3C,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,2 +1,15 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const useLastQueryExecutionSettings: () => readonly [{
|
2
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
3
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
4
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
5
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
6
|
+
timeout?: number | undefined;
|
7
|
+
limitRows?: number | undefined;
|
8
|
+
} | undefined, (value: {
|
9
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
10
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
11
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
12
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
13
|
+
timeout?: number | undefined;
|
14
|
+
limitRows?: number | undefined;
|
15
|
+
} | undefined) => void];
|
@@ -1,16 +1,15 @@
|
|
1
1
|
import { LAST_QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
|
2
|
+
import { querySettingsValidationSchema } from '../query';
|
2
3
|
import { useSetting } from './useSetting';
|
3
4
|
export const useLastQueryExecutionSettings = () => {
|
4
5
|
const [lastStorageSettings, setLastSettings] = useSetting(LAST_QUERY_EXECUTION_SETTINGS_KEY);
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
13
|
-
: undefined;
|
6
|
+
let lastSettings;
|
7
|
+
try {
|
8
|
+
lastSettings = querySettingsValidationSchema.parse(lastStorageSettings);
|
9
|
+
}
|
10
|
+
catch (error) {
|
11
|
+
lastSettings = undefined;
|
12
|
+
}
|
14
13
|
return [lastSettings, setLastSettings];
|
15
14
|
};
|
16
15
|
//# sourceMappingURL=useLastQueryExecutionSettings.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useLastQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useLastQueryExecutionSettings.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iCAAiC,EAAC,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"useLastQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useLastQueryExecutionSettings.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iCAAiC,EAAC,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAC,6BAA6B,EAAC,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,GAAG,UAAU,CACrD,iCAAiC,CACpC,CAAC;IACF,IAAI,YAAuC,CAAC;IAE5C,IAAI,CAAC;QACD,YAAY,GAAG,6BAA6B,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC5E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,YAAY,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,OAAO,CAAC,YAAY,EAAE,eAAe,CAAU,CAAC;AACpD,CAAC,CAAC"}
|
@@ -1,2 +1,15 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const useQueryExecutionSettings: () => readonly [{
|
2
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
3
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
4
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
5
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
6
|
+
timeout?: number | undefined;
|
7
|
+
limitRows?: number | undefined;
|
8
|
+
}, (value: {
|
9
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
10
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
11
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
12
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
13
|
+
timeout?: number | undefined;
|
14
|
+
limitRows?: number | undefined;
|
15
|
+
}) => void];
|
@@ -1,17 +1,15 @@
|
|
1
1
|
import { useTracingLevelOptionAvailable } from '../../store/reducers/capabilities/hooks';
|
2
|
-
import {
|
2
|
+
import { QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
|
3
|
+
import { DEFAULT_QUERY_SETTINGS, querySettingsRestoreSchema } from '../query';
|
3
4
|
import { useSetting } from './useSetting';
|
4
5
|
export const useQueryExecutionSettings = () => {
|
5
|
-
var _a, _b, _c, _d;
|
6
6
|
const enableTracingLevel = useTracingLevelOptionAvailable();
|
7
7
|
const [storageSettings, setSettings] = useSetting(QUERY_EXECUTION_SETTINGS_KEY);
|
8
|
+
const validatedSettings = querySettingsRestoreSchema.parse(storageSettings);
|
8
9
|
const settings = {
|
9
|
-
|
10
|
-
timeout: (_b = storageSettings.timeout) !== null && _b !== void 0 ? _b : DEFAULT_QUERY_SETTINGS.timeout,
|
11
|
-
statisticsMode: (_c = storageSettings.statisticsMode) !== null && _c !== void 0 ? _c : DEFAULT_QUERY_SETTINGS.statisticsMode,
|
12
|
-
transactionMode: (_d = storageSettings.transactionMode) !== null && _d !== void 0 ? _d : DEFAULT_QUERY_SETTINGS.transactionMode,
|
10
|
+
...validatedSettings,
|
13
11
|
tracingLevel: enableTracingLevel
|
14
|
-
?
|
12
|
+
? validatedSettings.tracingLevel
|
15
13
|
: DEFAULT_QUERY_SETTINGS.tracingLevel,
|
16
14
|
};
|
17
15
|
return [settings, setSettings];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,yCAAyC,CAAC;AAEvF,OAAO,EAAC,sBAAsB,EAAE,
|
1
|
+
{"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,yCAAyC,CAAC;AAEvF,OAAO,EAAC,4BAA4B,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,sBAAsB,EAAE,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAE5E,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,MAAM,kBAAkB,GAAG,8BAA8B,EAAE,CAAC;IAC5D,MAAM,CAAC,eAAe,EAAE,WAAW,CAAC,GAAG,UAAU,CAAgB,4BAA4B,CAAC,CAAC;IAE/F,MAAM,iBAAiB,GAAG,0BAA0B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAE5E,MAAM,QAAQ,GAAkB;QAC5B,GAAG,iBAAiB;QACpB,YAAY,EAAE,kBAAkB;YAC5B,CAAC,CAAC,iBAAiB,CAAC,YAAY;YAChC,CAAC,CAAC,sBAAsB,CAAC,YAAY;KAC5C,CAAC;IAEF,OAAO,CAAC,QAAQ,EAAE,WAAW,CAAU,CAAC;AAC5C,CAAC,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { TableColumnSetupItem } from '@gravity-ui/uikit';
|
2
|
+
export declare const useSelectedColumns: <T extends {
|
3
|
+
name: string;
|
4
|
+
}>(columns: T[], storageKey: string, columnsTitles: Record<string, string>, defaultColumnsIds: string[], requiredColumnsIds?: string[]) => {
|
5
|
+
columnsToShow: T[];
|
6
|
+
columnsToSelect: TableColumnSetupItem[];
|
7
|
+
setColumns: (updated: TableColumnSetupItem[]) => void;
|
8
|
+
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { settingsManager } from '../../services/settings';
|
3
|
+
export const useSelectedColumns = (columns, storageKey, columnsTitles, defaultColumnsIds, requiredColumnsIds) => {
|
4
|
+
const [selectedColumnsIds, setSelectedColumnsIds] = React.useState(() => {
|
5
|
+
return settingsManager.readUserSettingsValue(storageKey, defaultColumnsIds);
|
6
|
+
});
|
7
|
+
const columnsToShow = React.useMemo(() => {
|
8
|
+
return columns.filter((column) => {
|
9
|
+
const columnId = column.name;
|
10
|
+
const isSelected = selectedColumnsIds.includes(columnId);
|
11
|
+
const isRequired = requiredColumnsIds === null || requiredColumnsIds === void 0 ? void 0 : requiredColumnsIds.includes(columnId);
|
12
|
+
return isSelected || isRequired;
|
13
|
+
});
|
14
|
+
}, [columns, requiredColumnsIds, selectedColumnsIds]);
|
15
|
+
const columnsToSelect = React.useMemo(() => {
|
16
|
+
const columnsIds = columns.map((column) => column.name);
|
17
|
+
return columnsIds.map((id) => {
|
18
|
+
const isRequired = requiredColumnsIds === null || requiredColumnsIds === void 0 ? void 0 : requiredColumnsIds.includes(id);
|
19
|
+
const isSelected = selectedColumnsIds.includes(id);
|
20
|
+
return {
|
21
|
+
id,
|
22
|
+
title: columnsTitles[id],
|
23
|
+
selected: isRequired || isSelected,
|
24
|
+
required: isRequired,
|
25
|
+
sticky: isRequired ? 'start' : undefined,
|
26
|
+
};
|
27
|
+
});
|
28
|
+
}, [columns, columnsTitles, requiredColumnsIds, selectedColumnsIds]);
|
29
|
+
const setColumns = React.useCallback((value) => {
|
30
|
+
const selectedColumns = value.filter((el) => el.selected).map((el) => el.id);
|
31
|
+
settingsManager.setUserSettingsValue(storageKey, selectedColumns);
|
32
|
+
setSelectedColumnsIds(selectedColumns);
|
33
|
+
}, [storageKey]);
|
34
|
+
return {
|
35
|
+
columnsToShow,
|
36
|
+
columnsToSelect,
|
37
|
+
setColumns,
|
38
|
+
};
|
39
|
+
};
|
40
|
+
//# sourceMappingURL=useSelectedColumns.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useSelectedColumns.js","sourceRoot":"","sources":["../../../src/utils/hooks/useSelectedColumns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAC9B,OAAY,EACZ,UAAkB,EAClB,aAAqC,EACrC,iBAA2B,EAC3B,kBAA6B,EAC/B,EAAE;IACA,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAW,GAAG,EAAE;QAC9E,OAAO,eAAe,CAAC,qBAAqB,CAAC,UAAU,EAAE,iBAAiB,CAAa,CAAC;IAC5F,CAAC,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACrC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;YAC7B,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC;YAC7B,MAAM,UAAU,GAAG,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACzD,MAAM,UAAU,GAAG,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC1D,OAAO,UAAU,IAAI,UAAU,CAAC;QACpC,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC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AU;KACb,CAAC;AACN,CAAC,CAAC"}
|
package/dist/utils/nodes.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import type { NodesPreparedEntity } from '../store/reducers/nodes/types';
|
3
3
|
import type { ProblemFilterValue } from '../store/reducers/settings/types';
|
4
|
-
import type { TSystemStateInfo } from '../types/api/nodes';
|
4
|
+
import type { NodesSortValue, TSystemStateInfo } from '../types/api/nodes';
|
5
5
|
import type { TNodeInfo } from '../types/api/nodesList';
|
6
|
-
import type {
|
7
|
-
import type { NodesMap } from '../types/store/nodesList';
|
6
|
+
import type { NodeHostsMap } from '../types/store/nodesList';
|
8
7
|
export declare enum NodesUptimeFilterValues {
|
9
8
|
'All' = "All",
|
10
9
|
'SmallUptime' = "SmallUptime"
|
@@ -15,7 +14,7 @@ export declare const NodesUptimeFilterTitles: {
|
|
15
14
|
SmallUptime: string;
|
16
15
|
};
|
17
16
|
export declare const isUnavailableNode: (node: NodesPreparedEntity | TSystemStateInfo) => boolean;
|
18
|
-
export declare const
|
17
|
+
export declare const prepareNodeHostsMap: (nodesList?: TNodeInfo[]) => NodeHostsMap | undefined;
|
19
18
|
export declare function calculateLoadAveragePercents(node?: TSystemStateInfo): number[] | undefined;
|
20
19
|
export interface PreparedNodeSystemState extends TSystemStateInfo {
|
21
20
|
Rack?: string;
|
@@ -26,23 +25,5 @@ export interface PreparedNodeSystemState extends TSystemStateInfo {
|
|
26
25
|
export declare const prepareNodeSystemState: (systemState?: TSystemStateInfo) => PreparedNodeSystemState;
|
27
26
|
export declare const getProblemParamValue: (problemFilter: ProblemFilterValue | undefined) => problemFilter is "With problems";
|
28
27
|
export declare const getUptimeParamValue: (nodesUptimeFilter: NodesUptimeFilterValues | undefined) => number | undefined;
|
29
|
-
|
30
|
-
|
31
|
-
*
|
32
|
-
* For actual values go to:\
|
33
|
-
* /nodes: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_nodes.h\
|
34
|
-
* /compute: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_compute.h
|
35
|
-
*/
|
36
|
-
export declare const NODES_SORT_VALUES: {
|
37
|
-
readonly NodeId: "NodeId";
|
38
|
-
readonly Host: "Host";
|
39
|
-
readonly DC: "DC";
|
40
|
-
readonly Rack: "Rack";
|
41
|
-
readonly Version: "Version";
|
42
|
-
readonly Uptime: "Uptime";
|
43
|
-
readonly Memory: "Memory";
|
44
|
-
readonly CPU: "CPU";
|
45
|
-
readonly LoadAverage: "LoadAverage";
|
46
|
-
};
|
47
|
-
export type NodesSortValue = ValueOf<typeof NODES_SORT_VALUES>;
|
48
|
-
export declare const isSortableNodesProperty: (value: string) => value is NodesSortValue;
|
28
|
+
export declare const NODES_SORT_VALUES: NodesSortValue[];
|
29
|
+
export declare const isSortableNodesProperty: (value: unknown) => value is NodesSortValue;
|
package/dist/utils/nodes.js
CHANGED
@@ -17,12 +17,12 @@ export const NodesUptimeFilterTitles = {
|
|
17
17
|
[NodesUptimeFilterValues.SmallUptime]: 'Uptime < 1h',
|
18
18
|
};
|
19
19
|
export const isUnavailableNode = (node) => !node.SystemState || node.SystemState === EFlag.Grey;
|
20
|
-
export const
|
21
|
-
return nodesList === null || nodesList === void 0 ? void 0 : nodesList.reduce((
|
20
|
+
export const prepareNodeHostsMap = (nodesList) => {
|
21
|
+
return nodesList === null || nodesList === void 0 ? void 0 : nodesList.reduce((nodeHosts, node) => {
|
22
22
|
if (node.Id && node.Host) {
|
23
|
-
|
23
|
+
nodeHosts.set(Number(node.Id), node.Host);
|
24
24
|
}
|
25
|
-
return
|
25
|
+
return nodeHosts;
|
26
26
|
}, new Map());
|
27
27
|
};
|
28
28
|
export function calculateLoadAveragePercents(node = {}) {
|
@@ -55,23 +55,20 @@ export const getProblemParamValue = (problemFilter) => {
|
|
55
55
|
export const getUptimeParamValue = (nodesUptimeFilter) => {
|
56
56
|
return nodesUptimeFilter === NodesUptimeFilterValues.SmallUptime ? HOUR_IN_SECONDS : undefined;
|
57
57
|
};
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
LoadAverage: 'LoadAverage',
|
75
|
-
};
|
76
|
-
export const isSortableNodesProperty = (value) => Object.values(NODES_SORT_VALUES).includes(value);
|
58
|
+
export const NODES_SORT_VALUES = [
|
59
|
+
'NodeId',
|
60
|
+
'Host',
|
61
|
+
'NodeName',
|
62
|
+
'DC',
|
63
|
+
'Rack',
|
64
|
+
'Version',
|
65
|
+
'Uptime',
|
66
|
+
'CPU',
|
67
|
+
'LoadAverage',
|
68
|
+
'Memory',
|
69
|
+
`Missing`,
|
70
|
+
`DiskSpaceUsage`,
|
71
|
+
`Database`,
|
72
|
+
];
|
73
|
+
export const isSortableNodesProperty = (value) => NODES_SORT_VALUES.includes(value);
|
77
74
|
//# sourceMappingURL=nodes.js.map
|
package/dist/utils/nodes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAKzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAA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UAAU;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAc,EAA2B,EAAE,CAC/E,iBAAiB,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAC"}
|
package/dist/utils/query.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { z } from 'zod';
|
1
2
|
import type { AnyExecuteResponse, AnyExplainResponse, ErrorResponse, KeyValueRow, QueryPlan, ScriptPlan } from '../types/api/query';
|
2
3
|
import type { IQueryResult, QueryMode, StatisticsMode, TracingLevel, TransactionMode } from '../types/store/query';
|
3
4
|
export declare const TRANSACTION_MODES: {
|
@@ -51,4 +52,132 @@ export declare const parseQueryExplainPlan: (plan: ScriptPlan | QueryPlan) => Qu
|
|
51
52
|
export declare const prepareQueryResponse: (data?: KeyValueRow[]) => KeyValueRow[];
|
52
53
|
export declare const parseQueryError: (error: unknown) => ErrorResponse | string | undefined;
|
53
54
|
export declare const parseQueryErrorToString: (error: unknown) => string | undefined;
|
55
|
+
export declare const DEFAULT_QUERY_SETTINGS: {
|
56
|
+
queryMode: "query";
|
57
|
+
transactionMode: "implicit";
|
58
|
+
timeout: number;
|
59
|
+
limitRows: number;
|
60
|
+
statisticsMode: "none";
|
61
|
+
tracingLevel: "detailed";
|
62
|
+
};
|
63
|
+
export declare const queryModeSchema: z.ZodNativeEnum<{
|
64
|
+
readonly scan: "scan";
|
65
|
+
readonly script: "script";
|
66
|
+
readonly data: "data";
|
67
|
+
readonly query: "query";
|
68
|
+
readonly pg: "pg";
|
69
|
+
}>;
|
70
|
+
export declare const transactionModeSchema: z.ZodNativeEnum<{
|
71
|
+
readonly serializable: "serializable-read-write";
|
72
|
+
readonly stalero: "stale-read-only";
|
73
|
+
readonly onlinero: "online-read-only";
|
74
|
+
readonly snapshot: "snapshot-read-only";
|
75
|
+
readonly implicit: "implicit";
|
76
|
+
}>;
|
77
|
+
export declare const statisticsModeSchema: z.ZodNativeEnum<{
|
78
|
+
readonly none: "none";
|
79
|
+
readonly basic: "basic";
|
80
|
+
readonly full: "full";
|
81
|
+
readonly profile: "profile";
|
82
|
+
}>;
|
83
|
+
export declare const tracingLevelSchema: z.ZodNativeEnum<{
|
84
|
+
readonly off: "off";
|
85
|
+
readonly toplevel: "toplevel";
|
86
|
+
readonly basic: "basic";
|
87
|
+
readonly detailed: "detailed";
|
88
|
+
readonly diagnostic: "diagnostic";
|
89
|
+
readonly trace: "trace";
|
90
|
+
}>;
|
91
|
+
export declare const querySettingsValidationSchema: z.ZodObject<{
|
92
|
+
timeout: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, number | undefined, unknown>;
|
93
|
+
limitRows: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, number | undefined, unknown>;
|
94
|
+
queryMode: z.ZodNativeEnum<{
|
95
|
+
readonly scan: "scan";
|
96
|
+
readonly script: "script";
|
97
|
+
readonly data: "data";
|
98
|
+
readonly query: "query";
|
99
|
+
readonly pg: "pg";
|
100
|
+
}>;
|
101
|
+
transactionMode: z.ZodNativeEnum<{
|
102
|
+
readonly serializable: "serializable-read-write";
|
103
|
+
readonly stalero: "stale-read-only";
|
104
|
+
readonly onlinero: "online-read-only";
|
105
|
+
readonly snapshot: "snapshot-read-only";
|
106
|
+
readonly implicit: "implicit";
|
107
|
+
}>;
|
108
|
+
statisticsMode: z.ZodNativeEnum<{
|
109
|
+
readonly none: "none";
|
110
|
+
readonly basic: "basic";
|
111
|
+
readonly full: "full";
|
112
|
+
readonly profile: "profile";
|
113
|
+
}>;
|
114
|
+
tracingLevel: z.ZodNativeEnum<{
|
115
|
+
readonly off: "off";
|
116
|
+
readonly toplevel: "toplevel";
|
117
|
+
readonly basic: "basic";
|
118
|
+
readonly detailed: "detailed";
|
119
|
+
readonly diagnostic: "diagnostic";
|
120
|
+
readonly trace: "trace";
|
121
|
+
}>;
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
123
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
124
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
125
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
126
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
127
|
+
timeout?: number | undefined;
|
128
|
+
limitRows?: number | undefined;
|
129
|
+
}, {
|
130
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
131
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
132
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
133
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
134
|
+
timeout?: unknown;
|
135
|
+
limitRows?: unknown;
|
136
|
+
}>;
|
137
|
+
export declare const querySettingsRestoreSchema: z.ZodCatch<z.ZodObject<{
|
138
|
+
timeout: z.ZodEffects<z.ZodCatch<z.ZodOptional<z.ZodNumber>>, number | undefined, unknown>;
|
139
|
+
limitRows: z.ZodEffects<z.ZodCatch<z.ZodOptional<z.ZodNumber>>, number | undefined, unknown>;
|
140
|
+
queryMode: z.ZodCatch<z.ZodNativeEnum<{
|
141
|
+
readonly scan: "scan";
|
142
|
+
readonly script: "script";
|
143
|
+
readonly data: "data";
|
144
|
+
readonly query: "query";
|
145
|
+
readonly pg: "pg";
|
146
|
+
}>>;
|
147
|
+
transactionMode: z.ZodCatch<z.ZodNativeEnum<{
|
148
|
+
readonly serializable: "serializable-read-write";
|
149
|
+
readonly stalero: "stale-read-only";
|
150
|
+
readonly onlinero: "online-read-only";
|
151
|
+
readonly snapshot: "snapshot-read-only";
|
152
|
+
readonly implicit: "implicit";
|
153
|
+
}>>;
|
154
|
+
statisticsMode: z.ZodCatch<z.ZodNativeEnum<{
|
155
|
+
readonly none: "none";
|
156
|
+
readonly basic: "basic";
|
157
|
+
readonly full: "full";
|
158
|
+
readonly profile: "profile";
|
159
|
+
}>>;
|
160
|
+
tracingLevel: z.ZodCatch<z.ZodNativeEnum<{
|
161
|
+
readonly off: "off";
|
162
|
+
readonly toplevel: "toplevel";
|
163
|
+
readonly basic: "basic";
|
164
|
+
readonly detailed: "detailed";
|
165
|
+
readonly diagnostic: "diagnostic";
|
166
|
+
readonly trace: "trace";
|
167
|
+
}>>;
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
169
|
+
queryMode: "scan" | "script" | "data" | "query" | "pg";
|
170
|
+
transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
|
171
|
+
statisticsMode: "none" | "basic" | "full" | "profile";
|
172
|
+
tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
|
173
|
+
timeout?: number | undefined;
|
174
|
+
limitRows?: number | undefined;
|
175
|
+
}, {
|
176
|
+
timeout?: unknown;
|
177
|
+
limitRows?: unknown;
|
178
|
+
queryMode?: unknown;
|
179
|
+
transactionMode?: unknown;
|
180
|
+
statisticsMode?: unknown;
|
181
|
+
tracingLevel?: unknown;
|
182
|
+
}>>;
|
54
183
|
export {};
|