ydb-embedded-ui 5.2.0 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (457) hide show
  1. package/dist/components/BasicNodeViewer/BasicNodeViewer.js +1 -1
  2. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +13 -0
  3. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +32 -0
  4. package/dist/components/CellWithPopover/CellWithPopover.js +1 -11
  5. package/dist/components/ClipboardButton/ClipboardButton.js +1 -11
  6. package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
  7. package/dist/components/ComponentsProvider/componentsRegistry.d.ts +1 -1
  8. package/dist/components/ComponentsProvider/registry.d.ts +3 -3
  9. package/dist/components/ContentWithPopup/ContentWithPopup.js +1 -11
  10. package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +6 -4
  11. package/dist/components/CriticalActionDialog/CriticalActionDialog.js +32 -7
  12. package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +8 -19
  13. package/dist/components/CriticalActionDialog/i18n/en.json +7 -0
  14. package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -0
  15. package/dist/components/CriticalActionDialog/i18n/index.js +4 -0
  16. package/dist/components/EnableFullscreenButton/EnableFullscreenButton.js +2 -2
  17. package/dist/components/EntityStatus/EntityStatus.d.ts +20 -37
  18. package/dist/components/EntityStatus/EntityStatus.js +17 -66
  19. package/dist/components/EntityStatus/EntityStatus.scss +1 -57
  20. package/dist/components/Errors/403/AccessDenied.js +1 -11
  21. package/dist/components/FormattedBytes/FormattedBytes.d.ts +1 -1
  22. package/dist/components/FormattedBytes/FormattedBytes.js +1 -11
  23. package/dist/components/FormattedBytes/utils.d.ts +1 -1
  24. package/dist/components/FullNodeViewer/FullNodeViewer.js +1 -2
  25. package/dist/components/Fullscreen/Fullscreen.js +11 -11
  26. package/dist/components/Illustration/Illustration.js +1 -11
  27. package/dist/components/InfoViewer/InfoViewer.d.ts +2 -2
  28. package/dist/components/InfoViewer/InfoViewer.js +1 -1
  29. package/dist/components/InfoViewer/formatters/cdcStream.d.ts +1 -1
  30. package/dist/components/InfoViewer/formatters/common.d.ts +1 -1
  31. package/dist/components/InfoViewer/formatters/pqGroup.d.ts +3 -3
  32. package/dist/components/InfoViewer/formatters/schema.d.ts +1 -1
  33. package/dist/components/InfoViewer/formatters/table.d.ts +4 -4
  34. package/dist/components/InfoViewer/utils.d.ts +3 -3
  35. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +7 -0
  36. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +7 -0
  37. package/dist/{containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss → components/InfoViewerSkeleton/InfoViewerSkeleton.scss} +1 -9
  38. package/dist/components/InternalLink/InternalLink.js +1 -11
  39. package/dist/components/LinkToSchemaObject/LinkToSchemaObject.js +1 -11
  40. package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +8 -0
  41. package/dist/components/LinkWithIcon/LinkWithIcon.js +14 -0
  42. package/dist/components/{ExternalLinkWithIcon/ExternalLinkWithIcon.scss → LinkWithIcon/LinkWithIcon.scss} +1 -1
  43. package/dist/components/MetricChart/MetricChart.d.ts +2 -1
  44. package/dist/components/MetricChart/MetricChart.js +8 -3
  45. package/dist/components/MetricChart/getChartData.d.ts +2 -1
  46. package/dist/components/MetricChart/getChartData.js +2 -2
  47. package/dist/components/MetricChart/getDefaultDataFormatter.d.ts +1 -1
  48. package/dist/components/MetricChart/i18n/en.json +3 -0
  49. package/dist/components/MetricChart/i18n/index.d.ts +2 -0
  50. package/dist/components/MetricChart/i18n/index.js +4 -0
  51. package/dist/components/MetricChart/reducer.d.ts +1 -1
  52. package/dist/components/MetricChart/types.d.ts +5 -5
  53. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +1 -1
  54. package/dist/components/PDiskInfo/PDiskInfo.d.ts +11 -0
  55. package/dist/components/PDiskInfo/PDiskInfo.js +71 -0
  56. package/dist/components/PDiskInfo/PDiskInfo.scss +8 -0
  57. package/dist/components/PDiskInfo/i18n/en.json +14 -0
  58. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -0
  59. package/dist/components/PDiskInfo/i18n/index.js +4 -0
  60. package/dist/components/PageMeta/PageMeta.d.ts +8 -0
  61. package/dist/components/PageMeta/PageMeta.js +7 -0
  62. package/dist/components/PageMeta/PageMeta.scss +10 -0
  63. package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
  64. package/dist/components/QueryResultTable/Cell/Cell.js +2 -2
  65. package/dist/components/QueryResultTable/QueryResultTable.js +1 -11
  66. package/dist/components/ShortyString/ShortyString.d.ts +1 -1
  67. package/dist/components/StatusIcon/StatusIcon.d.ts +12 -0
  68. package/dist/components/StatusIcon/StatusIcon.js +23 -0
  69. package/dist/components/StatusIcon/StatusIcon.scss +69 -0
  70. package/dist/components/Tablet/Tablet.scss +1 -1
  71. package/dist/components/TabletsOverall/TabletsOverall.js +6 -6
  72. package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +1 -1
  73. package/dist/components/TabletsStatistic/TabletsStatistic.scss +1 -1
  74. package/dist/components/Tag/Tag.d.ts +1 -1
  75. package/dist/components/UsageLabel/UsageLabel.js +1 -11
  76. package/dist/components/VirtualTable/TableHead.js +2 -2
  77. package/dist/components/VirtualTable/reducer.d.ts +2 -2
  78. package/dist/components/VirtualTable/types.d.ts +13 -13
  79. package/dist/components/slots/types.d.ts +1 -1
  80. package/dist/containers/App/App.d.ts +1 -1
  81. package/dist/containers/App/Content.js +10 -4
  82. package/dist/containers/App/Providers.d.ts +1 -1
  83. package/dist/containers/App/appSlots.d.ts +6 -0
  84. package/dist/containers/App/appSlots.js +1 -0
  85. package/dist/containers/AppWithClusters/AppWithClusters.d.ts +1 -1
  86. package/dist/containers/AppWithClusters/AppWithClusters.js +1 -1
  87. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -3
  88. package/dist/containers/Authentication/Authentication.js +2 -5
  89. package/dist/containers/Cluster/Cluster.js +4 -5
  90. package/dist/containers/Cluster/Cluster.scss +3 -0
  91. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +4 -4
  92. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -0
  93. package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -1
  94. package/dist/containers/Cluster/utils.d.ts +2 -2
  95. package/dist/containers/Clusters/Clusters.js +2 -4
  96. package/dist/containers/Clusters/Clusters.scss +1 -1
  97. package/dist/containers/Clusters/constants.d.ts +1 -1
  98. package/dist/containers/Clusters/useClustersList.js +2 -2
  99. package/dist/containers/Clusters/useSelectedColumns.d.ts +1 -1
  100. package/dist/containers/Header/Header.js +4 -5
  101. package/dist/containers/Header/breadcrumbs.js +28 -5
  102. package/dist/containers/Header/i18n/en.json +7 -0
  103. package/dist/containers/Header/i18n/index.d.ts +1 -0
  104. package/dist/containers/Header/i18n/index.js +4 -0
  105. package/dist/containers/Heatmap/Heatmap.js +3 -4
  106. package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +1 -1
  107. package/dist/containers/Node/Node.js +2 -3
  108. package/dist/containers/Node/NodeStructure/NodeStructure.d.ts +0 -1
  109. package/dist/containers/Node/NodeStructure/NodeStructure.js +2 -6
  110. package/dist/containers/Node/NodeStructure/Pdisk.js +9 -65
  111. package/dist/containers/Node/NodeStructure/Vdisk.d.ts +1 -1
  112. package/dist/containers/Node/NodeStructure/Vdisk.js +5 -3
  113. package/dist/containers/Nodes/Nodes.js +2 -3
  114. package/dist/containers/Nodes/NodesWrapper.js +1 -11
  115. package/dist/containers/Nodes/getNodes.js +1 -11
  116. package/dist/containers/Nodes/getNodesColumns.d.ts +1 -1
  117. package/dist/containers/PDisk/PDisk.d.ts +3 -0
  118. package/dist/containers/PDisk/PDisk.js +68 -0
  119. package/dist/containers/PDisk/PDisk.scss +41 -0
  120. package/dist/containers/PDisk/PDiskGroups.d.ts +10 -0
  121. package/dist/containers/PDisk/PDiskGroups.js +20 -0
  122. package/dist/containers/PDisk/i18n/en.json +6 -0
  123. package/dist/containers/PDisk/i18n/index.d.ts +1 -0
  124. package/dist/containers/PDisk/i18n/index.js +4 -0
  125. package/dist/containers/PDisk/shared.d.ts +10 -0
  126. package/dist/containers/PDisk/shared.js +2 -0
  127. package/dist/containers/ReduxTooltip/ReduxTooltip.d.ts +1 -1
  128. package/dist/containers/ReduxTooltip/ReduxTooltip.js +3 -2
  129. package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.d.ts +1 -9
  130. package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.js +2 -12
  131. package/dist/containers/Storage/PDisk/PDisk.d.ts +3 -3
  132. package/dist/containers/Storage/PDisk/PDisk.js +6 -53
  133. package/dist/containers/Storage/PDiskPopup/PDiskPopup.d.ts +3 -3
  134. package/dist/containers/Storage/PDiskPopup/PDiskPopup.js +3 -14
  135. package/dist/containers/Storage/Storage.js +2 -3
  136. package/dist/containers/Storage/StorageGroups/getGroups.js +1 -11
  137. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +2 -1
  138. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +22 -8
  139. package/dist/containers/Storage/StorageNodes/getNodes.js +1 -11
  140. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +1 -1
  141. package/dist/containers/Storage/StorageWrapper.js +1 -11
  142. package/dist/containers/Storage/UsageFilter/UsageFilter.js +1 -1
  143. package/dist/containers/Storage/VDisk/VDisk.d.ts +2 -3
  144. package/dist/containers/Storage/VDisk/VDisk.js +4 -64
  145. package/dist/containers/Storage/VDiskPopup/VDiskPopup.js +2 -12
  146. package/dist/containers/Storage/VirtualStorage.js +2 -3
  147. package/dist/containers/Storage/utils/index.d.ts +1 -3
  148. package/dist/containers/Storage/utils/index.js +0 -6
  149. package/dist/containers/Tablet/Tablet.js +4 -5
  150. package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +3 -2
  151. package/dist/containers/Tablet/TabletControls/TabletControls.js +2 -49
  152. package/dist/containers/Tablet/TabletTable/TabletTable.js +1 -1
  153. package/dist/containers/Tablets/Tablets.js +2 -3
  154. package/dist/containers/TabletsFilters/TabletsFilters.d.ts +2 -2
  155. package/dist/containers/Tenant/Acl/Acl.js +2 -3
  156. package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +2 -3
  157. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +3 -3
  158. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +6 -4
  159. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +2 -2
  160. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +2 -3
  161. package/dist/containers/Tenant/Diagnostics/Network/Network.d.ts +2 -2
  162. package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.d.ts +1 -1
  163. package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.js +7 -5
  164. package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +1 -1
  165. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +9 -5
  166. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.d.ts +1 -1
  167. package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.d.ts +1 -1
  168. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +2 -3
  169. package/dist/containers/Tenant/Diagnostics/Partitions/columns/columns.js +1 -1
  170. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +1 -1
  171. package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.d.ts +5 -1
  172. package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.js +2 -2
  173. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +0 -1
  174. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.d.ts +2 -2
  175. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +3 -2
  176. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.d.ts +2 -2
  177. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +3 -12
  178. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.d.ts +2 -1
  179. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.js +1 -1
  180. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.js +1 -1
  181. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +2 -3
  182. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +2 -3
  183. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +2 -3
  184. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -3
  185. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.d.ts +2 -1
  186. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.js +2 -2
  187. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +1 -1
  188. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -3
  189. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +6 -7
  190. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +1 -11
  191. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
  192. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -3
  193. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +2 -3
  194. package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.d.ts +2 -2
  195. package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.js +3 -4
  196. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +2 -5
  197. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +2 -3
  198. package/dist/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.js +1 -1
  199. package/dist/containers/Tenant/Info/ExternalTable/ExternalTable.js +3 -3
  200. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.d.ts +1 -0
  201. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -2
  202. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +2 -3
  203. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +2 -3
  204. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +3 -3
  205. package/dist/containers/Tenant/Query/Issues/models.d.ts +1 -1
  206. package/dist/containers/Tenant/Query/Preview/Preview.js +2 -3
  207. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +2 -3
  208. package/dist/containers/Tenant/Query/Query.js +2 -3
  209. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +8 -12
  210. package/dist/containers/Tenant/Query/QueryEditor/helpers.d.ts +4 -0
  211. package/dist/containers/Tenant/Query/QueryEditor/helpers.js +17 -0
  212. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +4 -4
  213. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +2 -2
  214. package/dist/containers/Tenant/Query/i18n/en.json +5 -1
  215. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  216. package/dist/containers/Tenant/Query/i18n/index.js +2 -5
  217. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +5 -3
  218. package/dist/containers/Tenant/Tenant.js +24 -8
  219. package/dist/containers/Tenant/utils/index.d.ts +1 -1
  220. package/dist/containers/Tenant/utils/schema.d.ts +12 -12
  221. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  222. package/dist/containers/Tenants/Tenants.js +3 -4
  223. package/dist/containers/UserSettings/Setting.d.ts +1 -1
  224. package/dist/containers/UserSettings/i18n/en.json +4 -0
  225. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  226. package/dist/containers/UserSettings/settings.d.ts +4 -1
  227. package/dist/containers/UserSettings/settings.js +21 -6
  228. package/dist/containers/Versions/NodesTable/NodesTable.js +1 -1
  229. package/dist/containers/Versions/Versions.js +2 -3
  230. package/dist/reportWebVitals.d.ts +1 -1
  231. package/dist/routes.d.ts +5 -2
  232. package/dist/routes.js +6 -1
  233. package/dist/services/api.d.ts +8 -7
  234. package/dist/services/api.js +3 -13
  235. package/dist/services/settings.d.ts +1 -1
  236. package/dist/services/settings.js +2 -1
  237. package/dist/store/configureStore.d.ts +310 -0
  238. package/dist/store/configureStore.js +56 -0
  239. package/dist/store/defaultStore.d.ts +168 -0
  240. package/dist/store/defaultStore.js +2 -0
  241. package/dist/store/getUrlData.d.ts +3 -3
  242. package/dist/store/getUrlData.js +4 -4
  243. package/dist/store/index.d.ts +3 -97
  244. package/dist/store/index.js +2 -49
  245. package/dist/store/reducers/authentication/authentication.d.ts +247 -4
  246. package/dist/store/reducers/authentication/types.d.ts +1 -1
  247. package/dist/store/reducers/cluster/cluster.d.ts +83 -2
  248. package/dist/store/reducers/cluster/types.d.ts +3 -3
  249. package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +83 -2
  250. package/dist/store/reducers/clusterNodes/types.d.ts +1 -1
  251. package/dist/store/reducers/clusters/clusters.d.ts +83 -2
  252. package/dist/store/reducers/clusters/selectors.d.ts +20 -6
  253. package/dist/store/reducers/clusters/selectors.js +1 -1
  254. package/dist/store/reducers/clusters/types.d.ts +1 -1
  255. package/dist/store/reducers/describe.d.ts +165 -3
  256. package/dist/store/reducers/describe.js +4 -3
  257. package/dist/store/reducers/executeQuery.d.ts +83 -2
  258. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +3 -3
  259. package/dist/store/reducers/executeTopQueries/types.d.ts +1 -1
  260. package/dist/store/reducers/explainQuery.d.ts +165 -3
  261. package/dist/store/reducers/header/header.d.ts +1 -1
  262. package/dist/store/reducers/header/types.d.ts +7 -4
  263. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +101 -0
  264. package/dist/store/reducers/{healthcheckInfo.js → healthcheckInfo/healthcheckInfo.js} +2 -2
  265. package/dist/store/reducers/healthcheckInfo/types.d.ts +19 -0
  266. package/dist/store/reducers/healthcheckInfo/utils.d.ts +3 -0
  267. package/dist/store/reducers/healthcheckInfo/utils.js +11 -0
  268. package/dist/store/reducers/heatmap.d.ts +83 -2
  269. package/dist/store/reducers/heatmap.js +2 -2
  270. package/dist/store/reducers/host.d.ts +83 -2
  271. package/dist/store/reducers/hotKeys/hotKeys.d.ts +1 -1
  272. package/dist/store/reducers/hotKeys/types.d.ts +1 -1
  273. package/dist/store/reducers/index.d.ts +95 -45
  274. package/dist/store/reducers/index.js +4 -2
  275. package/dist/store/reducers/network/network.d.ts +83 -2
  276. package/dist/store/reducers/network/types.d.ts +1 -1
  277. package/dist/store/reducers/node/node.d.ts +165 -3
  278. package/dist/store/reducers/node/selectors.d.ts +1 -1
  279. package/dist/store/reducers/node/selectors.js +5 -4
  280. package/dist/store/reducers/node/types.d.ts +8 -10
  281. package/dist/store/reducers/node/utils.js +3 -2
  282. package/dist/store/reducers/nodes/nodes.d.ts +165 -3
  283. package/dist/store/reducers/nodes/nodes.js +1 -11
  284. package/dist/store/reducers/nodes/selectors.d.ts +1 -1
  285. package/dist/store/reducers/nodes/selectors.js +1 -1
  286. package/dist/store/reducers/nodes/types.d.ts +4 -3
  287. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  288. package/dist/store/reducers/nodes/utils.js +3 -2
  289. package/dist/store/reducers/nodesList.d.ts +83 -2
  290. package/dist/store/reducers/olapStats.d.ts +83 -2
  291. package/dist/store/reducers/overview/overview.d.ts +166 -4
  292. package/dist/store/reducers/overview/overview.js +3 -3
  293. package/dist/store/reducers/overview/types.d.ts +6 -5
  294. package/dist/store/reducers/partitions/partitions.d.ts +83 -2
  295. package/dist/store/reducers/partitions/types.d.ts +1 -1
  296. package/dist/store/reducers/partitions/utils.d.ts +2 -2
  297. package/dist/store/reducers/pdisk/pdisk.d.ts +210 -0
  298. package/dist/store/reducers/pdisk/pdisk.js +64 -0
  299. package/dist/store/reducers/pdisk/types.d.ts +23 -0
  300. package/dist/store/reducers/pdisk/types.js +1 -0
  301. package/dist/store/reducers/pdisk/utils.d.ts +32 -0
  302. package/dist/store/reducers/pdisk/utils.js +32 -0
  303. package/dist/store/reducers/preview.d.ts +82 -1
  304. package/dist/store/reducers/saveQuery.d.ts +3 -3
  305. package/dist/store/reducers/schema/schema.d.ts +84 -4
  306. package/dist/store/reducers/schema/schema.js +4 -4
  307. package/dist/store/reducers/schema/types.d.ts +3 -3
  308. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +83 -2
  309. package/dist/store/reducers/schemaAcl/types.d.ts +1 -1
  310. package/dist/store/reducers/settings/settings.d.ts +2 -2
  311. package/dist/store/reducers/settings/types.d.ts +3 -3
  312. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +83 -2
  313. package/dist/store/reducers/shardsWorkload/types.d.ts +1 -1
  314. package/dist/store/reducers/storage/selectors.d.ts +1 -1
  315. package/dist/store/reducers/storage/selectors.js +1 -1
  316. package/dist/store/reducers/storage/storage.d.ts +165 -3
  317. package/dist/store/reducers/storage/storage.js +1 -11
  318. package/dist/store/reducers/storage/types.d.ts +10 -10
  319. package/dist/store/reducers/storage/utils.d.ts +4 -2
  320. package/dist/store/reducers/storage/utils.js +23 -30
  321. package/dist/store/reducers/tablet.d.ts +165 -3
  322. package/dist/store/reducers/tablet.js +1 -1
  323. package/dist/store/reducers/tablets.d.ts +83 -2
  324. package/dist/store/reducers/tabletsFilters.d.ts +101 -2
  325. package/dist/store/reducers/tabletsFilters.js +1 -1
  326. package/dist/store/reducers/tenant/tenant.d.ts +83 -2
  327. package/dist/store/reducers/tenant/types.d.ts +6 -6
  328. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +83 -2
  329. package/dist/store/reducers/tenantOverview/executeTopTables/types.d.ts +1 -1
  330. package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.d.ts +83 -2
  331. package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.js +1 -11
  332. package/dist/store/reducers/tenantOverview/topNodesByCpu/types.d.ts +2 -2
  333. package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.d.ts +83 -2
  334. package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.js +1 -11
  335. package/dist/store/reducers/tenantOverview/topNodesByLoad/types.d.ts +2 -2
  336. package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.d.ts +83 -2
  337. package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.js +1 -11
  338. package/dist/store/reducers/tenantOverview/topNodesByMemory/types.d.ts +2 -2
  339. package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +83 -2
  340. package/dist/store/reducers/tenantOverview/topQueries/types.d.ts +1 -1
  341. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +83 -2
  342. package/dist/store/reducers/tenantOverview/topShards/types.d.ts +1 -1
  343. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +83 -2
  344. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +1 -11
  345. package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +2 -2
  346. package/dist/store/reducers/tenants/selectors.d.ts +2 -2
  347. package/dist/store/reducers/tenants/selectors.js +1 -1
  348. package/dist/store/reducers/tenants/tenants.d.ts +83 -2
  349. package/dist/store/reducers/tenants/types.d.ts +2 -2
  350. package/dist/store/reducers/tenants/utils.d.ts +6 -6
  351. package/dist/store/reducers/tooltip.d.ts +4 -3
  352. package/dist/store/reducers/tooltip.js +2 -4
  353. package/dist/store/reducers/topic.d.ts +83 -3
  354. package/dist/store/reducers/topic.js +1 -1
  355. package/dist/store/state-url-mapping.d.ts +5 -3
  356. package/dist/store/state-url-mapping.js +9 -18
  357. package/dist/store/utils.d.ts +4 -4
  358. package/dist/types/additionalProps.d.ts +2 -2
  359. package/dist/types/api/enums.d.ts +1 -0
  360. package/dist/types/api/enums.js +1 -0
  361. package/dist/types/api/error.d.ts +1 -1
  362. package/dist/types/api/nodes.d.ts +1 -1
  363. package/dist/types/api/nodesList.d.ts +1 -1
  364. package/dist/types/api/query.d.ts +19 -19
  365. package/dist/types/api/render.d.ts +6 -3
  366. package/dist/types/api/storage.d.ts +1 -1
  367. package/dist/types/api/tablet.d.ts +1 -1
  368. package/dist/types/common.d.ts +1 -1
  369. package/dist/types/index.d.ts +1 -1
  370. package/dist/types/store/describe.d.ts +3 -3
  371. package/dist/types/store/executeQuery.d.ts +2 -2
  372. package/dist/types/store/explainQuery.d.ts +3 -3
  373. package/dist/types/store/heatmap.d.ts +3 -3
  374. package/dist/types/store/host.d.ts +1 -1
  375. package/dist/types/store/nodesList.d.ts +2 -2
  376. package/dist/types/store/olapStats.d.ts +1 -1
  377. package/dist/types/store/query.d.ts +5 -5
  378. package/dist/types/store/tablet.d.ts +3 -3
  379. package/dist/types/store/tablets.d.ts +2 -2
  380. package/dist/types/store/tooltip.d.ts +3 -5
  381. package/dist/types/store/topic.d.ts +1 -1
  382. package/dist/types/versions.d.ts +2 -2
  383. package/dist/utils/additionalProps.d.ts +1 -1
  384. package/dist/utils/additionalProps.js +1 -1
  385. package/dist/utils/bytesParsers/formatBytes.d.ts +2 -2
  386. package/dist/utils/bytesParsers/formatBytes.js +1 -11
  387. package/dist/utils/clusterVersionColors.d.ts +1 -1
  388. package/dist/utils/clusterVersionColors.js +2 -2
  389. package/dist/utils/constants.d.ts +2 -1
  390. package/dist/utils/constants.js +5 -4
  391. package/dist/utils/dataFormatters/dataFormatters.d.ts +12 -11
  392. package/dist/utils/developerUI/developerUI.d.ts +1 -1
  393. package/dist/utils/diagnostics.d.ts +2 -2
  394. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.d.ts +1 -0
  395. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +36 -0
  396. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.d.ts +1 -0
  397. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +142 -0
  398. package/dist/utils/disks/calculatePDiskSeverity.d.ts +2 -0
  399. package/dist/utils/disks/calculatePDiskSeverity.js +18 -0
  400. package/dist/utils/disks/calculateVDiskSeverity.d.ts +2 -0
  401. package/dist/utils/disks/calculateVDiskSeverity.js +36 -0
  402. package/dist/utils/disks/constants.d.ts +25 -0
  403. package/dist/utils/disks/constants.js +38 -0
  404. package/dist/utils/disks/getPDiskType.d.ts +7 -0
  405. package/dist/utils/{pdisk.js → disks/getPDiskType.js} +13 -15
  406. package/dist/utils/disks/helpers.d.ts +3 -0
  407. package/dist/utils/disks/helpers.js +10 -0
  408. package/dist/utils/disks/prepareDisks.d.ts +5 -0
  409. package/dist/utils/disks/prepareDisks.js +40 -0
  410. package/dist/utils/disks/types.d.ts +15 -0
  411. package/dist/utils/disks/types.js +1 -0
  412. package/dist/utils/hooks/index.d.ts +1 -0
  413. package/dist/utils/hooks/index.js +1 -0
  414. package/dist/utils/hooks/useSetting.js +2 -2
  415. package/dist/utils/hooks/useTableResize.d.ts +3 -3
  416. package/dist/utils/hooks/useTableSort.d.ts +1 -1
  417. package/dist/utils/hooks/useTypedDispatch.d.ts +2 -0
  418. package/dist/utils/hooks/useTypedDispatch.js +2 -0
  419. package/dist/utils/hooks/useTypedSelector.d.ts +1 -1
  420. package/dist/utils/index.d.ts +1 -0
  421. package/dist/utils/index.js +3 -0
  422. package/dist/utils/monaco.d.ts +1 -0
  423. package/dist/utils/monaco.js +14 -0
  424. package/dist/utils/monitoring.d.ts +3 -3
  425. package/dist/utils/nodes.d.ts +8 -2
  426. package/dist/utils/nodes.js +11 -0
  427. package/dist/utils/prepareBackend.d.ts +2 -2
  428. package/dist/utils/query.d.ts +2 -2
  429. package/dist/utils/query.js +1 -11
  430. package/dist/utils/storage.d.ts +1 -3
  431. package/dist/utils/storage.js +0 -1
  432. package/dist/utils/tablet.d.ts +1 -1
  433. package/dist/utils/timeframes.d.ts +1 -1
  434. package/dist/utils/typecheckers.d.ts +1 -0
  435. package/dist/utils/versions/getVersionsColors.d.ts +1 -1
  436. package/dist/utils/versions/getVersionsColors.js +2 -2
  437. package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
  438. package/dist/utils/yqlSuggestions/constants.d.ts +7 -0
  439. package/dist/utils/yqlSuggestions/constants.js +696 -0
  440. package/dist/utils/yqlSuggestions/generateSuggestions.d.ts +27 -0
  441. package/dist/utils/yqlSuggestions/generateSuggestions.js +252 -0
  442. package/dist/utils/yqlSuggestions/yqlSuggestions.d.ts +4 -0
  443. package/dist/utils/yqlSuggestions/yqlSuggestions.js +76 -0
  444. package/package.json +14 -10
  445. package/dist/assets/icons/flask.svg +0 -3
  446. package/dist/assets/icons/star.svg +0 -1
  447. package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.d.ts +0 -7
  448. package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.js +0 -9
  449. package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.d.ts +0 -7
  450. package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.js +0 -7
  451. package/dist/containers/Storage/utils/constants.d.ts +0 -2
  452. package/dist/containers/Storage/utils/constants.js +0 -2
  453. package/dist/containers/Tenant/Query/i18n/ru.json +0 -21
  454. package/dist/store/reducers/healthcheckInfo.d.ts +0 -21
  455. package/dist/types/store/healthcheck.d.ts +0 -20
  456. package/dist/utils/pdisk.d.ts +0 -17
  457. /package/dist/{types/store/healthcheck.js → store/reducers/healthcheckInfo/types.js} +0 -0
@@ -1,4 +1,6 @@
1
- export default function getLocationMiddleware(history: any, rootReducer: any): {
2
- locationMiddleware: any;
3
- reducersWithLocation: (state: any, action: any) => any;
1
+ import type { History } from 'history';
2
+ import type { Action, Reducer, UnknownAction } from '@reduxjs/toolkit';
3
+ export default function getLocationMiddleware<S = any, A extends Action = UnknownAction, P = S>(history: History, rootReducer: Reducer<S, A, P>): {
4
+ locationMiddleware: import("redux").Middleware<{}, any, import("redux").Dispatch<UnknownAction>>;
5
+ reducersWithLocation: Reducer<S, A, P>;
4
6
  };
@@ -1,14 +1,4 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
1
+ import { __rest } from "tslib";
12
2
  import { createReduxLocationActions } from 'redux-location-state';
13
3
  import qs from 'qs';
14
4
  import _ from 'lodash';
@@ -116,7 +106,11 @@ let prevSearchStringFromState = '';
116
106
  function overwriteLocationHandling(setupObject, nextState, prevLocation) {
117
107
  const nextLocation = stateToParams(setupObject, nextState, prevLocation);
118
108
  let { location } = nextLocation;
119
- if (location.search !== prevSearchStringFromState) {
109
+ if (location.search === prevSearchStringFromState) {
110
+ // nothing to do here, state parts represented in query params didn't change
111
+ return { location: prevLocation, shouldPush: false };
112
+ }
113
+ else {
120
114
  const searchRe = /\?\w+/;
121
115
  prevSearchStringFromState = location.search;
122
116
  if (searchRe.test(prevLocation.search)) {
@@ -124,10 +118,6 @@ function overwriteLocationHandling(setupObject, nextState, prevLocation) {
124
118
  }
125
119
  return Object.assign(Object.assign({}, nextLocation), { location });
126
120
  }
127
- else {
128
- // nothing to do here, state parts represented in query params didn't change
129
- return { location: prevLocation, shouldPush: false };
130
- }
131
121
  }
132
122
  function makeReducersWithLocation(setupObject, mapLocationToState, rootReducer) {
133
123
  const locationReducer = (state, action) => {
@@ -136,8 +126,9 @@ function makeReducersWithLocation(setupObject, mapLocationToState, rootReducer)
136
126
  return state;
137
127
  }
138
128
  if (LOCATION_POP === type || LOCATION_PUSH === type) {
139
- payload.query = parseQuery(setupObject, payload);
140
- return mapLocationToState(state, payload);
129
+ const location = payload;
130
+ location.query = parseQuery(setupObject, payload);
131
+ return mapLocationToState(state, location);
141
132
  }
142
133
  return state;
143
134
  };
@@ -1,18 +1,18 @@
1
- import type { Dispatch } from 'redux';
2
- import type { GetState } from './reducers';
1
+ import type { Dispatch } from '@reduxjs/toolkit';
2
+ import type { GetState } from '.';
3
3
  export declare const nop: (result: any) => any;
4
4
  export declare function createRequestActionTypes<Prefix extends string, Type extends string>(prefix: Prefix, type: Type): {
5
5
  readonly REQUEST: `${Prefix}/${Type}_REQUEST`;
6
6
  readonly SUCCESS: `${Prefix}/${Type}_SUCCESS`;
7
7
  readonly FAILURE: `${Prefix}/${Type}_FAILURE`;
8
8
  };
9
- declare type CreateApiRequestParams<Actions, Response, HandledResponse> = {
9
+ type CreateApiRequestParams<Actions, Response, HandledResponse> = {
10
10
  actions: Actions;
11
11
  request: Promise<Response>;
12
12
  dataHandler?: (data: Response, getState: GetState) => HandledResponse;
13
13
  };
14
14
  export declare function createApiRequest<Actions extends ReturnType<typeof createRequestActionTypes>, Response, HandledResponse>({ actions, request, dataHandler, }: CreateApiRequestParams<Actions, Response, HandledResponse>): (dispatch: Dispatch, getState: GetState) => Promise<HandledResponse | undefined>;
15
- export declare type ApiRequestAction<Actions extends ReturnType<typeof createRequestActionTypes>, SuccessResponse = unknown, ErrorResponse = unknown> = {
15
+ export type ApiRequestAction<Actions extends ReturnType<typeof createRequestActionTypes>, SuccessResponse = unknown, ErrorResponse = unknown> = {
16
16
  type: Actions['REQUEST'];
17
17
  } | {
18
18
  type: Actions['SUCCESS'];
@@ -18,8 +18,8 @@ export interface AdditionalTenantsProps {
18
18
  prepareTenantBackend?: (backend: string | undefined) => string | undefined;
19
19
  getMonitoringLink?: (name?: string, type?: ETenantType) => ReactNode;
20
20
  }
21
- export declare type NodeAddress = Pick<TSystemStateInfo, 'Host' | 'Endpoints' | 'NodeId'>;
22
- export declare type GetNodeRefFunc = (node?: NodeAddress) => string | null;
21
+ export type NodeAddress = Pick<TSystemStateInfo, 'Host' | 'Endpoints' | 'NodeId'>;
22
+ export type GetNodeRefFunc = (node?: NodeAddress) => string | null;
23
23
  export interface AdditionalNodesProps extends Record<string, unknown> {
24
24
  getNodeRef?: GetNodeRefFunc;
25
25
  }
@@ -1,6 +1,7 @@
1
1
  export declare enum EFlag {
2
2
  Grey = "Grey",
3
3
  Green = "Green",
4
+ Blue = "Blue",
4
5
  Yellow = "Yellow",
5
6
  Orange = "Orange",
6
7
  Red = "Red"
@@ -5,6 +5,7 @@ export var EFlag;
5
5
  (function (EFlag) {
6
6
  EFlag["Grey"] = "Grey";
7
7
  EFlag["Green"] = "Green";
8
+ EFlag["Blue"] = "Blue";
8
9
  EFlag["Yellow"] = "Yellow";
9
10
  EFlag["Orange"] = "Orange";
10
11
  EFlag["Red"] = "Red";
@@ -16,6 +16,6 @@ export interface NetworkError {
16
16
  number?: unknown;
17
17
  stack?: string;
18
18
  }
19
- export declare type AuthErrorResponse = IResponseError<{
19
+ export type AuthErrorResponse = IResponseError<{
20
20
  error?: string;
21
21
  }>;
@@ -73,7 +73,7 @@ export interface TSystemStateInfo {
73
73
  SharedCacheStats?: TNodeSharedCache;
74
74
  TotalSessions?: number;
75
75
  }
76
- export declare type PoolName = 'System' | 'User' | 'Batch' | 'IO' | 'IC';
76
+ export type PoolName = 'System' | 'User' | 'Batch' | 'IO' | 'IC';
77
77
  export interface TPoolStats {
78
78
  Name?: PoolName;
79
79
  /** double */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * source: https://github.com/ydb-platform/ydb/blob/main/library/cpp/actors/core/interconnect.h
5
5
  */
6
- export declare type TEvNodesInfo = TNodeInfo[];
6
+ export type TEvNodesInfo = TNodeInfo[];
7
7
  export interface TNodeInfo {
8
8
  Id?: number;
9
9
  Host?: string;
@@ -139,21 +139,21 @@ export interface QueryPlan {
139
139
  tables?: PlanTable[];
140
140
  meta: PlanMeta;
141
141
  }
142
- export declare type CellValue = string | number | null | undefined;
143
- export declare type KeyValueRow<T = CellValue> = {
142
+ export type CellValue = string | number | null | undefined;
143
+ export type KeyValueRow<T = CellValue> = {
144
144
  [key: string]: T;
145
145
  };
146
- export declare type ArrayRow<T = CellValue> = Array<T>;
146
+ export type ArrayRow<T = CellValue> = Array<T>;
147
147
  export interface ColumnType {
148
148
  name: string;
149
149
  type: string;
150
150
  }
151
151
  /** undefined = 'classic' */
152
- export declare type Schemas = 'classic' | 'modern' | 'ydb' | 'multi' | undefined;
152
+ export type Schemas = 'classic' | 'modern' | 'ydb' | 'multi' | undefined;
153
153
  /** undefined = 'execute' */
154
- export declare type ExecuteActions = 'execute' | 'execute-scan' | 'execute-script' | 'execute-data' | 'execute-query' | undefined;
155
- export declare type ExplainActions = 'explain' | 'explain-scan' | 'explain-script' | 'explain-data' | 'explain-query' | 'explain-ast';
156
- export declare type Actions = ExecuteActions | ExplainActions;
154
+ export type ExecuteActions = 'execute' | 'execute-scan' | 'execute-script' | 'execute-data' | 'execute-query' | undefined;
155
+ export type ExplainActions = 'explain' | 'explain-scan' | 'explain-script' | 'explain-data' | 'explain-query' | 'explain-ast';
156
+ export type Actions = ExecuteActions | ExplainActions;
157
157
  export interface ErrorResponse {
158
158
  error?: IssueMessage;
159
159
  issues?: IssueMessage[] | null;
@@ -175,7 +175,7 @@ export interface ExplainQueryResponse {
175
175
  ast?: string;
176
176
  plan?: QueryPlan;
177
177
  }
178
- export declare type ExplainResponse<Action extends ExplainActions> = Action extends 'explain-script' ? ExplainScriptResponse : ExplainQueryResponse;
178
+ export type ExplainResponse<Action extends ExplainActions> = Action extends 'explain-script' ? ExplainScriptResponse : ExplainQueryResponse;
179
179
  interface ModernSchemaResult {
180
180
  result?: ArrayRow[];
181
181
  columns?: ColumnType[];
@@ -189,13 +189,13 @@ interface MultiSchemaResult {
189
189
  interface DefaultSchemaResult {
190
190
  result?: KeyValueRow[];
191
191
  }
192
- declare type ResultFields<Schema extends Schemas> = Schema extends 'modern' ? ModernSchemaResult : Schema extends 'multi' ? MultiSchemaResult : DefaultSchemaResult;
192
+ type ResultFields<Schema extends Schemas> = Schema extends 'modern' ? ModernSchemaResult : Schema extends 'multi' ? MultiSchemaResult : DefaultSchemaResult;
193
193
  /**
194
194
  * meta.type = 'query'
195
195
  *
196
196
  * execute-scan, execute-data, execute-query
197
197
  */
198
- export declare type ExecuteQueryResponse<Schema extends Schemas> = {
198
+ export type ExecuteQueryResponse<Schema extends Schemas> = {
199
199
  plan?: QueryPlan;
200
200
  ast?: string;
201
201
  stats?: TKqpStatsQuery;
@@ -205,17 +205,17 @@ export declare type ExecuteQueryResponse<Schema extends Schemas> = {
205
205
  *
206
206
  * execute, execute-script
207
207
  */
208
- export declare type ExecuteScriptResponse<Schema extends Schemas> = {
208
+ export type ExecuteScriptResponse<Schema extends Schemas> = {
209
209
  plan?: ScriptPlan;
210
210
  ast?: string;
211
211
  stats?: TKqpStatsQuery;
212
212
  } & ResultFields<Schema>;
213
- export declare type ExecuteResponse<Action extends ExecuteActions, Schema extends Schemas> = Action extends 'execute-scan' | 'execute-data' | 'execute-query' ? ExecuteQueryResponse<Schema> : ExecuteScriptResponse<Schema>;
214
- export declare type QueryAPIResponse<Action extends Actions, Schema extends Schemas> = Action extends ExplainActions ? ExplainResponse<Action> : Action extends ExecuteActions ? ExecuteResponse<Action, Schema> : unknown;
215
- export declare type AnyExplainResponse = ExplainQueryResponse | ExplainScriptResponse;
216
- export declare type ExecuteModernResponse = ExecuteQueryResponse<'modern'> | ExecuteScriptResponse<'modern'>;
217
- export declare type ExecuteMultiResponse = ExecuteQueryResponse<'multi'> | ExecuteScriptResponse<'multi'>;
218
- export declare type ExecuteClassicResponse = ExecuteQueryResponse<'classic'> | ExecuteScriptResponse<'classic'>;
219
- export declare type ExecuteYdbResponse = ExecuteQueryResponse<'ydb'> | ExecuteScriptResponse<'ydb'>;
220
- export declare type AnyExecuteResponse = ExecuteModernResponse | ExecuteMultiResponse | ExecuteClassicResponse | ExecuteYdbResponse;
213
+ export type ExecuteResponse<Action extends ExecuteActions, Schema extends Schemas> = Action extends 'execute-scan' | 'execute-data' | 'execute-query' ? ExecuteQueryResponse<Schema> : ExecuteScriptResponse<Schema>;
214
+ export type QueryAPIResponse<Action extends Actions, Schema extends Schemas> = Action extends ExplainActions ? ExplainResponse<Action> : Action extends ExecuteActions ? ExecuteResponse<Action, Schema> : unknown;
215
+ export type AnyExplainResponse = ExplainQueryResponse | ExplainScriptResponse;
216
+ export type ExecuteModernResponse = ExecuteQueryResponse<'modern'> | ExecuteScriptResponse<'modern'>;
217
+ export type ExecuteMultiResponse = ExecuteQueryResponse<'multi'> | ExecuteScriptResponse<'multi'>;
218
+ export type ExecuteClassicResponse = ExecuteQueryResponse<'classic'> | ExecuteScriptResponse<'classic'>;
219
+ export type ExecuteYdbResponse = ExecuteQueryResponse<'ydb'> | ExecuteScriptResponse<'ydb'>;
220
+ export type AnyExecuteResponse = ExecuteModernResponse | ExecuteMultiResponse | ExecuteClassicResponse | ExecuteYdbResponse;
221
221
  export {};
@@ -3,10 +3,12 @@
3
3
  *
4
4
  * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_render.h
5
5
  */
6
- export declare type JsonRenderResponse = {
6
+ export type JsonRenderResponse = JsonRenderErrorResponse | MetricData[];
7
+ /** Response could be a plain html with 404 on ydb versions without charts support */
8
+ type JsonRenderErrorResponse = {
7
9
  error?: string;
8
10
  status?: string;
9
- } | MetricData[];
11
+ } | string;
10
12
  export interface MetricData {
11
13
  datapoints: MetricDatapoint[];
12
14
  target: string;
@@ -17,12 +19,13 @@ interface MetricTags {
17
19
  name: string;
18
20
  }
19
21
  /** [metric value - null or double, timestamp - seconds] */
20
- export declare type MetricDatapoint = [null | number, number];
22
+ export type MetricDatapoint = [null | number, number];
21
23
  export interface JsonRenderRequestParams {
22
24
  /** metrics names in format "target=queries.latencies.p50&target=queries.latencies.p75&target=queries.latencies.p90" */
23
25
  target: string;
24
26
  from: number;
25
27
  until: number;
26
28
  maxDataPoints: number;
29
+ database: string;
27
30
  }
28
31
  export {};
@@ -48,7 +48,7 @@ export interface TStorageGroupInfoV2 extends TStorageGroupInfo {
48
48
  /** uint64 */
49
49
  Usage?: string;
50
50
  }
51
- export declare type TStorageGroupInfo = TBSGroupStateInfo & THiveStorageGroupStats;
51
+ export type TStorageGroupInfo = TBSGroupStateInfo & THiveStorageGroupStats;
52
52
  interface TBSGroupStateInfo {
53
53
  GroupID?: number;
54
54
  ErasureSpecies?: string;
@@ -18,7 +18,7 @@ export interface TEvTabletStateResponse {
18
18
  * endpoint: /viewer/json/tabletinfo with merge=false in query.
19
19
  * Maps nodes to their tablets
20
20
  */
21
- export declare type UnmergedTEvTabletStateResponse = Record<string, TEvTabletStateResponse>;
21
+ export type UnmergedTEvTabletStateResponse = Record<string, TEvTabletStateResponse>;
22
22
  export interface TTabletStateInfo {
23
23
  /** uint64 */
24
24
  TabletId?: string;
@@ -1 +1 @@
1
- export declare type ValueOf<T extends Object> = T[keyof T];
1
+ export type ValueOf<T extends Object> = T[keyof T];
@@ -1,4 +1,4 @@
1
- export declare type RequiredField<Src, Fields extends keyof Src> = Src & Required<Pick<Src, Fields>>;
1
+ export type RequiredField<Src, Fields extends keyof Src> = Src & Required<Pick<Src, Fields>>;
2
2
  export declare enum YQLType {
3
3
  Bool = "Bool",
4
4
  Int8 = "Int8",
@@ -2,7 +2,7 @@ import { FETCH_DESCRIBE, setCurrentDescribePath, setDataWasNotLoaded } from '../
2
2
  import { ApiRequestAction } from '../../store/utils';
3
3
  import { IResponseError } from '../api/error';
4
4
  import { TEvDescribeSchemeResult } from '../api/schema';
5
- export declare type IDescribeData = Record<string, TEvDescribeSchemeResult>;
5
+ export type IDescribeData = Record<string, TEvDescribeSchemeResult>;
6
6
  export interface IDescribeState {
7
7
  loading: boolean;
8
8
  wasLoaded: boolean;
@@ -16,8 +16,8 @@ export interface IDescribeHandledResponse {
16
16
  data: IDescribeData | undefined;
17
17
  currentDescribe: IDescribeData | undefined;
18
18
  }
19
- declare type IDescribeApiRequestAction = ApiRequestAction<typeof FETCH_DESCRIBE, IDescribeHandledResponse, IResponseError>;
20
- export declare type IDescribeAction = IDescribeApiRequestAction | ReturnType<typeof setCurrentDescribePath> | ReturnType<typeof setDataWasNotLoaded>;
19
+ type IDescribeApiRequestAction = ApiRequestAction<typeof FETCH_DESCRIBE, IDescribeHandledResponse, IResponseError>;
20
+ export type IDescribeAction = IDescribeApiRequestAction | ReturnType<typeof setCurrentDescribePath> | ReturnType<typeof setDataWasNotLoaded>;
21
21
  export interface IDescribeRootStateSlice {
22
22
  describe: IDescribeState;
23
23
  }
@@ -17,8 +17,8 @@ export interface ExecuteQueryState {
17
17
  stats?: IQueryResult['stats'];
18
18
  error?: string | QueryErrorResponse;
19
19
  }
20
- declare type SendQueryAction = ApiRequestAction<typeof SEND_QUERY, IQueryResult, QueryError>;
21
- export declare type ExecuteQueryAction = SendQueryAction | ReturnType<typeof goToNextQuery> | ReturnType<typeof goToPreviousQuery> | ReturnType<typeof changeUserInput> | ReturnType<typeof saveQueryToHistory> | ReturnType<typeof setTenantPath>;
20
+ type SendQueryAction = ApiRequestAction<typeof SEND_QUERY, IQueryResult, QueryError>;
21
+ export type ExecuteQueryAction = SendQueryAction | ReturnType<typeof goToNextQuery> | ReturnType<typeof goToPreviousQuery> | ReturnType<typeof changeUserInput> | ReturnType<typeof saveQueryToHistory> | ReturnType<typeof setTenantPath>;
22
22
  export interface ExecuteQueryStateSlice {
23
23
  executeQuery: ExecuteQueryState;
24
24
  }
@@ -21,7 +21,7 @@ export interface ExplainQueryState {
21
21
  error?: string | QueryErrorResponse;
22
22
  errorAst?: string | QueryErrorResponse;
23
23
  }
24
- declare type GetExplainQueryAstAction = ApiRequestAction<typeof GET_EXPLAIN_QUERY_AST, IQueryResult, QueryError>;
25
- declare type GetExplainQueryAction = ApiRequestAction<typeof GET_EXPLAIN_QUERY, PreparedExplainResponse, QueryError>;
26
- export declare type ExplainQueryAction = GetExplainQueryAstAction | GetExplainQueryAction;
24
+ type GetExplainQueryAstAction = ApiRequestAction<typeof GET_EXPLAIN_QUERY_AST, IQueryResult, QueryError>;
25
+ type GetExplainQueryAction = ApiRequestAction<typeof GET_EXPLAIN_QUERY, PreparedExplainResponse, QueryError>;
26
+ export type ExplainQueryAction = GetExplainQueryAstAction | GetExplainQueryAction;
27
27
  export {};
@@ -7,7 +7,7 @@ import type { TMetrics } from '../api/tenant';
7
7
  export interface IHeatmapTabletData extends TTabletStateInfo {
8
8
  metrics?: TTableStats & TMetrics;
9
9
  }
10
- export declare type IHeatmapMetricValue = keyof TTableStats | keyof TMetrics;
10
+ export type IHeatmapMetricValue = keyof TTableStats | keyof TMetrics;
11
11
  interface IHeatmapMetric {
12
12
  value: IHeatmapMetricValue;
13
13
  content: IHeatmapMetricValue;
@@ -30,8 +30,8 @@ interface IHeatmapHandledResponse {
30
30
  data: IHeatmapTabletData[];
31
31
  metrics?: IHeatmapMetric[];
32
32
  }
33
- declare type IHeatmapApiRequestAction = ApiRequestAction<typeof FETCH_HEATMAP, IHeatmapHandledResponse, IResponseError>;
34
- export declare type IHeatmapAction = IHeatmapApiRequestAction | ReturnType<typeof setHeatmapOptions>;
33
+ type IHeatmapApiRequestAction = ApiRequestAction<typeof FETCH_HEATMAP, IHeatmapHandledResponse, IResponseError>;
34
+ export type IHeatmapAction = IHeatmapApiRequestAction | ReturnType<typeof setHeatmapOptions>;
35
35
  export interface IHeatmapRootStateSlice {
36
36
  heatmap: IHeatmapState;
37
37
  }
@@ -9,7 +9,7 @@ export interface IHostState {
9
9
  data?: TSystemStateInfo;
10
10
  error?: IResponseError;
11
11
  }
12
- export declare type IHostAction = ApiRequestAction<typeof FETCH_HOST, TEvSystemStateResponse, IResponseError>;
12
+ export type IHostAction = ApiRequestAction<typeof FETCH_HOST, TEvSystemStateResponse, IResponseError>;
13
13
  export interface IHostRootStateSlice {
14
14
  host: IHostState;
15
15
  }
@@ -8,8 +8,8 @@ export interface NodesListState {
8
8
  data?: TEvNodesInfo;
9
9
  error?: IResponseError;
10
10
  }
11
- export declare type NodesListAction = ApiRequestAction<typeof FETCH_NODES_LIST, TEvNodesInfo, IResponseError>;
12
- export declare type NodesMap = Map<number, string>;
11
+ export type NodesListAction = ApiRequestAction<typeof FETCH_NODES_LIST, TEvNodesInfo, IResponseError>;
12
+ export type NodesMap = Map<number, string>;
13
13
  export interface NodesListRootStateSlice {
14
14
  nodesList: NodesListState;
15
15
  }
@@ -7,4 +7,4 @@ export interface OlapStatsState {
7
7
  data?: IQueryResult;
8
8
  error?: unknown;
9
9
  }
10
- export declare type OlapStatsAction = ApiRequestAction<typeof FETCH_OLAP_STATS, IQueryResult, unknown> | ReturnType<typeof resetLoadingState>;
10
+ export type OlapStatsAction = ApiRequestAction<typeof FETCH_OLAP_STATS, IQueryResult, unknown> | ReturnType<typeof resetLoadingState>;
@@ -18,11 +18,11 @@ export interface QueryRequestParams {
18
18
  database: string;
19
19
  query: string;
20
20
  }
21
- export declare type QueryErrorResponse = IResponseError<QueryErrorResponseData>;
22
- export declare type QueryError = NetworkError | QueryErrorResponse;
23
- export declare type QueryAction = ValueOf<typeof QUERY_ACTIONS>;
24
- export declare type QueryMode = ValueOf<typeof QUERY_MODES>;
25
- export declare type QuerySyntax = ValueOf<typeof QUERY_SYNTAX>;
21
+ export type QueryErrorResponse = IResponseError<QueryErrorResponseData>;
22
+ export type QueryError = NetworkError | QueryErrorResponse;
23
+ export type QueryAction = ValueOf<typeof QUERY_ACTIONS>;
24
+ export type QueryMode = ValueOf<typeof QUERY_MODES>;
25
+ export type QuerySyntax = ValueOf<typeof QUERY_SYNTAX>;
26
26
  export interface SavedQuery {
27
27
  name: string;
28
28
  body: string;
@@ -26,9 +26,9 @@ export interface ITabletHandledResponse {
26
26
  export interface ITabletDescribeHandledResponse {
27
27
  tenantPath: string;
28
28
  }
29
- declare type ITabletApiRequestAction = ApiRequestAction<typeof FETCH_TABLET, ITabletHandledResponse, IResponseError>;
30
- declare type ITabletDescribeApiRequestAction = ApiRequestAction<typeof FETCH_TABLET_DESCRIBE, ITabletDescribeHandledResponse, IResponseError>;
31
- export declare type ITabletAction = ITabletApiRequestAction | ITabletDescribeApiRequestAction | ReturnType<typeof clearTabletData>;
29
+ type ITabletApiRequestAction = ApiRequestAction<typeof FETCH_TABLET, ITabletHandledResponse, IResponseError>;
30
+ type ITabletDescribeApiRequestAction = ApiRequestAction<typeof FETCH_TABLET_DESCRIBE, ITabletDescribeHandledResponse, IResponseError>;
31
+ export type ITabletAction = ITabletApiRequestAction | ITabletDescribeApiRequestAction | ReturnType<typeof clearTabletData>;
32
32
  export interface ITabletRootStateSlice {
33
33
  tablet: ITabletState;
34
34
  }
@@ -14,8 +14,8 @@ export interface ITabletsApiRequestParams {
14
14
  nodes?: string[];
15
15
  path?: string;
16
16
  }
17
- declare type ITabletsApiRequestAction = ApiRequestAction<typeof FETCH_TABLETS, TEvTabletStateResponse, IResponseError>;
18
- export declare type ITabletsAction = ITabletsApiRequestAction | (ReturnType<typeof clearWasLoadingFlag> | ReturnType<typeof setStateFilter> | ReturnType<typeof setTypeFilter>);
17
+ type ITabletsApiRequestAction = ApiRequestAction<typeof FETCH_TABLETS, TEvTabletStateResponse, IResponseError>;
18
+ export type ITabletsAction = ITabletsApiRequestAction | (ReturnType<typeof clearWasLoadingFlag> | ReturnType<typeof setStateFilter> | ReturnType<typeof setTypeFilter>);
19
19
  export interface ITabletsRootStateSlice {
20
20
  tablets: ITabletsState;
21
21
  }
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { hideTooltip, showTooltip } from '../../store/reducers/tooltip';
3
2
  import { tooltipTemplates } from '../../utils/tooltip';
4
- export declare type ITooltipTemplateType = keyof typeof tooltipTemplates;
3
+ export type ITooltipTemplateType = keyof typeof tooltipTemplates;
5
4
  export interface ITooltipPositions {
6
5
  left: number;
7
6
  top: number;
@@ -10,13 +9,12 @@ export interface ITooltipState {
10
9
  toolTipVisible: boolean;
11
10
  positions?: ITooltipPositions;
12
11
  currentHoveredRef?: EventTarget | null;
13
- template: (data: any) => JSX.Element;
14
12
  templateType: ITooltipTemplateType;
15
13
  data?: any;
16
14
  additionalData?: any;
17
15
  }
18
- export declare type ShowTooltipFunction = typeof showTooltip;
19
- export declare type ITooltipAction = ReturnType<typeof hideTooltip> | ReturnType<ShowTooltipFunction>;
16
+ export type ShowTooltipFunction = typeof showTooltip;
17
+ export type ITooltipAction = ReturnType<typeof hideTooltip> | ReturnType<ShowTooltipFunction>;
20
18
  export interface ITooltipRootStateSlice {
21
19
  tooltip: ITooltipState;
22
20
  }
@@ -22,7 +22,7 @@ export interface ITopicState {
22
22
  data?: DescribeTopicResult;
23
23
  error?: IResponseError;
24
24
  }
25
- export declare type ITopicAction = ApiRequestAction<typeof FETCH_TOPIC, DescribeTopicResult, IResponseError> | ReturnType<typeof setDataWasNotLoaded> | ReturnType<typeof cleanTopicData>;
25
+ export type ITopicAction = ApiRequestAction<typeof FETCH_TOPIC, DescribeTopicResult, IResponseError> | ReturnType<typeof setDataWasNotLoaded> | ReturnType<typeof cleanTopicData>;
26
26
  export interface ITopicRootStateSlice {
27
27
  topic: ITopicState;
28
28
  }
@@ -1,5 +1,5 @@
1
- export declare type VersionsMap = Map<string, Set<string>>;
2
- export declare type VersionToColorMap = Map<string, string>;
1
+ export type VersionsMap = Map<string, Set<string>>;
2
+ export type VersionToColorMap = Map<string, string>;
3
3
  export interface VersionValue {
4
4
  value: number;
5
5
  color: string | undefined;
@@ -1,2 +1,2 @@
1
1
  import type { AdditionalNodesProps } from '../types/additionalProps';
2
- export declare const getAdditionalNodesProps: (balancer?: any, useClusterBalancerAsBackend?: boolean | undefined) => AdditionalNodesProps;
2
+ export declare const getAdditionalNodesProps: (balancer?: string | undefined, useClusterBalancerAsBackend?: boolean) => AdditionalNodesProps;
@@ -2,6 +2,6 @@ import { backend } from '../store';
2
2
  import { getBackendFromRawNodeData } from './prepareBackend';
3
3
  export const getAdditionalNodesProps = (balancer = backend, useClusterBalancerAsBackend) => {
4
4
  return {
5
- getNodeRef: (node = {}) => getBackendFromRawNodeData(node, balancer, useClusterBalancerAsBackend),
5
+ getNodeRef: (node = {}) => getBackendFromRawNodeData(node, balancer !== null && balancer !== void 0 ? balancer : '', useClusterBalancerAsBackend),
6
6
  };
7
7
  };
@@ -20,7 +20,7 @@ declare const sizes: {
20
20
  label: string;
21
21
  };
22
22
  };
23
- export declare type BytesSizes = keyof typeof sizes;
23
+ export type BytesSizes = keyof typeof sizes;
24
24
  /**
25
25
  * This function is needed to keep more than 3 digits of the same size.
26
26
  *
@@ -44,7 +44,7 @@ interface FormatToSizeArgs {
44
44
  size?: BytesSizes;
45
45
  precision?: number;
46
46
  }
47
- export declare type FormatBytesArgs = Omit<FormatToSizeArgs, 'value'> & {
47
+ export type FormatBytesArgs = Omit<FormatToSizeArgs, 'value'> & {
48
48
  value: number | string | undefined | null;
49
49
  withSpeedLabel?: boolean;
50
50
  withSizeLabel?: boolean;
@@ -1,14 +1,4 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
1
+ import { __rest } from "tslib";
12
2
  import { formatNumber, roundToPrecision } from '../dataFormatters/dataFormatters';
13
3
  import { GIGABYTE, KILOBYTE, MEGABYTE, TERABYTE } from '../constants';
14
4
  import { isNumeric } from '../utils';
@@ -1,6 +1,6 @@
1
1
  import type { MetaClusterVersion } from '../types/api/meta';
2
2
  import type { VersionToColorMap } from '../types/versions';
3
- declare type VersionsMap = Map<number | string, Set<string>>;
3
+ type VersionsMap = Map<number | string, Set<string>>;
4
4
  export declare const getVersionMap: (versions: MetaClusterVersion[], initialMap?: VersionsMap) => VersionsMap;
5
5
  export declare const getVersionColors: (versionMap: VersionsMap) => VersionToColorMap;
6
6
  export interface ExtendedMetaClusterVersion extends MetaClusterVersion {
@@ -1,5 +1,5 @@
1
1
  import { uniqBy } from 'lodash';
2
- import { COLORS, GRAY_COLOR, getMinorVersion, hashCode } from './versions';
2
+ import { COLORS, GREY_COLOR, getMinorVersion, hashCode } from './versions';
3
3
  const UNDEFINED_COLOR_INDEX = '__no_color__';
4
4
  export const getVersionMap = (versions, initialMap = new Map()) => {
5
5
  versions.forEach(({ version, version_base_color_index: versionBaseColorIndex = UNDEFINED_COLOR_INDEX }) => {
@@ -21,7 +21,7 @@ export const getVersionColors = (versionMap) => {
21
21
  .sort((a, b) => hashCode(b) - hashCode(a))
22
22
  .forEach((minor, minorIndex) => {
23
23
  if (baseColorIndex === UNDEFINED_COLOR_INDEX) {
24
- versionToColor.set(minor, GRAY_COLOR);
24
+ versionToColor.set(minor, GREY_COLOR);
25
25
  }
26
26
  else {
27
27
  // baseColorIndex is numeric as we check if it is UNDEFINED_COLOR_INDEX before
@@ -33,7 +33,7 @@ export declare const TABLET_SYMBOLS: {
33
33
  TenantSlotBroker: string;
34
34
  BlockStoreDiskRegistry: string;
35
35
  };
36
- export declare const getTabletLabel: (type?: string | undefined) => string | undefined;
36
+ export declare const getTabletLabel: (type?: string) => string | undefined;
37
37
  export declare const LOAD_AVERAGE_TIME_INTERVALS: string[];
38
38
  export declare const COLORS_PRIORITY: {
39
39
  green: number;
@@ -85,3 +85,4 @@ export declare const TENANT_INITIAL_PAGE_KEY = "saved_tenant_initial_tab";
85
85
  export declare const USE_BACKEND_PARAMS_FOR_TABLES_KEY = "useBackendParamsForTables";
86
86
  export declare const QUERY_USE_MULTI_SCHEMA_KEY = "queryUseMultiSchema";
87
87
  export declare const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = "useClusterBalancerAsBacked";
88
+ export declare const ENABLE_AUTOCOMPLETE = "enableAutocomplete";
@@ -14,10 +14,10 @@ export const HOUR_IN_SECONDS = 60 * MINUTE_IN_SECONDS;
14
14
  export const DAY_IN_SECONDS = 24 * HOUR_IN_SECONDS;
15
15
  export const MS_IN_NANOSECONDS = 1000000;
16
16
  export const TABLET_COLORS = {
17
- Created: 'gray',
18
- ResolveStateStorage: 'lightgray',
19
- Candidate: 'lightgray',
20
- BlockBlobStorage: 'lightgray',
17
+ Created: 'grey',
18
+ ResolveStateStorage: 'lightgrey',
19
+ Candidate: 'lightgrey',
20
+ BlockBlobStorage: 'lightgrey',
21
21
  RebuildGraph: 'yellow',
22
22
  Restored: 'yellow',
23
23
  Discover: 'orange',
@@ -98,3 +98,4 @@ export const USE_BACKEND_PARAMS_FOR_TABLES_KEY = 'useBackendParamsForTables';
98
98
  // Enable schema that supports multiple resultsets
99
99
  export const QUERY_USE_MULTI_SCHEMA_KEY = 'queryUseMultiSchema';
100
100
  export const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = 'useClusterBalancerAsBacked';
101
+ export const ENABLE_AUTOCOMPLETE = 'enableAutocomplete';
@@ -1,21 +1,22 @@
1
1
  import type { TVDiskID, TVSlotId } from '../../types/api/vdisk';
2
- export declare const formatBytes: (bytes?: string | number | undefined) => string;
3
- export declare const formatBps: (bytes?: string | number | undefined) => string;
2
+ import { type BytesSizes } from '../bytesParsers/formatBytes';
3
+ export declare const formatBytes: (bytes?: string | number) => string;
4
+ export declare const formatBps: (bytes?: string | number) => string;
4
5
  export declare const formatBytesToGigabyte: (bytes: number | string) => string;
5
- export declare const stringifyVdiskId: (id?: TVDiskID | TVSlotId | undefined) => string;
6
+ export declare const stringifyVdiskId: (id?: TVDiskID | TVSlotId) => string;
6
7
  export declare const getPDiskId: (info: {
7
8
  NodeId?: number;
8
9
  PDiskId?: number;
9
10
  }) => string | undefined;
10
11
  export declare const formatUptime: (seconds: number) => string;
11
- export declare const formatMsToUptime: (ms?: number | undefined) => string | 0 | undefined;
12
- export declare const formatStorageValues: (value?: number | undefined, total?: number | undefined, size?: "b" | "kb" | "mb" | "gb" | "tb" | undefined) => string[];
13
- export declare const formatStorageValuesToGb: (value?: number | undefined, total?: number | undefined) => string[];
14
- export declare const formatStorageValuesToTb: (value?: number | undefined, total?: number | undefined) => string[];
12
+ export declare const formatMsToUptime: (ms?: number) => string | 0 | undefined;
13
+ export declare const formatStorageValues: (value?: number, total?: number, size?: BytesSizes) => string[];
14
+ export declare const formatStorageValuesToGb: (value?: number, total?: number) => string[];
15
+ export declare const formatStorageValuesToTb: (value?: number, total?: number) => string[];
15
16
  export declare const formatNumber: (number?: unknown) => string;
16
17
  export declare const roundToPrecision: (value: number | string, precision?: number) => number;
17
- export declare const formatCPU: (value?: string | number | undefined) => string | undefined;
18
- export declare const formatCPUWithLabel: (value?: number | undefined) => string | undefined;
19
- export declare const formatDateTime: (value?: string | number | undefined) => string;
18
+ export declare const formatCPU: (value?: number | string) => string | undefined;
19
+ export declare const formatCPUWithLabel: (value?: number) => string | undefined;
20
+ export declare const formatDateTime: (value?: number | string) => string;
20
21
  export declare const calcUptimeInSeconds: (milliseconds: number | string) => number;
21
- export declare const calcUptime: (milliseconds?: string | number | undefined) => string;
22
+ export declare const calcUptime: (milliseconds?: number | string) => string;