ydb-embedded-ui 6.18.0 → 6.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (250) hide show
  1. package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
  2. package/dist/components/GroupInfo/GroupInfo.js +3 -3
  3. package/dist/components/MetricChart/reducer.d.ts +2 -2
  4. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  5. package/dist/components/PaginatedTable/PaginatedTable.scss +4 -0
  6. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  7. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  8. package/dist/components/PaginatedTable/TableRow.js +1 -1
  9. package/dist/components/PaginatedTable/TableRow.js.map +1 -1
  10. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js +4 -2
  11. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js.map +1 -1
  12. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +4 -3
  13. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
  14. package/dist/containers/AppWithClusters/useClusterData.d.ts +7 -1
  15. package/dist/containers/AppWithClusters/useClusterData.js +8 -8
  16. package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
  17. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +3 -0
  18. package/dist/containers/AsideNavigation/AsideNavigation.js +6 -10
  19. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  20. package/dist/containers/AsideNavigation/Navigation.js +4 -1
  21. package/dist/containers/AsideNavigation/Navigation.js.map +1 -1
  22. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +3 -1
  23. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -4
  24. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js.map +1 -1
  25. package/dist/containers/Cluster/Cluster.js +5 -13
  26. package/dist/containers/Cluster/Cluster.js.map +1 -1
  27. package/dist/containers/Cluster/Cluster.scss +1 -0
  28. package/dist/containers/Header/Header.js +3 -7
  29. package/dist/containers/Header/Header.js.map +1 -1
  30. package/dist/containers/Node/Node.js +1 -5
  31. package/dist/containers/Node/Node.js.map +1 -1
  32. package/dist/containers/Node/NodePages.js +5 -4
  33. package/dist/containers/Node/NodePages.js.map +1 -1
  34. package/dist/containers/Node/NodeStructure/NodeStructure.js +9 -3
  35. package/dist/containers/Node/NodeStructure/NodeStructure.js.map +1 -1
  36. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +16 -7
  37. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
  38. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +2 -0
  39. package/dist/containers/PDiskPage/PDiskGroups/utils.js +14 -0
  40. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +1 -0
  41. package/dist/containers/PDiskPage/PDiskPage.js +1 -1
  42. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  43. package/dist/containers/Storage/Storage.js +9 -9
  44. package/dist/containers/Storage/Storage.js.map +1 -1
  45. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +7 -2
  46. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  47. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +1 -1
  48. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js +7 -20
  49. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -1
  50. package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -1
  51. package/dist/containers/Storage/StorageGroups/getGroups.js +27 -24
  52. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  53. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +1 -1
  54. package/dist/containers/Storage/utils/index.js +3 -4
  55. package/dist/containers/Storage/utils/index.js.map +1 -1
  56. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  57. package/dist/containers/Tenant/Diagnostics/Configs/Configs.d.ts +6 -0
  58. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js +79 -0
  59. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js.map +1 -0
  60. package/dist/containers/Tenant/Diagnostics/Configs/Configs.scss +8 -0
  61. package/dist/containers/Tenant/Diagnostics/Configs/i18n/en.json +11 -0
  62. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +2 -0
  63. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js +5 -0
  64. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js.map +1 -0
  65. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
  66. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  67. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +3 -0
  68. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
  69. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  70. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
  71. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +21 -4
  72. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  73. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +2 -0
  74. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +7 -0
  75. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +1 -0
  76. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +8 -3
  77. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
  78. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.d.ts +7 -0
  79. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js +17 -0
  80. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js.map +1 -0
  81. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +9 -0
  82. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +5 -9
  83. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +7 -7
  84. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  85. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -12
  86. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +1 -1
  87. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +9 -24
  88. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
  89. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +0 -1
  90. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  91. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +4 -12
  92. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +7 -5
  93. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
  94. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -6
  95. package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +1 -2
  96. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +1 -1
  97. package/dist/containers/Tenant/Query/Query.js +14 -2
  98. package/dist/containers/Tenant/Query/Query.js.map +1 -1
  99. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +3 -2
  100. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -36
  101. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  102. package/dist/containers/Tenant/Query/i18n/en.json +1 -0
  103. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  104. package/dist/containers/Tenant/utils/queryTemplates.js +1 -1
  105. package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
  106. package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
  107. package/dist/containers/VDiskPage/VDiskPage.js +33 -10
  108. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  109. package/dist/containers/VDiskPage/utils.d.ts +2 -0
  110. package/dist/containers/VDiskPage/utils.js +7 -0
  111. package/dist/containers/VDiskPage/utils.js.map +1 -0
  112. package/dist/lib.d.ts +1 -0
  113. package/dist/lib.js +1 -0
  114. package/dist/lib.js.map +1 -1
  115. package/dist/services/api.d.ts +17 -10
  116. package/dist/services/api.js +62 -16
  117. package/dist/services/api.js.map +1 -1
  118. package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
  119. package/dist/services/parsers/parseMetaCluster.js +17 -31
  120. package/dist/services/parsers/parseMetaCluster.js.map +1 -1
  121. package/dist/store/configureStore.d.ts +4 -4
  122. package/dist/store/defaultStore.d.ts +2 -2
  123. package/dist/store/getUrlData.js +9 -6
  124. package/dist/store/getUrlData.js.map +1 -1
  125. package/dist/store/reducers/api.d.ts +1 -1
  126. package/dist/store/reducers/api.js +1 -1
  127. package/dist/store/reducers/api.js.map +1 -1
  128. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  129. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  130. package/dist/store/reducers/cancelQuery.js.map +1 -1
  131. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
  132. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  133. package/dist/store/reducers/capabilities/hooks.js +8 -1
  134. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  135. package/dist/store/reducers/cluster/cluster.d.ts +230 -2
  136. package/dist/store/reducers/cluster/cluster.js +36 -3
  137. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  138. package/dist/store/reducers/cluster/utils.d.ts +1 -0
  139. package/dist/store/reducers/cluster/utils.js +7 -0
  140. package/dist/store/reducers/cluster/utils.js.map +1 -1
  141. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  142. package/dist/store/reducers/describe.d.ts +2 -2
  143. package/dist/store/reducers/executeQuery.d.ts +8 -4
  144. package/dist/store/reducers/executeQuery.js +34 -1
  145. package/dist/store/reducers/executeQuery.js.map +1 -1
  146. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  147. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -3
  148. package/dist/store/reducers/explainQuery/explainQuery.js +23 -2
  149. package/dist/store/reducers/explainQuery/explainQuery.js.map +1 -1
  150. package/dist/store/reducers/explainQuery/types.d.ts +1 -0
  151. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
  152. package/dist/store/reducers/heatmap.d.ts +2 -2
  153. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  154. package/dist/store/reducers/index.d.ts +3 -3
  155. package/dist/store/reducers/network/network.d.ts +2 -2
  156. package/dist/store/reducers/node/node.d.ts +3 -3
  157. package/dist/store/reducers/node/selectors.d.ts +1 -1
  158. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  159. package/dist/store/reducers/nodes/nodes.js +1 -2
  160. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  161. package/dist/store/reducers/nodesList.d.ts +3 -3
  162. package/dist/store/reducers/overview/overview.d.ts +2 -2
  163. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  164. package/dist/store/reducers/pdisk/pdisk.d.ts +2 -3
  165. package/dist/store/reducers/pdisk/pdisk.js +1 -21
  166. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  167. package/dist/store/reducers/pdisk/utils.d.ts +0 -3
  168. package/dist/store/reducers/pdisk/utils.js +0 -22
  169. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  170. package/dist/store/reducers/preview.d.ts +2 -2
  171. package/dist/store/reducers/schema/schema.d.ts +3 -3
  172. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
  173. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  174. package/dist/store/reducers/storage/requestStorageData.d.ts +5 -0
  175. package/dist/store/reducers/storage/requestStorageData.js +12 -0
  176. package/dist/store/reducers/storage/requestStorageData.js.map +1 -0
  177. package/dist/store/reducers/storage/selectors.js +1 -1
  178. package/dist/store/reducers/storage/storage.d.ts +6 -4
  179. package/dist/store/reducers/storage/storage.js +6 -6
  180. package/dist/store/reducers/storage/storage.js.map +1 -1
  181. package/dist/store/reducers/storage/types.d.ts +11 -23
  182. package/dist/store/reducers/storage/utils.d.ts +3 -2
  183. package/dist/store/reducers/storage/utils.js +52 -26
  184. package/dist/store/reducers/storage/utils.js.map +1 -1
  185. package/dist/store/reducers/tableData.d.ts +1 -1
  186. package/dist/store/reducers/tablet.d.ts +7 -7
  187. package/dist/store/reducers/tablets.d.ts +13 -13
  188. package/dist/store/reducers/tenant/constants.d.ts +1 -0
  189. package/dist/store/reducers/tenant/constants.js +1 -0
  190. package/dist/store/reducers/tenant/constants.js.map +1 -1
  191. package/dist/store/reducers/tenant/tenant.d.ts +5 -2
  192. package/dist/store/reducers/tenant/tenant.js +12 -0
  193. package/dist/store/reducers/tenant/tenant.js.map +1 -1
  194. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  195. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  196. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  197. package/dist/store/reducers/tenants/selectors.d.ts +27 -27
  198. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  199. package/dist/store/reducers/topic.d.ts +44 -44
  200. package/dist/store/reducers/trace.d.ts +4 -5
  201. package/dist/store/reducers/trace.js +5 -8
  202. package/dist/store/reducers/trace.js.map +1 -1
  203. package/dist/store/reducers/vdisk/utils.d.ts +0 -2
  204. package/dist/store/reducers/vdisk/utils.js +0 -10
  205. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  206. package/dist/store/reducers/vdisk/vdisk.d.ts +8 -5
  207. package/dist/store/reducers/vdisk/vdisk.js +17 -32
  208. package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
  209. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  210. package/dist/types/api/capabilities.d.ts +1 -1
  211. package/dist/types/api/compute.d.ts +1 -4
  212. package/dist/types/api/compute.js +1 -5
  213. package/dist/types/api/compute.js.map +1 -1
  214. package/dist/types/api/featureFlags.d.ts +13 -0
  215. package/dist/types/api/featureFlags.js +2 -0
  216. package/dist/types/api/featureFlags.js.map +1 -0
  217. package/dist/types/api/meta.d.ts +4 -2
  218. package/dist/types/api/pdisk.d.ts +1 -1
  219. package/dist/types/api/storage.d.ts +132 -6
  220. package/dist/types/api/storage.js +1 -5
  221. package/dist/types/api/storage.js.map +1 -1
  222. package/dist/types/api/trace.d.ts +16 -6
  223. package/dist/types/api/trace.js +7 -1
  224. package/dist/types/api/trace.js.map +1 -1
  225. package/dist/types/api/vdisk.d.ts +1 -1
  226. package/dist/types/store/executeQuery.d.ts +25 -3
  227. package/dist/types/store/executeQuery.js +5 -1
  228. package/dist/types/store/executeQuery.js.map +1 -1
  229. package/dist/utils/disks/helpers.d.ts +4 -1
  230. package/dist/utils/disks/helpers.js +7 -1
  231. package/dist/utils/disks/helpers.js.map +1 -1
  232. package/dist/utils/monaco/yql/generateSuggestions.js +8 -3
  233. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  234. package/dist/utils/storage.d.ts +2 -21
  235. package/dist/utils/storage.js +14 -19
  236. package/dist/utils/storage.js.map +1 -1
  237. package/package.json +1 -6
  238. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +0 -9
  239. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +0 -9
  240. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +0 -1
  241. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +0 -3
  242. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +0 -4
  243. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +0 -29
  244. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js.map +0 -1
  245. package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -4
  246. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js +0 -2
  247. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js.map +0 -1
  248. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.d.ts +0 -3
  249. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js +0 -13
  250. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js.map +0 -1
@@ -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,5 @@
1
1
  import type { ComputeApiRequestParams, 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
+ getComputeNodes: import("@reduxjs/toolkit/query").QueryDefinition<ComputeApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").NodesHandledResponse | undefined, "api">;
5
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,4 +1,3 @@
1
- import { EVersion } from '../../../types/api/compute';
2
1
  import { api } from '../api';
3
2
  import { prepareComputeNodesData, prepareNodesData } from './utils';
4
3
  export const nodesApi = api.injectEndpoints({
@@ -24,7 +23,7 @@ export const nodesApi = api.injectEndpoints({
24
23
  queryFn: async (params, { signal }) => {
25
24
  try {
26
25
  const data = await window.api.getCompute({
27
- version: EVersion.v2,
26
+ version: 'v2',
28
27
  ...params,
29
28
  }, { signal });
30
29
  return { data: prepareComputeNodesData(data) };
@@ -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,E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C,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,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,MA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AAE,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
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAC,uBAAuB,EAAC,MAAM,kBAAkB,CAAC;AAIzD,MAAM,UAAU,wBAAwB,CAAC,CAAC,aAAa,GAAG,EAAE,EAAE,YAAY,CAGzE;;IACG,MAAM,EAAC,GAAG,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,EAAC,GAAG,aAAa,IAAI,EAAE,CAAC;IAExD,MAAM,EAAC,KAAK,EAAE,mBAAmB,GAAG,EAAE,EAAE,MAAM,EAAE,oBAAoB,GAAG,EAAE,EAAC,GAAG,UAAU,CAAC;IACxF,MAAM,EAAC,KAAK,EAAE,YAAY,GAAG,EAAE,EAAC,GAAG,GAAG,CAAC;IAEvC,MAAM,aAAa,GAAG,gBAAgB,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;IAE1E,MAAM,EACF,WAAW,EACX,YAAY,EACZ,SAAS,EAAE,cAAc,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KAAK,EAAE,aAAa;gBACpB,QAAQ,EAAE,CAAC;gBACX,QAAQ,EAAE;oBACN,IAAI,EAAE,aAAa;iBACtB;aACJ,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;IAED,MAAM,SAAS,GAA2B,CAAC,GAAG,WAAW,EAAE,GAAG,UAAU,CAAC,CAAC;IAE1E,IAAI,OAAO,EAAE,CAAC;QACV,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM,OAAO,GAAG,MAAA,YAAY,CAAC,eAAe,0CAAG,CAAC,CAAC,CAAC;IAClD,MAAM,YAAY,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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,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,EAAE,aAAa,CAAC;SACvC,CAAC;QACF,oBAAoB,EAAE,OAAO,CAAC,KAAK,CAAC;YAChC,OAAO,EAAE,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[];
@@ -1,8 +1,9 @@
1
1
  import type { TNodesInfo } from '../../../types/api/nodes';
2
- import type { TStorageGroupInfo, TStorageGroupInfoV2, TStorageInfo, TStoragePoolInfo } from '../../../types/api/storage';
2
+ import type { StorageGroupsResponse, TStorageGroupInfo, TStorageGroupInfoV2, TStorageInfo, TStoragePoolInfo } from '../../../types/api/storage';
3
3
  import type { PreparedStorageGroup, PreparedStorageResponse } from './types';
4
4
  export declare const prepareStorageGroupData: (group: TStorageGroupInfo, pool: TStoragePoolInfo) => PreparedStorageGroup;
5
5
  export declare const prepareStorageGroupDataV2: (group: TStorageGroupInfoV2) => PreparedStorageGroup;
6
6
  export declare const prepareStorageGroups: (StorageGroups?: TStorageGroupInfoV2[], StoragePools?: TStoragePoolInfo[]) => PreparedStorageGroup[];
7
7
  export declare const prepareStorageNodesResponse: (data: TNodesInfo) => PreparedStorageResponse;
8
- export declare const prepareStorageGroupsResponse: (data: TStorageInfo) => PreparedStorageResponse;
8
+ export declare const prepareStorageResponse: (data: TStorageInfo) => PreparedStorageResponse;
9
+ export declare function prepareGroupsResponse(data: StorageGroupsResponse): PreparedStorageResponse;
@@ -1,20 +1,15 @@
1
- import { EFlag } from '../../../types/api/enums';
2
1
  import { TPDiskState } from '../../../types/api/pdisk';
3
2
  import { EVDiskState } from '../../../types/api/vdisk';
3
+ import { getColorSeverity, getSeverityColor } from '../../../utils/disks/helpers';
4
4
  import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
5
5
  import { prepareNodeSystemState } from '../../../utils/nodes';
6
6
  import { getUsage } from '../../../utils/storage';
7
- // ==== Constants ====
8
- // Do not count Grey and Blue statuses in used space severity calculations
9
- const FLAGS_POINTS = {
10
- [EFlag.Grey]: 0,
11
- [EFlag.Blue]: 0,
12
- [EFlag.Green]: 1,
13
- [EFlag.Yellow]: 100,
14
- [EFlag.Orange]: 10000,
15
- [EFlag.Red]: 1000000,
16
- };
17
7
  // ==== Prepare groups ====
8
+ function getGroupDiskSpaceStatus(group) {
9
+ const { DiskSpace, VDisks = [] } = group;
10
+ return (DiskSpace ||
11
+ getSeverityColor(Math.max(...VDisks.map((disk) => getColorSeverity(disk.DiskSpace)))));
12
+ }
18
13
  const prepareVDisk = (vDisk, poolName) => {
19
14
  var _a;
20
15
  const preparedVDisk = prepareVDiskData(vDisk);
@@ -31,7 +26,6 @@ const prepareVDisk = (vDisk, poolName) => {
31
26
  export const prepareStorageGroupData = (group, pool) => {
32
27
  var _a;
33
28
  let missing = 0;
34
- let usedSpaceFlag = 0;
35
29
  let usedSpaceBytes = 0;
36
30
  let limitSizeBytes = 0;
37
31
  let readSpeedBytesPerSec = 0;
@@ -40,14 +34,11 @@ export const prepareStorageGroupData = (group, pool) => {
40
34
  const { Name: poolName, MediaType: poolMediaType } = pool;
41
35
  if (group.VDisks) {
42
36
  for (const vDisk of group.VDisks) {
43
- const { Replicated, VDiskState, AvailableSize, AllocatedSize, PDisk, DiskSpace, ReadThroughput, WriteThroughput, } = vDisk;
37
+ const { Replicated, VDiskState, AvailableSize, AllocatedSize, PDisk, ReadThroughput, WriteThroughput, } = vDisk;
44
38
  const { Type: PDiskType, State: PDiskState, AvailableSize: PDiskAvailableSize, } = preparePDiskData(PDisk);
45
39
  if (!Replicated || PDiskState !== TPDiskState.Normal || VDiskState !== EVDiskState.OK) {
46
40
  missing += 1;
47
41
  }
48
- if (DiskSpace) {
49
- usedSpaceFlag += FLAGS_POINTS[DiskSpace];
50
- }
51
42
  const available = Number(AvailableSize !== null && AvailableSize !== void 0 ? AvailableSize : PDiskAvailableSize) || 0;
52
43
  const allocated = Number(AllocatedSize) || 0;
53
44
  usedSpaceBytes += allocated;
@@ -59,8 +50,10 @@ export const prepareStorageGroupData = (group, pool) => {
59
50
  }
60
51
  const vDisks = (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.map((vdisk) => prepareVDisk(vdisk, poolName));
61
52
  const usage = getUsage({ Used: usedSpaceBytes, Limit: limitSizeBytes }, 5);
53
+ const diskSpaceStatus = getGroupDiskSpaceStatus(group);
62
54
  return {
63
55
  ...group,
56
+ GroupId: group.GroupID,
64
57
  VDisks: vDisks,
65
58
  Usage: usage,
66
59
  Read: readSpeedBytesPerSec,
@@ -69,24 +62,19 @@ export const prepareStorageGroupData = (group, pool) => {
69
62
  Used: usedSpaceBytes,
70
63
  Limit: limitSizeBytes,
71
64
  Degraded: missing,
72
- UsedSpaceFlag: usedSpaceFlag,
73
65
  MediaType: poolMediaType || mediaType || undefined,
66
+ DiskSpace: diskSpaceStatus,
74
67
  };
75
68
  };
76
69
  export const prepareStorageGroupDataV2 = (group) => {
77
- const { VDisks = [], PoolName, Usage = 0, Read = 0, Write = 0, Used = 0, Limit = 0, Degraded = 0, Kind, MediaType, } = group;
78
- const UsedSpaceFlag = VDisks.reduce((acc, { DiskSpace }) => {
79
- if (DiskSpace && DiskSpace !== EFlag.Grey) {
80
- return acc + FLAGS_POINTS[DiskSpace];
81
- }
82
- return acc;
83
- }, 0);
70
+ const { VDisks = [], PoolName, Usage = 0, Read = 0, Write = 0, Used = 0, Limit = 0, Degraded = 0, Kind, MediaType, GroupID, } = group;
84
71
  const vDisks = VDisks.map((vdisk) => prepareVDisk(vdisk, PoolName));
85
72
  const usage = Math.floor(Number(Usage) * 100);
73
+ const diskSpaceStatus = getGroupDiskSpaceStatus(group);
86
74
  return {
87
75
  ...group,
88
- UsedSpaceFlag,
89
76
  PoolName,
77
+ GroupId: GroupID,
90
78
  MediaType: MediaType || Kind,
91
79
  VDisks: vDisks,
92
80
  Usage: usage,
@@ -95,6 +83,7 @@ export const prepareStorageGroupDataV2 = (group) => {
95
83
  Used: Number(Used),
96
84
  Limit: Number(Limit),
97
85
  Degraded: Number(Degraded),
86
+ DiskSpace: diskSpaceStatus,
98
87
  };
99
88
  };
100
89
  export const prepareStorageGroups = (StorageGroups, StoragePools) => {
@@ -148,7 +137,7 @@ export const prepareStorageNodesResponse = (data) => {
148
137
  found: Number(FoundNodes),
149
138
  };
150
139
  };
151
- export const prepareStorageGroupsResponse = (data) => {
140
+ export const prepareStorageResponse = (data) => {
152
141
  const { StoragePools, StorageGroups, TotalGroups, FoundGroups } = data;
153
142
  const preparedGroups = prepareStorageGroups(StorageGroups, StoragePools);
154
143
  return {
@@ -157,4 +146,41 @@ export const prepareStorageGroupsResponse = (data) => {
157
146
  found: Number(FoundGroups),
158
147
  };
159
148
  };
149
+ export function prepareGroupsResponse(data) {
150
+ const { FoundGroups, TotalGroups, StorageGroups = [] } = data;
151
+ const preparedGroups = StorageGroups.map((group) => {
152
+ const { Usage, Read, Write, Used, Limit, MissingDisks, VDisks = [] } = group;
153
+ const vDisks = VDisks.map((disk) => {
154
+ var _a;
155
+ const whiteboardVDisk = disk.Whiteboard;
156
+ const whiteboardPDisk = (_a = disk.PDisk) === null || _a === void 0 ? void 0 : _a.Whiteboard;
157
+ const NodeId = disk.NodeId;
158
+ const PDiskId = whiteboardPDisk === null || whiteboardPDisk === void 0 ? void 0 : whiteboardPDisk.PDiskId;
159
+ const whiteboardVDiskData = {
160
+ ...whiteboardVDisk,
161
+ PDiskId,
162
+ NodeId,
163
+ PDisk: { ...whiteboardPDisk, NodeId },
164
+ };
165
+ return prepareVDiskData(whiteboardVDiskData);
166
+ });
167
+ const diskSpaceStatus = getGroupDiskSpaceStatus(group);
168
+ return {
169
+ ...group,
170
+ Usage: Math.floor(Number(Usage)) || 0,
171
+ Read: Number(Read),
172
+ Write: Number(Write),
173
+ Used: Number(Used),
174
+ Limit: Number(Limit),
175
+ Degraded: Number(MissingDisks),
176
+ VDisks: vDisks,
177
+ DiskSpace: diskSpaceStatus,
178
+ };
179
+ });
180
+ return {
181
+ groups: preparedGroups,
182
+ total: Number(TotalGroups) || preparedGroups.length,
183
+ found: Number(FoundGroups),
184
+ };
185
+ }
160
186
  //# sourceMappingURL=utils.js.map