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
@@ -7,6 +7,7 @@ type QuerySettingSelectOption<T> = SelectOption<T> & {
7
7
  isDefault?: boolean;
8
8
  };
9
9
  interface QuerySettingsSelectProps<T extends SelectType> {
10
+ id?: string;
10
11
  setting: T;
11
12
  settingOptions: QuerySettingSelectOption<T>[];
12
13
  onUpdateSetting: (mode: T) => void;
@@ -8,7 +8,7 @@ import './QuerySettingsSelect.scss';
8
8
  export const getOptionHeight = () => -1;
9
9
  const b = cn('ydb-query-settings-select');
10
10
  export function QuerySettingsSelect(props) {
11
- return (_jsx("div", { className: b('selector'), children: _jsx(Select, { options: props.settingOptions, value: [props.setting], onUpdate: (value) => {
11
+ return (_jsx("div", { className: b('selector'), children: _jsx(Select, { id: props.id, options: props.settingOptions, value: [props.setting], onUpdate: (value) => {
12
12
  props.onUpdateSetting(value[0]);
13
13
  }, getOptionHeight: getOptionHeight, popupClassName: b('popup'), renderOption: (option) => (_jsxs("div", { className: b('item'), children: [_jsxs("div", { className: b('item-title'), children: [option.content, option.isDefault ? i18n('description.default') : ''] }), option.text && (_jsx("span", { className: b('item-description'), children: option.text }))] })), width: "max" }) }));
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QuerySettingsSelect.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAQzC,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AAExC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,4BAA4B,CAAC;AAEpC,8BAA8B;AAC9B,mCAAmC;AACnC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AAExC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAW1C,MAAM,UAAU,mBAAmB,CAAuB,KAAkC;IACxF,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,YACzB,KAAC,MAAM,IACH,OAAO,EAAE,KAAK,CAAC,cAAc,EAC7B,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,EACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;gBAChB,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAM,CAAC,CAAC;YACzC,CAAC,EACD,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,EAC1B,YAAY,EAAE,CAAC,MAAmC,EAAE,EAAE,CAAC,CACnD,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,eAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,aAC1B,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,EAAE,IAClD,EACL,MAAM,CAAC,IAAI,IAAI,CACZ,eAAM,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,YAAG,MAAM,CAAC,IAAI,GAAQ,CAC/D,IACC,CACT,EACD,KAAK,EAAC,KAAK,GACb,GACA,CACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"QuerySettingsSelect.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAQzC,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AAExC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,4BAA4B,CAAC;AAEpC,8BAA8B;AAC9B,mCAAmC;AACnC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AAExC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAY1C,MAAM,UAAU,mBAAmB,CAAuB,KAAkC;IACxF,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,YACzB,KAAC,MAAM,IACH,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,OAAO,EAAE,KAAK,CAAC,cAAc,EAC7B,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,EACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;gBAChB,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAM,CAAC,CAAC;YACzC,CAAC,EACD,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,EAC1B,YAAY,EAAE,CAAC,MAAmC,EAAE,EAAE,CAAC,CACnD,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,eAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,aAC1B,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,EAAE,IAClD,EACL,MAAM,CAAC,IAAI,IAAI,CACZ,eAAM,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,YAAG,MAAM,CAAC,IAAI,GAAQ,CAC/D,IACC,CACT,EACD,KAAK,EAAC,KAAK,GACb,GACA,CACT,CAAC;AACN,CAAC"}
@@ -222,4 +222,7 @@ export declare const QUERY_SETTINGS_FIELD_SETTINGS: {
222
222
  readonly timeout: {
223
223
  readonly title: string;
224
224
  };
225
+ readonly limitRows: {
226
+ readonly title: string;
227
+ };
225
228
  };
@@ -133,5 +133,8 @@ export const QUERY_SETTINGS_FIELD_SETTINGS = {
133
133
  timeout: {
134
134
  title: formI18n('form.timeout'),
135
135
  },
136
+ limitRows: {
137
+ title: formI18n('form.limit-rows'),
138
+ },
136
139
  };
137
140
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QuerySettingsDialog/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,QAAQ,MAAM,QAAQ,CAAC;AAE9B,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC3C;QACI,KAAK,EAAE,iBAAiB,CAAC,QAAQ;QACjC,OAAO,EAAE,wBAAwB,CAAC,iBAAiB,CAAC,QAAQ,CAAC;QAC7D,IAAI,EAAE,IAAI,CAAC,uCAAuC,CAAC;QACnD,SAAS,EAAE,IAAI;KAClB;IACD;QACI,KAAK,EAAE,iBAAiB,CAAC,YAAY;QACrC,OAAO,EAAE,wBAAwB,CAAC,iBAAiB,CAAC,YAAY,CAAC;QACjE,IAAI,EAAE,IAAI,CAAC,2CAA2C,CAAC;KAC1D;IACD;QACI,KAAK,EAAE,iBAAiB,CAAC,QAAQ;QACjC,OAAO,EAAE,wBAAwB,CAAC,iBAAiB,CAAC,QAAQ,CAAC;QAC7D,IAAI,EAAE,IAAI,CAAC,uCAAuC,CAAC;KACtD;IACD;QACI,KAAK,EAAE,iBAAiB,CAAC,OAAO;QAChC,OAAO,EAAE,wBAAwB,CAAC,iBAAiB,CAAC,OAAO,CAAC;QAC5D,IAAI,EAAE,IAAI,CAAC,sCAAsC,CAAC;KACrD;IACD;QACI,KAAK,EAAE,iBAAiB,CAAC,QAAQ;QACjC,OAAO,EAAE,wBAAwB,CAAC,iBAAi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qB,CAAC,cAAc,CAAC,KAAK,CAAC;QACpD,IAAI,EAAE,IAAI,CAAC,iCAAiC,CAAC;KAChD;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,eAAe,EAAE;QACb,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC;QACxC,OAAO,EAAE,+BAA+B;KAC3C;IACD,SAAS,EAAE;QACP,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC;QAClC,OAAO,EAAE,yBAAyB;KACrC;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC;QACvC,OAAO,EAAE,8BAA8B;KAC1C;IACD,YAAY,EAAE;QACV,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC;QACrC,OAAO,EAAE,4BAA4B;KACxC;IACD,OAAO,EAAE;QACL,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC;KAClC;CACK,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QuerySettingsDialog/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,QAAQ,MAAM,QAAQ,CAAC;AAE9B,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC3C;QACI,KAAK,EAAE,iBAAiB,CAAC,QAAQ;QACjC,OAAO,EAAE,wBAAwB,CAAC,iBAAiB,CAAC,QAAQ,CAAC;QAC7D,IAAI,EAAE,IAAI,CAAC,uCAAuC,CAAC;QACnD,SAAS,EAAE,IAAI;KAClB;IACD;QACI,KAAK,EAAE,iBAAiB,CAAC,YAAY;QACrC,OAAO,EAAE,wBAAwB,CAAC,iBAAiB,CAAC,YAAY,CAAC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,CAAC;QACpD,IAAI,EAAE,IAAI,CAAC,iCAAiC,CAAC;KAChD;IACD;QACI,KAAK,EAAE,cAAc,CAAC,QAAQ;QAC9B,OAAO,EAAE,qBAAqB,CAAC,cAAc,CAAC,QAAQ,CAAC;QACvD,IAAI,EAAE,IAAI,CAAC,oCAAoC,CAAC;QAChD,SAAS,EAAE,IAAI;KAClB;IACD;QACI,KAAK,EAAE,cAAc,CAAC,UAAU;QAChC,OAAO,EAAE,qBAAqB,CAAC,cAAc,CAAC,UAAU,CAAC;QACzD,IAAI,EAAE,IAAI,CAAC,sCAAsC,CAAC;KACrD;IACD;QACI,KAAK,EAAE,cAAc,CAAC,KAAK;QAC3B,OAAO,EAAE,qBAAqB,CAAC,cAAc,CAAC,KAAK,CAAC;QACpD,IAAI,EAAE,IAAI,CAAC,iCAAiC,CAAC;KAChD;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,eAAe,EAAE;QACb,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC;QACxC,OAAO,EAAE,+BAA+B;KAC3C;IACD,SAAS,EAAE;QACP,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC;QAClC,OAAO,EAAE,yBAAyB;KACrC;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC;QACvC,OAAO,EAAE,8BAA8B;KAC1C;IACD,YAAY,EAAE;QACV,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC;QACrC,OAAO,EAAE,4BAA4B;KACxC;IACD,OAAO,EAAE;QACL,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC;KAClC;IACD,SAAS,EAAE;QACP,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC;KACrC;CACK,CAAC"}
@@ -5,9 +5,12 @@
5
5
  "form.transaction-mode": "Transaction mode",
6
6
  "form.statistics-mode": "Statistics collection mode",
7
7
  "form.tracing-level": "Tracing level",
8
+ "form.limit-rows": "Limit rows",
8
9
  "button-done": "Save",
9
10
  "button-cancel": "Cancel",
10
11
  "form.timeout.seconds": "sec",
12
+ "form.validation.timeout": "Must be positive",
13
+ "form.validation.limitRows": "Must be between 1 and 100000",
11
14
  "description.default": " (default)",
12
15
  "docs": "Documentation"
13
16
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "button-cancel" | "action.settings" | "form.query-mode" | "form.timeout" | "form.transaction-mode" | "form.statistics-mode" | "form.tracing-level" | "button-done" | "form.timeout.seconds" | "description.default" | "docs", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "button-cancel" | "action.settings" | "form.query-mode" | "form.timeout" | "form.transaction-mode" | "form.statistics-mode" | "form.tracing-level" | "form.limit-rows" | "button-done" | "form.timeout.seconds" | "form.validation.timeout" | "form.validation.limitRows" | "description.default" | "docs", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -5,9 +5,12 @@
5
5
  "form.transaction-mode": "Уровень изоляции",
6
6
  "form.statistics-mode": "Режим сбора статистики",
7
7
  "form.tracing-level": "Tracing level",
8
+ "form.limit-rows": "Лимит строк",
8
9
  "button-done": "Готово",
9
10
  "button-cancel": "Отменить",
10
11
  "form.timeout.seconds": "сек",
12
+ "form.validation.timeout": "Таймаут должен быть положительным",
13
+ "form.validation.limitRows": "Лимит строк должен быть между 1 и 100000",
11
14
  "description.default": " (default)",
12
15
  "docs": "Документация"
13
16
  }
@@ -78,7 +78,7 @@ export function SchemaTree(props) {
78
78
  showCreateDirectoryDialog: createDirectoryFeatureAvailable
79
79
  ? handleOpenCreateDirectoryDialog
80
80
  : undefined,
81
- }), renderAdditionalNodeElements: getSchemaControls(dispatch, {
81
+ }, rootPath), renderAdditionalNodeElements: getSchemaControls(dispatch, {
82
82
  setActivePath: onActivePathUpdate,
83
83
  }), activePath: currentPath, onActivePathUpdate: onActivePathUpdate, cache: false, virtualize: true }, schemaTreeKey)] }));
84
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Schem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,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,KAAC,qBAAqB,IAClB,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,mBAAmB,EACzB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,mBAAmB,GAChC,EACF,KAAC,cAAc,IAEX,SAAS,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,+BAA+B,CAAC,QAAQ,CAAC;oBAC/C,SAAS,EAAE,KAAK;iBACnB,EACD,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,CAClB,QAAQ,EACR;oBACI,aAAa,EAAE,kBAAkB;oBACjC,4BAA4B,EAAE,CAAC,QAAQ,EAAE,EAAE,CACvC,yBAAyB,CAAC,EAAC,GAAG,aAAa,EAAE,GAAG,QAAQ,EAAC,CAAC;oBAC9D,yBAAyB,EAAE,+BAA+B;wBACtD,CAAC,CAAC,+BAA+B;wBACjC,CAAC,CAAC,SAAS;iBAClB,EACD,QAAQ,CACX,EACD,4BAA4B,EAAE,iBAAiB,CAAC,QAAQ,EAAE;oBACtD,aAAa,EAAE,kBAAkB;iBACpC,CAAC,EACF,UAAU,EAAE,WAAW,EACvB,kBAAkB,EAAE,kBAAkB,EACtC,KAAK,EAAE,KAAK,EACZ,UAAU,UA1BL,aAAa,CA2BpB,IACW,CACpB,CAAC;AACN,CAAC"}
@@ -3,9 +3,10 @@ import React from 'react';
3
3
  import { skipToken } from '@reduxjs/toolkit/query';
4
4
  import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
5
5
  import { TableSkeleton } from '../../../../components/TableSkeleton/TableSkeleton';
6
- import { useGetSchemaQuery } from '../../../../store/reducers/schema/schema';
6
+ import { overviewApi } from '../../../../store/reducers/overview/overview';
7
7
  import { viewSchemaApi } from '../../../../store/reducers/viewSchema/viewSchema';
8
8
  import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants';
9
+ import { useAutoRefreshInterval } from '../../../../utils/hooks';
9
10
  import { isColumnEntityType, isExternalTableType, isRowTableType, isViewType, } from '../../utils/schema';
10
11
  import { KeysView } from './KeysView';
11
12
  import { SCHEMA_COLUMNS_WIDTH_LS_KEY, getColumnTableColumns, getExternalTableColumns, getRowTableColumns, getViewColumns, } from './columns';
@@ -13,7 +14,14 @@ import { prepareSchemaData, prepareViewSchema } from './prepareData';
13
14
  import { b } from './shared';
14
15
  import './SchemaViewer.scss';
15
16
  export const SchemaViewer = ({ type, path, tenantName, extended = false }) => {
16
- const { data: schemaData, isLoading: loading } = useGetSchemaQuery({ path, database: tenantName });
17
+ const [autoRefreshInterval] = useAutoRefreshInterval();
18
+ const { currentData, isLoading: loading } = overviewApi.useGetOverviewQuery({
19
+ paths: [path],
20
+ database: tenantName,
21
+ }, {
22
+ pollingInterval: autoRefreshInterval,
23
+ });
24
+ const { data: schemaData } = currentData !== null && currentData !== void 0 ? currentData : {};
17
25
  const viewSchemaRequestParams = isViewType(type) ? { path, database: tenantName } : skipToken;
18
26
  const { data: viewColumnsData, isLoading: isViewSchemaLoading } = viewSchemaApi.useGetViewSchemaQuery(viewSchemaRequestParams);
19
27
  const tableData = React.useMemo(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaViewer.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAC,aAAa,EAAC,MAAM,kDAAkD,CAAC;AAE/E,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B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,QAAQ,EAAE,IAAI,EAAC,SAAS,GAAG,EACrE,KAAC,QAAQ,IAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAC,cAAc,GAAG,IACxE,EACN,cAAK,SAAS,EAAE,CAAC,EAAE,YACf,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,2BAA2B,EAC9C,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAsB,GAClC,GACA,IACO,CACpB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"SchemaViewer.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,WAAW,EAAC,MAAM,8CAA8C,CAAC;AACzE,OAAO,EAAC,aAAa,EAAC,MAAM,kDAAkD,CAAC;AAE/E,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,sBAAsB,EAAC,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACH,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,UAAU,GACb,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EACH,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,cAAc,GACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;AACnE,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAE3B,OAAO,qBA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AAC,EAAE,YACf,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,2BAA2B,EAC9C,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAsB,GAClC,GACA,IACO,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { ColumnType } from '../../../../types/api/query';
2
2
  import type { EPathType, TEvDescribeSchemeResult, TFamilyDescription, TTableDescription } from '../../../../types/api/schema';
3
+ import type { Nullable } from '../../../../utils/typecheckers';
3
4
  import type { SchemaData } from './types';
4
5
  export declare function prepareFamilies(data?: TTableDescription): Record<number, TFamilyDescription>;
5
- export declare function prepareSchemaData(type?: EPathType, schema?: TEvDescribeSchemeResult): SchemaData[];
6
+ export declare function prepareSchemaData(type?: EPathType, schema?: Nullable<TEvDescribeSchemeResult>): SchemaData[];
6
7
  export declare function prepareViewSchema(columns?: ColumnType[]): SchemaData[];
@@ -1 +1 @@
1
- {"version":3,"file":"prepareData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/prepareData.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAI3F,SAAS,iBAAiB,CAAC,KAAoB;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,YAAY,CAAC,gBAAgB,EAAE,CAAC;QAC1C,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAwB;;IACpD,OAAO,CACH,MAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAA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CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAsB;IACpD,MAAM,eAAe,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QAC5C,8CAA8C;QAC9C,MAAM,IAAI,GAAG,CAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,QAAQ,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;QAEjF,OAAO;YACH,IAAI;YACJ,IAAI,EAAE,MAAM,CAAC,IAAI;SACpB,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,IAAI,EAAE,CAAC;AACjC,CAAC"}
@@ -6,10 +6,10 @@ import { PageError, isAccessError } from '../../components/Errors/PageError/Page
6
6
  import { LoaderWrapper } from '../../components/LoaderWrapper/LoaderWrapper';
7
7
  import SplitPane from '../../components/SplitPane';
8
8
  import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
9
- import { useGetSchemaQuery } from '../../store/reducers/schema/schema';
9
+ import { overviewApi } from '../../store/reducers/overview/overview';
10
10
  import { cn } from '../../utils/cn';
11
11
  import { DEFAULT_IS_TENANT_SUMMARY_COLLAPSED, DEFAULT_SIZE_TENANT_KEY } from '../../utils/constants';
12
- import { useTypedDispatch } from '../../utils/hooks';
12
+ import { useAutoRefreshInterval, useTypedDispatch } from '../../utils/hooks';
13
13
  import ObjectGeneral from './ObjectGeneral/ObjectGeneral';
14
14
  import { ObjectSummary } from './ObjectSummary/ObjectSummary';
15
15
  import i18n from './i18n';
@@ -26,6 +26,7 @@ const getTenantSummaryState = () => {
26
26
  };
27
27
  export function Tenant(props) {
28
28
  var _a;
29
+ const [autoRefreshInterval] = useAutoRefreshInterval();
29
30
  const [summaryVisibilityState, dispatchSummaryVisibilityAction] = React.useReducer(paneVisibilityToggleReducerCreator(DEFAULT_IS_TENANT_SUMMARY_COLLAPSED), undefined, getTenantSummaryState);
30
31
  const [{ name: tenantName, schema }] = useQueryParams({ name: StringParam, schema: StringParam });
31
32
  if (!tenantName) {
@@ -47,7 +48,10 @@ export function Tenant(props) {
47
48
  dispatch(setHeaderBreadcrumbs('tenant', { tenantName }));
48
49
  }, [tenantName, dispatch]);
49
50
  const path = schema !== null && schema !== void 0 ? schema : tenantName;
50
- const { data: currentItem, error, isLoading } = useGetSchemaQuery({ path, database: tenantName });
51
+ const { currentData, error, isLoading } = overviewApi.useGetOverviewQuery({ paths: [path], database: tenantName }, {
52
+ pollingInterval: autoRefreshInterval,
53
+ });
54
+ const { data: currentItem } = currentData !== null && currentData !== void 0 ? currentData : {};
51
55
  const { PathType: currentPathType, PathSubType: currentPathSubType } = ((_a = currentItem === null || currentItem === void 0 ? void 0 : currentItem.PathDescription) === null || _a === void 0 ? void 0 : _a.Self) || {};
52
56
  const showBlockingError = isAccessError(error);
53
57
  const onCollapseSummaryHandler = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"Tenant.js","sourceRoot":"","sources":["../../../src/containers/Tenant/Tenant.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,iBAAiB,EAAC,MAAM,oCAAoC,CAAC;AAErE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;A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AI,IAAI,CAAC,YAAY,CAAC,CAAC;IACzC,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,KAAC,MAAM,IACH,YAAY,EAAE,GAAG,KAAK,mBAAmB,EACzC,aAAa,EAAE,QAAQ,KAAK,mBAAmB,GACjD,EACF,KAAC,aAAa,IAAC,OAAO,EAAE,cAAc,YAClC,KAAC,SAAS,IAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,YACnD,MAAC,SAAS,IACN,kBAAkB,EAAE,uBAAuB,EAC3C,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EACtB,eAAe,EAAE,sBAAsB,CAAC,eAAe,EACvD,aAAa,EAAE,sBAAsB,CAAC,aAAa,EACnD,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,EAClB,0BAA0B,EAAE,0BAA0B,aAEtD,KAAC,aAAa,IACV,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,kBAAkB,EAC3B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,iBAAiB,EAAE,wBAAwB,EAC3C,eAAe,EAAE,sBAAsB,EACvC,WAAW,EAAE,sBAAsB,CAAC,SAAS,GAC/C,EACF,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACrB,KAAC,aAAa,IACV,IAAI,EAAE,eAAe,EACrB,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,EAClD,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,EAChD,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,GACZ,GACA,IACE,GACJ,GACA,IACd,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,27 @@
1
+ export declare const bindActions: (dispatch: React.Dispatch<any>) => {
2
+ createRowTable: () => void;
3
+ createColumnTable: () => void;
4
+ createAsyncReplication: () => void;
5
+ alterAsyncReplication: () => void;
6
+ dropAsyncReplication: () => void;
7
+ alterTable: () => void;
8
+ selectQuery: () => void;
9
+ upsertQuery: () => void;
10
+ createExternalTable: () => void;
11
+ dropExternalTable: () => void;
12
+ selectQueryFromExternalTable: () => void;
13
+ createTopic: () => void;
14
+ alterTopic: () => void;
15
+ dropTopic: () => void;
16
+ createView: () => void;
17
+ dropTable: () => void;
18
+ deleteRows: () => void;
19
+ updateTable: () => void;
20
+ createUser: () => void;
21
+ createGroup: () => void;
22
+ createCdcStream: () => void;
23
+ grantPrivilege: () => void;
24
+ revokePrivilege: () => void;
25
+ dropUser: () => void;
26
+ dropGroup: () => void;
27
+ };
@@ -0,0 +1,35 @@
1
+ import { changeUserInput } from '../../../store/reducers/executeQuery';
2
+ import { alterAsyncReplicationTemplate, alterTableTemplate, alterTopicTemplate, createAsyncReplicationTemplate, createCdcStreamTemplate, createColumnTableTemplate, createExternalTableTemplate, createGroupTemplate, createTableTemplate, createTopicTemplate, createUserTemplate, createViewTemplate, deleteRowsTemplate, dropAsyncReplicationTemplate, dropExternalTableTemplate, dropGroupTemplate, dropTableTemplate, dropTopicTemplate, dropUserTemplate, grantPrivilegeTemplate, revokePrivilegeTemplate, selectQueryTemplate, updateTableTemplate, upsertQueryTemplate, } from './newSQLQueryTemplates';
3
+ export const bindActions = (dispatch) => {
4
+ const inputQuery = (query) => () => {
5
+ dispatch(changeUserInput({ input: query() }));
6
+ };
7
+ return {
8
+ createRowTable: inputQuery(createTableTemplate),
9
+ createColumnTable: inputQuery(createColumnTableTemplate),
10
+ createAsyncReplication: inputQuery(createAsyncReplicationTemplate),
11
+ alterAsyncReplication: inputQuery(alterAsyncReplicationTemplate),
12
+ dropAsyncReplication: inputQuery(dropAsyncReplicationTemplate),
13
+ alterTable: inputQuery(alterTableTemplate),
14
+ selectQuery: inputQuery(selectQueryTemplate),
15
+ upsertQuery: inputQuery(upsertQueryTemplate),
16
+ createExternalTable: inputQuery(createExternalTableTemplate),
17
+ dropExternalTable: inputQuery(dropExternalTableTemplate),
18
+ selectQueryFromExternalTable: inputQuery(selectQueryTemplate),
19
+ createTopic: inputQuery(createTopicTemplate),
20
+ alterTopic: inputQuery(alterTopicTemplate),
21
+ dropTopic: inputQuery(dropTopicTemplate),
22
+ createView: inputQuery(createViewTemplate),
23
+ dropTable: inputQuery(dropTableTemplate),
24
+ deleteRows: inputQuery(deleteRowsTemplate),
25
+ updateTable: inputQuery(updateTableTemplate),
26
+ createUser: inputQuery(createUserTemplate),
27
+ createGroup: inputQuery(createGroupTemplate),
28
+ createCdcStream: inputQuery(createCdcStreamTemplate),
29
+ grantPrivilege: inputQuery(grantPrivilegeTemplate),
30
+ revokePrivilege: inputQuery(revokePrivilegeTemplate),
31
+ dropUser: inputQuery(dropUserTemplate),
32
+ dropGroup: inputQuery(dropGroupTemplate),
33
+ };
34
+ };
35
+ //# sourceMappingURL=newSQLQueryActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newSQLQueryActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/newSQLQueryActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AAErE,OAAO,EACH,6BAA6B,EAC7B,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,QAA6B,EAAE,EAAE;IACzD,MAAM,UAAU,GAAG,CAAC,KAAmB,EAAE,EAAE,CAAC,GAAG,EAAE;QAC7C,QAAQ,CAAC,eAAe,CAAC,EAA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C,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare const createTableTemplate: () => string;
2
+ export declare const createColumnTableTemplate: () => string;
3
+ export declare const deleteRowsTemplate: () => string;
4
+ export declare const updateTableTemplate: () => string;
5
+ export declare const createUserTemplate: () => string;
6
+ export declare const createGroupTemplate: () => string;
7
+ export declare const createAsyncReplicationTemplate: () => string;
8
+ export declare const alterTableTemplate: () => string;
9
+ export declare const selectQueryTemplate: () => string;
10
+ export declare const upsertQueryTemplate: () => string;
11
+ export declare const dropExternalTableTemplate: () => string;
12
+ export declare const dropUserTemplate: () => string;
13
+ export declare const dropGroupTemplate: () => string;
14
+ export declare const createCdcStreamTemplate: () => string;
15
+ export declare const grantPrivilegeTemplate: () => string;
16
+ export declare const revokePrivilegeTemplate: () => string;
17
+ export declare const createExternalTableTemplate: () => string;
18
+ export declare const createTopicTemplate: () => string;
19
+ export declare const alterTopicTemplate: () => string;
20
+ export declare const dropTopicTemplate: () => string;
21
+ export declare const createViewTemplate: () => string;
22
+ export declare const dropTableTemplate: () => string;
23
+ export declare const dropAsyncReplicationTemplate: () => string;
24
+ export declare const alterAsyncReplicationTemplate: () => string;
@@ -0,0 +1,228 @@
1
+ export const createTableTemplate = () => {
2
+ return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table
3
+ CREATE TABLE \`$path\` (
4
+ category_id Uint64 NOT NULL,
5
+ id Uint64,
6
+ expire_at Datetime,
7
+ updated_on Datetime,
8
+ name Text,
9
+ \`binary-payload\` Bytes,
10
+ attributes JsonDocument,
11
+ -- uncomment to add a secondary index
12
+ -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index
13
+ PRIMARY KEY (category_id, id)
14
+ )
15
+ WITH (
16
+ AUTO_PARTITIONING_BY_SIZE=\`$autoPartitioningBySize\`,
17
+ AUTO_PARTITIONING_PARTITION_SIZE_MB=\`$autoPartitioningPartitionSizeMb\`,
18
+ AUTO_PARTITIONING_BY_LOAD=\`$autoPartitioningByLoad\`,
19
+ AUTO_PARTITIONING_MIN_PARTITIONS_COUNT=\`$autoPartitioningMinPartitionsCount\`,
20
+ AUTO_PARTITIONING_MAX_PARTITIONS_COUNT=\`$autoPartitioningMaxPartitionsCount\`
21
+ -- uncomment to create a table with predefined partitions
22
+ -- , UNIFORM_PARTITIONS=\`$uniformPartitions\` -- The number of partitions for uniform initial table partitioning.
23
+ -- The primary key's first column must have type Uint64 or Uint32.
24
+ -- A created table is immediately divided into the specified number of partitions
25
+ -- uncomment to launch read only replicas in every AZ
26
+ -- , READ_REPLICAS_SETTINGS=\`$readReplicasSettings\` -- Enable read replicas for stale read, launch one replica in every availability zone
27
+ -- uncomment to enable ttl
28
+ -- , TTL=\`$ttl\` ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl
29
+ -- uncomment to create a table with a bloom filter
30
+ -- , KEY_BLOOM_FILTER=\`$keyBloomFilter\` -- With a Bloom filter, you can more efficiently determine
31
+ -- if some keys are missing in a table when making multiple single queries by the primary key.
32
+ )`;
33
+ };
34
+ export const createColumnTableTemplate = () => {
35
+ return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables
36
+ CREATE TABLE \`$path\` (
37
+ id Int64 NOT NULL,
38
+ author Text,
39
+ title Text,
40
+ body Text,
41
+ PRIMARY KEY (id)
42
+ )
43
+ PARTITION BY HASH(id)
44
+ WITH (STORE=\`$store\`)`;
45
+ };
46
+ export const deleteRowsTemplate = () => {
47
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete
48
+ DELETE FROM $path
49
+ WHERE Key1 == $key1 AND Key2 >= $key2;`;
50
+ };
51
+ export const updateTableTemplate = () => {
52
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update
53
+ UPDATE my_table
54
+ SET Value1 = YQL::ToString($value2 + 1), Value2 = $value2 - 1
55
+ WHERE Key1 > $key1;`;
56
+ };
57
+ export const createUserTemplate = () => {
58
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user
59
+ CREATE USER $user_name [option]
60
+ -- user_name: The name of the user. It may contain lowercase Latin letters and digits.
61
+ -- option: The password of the user:
62
+ -- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.
63
+ -- PASSWORD NULL creates a user with an empty password.`;
64
+ };
65
+ export const createGroupTemplate = () => {
66
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group
67
+ CREATE GROUP $group_name
68
+ -- group_name: The name of the group. It may contain lowercase Latin letters and digits.`;
69
+ };
70
+ export const createAsyncReplicationTemplate = () => {
71
+ return `CREATE OBJECT secret_name (TYPE SECRET) WITH value=\`$secretValue\`;
72
+
73
+ CREATE ASYNC REPLICATION my_replication
74
+ FOR \`$remotePath\` AS \`$localTableName\` --[, \`$anotherRemotePath\` AS \`$anotherLocalTableName\` ...]
75
+ WITH (
76
+ CONNECTION_STRING=\`$connectionString\`,
77
+ TOKEN_SECRET_NAME=\`$tokenSecretName\`
78
+ -- ENDPOINT=\`$endpoint\`,
79
+ -- DATABASE=\`$database\`,
80
+ -- USER=\`$user\`,
81
+ -- PASSWORD_SECRET_NAME=\`$passwordSecretName\`
82
+ );`;
83
+ };
84
+ export const alterTableTemplate = () => {
85
+ return `ALTER TABLE \`$path\`
86
+ ADD COLUMN numeric_column Int32;`;
87
+ };
88
+ export const selectQueryTemplate = () => {
89
+ return `SELECT *
90
+ FROM \`$path\`
91
+ LIMIT 10;`;
92
+ };
93
+ export const upsertQueryTemplate = () => {
94
+ return `UPSERT INTO \`$path\`
95
+ ( \`id\`, \`name\` )
96
+ VALUES ( );`;
97
+ };
98
+ export const dropExternalTableTemplate = () => {
99
+ return `DROP EXTERNAL TABLE \`$path\`;`;
100
+ };
101
+ export const dropUserTemplate = () => {
102
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user
103
+ DROP USER [ IF EXISTS ] $user_name [, ...]
104
+
105
+ -- IF EXISTS: Suppress an error if the user doesn't exist.
106
+ -- user_name: The name of the user to be deleted.`;
107
+ };
108
+ export const dropGroupTemplate = () => {
109
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group
110
+ DROP GROUP [ IF EXISTS ] $group_name [, ...]
111
+
112
+ -- IF EXISTS: Suppress an error if the group doesn't exist.
113
+ -- group_name: The name of the group to be deleted.`;
114
+ };
115
+ export const createCdcStreamTemplate = () => {
116
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create_changefeed
117
+ ADD CHANGEFEED $name WITH (
118
+ MODE = $mode, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES
119
+ FORMAT = $format, -- JSON or DEBEZIUM_JSON
120
+ VIRTUAL_TIMESTAMPS = $virtualTimestamps, -- true or false
121
+ RETENTION_PERIOD = $retentionPeriod, -- Interval value, e.g., Interval('PT24H')
122
+ TOPIC_MIN_ACTIVE_PARTITIONS = $topicMinActivePartitions,
123
+ INITIAL_SCAN = $initialScan -- true or false
124
+ )
125
+
126
+ -- MODE options:
127
+ -- KEYS_ONLY: Only the primary key components and change flag are written.
128
+ -- UPDATES: Updated column values that result from updates are written.
129
+ -- NEW_IMAGE: Any column values resulting from updates are written.
130
+ -- OLD_IMAGE: Any column values before updates are written.
131
+ -- NEW_AND_OLD_IMAGES: A combination of NEW_IMAGE and OLD_IMAGE modes.`;
132
+ };
133
+ export const grantPrivilegeTemplate = () => {
134
+ return `
135
+ GRANT $permission_name [, ...] | ALL [PRIVILEGES]
136
+ ON $path_to_scheme_object [, ...]
137
+ TO $role_name [, ...]
138
+ [WITH GRANT OPTION]
139
+
140
+ -- permission_name: The name of the access right to schema objects that needs to be assigned.
141
+ -- path_to_scheme_object: The path to the schema object for which rights are being granted.
142
+ -- role_name: The name of the user or group to whom rights on the schema object are being granted.
143
+ -- WITH GRANT OPTION: Using this construct gives the user or group of users the right to manage access rights -
144
+ -- to assign or revoke certain rights. This construct has functionality similar to granting
145
+ -- the "ydb.access.grant" or GRANT right. A subject with the ydb.access.grant right cannot
146
+ -- grant rights broader than they possess themselves.`;
147
+ };
148
+ export const revokePrivilegeTemplate = () => {
149
+ return `
150
+ REVOKE [GRANT OPTION FOR] $permission_name [, ...] | ALL [PRIVILEGES]
151
+ ON $path_to_scheme_object [, ...]
152
+ FROM $role_name [, ...]
153
+
154
+ -- permission_name: The name of the access right to schema objects that needs to be revoked.
155
+ -- path_to_scheme_object: The path to the schema object from which rights are being revoked.
156
+ -- role_name: The name of the user or group from whom rights on the schema object are being revoked.
157
+ -- GRANT OPTION FOR: Using this construct revokes the user's or group's right to manage access rights.
158
+ -- All previously granted rights by this user remain in effect.
159
+ -- This construct has functionality similar to revoking the "ydb.access.grant" or GRANT right.`;
160
+ };
161
+ export const createExternalTableTemplate = () => {
162
+ return `CREATE EXTERNAL TABLE \`$path\` (
163
+ column1 Int,
164
+ column2 Int
165
+ ) WITH (
166
+ DATA_SOURCE=\`$dataSource\`,
167
+ LOCATION=\`$location\`,
168
+ FORMAT=\`$format\`,
169
+ \`file_pattern\`=\`$filePattern\`
170
+ );`;
171
+ };
172
+ export const createTopicTemplate = () => {
173
+ return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_topic
174
+ CREATE TOPIC \`$path\` (
175
+ CONSUMER consumer1,
176
+ CONSUMER consumer2 WITH (read_from=\`$readFrom\`) -- Sets up the message write time starting from which the consumer will receive data.
177
+ -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).
178
+ -- Default value: now
179
+ ) WITH (
180
+ min_active_partitions=\`$minActivePartitions\`, -- Minimum number of topic partitions.
181
+ partition_count_limit=\`$partitionCountLimit\`, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.
182
+ retention_period=\`$retentionPeriod\`, -- Data retention period in the topic. Value type: Interval.
183
+ retention_storage_mb=\`$retentionStorageMb\`, -- Limit on the maximum disk space occupied by the topic data.
184
+ -- When this value is exceeded, the older data is cleared, like under a retention policy.
185
+ -- 0 is interpreted as unlimited.
186
+ partition_write_speed_bytes_per_second=\`$partitionWriteSpeedBytesPerSecond\`, -- Maximum allowed write speed per partition.
187
+ partition_write_burst_bytes=\`$partitionWriteBurstBytes\` -- Write quota allocated for write bursts.
188
+ -- When set to zero, the actual write_burst value is equalled to
189
+ -- the quota value (this allows write bursts of up to one second).
190
+ );`;
191
+ };
192
+ export const alterTopicTemplate = () => {
193
+ return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic
194
+ ALTER TOPIC \`$path\`
195
+ ADD CONSUMER new_consumer WITH (read_from=\`$readFrom\`), -- Sets up the message write time starting from which the consumer will receive data.
196
+ -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).
197
+ -- Default value: now
198
+ ALTER CONSUMER consumer1 SET (read_from=\`$readFrom\`),
199
+ DROP CONSUMER consumer2,
200
+ SET (
201
+ min_active_partitions=\`$minActivePartitions\`, -- Minimum number of topic partitions.
202
+ partition_count_limit=\`$partitionCountLimit\`, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.
203
+ retention_period=\`$retentionPeriod\`, -- Data retention period in the topic. Value type: Interval.
204
+ retention_storage_mb=\`$retentionStorageMb\`, -- Limit on the maximum disk space occupied by the topic data.
205
+ -- When this value is exceeded, the older data is cleared, like under a retention policy.
206
+ -- 0 is interpreted as unlimited.
207
+ partition_write_speed_bytes_per_second=\`$partitionWriteSpeedBytesPerSecond\`, -- Maximum allowed write speed per partition.
208
+ partition_write_burst_bytes=\`$partitionWriteBurstBytes\` -- Write quota allocated for write bursts.
209
+ -- When set to zero, the actual write_burst value is equalled to
210
+ -- the quota value (this allows write bursts of up to one second).
211
+ );`;
212
+ };
213
+ export const dropTopicTemplate = () => {
214
+ return `DROP TOPIC \`$path\`;`;
215
+ };
216
+ export const createViewTemplate = () => {
217
+ return `CREATE VIEW \`$path\` WITH (security_invoker=\`$securityInvoker\`) AS SELECT 1;`;
218
+ };
219
+ export const dropTableTemplate = () => {
220
+ return `DROP TABLE \`$path\`;`;
221
+ };
222
+ export const dropAsyncReplicationTemplate = () => {
223
+ return `DROP ASYNC REPLICATION \`$path\`;`;
224
+ };
225
+ export const alterAsyncReplicationTemplate = () => {
226
+ return `ALTER ASYNC REPLICATION \`$path\` SET (STATE=\`$state\`, FAILOVER_MODE=\`$failoverMode\`);`;
227
+ };
228
+ //# sourceMappingURL=newSQLQueryTemplates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newSQLQueryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/newSQLQueryTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACpC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BT,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,OAAO;;;;;;;;;wBASa,CAAC;AACzB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO;;uCAE4B,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACpC,OAAO;;;oBAGS,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO;;;;;4DAKiD,CAAC;AAC7D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACpC,OAAO;;yFAE8E,CAAC;AAC1F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC/C,OAAO;;;;;;;;;;;GAWR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO;qCAC0B,CAAC;AACtC,CAAC,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,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO,iFAAiF,CAAC;AAC7F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAClC,OAAO,uBAAuB,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC7C,OAAO,mCAAmC,CAAC;AAC/C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,OAAO,4FAA4F,CAAC;AACxG,CAAC,CAAC"}
@@ -75,6 +75,7 @@ const pathTypeToIsTable = {
75
75
  [EPathType.EPathTypeExternalDataSource]: false,
76
76
  [EPathType.EPathTypeReplication]: false,
77
77
  };
78
+ //if add entity with tableType, make sure that Schema is available in Diagnostics section
78
79
  export const isTableType = (pathType) => { var _a; return (_a = (pathType && pathTypeToIsTable[pathType])) !== null && _a !== void 0 ? _a : false; };
79
80
  // ====================
80
81
  const pathSubTypeToIsIndexImpl = {