ydb-embedded-ui 6.37.1 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (274) hide show
  1. package/dist/components/BasicNodeViewer/BasicNodeViewer.scss +2 -2
  2. package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.scss +2 -2
  3. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +2 -2
  4. package/dist/components/EmptyState/EmptyState.scss +4 -4
  5. package/dist/components/EntityPageTitle/EntityPageTitle.scss +2 -2
  6. package/dist/components/EntityStatus/EntityStatus.scss +4 -4
  7. package/dist/components/ErrorBoundary/ErrorBoundary.scss +3 -3
  8. package/dist/components/FullNodeViewer/FullNodeViewer.scss +2 -2
  9. package/dist/components/Fullscreen/Fullscreen.js +1 -1
  10. package/dist/components/Fullscreen/Fullscreen.js.map +1 -1
  11. package/dist/components/Fullscreen/Fullscreen.scss +8 -1
  12. package/dist/components/MemoryViewer/MemoryViewer.js +8 -7
  13. package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -1
  14. package/dist/components/MemoryViewer/MemoryViewer.scss +0 -2
  15. package/dist/components/MemoryViewer/utils.d.ts +3 -1
  16. package/dist/components/MemoryViewer/utils.js +15 -13
  17. package/dist/components/MemoryViewer/utils.js.map +1 -1
  18. package/dist/components/MetricChart/getChartData.js +1 -1
  19. package/dist/components/MetricChart/getChartData.js.map +1 -1
  20. package/dist/components/PageMeta/PageMeta.scss +2 -2
  21. package/dist/components/PaginatedTable/PaginatedTable.scss +4 -4
  22. package/dist/components/PoolUsage/PoolUsage.scss +2 -2
  23. package/dist/components/ProgressViewer/ProgressViewer.scss +2 -2
  24. package/dist/components/QueryResultTable/QueryResultTable.js +4 -3
  25. package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
  26. package/dist/components/QueryResultTable/QueryResultTable.scss +2 -2
  27. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +4 -4
  28. package/dist/components/User/User.scss +2 -2
  29. package/dist/components/YDBDefinitionList/YDBDefinitionList.scss +3 -3
  30. package/dist/components/nodesColumns/columns.js +1 -0
  31. package/dist/components/nodesColumns/columns.js.map +1 -1
  32. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  33. package/dist/containers/App/App.scss +7 -6
  34. package/dist/containers/AsideNavigation/AsideNavigation.js +11 -2
  35. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  36. package/dist/containers/Authentication/Authentication.scss +2 -2
  37. package/dist/containers/Cluster/Cluster.scss +4 -4
  38. package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.scss +2 -2
  39. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +2 -2
  40. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +2 -2
  41. package/dist/containers/Clusters/constants.d.ts +1 -1
  42. package/dist/containers/Header/Header.scss +0 -2
  43. package/dist/containers/Heatmap/Heatmap.scss +3 -3
  44. package/dist/containers/Node/Node.scss +4 -4
  45. package/dist/containers/Node/NodeStructure/NodeStructure.scss +3 -3
  46. package/dist/containers/Nodes/Nodes.d.ts +2 -1
  47. package/dist/containers/Nodes/Nodes.js +12 -11
  48. package/dist/containers/Nodes/Nodes.js.map +1 -1
  49. package/dist/containers/Nodes/Nodes.scss +2 -2
  50. package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +2 -1
  51. package/dist/containers/Nodes/NodesControls/NodesControls.js +7 -4
  52. package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
  53. package/dist/containers/Nodes/NodesTable.d.ts +3 -2
  54. package/dist/containers/Nodes/NodesTable.js +12 -2
  55. package/dist/containers/Nodes/NodesTable.js.map +1 -1
  56. package/dist/containers/Nodes/PeerRoleFilter/PeerRoleFilter.d.ts +7 -0
  57. package/dist/containers/Nodes/PeerRoleFilter/PeerRoleFilter.js +9 -0
  58. package/dist/containers/Nodes/PeerRoleFilter/PeerRoleFilter.js.map +1 -0
  59. package/dist/containers/Nodes/PeerRoleFilter/utils.d.ts +4 -0
  60. package/dist/containers/Nodes/PeerRoleFilter/utils.js +20 -0
  61. package/dist/containers/Nodes/PeerRoleFilter/utils.js.map +1 -0
  62. package/dist/containers/Nodes/columns/columns.js +4 -4
  63. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  64. package/dist/containers/Nodes/columns/constants.js +3 -6
  65. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  66. package/dist/containers/Nodes/getNodes.js +3 -2
  67. package/dist/containers/Nodes/getNodes.js.map +1 -1
  68. package/dist/containers/Nodes/i18n/en.json +6 -1
  69. package/dist/containers/Nodes/i18n/index.d.ts +1 -1
  70. package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +3 -1
  71. package/dist/containers/Nodes/useNodesPageQueryParams.js +8 -0
  72. package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -1
  73. package/dist/containers/PDiskPage/PDiskPage.js +2 -2
  74. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  75. package/dist/containers/PDiskPage/PDiskPage.scss +2 -2
  76. package/dist/containers/ReduxTooltip/ReduxTooltip.scss +2 -2
  77. package/dist/containers/Storage/Storage.scss +2 -2
  78. package/dist/containers/Storage/StorageGroups/columns/constants.js +0 -5
  79. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  80. package/dist/containers/Storage/StorageNodes/columns/columns.js +6 -6
  81. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  82. package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -3
  83. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  84. package/dist/containers/Storage/StorageNodes/getNodes.js +1 -1
  85. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  86. package/dist/containers/StorageGroupPage/StorageGroupPage.scss +2 -2
  87. package/dist/containers/Tablet/Tablet.scss +2 -2
  88. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +2 -2
  89. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +4 -4
  90. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  91. package/dist/containers/Tenant/Acl/Acl.scss +3 -3
  92. package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.scss +6 -6
  93. package/dist/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +2 -2
  94. package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +2 -2
  95. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +2 -2
  96. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +0 -2
  97. package/dist/containers/Tenant/Diagnostics/Network/Network.scss +6 -6
  98. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +1 -1
  99. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -1
  100. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.scss +2 -2
  101. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.scss +2 -2
  102. package/dist/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.scss +2 -2
  103. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.scss +6 -6
  104. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +2 -2
  105. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +2 -2
  106. package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +2 -2
  107. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +2 -2
  108. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  109. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.scss +3 -3
  110. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +1 -0
  111. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
  112. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.scss +0 -2
  113. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +3 -3
  114. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +2 -2
  115. package/dist/containers/Tenant/Query/Preview/Preview.js +11 -5
  116. package/dist/containers/Tenant/Query/Preview/Preview.js.map +1 -1
  117. package/dist/containers/Tenant/Query/Preview/Preview.scss +4 -3
  118. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.scss +3 -3
  119. package/dist/containers/Tenant/Query/Query.scss +2 -2
  120. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.scss +2 -2
  121. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss +2 -2
  122. package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss +2 -2
  123. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.scss +4 -4
  124. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.scss +3 -3
  125. package/dist/containers/Tenant/Query/i18n/en.json +1 -0
  126. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  127. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +3 -3
  128. package/dist/containers/Tenant/Tenant.scss +3 -3
  129. package/dist/containers/Tenants/Tenants.scss +2 -2
  130. package/dist/containers/VDiskPage/VDiskPage.js +1 -1
  131. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  132. package/dist/containers/VDiskPage/VDiskPage.scss +2 -2
  133. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +2 -2
  134. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
  135. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +2 -5
  136. package/dist/containers/Versions/NodesTable/NodesTable.d.ts +2 -2
  137. package/dist/containers/Versions/NodesTable/NodesTable.js +16 -85
  138. package/dist/containers/Versions/NodesTable/NodesTable.js.map +1 -1
  139. package/dist/containers/Versions/Versions.scss +0 -2
  140. package/dist/containers/Versions/groupNodes.d.ts +4 -4
  141. package/dist/containers/Versions/groupNodes.js.map +1 -1
  142. package/dist/containers/Versions/types.d.ts +2 -2
  143. package/dist/lib.d.ts +1 -1
  144. package/dist/lib.js +1 -1
  145. package/dist/lib.js.map +1 -1
  146. package/dist/services/api/auth.d.ts +8 -0
  147. package/dist/services/api/auth.js +10 -0
  148. package/dist/services/api/auth.js.map +1 -0
  149. package/dist/services/api/base.d.ts +13 -0
  150. package/dist/services/api/base.js +57 -0
  151. package/dist/services/api/base.js.map +1 -0
  152. package/dist/services/api/index.d.ts +31 -0
  153. package/dist/services/api/index.js +32 -0
  154. package/dist/services/api/index.js.map +1 -0
  155. package/dist/services/api/meta.d.ts +12 -0
  156. package/dist/services/api/meta.js +30 -0
  157. package/dist/services/api/meta.js.map +1 -0
  158. package/dist/services/api/operation.d.ts +8 -0
  159. package/dist/services/api/operation.js +22 -0
  160. package/dist/services/api/operation.js.map +1 -0
  161. package/dist/services/api/pdisk.d.ts +25 -0
  162. package/dist/services/api/pdisk.js +43 -0
  163. package/dist/services/api/pdisk.js.map +1 -0
  164. package/dist/services/api/scheme.d.ts +11 -0
  165. package/dist/services/api/scheme.js +12 -0
  166. package/dist/services/api/scheme.js.map +1 -0
  167. package/dist/services/api/storage.d.ts +6 -0
  168. package/dist/services/api/storage.js +28 -0
  169. package/dist/services/api/storage.js.map +1 -0
  170. package/dist/services/api/tablets.d.ts +21 -0
  171. package/dist/services/api/tablets.js +44 -0
  172. package/dist/services/api/tablets.js.map +1 -0
  173. package/dist/services/api/trace.d.ts +7 -0
  174. package/dist/services/api/trace.js +33 -0
  175. package/dist/services/api/trace.js.map +1 -0
  176. package/dist/services/api/vdisk.d.ts +12 -0
  177. package/dist/services/api/vdisk.js +16 -0
  178. package/dist/services/api/vdisk.js.map +1 -0
  179. package/dist/services/api/viewer.d.ts +129 -0
  180. package/dist/services/api/viewer.js +251 -0
  181. package/dist/services/api/viewer.js.map +1 -0
  182. package/dist/store/reducers/authentication/authentication.js +3 -3
  183. package/dist/store/reducers/authentication/authentication.js.map +1 -1
  184. package/dist/store/reducers/cancelQuery.js +1 -1
  185. package/dist/store/reducers/cancelQuery.js.map +1 -1
  186. package/dist/store/reducers/capabilities/capabilities.js +1 -1
  187. package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
  188. package/dist/store/reducers/capabilities/hooks.js +1 -1
  189. package/dist/store/reducers/cluster/cluster.js +8 -3
  190. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  191. package/dist/store/reducers/clusters/clusters.js +7 -2
  192. package/dist/store/reducers/clusters/clusters.js.map +1 -1
  193. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +2 -2
  194. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  195. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js +1 -1
  196. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js.map +1 -1
  197. package/dist/store/reducers/heatmap.js +2 -2
  198. package/dist/store/reducers/heatmap.js.map +1 -1
  199. package/dist/store/reducers/hotKeys/hotKeys.js +2 -2
  200. package/dist/store/reducers/hotKeys/hotKeys.js.map +1 -1
  201. package/dist/store/reducers/network/network.js +1 -1
  202. package/dist/store/reducers/network/network.js.map +1 -1
  203. package/dist/store/reducers/node/node.js +2 -2
  204. package/dist/store/reducers/node/node.js.map +1 -1
  205. package/dist/store/reducers/nodes/nodes.js +1 -1
  206. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  207. package/dist/store/reducers/nodes/types.d.ts +2 -1
  208. package/dist/store/reducers/nodesList.js +1 -1
  209. package/dist/store/reducers/nodesList.js.map +1 -1
  210. package/dist/store/reducers/operations.js +3 -3
  211. package/dist/store/reducers/operations.js.map +1 -1
  212. package/dist/store/reducers/overview/overview.js +2 -2
  213. package/dist/store/reducers/overview/overview.js.map +1 -1
  214. package/dist/store/reducers/partitions/partitions.js +2 -2
  215. package/dist/store/reducers/partitions/partitions.js.map +1 -1
  216. package/dist/store/reducers/pdisk/pdisk.js +3 -3
  217. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  218. package/dist/store/reducers/planToSvg.js +1 -1
  219. package/dist/store/reducers/planToSvg.js.map +1 -1
  220. package/dist/store/reducers/preview.d.ts +1 -0
  221. package/dist/store/reducers/preview.js +2 -2
  222. package/dist/store/reducers/preview.js.map +1 -1
  223. package/dist/store/reducers/query/query.js +1 -1
  224. package/dist/store/reducers/query/query.js.map +1 -1
  225. package/dist/store/reducers/schema/schema.js +2 -2
  226. package/dist/store/reducers/schema/schema.js.map +1 -1
  227. package/dist/store/reducers/schemaAcl/schemaAcl.js +1 -1
  228. package/dist/store/reducers/schemaAcl/schemaAcl.js.map +1 -1
  229. package/dist/store/reducers/shardsWorkload/shardsWorkload.js +1 -1
  230. package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
  231. package/dist/store/reducers/storage/requestStorageData.d.ts +1 -1
  232. package/dist/store/reducers/storage/requestStorageData.js +2 -2
  233. package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
  234. package/dist/store/reducers/storage/storage.js +1 -1
  235. package/dist/store/reducers/storage/storage.js.map +1 -1
  236. package/dist/store/reducers/tablet.js +10 -8
  237. package/dist/store/reducers/tablet.js.map +1 -1
  238. package/dist/store/reducers/tablets.js +1 -1
  239. package/dist/store/reducers/tablets.js.map +1 -1
  240. package/dist/store/reducers/tenant/tenant.js +2 -2
  241. package/dist/store/reducers/tenant/tenant.js.map +1 -1
  242. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +1 -1
  243. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js.map +1 -1
  244. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +1 -1
  245. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js.map +1 -1
  246. package/dist/store/reducers/tenants/tenants.js +3 -1
  247. package/dist/store/reducers/tenants/tenants.js.map +1 -1
  248. package/dist/store/reducers/tooltip.d.ts +1 -1
  249. package/dist/store/reducers/topic.js +1 -1
  250. package/dist/store/reducers/topic.js.map +1 -1
  251. package/dist/store/reducers/trace.js +1 -1
  252. package/dist/store/reducers/trace.js.map +1 -1
  253. package/dist/store/reducers/vdisk/vdisk.js +3 -3
  254. package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
  255. package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
  256. package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
  257. package/dist/styles/mixins.scss +2 -1
  258. package/dist/styles/themes.scss +8 -8
  259. package/dist/types/api/nodes.d.ts +4 -1
  260. package/dist/types/api/nodes.js.map +1 -1
  261. package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +2 -2
  262. package/dist/utils/hooks/useQueryExecutionSettings.d.ts +1 -1
  263. package/dist/utils/monaco/yql/generateSuggestions.js +6 -2
  264. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  265. package/dist/utils/query.d.ts +3 -3
  266. package/dist/utils/query.js +2 -2
  267. package/dist/utils/query.js.map +1 -1
  268. package/dist/utils/versions/getVersionsColors.d.ts +1 -1
  269. package/dist/utils/versions/getVersionsColors.js +3 -2
  270. package/dist/utils/versions/getVersionsColors.js.map +1 -1
  271. package/package.json +2 -2
  272. package/dist/services/api.d.ts +0 -219
  273. package/dist/services/api.js +0 -522
  274. package/dist/services/api.js.map +0 -1
@@ -1,4 +1,4 @@
1
- @import '../../../styles/mixins.scss';
1
+ @use '../../../styles/mixins.scss';
2
2
 
3
3
  .ydb-versions-grouped-node-tree {
4
4
  $item-width: 100%;
@@ -20,13 +20,10 @@
20
20
 
21
21
  margin-right: $margin-size;
22
22
  margin-left: $margin-size;
23
-
24
- @include freeze-nth-column(1);
25
- @include freeze-nth-column(2, 80px);
26
23
  }
27
24
 
28
25
  .ydb-tree-view {
29
- @include body-2-typography();
26
+ @include mixins.body-2-typography();
30
27
 
31
28
  // Apply margin ignoring first element of the tree
32
29
  .ydb-tree-view {
@@ -1,6 +1,6 @@
1
- import type { PreparedNodeSystemState } from '../../../utils/nodes';
1
+ import type { NodesPreparedEntity } from '../../../store/reducers/nodes/types';
2
2
  interface NodesTableProps {
3
- nodes: PreparedNodeSystemState[];
3
+ nodes: NodesPreparedEntity[];
4
4
  }
5
5
  export declare const NodesTable: ({ nodes }: NodesTableProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -1,93 +1,24 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import DataTable from '@gravity-ui/react-data-table';
3
- import { EntityStatus } from '../../../components/EntityStatus/EntityStatus';
4
- import { PoolsGraph } from '../../../components/PoolsGraph/PoolsGraph';
5
- import { ProgressViewer } from '../../../components/ProgressViewer/ProgressViewer';
6
2
  import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
3
+ import { getCpuColumn, getHostColumn, getLoadAverageColumn, getNodeIdColumn, getRAMColumn, getUptimeColumn, } from '../../../components/nodesColumns/columns';
4
+ import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
7
5
  import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
8
- import { formatBytes } from '../../../utils/dataFormatters/dataFormatters';
9
- import { isUnavailableNode } from '../../../utils/nodes';
10
- import { getDefaultNodePath } from '../../Node/NodePages';
6
+ import { useAdditionalNodeProps } from '../../AppWithClusters/useClusterData';
11
7
  const VERSIONS_COLUMNS_WIDTH_LS_KEY = 'versionsTableColumnsWidth';
12
- const columns = [
13
- {
14
- name: 'NodeId',
15
- header: '#',
16
- width: 80,
17
- resizeMinWidth: 80,
18
- align: DataTable.LEFT,
19
- render: ({ row }) => row.NodeId,
20
- },
21
- {
22
- name: 'Host',
23
- render: ({ row }) => {
24
- var _a;
25
- const port = row.Endpoints && ((_a = row.Endpoints.find((item) => item.Name === 'http-mon')) === null || _a === void 0 ? void 0 : _a.Address);
26
- const host = row.Host && `${row.Host}${port || ''}`;
27
- const title = host || 'unknown';
28
- const nodePath = !isUnavailableNode(row) && row.NodeId ? getDefaultNodePath(row.NodeId) : undefined;
29
- return (_jsx(EntityStatus, { name: title, path: nodePath, hasClipboardButton: true, showStatus: false }));
30
- },
31
- width: 400,
32
- align: DataTable.LEFT,
33
- },
34
- {
35
- name: 'Endpoints',
36
- sortable: false,
37
- render: ({ row }) => row.Endpoints
38
- ? row.Endpoints.map(({ Name, Address }) => `${Name} ${Address}`).join(', ')
39
- : '-',
40
- width: 300,
41
- align: DataTable.LEFT,
42
- },
43
- {
44
- name: 'Uptime',
45
- header: 'Uptime',
46
- sortAccessor: ({ StartTime }) => StartTime && -StartTime,
47
- width: 120,
48
- align: DataTable.LEFT,
49
- render: ({ row }) => row.Uptime,
50
- },
51
- {
52
- name: 'MemoryUsed',
53
- header: 'Memory used',
54
- sortAccessor: ({ MemoryUsed = 0 }) => Number(MemoryUsed),
55
- defaultOrder: DataTable.DESCENDING,
56
- render: ({ row }) => (row.MemoryUsed ? formatBytes(row.MemoryUsed) : '—'),
57
- width: 120,
58
- align: DataTable.RIGHT,
59
- },
60
- {
61
- name: 'MemoryLimit',
62
- header: 'Memory limit',
63
- sortAccessor: ({ MemoryLimit = 0 }) => Number(MemoryLimit),
64
- defaultOrder: DataTable.DESCENDING,
65
- render: ({ row }) => (row.MemoryLimit ? formatBytes(row.MemoryLimit) : '—'),
66
- width: 120,
67
- align: DataTable.RIGHT,
68
- },
69
- {
70
- name: 'PoolStats',
71
- header: 'Pools',
72
- sortAccessor: ({ PoolStats = [] }) => PoolStats.reduce((acc, item) => acc + (item.Usage || 0), 0),
73
- defaultOrder: DataTable.DESCENDING,
74
- width: 80,
75
- resizeMinWidth: 60,
76
- render: ({ row }) => (row.PoolStats ? _jsx(PoolsGraph, { pools: row.PoolStats }) : '—'),
77
- align: DataTable.LEFT,
78
- },
79
- {
80
- name: 'LoadAverage',
81
- header: 'Load average',
82
- sortAccessor: ({ LoadAveragePercents = [] }) => LoadAveragePercents[0],
83
- defaultOrder: DataTable.DESCENDING,
84
- width: 170,
85
- resizeMinWidth: 170,
86
- render: ({ row }) => row.LoadAveragePercents && row.LoadAveragePercents.length > 0 ? (_jsx(ProgressViewer, { value: row.LoadAveragePercents[0], percents: true, capacity: 100, colorizeProgress: true })) : ('—'),
87
- align: DataTable.LEFT,
88
- },
89
- ];
8
+ function getColumns(params) {
9
+ return [
10
+ getNodeIdColumn(),
11
+ getHostColumn(params),
12
+ getUptimeColumn(),
13
+ getRAMColumn(),
14
+ getCpuColumn(),
15
+ getLoadAverageColumn(),
16
+ ];
17
+ }
90
18
  export const NodesTable = ({ nodes }) => {
19
+ const { balancer } = useClusterBaseInfo();
20
+ const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
21
+ const columns = getColumns({ getNodeRef: additionalNodesProps.getNodeRef });
91
22
  return (_jsx(ResizeableDataTable, { columnsWidthLSKey: VERSIONS_COLUMNS_WIDTH_LS_KEY, data: nodes, columns: columns, settings: DEFAULT_TABLE_SETTINGS }));
92
23
  };
93
24
  //# sourceMappingURL=NodesTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodesTable.js","sourceRoot":"","sources":["../../../../src/containers/Versions/NodesTable/NodesTable.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,WAAW,EAAC,MAAM,8CAA8C,CAAC;AAEzE,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAExD,MAAM,6BAA6B,GAAG,2BAA2B,CAAC;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,CACN;QACL,KAAK,EAAE,SAAS,CAAC,IAAI;KACxB;CACJ,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAC,KAAK,EAAkB,EAAE,EAAE;IACnD,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,6BAA6B,EAChD,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAsB,GAClC,CACL,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"NodesTable.js","sourceRoot":"","sources":["../../../../src/containers/Versions/NodesTable/NodesTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EACH,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,YAAY,EACZ,eAAe,GAClB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,sCAAsC,CAAC;AAE5E,MAAM,6BAA6B,GAAG,2BAA2B,CAAC;AAElE,SAAS,UAAU,CAAC,MAA6B;IAC7C,OAAO;QACH,eAAe,EAAE;QACjB,aAAa,CAAC,MAAM,CAAC;QACrB,eAAe,EAAE;QACjB,YAAY,EAAE;QACd,YAAY,EAAE;QACd,oBAAoB,EAAE;KACzB,CAAC;AACN,CAAC;AAMD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAC,KAAK,EAAkB,EAAE,EAAE;IACnD,MAAM,EAAC,QAAQ,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACxC,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAElE,MAAM,OAAO,GAAG,UAAU,CAAC,EAAC,UAAU,EAAE,oBAAoB,CAAC,UAAU,EAAC,CAAC,CAAC;IAE1E,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,6BAA6B,EAChD,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAsB,GAClC,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1,5 +1,3 @@
1
- @import '../../styles/mixins.scss';
2
-
3
1
  .ydb-versions {
4
2
  $_: &;
5
3
 
@@ -1,7 +1,7 @@
1
+ import type { NodesPreparedEntity } from '../../store/reducers/nodes/types';
1
2
  import type { VersionToColorMap } from '../../types/versions';
2
- import type { PreparedNodeSystemState } from '../../utils/nodes';
3
3
  import type { GroupedNodesItem } from './types';
4
4
  import { GroupByValue } from './types';
5
- export declare const getGroupedTenantNodes: (nodes: PreparedNodeSystemState[] | undefined, versionToColor: VersionToColorMap | undefined, groupByValue: GroupByValue) => GroupedNodesItem[] | undefined;
6
- export declare const getGroupedStorageNodes: (nodes: PreparedNodeSystemState[] | undefined, versionToColor: VersionToColorMap | undefined) => GroupedNodesItem[] | undefined;
7
- export declare const getOtherNodes: (nodes: PreparedNodeSystemState[] | undefined, versionToColor: VersionToColorMap | undefined) => GroupedNodesItem[] | undefined;
5
+ export declare const getGroupedTenantNodes: (nodes: NodesPreparedEntity[] | undefined, versionToColor: VersionToColorMap | undefined, groupByValue: GroupByValue) => GroupedNodesItem[] | undefined;
6
+ export declare const getGroupedStorageNodes: (nodes: NodesPreparedEntity[] | undefined, versionToColor: VersionToColorMap | undefined) => GroupedNodesItem[] | undefined;
7
+ export declare const getOtherNodes: (nodes: NodesPreparedEntity[] | undefined, versionToColor: VersionToColorMap | undefined) => GroupedNodesItem[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"groupNodes.js","sourceRoot":"","sources":["../../../src/containers/Versions/groupNodes.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAIrC,OAAO,EAAC,eAAe,EAAE,0BAA0B,EAAC,MA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AAE;QAC7D,OAAO;YACH,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,4BAA4B,CAAC,OAAO,CAAC;YAC5C,YAAY,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;SAC9D,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CACzB,KAAwC,EACxC,cAA6C,EACf,EAAE;IAChC,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,EAAC,KAAK,EAAE,OAAO,EAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,OAAO,CAAC,CAAC;IACzE,MAAM,0BAA0B,GAAG,OAAO,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAElE,OAAO,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3D,OAAO;YACH,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC;YAC1C,YAAY,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;SAC9D,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
+ import type { NodesPreparedEntity } from '../../store/reducers/nodes/types';
1
2
  import type { VersionValue } from '../../types/versions';
2
- import type { PreparedNodeSystemState } from '../../utils/nodes';
3
3
  export interface GroupedNodesItem {
4
4
  title?: string;
5
- nodes?: PreparedNodeSystemState[];
5
+ nodes?: NodesPreparedEntity[];
6
6
  items?: GroupedNodesItem[];
7
7
  versionColor?: string;
8
8
  versionsValues?: VersionValue[];
package/dist/lib.d.ts CHANGED
@@ -4,7 +4,7 @@ export { ErrorBoundaryInner as ErrorBoundary, ErrorBoundaryFallback, } from './c
4
4
  export { AsideNavigation } from './containers/AsideNavigation/AsideNavigation';
5
5
  export { configureStore, rootReducer } from './store';
6
6
  export { default as appRoutes } from './routes';
7
- export { createApi, YdbEmbeddedAPI, YdbWebVersionAPI } from './services/api';
7
+ export { createApi, YdbEmbeddedAPI } from './services/api';
8
8
  export { settingsManager } from './services/settings';
9
9
  export { getUserSettings } from './containers/UserSettings/settings';
10
10
  export { setSettingValue, getSettingValue } from './store/reducers/settings/settings';
package/dist/lib.js CHANGED
@@ -4,7 +4,7 @@ export { ErrorBoundaryInner as ErrorBoundary, ErrorBoundaryFallback, } from './c
4
4
  export { AsideNavigation } from './containers/AsideNavigation/AsideNavigation';
5
5
  export { configureStore, rootReducer } from './store';
6
6
  export { default as appRoutes } from './routes';
7
- export { createApi, YdbEmbeddedAPI, YdbWebVersionAPI } from './services/api';
7
+ export { createApi, YdbEmbeddedAPI } from './services/api';
8
8
  export { settingsManager } from './services/settings';
9
9
  export { getUserSettings } from './containers/UserSettings/settings';
10
10
  export { setSettingValue, getSettingValue } from './store/reducers/settings/settings';
package/dist/lib.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,IAAI,gBAAgB,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAC,eAAe,IAAI,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAChG,OAAO,EACH,kBAAkB,IAAI,aAAa,EACnC,qBAAqB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAE7E,OAAO,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAC;AACpD,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,UAAU,CAAC;A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Ae,EAAC,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,oCAAoC,CAAC;AAEpF,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,iBAAiB,EAAE,wBAAwB,EAAC,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,eAAe,EAAC,MAAM,cAAc,CAAC;AACzD,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAC,EAAE,EAAC,MAAM,YAAY,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { BaseYdbAPI } from './base';
2
+ export declare class AuthAPI extends BaseYdbAPI {
3
+ authenticate(params: {
4
+ user: string;
5
+ password: string;
6
+ }): Promise<any>;
7
+ logout(): Promise<any>;
8
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseYdbAPI } from './base';
2
+ export class AuthAPI extends BaseYdbAPI {
3
+ authenticate(params) {
4
+ return this.post(this.getPath('/login'), params, {});
5
+ }
6
+ logout() {
7
+ return this.post(this.getPath('/logout'), {}, {});
8
+ }
9
+ }
10
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/services/api/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,OAAQ,SAAQ,UAAU;IACnC,YAAY,CAAC,MAAwC;QACjD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;CACJ"}
@@ -0,0 +1,13 @@
1
+ import AxiosWrapper from '@gravity-ui/axios-wrapper';
2
+ import type { AxiosWrapperOptions } from '@gravity-ui/axios-wrapper';
3
+ export type AxiosOptions = {
4
+ concurrentId?: string;
5
+ signal?: AbortSignal;
6
+ withRetries?: boolean;
7
+ };
8
+ export declare class BaseYdbAPI extends AxiosWrapper {
9
+ DEFAULT_RETRIES_COUNT: number;
10
+ constructor(options?: AxiosWrapperOptions);
11
+ getPath(path: string): string;
12
+ prepareArrayRequestParam(arr: (string | number)[]): string;
13
+ }
@@ -0,0 +1,57 @@
1
+ import AxiosWrapper from '@gravity-ui/axios-wrapper';
2
+ import axiosRetry from 'axios-retry';
3
+ import { backend as BACKEND } from '../../store';
4
+ import { DEV_ENABLE_TRACING_FOR_ALL_REQUESTS } from '../../utils/constants';
5
+ import { settingsManager } from '../settings';
6
+ export class BaseYdbAPI extends AxiosWrapper {
7
+ constructor(options) {
8
+ super(options);
9
+ this.DEFAULT_RETRIES_COUNT = 3;
10
+ axiosRetry(this._axios, {
11
+ retries: this.DEFAULT_RETRIES_COUNT,
12
+ retryDelay: axiosRetry.exponentialDelay,
13
+ });
14
+ // Make possible manually enable tracing for all requests
15
+ // For development purposes
16
+ this._axios.interceptors.request.use(function (config) {
17
+ const enableTracing = settingsManager.readUserSettingsValue(DEV_ENABLE_TRACING_FOR_ALL_REQUESTS);
18
+ if (enableTracing) {
19
+ config.headers['X-Want-Trace'] = 1;
20
+ }
21
+ return config;
22
+ });
23
+ // Add traceId to response if it exists
24
+ this._axios.interceptors.response.use(function (response) {
25
+ if (response.data &&
26
+ response.data instanceof Object &&
27
+ !Array.isArray(response.data) &&
28
+ response.headers['traceresponse']) {
29
+ const traceId = response.headers['traceresponse'].split('-')[1];
30
+ response.data = {
31
+ ...response.data,
32
+ _meta: { ...response.data._meta, traceId },
33
+ };
34
+ }
35
+ return response;
36
+ });
37
+ // Interceptor to process OIDC auth
38
+ this._axios.interceptors.response.use(null, function (error) {
39
+ var _a;
40
+ const response = error.response;
41
+ // OIDC proxy returns 401 response with authUrl in it
42
+ // authUrl - external auth service link, after successful auth additional cookies will be appended
43
+ // that will allow access to clusters where OIDC proxy is a balancer
44
+ if (response && response.status === 401 && ((_a = response.data) === null || _a === void 0 ? void 0 : _a.authUrl)) {
45
+ window.location.assign(response.data.authUrl);
46
+ }
47
+ return Promise.reject(error);
48
+ });
49
+ }
50
+ getPath(path) {
51
+ return `${BACKEND !== null && BACKEND !== void 0 ? BACKEND : ''}${path}`;
52
+ }
53
+ prepareArrayRequestParam(arr) {
54
+ return arr.join(',');
55
+ }
56
+ }
57
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/services/api/base.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,2BAA2B,CAAC;AAErD,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAC,mCAAmC,EAAC,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAQ5C,MAAM,OAAO,UAAW,SAAQ,YAAY;IAGxC,YAAY,OAA6B;QACrC,KAAK,CAAC,OAAO,CAAC,CAAC;QAHnB,0BAAqB,GAAG,CAAC,CAAC;QAKtB,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE;YACpB,OAAO,EAAE,IAAI,CAAC,qBAAqB;YACnC,UAAU,EAAE,UAAU,CAAC,gBAAgB;SAC1C,CAAC,CAAC;QAEH,yDAAyD;QACzD,2BAA2B;QAC3B,IAAI,CAAC,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AM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClD,CAAC;YAED,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACP,CAAC;IAED,OAAO,CAAC,IAAY;QAChB,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,GAAG,IAAI,EAAE,CAAC;IACrC,CAAC;IAED,wBAAwB,CAAC,GAAwB;QAC7C,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;CACJ"}
@@ -0,0 +1,31 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import { AuthAPI } from './auth';
3
+ import { MetaAPI } from './meta';
4
+ import { OperationAPI } from './operation';
5
+ import { PDiskAPI } from './pdisk';
6
+ import { SchemeAPI } from './scheme';
7
+ import { StorageAPI } from './storage';
8
+ import { TabletsAPI } from './tablets';
9
+ import { TraceAPI } from './trace';
10
+ import { VDiskAPI } from './vdisk';
11
+ import { ViewerAPI } from './viewer';
12
+ export declare class YdbEmbeddedAPI {
13
+ auth: AuthAPI;
14
+ operation: OperationAPI;
15
+ pdisk: PDiskAPI;
16
+ scheme: SchemeAPI;
17
+ storage: StorageAPI;
18
+ tablets: TabletsAPI;
19
+ trace: TraceAPI;
20
+ vdisk: VDiskAPI;
21
+ viewer: ViewerAPI;
22
+ meta?: MetaAPI;
23
+ constructor({ config, webVersion }: {
24
+ config: AxiosRequestConfig;
25
+ webVersion?: boolean;
26
+ });
27
+ }
28
+ export declare function createApi({ webVersion, withCredentials }?: {
29
+ webVersion?: boolean | undefined;
30
+ withCredentials?: boolean | undefined;
31
+ }): YdbEmbeddedAPI;
@@ -0,0 +1,32 @@
1
+ import { AuthAPI } from './auth';
2
+ import { MetaAPI } from './meta';
3
+ import { OperationAPI } from './operation';
4
+ import { PDiskAPI } from './pdisk';
5
+ import { SchemeAPI } from './scheme';
6
+ import { StorageAPI } from './storage';
7
+ import { TabletsAPI } from './tablets';
8
+ import { TraceAPI } from './trace';
9
+ import { VDiskAPI } from './vdisk';
10
+ import { ViewerAPI } from './viewer';
11
+ export class YdbEmbeddedAPI {
12
+ constructor({ config, webVersion }) {
13
+ this.auth = new AuthAPI({ config });
14
+ if (webVersion) {
15
+ this.meta = new MetaAPI({ config });
16
+ }
17
+ this.operation = new OperationAPI({ config });
18
+ this.pdisk = new PDiskAPI({ config });
19
+ this.scheme = new SchemeAPI({ config });
20
+ this.storage = new StorageAPI({ config });
21
+ this.tablets = new TabletsAPI({ config });
22
+ this.trace = new TraceAPI({ config });
23
+ this.vdisk = new VDiskAPI({ config });
24
+ this.viewer = new ViewerAPI({ config });
25
+ }
26
+ }
27
+ export function createApi({ webVersion = false, withCredentials = false } = {}) {
28
+ const config = { withCredentials };
29
+ const api = new YdbEmbeddedAPI({ config, webVersion });
30
+ return api;
31
+ }
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACjC,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACjC,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACjC,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAEnC,MAAM,OAAO,cAAc;IAYvB,YAAY,EAAC,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import { BaseYdbAPI } from './base';
4
+ export declare class MetaAPI extends BaseYdbAPI {
5
+ getPath(path: string): string;
6
+ getClustersList(_?: never, { signal }?: {
7
+ signal?: AbortSignal;
8
+ }): Promise<MetaClusters>;
9
+ getClusterInfo(clusterName?: string, { signal }?: AxiosOptions): Promise<import("../../types/api/cluster").TClusterInfoV1 | import("../../types/api/cluster").TClusterInfoV2>;
10
+ getTenants(clusterName?: string, { signal }?: AxiosOptions): Promise<import("../../types/api/tenant").TTenantInfo>;
11
+ getClusterBaseInfo(clusterName: string, { concurrentId, signal }?: AxiosOptions): Promise<MetaBaseClusterInfo>;
12
+ }
@@ -0,0 +1,30 @@
1
+ import { metaBackend as META_BACKEND } from '../../store';
2
+ import { parseMetaCluster } from '../parsers/parseMetaCluster';
3
+ import { parseMetaTenants } from '../parsers/parseMetaTenants';
4
+ import { BaseYdbAPI } from './base';
5
+ export class MetaAPI extends BaseYdbAPI {
6
+ getPath(path) {
7
+ return `${META_BACKEND !== null && META_BACKEND !== void 0 ? META_BACKEND : ''}${path}`;
8
+ }
9
+ getClustersList(_, { signal } = {}) {
10
+ return this.get(this.getPath('/meta/clusters'), null, {
11
+ requestConfig: { signal },
12
+ });
13
+ }
14
+ getClusterInfo(clusterName, { signal } = {}) {
15
+ return this.get(this.getPath('/meta/cluster'), {
16
+ name: clusterName,
17
+ }, { concurrentId: `getCluster${clusterName}`, requestConfig: { signal } }).then(parseMetaCluster);
18
+ }
19
+ getTenants(clusterName, { signal } = {}) {
20
+ return this.get(this.getPath('/meta/cp_databases'), {
21
+ cluster_name: clusterName,
22
+ }, { requestConfig: { signal } }).then(parseMetaTenants);
23
+ }
24
+ getClusterBaseInfo(clusterName, { concurrentId, signal } = {}) {
25
+ return this.get(this.getPath('/meta/db_clusters'), {
26
+ name: clusterName,
27
+ }, { concurrentId, requestConfig: { signal } }).then((data) => data.clusters[0]);
28
+ }
29
+ }
30
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,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ED,kBAAkB,CACd,WAAmB,EACnB,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EACjC;YACI,IAAI,EAAE,WAAW;SACpB,EACD,EAAC,YAAY,EAAE,aAAa,EAAE,EAAC,MAAM,EAAC,EAAC,CAC1C,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;CACJ"}
@@ -0,0 +1,8 @@
1
+ import type { OperationCancelRequestParams, OperationForgetRequestParams, OperationListRequestParams, TOperationList } from '../../types/api/operations';
2
+ import type { AxiosOptions } from './base';
3
+ import { BaseYdbAPI } from './base';
4
+ export declare class OperationAPI extends BaseYdbAPI {
5
+ getOperationList(params: OperationListRequestParams, { concurrentId, signal }?: AxiosOptions): Promise<TOperationList>;
6
+ cancelOperation(params: OperationCancelRequestParams, { concurrentId, signal }?: AxiosOptions): Promise<TOperationList>;
7
+ forgetOperation(params: OperationForgetRequestParams, { concurrentId, signal }?: AxiosOptions): Promise<TOperationList>;
8
+ }
@@ -0,0 +1,22 @@
1
+ import { BaseYdbAPI } from './base';
2
+ export class OperationAPI extends BaseYdbAPI {
3
+ getOperationList(params, { concurrentId, signal } = {}) {
4
+ return this.get(this.getPath('/operation/list'), { ...params }, {
5
+ concurrentId,
6
+ requestConfig: { signal },
7
+ });
8
+ }
9
+ cancelOperation(params, { concurrentId, signal } = {}) {
10
+ return this.post(this.getPath('/operation/cancel'), {}, { ...params }, {
11
+ concurrentId,
12
+ requestConfig: { signal },
13
+ });
14
+ }
15
+ forgetOperation(params, { concurrentId, signal } = {}) {
16
+ return this.post(this.getPath('/operation/forget'), {}, { ...params }, {
17
+ concurrentId,
18
+ requestConfig: { signal },
19
+ });
20
+ }
21
+ }
22
+ //# sourceMappingURL=operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../src/services/api/operation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,YAAa,SAAQ,UAAU;IACxC,gBAAgB,CACZ,MAAkC,EAClC,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAC/B,EAAC,GAAG,MAAM,EAAC,EACX;YACI,YAAY;YACZ,aAAa,EAAE,EAAC,MAAM,EAAC;SAC1B,CACJ,CAAC;IACN,CAAC;IAED,eAAe,CACX,MAAoC,EACpC,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,OAAO,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EACjC,EAAE,EACF,EAAC,GAAG,MAAM,EAAC,EACX;YACI,YAAY;YACZ,aAAa,EAAE,EAAC,MAAM,EAAC;SAC1B,CACJ,CAAC;IACN,CAAC;IAED,eAAe,CACX,MAAoC,EACpC,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,OAAO,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EACjC,EAAE,EACF,EAAC,GAAG,MAAM,EAAC,EACX;YACI,YAAY;YACZ,aAAa,EAAE,EAAC,MAAM,EAAC;SAC1B,CACJ,CAAC;IACN,CAAC;CACJ"}
@@ -0,0 +1,25 @@
1
+ import type { ModifyDiskResponse } from '../../types/api/modifyDisk';
2
+ import type { EDecommitStatus, TPDiskInfoResponse } from '../../types/api/pdisk';
3
+ import type { AxiosOptions } from './base';
4
+ import { BaseYdbAPI } from './base';
5
+ export declare class PDiskAPI extends BaseYdbAPI {
6
+ restartPDisk({ nodeId, pDiskId, force, }: {
7
+ nodeId: number | string;
8
+ pDiskId: number | string;
9
+ force?: boolean;
10
+ }): Promise<ModifyDiskResponse>;
11
+ changePDiskStatus({ nodeId, pDiskId, force, decommissionStatus, }: {
12
+ nodeId: number | string;
13
+ pDiskId: number | string;
14
+ force?: boolean;
15
+ decommissionStatus?: EDecommitStatus;
16
+ }): Promise<ModifyDiskResponse>;
17
+ getPDiskInfo({ nodeId, pDiskId }: {
18
+ nodeId: string | number;
19
+ pDiskId: string | number;
20
+ }, { concurrentId, signal }?: AxiosOptions): Promise<TPDiskInfoResponse>;
21
+ restartPDiskOld({ nodeId, pDiskId }: {
22
+ nodeId: number | string;
23
+ pDiskId: number | string;
24
+ }): Promise<ModifyDiskResponse>;
25
+ }
@@ -0,0 +1,43 @@
1
+ import { createPDiskDeveloperUILink } from '../../utils/developerUI/developerUI';
2
+ import { BaseYdbAPI } from './base';
3
+ export class PDiskAPI extends BaseYdbAPI {
4
+ restartPDisk({ nodeId, pDiskId, force, }) {
5
+ return this.post(this.getPath('/pdisk/restart'), {}, {
6
+ node_id: nodeId,
7
+ pdisk_id: pDiskId,
8
+ force,
9
+ }, {
10
+ requestConfig: { 'axios-retry': { retries: 0 } },
11
+ });
12
+ }
13
+ changePDiskStatus({ nodeId, pDiskId, force, decommissionStatus, }) {
14
+ return this.post(this.getPath('/pdisk/status'), {
15
+ decommit_status: decommissionStatus,
16
+ }, {
17
+ node_id: nodeId,
18
+ pdisk_id: pDiskId,
19
+ force,
20
+ }, {
21
+ requestConfig: { 'axios-retry': { retries: 0 } },
22
+ });
23
+ }
24
+ getPDiskInfo({ nodeId, pDiskId }, { concurrentId, signal } = {}) {
25
+ return this.get(this.getPath('/pdisk/info'), {
26
+ node_id: nodeId,
27
+ pdisk_id: pDiskId,
28
+ }, { concurrentId, requestConfig: { signal } });
29
+ }
30
+ restartPDiskOld({ nodeId, pDiskId }) {
31
+ const pDiskPath = createPDiskDeveloperUILink({
32
+ nodeId,
33
+ pDiskId,
34
+ host: this.getPath(''),
35
+ });
36
+ return this.post(pDiskPath, 'restartPDisk=', {}, {
37
+ headers: {
38
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
39
+ },
40
+ });
41
+ }
42
+ }
43
+ //# sourceMappingURL=pdisk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdisk.js","sourceRoot":"","sources":["../../../src/services/api/pdisk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,0BAA0B,EAAC,MAAM,qCAAqC,CAAC;AAG/E,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,QAAS,SAAQ,UAAU;IACpC,YAAY,CAAC,EACT,MAAM,EACN,OAAO,EACP,KAAK,GAKR;QACG,OAAO,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAC9B,EAAE,EACF;YACI,OAAO,EAAE,MAAM;YACf,QAAQ,EAAE,OAAO;YACjB,KAAK;SACR,EACD;YACI,aAAa,EAAE,EAAC,aAAa,EAAE,EAAC,OAAO,EAAE,CAAC,EAAC,EAAC;SAC/C,CACJ,CAAC;IACN,CAAC;IAED,iBAAiB,CAAC,EACd,MAAM,EACN,OAAO,EACP,KAAK,EACL,kBAAkB,GAMrB;QACG,OAAO,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAC7B;YACI,eAAe,EAAE,kBAAkB;SACtC,EACD;YACI,OAAO,EAAE,MAAM;YACf,QAAQ,EAAE,OAAO;YACjB,KAAK;SACR,EACD;YACI,aAAa,EAAE,EAAC,aAAa,EAAE,EAAC,OAAO,EAAE,CAAC,EAAC,EAAC;SAC/C,CACJ,CAAC;IACN,CAAC;IAED,YAAY,CACR,EAAC,MAAM,EAAE,OAAO,EAAsD,EACtE,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAC3B;YACI,OAAO,EAAE,MAAM;YACf,QAAQ,EAAE,OAAO;SACpB,EACD,EAAC,YAAY,EAAE,aAAa,EAAE,EAAC,MAAM,EAAC,EAAC,CAC1C,CAAC;IACN,CAAC;IAED,eAAe,CAAC,EAAC,MAAM,EAAE,OAAO,EAAsD;QAClF,MAAM,SAAS,GAAG,0BAA0B,CAAC;YACzC,MAAM;YACN,OAAO;YACP,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;SACzB,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,IAAI,CACZ,SAAS,EACT,eAAe,EACf,EAAE,EACF;YACI,OAAO,EAAE;gBACL,cAAc,EAAE,kDAAkD;aACrE;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
@@ -0,0 +1,11 @@
1
+ import { BaseYdbAPI } from './base';
2
+ export declare class SchemeAPI extends BaseYdbAPI {
3
+ createSchemaDirectory({ database, path }: {
4
+ database: string;
5
+ path: string;
6
+ }, { signal }?: {
7
+ signal?: AbortSignal;
8
+ }): Promise<{
9
+ test: string;
10
+ }>;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseYdbAPI } from './base';
2
+ export class SchemeAPI extends BaseYdbAPI {
3
+ createSchemaDirectory({ database, path }, { signal } = {}) {
4
+ return this.post(this.getPath('/scheme/directory'), {}, {
5
+ database,
6
+ path,
7
+ }, {
8
+ requestConfig: { signal },
9
+ });
10
+ }
11
+ }
12
+ //# sourceMappingURL=scheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheme.js","sourceRoot":"","sources":["../../../src/services/api/scheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,SAAU,SAAQ,UAAU;IACrC,qBAAqB,CACjB,EAAC,QAAQ,EAAE,IAAI,EAAmC,EAClD,EAAC,MAAM,KAA4B,EAAE;QAErC,OAAO,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EACjC,EAAE,EACF;YACI,QAAQ;YACR,IAAI;SACP,EACD;YACI,aAAa,EAAE,EAAC,MAAM,EAAC;SAC1B,CACJ,CAAC;IACN,CAAC;CACJ"}
@@ -0,0 +1,6 @@
1
+ import type { GroupsRequestParams, StorageGroupsResponse } from '../../types/api/storage';
2
+ import type { AxiosOptions } from './base';
3
+ import { BaseYdbAPI } from './base';
4
+ export declare class StorageAPI extends BaseYdbAPI {
5
+ getStorageGroups({ nodeId, pDiskId, groupId, fieldsRequired, filter, ...params }: GroupsRequestParams, { concurrentId, signal }?: AxiosOptions): Promise<StorageGroupsResponse>;
6
+ }