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.
Files changed (459) hide show
  1. package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
  2. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
  3. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
  4. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
  5. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
  6. package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
  7. package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
  8. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  9. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  10. package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
  11. package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
  12. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  13. package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
  14. package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
  15. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  16. package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
  17. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  18. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  19. package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
  20. package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
  21. package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
  22. package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
  23. package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
  24. package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
  25. package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
  26. package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
  27. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
  28. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
  29. package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
  30. package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
  31. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
  32. package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
  33. package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
  34. package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
  35. package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
  36. package/dist/components/VDisk/VDisk.d.ts +2 -3
  37. package/dist/components/VDisk/VDisk.js +2 -2
  38. package/dist/components/VDisk/VDisk.js.map +1 -1
  39. package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
  40. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  41. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  42. package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
  43. package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
  44. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  45. package/dist/containers/App/App.scss +1 -1
  46. package/dist/containers/Cluster/Cluster.js +1 -1
  47. package/dist/containers/Cluster/Cluster.js.map +1 -1
  48. package/dist/containers/Cluster/Cluster.scss +2 -3
  49. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  50. package/dist/containers/Clusters/Clusters.js +3 -3
  51. package/dist/containers/Clusters/Clusters.js.map +1 -1
  52. package/dist/containers/Clusters/columns.js +2 -2
  53. package/dist/containers/Clusters/columns.js.map +1 -1
  54. package/dist/containers/Clusters/constants.d.ts +4 -4
  55. package/dist/containers/Clusters/constants.js +3 -3
  56. package/dist/containers/Clusters/constants.js.map +1 -1
  57. package/dist/containers/Header/breadcrumbs.js +2 -3
  58. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  59. package/dist/containers/Node/Node.js +14 -4
  60. package/dist/containers/Node/Node.js.map +1 -1
  61. package/dist/containers/Node/NodePages.js +4 -5
  62. package/dist/containers/Node/NodePages.js.map +1 -1
  63. package/dist/containers/Nodes/Nodes.js +10 -11
  64. package/dist/containers/Nodes/Nodes.js.map +1 -1
  65. package/dist/containers/Nodes/PaginatedNodes.js +10 -11
  66. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  67. package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
  68. package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +37 -39
  69. package/dist/containers/Nodes/columns/columns.js.map +1 -0
  70. package/dist/containers/Nodes/columns/constants.d.ts +41 -0
  71. package/dist/containers/Nodes/columns/constants.js +83 -0
  72. package/dist/containers/Nodes/columns/constants.js.map +1 -0
  73. package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
  74. package/dist/containers/Nodes/columns/hooks.js +11 -0
  75. package/dist/containers/Nodes/columns/hooks.js.map +1 -0
  76. package/dist/containers/Nodes/columns/i18n/en.json +17 -0
  77. package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
  78. package/dist/containers/Nodes/columns/i18n/index.js +5 -0
  79. package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
  80. package/dist/containers/Nodes/columns/types.d.ts +9 -0
  81. package/dist/containers/Nodes/columns/types.js +2 -0
  82. package/dist/containers/Nodes/columns/types.js.map +1 -0
  83. package/dist/containers/Nodes/getNodes.d.ts +3 -2
  84. package/dist/containers/Nodes/getNodes.js +6 -3
  85. package/dist/containers/Nodes/getNodes.js.map +1 -1
  86. package/dist/containers/PDiskPage/PDiskPage.js +12 -10
  87. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  88. package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
  89. package/dist/containers/PDiskPage/i18n/en.json +1 -1
  90. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  91. package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
  92. package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
  93. package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
  94. package/dist/containers/Storage/Disks/Disks.js +6 -7
  95. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  96. package/dist/containers/Storage/PDisk/PDisk.d.ts +5 -4
  97. package/dist/containers/Storage/PDisk/PDisk.js +3 -2
  98. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  99. package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
  100. package/dist/containers/Storage/PaginatedStorage.d.ts +5 -6
  101. package/dist/containers/Storage/PaginatedStorage.js +9 -54
  102. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  103. package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
  104. package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
  105. package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
  106. package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
  107. package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
  108. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
  109. package/dist/containers/Storage/Storage.d.ts +4 -4
  110. package/dist/containers/Storage/Storage.js +46 -67
  111. package/dist/containers/Storage/Storage.js.map +1 -1
  112. package/dist/containers/Storage/Storage.scss +4 -0
  113. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +6 -16
  114. package/dist/containers/Storage/StorageControls/StorageControls.js +18 -9
  115. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  116. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
  117. package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +24 -8
  118. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
  119. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +14 -0
  120. package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +5 -6
  121. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
  122. package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
  123. package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +66 -89
  124. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
  125. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +54 -0
  126. package/dist/containers/Storage/StorageGroups/columns/constants.js +120 -0
  127. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
  128. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +7 -3
  129. package/dist/containers/Storage/StorageGroups/columns/hooks.js +21 -16
  130. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  131. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +21 -0
  132. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
  133. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
  134. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
  135. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +5 -7
  136. package/dist/containers/Storage/StorageGroups/getGroups.js +10 -6
  137. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  138. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
  139. package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +24 -9
  140. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
  141. package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
  142. package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +16 -0
  143. package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +9 -9
  144. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
  145. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +24 -0
  146. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
  147. package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +20 -31
  148. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
  149. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +34 -0
  150. package/dist/containers/Storage/StorageNodes/columns/constants.js +74 -0
  151. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
  152. package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
  153. package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
  154. package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
  155. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +11 -0
  156. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
  157. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
  158. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
  159. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
  160. package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
  161. package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
  162. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
  163. package/dist/containers/Storage/StorageNodes/getNodes.js +13 -9
  164. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  165. package/dist/containers/Storage/StorageNodes/shared.js +1 -1
  166. package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
  167. package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
  168. package/dist/containers/Storage/StorageWrapper.js.map +1 -1
  169. package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
  170. package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
  171. package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
  172. package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
  173. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
  174. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
  175. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
  176. package/dist/containers/Storage/i18n/en.json +4 -1
  177. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  178. package/dist/containers/Storage/i18n/index.js +1 -2
  179. package/dist/containers/Storage/i18n/index.js.map +1 -1
  180. package/dist/containers/Storage/shared.d.ts +2 -0
  181. package/dist/containers/Storage/shared.js +9 -0
  182. package/dist/containers/Storage/shared.js.map +1 -1
  183. package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
  184. package/dist/containers/Storage/useStorageQueryParams.js +64 -0
  185. package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
  186. package/dist/containers/Storage/utils/index.d.ts +6 -2
  187. package/dist/containers/Storage/utils/index.js +17 -11
  188. package/dist/containers/Storage/utils/index.js.map +1 -1
  189. package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
  190. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
  191. package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
  192. package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
  193. package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
  194. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  195. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
  196. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  197. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
  198. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  199. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -3
  200. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +4 -4
  201. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  202. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
  203. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
  204. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
  205. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
  206. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
  207. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
  208. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
  209. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
  210. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
  211. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
  212. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  213. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
  214. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
  215. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
  216. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  217. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
  218. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
  219. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
  220. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  221. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  222. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
  223. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
  224. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
  225. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
  226. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
  227. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  228. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
  229. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
  230. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
  231. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
  232. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
  233. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
  234. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
  235. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
  236. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
  237. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
  238. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +71 -62
  239. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  240. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
  241. package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
  242. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
  243. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
  244. package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
  245. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
  246. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
  247. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
  248. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
  249. package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
  250. package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
  251. package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
  252. package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
  253. package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
  254. package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
  255. package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
  256. package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
  257. package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
  258. package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
  259. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +14 -12
  260. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  261. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
  262. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +3 -1
  263. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  264. package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
  265. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
  266. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
  267. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
  268. package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
  269. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
  270. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
  271. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
  272. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  273. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
  274. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
  275. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
  276. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
  277. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  278. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
  279. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
  280. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
  281. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  282. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
  283. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  284. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
  285. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
  286. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
  287. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
  288. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
  289. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
  290. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  291. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
  292. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
  293. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
  294. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
  295. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
  296. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
  297. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
  298. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
  299. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  300. package/dist/containers/Tenant/Tenant.js +7 -3
  301. package/dist/containers/Tenant/Tenant.js.map +1 -1
  302. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
  303. package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
  304. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
  305. package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
  306. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
  307. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
  308. package/dist/containers/Tenant/utils/schema.js +1 -0
  309. package/dist/containers/Tenant/utils/schema.js.map +1 -1
  310. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  311. package/dist/containers/Tenant/utils/schemaActions.js +8 -6
  312. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  313. package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
  314. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
  315. package/dist/containers/UserSettings/i18n/en.json +0 -2
  316. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  317. package/dist/containers/UserSettings/settings.d.ts +0 -1
  318. package/dist/containers/UserSettings/settings.js +2 -7
  319. package/dist/containers/UserSettings/settings.js.map +1 -1
  320. package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
  321. package/dist/containers/VDiskPage/VDiskPage.js +9 -33
  322. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  323. package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
  324. package/dist/containers/VDiskPage/i18n/en.json +1 -1
  325. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  326. package/dist/services/api.d.ts +16 -5
  327. package/dist/services/api.js +53 -14
  328. package/dist/services/api.js.map +1 -1
  329. package/dist/services/settings.d.ts +2 -2
  330. package/dist/services/settings.js +2 -3
  331. package/dist/services/settings.js.map +1 -1
  332. package/dist/store/configureStore.d.ts +2 -2
  333. package/dist/store/defaultStore.d.ts +1 -1
  334. package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
  335. package/dist/store/reducers/capabilities/capabilities.js +6 -1
  336. package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
  337. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  338. package/dist/store/reducers/capabilities/hooks.js +6 -0
  339. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  340. package/dist/store/reducers/executeQuery.js +3 -0
  341. package/dist/store/reducers/executeQuery.js.map +1 -1
  342. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
  343. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
  344. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  345. package/dist/store/reducers/index.d.ts +2 -2
  346. package/dist/store/reducers/nodes/nodes.d.ts +2 -2
  347. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  348. package/dist/store/reducers/nodes/types.d.ts +3 -24
  349. package/dist/store/reducers/nodesList.d.ts +5 -5
  350. package/dist/store/reducers/nodesList.js +2 -2
  351. package/dist/store/reducers/nodesList.js.map +1 -1
  352. package/dist/store/reducers/overview/overview.js +5 -1
  353. package/dist/store/reducers/overview/overview.js.map +1 -1
  354. package/dist/store/reducers/pdisk/pdisk.js +29 -2
  355. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  356. package/dist/store/reducers/pdisk/utils.js +1 -1
  357. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  358. package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
  359. package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
  360. package/dist/store/reducers/storage/selectors.d.ts +2 -3
  361. package/dist/store/reducers/storage/selectors.js +1 -27
  362. package/dist/store/reducers/storage/selectors.js.map +1 -1
  363. package/dist/store/reducers/storage/storage.d.ts +4 -4
  364. package/dist/store/reducers/storage/storage.js.map +1 -1
  365. package/dist/store/reducers/storage/types.d.ts +19 -10
  366. package/dist/store/reducers/storage/utils.js +27 -3
  367. package/dist/store/reducers/storage/utils.js.map +1 -1
  368. package/dist/store/reducers/tablet.js +5 -3
  369. package/dist/store/reducers/tablet.js.map +1 -1
  370. package/dist/store/reducers/tablets.d.ts +3 -3
  371. package/dist/store/reducers/tablets.js +4 -4
  372. package/dist/store/reducers/tablets.js.map +1 -1
  373. package/dist/store/reducers/tooltip.d.ts +1 -1
  374. package/dist/styles/mixins.scss +3 -3
  375. package/dist/types/api/capabilities.d.ts +1 -1
  376. package/dist/types/api/common.d.ts +1 -0
  377. package/dist/types/api/nodes.d.ts +34 -0
  378. package/dist/types/api/nodes.js.map +1 -1
  379. package/dist/types/api/query.d.ts +1 -0
  380. package/dist/types/api/storage.d.ts +29 -8
  381. package/dist/types/store/nodesList.d.ts +1 -1
  382. package/dist/types/store/query.d.ts +5 -8
  383. package/dist/utils/constants.d.ts +0 -8
  384. package/dist/utils/constants.js +0 -9
  385. package/dist/utils/constants.js.map +1 -1
  386. package/dist/utils/filters.d.ts +2 -1
  387. package/dist/utils/filters.js +1 -4
  388. package/dist/utils/filters.js.map +1 -1
  389. package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
  390. package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
  391. package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
  392. package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
  393. package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
  394. package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
  395. package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
  396. package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
  397. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  398. package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
  399. package/dist/utils/hooks/useSelectedColumns.js +40 -0
  400. package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
  401. package/dist/utils/nodes.d.ts +5 -24
  402. package/dist/utils/nodes.js +20 -23
  403. package/dist/utils/nodes.js.map +1 -1
  404. package/dist/utils/query.d.ts +129 -0
  405. package/dist/utils/query.js +33 -1
  406. package/dist/utils/query.js.map +1 -1
  407. package/dist/utils/storage.d.ts +1 -1
  408. package/dist/utils/storage.js +2 -0
  409. package/dist/utils/storage.js.map +1 -1
  410. package/dist/utils/utils.js +2 -1
  411. package/dist/utils/utils.js.map +1 -1
  412. package/package.json +2 -1
  413. package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
  414. package/dist/containers/Clusters/useSelectedColumns.js +0 -26
  415. package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
  416. package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
  417. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
  418. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
  419. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
  420. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
  421. package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
  422. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
  423. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -14
  424. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
  425. package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +0 -13
  426. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
  427. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
  428. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
  429. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
  430. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
  431. package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +0 -19
  432. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
  433. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
  434. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
  435. package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
  436. package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
  437. package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
  438. package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
  439. package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
  440. package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
  441. package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
  442. package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
  443. package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
  444. package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
  445. package/dist/containers/Storage/UsageFilter/index.js +0 -2
  446. package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
  447. package/dist/containers/Storage/i18n/ru.json +0 -6
  448. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
  449. package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
  450. package/dist/containers/VDiskPage/utils.d.ts +0 -2
  451. package/dist/containers/VDiskPage/utils.js +0 -7
  452. package/dist/containers/VDiskPage/utils.js.map +0 -1
  453. package/dist/store/reducers/describe.d.ts +0 -7
  454. package/dist/store/reducers/describe.js +0 -25
  455. package/dist/store/reducers/describe.js.map +0 -1
  456. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
  457. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
  458. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
  459. /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -1,10 +1,12 @@
1
- import type { QUERY_ACTIONS, QUERY_MODES, QUERY_SYNTAX, STATISTICS_MODES, TRACING_LEVELS, TRANSACTION_MODES } from '../../utils/query';
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 interface QuerySettings {
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";
@@ -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;AAG1C,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAEzF,MAAM,MAAM,GAAG,IAAI,CAAC;AAEpB,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,GAAG,MAAM,CAAC;AAChD,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,GAAG,MAAM,CAAC;AACpD,yDAAyD;AACzD,6DAA6D;AAC7D,8DAA8D;AAC9D,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAK,CAAC;AAC9B,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAS,CAAC;AAClC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAa,CAAC;AACtC,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAiB,CAAC;AAE1C,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;AACjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AACpC,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,GAAG,iB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6B,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"}
@@ -1,3 +1,4 @@
1
1
  import type { OrderType } from '@gravity-ui/react-data-table';
2
- export declare const prepareSortValue: (sortValue: string | undefined, sortOrder?: OrderType) => string;
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;
@@ -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 '-' + sortValue;
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;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,SAA6B,EAC7B,YAAuB,UAAU,EACnC,EAAE;IACA,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACd,CAAC;IAED,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;QAC3B,OAAO,GAAG,GAAG,SAAS,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"}
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: (keyof import("../../types/store/query").QuerySettings)[];
6
+ changedCurrentSettings: (("queryMode" | "transactionMode" | "statisticsMode" | "tracingLevel") | ("timeout" | "limitRows"))[];
7
7
  changedCurrentSettingsDescriptions: Record<string, string>;
8
- changedLastExucutionSettings: (keyof import("../../types/store/query").QuerySettings)[];
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 { DEFAULT_QUERY_SETTINGS, QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY, WEEK_IN_SECONDS, } from '../constants';
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,EACH,sBAAsB,EACtB,qCAAqC,EACrC,eAAe,GAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,yBAAyB,EAAC,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACxC,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CAAC,2CAA2C,CAAC;YACxC,eAAe,EAAE,iBAAiB;YAClC,eAAe,EAAE,sBAAsB;SAC1C,CAAC;QACJ,CAAC,CAAC,EAAE,CAAC;IAET,MAAM,kCAAkC,GAAG,oBAAoB;QAC3D,CAAC,CAAC,2CAA2C,CAAC;YACxC,eAAe,EAAE,oBAAoB;YACrC,eAAe,EAAE,sBAAsB;SAC1C,CAAC;QACJ,CAAC,CAAC,EAAE,CAAC;IAET,MAAM,gBAAgB,GAClB,yBAAyB;QACzB,IAAI,CAAC,GAAG,EAAE,GAAG,yBAAyB,GAAG,eAAe,GAAG,IAAI,CAAC;IAEpE,MAAM,aAAa,GAAG,+BAA+B,IAAI,CAAC,gBAAgB,CAAC;IAC3E,MAAM,gBAAgB,GAAG,+BAA+B,IAAI,gBAAgB,CAAC;IAE7E,MAAM,WAAW,GAAG,GAAG,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
- import type { QuerySettings } from '../../types/store/query';
2
- export declare const useLastQueryExecutionSettings: () => readonly [QuerySettings | undefined, (value: QuerySettings | undefined) => void];
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
- const lastSettings = lastStorageSettings
6
- ? {
7
- transactionMode: lastStorageSettings.transactionMode,
8
- queryMode: lastStorageSettings.queryMode,
9
- statisticsMode: lastStorageSettings.statisticsMode,
10
- tracingLevel: lastStorageSettings.tracingLevel,
11
- timeout: lastStorageSettings.timeout,
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;AAE/D,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;IAEF,MAAM,YAAY,GAA8B,mBAAmB;QAC/D,CAAC,CAAC;YACI,eAAe,EAAE,mBAAmB,CAAC,eAAe;YACpD,SAAS,EAAE,mBAAmB,CAAC,SAAS;YACxC,cAAc,EAAE,mBAAmB,CAAC,cAAc;YAClD,YAAY,EAAE,mBAAmB,CAAC,YAAY;YAC9C,OAAO,EAAE,mBAAmB,CAAC,OAAO;SACvC;QACH,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO,CAAC,YAAY,EAAE,eAAe,CAAU,CAAC;AACpD,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
- import type { QuerySettings } from '../../types/store/query';
2
- export declare const useQueryExecutionSettings: () => readonly [QuerySettings, (value: QuerySettings) => void];
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 { DEFAULT_QUERY_SETTINGS, QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
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
- queryMode: (_a = storageSettings.queryMode) !== null && _a !== void 0 ? _a : DEFAULT_QUERY_SETTINGS.queryMode,
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
- ? storageSettings.tracingLevel
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,4BAA4B,EAAC,MAAM,cAAc,CAAC;AAElF,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,QAAQ,GAAkB;QAC5B,SAAS,EAAE,MAAA,eAAe,CAAC,SAAS,mCAAI,sBAAsB,CAAC,SAAS;QACxE,OAAO,EAAE,MAAA,eAAe,CAAC,OAAO,mCAAI,sBAAsB,CAAC,OAAO;QAClE,cAAc,EAAE,MAAA,eAAe,CAAC,cAAc,mCAAI,sBAAsB,CAAC,cAAc;QACvF,eAAe,EAAE,MAAA,eAAe,CAAC,eAAe,mCAAI,sBAAsB,CAAC,eAAe;QAC1F,YAAY,EAAE,kBAAkB;YAC5B,CAAC,CAAC,eAAe,CAAC,YAAY;YAC9B,CAAC,CAAC,sBAAsB,CAAC,YAAY;KAC5C,CAAC;IAEF,OAAO,CAAC,QAAQ,EAAE,WAAW,CAAU,CAAC;AAC5C,CAAC,CAAC"}
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,EA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E;QACN,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAE7E,eAAe,CAAC,oBAAoB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;QAClE,qBAAqB,CAAC,eAAe,CAAC,CAAC;IAC3C,CAAC,EACD,CAAC,UAAU,CAAC,CACf,CAAC;IAEF,OAAO;QACH,aAAa;QACb,eAAe;QACf,UAAU;KACb,CAAC;AACN,CAAC,CAAC"}
@@ -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 { ValueOf } from '../types/common';
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 prepareNodesMap: (nodesList?: TNodeInfo[]) => NodesMap | undefined;
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
- * Values to sort /compute v2 and /nodes responses
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;
@@ -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 prepareNodesMap = (nodesList) => {
21
- return nodesList === null || nodesList === void 0 ? void 0 : nodesList.reduce((nodesMap, node) => {
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
- nodesMap.set(Number(node.Id), node.Host);
23
+ nodeHosts.set(Number(node.Id), node.Host);
24
24
  }
25
- return nodesMap;
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
- * Values to sort /compute v2 and /nodes responses
60
- *
61
- * For actual values go to:\
62
- * /nodes: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_nodes.h\
63
- * /compute: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_compute.h
64
- */
65
- export const NODES_SORT_VALUES = {
66
- NodeId: 'NodeId',
67
- Host: 'Host',
68
- DC: 'DC',
69
- Rack: 'Rack',
70
- Version: 'Version',
71
- Uptime: 'Uptime',
72
- Memory: 'Memory',
73
- CPU: 'CPU',
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
@@ -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;AAMzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,cAAc,EA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,mBAAmB;KACtB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,aAA6C,EAAE,EAAE;IAClF,OAAO,aAAa,KAAK,mBAAmB,CAAC,QAAQ,CAAC;AAC1D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,iBAAsD,EAAE,EAAE;IAC1F,OAAO,iBAAiB,KAAK,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;AACnG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAqB;IAC/C,QAAQ;IACR,MAAM;IACN,UAAU;IACV,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,KAAK;IACL,aAAa;IACb,QAAQ;IACR,SAAS;IACT,gBAAgB;IAChB,UAAU;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAc,EAA2B,EAAE,CAC/E,iBAAiB,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAC"}
@@ -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 {};