ydb-embedded-ui 6.18.0 → 6.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
  2. package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +2 -1
  3. package/dist/components/CriticalActionDialog/CriticalActionDialog.js +11 -3
  4. package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
  5. package/dist/components/CriticalActionDialog/i18n/en.json +2 -1
  6. package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
  7. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +7 -36
  8. package/dist/components/GroupInfo/GroupInfo.js +3 -3
  9. package/dist/components/MetricChart/reducer.d.ts +2 -2
  10. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  11. package/dist/components/PaginatedTable/PaginatedTable.scss +4 -0
  12. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  13. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  14. package/dist/components/PaginatedTable/TableRow.js +1 -1
  15. package/dist/components/PaginatedTable/TableRow.js.map +1 -1
  16. package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -4
  17. package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
  18. package/dist/components/Tag/Tag.d.ts +2 -1
  19. package/dist/components/Tag/Tag.js.map +1 -1
  20. package/dist/components/Tags/Tags.d.ts +2 -1
  21. package/dist/components/Tags/Tags.js.map +1 -1
  22. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js +4 -2
  23. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js.map +1 -1
  24. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +4 -3
  25. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
  26. package/dist/containers/AppWithClusters/useClusterData.d.ts +7 -1
  27. package/dist/containers/AppWithClusters/useClusterData.js +8 -8
  28. package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
  29. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +3 -0
  30. package/dist/containers/AsideNavigation/AsideNavigation.js +6 -10
  31. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  32. package/dist/containers/AsideNavigation/Navigation.js +4 -1
  33. package/dist/containers/AsideNavigation/Navigation.js.map +1 -1
  34. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +3 -1
  35. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -4
  36. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js.map +1 -1
  37. package/dist/containers/Cluster/Cluster.js +5 -13
  38. package/dist/containers/Cluster/Cluster.js.map +1 -1
  39. package/dist/containers/Cluster/Cluster.scss +1 -0
  40. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -112
  41. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
  42. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -14
  43. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.d.ts +7 -0
  44. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js +43 -0
  45. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js.map +1 -0
  46. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.scss +11 -0
  47. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.d.ts +8 -0
  48. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js +8 -0
  49. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js.map +1 -0
  50. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +16 -0
  51. package/dist/containers/Cluster/ClusterInfo/shared.d.ts +1 -0
  52. package/dist/containers/Cluster/ClusterInfo/shared.js +3 -0
  53. package/dist/containers/Cluster/ClusterInfo/shared.js.map +1 -0
  54. package/dist/containers/Cluster/ClusterInfo/utils.d.ts +12 -0
  55. package/dist/containers/Cluster/ClusterInfo/utils.js +145 -0
  56. package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
  57. package/dist/containers/Cluster/i18n/en.json +7 -1
  58. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  59. package/dist/containers/Cluster/i18n/index.js +1 -2
  60. package/dist/containers/Cluster/i18n/index.js.map +1 -1
  61. package/dist/containers/Header/Header.js +3 -7
  62. package/dist/containers/Header/Header.js.map +1 -1
  63. package/dist/containers/Node/Node.js +1 -5
  64. package/dist/containers/Node/Node.js.map +1 -1
  65. package/dist/containers/Node/NodePages.js +5 -4
  66. package/dist/containers/Node/NodePages.js.map +1 -1
  67. package/dist/containers/Node/NodeStructure/NodeStructure.js +9 -3
  68. package/dist/containers/Node/NodeStructure/NodeStructure.js.map +1 -1
  69. package/dist/containers/Nodes/Nodes.js +3 -13
  70. package/dist/containers/Nodes/Nodes.js.map +1 -1
  71. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +1 -1
  72. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -1
  73. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +16 -7
  74. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
  75. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +2 -0
  76. package/dist/containers/PDiskPage/PDiskGroups/utils.js +14 -0
  77. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +1 -0
  78. package/dist/containers/PDiskPage/PDiskPage.js +1 -1
  79. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  80. package/dist/containers/Storage/Storage.js +9 -9
  81. package/dist/containers/Storage/Storage.js.map +1 -1
  82. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +7 -2
  83. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  84. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +1 -1
  85. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js +7 -20
  86. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -1
  87. package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -1
  88. package/dist/containers/Storage/StorageGroups/getGroups.js +27 -24
  89. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  90. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +1 -1
  91. package/dist/containers/Storage/utils/index.js +3 -4
  92. package/dist/containers/Storage/utils/index.js.map +1 -1
  93. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  94. package/dist/containers/Tenant/Diagnostics/Configs/Configs.d.ts +6 -0
  95. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js +79 -0
  96. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js.map +1 -0
  97. package/dist/containers/Tenant/Diagnostics/Configs/Configs.scss +8 -0
  98. package/dist/containers/Tenant/Diagnostics/Configs/i18n/en.json +11 -0
  99. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +2 -0
  100. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js +5 -0
  101. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js.map +1 -0
  102. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
  103. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  104. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +3 -0
  105. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
  106. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  107. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
  108. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +21 -4
  109. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  110. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +2 -0
  111. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +7 -0
  112. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +1 -0
  113. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +8 -3
  114. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
  115. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.d.ts +7 -0
  116. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js +17 -0
  117. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js.map +1 -0
  118. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +9 -0
  119. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +5 -9
  120. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +7 -7
  121. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  122. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -12
  123. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +1 -1
  124. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +9 -24
  125. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
  126. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +0 -1
  127. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  128. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +4 -12
  129. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +7 -5
  130. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
  131. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -6
  132. package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +1 -2
  133. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +1 -1
  134. package/dist/containers/Tenant/Query/Query.js +14 -2
  135. package/dist/containers/Tenant/Query/Query.js.map +1 -1
  136. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +3 -2
  137. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -36
  138. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  139. package/dist/containers/Tenant/Query/i18n/en.json +1 -0
  140. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  141. package/dist/containers/Tenant/utils/queryTemplates.js +1 -1
  142. package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
  143. package/dist/containers/UserSettings/i18n/en.json +0 -2
  144. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  145. package/dist/containers/UserSettings/settings.d.ts +0 -1
  146. package/dist/containers/UserSettings/settings.js +2 -12
  147. package/dist/containers/UserSettings/settings.js.map +1 -1
  148. package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
  149. package/dist/containers/VDiskPage/VDiskPage.js +33 -10
  150. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  151. package/dist/containers/VDiskPage/utils.d.ts +2 -0
  152. package/dist/containers/VDiskPage/utils.js +7 -0
  153. package/dist/containers/VDiskPage/utils.js.map +1 -0
  154. package/dist/lib.d.ts +1 -0
  155. package/dist/lib.js +1 -0
  156. package/dist/lib.js.map +1 -1
  157. package/dist/services/api.d.ts +20 -16
  158. package/dist/services/api.js +62 -21
  159. package/dist/services/api.js.map +1 -1
  160. package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
  161. package/dist/services/parsers/parseMetaCluster.js +17 -31
  162. package/dist/services/parsers/parseMetaCluster.js.map +1 -1
  163. package/dist/services/settings.d.ts +0 -1
  164. package/dist/services/settings.js +1 -2
  165. package/dist/services/settings.js.map +1 -1
  166. package/dist/store/configureStore.d.ts +4 -4
  167. package/dist/store/defaultStore.d.ts +2 -2
  168. package/dist/store/getUrlData.js +9 -6
  169. package/dist/store/getUrlData.js.map +1 -1
  170. package/dist/store/reducers/api.d.ts +1 -1
  171. package/dist/store/reducers/api.js +1 -1
  172. package/dist/store/reducers/api.js.map +1 -1
  173. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  174. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  175. package/dist/store/reducers/cancelQuery.js.map +1 -1
  176. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
  177. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  178. package/dist/store/reducers/capabilities/hooks.js +8 -1
  179. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  180. package/dist/store/reducers/cluster/cluster.d.ts +230 -2
  181. package/dist/store/reducers/cluster/cluster.js +45 -3
  182. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  183. package/dist/store/reducers/cluster/utils.d.ts +4 -1
  184. package/dist/store/reducers/cluster/utils.js +16 -3
  185. package/dist/store/reducers/cluster/utils.js.map +1 -1
  186. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  187. package/dist/store/reducers/describe.d.ts +2 -2
  188. package/dist/store/reducers/executeQuery.d.ts +8 -4
  189. package/dist/store/reducers/executeQuery.js +35 -2
  190. package/dist/store/reducers/executeQuery.js.map +1 -1
  191. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  192. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -3
  193. package/dist/store/reducers/explainQuery/explainQuery.js +23 -2
  194. package/dist/store/reducers/explainQuery/explainQuery.js.map +1 -1
  195. package/dist/store/reducers/explainQuery/types.d.ts +1 -0
  196. package/dist/store/reducers/explainQuery/utils.d.ts +1 -1
  197. package/dist/store/reducers/explainQuery/utils.js.map +1 -1
  198. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
  199. package/dist/store/reducers/heatmap.d.ts +2 -2
  200. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  201. package/dist/store/reducers/index.d.ts +3 -3
  202. package/dist/store/reducers/network/network.d.ts +2 -2
  203. package/dist/store/reducers/node/node.d.ts +3 -3
  204. package/dist/store/reducers/node/selectors.d.ts +1 -1
  205. package/dist/store/reducers/nodes/nodes.d.ts +3 -4
  206. package/dist/store/reducers/nodes/nodes.js +1 -17
  207. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  208. package/dist/store/reducers/nodes/types.d.ts +1 -6
  209. package/dist/store/reducers/nodes/utils.d.ts +1 -4
  210. package/dist/store/reducers/nodes/utils.js +1 -41
  211. package/dist/store/reducers/nodes/utils.js.map +1 -1
  212. package/dist/store/reducers/nodesList.d.ts +3 -3
  213. package/dist/store/reducers/overview/overview.d.ts +2 -2
  214. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  215. package/dist/store/reducers/pdisk/pdisk.d.ts +2 -3
  216. package/dist/store/reducers/pdisk/pdisk.js +1 -21
  217. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  218. package/dist/store/reducers/pdisk/utils.d.ts +0 -3
  219. package/dist/store/reducers/pdisk/utils.js +0 -22
  220. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  221. package/dist/store/reducers/preview.d.ts +2 -2
  222. package/dist/store/reducers/schema/schema.d.ts +3 -3
  223. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
  224. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  225. package/dist/store/reducers/storage/requestStorageData.d.ts +5 -0
  226. package/dist/store/reducers/storage/requestStorageData.js +12 -0
  227. package/dist/store/reducers/storage/requestStorageData.js.map +1 -0
  228. package/dist/store/reducers/storage/selectors.js +1 -1
  229. package/dist/store/reducers/storage/storage.d.ts +6 -4
  230. package/dist/store/reducers/storage/storage.js +6 -6
  231. package/dist/store/reducers/storage/storage.js.map +1 -1
  232. package/dist/store/reducers/storage/types.d.ts +11 -23
  233. package/dist/store/reducers/storage/utils.d.ts +3 -2
  234. package/dist/store/reducers/storage/utils.js +52 -26
  235. package/dist/store/reducers/storage/utils.js.map +1 -1
  236. package/dist/store/reducers/tableData.d.ts +1 -1
  237. package/dist/store/reducers/tablet.d.ts +7 -7
  238. package/dist/store/reducers/tablets.d.ts +13 -13
  239. package/dist/store/reducers/tenant/constants.d.ts +1 -0
  240. package/dist/store/reducers/tenant/constants.js +1 -0
  241. package/dist/store/reducers/tenant/constants.js.map +1 -1
  242. package/dist/store/reducers/tenant/tenant.d.ts +5 -2
  243. package/dist/store/reducers/tenant/tenant.js +12 -0
  244. package/dist/store/reducers/tenant/tenant.js.map +1 -1
  245. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  246. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  247. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  248. package/dist/store/reducers/tenants/selectors.d.ts +27 -27
  249. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  250. package/dist/store/reducers/topic.d.ts +44 -44
  251. package/dist/store/reducers/trace.d.ts +4 -5
  252. package/dist/store/reducers/trace.js +5 -8
  253. package/dist/store/reducers/trace.js.map +1 -1
  254. package/dist/store/reducers/vdisk/utils.d.ts +0 -2
  255. package/dist/store/reducers/vdisk/utils.js +0 -10
  256. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  257. package/dist/store/reducers/vdisk/vdisk.d.ts +8 -5
  258. package/dist/store/reducers/vdisk/vdisk.js +17 -32
  259. package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
  260. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  261. package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
  262. package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
  263. package/dist/styles/mixins.scss +45 -0
  264. package/dist/types/api/capabilities.d.ts +1 -1
  265. package/dist/types/api/cluster.d.ts +31 -1
  266. package/dist/types/api/cluster.js +3 -1
  267. package/dist/types/api/cluster.js.map +1 -1
  268. package/dist/types/api/featureFlags.d.ts +13 -0
  269. package/dist/types/api/featureFlags.js +2 -0
  270. package/dist/types/api/featureFlags.js.map +1 -0
  271. package/dist/types/api/meta.d.ts +6 -4
  272. package/dist/types/api/pdisk.d.ts +1 -1
  273. package/dist/types/api/storage.d.ts +132 -6
  274. package/dist/types/api/storage.js +1 -5
  275. package/dist/types/api/storage.js.map +1 -1
  276. package/dist/types/api/trace.d.ts +16 -6
  277. package/dist/types/api/trace.js +7 -1
  278. package/dist/types/api/trace.js.map +1 -1
  279. package/dist/types/api/vdisk.d.ts +1 -1
  280. package/dist/types/store/executeQuery.d.ts +25 -3
  281. package/dist/types/store/executeQuery.js +5 -1
  282. package/dist/types/store/executeQuery.js.map +1 -1
  283. package/dist/utils/constants.d.ts +0 -1
  284. package/dist/utils/constants.js +0 -1
  285. package/dist/utils/constants.js.map +1 -1
  286. package/dist/utils/disks/helpers.d.ts +4 -1
  287. package/dist/utils/disks/helpers.js +7 -1
  288. package/dist/utils/disks/helpers.js.map +1 -1
  289. package/dist/utils/monaco/yql/generateSuggestions.js +8 -3
  290. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  291. package/dist/utils/nodes.d.ts +1 -2
  292. package/dist/utils/nodes.js.map +1 -1
  293. package/dist/utils/storage.d.ts +2 -21
  294. package/dist/utils/storage.js +14 -19
  295. package/dist/utils/storage.js.map +1 -1
  296. package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
  297. package/dist/utils/versions/parseNodesToVersionsValues.js +3 -2
  298. package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
  299. package/package.json +2 -6
  300. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +0 -9
  301. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +0 -9
  302. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +0 -1
  303. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +0 -3
  304. package/dist/containers/Cluster/i18n/ru.json +0 -16
  305. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +0 -4
  306. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +0 -29
  307. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js.map +0 -1
  308. package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -4
  309. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js +0 -2
  310. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js.map +0 -1
  311. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.d.ts +0 -3
  312. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js +0 -13
  313. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js.map +0 -1
  314. package/dist/types/api/compute.d.ts +0 -60
  315. package/dist/types/api/compute.js +0 -6
  316. package/dist/types/api/compute.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import singleClusterMode from './singleClusterMode';
2
2
  export declare const rootReducer: {
3
- api: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api">, import("redux").UnknownAction>;
3
+ api: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">, import("redux").UnknownAction>;
4
4
  singleClusterMode: typeof singleClusterMode;
5
5
  cluster: import("redux").Reducer<import("./cluster/types").ClusterState>;
6
6
  tenant: import("redux").Reducer<import("./tenant/types").TenantState>;
@@ -27,7 +27,7 @@ export declare const rootReducer: {
27
27
  clusters: import("redux").Reducer<import("./clusters/types").ClustersFilters>;
28
28
  };
29
29
  declare const combinedReducer: import("redux").Reducer<{
30
- api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api">;
30
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
31
31
  singleClusterMode: boolean;
32
32
  cluster: import("./cluster/types").ClusterState;
33
33
  tenant: import("./tenant/types").TenantState;
@@ -57,7 +57,7 @@ declare const combinedReducer: import("redux").Reducer<{
57
57
  } | {
58
58
  readonly type: "DISABLE_FULLSCREEN_MODE";
59
59
  } | import("redux").Action<string>, Partial<{
60
- api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api"> | undefined;
60
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api"> | undefined;
61
61
  singleClusterMode: boolean | undefined;
62
62
  cluster: import("./cluster/types").ClusterState | undefined;
63
63
  tenant: import("./tenant/types").TenantState | undefined;
@@ -1,3 +1,3 @@
1
1
  export declare const networkApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
2
- getNetworkInfo: import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../../types/api/netInfo").TNetInfo | undefined, "api">;
3
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
2
+ getNetworkInfo: import("@reduxjs/toolkit/query").QueryDefinition<string, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../../types/api/netInfo").TNetInfo | undefined, "api">;
3
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,8 +1,8 @@
1
1
  export declare const nodeApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
2
2
  getNodeInfo: import("@reduxjs/toolkit/query").QueryDefinition<{
3
3
  nodeId: string;
4
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").PreparedNode | undefined, "api">;
4
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedNode | undefined, "api">;
5
5
  getNodeStructure: import("@reduxjs/toolkit/query").QueryDefinition<{
6
6
  nodeId: string;
7
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../../types/api/storage").TStorageInfo | undefined, "api">;
8
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
7
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../../types/api/storage").TStorageInfo | undefined, "api">;
8
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,7 +1,7 @@
1
1
  import type { RootState } from '../../defaultStore';
2
2
  import type { PreparedNodeStructure } from './types';
3
3
  export declare const selectNodeStructure: ((state: {
4
- api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api">;
4
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
5
5
  singleClusterMode: boolean;
6
6
  cluster: import("../cluster/types").ClusterState;
7
7
  tenant: import("../tenant/types").TenantState;
@@ -1,5 +1,4 @@
1
- import type { ComputeApiRequestParams, NodesApiRequestParams } from './types';
1
+ import type { NodesApiRequestParams } from './types';
2
2
  export declare const nodesApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
3
- getNodes: import("@reduxjs/toolkit/query").QueryDefinition<NodesApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").NodesHandledResponse | undefined, "api">;
4
- getComputeNodes: import("@reduxjs/toolkit/query").QueryDefinition<ComputeApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").NodesHandledResponse | undefined, "api">;
5
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
3
+ getNodes: import("@reduxjs/toolkit/query").QueryDefinition<NodesApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").NodesHandledResponse | undefined, "api">;
4
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,6 +1,5 @@
1
- import { EVersion } from '../../../types/api/compute';
2
1
  import { api } from '../api';
3
- import { prepareComputeNodesData, prepareNodesData } from './utils';
2
+ import { prepareNodesData } from './utils';
4
3
  export const nodesApi = api.injectEndpoints({
5
4
  endpoints: (builder) => ({
6
5
  getNodes: builder.query({
@@ -20,21 +19,6 @@ export const nodesApi = api.injectEndpoints({
20
19
  },
21
20
  providesTags: ['All'],
22
21
  }),
23
- getComputeNodes: builder.query({
24
- queryFn: async (params, { signal }) => {
25
- try {
26
- const data = await window.api.getCompute({
27
- version: EVersion.v2,
28
- ...params,
29
- }, { signal });
30
- return { data: prepareComputeNodesData(data) };
31
- }
32
- catch (error) {
33
- return { error };
34
- }
35
- },
36
- providesTags: ['All'],
37
- }),
38
22
  }),
39
23
  overrideExisting: 'throw',
40
24
  });
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../../src/store/reducers/nodes/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAC,uBAAuB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAElE,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC,eAAe,CAAC;IACxC,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrB,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC;YACpB,OAAO,EAAE,KAAK,EAAE,MAA6B,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACvD,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CAClC;wBACI,IAAI,EAAE,KAAK;wBACX,OAAO,EAAE,KAAK;wBACd,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AE,KAAK,EAAE,MAA6B,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACvD,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CAClC;wBACI,IAAI,EAAE,KAAK;wBACX,OAAO,EAAE,KAAK;wBACd,OAAO,EAAE,IAAI;wBACb,GAAG,MAAM;qBACZ,EACD,EAAC,MAAM,EAAC,CACX,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,EAAC,CAAC;gBAC1C,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type { OrderType } from '@gravity-ui/react-data-table';
2
- import type { EVersion, TTabletStateInfo as TComputeTabletStateInfo } from '../../../types/api/compute';
3
2
  import type { EFlag } from '../../../types/api/enums';
4
3
  import type { TEndpoint, TPoolStats } from '../../../types/api/nodes';
5
4
  import type { TTabletStateInfo as TFullTabletStateInfo } from '../../../types/api/tablet';
@@ -25,7 +24,7 @@ export interface NodesPreparedEntity {
25
24
  PoolStats?: TPoolStats[];
26
25
  LoadAverage?: number[];
27
26
  LoadAveragePercents?: number[];
28
- Tablets?: TFullTabletStateInfo[] | TComputeTabletStateInfo[];
27
+ Tablets?: TFullTabletStateInfo[];
29
28
  Endpoints?: TEndpoint[];
30
29
  TotalSessions?: number;
31
30
  }
@@ -60,10 +59,6 @@ export interface NodesApiRequestParams extends NodesGeneralRequestParams {
60
59
  tablets?: boolean;
61
60
  group?: string;
62
61
  }
63
- export interface ComputeApiRequestParams extends NodesGeneralRequestParams {
64
- path: string;
65
- version?: EVersion;
66
- }
67
62
  export interface NodesGroup {
68
63
  name: string;
69
64
  count: number;
@@ -1,7 +1,4 @@
1
- import type { TComputeInfo, TComputeNodeInfo, TComputeTenantInfo } from '../../../types/api/compute';
2
1
  import type { TNodesInfo } from '../../../types/api/nodes';
3
- import type { NodesHandledResponse, NodesPreparedEntity } from './types';
4
- export declare const prepareComputeNodes: (nodes?: TComputeNodeInfo[], tenants?: TComputeTenantInfo[]) => NodesPreparedEntity[];
5
- export declare const prepareComputeNodesData: (data: TComputeInfo) => NodesHandledResponse;
2
+ import type { NodesHandledResponse } from './types';
6
3
  export declare const prepareNodesData: (data: TNodesInfo) => NodesHandledResponse;
7
4
  export declare const getLoadSeverityForNode: (value: number) => "success" | "danger" | "warning" | undefined;
@@ -1,45 +1,5 @@
1
- import { calcUptime } from '../../../utils/dataFormatters/dataFormatters';
2
1
  import { generateEvaluator } from '../../../utils/generateEvaluator';
3
- import { calculateLoadAveragePercents, prepareNodeSystemState } from '../../../utils/nodes';
4
- const prepareComputeNode = (node, tenantName) => {
5
- var _a;
6
- return {
7
- ...node,
8
- // v2 response has tenant name, v1 - doesn't
9
- TenantName: (_a = node.Tenant) !== null && _a !== void 0 ? _a : tenantName,
10
- SystemState: node === null || node === void 0 ? void 0 : node.Overall,
11
- Uptime: calcUptime(node === null || node === void 0 ? void 0 : node.StartTime),
12
- LoadAveragePercents: calculateLoadAveragePercents(node),
13
- DC: node.DataCenter,
14
- };
15
- };
16
- export const prepareComputeNodes = (nodes, tenants) => {
17
- var _a;
18
- const preparedNodes = [];
19
- // First try to parse v2 response in case backend supports it
20
- // Else parse v1 response
21
- if (nodes) {
22
- nodes.forEach((node) => {
23
- preparedNodes.push(prepareComputeNode(node));
24
- });
25
- }
26
- else if (tenants) {
27
- for (const tenant of tenants) {
28
- (_a = tenant.Nodes) === null || _a === void 0 ? void 0 : _a.forEach((node) => {
29
- preparedNodes.push(prepareComputeNode(node, tenant.Name));
30
- });
31
- }
32
- }
33
- return preparedNodes;
34
- };
35
- export const prepareComputeNodesData = (data) => {
36
- const preparedNodes = prepareComputeNodes(data.Nodes, data.Tenants);
37
- return {
38
- Nodes: preparedNodes,
39
- TotalNodes: Number(data.TotalNodes) || preparedNodes.length,
40
- FoundNodes: Number(data.FoundNodes),
41
- };
42
- };
2
+ import { prepareNodeSystemState } from '../../../utils/nodes';
43
3
  export const prepareNodesData = (data) => {
44
4
  var _a;
45
5
  const rawNodes = data.Nodes || [];
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/nodes/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAC,4BAA4B,EAAE,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAI1F,MAAM,kBAAkB,GAAG,CAAC,IAAsB,EAAE,UAAmB,EAAuB,EAAE;;IAC5F,OAAO;QACH,GAAG,IAAI;QACP,4CAA4C;QAC5C,UAAU,EAAE,MAAA,IAAI,CAAC,MAAM,mCAAI,UAAU;QACrC,WAAW,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO;QAC1B,MAAM,EAAE,UAAU,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,CAAC;QACnC,mBAAmB,EAAE,4BAA4B,CAAC,IAAI,CAAC;QAEvD,EAAE,EAAE,IAAI,CAAC,UAAU;KACtB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAA0B,EAAE,OAA8B,EAAE,EAAE;;IAC9F,MAAM,aAAa,GAA0B,EAAE,CAAC;IAEhD,6DAA6D;IAC7D,yBAAyB;IAEzB,IAAI,KAAK,EAAE,CAAC;QACR,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACnB,aAAa,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;QACjD,CA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SAAS,CAAC;QAE5F,OAAO;YACH,GAAG,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3C,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,OAAO,0CAAG,CAAC,CAAC;YAC1C,eAAe,EAAE,MAAA,IAAI,CAAC,WAAW,CAAC,gBAAgB,0CAAE,SAAS;YAC7D,gBAAgB,EAAE,gBAAgB;SACrC,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACpD,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,KAAK,EAAE,KAAK,CAAC,SAAS;KACzB,CAAC,CAAC,CAAC;IAEJ,OAAO;QACH,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,cAAc;QAC1B,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,aAAa,CAAC,MAAM;QAC3D,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KACtC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import type { RootState } from '../defaultStore';
2
2
  export declare const nodesListApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
3
- getNodesList: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../types/api/nodesList").TEvNodesInfo | undefined, "api">;
4
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
3
+ getNodesList: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../types/api/nodesList").TEvNodesInfo | undefined, "api">;
4
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
5
5
  export declare const selectNodesMap: ((state: {
6
- api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", "api">;
6
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", "api">;
7
7
  singleClusterMode: boolean;
8
8
  cluster: import("./cluster/types").ClusterState;
9
9
  tenant: import("./tenant/types").TenantState;
@@ -2,8 +2,8 @@ export declare const overviewApi: import("@reduxjs/toolkit/query").Api<import("@
2
2
  getOverview: import("@reduxjs/toolkit/query").QueryDefinition<{
3
3
  paths: string[];
4
4
  database: string;
5
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", {
5
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
6
6
  data: import("../../../utils/typecheckers").Nullable<import("../../../types/api/schema").TEvDescribeSchemeResult>;
7
7
  additionalData: import("../../../utils/typecheckers").Nullable<import("../../../types/api/schema").TEvDescribeSchemeResult>[];
8
8
  } | undefined, "api">;
9
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
9
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -7,5 +7,5 @@ export declare const partitionsApi: import("@reduxjs/toolkit/query").Api<import(
7
7
  path: string;
8
8
  database: string;
9
9
  consumerName?: string;
10
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").PreparedPartitionData[] | undefined, "api">;
11
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
10
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedPartitionData[] | undefined, "api">;
11
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -3,7 +3,6 @@ interface PDiskParams {
3
3
  pDiskId: number | string;
4
4
  }
5
5
  export declare const pDiskApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
6
- getPdiskInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").PDiskData | undefined, "api">;
7
- getStorageInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../storage/types").PreparedStorageGroup[] | undefined, "api">;
8
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
6
+ getPdiskInfo: import("@reduxjs/toolkit/query").QueryDefinition<PDiskParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PDiskData | undefined, "api">;
7
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
9
8
  export {};
@@ -1,7 +1,6 @@
1
- import { EVersion } from '../../../types/api/storage';
2
1
  import { getPDiskId } from '../../../utils/disks/helpers';
3
2
  import { api } from '../api';
4
- import { preparePDiskDataResponse, preparePDiskStorageResponse } from './utils';
3
+ import { preparePDiskDataResponse } from './utils';
5
4
  export const pDiskApi = api.injectEndpoints({
6
5
  endpoints: (build) => ({
7
6
  getPdiskInfo: build.query({
@@ -26,25 +25,6 @@ export const pDiskApi = api.injectEndpoints({
26
25
  },
27
26
  ],
28
27
  }),
29
- getStorageInfo: build.query({
30
- queryFn: async ({ nodeId, pDiskId }, { signal }) => {
31
- try {
32
- const response = await window.api.getStorageInfo({ nodeId, version: EVersion.v1 }, { signal });
33
- const data = preparePDiskStorageResponse(response, pDiskId, nodeId);
34
- return { data };
35
- }
36
- catch (error) {
37
- return { error };
38
- }
39
- },
40
- providesTags: (_result, _error, arg) => [
41
- 'All',
42
- {
43
- type: 'PDiskData',
44
- id: getPDiskId(arg.nodeId, arg.pDiskId),
45
- },
46
- ],
47
- }),
48
28
  }),
49
29
  overrideExisting: 'throw',
50
30
  });
@@ -1 +1 @@
1
- {"version":3,"file":"pdisk.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/pdisk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAC,wBAAwB,EAAE,2BAA2B,EAAC,MAAM,SAAS,CAAC;AAO9E,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC,eAAe,CAAC;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC;YACtB,OAAO,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,OAAO,EAAc,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACxD,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;wBAC/B,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;wBACpD,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC;qBAC3C,CAAC,CAAC;oBACH,MAAM,IAAI,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC;oBAChD,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,E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;AAOjD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC,eAAe,CAAC;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC;YACtB,OAAO,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,OAAO,EAAc,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACxD,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;wBAC/B,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;wBACpD,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC;qBAC3C,CAAC,CAAC;oBACH,MAAM,IAAI,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC;oBAChD,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC;gBACpC,KAAK;gBACL;oBACI,IAAI,EAAE,WAAW;oBACjB,EAAE,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC;iBAC1C;aACJ;SACJ,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -1,10 +1,7 @@
1
1
  import type { TPDiskInfoResponse } from '../../../types/api/pdisk';
2
- import type { TStorageInfo } from '../../../types/api/storage';
3
2
  import type { TEvSystemStateResponse } from '../../../types/api/systemState';
4
- import type { PreparedStorageGroup } from '../storage/types';
5
3
  import type { PDiskData } from './types';
6
4
  export declare function preparePDiskDataResponse([pdiskResponse, nodeResponse]: [
7
5
  TPDiskInfoResponse,
8
6
  TEvSystemStateResponse
9
7
  ]): PDiskData;
10
- export declare function preparePDiskStorageResponse(data: TStorageInfo, pDiskId: number | string, nodeId: number | string): PreparedStorageGroup[];
@@ -1,7 +1,6 @@
1
1
  import { getArray, valueIsDefined } from '../../../utils';
2
2
  import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
3
3
  import { prepareNodeSystemState } from '../../../utils/nodes';
4
- import { prepareStorageGroupData } from '../storage/utils';
5
4
  export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
6
5
  var _a, _b, _c;
7
6
  const { BSC = {}, Whiteboard = {} } = pdiskResponse || {};
@@ -75,25 +74,4 @@ export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
75
74
  SlotItems: diskSlots,
76
75
  };
77
76
  }
78
- export function preparePDiskStorageResponse(data, pDiskId, nodeId) {
79
- var _a;
80
- const preparedGroups = [];
81
- (_a = data.StoragePools) === null || _a === void 0 ? void 0 : _a.forEach((pool) => {
82
- var _a;
83
- return (_a = pool.Groups) === null || _a === void 0 ? void 0 : _a.forEach((group) => {
84
- var _a;
85
- const groupHasPDiskVDisks = (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.some((vdisk) => {
86
- var _a, _b, _c, _d;
87
- // If VDisk has PDisk inside, PDiskId and NodeId fields could be only inside PDisk and vice versa
88
- const groupPDiskId = (_a = vdisk.PDiskId) !== null && _a !== void 0 ? _a : (_b = vdisk.PDisk) === null || _b === void 0 ? void 0 : _b.PDiskId;
89
- const groupNodeId = (_c = vdisk.NodeId) !== null && _c !== void 0 ? _c : (_d = vdisk.PDisk) === null || _d === void 0 ? void 0 : _d.NodeId;
90
- return groupPDiskId === Number(pDiskId) && groupNodeId === Number(nodeId);
91
- });
92
- if (groupHasPDiskVDisks) {
93
- preparedGroups.push(prepareStorageGroupData(group, pool));
94
- }
95
- });
96
- });
97
- return preparedGroups;
98
- }
99
77
  //# sour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,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAErD,OAAO;QACH,GAAG,aAAa;QAChB,MAAM,EAAE,MAAA,aAAa,CAAC,MAAM,mCAAI,YAAY,CAAC,MAAM;QACnD,QAAQ,EAAE,YAAY,CAAC,IAAI;QAC3B,QAAQ,EAAE,MAAA,YAAY,CAAC,KAAK,0CAAG,CAAC,CAAC;QACjC,MAAM,EAAE,YAAY,CAAC,EAAE;QACvB,SAAS,EAAE,SAAS;KACvB,CAAC;AACN,CAAC"}
@@ -5,6 +5,6 @@ interface SendQueryParams {
5
5
  action?: ExecuteActions;
6
6
  }
7
7
  export declare const previewApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
8
- sendQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../types/store/query").IQueryResult | undefined, "api">;
9
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
8
+ sendQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../types/store/query").IQueryResult | undefined, "api">;
9
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
10
10
  export {};
@@ -17,16 +17,16 @@ export declare const schemaApi: import("@reduxjs/toolkit/query").Api<import("@re
17
17
  createDirectory: import("@reduxjs/toolkit/query").MutationDefinition<{
18
18
  database: string;
19
19
  path: string;
20
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", unknown, "api">;
20
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", unknown, "api">;
21
21
  getSchema: import("@reduxjs/toolkit/query").QueryDefinition<{
22
22
  path: string;
23
23
  database: string;
24
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", {
24
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
25
25
  [path: string]: TEvDescribeSchemeResult & {
26
26
  partial?: boolean;
27
27
  };
28
28
  }, "api">;
29
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
29
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
30
30
  export declare const selectSchemaMergedChildrenPaths: ((state: any, path: any, _type: any, database: string) => string[] | undefined) & {
31
31
  clearCache: () => void;
32
32
  resultsCount: () => number;
@@ -2,10 +2,10 @@ export declare const schemaAclApi: import("@reduxjs/toolkit/query").Api<import("
2
2
  getSchemaAcl: import("@reduxjs/toolkit/query").QueryDefinition<{
3
3
  path: string;
4
4
  database: string;
5
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", {
5
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", {
6
6
  acl: import("../../../types/api/acl").TACE[] | undefined;
7
7
  effectiveAcl: import("../../../types/api/acl").TACE[] | undefined;
8
8
  owner: string | undefined;
9
9
  interruptInheritance: boolean | undefined;
10
10
  } | undefined, "api">;
11
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
11
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -13,5 +13,5 @@ interface SendShardQueryParams {
13
13
  filters?: ShardsWorkloadFilters;
14
14
  }
15
15
  export declare const shardApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
16
- sendShardQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendShardQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../../types/store/query").IQueryResult | undefined, "api">;
17
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
16
+ sendShardQuery: import("@reduxjs/toolkit/query").QueryDefinition<SendShardQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../../types/store/query").IQueryResult | undefined, "api">;
17
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -0,0 +1,5 @@
1
+ import type { AxiosOptions } from '../../../services/api';
2
+ import type { StorageRequestParams } from '../../../types/api/storage';
3
+ export declare function requestStorageData({ version, shouldUseGroupsHandler, ...params }: StorageRequestParams & {
4
+ shouldUseGroupsHandler?: boolean;
5
+ }, options: AxiosOptions): Promise<import("./types").PreparedStorageResponse>;
@@ -0,0 +1,12 @@
1
+ import { prepareGroupsResponse, prepareStorageResponse } from './utils';
2
+ export async function requestStorageData({ version = 'v2', shouldUseGroupsHandler, ...params }, options) {
3
+ if (shouldUseGroupsHandler && version !== 'v1') {
4
+ const result = await window.api.getStorageGroups({ ...params }, options);
5
+ return prepareGroupsResponse(result);
6
+ }
7
+ else {
8
+ const result = await window.api.getStorageInfo({ version, ...params }, options);
9
+ return prepareStorageResponse(result);
10
+ }
11
+ }
12
+ //# sourceMappingURL=requestStorageData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestStorageData.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/requestStorageData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,qBAAqB,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAEtE,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACpC,EACI,OAAO,GAAG,IAAI,EACd,sBAAsB,EACtB,GAAG,MAAM,EAC+C,EAC5D,OAAqB;IAErB,IAAI,sBAAsB,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC7C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAC,GAAG,MAAM,EAAC,EAAE,OAAO,CAAC,CAAC;QACvE,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;SAAM,CAAC;QACJ,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,EAAC,OAAO,EAAE,GAAG,MAAM,EAAC,EAAE,OAAO,CAAC,CAAC;QAC9E,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;AACL,CAAC"}
@@ -21,7 +21,7 @@ const filterGroupsByText = (entities, text) => {
21
21
  return entities.filter((entity) => {
22
22
  var _a, _b;
23
23
  return (((_a = entity.PoolName) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(preparedSearch)) ||
24
- ((_b = entity.GroupID) === null || _b === void 0 ? void 0 : _b.toString().includes(preparedSearch)));
24
+ ((_b = entity.GroupId) === null || _b === void 0 ? void 0 : _b.toString().includes(preparedSearch)));
25
25
  });
26
26
  };
27
27
  const filterGroupsByUsage = (entities, usage) => {
@@ -1,6 +1,8 @@
1
+ import type { StorageRequestParams } from '../../../types/api/storage';
1
2
  import type { NodesApiRequestParams } from '../nodes/types';
2
- import type { StorageApiRequestParams } from './types';
3
3
  export declare const storageApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
4
- getStorageNodesInfo: import("@reduxjs/toolkit/query").QueryDefinition<Omit<NodesApiRequestParams, "type">, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").PreparedStorageResponse | undefined, "api">;
5
- getStorageGroupsInfo: import("@reduxjs/toolkit/query").QueryDefinition<StorageApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").PreparedStorageResponse | undefined, "api">;
6
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
4
+ getStorageNodesInfo: import("@reduxjs/toolkit/query").QueryDefinition<Omit<NodesApiRequestParams, "type">, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedStorageResponse | undefined, "api">;
5
+ getStorageGroupsInfo: import("@reduxjs/toolkit/query").QueryDefinition<StorageRequestParams & {
6
+ shouldUseGroupsHandler?: boolean;
7
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedStorageResponse | undefined, "api">;
8
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,6 +1,6 @@
1
- import { EVersion } from '../../../types/api/storage';
2
1
  import { api } from '../api';
3
- import { prepareStorageGroupsResponse, prepareStorageNodesResponse } from './utils';
2
+ import { requestStorageData } from './requestStorageData';
3
+ import { prepareStorageNodesResponse } from './utils';
4
4
  export const storageApi = api.injectEndpoints({
5
5
  endpoints: (builder) => ({
6
6
  getStorageNodesInfo: builder.query({
@@ -13,19 +13,19 @@ export const storageApi = api.injectEndpoints({
13
13
  return { error };
14
14
  }
15
15
  },
16
- providesTags: ['All'],
16
+ providesTags: ['All', 'StorageData'],
17
17
  }),
18
18
  getStorageGroupsInfo: builder.query({
19
19
  queryFn: async (params, { signal }) => {
20
20
  try {
21
- const result = await window.api.getStorageInfo({ version: EVersion.v1, ...params }, { signal });
22
- return { data: prepareStorageGroupsResponse(result) };
21
+ const result = await requestStorageData(params, { signal });
22
+ return { data: result };
23
23
  }
24
24
  catch (error) {
25
25
  return { error };
26
26
  }
27
27
  },
28
- providesTags: ['All'],
28
+ providesTags: ['All', 'StorageData'],
29
29
  }),
30
30
  }),
31
31
  overrideExisting: 'throw',
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAC,4BAA4B,EAAE,2BAA2B,EAAC,MAAM,SAAS,CAAC;AAElF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,eAAe,CAAC;IAC1C,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrB,mBAAmB,EAAE,OAAO,CAAC,KAAK,CAAC;YAC/B,OAAO,EAAE,KAAK,EAAE,MAA2C,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACrE,IAAI,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CACpC,EAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAC,EAC1C,EAAC,MAAM,EAAC,CACX,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,2BAA2B,CAAC,MAAM,CAAC,EAAC,CAAC;gBACvD,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;QACF,oBAAoB,EAAE,OAAO,CAAC,KAAK,CAAC;YAChC,OAAO,EAAE,KAAK,EAAE,MAA+B,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACzD,IAAI,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAC1C,EAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,EAAE,GAAG,MAAM,EAAC,EACjC,EAAC,MAAM,EAAC,CACX,CAA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AAE,KAAK,EACV,MAAiE,EACjE,EAAC,MAAM,EAAC,EACV,EAAE;gBACA,IAAI,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;oBAC1D,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;gBAC1B,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;SACvC,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import type { OrderType } from '@gravity-ui/react-data-table';
2
2
  import { z } from 'zod';
3
+ import type { EFlag } from '../../../types/api/enums';
3
4
  import type { TSystemStateInfo } from '../../../types/api/nodes';
4
- import type { EVersion, TStorageGroupInfo } from '../../../types/api/storage';
5
+ import type { StorageV2SortValue } from '../../../types/api/storage';
5
6
  import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
6
7
  import type { NodesUptimeFilterValues } from '../../../utils/nodes';
7
- import type { StorageSortValue } from '../../../utils/storage';
8
8
  export declare const visibleEntitiesSchema: z.ZodCatch<z.ZodNativeEnum<{
9
9
  readonly all: "all";
10
10
  readonly missing: "missing";
@@ -37,16 +37,19 @@ export interface PreparedStorageGroupFilters {
37
37
  database?: string;
38
38
  nodeId?: string;
39
39
  }
40
- export interface PreparedStorageGroup extends TStorageGroupInfo {
41
- PoolName: string | undefined;
40
+ export interface PreparedStorageGroup {
41
+ PoolName?: string;
42
+ MediaType?: string;
43
+ Encryption?: boolean;
44
+ ErasureSpecies?: string;
45
+ Degraded: number;
46
+ GroupId?: string | number;
42
47
  Usage: number;
43
48
  Read: number;
44
49
  Write: number;
45
50
  Used: number;
46
51
  Limit: number;
47
- Degraded: number;
48
- MediaType?: string;
49
- UsedSpaceFlag: number;
52
+ DiskSpace: EFlag;
50
53
  VDisks?: PreparedVDisk[];
51
54
  }
52
55
  export interface UsageFilter {
@@ -55,22 +58,7 @@ export interface UsageFilter {
55
58
  }
56
59
  export interface StorageSortParams {
57
60
  sortOrder: OrderType | undefined;
58
- sortValue: StorageSortValue | undefined;
59
- }
60
- export interface StorageSortAndFilterParams extends Partial<StorageSortParams> {
61
- filter?: string;
62
- offset?: number;
63
- limit?: number;
64
- }
65
- export interface StorageApiRequestParams extends StorageSortAndFilterParams {
66
- /** @deprecated use database instead */
67
- tenant?: string;
68
- database?: string;
69
- nodeId?: string | number;
70
- poolName?: string;
71
- groupId?: string | number;
72
- visibleEntities?: VisibleEntities;
73
- version?: EVersion;
61
+ sortValue: StorageV2SortValue | undefined;
74
62
  }
75
63
  export interface PreparedStorageResponse {
76
64
  nodes?: PreparedStorageNode[];