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,29 +1,30 @@
1
1
  import singleClusterMode from './singleClusterMode';
2
2
  export declare const rootReducer: {
3
3
  singleClusterMode: typeof singleClusterMode;
4
- nodes: import("redux").Reducer<import("./nodes/types").NodesState, import("./nodes/types").NodesAction>;
5
- topNodesByLoad: import("redux").Reducer<import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState, import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadAction>;
6
- topNodesByCpu: import("redux").Reducer<import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState, import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuAction>;
7
- topNodesByMemory: import("redux").Reducer<import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState, import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryAction>;
8
- cluster: import("redux").Reducer<import("./cluster/types").ClusterState, import("./cluster/types").ClusterAction>;
9
- clusterNodes: import("redux").Reducer<import("./clusterNodes/types").ClusterNodesState, import("./clusterNodes/types").ClusterNodesAction>;
10
- tenant: import("redux").Reducer<import("./tenant/types").TenantState, import("./tenant/types").TenantAction>;
11
- storage: import("redux").Reducer<import("./storage/types").StorageState, import("./storage/types").StorageAction>;
12
- topStorageGroups: import("redux").Reducer<import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState, import("./tenantOverview/topStorageGroups/types").TopStorageGroupsAction>;
13
- node: import("redux").Reducer<import("./node/types").NodeState, import("./node/types").NodeAction>;
14
- tooltip: import("redux").Reducer<import("../../types/store/tooltip").ITooltipState, import("../../types/store/tooltip").ITooltipAction>;
15
- tablets: import("redux").Reducer<import("../../types/store/tablets").ITabletsState, import("../../types/store/tablets").ITabletsAction>;
16
- schema: import("redux").Reducer<import("./schema/types").SchemaState, import("./schema/types").SchemaAction>;
17
- overview: import("redux").Reducer<import("./overview/types").OverviewState, import("./overview/types").OverviewAction>;
18
- olapStats: import("redux").Reducer<import("../../types/store/olapStats").OlapStatsState, import("../../types/store/olapStats").OlapStatsAction>;
19
- host: import("redux").Reducer<import("../../types/store/host").IHostState, import("../../types/store/host").IHostAction>;
20
- network: import("redux").Reducer<import("./network/types").NetworkState, import("./network/types").NetworkAction>;
21
- tenants: import("redux").Reducer<import("./tenants/types").TenantsState, import("./tenants/types").TenantsAction>;
22
- tablet: import("redux").Reducer<import("../../types/store/tablet").ITabletState, import("../../types/store/tablet").ITabletAction>;
23
- topic: import("redux").Reducer<import("../../types/store/topic").ITopicState, import("../../types/store/topic").ITopicAction>;
24
- partitions: import("redux").Reducer<import("./partitions/types").PartitionsState, import("./partitions/types").PartitionsAction>;
25
- executeQuery: import("redux").Reducer<import("../../types/store/executeQuery").ExecuteQueryState, import("../../types/store/executeQuery").ExecuteQueryAction>;
26
- explainQuery: import("redux").Reducer<import("../../types/store/explainQuery").ExplainQueryState, import("../../types/store/explainQuery").ExplainQueryAction>;
4
+ nodes: import("redux").Reducer<import("./nodes/types").NodesState, import("./nodes/types").NodesAction, import("./nodes/types").NodesState>;
5
+ topNodesByLoad: import("redux").Reducer<import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState, import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadAction, import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState>;
6
+ topNodesByCpu: import("redux").Reducer<import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState, import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuAction, import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState>;
7
+ topNodesByMemory: import("redux").Reducer<import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState, import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryAction, import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState>;
8
+ cluster: import("redux").Reducer<import("./cluster/types").ClusterState, import("./cluster/types").ClusterAction, import("./cluster/types").ClusterState>;
9
+ clusterNodes: import("redux").Reducer<import("./clusterNodes/types").ClusterNodesState, import("./clusterNodes/types").ClusterNodesAction, import("./clusterNodes/types").ClusterNodesState>;
10
+ tenant: import("redux").Reducer<import("./tenant/types").TenantState, import("./tenant/types").TenantAction, import("./tenant/types").TenantState>;
11
+ storage: import("redux").Reducer<import("./storage/types").StorageState, import("./storage/types").StorageAction, import("./storage/types").StorageState>;
12
+ topStorageGroups: import("redux").Reducer<import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState, import("./tenantOverview/topStorageGroups/types").TopStorageGroupsAction, import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState>;
13
+ node: import("redux").Reducer<import("./node/types").NodeState, import("./node/types").NodeAction, import("./node/types").NodeState>;
14
+ tooltip: import("redux").Reducer<import("../../types/store/tooltip").ITooltipState, import("../../types/store/tooltip").ITooltipAction, import("../../types/store/tooltip").ITooltipState>;
15
+ tablets: import("redux").Reducer<import("../../types/store/tablets").ITabletsState, import("../../types/store/tablets").ITabletsAction, import("../../types/store/tablets").ITabletsState>;
16
+ schema: import("redux").Reducer<import("./schema/types").SchemaState, import("./schema/types").SchemaAction, import("./schema/types").SchemaState>;
17
+ overview: import("redux").Reducer<import("./overview/types").OverviewState, import("./overview/types").OverviewAction, import("./overview/types").OverviewState>;
18
+ olapStats: import("redux").Reducer<import("../../types/store/olapStats").OlapStatsState, import("../../types/store/olapStats").OlapStatsAction, import("../../types/store/olapStats").OlapStatsState>;
19
+ host: import("redux").Reducer<import("../../types/store/host").IHostState, import("../../types/store/host").IHostAction, import("../../types/store/host").IHostState>;
20
+ network: import("redux").Reducer<import("./network/types").NetworkState, import("./network/types").NetworkAction, import("./network/types").NetworkState>;
21
+ tenants: import("redux").Reducer<import("./tenants/types").TenantsState, import("./tenants/types").TenantsAction, import("./tenants/types").TenantsState>;
22
+ tablet: import("redux").Reducer<import("../../types/store/tablet").ITabletState, import("../../types/store/tablet").ITabletAction, import("../../types/store/tablet").ITabletState>;
23
+ topic: import("redux").Reducer<import("../../types/store/topic").ITopicState, import("../../types/store/topic").ITopicAction, import("../../types/store/topic").ITopicState>;
24
+ partitions: import("redux").Reducer<import("./partitions/types").PartitionsState, import("./partitions/types").PartitionsAction, import("./partitions/types").PartitionsState>;
25
+ pDisk: import("redux").Reducer<import("./pdisk/types").PDiskState, import("./pdisk/types").PDiskAction, import("./pdisk/types").PDiskState>;
26
+ executeQuery: import("redux").Reducer<import("../../types/store/executeQuery").ExecuteQueryState, import("../../types/store/executeQuery").ExecuteQueryAction, import("../../types/store/executeQuery").ExecuteQueryState>;
27
+ explainQuery: import("redux").Reducer<import("../../types/store/explainQuery").ExplainQueryState, import("../../types/store/explainQuery").ExplainQueryAction, import("../../types/store/explainQuery").ExplainQueryState>;
27
28
  tabletsFilters: (state: {
28
29
  data: undefined;
29
30
  loading: boolean;
@@ -67,8 +68,8 @@ export declare const rootReducer: {
67
68
  wasLoaded: boolean;
68
69
  stateFilter: never[];
69
70
  };
70
- heatmap: import("redux").Reducer<import("../../types/store/heatmap").IHeatmapState, import("../../types/store/heatmap").IHeatmapAction>;
71
- settings: import("redux").Reducer<import("./settings/types").SettingsState, import("./settings/types").SettingsAction>;
71
+ heatmap: import("redux").Reducer<import("../../types/store/heatmap").IHeatmapState, import("../../types/store/heatmap").IHeatmapAction, import("../../types/store/heatmap").IHeatmapState>;
72
+ settings: import("redux").Reducer<import("./settings/types").SettingsState, import("./settings/types").SettingsAction, import("./settings/types").SettingsState>;
72
73
  preview: (state: {
73
74
  loading: boolean;
74
75
  wasLoaded: boolean;
@@ -80,36 +81,36 @@ export declare const rootReducer: {
80
81
  readonly type: "preview/SET_QUERY_OPTIONS";
81
82
  readonly data: any;
82
83
  }) => any;
83
- nodesList: import("redux").Reducer<import("../../types/store/nodesList").NodesListState, import("../../types/store/nodesList").NodesListAction>;
84
- describe: import("redux").Reducer<import("../../types/store/describe").IDescribeState, import("../../types/store/describe").IDescribeAction>;
85
- schemaAcl: import("redux").Reducer<import("./schemaAcl/types").SchemaAclState, import("./schemaAcl/types").SchemaAclAction>;
86
- executeTopQueries: import("redux").Reducer<import("./executeTopQueries/types").ITopQueriesState, import("./executeTopQueries/types").ITopQueriesAction>;
87
- executeTopTables: import("redux").Reducer<import("./tenantOverview/executeTopTables/types").TopTablesState, import("./tenantOverview/executeTopTables/types").TopTablesAction>;
88
- tenantOverviewTopQueries: import("redux").Reducer<import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState, import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesAction>;
89
- healthcheckInfo: import("redux").Reducer<import("../../types/store/healthcheck").IHealthcheckInfoState, import("../../types/store/healthcheck").IHealthCheckInfoAction>;
90
- shardsWorkload: import("redux").Reducer<import("./shardsWorkload/types").IShardsWorkloadState, import("./shardsWorkload/types").IShardsWorkloadAction>;
91
- tenantOverviewTopShards: import("redux").Reducer<import("./tenantOverview/topShards/types").TenantOverviewTopShardsState, import("./tenantOverview/topShards/types").TenantOverviewTopShardsAction>;
92
- hotKeys: import("redux").Reducer<import("./hotKeys/types").HotKeysState, import("./hotKeys/types").HotKeysAction>;
93
- authentication: import("redux").Reducer<import("./authentication/types").AuthenticationState, import("./authentication/types").AuthenticationAction>;
84
+ nodesList: import("redux").Reducer<import("../../types/store/nodesList").NodesListState, import("../../types/store/nodesList").NodesListAction, import("../../types/store/nodesList").NodesListState>;
85
+ describe: import("redux").Reducer<import("../../types/store/describe").IDescribeState, import("../../types/store/describe").IDescribeAction, import("../../types/store/describe").IDescribeState>;
86
+ schemaAcl: import("redux").Reducer<import("./schemaAcl/types").SchemaAclState, import("./schemaAcl/types").SchemaAclAction, import("./schemaAcl/types").SchemaAclState>;
87
+ executeTopQueries: import("redux").Reducer<import("./executeTopQueries/types").ITopQueriesState, import("./executeTopQueries/types").ITopQueriesAction, import("./executeTopQueries/types").ITopQueriesState>;
88
+ executeTopTables: import("redux").Reducer<import("./tenantOverview/executeTopTables/types").TopTablesState, import("./tenantOverview/executeTopTables/types").TopTablesAction, import("./tenantOverview/executeTopTables/types").TopTablesState>;
89
+ tenantOverviewTopQueries: import("redux").Reducer<import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState, import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesAction, import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState>;
90
+ healthcheckInfo: import("redux").Reducer<import("./healthcheckInfo/types").HealthcheckInfoState, import("./healthcheckInfo/types").HealthCheckInfoAction, import("./healthcheckInfo/types").HealthcheckInfoState>;
91
+ shardsWorkload: import("redux").Reducer<import("./shardsWorkload/types").IShardsWorkloadState, import("./shardsWorkload/types").IShardsWorkloadAction, import("./shardsWorkload/types").IShardsWorkloadState>;
92
+ tenantOverviewTopShards: import("redux").Reducer<import("./tenantOverview/topShards/types").TenantOverviewTopShardsState, import("./tenantOverview/topShards/types").TenantOverviewTopShardsAction, import("./tenantOverview/topShards/types").TenantOverviewTopShardsState>;
93
+ hotKeys: import("redux").Reducer<import("./hotKeys/types").HotKeysState, import("./hotKeys/types").HotKeysAction, import("./hotKeys/types").HotKeysState>;
94
+ authentication: import("redux").Reducer<import("./authentication/types").AuthenticationState, import("./authentication/types").AuthenticationAction, import("./authentication/types").AuthenticationState>;
94
95
  header: import("redux").Reducer<import("./header/types").HeaderState, {
95
96
  readonly type: "header/SET_HEADER_BREADCRUMBS";
96
97
  readonly page: import("./header/types").Page;
97
98
  readonly options: {} | import("./header/types").TabletsBreadcrumbsOptions | import("./header/types").TenantBreadcrumbsOptions | import("./header/types").ClusterBreadcrumbsOptions | import("./header/types").NodeBreadcrumbsOptions | import("./header/types").TabletBreadcrumbsOptions;
98
- }>;
99
+ }, import("./header/types").HeaderState>;
99
100
  saveQuery: import("redux").Reducer<string | null, {
100
101
  readonly type: "SET_QUERY_NAME_TO_EDIT";
101
102
  readonly data: string;
102
103
  } | {
103
104
  readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
104
- }>;
105
+ }, string | null>;
105
106
  fullscreen: (state: boolean | undefined, action: {
106
107
  readonly type: "ENABLE_FULLSCREEN_MODE";
107
108
  } | {
108
109
  readonly type: "DISABLE_FULLSCREEN_MODE";
109
110
  }) => boolean;
110
- clusters: import("redux").Reducer<import("./clusters/types").ClustersState, import("./clusters/types").ClustersAction>;
111
+ clusters: import("redux").Reducer<import("./clusters/types").ClustersState, import("./clusters/types").ClustersAction, import("./clusters/types").ClustersState>;
111
112
  };
112
- declare const combinedReducer: import("redux").Reducer<import("redux").CombinedState<{
113
+ declare const combinedReducer: import("redux").Reducer<{
113
114
  singleClusterMode: boolean;
114
115
  nodes: import("./nodes/types").NodesState;
115
116
  topNodesByLoad: import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
@@ -132,6 +133,7 @@ declare const combinedReducer: import("redux").Reducer<import("redux").CombinedS
132
133
  tablet: import("../../types/store/tablet").ITabletState;
133
134
  topic: import("../../types/store/topic").ITopicState;
134
135
  partitions: import("./partitions/types").PartitionsState;
136
+ pDisk: import("./pdisk/types").PDiskState;
135
137
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
136
138
  explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
137
139
  tabletsFilters: {
@@ -180,7 +182,7 @@ declare const combinedReducer: import("redux").Reducer<import("redux").CombinedS
180
182
  executeTopQueries: import("./executeTopQueries/types").ITopQueriesState;
181
183
  executeTopTables: import("./tenantOverview/executeTopTables/types").TopTablesState;
182
184
  tenantOverviewTopQueries: import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
183
- healthcheckInfo: import("../../types/store/healthcheck").IHealthcheckInfoState;
185
+ healthcheckInfo: import("./healthcheckInfo/types").HealthcheckInfoState;
184
186
  shardsWorkload: import("./shardsWorkload/types").IShardsWorkloadState;
185
187
  tenantOverviewTopShards: import("./tenantOverview/topShards/types").TenantOverviewTopShardsState;
186
188
  hotKeys: import("./hotKeys/types").HotKeysState;
@@ -189,8 +191,56 @@ declare const combinedReducer: import("redux").Reducer<import("redux").CombinedS
189
191
  saveQuery: string | null;
190
192
  fullscreen: boolean;
191
193
  clusters: import("./clusters/types").ClustersState;
192
- }>, any>;
193
- export declare type RootReducer = typeof combinedReducer;
194
- export declare type RootState = ReturnType<RootReducer>;
195
- export declare type GetState = () => RootState;
194
+ }, any, Partial<{
195
+ singleClusterMode: boolean | undefined;
196
+ nodes: never;
197
+ topNodesByLoad: never;
198
+ topNodesByCpu: never;
199
+ topNodesByMemory: never;
200
+ cluster: never;
201
+ clusterNodes: never;
202
+ tenant: never;
203
+ storage: never;
204
+ topStorageGroups: never;
205
+ node: never;
206
+ tooltip: never;
207
+ tablets: never;
208
+ schema: never;
209
+ overview: never;
210
+ olapStats: never;
211
+ host: never;
212
+ network: never;
213
+ tenants: never;
214
+ tablet: never;
215
+ topic: never;
216
+ partitions: never;
217
+ pDisk: never;
218
+ executeQuery: never;
219
+ explainQuery: never;
220
+ tabletsFilters: {
221
+ data: undefined;
222
+ loading: boolean;
223
+ wasLoaded: boolean;
224
+ stateFilter: never[];
225
+ typeFilter: never[];
226
+ } | undefined;
227
+ heatmap: never;
228
+ settings: never;
229
+ preview: never;
230
+ nodesList: never;
231
+ describe: never;
232
+ schemaAcl: never;
233
+ executeTopQueries: never;
234
+ executeTopTables: never;
235
+ tenantOverviewTopQueries: never;
236
+ healthcheckInfo: never;
237
+ shardsWorkload: never;
238
+ tenantOverviewTopShards: never;
239
+ hotKeys: never;
240
+ authentication: never;
241
+ header: never;
242
+ saveQuery: never;
243
+ fullscreen: never;
244
+ clusters: never;
245
+ }>>;
196
246
  export default combinedReducer;
@@ -1,4 +1,4 @@
1
- import { combineReducers } from 'redux';
1
+ import { combineReducers } from '@reduxjs/toolkit';
2
2
  import nodes from './nodes/nodes';
3
3
  import { topNodesByLoad } from './tenantOverview/topNodesByLoad/topNodesByLoad';
4
4
  import { topNodesByCpu } from './tenantOverview/topNodesByCpu/topNodesByCpu';
@@ -20,6 +20,7 @@ import tenants from './tenants/tenants';
20
20
  import tablet from './tablet';
21
21
  import topic from './topic';
22
22
  import partitions from './partitions/partitions';
23
+ import pDisk from './pdisk/pdisk';
23
24
  import executeQuery from './executeQuery';
24
25
  import explainQuery from './explainQuery';
25
26
  import tabletsFilters from './tabletsFilters';
@@ -31,7 +32,7 @@ import schemaAcl from './schemaAcl/schemaAcl';
31
32
  import executeTopQueries from './executeTopQueries/executeTopQueries';
32
33
  import { tenantOverviewTopQueries } from './tenantOverview/topQueries/tenantOverviewTopQueries';
33
34
  import executeTopTables from './tenantOverview/executeTopTables/executeTopTables';
34
- import healthcheckInfo from './healthcheckInfo';
35
+ import healthcheckInfo from './healthcheckInfo/healthcheckInfo';
35
36
  import shardsWorkload from './shardsWorkload/shardsWorkload';
36
37
  import { tenantOverviewTopShards } from './tenantOverview/topShards/tenantOverviewTopShards';
37
38
  import hotKeys from './hotKeys/hotKeys';
@@ -65,6 +66,7 @@ export const rootReducer = {
65
66
  tablet,
66
67
  topic,
67
68
  partitions,
69
+ pDisk,
68
70
  executeQuery,
69
71
  explainQuery,
70
72
  tabletsFilters,
@@ -1,4 +1,4 @@
1
- import { Reducer } from 'redux';
1
+ import type { Reducer } from '@reduxjs/toolkit';
2
2
  import type { NetworkAction, NetworkState } from './types';
3
3
  export declare const FETCH_ALL_NODES_NETWORK: {
4
4
  readonly REQUEST: "network/FETCH_ALL_NODES_NETWORK_REQUEST";
@@ -9,5 +9,86 @@ declare const network: Reducer<NetworkState, NetworkAction>;
9
9
  export declare const setDataWasNotLoaded: () => {
10
10
  readonly type: "network/SET_DATA_WAS_NOT_LOADED";
11
11
  };
12
- export declare const getNetworkInfo: (tenant: string) => (dispatch: import("redux").Dispatch<import("redux").AnyAction>, getState: import("..").GetState) => Promise<unknown>;
12
+ export declare const getNetworkInfo: (tenant: string) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
13
+ singleClusterMode: boolean;
14
+ nodes: import("../nodes/types").NodesState;
15
+ topNodesByLoad: import("../tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
16
+ topNodesByCpu: import("../tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
17
+ topNodesByMemory: import("../tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
18
+ cluster: import("../cluster/types").ClusterState;
19
+ clusterNodes: import("../clusterNodes/types").ClusterNodesState;
20
+ tenant: import("../tenant/types").TenantState;
21
+ storage: import("../storage/types").StorageState;
22
+ topStorageGroups: import("../tenantOverview/topStorageGroups/types").TopStorageGroupsState;
23
+ node: import("../node/types").NodeState;
24
+ tooltip: import("../../../types/store/tooltip").ITooltipState;
25
+ tablets: import("../../../types/store/tablets").ITabletsState;
26
+ schema: import("../schema/types").SchemaState;
27
+ overview: import("../overview/types").OverviewState;
28
+ olapStats: import("../../../types/store/olapStats").OlapStatsState;
29
+ host: import("../../../types/store/host").IHostState;
30
+ network: NetworkState;
31
+ tenants: import("../tenants/types").TenantsState;
32
+ tablet: import("../../../types/store/tablet").ITabletState;
33
+ topic: import("../../../types/store/topic").ITopicState;
34
+ partitions: import("../partitions/types").PartitionsState;
35
+ pDisk: import("../pdisk/types").PDiskState;
36
+ executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
37
+ explainQuery: import("../../../types/store/explainQuery").ExplainQueryState;
38
+ tabletsFilters: {
39
+ loading: boolean;
40
+ requestTime: number;
41
+ data: undefined;
42
+ wasLoaded: boolean;
43
+ stateFilter: never[];
44
+ typeFilter: never[];
45
+ } | {
46
+ tabletsData: any;
47
+ nodes: any;
48
+ loading: boolean;
49
+ wasLoaded: boolean;
50
+ timeoutForRequest: number;
51
+ error: undefined;
52
+ data: undefined;
53
+ stateFilter: never[];
54
+ typeFilter: never[];
55
+ } | {
56
+ error: any;
57
+ loading: boolean;
58
+ data: undefined;
59
+ wasLoaded: boolean;
60
+ stateFilter: never[];
61
+ typeFilter: never[];
62
+ } | {
63
+ stateFilter: any;
64
+ data: undefined;
65
+ loading: boolean;
66
+ wasLoaded: boolean;
67
+ typeFilter: never[];
68
+ } | {
69
+ typeFilter: any;
70
+ data: undefined;
71
+ loading: boolean;
72
+ wasLoaded: boolean;
73
+ stateFilter: never[];
74
+ };
75
+ heatmap: import("../../../types/store/heatmap").IHeatmapState;
76
+ settings: import("../settings/types").SettingsState;
77
+ preview: any;
78
+ nodesList: import("../../../types/store/nodesList").NodesListState;
79
+ describe: import("../../../types/store/describe").IDescribeState;
80
+ schemaAcl: import("../schemaAcl/types").SchemaAclState;
81
+ executeTopQueries: import("../executeTopQueries/types").ITopQueriesState;
82
+ executeTopTables: import("../tenantOverview/executeTopTables/types").TopTablesState;
83
+ tenantOverviewTopQueries: import("../tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
84
+ healthcheckInfo: import("../healthcheckInfo/types").HealthcheckInfoState;
85
+ shardsWorkload: import("../shardsWorkload/types").IShardsWorkloadState;
86
+ tenantOverviewTopShards: import("../tenantOverview/topShards/types").TenantOverviewTopShardsState;
87
+ hotKeys: import("../hotKeys/types").HotKeysState;
88
+ authentication: import("../authentication/types").AuthenticationState;
89
+ header: import("../header/types").HeaderState;
90
+ saveQuery: string | null;
91
+ fullscreen: boolean;
92
+ clusters: import("../clusters/types").ClustersState;
93
+ }) => Promise<unknown>;
13
94
  export default network;
@@ -8,4 +8,4 @@ export interface NetworkState {
8
8
  data?: TNetInfo;
9
9
  error?: IResponseError;
10
10
  }
11
- export declare type NetworkAction = ApiRequestAction<typeof FETCH_ALL_NODES_NETWORK, TNetInfo, IResponseError> | ReturnType<typeof setDataWasNotLoaded>;
11
+ export type NetworkAction = ApiRequestAction<typeof FETCH_ALL_NODES_NETWORK, TNetInfo, IResponseError> | ReturnType<typeof setDataWasNotLoaded>;
@@ -1,4 +1,4 @@
1
- import { Reducer } from 'redux';
1
+ import type { Reducer } from '@reduxjs/toolkit';
2
2
  import type { NodeAction, NodeState } from './types';
3
3
  export declare const FETCH_NODE: {
4
4
  readonly REQUEST: "node/FETCH_NODE_REQUEST";
@@ -11,8 +11,170 @@ export declare const FETCH_NODE_STRUCTURE: {
11
11
  readonly FAILURE: "node/FETCH_NODE_STRUCTURE_FAILURE";
12
12
  };
13
13
  declare const node: Reducer<NodeState, NodeAction>;
14
- export declare const getNodeInfo: (id: string) => (dispatch: import("redux").Dispatch<import("redux").AnyAction>, getState: import("..").GetState) => Promise<import("./types").PreparedNode | undefined>;
15
- export declare const getNodeStructure: (nodeId: string) => (dispatch: import("redux").Dispatch<import("redux").AnyAction>, getState: import("..").GetState) => Promise<unknown>;
14
+ export declare const getNodeInfo: (id: string) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
15
+ singleClusterMode: boolean;
16
+ nodes: import("../nodes/types").NodesState;
17
+ topNodesByLoad: import("../tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
18
+ topNodesByCpu: import("../tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
19
+ topNodesByMemory: import("../tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
20
+ cluster: import("../cluster/types").ClusterState;
21
+ clusterNodes: import("../clusterNodes/types").ClusterNodesState;
22
+ tenant: import("../tenant/types").TenantState;
23
+ storage: import("../storage/types").StorageState;
24
+ topStorageGroups: import("../tenantOverview/topStorageGroups/types").TopStorageGroupsState;
25
+ node: NodeState;
26
+ tooltip: import("../../../types/store/tooltip").ITooltipState;
27
+ tablets: import("../../../types/store/tablets").ITabletsState;
28
+ schema: import("../schema/types").SchemaState;
29
+ overview: import("../overview/types").OverviewState;
30
+ olapStats: import("../../../types/store/olapStats").OlapStatsState;
31
+ host: import("../../../types/store/host").IHostState;
32
+ network: import("../network/types").NetworkState;
33
+ tenants: import("../tenants/types").TenantsState;
34
+ tablet: import("../../../types/store/tablet").ITabletState;
35
+ topic: import("../../../types/store/topic").ITopicState;
36
+ partitions: import("../partitions/types").PartitionsState;
37
+ pDisk: import("../pdisk/types").PDiskState;
38
+ executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
39
+ explainQuery: import("../../../types/store/explainQuery").ExplainQueryState;
40
+ tabletsFilters: {
41
+ loading: boolean;
42
+ requestTime: number;
43
+ data: undefined;
44
+ wasLoaded: boolean;
45
+ stateFilter: never[];
46
+ typeFilter: never[];
47
+ } | {
48
+ tabletsData: any;
49
+ nodes: any;
50
+ loading: boolean;
51
+ wasLoaded: boolean;
52
+ timeoutForRequest: number;
53
+ error: undefined;
54
+ data: undefined;
55
+ stateFilter: never[];
56
+ typeFilter: never[];
57
+ } | {
58
+ error: any;
59
+ loading: boolean;
60
+ data: undefined;
61
+ wasLoaded: boolean;
62
+ stateFilter: never[];
63
+ typeFilter: never[];
64
+ } | {
65
+ stateFilter: any;
66
+ data: undefined;
67
+ loading: boolean;
68
+ wasLoaded: boolean;
69
+ typeFilter: never[];
70
+ } | {
71
+ typeFilter: any;
72
+ data: undefined;
73
+ loading: boolean;
74
+ wasLoaded: boolean;
75
+ stateFilter: never[];
76
+ };
77
+ heatmap: import("../../../types/store/heatmap").IHeatmapState;
78
+ settings: import("../settings/types").SettingsState;
79
+ preview: any;
80
+ nodesList: import("../../../types/store/nodesList").NodesListState;
81
+ describe: import("../../../types/store/describe").IDescribeState;
82
+ schemaAcl: import("../schemaAcl/types").SchemaAclState;
83
+ executeTopQueries: import("../executeTopQueries/types").ITopQueriesState;
84
+ executeTopTables: import("../tenantOverview/executeTopTables/types").TopTablesState;
85
+ tenantOverviewTopQueries: import("../tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
86
+ healthcheckInfo: import("../healthcheckInfo/types").HealthcheckInfoState;
87
+ shardsWorkload: import("../shardsWorkload/types").IShardsWorkloadState;
88
+ tenantOverviewTopShards: import("../tenantOverview/topShards/types").TenantOverviewTopShardsState;
89
+ hotKeys: import("../hotKeys/types").HotKeysState;
90
+ authentication: import("../authentication/types").AuthenticationState;
91
+ header: import("../header/types").HeaderState;
92
+ saveQuery: string | null;
93
+ fullscreen: boolean;
94
+ clusters: import("../clusters/types").ClustersState;
95
+ }) => Promise<import("./types").PreparedNode | undefined>;
96
+ export declare const getNodeStructure: (nodeId: string) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
97
+ singleClusterMode: boolean;
98
+ nodes: import("../nodes/types").NodesState;
99
+ topNodesByLoad: import("../tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
100
+ topNodesByCpu: import("../tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
101
+ topNodesByMemory: import("../tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
102
+ cluster: import("../cluster/types").ClusterState;
103
+ clusterNodes: import("../clusterNodes/types").ClusterNodesState;
104
+ tenant: import("../tenant/types").TenantState;
105
+ storage: import("../storage/types").StorageState;
106
+ topStorageGroups: import("../tenantOverview/topStorageGroups/types").TopStorageGroupsState;
107
+ node: NodeState;
108
+ tooltip: import("../../../types/store/tooltip").ITooltipState;
109
+ tablets: import("../../../types/store/tablets").ITabletsState;
110
+ schema: import("../schema/types").SchemaState;
111
+ overview: import("../overview/types").OverviewState;
112
+ olapStats: import("../../../types/store/olapStats").OlapStatsState;
113
+ host: import("../../../types/store/host").IHostState;
114
+ network: import("../network/types").NetworkState;
115
+ tenants: import("../tenants/types").TenantsState;
116
+ tablet: import("../../../types/store/tablet").ITabletState;
117
+ topic: import("../../../types/store/topic").ITopicState;
118
+ partitions: import("../partitions/types").PartitionsState;
119
+ pDisk: import("../pdisk/types").PDiskState;
120
+ executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
121
+ explainQuery: import("../../../types/store/explainQuery").ExplainQueryState;
122
+ tabletsFilters: {
123
+ loading: boolean;
124
+ requestTime: number;
125
+ data: undefined;
126
+ wasLoaded: boolean;
127
+ stateFilter: never[];
128
+ typeFilter: never[];
129
+ } | {
130
+ tabletsData: any;
131
+ nodes: any;
132
+ loading: boolean;
133
+ wasLoaded: boolean;
134
+ timeoutForRequest: number;
135
+ error: undefined;
136
+ data: undefined;
137
+ stateFilter: never[];
138
+ typeFilter: never[];
139
+ } | {
140
+ error: any;
141
+ loading: boolean;
142
+ data: undefined;
143
+ wasLoaded: boolean;
144
+ stateFilter: never[];
145
+ typeFilter: never[];
146
+ } | {
147
+ stateFilter: any;
148
+ data: undefined;
149
+ loading: boolean;
150
+ wasLoaded: boolean;
151
+ typeFilter: never[];
152
+ } | {
153
+ typeFilter: any;
154
+ data: undefined;
155
+ loading: boolean;
156
+ wasLoaded: boolean;
157
+ stateFilter: never[];
158
+ };
159
+ heatmap: import("../../../types/store/heatmap").IHeatmapState;
160
+ settings: import("../settings/types").SettingsState;
161
+ preview: any;
162
+ nodesList: import("../../../types/store/nodesList").NodesListState;
163
+ describe: import("../../../types/store/describe").IDescribeState;
164
+ schemaAcl: import("../schemaAcl/types").SchemaAclState;
165
+ executeTopQueries: import("../executeTopQueries/types").ITopQueriesState;
166
+ executeTopTables: import("../tenantOverview/executeTopTables/types").TopTablesState;
167
+ tenantOverviewTopQueries: import("../tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
168
+ healthcheckInfo: import("../healthcheckInfo/types").HealthcheckInfoState;
169
+ shardsWorkload: import("../shardsWorkload/types").IShardsWorkloadState;
170
+ tenantOverviewTopShards: import("../tenantOverview/topShards/types").TenantOverviewTopShardsState;
171
+ hotKeys: import("../hotKeys/types").HotKeysState;
172
+ authentication: import("../authentication/types").AuthenticationState;
173
+ header: import("../header/types").HeaderState;
174
+ saveQuery: string | null;
175
+ fullscreen: boolean;
176
+ clusters: import("../clusters/types").ClustersState;
177
+ }) => Promise<unknown>;
16
178
  export declare function resetNode(): {
17
179
  readonly type: "node/RESET_NODE";
18
180
  };
@@ -1,3 +1,3 @@
1
- import type { Selector } from 'reselect';
1
+ import type { Selector } from '@reduxjs/toolkit';
2
2
  import type { NodeStateSlice, PreparedNodeStructure } from './types';
3
3
  export declare const selectNodeStructure: Selector<NodeStateSlice, PreparedNodeStructure>;
@@ -1,5 +1,6 @@
1
- import { createSelector } from 'reselect';
1
+ import { createSelector } from '@reduxjs/toolkit';
2
2
  import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
3
+ import { preparePDiskData } from '../../../utils/disks/prepareDisks';
3
4
  const selectNodeId = (state) => { var _a, _b; return (_b = (_a = state.node) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.NodeId; };
4
5
  const selectRawNodeStructure = (state) => { var _a; return (_a = state.node) === null || _a === void 0 ? void 0 : _a.nodeStructure; };
5
6
  export const selectNodeStructure = createSelector([selectNodeId, selectRawNodeStructure], (nodeId, storageInfo) => {
@@ -11,11 +12,11 @@ export const selectNodeStructure = createSelector([selectNodeId, selectRawNodeSt
11
12
  var _a;
12
13
  const vDisks = (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.filter((el) => el.NodeId === nodeId);
13
14
  vDisks === null || vDisks === void 0 ? void 0 : vDisks.forEach((vd) => {
14
- var _a;
15
15
  const vDiskId = stringifyVdiskId(vd.VDiskId);
16
- const pDiskId = (_a = vd.PDisk) === null || _a === void 0 ? void 0 : _a.PDiskId;
16
+ const preparedPDisk = preparePDiskData(vd.PDisk);
17
+ const pDiskId = preparedPDisk.PDiskId;
17
18
  if (!structure[String(pDiskId)]) {
18
- structure[String(pDiskId)] = Object.assign({ vDisks: {} }, vd.PDisk);
19
+ structure[String(pDiskId)] = Object.assign({ vDisks: {} }, preparedPDisk);
19
20
  }
20
21
  structure[String(pDiskId)].vDisks[vDiskId] = Object.assign(Object.assign({}, vd), {
21
22
  // VDisk doesn't have its own StoragePoolName when located inside StoragePool data
@@ -1,25 +1,23 @@
1
1
  import type { IResponseError } from '../../../types/api/error';
2
- import type { TSystemStateInfo } from '../../../types/api/nodes';
3
- import type { TPDiskStateInfo } from '../../../types/api/pdisk';
4
2
  import type { TStorageInfo } from '../../../types/api/storage';
5
3
  import type { TVDiskStateInfo } from '../../../types/api/vdisk';
4
+ import type { PreparedPDisk } from '../../../utils/disks/types';
5
+ import type { PreparedNodeSystemState } from '../../../utils/nodes';
6
6
  import type { ApiRequestAction } from '../../utils';
7
7
  import { FETCH_NODE, FETCH_NODE_STRUCTURE, resetNode } from './node';
8
- interface RawStructurePDisk extends TPDiskStateInfo {
8
+ interface RawStructurePDisk extends PreparedPDisk {
9
9
  vDisks: Record<string, TVDiskStateInfo>;
10
10
  }
11
- export declare type RawNodeStructure = Record<string, RawStructurePDisk>;
11
+ export type RawNodeStructure = Record<string, RawStructurePDisk>;
12
12
  export interface PreparedStructureVDisk extends TVDiskStateInfo {
13
13
  id: string;
14
14
  order: number;
15
15
  }
16
- export interface PreparedStructurePDisk extends TPDiskStateInfo {
16
+ export interface PreparedStructurePDisk extends PreparedPDisk {
17
17
  vDisks: PreparedStructureVDisk[];
18
18
  }
19
- export declare type PreparedNodeStructure = Record<string, PreparedStructurePDisk>;
20
- export interface PreparedNode extends TSystemStateInfo {
21
- DC?: string;
22
- Rack?: string;
19
+ export type PreparedNodeStructure = Record<string, PreparedStructurePDisk>;
20
+ export interface PreparedNode extends Partial<PreparedNodeSystemState> {
23
21
  }
24
22
  export interface NodeState {
25
23
  data: PreparedNode;
@@ -31,7 +29,7 @@ export interface NodeState {
31
29
  wasLoadedStructure: boolean;
32
30
  errorStructure?: IResponseError;
33
31
  }
34
- export declare type NodeAction = ApiRequestAction<typeof FETCH_NODE, PreparedNode, IResponseError> | ApiRequestAction<typeof FETCH_NODE_STRUCTURE, TStorageInfo, IResponseError> | ReturnType<typeof resetNode>;
32
+ export type NodeAction = ApiRequestAction<typeof FETCH_NODE, PreparedNode, IResponseError> | ApiRequestAction<typeof FETCH_NODE_STRUCTURE, TStorageInfo, IResponseError> | ReturnType<typeof resetNode>;
35
33
  export interface NodeStateSlice {
36
34
  node: NodeState;
37
35
  }
@@ -1,8 +1,9 @@
1
+ import { prepareNodeSystemState } from '../../../utils/nodes';
1
2
  export const prepareNodeData = (data) => {
2
- var _a, _b, _c;
3
+ var _a;
3
4
  if (!((_a = data.SystemStateInfo) === null || _a === void 0 ? void 0 : _a.length)) {
4
5
  return {};
5
6
  }
6
7
  const nodeData = data.SystemStateInfo[0];
7
- return Object.assign(Object.assign({}, nodeData), { DC: (_b = nodeData.Location) === null || _b === void 0 ? void 0 : _b.DataCenter, Rack: (_c = nodeData.Location) === null || _c === void 0 ? void 0 : _c.Rack });
8
+ return prepareNodeSystemState(nodeData);
8
9
  };