ydb-embedded-ui 6.11.0 → 6.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. package/dist/components/DateRange/DateRange.d.ts +4 -4
  2. package/dist/components/DateRange/DateRange.js +23 -26
  3. package/dist/components/DateRange/DateRange.scss +14 -13
  4. package/dist/components/DateRange/__test__/fromDateRangeValues.test.d.ts +1 -0
  5. package/dist/components/DateRange/__test__/fromDateRangeValues.test.js +80 -0
  6. package/dist/components/DateRange/__test__/getdatePickerSize.test.d.ts +1 -0
  7. package/dist/components/DateRange/__test__/getdatePickerSize.test.js +56 -0
  8. package/dist/components/DateRange/__test__/toDateRangeValues.test.d.ts +1 -0
  9. package/dist/components/DateRange/__test__/toDateRangeValues.test.js +80 -0
  10. package/dist/components/DateRange/i18n/en.json +4 -0
  11. package/dist/components/DateRange/i18n/index.d.ts +2 -0
  12. package/dist/components/DateRange/i18n/index.js +5 -0
  13. package/dist/components/DateRange/i18n/ru.json +4 -0
  14. package/dist/components/DateRange/utils.d.ts +5 -0
  15. package/dist/components/DateRange/utils.js +41 -0
  16. package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.d.ts +8 -0
  17. package/dist/components/{DeveloperUiLink/DeveloperUiLink.js → DeveloperUILinkButton/DeveloperUILinkButton.js} +3 -3
  18. package/dist/components/{DeveloperUiLink/DeveloperUiLink.scss → DeveloperUILinkButton/DeveloperUILinkButton.scss} +3 -2
  19. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +6 -1
  20. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +22 -12
  21. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +45 -45
  22. package/dist/components/EntityStatus/EntityStatus.js +1 -1
  23. package/dist/components/EntityStatus/EntityStatus.scss +6 -2
  24. package/dist/components/MetricChart/reducer.d.ts +2 -2
  25. package/dist/components/MonacoEditor/MonacoEditor.js +0 -2
  26. package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +0 -1
  27. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -6
  28. package/dist/components/PDiskInfo/PDiskInfo.d.ts +7 -4
  29. package/dist/components/PDiskInfo/PDiskInfo.js +73 -26
  30. package/dist/components/PDiskInfo/PDiskInfo.scss +15 -1
  31. package/dist/components/PDiskInfo/i18n/en.json +11 -5
  32. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  33. package/dist/components/PDiskPopup/PDiskPopup.js +8 -2
  34. package/dist/components/VDiskInfo/VDiskInfo.d.ts +3 -2
  35. package/dist/components/VDiskInfo/VDiskInfo.js +9 -4
  36. package/dist/components/VDiskInfo/VDiskInfo.scss +7 -1
  37. package/dist/components/VDiskInfo/i18n/en.json +2 -1
  38. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  39. package/dist/containers/Cluster/Cluster.scss +1 -4
  40. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +1 -1
  41. package/dist/containers/Heatmap/Heatmap.d.ts +2 -1
  42. package/dist/containers/Heatmap/Heatmap.js +2 -2
  43. package/dist/containers/Node/Node.scss +1 -4
  44. package/dist/containers/Node/NodeStructure/NodeStructure.scss +0 -20
  45. package/dist/containers/Node/NodeStructure/Pdisk.js +2 -2
  46. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +6 -0
  47. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +24 -0
  48. package/dist/containers/PDiskPage/PDiskPage.js +62 -24
  49. package/dist/containers/PDiskPage/PDiskPage.scss +8 -5
  50. package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.d.ts +7 -0
  51. package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +93 -0
  52. package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.scss +52 -0
  53. package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.d.ts +4 -0
  54. package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.js +9 -0
  55. package/dist/containers/PDiskPage/i18n/en.json +8 -1
  56. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  57. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +16 -6
  58. package/dist/containers/Tablets/Tablets.js +11 -8
  59. package/dist/containers/Tenant/Acl/Acl.d.ts +2 -1
  60. package/dist/containers/Tenant/Acl/Acl.js +10 -8
  61. package/dist/containers/Tenant/Acl/Acl.scss +8 -8
  62. package/dist/containers/Tenant/Acl/i18n/en.json +6 -0
  63. package/dist/containers/Tenant/Acl/i18n/index.d.ts +2 -0
  64. package/dist/containers/Tenant/Acl/i18n/index.js +4 -0
  65. package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -1
  66. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +4 -4
  67. package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +1 -1
  68. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -3
  69. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +3 -1
  70. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.d.ts +2 -1
  71. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +3 -3
  72. package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -1
  73. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +5 -5
  74. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +14 -1
  75. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
  76. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.js +1 -2
  77. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +36 -17
  78. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +8 -5
  79. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +1 -1
  80. package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.d.ts +2 -1
  81. package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.js +2 -2
  82. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +3 -2
  83. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  84. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +2 -2
  85. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -2
  86. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +14 -14
  87. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +3 -3
  88. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +4 -4
  89. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +31 -18
  90. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +2 -2
  91. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +8 -3
  92. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +2 -1
  93. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +9 -7
  94. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.d.ts +2 -0
  95. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +38 -0
  96. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +63 -0
  97. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +15 -0
  98. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +14 -0
  99. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.scss +19 -0
  100. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +99 -0
  101. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +109 -0
  102. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +13 -0
  103. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +2 -0
  104. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.js +5 -0
  105. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +13 -0
  106. package/dist/containers/Tenant/Query/i18n/en.json +14 -0
  107. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  108. package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.d.ts +3 -2
  109. package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.js +2 -2
  110. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +2 -2
  111. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +1 -1
  112. package/dist/containers/Tenant/Tenant.js +1 -1
  113. package/dist/containers/Tenant/TenantPages.d.ts +12 -1
  114. package/dist/containers/Tenant/TenantPages.js +1 -1
  115. package/dist/containers/Tenant/i18n/en.json +2 -2
  116. package/dist/containers/Tenant/i18n/index.d.ts +1 -1
  117. package/dist/containers/Tenant/utils/schema.js +1 -1
  118. package/dist/containers/Tenants/Tenants.js +1 -1
  119. package/dist/containers/Tenants/Tenants.scss +0 -4
  120. package/dist/containers/UserSettings/i18n/en.json +2 -0
  121. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  122. package/dist/containers/UserSettings/settings.d.ts +1 -0
  123. package/dist/containers/UserSettings/settings.js +6 -1
  124. package/dist/routes.js +2 -2
  125. package/dist/services/api.d.ts +39 -21
  126. package/dist/services/api.js +45 -56
  127. package/dist/services/settings.d.ts +1 -0
  128. package/dist/services/settings.js +2 -1
  129. package/dist/store/configureStore.d.ts +4 -4
  130. package/dist/store/defaultStore.d.ts +2 -2
  131. package/dist/store/reducers/api.d.ts +1 -1
  132. package/dist/store/reducers/api.js +1 -1
  133. package/dist/store/reducers/cluster/cluster.d.ts +2 -2
  134. package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
  135. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  136. package/dist/store/reducers/describe.d.ts +5 -2
  137. package/dist/store/reducers/describe.js +2 -2
  138. package/dist/store/reducers/executeQuery.d.ts +2 -2
  139. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  140. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +19 -14
  141. package/dist/store/reducers/executeTopQueries/types.d.ts +2 -2
  142. package/dist/store/reducers/executeTopQueries/utils.js +11 -7
  143. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
  144. package/dist/store/reducers/explainQuery/explainQuery.js +6 -1
  145. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
  146. package/dist/store/reducers/heatmap.d.ts +2 -2
  147. package/dist/store/reducers/heatmap.js +3 -3
  148. package/dist/store/reducers/hotKeys/hotKeys.d.ts +3 -2
  149. package/dist/store/reducers/hotKeys/hotKeys.js +3 -3
  150. package/dist/store/reducers/index.d.ts +3 -3
  151. package/dist/store/reducers/network/network.d.ts +2 -2
  152. package/dist/store/reducers/network/network.js +1 -1
  153. package/dist/store/reducers/node/node.d.ts +3 -3
  154. package/dist/store/reducers/node/selectors.d.ts +1 -1
  155. package/dist/store/reducers/node/selectors.js +2 -2
  156. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  157. package/dist/store/reducers/nodesList.d.ts +3 -3
  158. package/dist/store/reducers/overview/overview.d.ts +5 -2
  159. package/dist/store/reducers/overview/overview.js +2 -2
  160. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  161. package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
  162. package/dist/store/reducers/pdisk/pdisk.js +15 -2
  163. package/dist/store/reducers/pdisk/types.d.ts +17 -1
  164. package/dist/store/reducers/pdisk/utils.d.ts +2 -2
  165. package/dist/store/reducers/pdisk/utils.js +68 -8
  166. package/dist/store/reducers/preview.d.ts +2 -2
  167. package/dist/store/reducers/preview.js +1 -1
  168. package/dist/store/reducers/queryActions/types.d.ts +1 -1
  169. package/dist/store/reducers/schema/schema.d.ts +28 -10
  170. package/dist/store/reducers/schema/schema.js +11 -12
  171. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +4 -2
  172. package/dist/store/reducers/schemaAcl/schemaAcl.js +9 -3
  173. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  174. package/dist/store/reducers/shardsWorkload/shardsWorkload.js +22 -6
  175. package/dist/store/reducers/shardsWorkload/types.d.ts +2 -2
  176. package/dist/store/reducers/storage/storage.d.ts +3 -3
  177. package/dist/store/reducers/tablet.d.ts +3 -3
  178. package/dist/store/reducers/tablets.d.ts +13 -13
  179. package/dist/store/reducers/tabletsFilters.d.ts +1 -1
  180. package/dist/store/reducers/tenant/tenant.d.ts +2 -2
  181. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  182. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +1 -1
  183. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  184. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  185. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +1 -1
  186. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
  187. package/dist/store/reducers/tenants/selectors.d.ts +27 -27
  188. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  189. package/dist/store/reducers/topic.d.ts +44 -44
  190. package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
  191. package/dist/store/reducers/vdisk/vdisk.js +1 -1
  192. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  193. package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
  194. package/dist/store/state-url-mapping.d.ts +70 -0
  195. package/dist/store/state-url-mapping.js +1 -5
  196. package/dist/styles/mixins.scss +11 -0
  197. package/dist/types/api/acl.d.ts +1 -0
  198. package/dist/types/api/pdisk.d.ts +65 -2
  199. package/dist/types/api/vdisk.d.ts +33 -2
  200. package/dist/types/common.d.ts +3 -0
  201. package/dist/types/store/heatmap.d.ts +1 -0
  202. package/dist/types/store/query.d.ts +4 -1
  203. package/dist/utils/constants.d.ts +1 -0
  204. package/dist/utils/constants.js +1 -0
  205. package/dist/utils/dataFormatters/dataFormatters.d.ts +0 -4
  206. package/dist/utils/dataFormatters/dataFormatters.js +2 -8
  207. package/dist/utils/developerUI/developerUI.d.ts +1 -0
  208. package/dist/utils/developerUI/developerUI.js +3 -0
  209. package/dist/utils/disks/getPDiskType.d.ts +3 -3
  210. package/dist/utils/disks/helpers.d.ts +1 -0
  211. package/dist/utils/disks/helpers.js +3 -0
  212. package/dist/utils/disks/prepareDisks.d.ts +2 -2
  213. package/dist/utils/disks/prepareDisks.js +17 -22
  214. package/dist/utils/disks/types.d.ts +7 -5
  215. package/dist/utils/monaco/constats.d.ts +2 -0
  216. package/dist/utils/monaco/constats.js +2 -0
  217. package/dist/utils/monaco/yql/constants.d.ts +0 -1
  218. package/dist/utils/monaco/yql/constants.js +0 -1
  219. package/dist/utils/monaco/yql/yql.completionItemProvider.js +2 -2
  220. package/dist/utils/query.d.ts +24 -1
  221. package/dist/utils/query.js +40 -0
  222. package/package.json +5 -1
  223. package/dist/components/DeveloperUiLink/DeveloperUiLink.d.ts +0 -8
  224. package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +0 -15
  225. package/dist/containers/Node/NodeStructure/Vdisk.d.ts +0 -6
  226. package/dist/containers/Node/NodeStructure/Vdisk.js +0 -13
  227. package/dist/containers/PDiskPage/PDiskGroups.d.ts +0 -9
  228. package/dist/containers/PDiskPage/PDiskGroups.js +0 -20
  229. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/ru.json +0 -5
  230. package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +0 -5
  231. package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.js +0 -38
  232. package/dist/utils/monaco/index.d.ts +0 -1
  233. package/dist/utils/monaco/index.js +0 -6
  234. package/dist/utils/monaco/s-expression/constants.d.ts +0 -1
  235. package/dist/utils/monaco/s-expression/constants.js +0 -1
  236. package/dist/utils/monaco/s-expression/registerLanguage.d.ts +0 -1
  237. package/dist/utils/monaco/s-expression/registerLanguage.js +0 -59
  238. package/dist/utils/monaco/yql/registerLanguage.d.ts +0 -1
  239. package/dist/utils/monaco/yql/registerLanguage.js +0 -8
  240. package/dist/utils/monaco/yql/yql.d.ts +0 -7
  241. package/dist/utils/monaco/yql/yql.js +0 -180
  242. package/dist/utils/monaco/yql/yql.keywords.d.ts +0 -3
  243. package/dist/utils/monaco/yql/yql.keywords.js +0 -3
@@ -1,6 +1,6 @@
1
1
  export declare const vDiskApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
2
- getVDiskData: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All", {
2
+ getVDiskData: import("@reduxjs/toolkit/query").QueryDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", {
3
3
  vDiskData: import("./types").VDiskData;
4
4
  groupData: Partial<import("../storage/types").PreparedStorageGroup> | undefined;
5
5
  } | undefined, "api">;
6
- }, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
6
+ }, "api", "All" | "PDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -26,7 +26,7 @@ export const vDiskApi = api.injectEndpoints({
26
26
  async function requestVDiskData({ nodeId, pDiskId, vDiskSlotId }, { signal } = {}) {
27
27
  const vDiskDataResponse = await Promise.all([
28
28
  window.api.getVDiskInfo({ nodeId, pDiskId, vDiskSlotId }, { signal }),
29
- window.api.getPDiskInfo({ nodeId, pDiskId }, { signal }),
29
+ window.api.getNodeWhiteboardPDiskInfo({ nodeId, pDiskId }, { signal }),
30
30
  window.api.getNodeInfo(nodeId, { signal }),
31
31
  ]);
32
32
  const vDiskData = prepareVDiskDataResponse(vDiskDataResponse);
@@ -2,5 +2,5 @@ export declare const viewSchemaApi: import("@reduxjs/toolkit/query").Api<import(
2
2
  getViewSchema: import("@reduxjs/toolkit/query").QueryDefinition<{
3
3
  database: string;
4
4
  path: string;
5
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All", import("../../../types/api/query").ColumnType[] | undefined, "api">;
6
- }, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
5
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData", import("../../../types/api/query").ColumnType[] | undefined, "api">;
6
+ }, "api", "All" | "PDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -13,7 +13,7 @@ export const viewSchemaApi = api.injectEndpoints({
13
13
  query: createViewSchemaQuery(path),
14
14
  database,
15
15
  action: 'execute-scan',
16
- });
16
+ }, { withRetries: true });
17
17
  if (isQueryErrorResponse(response)) {
18
18
  return { error: response };
19
19
  }
@@ -1,5 +1,75 @@
1
1
  import type { Action, Reducer, UnknownAction } from '@reduxjs/toolkit';
2
2
  import type { History, Location } from 'history';
3
+ export declare const paramSetup: {
4
+ readonly global: {
5
+ readonly problemFilter: {
6
+ readonly stateKey: "settings.problemFilter";
7
+ readonly initialState: import("./reducers/settings/types").ProblemFilterValue;
8
+ };
9
+ };
10
+ readonly '/tenant': {
11
+ readonly sort: {
12
+ readonly stateKey: "heatmap.sort";
13
+ readonly initialState: boolean;
14
+ readonly type: "bool";
15
+ };
16
+ readonly heatmap: {
17
+ readonly stateKey: "heatmap.heatmap";
18
+ readonly initialState: boolean;
19
+ readonly type: "bool";
20
+ };
21
+ readonly currentMetric: {
22
+ readonly stateKey: "heatmap.currentMetric";
23
+ readonly initialState: import("../types/store/heatmap").IHeatmapMetricValue | undefined;
24
+ };
25
+ readonly stateFilter: {
26
+ readonly stateKey: "tablets.stateFilter";
27
+ readonly type: "array";
28
+ };
29
+ readonly typeFilter: {
30
+ readonly stateKey: "tablets.typeFilter";
31
+ readonly type: "array";
32
+ };
33
+ readonly tenantPage: {
34
+ readonly stateKey: "tenant.tenantPage";
35
+ };
36
+ readonly queryTab: {
37
+ readonly stateKey: "tenant.queryTab";
38
+ };
39
+ readonly diagnosticsTab: {
40
+ readonly stateKey: "tenant.diagnosticsTab";
41
+ };
42
+ readonly summaryTab: {
43
+ readonly stateKey: "tenant.summaryTab";
44
+ };
45
+ readonly metricsTab: {
46
+ readonly stateKey: "tenant.metricsTab";
47
+ };
48
+ readonly shardsMode: {
49
+ readonly stateKey: "shardsWorkload.mode";
50
+ };
51
+ readonly shardsDateFrom: {
52
+ readonly stateKey: "shardsWorkload.from";
53
+ };
54
+ readonly shardsDateTo: {
55
+ readonly stateKey: "shardsWorkload.to";
56
+ };
57
+ readonly topQueriesDateFrom: {
58
+ readonly stateKey: "executeTopQueries.from";
59
+ };
60
+ readonly topQueriesDateTo: {
61
+ readonly stateKey: "executeTopQueries.to";
62
+ };
63
+ readonly selectedConsumer: {
64
+ readonly stateKey: "partitions.selectedConsumer";
65
+ };
66
+ };
67
+ readonly '/cluster/tenants': {
68
+ readonly search: {
69
+ readonly stateKey: "tenants.searchValue";
70
+ };
71
+ };
72
+ };
3
73
  export default function getLocationMiddleware<S = any, A extends Action = UnknownAction, P = S>(history: History, rootReducer: Reducer<S, A, P>): {
4
74
  locationMiddleware: import("redux").Middleware<{}, S, import("redux").Dispatch<{
5
75
  payload: Location<unknown>;
@@ -9,7 +9,7 @@ import { parseQuery } from 'redux-location-state/lib/parseQuery';
9
9
  import { stateToParams } from 'redux-location-state/lib/stateToParams';
10
10
  import { initialState as initialHeatmapState } from './reducers/heatmap';
11
11
  import { initialState as initialSettingsState } from './reducers/settings/settings';
12
- const paramSetup = {
12
+ export const paramSetup = {
13
13
  global: {
14
14
  problemFilter: {
15
15
  stateKey: 'settings.problemFilter',
@@ -59,19 +59,15 @@ const paramSetup = {
59
59
  },
60
60
  shardsDateFrom: {
61
61
  stateKey: 'shardsWorkload.from',
62
- type: 'number',
63
62
  },
64
63
  shardsDateTo: {
65
64
  stateKey: 'shardsWorkload.to',
66
- type: 'number',
67
65
  },
68
66
  topQueriesDateFrom: {
69
67
  stateKey: 'executeTopQueries.from',
70
- type: 'number',
71
68
  },
72
69
  topQueriesDateTo: {
73
70
  stateKey: 'executeTopQueries.to',
74
- type: 'number',
75
71
  },
76
72
  selectedConsumer: {
77
73
  stateKey: 'partitions.selectedConsumer',
@@ -40,6 +40,11 @@
40
40
  line-height: var(--g-text-subheader-2-line-height);
41
41
  }
42
42
 
43
+ @mixin subheader-3-typography() {
44
+ font-size: var(--g-text-subheader-3-font-size);
45
+ line-height: var(--g-text-subheader-3-line-height);
46
+ }
47
+
43
48
  @mixin header-1-typography() {
44
49
  font-size: var(--g-text-header-1-font-size);
45
50
  line-height: var(--g-text-header-1-line-height);
@@ -285,3 +290,9 @@
285
290
  max-width: calc(100% - 50px);
286
291
  }
287
292
  }
293
+
294
+ @mixin tabs-wrapper-styles() {
295
+ --g-tabs-border-width: 0;
296
+
297
+ box-shadow: inset 0 -1px 0 0 var(--g-color-line-generic);
298
+ }
@@ -13,6 +13,7 @@ export interface TMetaCommonInfo {
13
13
  Path: string;
14
14
  Owner?: string;
15
15
  ACL?: TACE[];
16
+ EffectiveACL?: TACE[];
16
17
  }
17
18
  export interface TACE {
18
19
  AccessType: string;
@@ -1,8 +1,7 @@
1
1
  import type { EFlag } from './enums';
2
+ import type { TVDiskStateInfo, TVSlotEntry } from './vdisk';
2
3
  /**
3
4
  * endpoint: /viewer/json/pdiskinfo
4
- *
5
- * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/node_whiteboard.proto
6
5
  */
7
6
  export interface TEvPDiskStateResponse {
8
7
  PDiskStateInfo?: TPDiskStateInfo[];
@@ -10,6 +9,11 @@ export interface TEvPDiskStateResponse {
10
9
  ResponseTime?: string;
11
10
  ResponseDuration?: number;
12
11
  }
12
+ /**
13
+ * Node whiteboard PDisk data
14
+ *
15
+ * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/node_whiteboard.proto
16
+ */
13
17
  export interface TPDiskStateInfo {
14
18
  PDiskId?: number;
15
19
  /** uint64 */
@@ -33,6 +37,15 @@ export interface TPDiskStateInfo {
33
37
  StateFlag?: EFlag;
34
38
  Overall?: EFlag;
35
39
  SerialNumber?: string;
40
+ /** uint64 */
41
+ SystemSize?: string;
42
+ /** uint64 */
43
+ LogUsedSize?: string;
44
+ /** uint64 */
45
+ LogTotalSize?: string;
46
+ /** uint64 */
47
+ EnforcedDynamicSlotSize?: string;
48
+ ExpectedSlotCount?: number;
36
49
  }
37
50
  export declare enum TPDiskState {
38
51
  Initial = "Initial",
@@ -54,3 +67,53 @@ export declare enum TPDiskState {
54
67
  NodeDisconnected = "NodeDisconnected",
55
68
  Unknown = "Unknown"
56
69
  }
70
+ /**
71
+ * endpoint: /pdisk/info
72
+ */
73
+ export interface TPDiskInfoResponse {
74
+ Whiteboard?: TPDiskInfoWhiteboard;
75
+ BSC?: TPDiskInfoBSC;
76
+ }
77
+ interface TPDiskInfoWhiteboard {
78
+ PDisk?: TPDiskStateInfo;
79
+ VDisks?: TVDiskStateInfo[];
80
+ }
81
+ interface TPDiskInfoBSC {
82
+ PDisk?: TPDiskInfo;
83
+ VDisks?: TVSlotEntry;
84
+ }
85
+ /**
86
+ * BSC PDisk data
87
+ *
88
+ * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/sys_view.proto
89
+ */
90
+ export interface TPDiskInfo {
91
+ Type?: EPDiskType;
92
+ /** uint64 */
93
+ Kind?: string;
94
+ Path?: string;
95
+ /** uint64 */
96
+ Guid?: string;
97
+ /** uint64 */
98
+ BoxId?: string;
99
+ SharedWithOs?: boolean;
100
+ ReadCentric?: boolean;
101
+ /** uint64 */
102
+ AvailableSize?: string;
103
+ /** uint64 */
104
+ TotalSize?: string;
105
+ StatusV2?: EDriveStatus;
106
+ /** uint64 */
107
+ StatusChangeTimestamp?: string;
108
+ /** uint64 */
109
+ EnforcedDynamicSlotSize?: string;
110
+ ExpectedSlotCount?: number;
111
+ NumActiveSlots?: number;
112
+ /** uint64 */
113
+ Category?: string;
114
+ DecommitStatus?: EDecommitStatus;
115
+ }
116
+ type EDriveStatus = 'UNKNOWN' | 'ACTIVE' | 'INACTIVE' | 'BROKEN' | 'FAULTY' | 'TO_BE_REMOVED';
117
+ type EDecommitStatus = 'DECOMMIT_UNSET' | 'DECOMMIT_NONE' | 'DECOMMIT_PENDING' | 'DECOMMIT_IMMINENT' | 'DECOMMIT_REJECTED';
118
+ type EPDiskType = 'ROT' | 'SSD' | 'NVME' | 'UNKNOWN_TYPE';
119
+ export {};
@@ -2,14 +2,17 @@ import type { EFlag } from './enums';
2
2
  import type { TPDiskStateInfo } from './pdisk';
3
3
  /**
4
4
  * endpoint: /viewer/json/vdiskinfo
5
- *
6
- * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/node_whiteboard.proto
7
5
  */
8
6
  export interface TEvVDiskStateResponse {
9
7
  VDiskStateInfo?: TVDiskStateInfo[];
10
8
  ResponseTime?: string;
11
9
  ResponseDuration?: number;
12
10
  }
11
+ /**
12
+ * Node whiteboard VDisk data
13
+ *
14
+ * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/node_whiteboard.proto
15
+ */
13
16
  export interface TVDiskStateInfo {
14
17
  VDiskId?: TVDiskID;
15
18
  /** uint64 */
@@ -38,6 +41,9 @@ export interface TVDiskStateInfo {
38
41
  UnreplicatedPhantoms?: boolean;
39
42
  /** The same for the non-phantom-like blobs. */
40
43
  UnreplicatedNonPhantoms?: boolean;
44
+ /** Replication progress (0 to 1) */
45
+ ReplicationProgress?: number;
46
+ ReplicationSecondsRemaining?: number;
41
47
  /**
42
48
  * uint64
43
49
  * How many unsynced VDisks from current BlobStorage group we see
@@ -116,4 +122,29 @@ export declare enum EVDiskState {
116
122
  OK = "OK",
117
123
  PDiskError = "PDiskError"
118
124
  }
125
+ /**
126
+ * BSC VDisk data
127
+ *
128
+ * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/sys_view.proto
129
+ */
130
+ export interface TVSlotEntry {
131
+ Key?: TVSlotKey;
132
+ Info?: TVSlotInfo;
133
+ }
134
+ type TVSlotKey = TVSlotId;
135
+ export interface TVSlotInfo {
136
+ GroupId?: number;
137
+ GroupGeneration?: number;
138
+ FailRealm?: number;
139
+ FailDomain?: number;
140
+ VDisk?: number;
141
+ /** uint64 */
142
+ AllocatedSize?: string;
143
+ /** uint64 */
144
+ AvailableSize?: string;
145
+ StatusV2?: EVDiskStatus;
146
+ Kind?: string;
147
+ IsBeingDeleted?: boolean;
148
+ }
149
+ type EVDiskStatus = 'ERROR' | 'INIT_PENDING' | 'REPLICATING' | 'READY';
119
150
  export {};
@@ -1 +1,4 @@
1
1
  export type ValueOf<T extends Object> = T[keyof T];
2
+ export type ExtractType<T> = T extends {
3
+ type: infer U;
4
+ } ? U : string;
@@ -13,4 +13,5 @@ export interface IHeatmapState {
13
13
  export interface IHeatmapApiRequestParams {
14
14
  nodes?: string[];
15
15
  path: string;
16
+ database: string;
16
17
  }
@@ -1,4 +1,4 @@
1
- import type { QUERY_ACTIONS, QUERY_MODES, QUERY_SYNTAX } from '../../utils/query';
1
+ import type { ISOLATION_LEVELS, QUERY_ACTIONS, QUERY_MODES, QUERY_SYNTAX, STATISTICS_MODES, TRACING_LEVELS } from '../../utils/query';
2
2
  import type { IResponseError, NetworkError } from '../api/error';
3
3
  import type { ColumnType, KeyValueRow, ErrorResponse as QueryErrorResponseData, QueryPlan, ScriptPlan, TKqpStatsQuery } from '../api/query';
4
4
  import type { ValueOf } from '../common';
@@ -23,6 +23,9 @@ export type QueryError = NetworkError | QueryErrorResponse;
23
23
  export type QueryAction = ValueOf<typeof QUERY_ACTIONS>;
24
24
  export type QueryMode = ValueOf<typeof QUERY_MODES>;
25
25
  export type QuerySyntax = ValueOf<typeof QUERY_SYNTAX>;
26
+ export type IsolationLevel = ValueOf<typeof ISOLATION_LEVELS>;
27
+ export type StatisticsMode = ValueOf<typeof STATISTICS_MODES>;
28
+ export type TracingLevel = ValueOf<typeof TRACING_LEVELS>;
26
29
  export interface SavedQuery {
27
30
  name: string;
28
31
  body: string;
@@ -106,3 +106,4 @@ export declare const AUTOCOMPLETE_ON_ENTER = "autocompleteOnEnter";
106
106
  export declare const IS_HOTKEYS_HELP_HIDDEN_KEY = "isHotKeysHelpHidden";
107
107
  export declare const USE_SEPARATE_DISKS_PAGES_KEY = "useSeparateDisksPages";
108
108
  export declare const USE_DIRECTORY_OPERATIONS = "useDirectoryOperations";
109
+ export declare const QUERY_SETTINGS = "query_settings";
@@ -110,3 +110,4 @@ export const AUTOCOMPLETE_ON_ENTER = 'autocompleteOnEnter';
110
110
  export const IS_HOTKEYS_HELP_HIDDEN_KEY = 'isHotKeysHelpHidden';
111
111
  export const USE_SEPARATE_DISKS_PAGES_KEY = 'useSeparateDisksPages';
112
112
  export const USE_DIRECTORY_OPERATIONS = 'useDirectoryOperations';
113
+ export const QUERY_SETTINGS = 'query_settings';
@@ -4,10 +4,6 @@ export declare const formatBytes: (bytes?: string | number) => string;
4
4
  export declare const formatBps: (bytes?: string | number) => string;
5
5
  export declare const formatBytesToGigabyte: (bytes: number | string) => string;
6
6
  export declare const stringifyVdiskId: (id?: TVDiskID | TVSlotId) => string;
7
- export declare const getPDiskId: (info: {
8
- NodeId?: number;
9
- PDiskId?: number;
10
- }) => string | undefined;
11
7
  export declare const formatUptime: (seconds: number) => string;
12
8
  export declare const formatMsToUptime: (ms?: number) => string | 0 | undefined;
13
9
  export declare const formatStorageValues: (value?: number, total?: number, size?: BytesSizes) => string[];
@@ -26,9 +26,6 @@ export const formatBytesToGigabyte = (bytes) => {
26
26
  export const stringifyVdiskId = (id) => {
27
27
  return id ? Object.values(id).join('-') : '';
28
28
  };
29
- export const getPDiskId = (info) => {
30
- return info.NodeId && info.PDiskId ? `${info.NodeId}-${info.PDiskId}` : undefined;
31
- };
32
29
  export const formatUptime = (seconds) => {
33
30
  const days = Math.floor(seconds / DAY_IN_SECONDS);
34
31
  const remain = seconds % DAY_IN_SECONDS;
@@ -103,13 +100,10 @@ export const formatCPUWithLabel = (value) => {
103
100
  const localizedCores = configuredNumeral(cores).format('0.[000]');
104
101
  return `${localizedCores} ${i18n('format-cpu.cores', { count: cores })}`;
105
102
  };
106
- export const formatDateTime = (value, defaultValue = 'N/A') => {
103
+ export const formatDateTime = (value, defaultValue = '') => {
107
104
  var _a;
108
- if (!isNumeric(value)) {
109
- return '';
110
- }
111
105
  const formattedData = (_a = dateTimeParse(Number(value))) === null || _a === void 0 ? void 0 : _a.format('YYYY-MM-DD HH:mm');
112
- return Number(value) > 0 && formattedData ? formattedData : defaultValue;
106
+ return formattedData !== null && formattedData !== void 0 ? formattedData : defaultValue;
113
107
  };
114
108
  export const calcUptimeInSeconds = (milliseconds) => {
115
109
  const currentDate = new Date();
@@ -9,4 +9,5 @@ interface VDiskDeveloperUILinkParams extends PDiskDeveloperUILinkParams {
9
9
  vDiskSlotId: number | string;
10
10
  }
11
11
  export declare const createVDiskDeveloperUILink: ({ nodeId, pDiskId, vDiskSlotId, host, }: VDiskDeveloperUILinkParams) => string;
12
+ export declare function createTabletDeveloperUIHref(tabletId: number | string, host?: string | undefined): string;
12
13
  export {};
@@ -18,3 +18,6 @@ export const createVDiskDeveloperUILink = ({ nodeId, pDiskId, vDiskSlotId, host,
18
18
  const vdiskPath = 'actors/vdisks/vdisk' + pad9(pDiskId) + '_' + pad9(vDiskSlotId);
19
19
  return createDeveloperUILinkWithNodeId(nodeId, host) + vdiskPath;
20
20
  };
21
+ export function createTabletDeveloperUIHref(tabletId, host = backend) {
22
+ return `${host}/tablets?TabletID=${tabletId}`;
23
+ }
@@ -1,7 +1,7 @@
1
1
  import type { PDiskType } from './types';
2
2
  export declare const PDISK_TYPES: {
3
- HDD: string;
4
- SSD: string;
5
- MVME: string;
3
+ readonly HDD: "HDD";
4
+ readonly SSD: "SSD";
5
+ readonly MVME: "NVME";
6
6
  };
7
7
  export declare function getPDiskType(category?: string): PDiskType | undefined;
@@ -1,3 +1,4 @@
1
1
  import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
2
2
  export declare function isFullVDiskData(disk: TVDiskStateInfo | TVSlotId): disk is TVDiskStateInfo;
3
3
  export declare function getSeverityColor(severity: number | undefined): import("../../types/api/enums").EFlag;
4
+ export declare function getPDiskId(nodeId: string | number, pDiskId: string | number): string;
@@ -8,3 +8,6 @@ export function getSeverityColor(severity) {
8
8
  }
9
9
  return DISK_NUMERIC_SEVERITY_TO_STATE_COLOR[severity] || NOT_AVAILABLE_SEVERITY_COLOR;
10
10
  }
11
+ export function getPDiskId(nodeId, pDiskId) {
12
+ return `${nodeId}-${pDiskId}`;
13
+ }
@@ -1,5 +1,5 @@
1
- import type { TPDiskStateInfo } from '../../types/api/pdisk';
1
+ import type { TPDiskInfo, TPDiskStateInfo } from '../../types/api/pdisk';
2
2
  import type { TVDiskStateInfo } from '../../types/api/vdisk';
3
3
  import type { PreparedPDisk, PreparedVDisk } from './types';
4
4
  export declare function prepareVDiskData(vdiskState?: TVDiskStateInfo): PreparedVDisk;
5
- export declare function preparePDiskData(pdiskState?: TPDiskStateInfo): PreparedPDisk;
5
+ export declare function preparePDiskData(pdiskState?: TPDiskStateInfo, bscPDiskInfo?: TPDiskInfo): PreparedPDisk;
@@ -1,14 +1,16 @@
1
- import { isNumeric } from '../utils';
2
1
  import { calculatePDiskSeverity } from './calculatePDiskSeverity';
3
2
  import { calculateVDiskSeverity } from './calculateVDiskSeverity';
4
3
  import { getPDiskType } from './getPDiskType';
5
4
  export function prepareVDiskData(vdiskState = {}) {
6
- var _a, _b;
5
+ var _a, _b, _c;
7
6
  // Prepare PDisk only if it is present
8
7
  const PDisk = vdiskState.PDisk ? preparePDiskData(vdiskState.PDisk) : undefined;
9
8
  const PDiskId = (_a = vdiskState.PDiskId) !== null && _a !== void 0 ? _a : PDisk === null || PDisk === void 0 ? void 0 : PDisk.PDiskId;
10
- const AllocatedPercent = calculateVDiskAllocatedPercent(vdiskState.AllocatedSize, vdiskState.AvailableSize, PDisk === null || PDisk === void 0 ? void 0 : PDisk.AvailableSize);
11
- const Donors = (_b = vdiskState.Donors) === null || _b === void 0 ? void 0 : _b.map((donor) => {
9
+ const available = Number((_b = vdiskState.AvailableSize) !== null && _b !== void 0 ? _b : PDisk === null || PDisk === void 0 ? void 0 : PDisk.AvailableSize);
10
+ const allocated = Number(vdiskState.AllocatedSize);
11
+ const total = allocated + available;
12
+ const allocatedPercent = Math.round((allocated * 100) / total);
13
+ const Donors = (_c = vdiskState.Donors) === null || _c === void 0 ? void 0 : _c.map((donor) => {
12
14
  return prepareVDiskData({ ...donor, DonorMode: true });
13
15
  });
14
16
  const Severity = calculateVDiskSeverity(vdiskState);
@@ -16,33 +18,26 @@ export function prepareVDiskData(vdiskState = {}) {
16
18
  ...vdiskState,
17
19
  PDisk,
18
20
  PDiskId,
19
- AllocatedPercent,
20
21
  Donors,
21
22
  Severity,
23
+ TotalSize: total,
24
+ AllocatedPercent: allocatedPercent,
22
25
  };
23
26
  }
24
- export function preparePDiskData(pdiskState = {}) {
27
+ export function preparePDiskData(pdiskState = {}, bscPDiskInfo = {}) {
25
28
  const { AvailableSize, TotalSize, Category } = pdiskState;
26
29
  const Type = getPDiskType(Category);
27
- const AllocatedPercent = calculatePDiskAllocatedPercent(AvailableSize, TotalSize);
28
- const Severity = calculatePDiskSeverity(pdiskState, AllocatedPercent);
30
+ const available = Number(AvailableSize);
31
+ const total = Number(TotalSize);
32
+ const allocated = total - available;
33
+ const allocatedPercent = Math.round((allocated * 100) / total);
34
+ const Severity = calculatePDiskSeverity(pdiskState, allocatedPercent);
29
35
  return {
36
+ ...bscPDiskInfo,
30
37
  ...pdiskState,
31
38
  Type,
32
- AllocatedPercent,
33
39
  Severity,
40
+ AllocatedSize: allocated,
41
+ AllocatedPercent: allocatedPercent,
34
42
  };
35
43
  }
36
- function calculatePDiskAllocatedPercent(available, total) {
37
- if (!isNumeric(available) || !isNumeric(total)) {
38
- return undefined;
39
- }
40
- return Math.round(((Number(total) - Number(available)) * 100) / Number(total));
41
- }
42
- function calculateVDiskAllocatedPercent(allocated, availableOnVDisk, availableOnPDisk) {
43
- const available = availableOnVDisk !== null && availableOnVDisk !== void 0 ? availableOnVDisk : availableOnPDisk;
44
- if (!isNumeric(allocated) || !isNumeric(available)) {
45
- return undefined;
46
- }
47
- return Math.round((Number(allocated) * 100) / (Number(allocated) + Number(available)));
48
- }
@@ -1,16 +1,18 @@
1
- import type { TPDiskStateInfo } from '../../types/api/pdisk';
1
+ import type { TPDiskInfo, TPDiskStateInfo } from '../../types/api/pdisk';
2
2
  import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
3
3
  import type { ValueOf } from '../../types/common';
4
4
  import type { PDISK_TYPES } from './getPDiskType';
5
- export interface PreparedPDisk extends TPDiskStateInfo {
5
+ export type PreparedPDisk = TPDiskStateInfo & Omit<Partial<TPDiskInfo>, 'Type'> & {
6
6
  Type?: PDiskType;
7
- AllocatedPercent?: number;
8
7
  Severity?: number;
9
- }
8
+ AllocatedSize?: number;
9
+ AllocatedPercent?: number;
10
+ };
10
11
  export interface PreparedVDisk extends TVDiskStateInfo {
11
12
  PDisk?: PreparedPDisk;
12
- AllocatedPercent?: number;
13
13
  Severity?: number;
14
+ TotalSize?: number;
15
+ AllocatedPercent?: number;
14
16
  }
15
17
  export type PDiskType = ValueOf<typeof PDISK_TYPES>;
16
18
  export interface UnavailableDonor extends TVSlotId {
@@ -0,0 +1,2 @@
1
+ export declare const S_EXPRESSION_LANGUAGE_ID = "s-expression";
2
+ export declare const YQL_LANGUAGE_ID = "yql";
@@ -0,0 +1,2 @@
1
+ export const S_EXPRESSION_LANGUAGE_ID = 's-expression';
2
+ export const YQL_LANGUAGE_ID = 'yql';
@@ -1,5 +1,4 @@
1
1
  import type { YQLEntity } from '@gravity-ui/websql-autocomplete';
2
- export declare const LANGUAGE_YQL_ID = "yql";
3
2
  export declare const SimpleTypes: string[];
4
3
  export declare const SimpleFunctions: string[];
5
4
  export declare const AggregateFunctions: string[];
@@ -1,4 +1,3 @@
1
- export const LANGUAGE_YQL_ID = 'yql';
2
1
  export const SimpleTypes = [
3
2
  'String',
4
3
  'Bool',
@@ -1,5 +1,5 @@
1
1
  import * as monaco from 'monaco-editor';
2
- import { LANGUAGE_YQL_ID } from './constants';
2
+ import { LANGUAGE_ID } from 'monaco-yql-languages/build/yql/yql.contribution';
3
3
  import { createProvideSuggestionsFunction } from './yqlSuggestions';
4
4
  let completionProvider;
5
5
  function disableCodeSuggestions() {
@@ -9,7 +9,7 @@ function disableCodeSuggestions() {
9
9
  }
10
10
  export function registerYQLCompletionItemProvider(database) {
11
11
  disableCodeSuggestions();
12
- completionProvider = monaco.languages.registerCompletionItemProvider(LANGUAGE_YQL_ID, {
12
+ completionProvider = monaco.languages.registerCompletionItemProvider(LANGUAGE_ID, {
13
13
  triggerCharacters: [' ', '.', '`', '(', '/'],
14
14
  provideCompletionItems: createProvideSuggestionsFunction(database),
15
15
  });
@@ -1,5 +1,28 @@
1
1
  import type { AnyExecuteResponse, AnyExplainResponse, ErrorResponse, KeyValueRow, QueryPlan, ScriptPlan } from '../types/api/query';
2
- import type { IQueryResult, QueryMode } from '../types/store/query';
2
+ import type { IQueryResult, IsolationLevel, QueryMode, StatisticsMode, TracingLevel } from '../types/store/query';
3
+ export declare const ISOLATION_LEVELS: {
4
+ readonly serializable: "serializable-read-write";
5
+ readonly stalero: "stale-read-only";
6
+ readonly onlinero: "online-read-only";
7
+ readonly snapshot: "snapshot-read-only";
8
+ };
9
+ export declare const ISOLATION_LEVELS_TITLES: Record<IsolationLevel, string>;
10
+ export declare const STATISTICS_MODES: {
11
+ readonly none: "none";
12
+ readonly basic: "basic";
13
+ readonly full: "full";
14
+ readonly profile: "profile";
15
+ };
16
+ export declare const STATISTICS_MODES_TITLES: Record<StatisticsMode, string>;
17
+ export declare const TRACING_LEVELS: {
18
+ readonly off: "off";
19
+ readonly toplevel: "toplevel";
20
+ readonly basic: "basic";
21
+ readonly detailed: "detailed";
22
+ readonly diagnostic: "diagnostic";
23
+ readonly trace: "trace";
24
+ };
25
+ export declare const TRACING_LEVELS_TITLES: Record<TracingLevel, string>;
3
26
  export declare const QUERY_ACTIONS: {
4
27
  readonly execute: "execute";
5
28
  readonly explain: "explain";