ydb-embedded-ui 6.3.0 → 6.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. package/README.md +39 -17
  2. package/dist/assets/icons/disableFullscreen.svg +4 -0
  3. package/dist/assets/icons/emptyState.svg +13 -0
  4. package/dist/assets/icons/key.svg +6 -0
  5. package/dist/assets/icons/monitoring.svg +9 -0
  6. package/dist/assets/icons/network.svg +21 -0
  7. package/dist/components/AsyncReplicationState/AsyncReplicationState.d.ts +6 -0
  8. package/dist/components/AsyncReplicationState/AsyncReplicationState.js +20 -0
  9. package/dist/components/AsyncReplicationState/index.d.ts +1 -0
  10. package/dist/components/AsyncReplicationState/index.js +1 -0
  11. package/dist/components/BasicNodeViewer/BasicNodeViewer.js +11 -5
  12. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +6 -2
  13. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +12 -3
  14. package/dist/components/CriticalActionDialog/CriticalActionDialog.js +3 -4
  15. package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +2 -0
  16. package/dist/components/EmptyState/EmptyState.js +3 -2
  17. package/dist/components/EnableFullscreenButton/EnableFullscreenButton.js +3 -3
  18. package/dist/components/Errors/ResponseError/ResponseError.js +3 -0
  19. package/dist/components/Fullscreen/Fullscreen.js +3 -3
  20. package/dist/components/MonitoringButton/MonitoringButton.js +3 -3
  21. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -3
  22. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  23. package/dist/components/QueryExecutionStatus/QueryExecutionStatus.d.ts +1 -2
  24. package/dist/components/QueryExecutionStatus/QueryExecutionStatus.js +6 -6
  25. package/dist/components/StatusIcon/StatusIcon.js +5 -7
  26. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  27. package/dist/containers/App/App.js +1 -2
  28. package/dist/containers/AsideNavigation/AsideNavigation.js +4 -9
  29. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -3
  30. package/dist/containers/AsideNavigation/useNavigationMenuItems.js +5 -6
  31. package/dist/containers/Authentication/Authentication.js +2 -4
  32. package/dist/containers/Clusters/Clusters.js +7 -2
  33. package/dist/containers/Clusters/constants.d.ts +1 -3
  34. package/dist/containers/Clusters/constants.js +0 -18
  35. package/dist/containers/Node/NodeStructure/Pdisk.js +4 -4
  36. package/dist/containers/Nodes/Nodes.js +19 -15
  37. package/dist/containers/Nodes/VirtualNodes.js +23 -6
  38. package/dist/containers/PDiskPage/PDiskPage.js +3 -2
  39. package/dist/containers/PDiskPage/i18n/en.json +2 -1
  40. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  41. package/dist/containers/Storage/Storage.js +50 -22
  42. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +2 -2
  43. package/dist/containers/Storage/VirtualStorage.js +32 -10
  44. package/dist/containers/Storage/utils/index.d.ts +4 -1
  45. package/dist/containers/Storage/utils/index.js +29 -0
  46. package/dist/containers/Tablet/Tablet.js +3 -3
  47. package/dist/containers/Tablet/TabletControls/TabletControls.js +3 -1
  48. package/dist/containers/Tablet/i18n/en.json +3 -0
  49. package/dist/containers/Tablet/i18n/index.d.ts +1 -1
  50. package/dist/containers/Tablet/i18n/index.js +1 -2
  51. package/dist/containers/Tablets/Tablets.d.ts +1 -2
  52. package/dist/containers/Tablets/Tablets.js +113 -53
  53. package/dist/containers/Tablets/i18n/en.json +10 -4
  54. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  55. package/dist/containers/Tablets/i18n/index.js +1 -2
  56. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +5 -5
  57. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +7 -0
  58. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -0
  59. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +31 -19
  60. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +14 -4
  61. package/dist/containers/Tenant/Diagnostics/HotKeys/i18n/en.json +2 -1
  62. package/dist/containers/Tenant/Diagnostics/HotKeys/i18n/index.d.ts +1 -1
  63. package/dist/containers/Tenant/Diagnostics/Network/Network.js +3 -3
  64. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.d.ts +7 -0
  65. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js +39 -0
  66. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/Credentials.d.ts +6 -0
  67. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/Credentials.js +14 -0
  68. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/i18n/en.json +7 -0
  69. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/i18n/index.d.ts +2 -0
  70. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/i18n/index.js +4 -0
  71. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/index.d.ts +1 -0
  72. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/index.js +1 -0
  73. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.d.ts +7 -0
  74. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.js +34 -0
  75. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.scss +7 -0
  76. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/i18n/en.json +7 -0
  77. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/i18n/index.d.ts +2 -0
  78. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/i18n/index.js +4 -0
  79. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/index.d.ts +1 -0
  80. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/index.js +1 -0
  81. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -0
  82. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +2 -2
  83. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +2 -1
  84. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -1
  85. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +2 -1
  86. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  87. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +3 -3
  88. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +3 -3
  89. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +2 -8
  90. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +23 -9
  91. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +2 -2
  92. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +5 -6
  93. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +6 -14
  94. package/dist/containers/Tenant/Query/Issues/Issues.js +6 -9
  95. package/dist/containers/Tenant/Query/Preview/Preview.js +5 -5
  96. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -8
  97. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -19
  98. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +4 -4
  99. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +3 -3
  100. package/dist/containers/Tenant/Schema/SchemaViewer/helpers.js +3 -2
  101. package/dist/containers/Tenant/Tenant.js +3 -2
  102. package/dist/containers/Tenant/utils/ToggleButton.scss +0 -2
  103. package/dist/containers/Tenant/utils/paneVisibilityToggleHelpers.js +4 -4
  104. package/dist/containers/Tenant/utils/schema.js +8 -0
  105. package/dist/containers/Tenant/utils/schemaActions.js +1 -0
  106. package/dist/containers/Tenant/utils/schemaControls.js +4 -3
  107. package/dist/containers/VDiskPage/VDiskPage.js +3 -2
  108. package/dist/containers/VDiskPage/i18n/en.json +2 -1
  109. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  110. package/dist/routes.d.ts +1 -1
  111. package/dist/services/api.d.ts +3 -3
  112. package/dist/services/settings.d.ts +19 -1
  113. package/dist/services/settings.js +2 -1
  114. package/dist/store/configureStore.d.ts +0 -12
  115. package/dist/store/defaultStore.d.ts +0 -6
  116. package/dist/store/reducers/authentication/authentication.d.ts +187 -13
  117. package/dist/store/reducers/authentication/authentication.js +12 -3
  118. package/dist/store/reducers/authentication/types.d.ts +5 -1
  119. package/dist/store/reducers/cluster/cluster.js +4 -0
  120. package/dist/store/reducers/executeQuery.d.ts +4 -65
  121. package/dist/store/reducers/executeQuery.js +38 -34
  122. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +4 -1
  123. package/dist/store/reducers/explainQuery/explainQuery.d.ts +9 -0
  124. package/dist/store/reducers/explainQuery/explainQuery.js +32 -0
  125. package/dist/store/reducers/explainQuery/types.d.ts +12 -0
  126. package/dist/store/reducers/explainQuery/utils.d.ts +6 -0
  127. package/dist/store/reducers/explainQuery/utils.js +40 -0
  128. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +0 -60
  129. package/dist/store/reducers/host.d.ts +61 -4
  130. package/dist/store/reducers/index.d.ts +0 -9
  131. package/dist/store/reducers/index.js +0 -6
  132. package/dist/store/reducers/node/selectors.d.ts +0 -3
  133. package/dist/store/reducers/nodes/nodes.d.ts +1 -5
  134. package/dist/store/reducers/nodes/nodes.js +0 -27
  135. package/dist/store/reducers/nodes/types.d.ts +4 -13
  136. package/dist/store/reducers/nodesList.d.ts +0 -3
  137. package/dist/store/reducers/olapStats.js +4 -1
  138. package/dist/store/reducers/preview.js +4 -1
  139. package/dist/store/reducers/schema/schema.d.ts +61 -4
  140. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +61 -4
  141. package/dist/store/reducers/shardsWorkload/shardsWorkload.js +4 -1
  142. package/dist/store/reducers/storage/selectors.d.ts +2 -17
  143. package/dist/store/reducers/storage/selectors.js +1 -36
  144. package/dist/store/reducers/storage/storage.d.ts +2 -6
  145. package/dist/store/reducers/storage/storage.js +0 -44
  146. package/dist/store/reducers/storage/types.d.ts +15 -22
  147. package/dist/store/reducers/storage/types.js +4 -1
  148. package/dist/store/reducers/tablets.d.ts +91 -1
  149. package/dist/store/reducers/tablets.js +16 -1
  150. package/dist/store/reducers/tabletsFilters.d.ts +61 -4
  151. package/dist/store/reducers/tenant/tenant.d.ts +2 -2
  152. package/dist/store/reducers/tenant/tenant.js +10 -1
  153. package/dist/store/reducers/tenant/types.d.ts +8 -3
  154. package/dist/store/reducers/tenant/types.js +3 -1
  155. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +6 -3
  156. package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.js +6 -3
  157. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +6 -3
  158. package/dist/store/reducers/tenants/selectors.d.ts +0 -27
  159. package/dist/store/reducers/tenants/utils.d.ts +4 -4
  160. package/dist/store/reducers/tenants/utils.js +8 -8
  161. package/dist/store/reducers/topic.d.ts +0 -45
  162. package/dist/store/state-url-mapping.js +0 -22
  163. package/dist/store/utils.d.ts +2 -3
  164. package/dist/store/utils.js +1 -1
  165. package/dist/types/api/schema/replication.d.ts +74 -0
  166. package/dist/types/api/schema/replication.js +7 -0
  167. package/dist/types/api/schema/schema.d.ts +4 -1
  168. package/dist/types/api/schema/schema.js +1 -0
  169. package/dist/types/api/whoami.d.ts +6 -0
  170. package/dist/types/store/executeQuery.d.ts +2 -9
  171. package/dist/utils/constants.d.ts +1 -0
  172. package/dist/utils/constants.js +1 -0
  173. package/dist/utils/monaco/yql/constants.d.ts +2 -0
  174. package/dist/utils/monaco/yql/constants.js +33 -0
  175. package/dist/utils/monaco/yql/generateSuggestions.d.ts +1 -0
  176. package/dist/utils/monaco/yql/generateSuggestions.js +28 -11
  177. package/dist/utils/monaco/yql/yqlSuggestions.js +6 -1
  178. package/dist/utils/nodes.d.ts +2 -0
  179. package/dist/utils/nodes.js +4 -0
  180. package/dist/utils/query.d.ts +5 -3
  181. package/dist/utils/query.js +27 -4
  182. package/dist/utils/response.d.ts +4 -0
  183. package/dist/utils/response.js +9 -0
  184. package/dist/utils/tablet.d.ts +2 -0
  185. package/dist/utils/tablet.js +14 -0
  186. package/package.json +4 -3
  187. package/dist/assets/icons/bug.svg +0 -1
  188. package/dist/assets/icons/circle-exclamation.svg +0 -1
  189. package/dist/assets/icons/circle-info.svg +0 -1
  190. package/dist/assets/icons/circle-xmark.svg +0 -1
  191. package/dist/assets/icons/close.svg +0 -1
  192. package/dist/assets/icons/control-menu-button.svg +0 -1
  193. package/dist/assets/icons/dots.svg +0 -1
  194. package/dist/assets/icons/hide.svg +0 -1
  195. package/dist/assets/icons/question.svg +0 -1
  196. package/dist/assets/icons/server.svg +0 -1
  197. package/dist/assets/icons/settings-with-dot.svg +0 -1
  198. package/dist/assets/icons/settings.svg +0 -1
  199. package/dist/assets/icons/shield.svg +0 -3
  200. package/dist/assets/icons/show.svg +0 -1
  201. package/dist/assets/icons/signIn.svg +0 -1
  202. package/dist/assets/icons/signOut.svg +0 -1
  203. package/dist/assets/icons/storage.svg +0 -1
  204. package/dist/assets/icons/support.svg +0 -1
  205. package/dist/assets/icons/triangle-exclamation.svg +0 -1
  206. package/dist/assets/icons/update-arrow.svg +0 -6
  207. package/dist/components/Icon/Icon.d.ts +0 -14
  208. package/dist/components/Icon/Icon.js +0 -16
  209. package/dist/components/Icon/index.d.ts +0 -1
  210. package/dist/components/Icon/index.js +0 -1
  211. package/dist/containers/AppIcons/AppIcons.d.ts +0 -2
  212. package/dist/containers/AppIcons/AppIcons.js +0 -9
  213. package/dist/containers/Tablet/i18n/ru.json +0 -10
  214. package/dist/containers/Tablets/Tablets.scss +0 -35
  215. package/dist/containers/Tablets/i18n/ru.json +0 -6
  216. package/dist/store/reducers/explainQuery.d.ts +0 -149
  217. package/dist/store/reducers/explainQuery.js +0 -94
  218. package/dist/types/store/explainQuery.d.ts +0 -27
  219. package/dist/utils/error.d.ts +0 -2
  220. package/dist/utils/error.js +0 -13
  221. /package/dist/{types/store/explainQuery.js → store/reducers/explainQuery/types.js} +0 -0
@@ -7,10 +7,8 @@ export declare const topicApi: import("@reduxjs/toolkit/query").Api<import("@red
7
7
  export declare const selectConsumersNames: ((state: {
8
8
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
9
9
  singleClusterMode: boolean;
10
- nodes: import("./nodes/types").NodesState;
11
10
  cluster: import("./cluster/types").ClusterState;
12
11
  tenant: import("./tenant/types").TenantState;
13
- storage: import("./storage/types").StorageState;
14
12
  tooltip: import("../../types/store/tooltip").ITooltipState;
15
13
  tablets: import("../../types/store/tablets").TabletsState;
16
14
  schema: import("./schema/types").SchemaState;
@@ -18,7 +16,6 @@ export declare const selectConsumersNames: ((state: {
18
16
  tenants: import("./tenants/types").TenantsState;
19
17
  partitions: import("./partitions/types").PartitionsState;
20
18
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
21
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
22
19
  tabletsFilters: {
23
20
  loading: boolean;
24
21
  requestTime: number;
@@ -82,10 +79,8 @@ export declare const selectConsumersNames: ((state: {
82
79
  dependencies: [((state: {
83
80
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
84
81
  singleClusterMode: boolean;
85
- nodes: import("./nodes/types").NodesState;
86
82
  cluster: import("./cluster/types").ClusterState;
87
83
  tenant: import("./tenant/types").TenantState;
88
- storage: import("./storage/types").StorageState;
89
84
  tooltip: import("../../types/store/tooltip").ITooltipState;
90
85
  tablets: import("../../types/store/tablets").TabletsState;
91
86
  schema: import("./schema/types").SchemaState;
@@ -93,7 +88,6 @@ export declare const selectConsumersNames: ((state: {
93
88
  tenants: import("./tenants/types").TenantsState;
94
89
  partitions: import("./partitions/types").PartitionsState;
95
90
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
96
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
97
91
  tabletsFilters: {
98
92
  loading: boolean;
99
93
  requestTime: number;
@@ -150,10 +144,8 @@ export declare const selectConsumersNames: ((state: {
150
144
  resultFunc: (resultFuncArgs_0: {
151
145
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
152
146
  singleClusterMode: boolean;
153
- nodes: import("./nodes/types").NodesState;
154
147
  cluster: import("./cluster/types").ClusterState;
155
148
  tenant: import("./tenant/types").TenantState;
156
- storage: import("./storage/types").StorageState;
157
149
  tooltip: import("../../types/store/tooltip").ITooltipState;
158
150
  tablets: import("../../types/store/tablets").TabletsState;
159
151
  schema: import("./schema/types").SchemaState;
@@ -161,7 +153,6 @@ export declare const selectConsumersNames: ((state: {
161
153
  tenants: import("./tenants/types").TenantsState;
162
154
  partitions: import("./partitions/types").PartitionsState;
163
155
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
164
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
165
156
  tabletsFilters: {
166
157
  loading: boolean;
167
158
  requestTime: number;
@@ -284,10 +275,8 @@ export declare const selectConsumersNames: ((state: {
284
275
  memoizedResultFunc: ((resultFuncArgs_0: {
285
276
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
286
277
  singleClusterMode: boolean;
287
- nodes: import("./nodes/types").NodesState;
288
278
  cluster: import("./cluster/types").ClusterState;
289
279
  tenant: import("./tenant/types").TenantState;
290
- storage: import("./storage/types").StorageState;
291
280
  tooltip: import("../../types/store/tooltip").ITooltipState;
292
281
  tablets: import("../../types/store/tablets").TabletsState;
293
282
  schema: import("./schema/types").SchemaState;
@@ -295,7 +284,6 @@ export declare const selectConsumersNames: ((state: {
295
284
  tenants: import("./tenants/types").TenantsState;
296
285
  partitions: import("./partitions/types").PartitionsState;
297
286
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
298
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
299
287
  tabletsFilters: {
300
288
  loading: boolean;
301
289
  requestTime: number;
@@ -423,10 +411,8 @@ export declare const selectConsumersNames: ((state: {
423
411
  dependencies: [(state: RootState) => {
424
412
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
425
413
  singleClusterMode: boolean;
426
- nodes: import("./nodes/types").NodesState;
427
414
  cluster: import("./cluster/types").ClusterState;
428
415
  tenant: import("./tenant/types").TenantState;
429
- storage: import("./storage/types").StorageState;
430
416
  tooltip: import("../../types/store/tooltip").ITooltipState;
431
417
  tablets: import("../../types/store/tablets").TabletsState;
432
418
  schema: import("./schema/types").SchemaState;
@@ -434,7 +420,6 @@ export declare const selectConsumersNames: ((state: {
434
420
  tenants: import("./tenants/types").TenantsState;
435
421
  partitions: import("./partitions/types").PartitionsState;
436
422
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
437
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
438
423
  tabletsFilters: {
439
424
  loading: boolean;
440
425
  requestTime: number;
@@ -573,10 +558,8 @@ export declare const selectConsumersNames: ((state: {
573
558
  export declare const selectPreparedTopicStats: ((state: {
574
559
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
575
560
  singleClusterMode: boolean;
576
- nodes: import("./nodes/types").NodesState;
577
561
  cluster: import("./cluster/types").ClusterState;
578
562
  tenant: import("./tenant/types").TenantState;
579
- storage: import("./storage/types").StorageState;
580
563
  tooltip: import("../../types/store/tooltip").ITooltipState;
581
564
  tablets: import("../../types/store/tablets").TabletsState;
582
565
  schema: import("./schema/types").SchemaState;
@@ -584,7 +567,6 @@ export declare const selectPreparedTopicStats: ((state: {
584
567
  tenants: import("./tenants/types").TenantsState;
585
568
  partitions: import("./partitions/types").PartitionsState;
586
569
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
587
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
588
570
  tabletsFilters: {
589
571
  loading: boolean;
590
572
  requestTime: number;
@@ -668,10 +650,8 @@ export declare const selectPreparedTopicStats: ((state: {
668
650
  dependencies: [((state: {
669
651
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
670
652
  singleClusterMode: boolean;
671
- nodes: import("./nodes/types").NodesState;
672
653
  cluster: import("./cluster/types").ClusterState;
673
654
  tenant: import("./tenant/types").TenantState;
674
- storage: import("./storage/types").StorageState;
675
655
  tooltip: import("../../types/store/tooltip").ITooltipState;
676
656
  tablets: import("../../types/store/tablets").TabletsState;
677
657
  schema: import("./schema/types").SchemaState;
@@ -679,7 +659,6 @@ export declare const selectPreparedTopicStats: ((state: {
679
659
  tenants: import("./tenants/types").TenantsState;
680
660
  partitions: import("./partitions/types").PartitionsState;
681
661
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
682
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
683
662
  tabletsFilters: {
684
663
  loading: boolean;
685
664
  requestTime: number;
@@ -736,10 +715,8 @@ export declare const selectPreparedTopicStats: ((state: {
736
715
  resultFunc: (resultFuncArgs_0: {
737
716
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
738
717
  singleClusterMode: boolean;
739
- nodes: import("./nodes/types").NodesState;
740
718
  cluster: import("./cluster/types").ClusterState;
741
719
  tenant: import("./tenant/types").TenantState;
742
- storage: import("./storage/types").StorageState;
743
720
  tooltip: import("../../types/store/tooltip").ITooltipState;
744
721
  tablets: import("../../types/store/tablets").TabletsState;
745
722
  schema: import("./schema/types").SchemaState;
@@ -747,7 +724,6 @@ export declare const selectPreparedTopicStats: ((state: {
747
724
  tenants: import("./tenants/types").TenantsState;
748
725
  partitions: import("./partitions/types").PartitionsState;
749
726
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
750
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
751
727
  tabletsFilters: {
752
728
  loading: boolean;
753
729
  requestTime: number;
@@ -870,10 +846,8 @@ export declare const selectPreparedTopicStats: ((state: {
870
846
  memoizedResultFunc: ((resultFuncArgs_0: {
871
847
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
872
848
  singleClusterMode: boolean;
873
- nodes: import("./nodes/types").NodesState;
874
849
  cluster: import("./cluster/types").ClusterState;
875
850
  tenant: import("./tenant/types").TenantState;
876
- storage: import("./storage/types").StorageState;
877
851
  tooltip: import("../../types/store/tooltip").ITooltipState;
878
852
  tablets: import("../../types/store/tablets").TabletsState;
879
853
  schema: import("./schema/types").SchemaState;
@@ -881,7 +855,6 @@ export declare const selectPreparedTopicStats: ((state: {
881
855
  tenants: import("./tenants/types").TenantsState;
882
856
  partitions: import("./partitions/types").PartitionsState;
883
857
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
884
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
885
858
  tabletsFilters: {
886
859
  loading: boolean;
887
860
  requestTime: number;
@@ -1009,10 +982,8 @@ export declare const selectPreparedTopicStats: ((state: {
1009
982
  dependencies: [(state: RootState) => {
1010
983
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
1011
984
  singleClusterMode: boolean;
1012
- nodes: import("./nodes/types").NodesState;
1013
985
  cluster: import("./cluster/types").ClusterState;
1014
986
  tenant: import("./tenant/types").TenantState;
1015
- storage: import("./storage/types").StorageState;
1016
987
  tooltip: import("../../types/store/tooltip").ITooltipState;
1017
988
  tablets: import("../../types/store/tablets").TabletsState;
1018
989
  schema: import("./schema/types").SchemaState;
@@ -1020,7 +991,6 @@ export declare const selectPreparedTopicStats: ((state: {
1020
991
  tenants: import("./tenants/types").TenantsState;
1021
992
  partitions: import("./partitions/types").PartitionsState;
1022
993
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
1023
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
1024
994
  tabletsFilters: {
1025
995
  loading: boolean;
1026
996
  requestTime: number;
@@ -1159,10 +1129,8 @@ export declare const selectPreparedTopicStats: ((state: {
1159
1129
  export declare const selectPreparedConsumersData: ((state: {
1160
1130
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
1161
1131
  singleClusterMode: boolean;
1162
- nodes: import("./nodes/types").NodesState;
1163
1132
  cluster: import("./cluster/types").ClusterState;
1164
1133
  tenant: import("./tenant/types").TenantState;
1165
- storage: import("./storage/types").StorageState;
1166
1134
  tooltip: import("../../types/store/tooltip").ITooltipState;
1167
1135
  tablets: import("../../types/store/tablets").TabletsState;
1168
1136
  schema: import("./schema/types").SchemaState;
@@ -1170,7 +1138,6 @@ export declare const selectPreparedConsumersData: ((state: {
1170
1138
  tenants: import("./tenants/types").TenantsState;
1171
1139
  partitions: import("./partitions/types").PartitionsState;
1172
1140
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
1173
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
1174
1141
  tabletsFilters: {
1175
1142
  loading: boolean;
1176
1143
  requestTime: number;
@@ -1258,10 +1225,8 @@ export declare const selectPreparedConsumersData: ((state: {
1258
1225
  dependencies: [((state: {
1259
1226
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
1260
1227
  singleClusterMode: boolean;
1261
- nodes: import("./nodes/types").NodesState;
1262
1228
  cluster: import("./cluster/types").ClusterState;
1263
1229
  tenant: import("./tenant/types").TenantState;
1264
- storage: import("./storage/types").StorageState;
1265
1230
  tooltip: import("../../types/store/tooltip").ITooltipState;
1266
1231
  tablets: import("../../types/store/tablets").TabletsState;
1267
1232
  schema: import("./schema/types").SchemaState;
@@ -1269,7 +1234,6 @@ export declare const selectPreparedConsumersData: ((state: {
1269
1234
  tenants: import("./tenants/types").TenantsState;
1270
1235
  partitions: import("./partitions/types").PartitionsState;
1271
1236
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
1272
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
1273
1237
  tabletsFilters: {
1274
1238
  loading: boolean;
1275
1239
  requestTime: number;
@@ -1326,10 +1290,8 @@ export declare const selectPreparedConsumersData: ((state: {
1326
1290
  resultFunc: (resultFuncArgs_0: {
1327
1291
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
1328
1292
  singleClusterMode: boolean;
1329
- nodes: import("./nodes/types").NodesState;
1330
1293
  cluster: import("./cluster/types").ClusterState;
1331
1294
  tenant: import("./tenant/types").TenantState;
1332
- storage: import("./storage/types").StorageState;
1333
1295
  tooltip: import("../../types/store/tooltip").ITooltipState;
1334
1296
  tablets: import("../../types/store/tablets").TabletsState;
1335
1297
  schema: import("./schema/types").SchemaState;
@@ -1337,7 +1299,6 @@ export declare const selectPreparedConsumersData: ((state: {
1337
1299
  tenants: import("./tenants/types").TenantsState;
1338
1300
  partitions: import("./partitions/types").PartitionsState;
1339
1301
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
1340
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
1341
1302
  tabletsFilters: {
1342
1303
  loading: boolean;
1343
1304
  requestTime: number;
@@ -1460,10 +1421,8 @@ export declare const selectPreparedConsumersData: ((state: {
1460
1421
  memoizedResultFunc: ((resultFuncArgs_0: {
1461
1422
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
1462
1423
  singleClusterMode: boolean;
1463
- nodes: import("./nodes/types").NodesState;
1464
1424
  cluster: import("./cluster/types").ClusterState;
1465
1425
  tenant: import("./tenant/types").TenantState;
1466
- storage: import("./storage/types").StorageState;
1467
1426
  tooltip: import("../../types/store/tooltip").ITooltipState;
1468
1427
  tablets: import("../../types/store/tablets").TabletsState;
1469
1428
  schema: import("./schema/types").SchemaState;
@@ -1471,7 +1430,6 @@ export declare const selectPreparedConsumersData: ((state: {
1471
1430
  tenants: import("./tenants/types").TenantsState;
1472
1431
  partitions: import("./partitions/types").PartitionsState;
1473
1432
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
1474
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
1475
1433
  tabletsFilters: {
1476
1434
  loading: boolean;
1477
1435
  requestTime: number;
@@ -1599,10 +1557,8 @@ export declare const selectPreparedConsumersData: ((state: {
1599
1557
  dependencies: [(state: RootState) => {
1600
1558
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
1601
1559
  singleClusterMode: boolean;
1602
- nodes: import("./nodes/types").NodesState;
1603
1560
  cluster: import("./cluster/types").ClusterState;
1604
1561
  tenant: import("./tenant/types").TenantState;
1605
- storage: import("./storage/types").StorageState;
1606
1562
  tooltip: import("../../types/store/tooltip").ITooltipState;
1607
1563
  tablets: import("../../types/store/tablets").TabletsState;
1608
1564
  schema: import("./schema/types").SchemaState;
@@ -1610,7 +1566,6 @@ export declare const selectPreparedConsumersData: ((state: {
1610
1566
  tenants: import("./tenants/types").TenantsState;
1611
1567
  partitions: import("./partitions/types").PartitionsState;
1612
1568
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
1613
- explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
1614
1569
  tabletsFilters: {
1615
1570
  loading: boolean;
1616
1571
  requestTime: number;
@@ -81,28 +81,6 @@ const paramSetup = {
81
81
  stateKey: 'partitions.selectedConsumer',
82
82
  },
83
83
  },
84
- '/cluster/storage': {
85
- storageType: {
86
- stateKey: 'storage.type',
87
- },
88
- visible: {
89
- stateKey: 'storage.visible',
90
- },
91
- uptimeFilter: {
92
- stateKey: 'storage.uptimeFilter',
93
- },
94
- search: {
95
- stateKey: 'storage.filter',
96
- },
97
- },
98
- '/cluster/nodes': {
99
- uptimeFilter: {
100
- stateKey: 'nodes.uptimeFilter',
101
- },
102
- search: {
103
- stateKey: 'nodes.searchValue',
104
- },
105
- },
106
84
  '/cluster/tenants': {
107
85
  search: {
108
86
  stateKey: 'tenants.searchValue',
@@ -1,5 +1,4 @@
1
- import type { Dispatch } from '@reduxjs/toolkit';
2
- import type { GetState } from '.';
1
+ import type { AppDispatch, GetState } from '.';
3
2
  export declare const nop: (result: any) => any;
4
3
  export declare function createRequestActionTypes<Prefix extends string, Type extends string>(prefix: Prefix, type: Type): {
5
4
  readonly REQUEST: `${Prefix}/${Type}_REQUEST`;
@@ -11,7 +10,7 @@ type CreateApiRequestParams<Actions, Response, HandledResponse> = {
11
10
  request: Promise<Response>;
12
11
  dataHandler?: (data: Response, getState: GetState) => HandledResponse;
13
12
  };
14
- export declare function createApiRequest<Actions extends ReturnType<typeof createRequestActionTypes>, Response, HandledResponse>({ actions, request, dataHandler, }: CreateApiRequestParams<Actions, Response, HandledResponse>): (dispatch: Dispatch, getState: GetState) => Promise<HandledResponse | undefined>;
13
+ export declare function createApiRequest<Actions extends ReturnType<typeof createRequestActionTypes>, Response, HandledResponse>({ actions, request, dataHandler, }: CreateApiRequestParams<Actions, Response, HandledResponse>): (dispatch: AppDispatch, getState: GetState) => Promise<HandledResponse | undefined>;
15
14
  export type ApiRequestAction<Actions extends ReturnType<typeof createRequestActionTypes>, SuccessResponse = unknown, ErrorResponse = unknown> = {
16
15
  type: Actions['REQUEST'];
17
16
  } | {
@@ -1,4 +1,5 @@
1
1
  import createToast from '../utils/createToast';
2
+ import { isAxiosResponse } from '../utils/response';
2
3
  import { SET_UNAUTHENTICATED } from './reducers/authentication/authentication';
3
4
  export const nop = (result) => result;
4
5
  export function createRequestActionTypes(prefix, type) {
@@ -8,7 +9,6 @@ export function createRequestActionTypes(prefix, type) {
8
9
  FAILURE: `${prefix}/${type}_FAILURE`,
9
10
  };
10
11
  }
11
- const isAxiosResponse = (response) => response && 'status' in response;
12
12
  export function createApiRequest({ actions, request, dataHandler = nop, }) {
13
13
  const doRequest = async function (dispatch, getState) {
14
14
  dispatch({
@@ -0,0 +1,74 @@
1
+ import type { IssueMessage } from '../query';
2
+ import type { TPathID } from './shared';
3
+ interface TStaticCredentials {
4
+ User?: string;
5
+ Password?: string;
6
+ PasswordSecretName?: string;
7
+ }
8
+ interface TOAuthToken {
9
+ Token?: string;
10
+ TokenSecretName?: string;
11
+ }
12
+ export interface TConnectionParams {
13
+ Endpoint?: string;
14
+ Database?: string;
15
+ StaticCredentials?: TStaticCredentials;
16
+ OAuthToken?: TOAuthToken;
17
+ }
18
+ interface TTargetEverything {
19
+ DstPrefix?: string;
20
+ }
21
+ export interface TTarget {
22
+ SrcPath?: string;
23
+ DstPath?: string;
24
+ }
25
+ interface TTargetSpecific {
26
+ Targets: TTarget[];
27
+ }
28
+ /**
29
+ * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/replication.proto
30
+ */
31
+ export interface TReplicationConfig {
32
+ SrcConnectionParams?: TConnectionParams;
33
+ Everything?: TTargetEverything;
34
+ Specific?: TTargetSpecific;
35
+ InitialSync?: boolean;
36
+ }
37
+ interface TStandBy {
38
+ }
39
+ interface TPaused {
40
+ }
41
+ declare enum EFailoverMode {
42
+ FAILOVER_MODE_UNSPECIFIED = 0,
43
+ FAILOVER_MODE_CONSISTENT = 1,
44
+ FAILOVER_MODE_FORCE = 2
45
+ }
46
+ interface TDone {
47
+ FailoverMode?: EFailoverMode;
48
+ }
49
+ interface TError {
50
+ IssueMessage: IssueMessage[];
51
+ }
52
+ /**
53
+ * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/replication.proto
54
+ */
55
+ export interface TReplicationState {
56
+ StandBy?: TStandBy;
57
+ Paused?: TPaused;
58
+ Done?: TDone;
59
+ Error?: TError;
60
+ }
61
+ /**
62
+ * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/flat_scheme_op.proto
63
+ */
64
+ export interface TReplicationDescription {
65
+ Name?: string;
66
+ Config?: TReplicationConfig;
67
+ PathId?: TPathID;
68
+ /** uint64 */
69
+ Version?: string;
70
+ /** uint64 */
71
+ ControllerId?: string;
72
+ State?: TReplicationState;
73
+ }
74
+ export {};
@@ -0,0 +1,7 @@
1
+ var EFailoverMode;
2
+ (function (EFailoverMode) {
3
+ EFailoverMode[EFailoverMode["FAILOVER_MODE_UNSPECIFIED"] = 0] = "FAILOVER_MODE_UNSPECIFIED";
4
+ EFailoverMode[EFailoverMode["FAILOVER_MODE_CONSISTENT"] = 1] = "FAILOVER_MODE_CONSISTENT";
5
+ EFailoverMode[EFailoverMode["FAILOVER_MODE_FORCE"] = 2] = "FAILOVER_MODE_FORCE";
6
+ })(EFailoverMode || (EFailoverMode = {}));
7
+ export {};
@@ -4,6 +4,7 @@ import type { TColumnStoreDescription, TColumnTableDescription } from './columnE
4
4
  import type { TExternalDataSourceDescription } from './externalDataSource';
5
5
  import type { TExternalTableDescription } from './externalTable';
6
6
  import type { TPersQueueGroupDescription } from './persQueueGroup';
7
+ import type { TReplicationDescription } from './replication';
7
8
  import type { TTableDescription, TTableStats } from './table';
8
9
  import type { TIndexDescription } from './tableIndex';
9
10
  import type { TViewDescription } from './view';
@@ -70,6 +71,7 @@ export interface TPathDescription {
70
71
  ExternalTableDescription?: TExternalTableDescription;
71
72
  ExternalDataSourceDescription?: TExternalDataSourceDescription;
72
73
  ViewDescription?: TViewDescription;
74
+ ReplicationDescription?: TReplicationDescription;
73
75
  }
74
76
  export interface TDirEntry {
75
77
  Name?: string;
@@ -214,7 +216,8 @@ export declare enum EPathType {
214
216
  EPathTypeCdcStream = "EPathTypeCdcStream",
215
217
  EPathTypeExternalDataSource = "EPathTypeExternalDataSource",
216
218
  EPathTypeExternalTable = "EPathTypeExternalTable",
217
- EPathTypeView = "EPathTypeView"
219
+ EPathTypeView = "EPathTypeView",
220
+ EPathTypeReplication = "EPathTypeReplication"
218
221
  }
219
222
  export declare enum EPathSubType {
220
223
  EPathSubTypeEmpty = "EPathSubTypeEmpty",
@@ -41,6 +41,7 @@ export var EPathType;
41
41
  EPathType["EPathTypeExternalDataSource"] = "EPathTypeExternalDataSource";
42
42
  EPathType["EPathTypeExternalTable"] = "EPathTypeExternalTable";
43
43
  EPathType["EPathTypeView"] = "EPathTypeView";
44
+ EPathType["EPathTypeReplication"] = "EPathTypeReplication";
44
45
  })(EPathType || (EPathType = {}));
45
46
  export var EPathSubType;
46
47
  (function (EPathSubType) {
@@ -8,6 +8,12 @@ export interface TUserToken {
8
8
  GroupSIDs?: TProtoHashTable;
9
9
  OriginalUserToken?: string;
10
10
  AuthType?: string;
11
+ /** Is user allowed to view data */
12
+ IsViewerAllowed?: boolean;
13
+ /** Is user allowed to view deeper and make simple changes */
14
+ IsMonitoringAllowed?: boolean;
15
+ /** Is user allowed to do unrestricted changes in the system */
16
+ IsAdministrationAllowed?: boolean;
11
17
  }
12
18
  interface TProtoHashTable {
13
19
  Buckets?: TProtoHashBucket[];
@@ -1,6 +1,4 @@
1
- import type { SEND_QUERY, changeUserInput, goToNextQuery, goToPreviousQuery, saveQueryToHistory, setTenantPath } from '../../store/reducers/executeQuery';
2
- import type { ApiRequestAction } from '../../store/utils';
3
- import type { IQueryResult, QueryError, QueryErrorResponse } from './query';
1
+ import type { changeUserInput, goToNextQuery, goToPreviousQuery, saveQueryToHistory, setTenantPath } from '../../store/reducers/executeQuery';
4
2
  export interface QueryInHistory {
5
3
  queryText: string;
6
4
  syntax?: string;
@@ -13,13 +11,8 @@ export interface ExecuteQueryState {
13
11
  currentIndex: number;
14
12
  };
15
13
  tenantPath?: string;
16
- data?: IQueryResult;
17
- stats?: IQueryResult['stats'];
18
- error?: string | QueryErrorResponse;
19
14
  }
20
- type SendQueryAction = ApiRequestAction<typeof SEND_QUERY, IQueryResult, QueryError>;
21
- export type ExecuteQueryAction = SendQueryAction | ReturnType<typeof goToNextQuery> | ReturnType<typeof goToPreviousQuery> | ReturnType<typeof changeUserInput> | ReturnType<typeof saveQueryToHistory> | ReturnType<typeof setTenantPath>;
15
+ export type ExecuteQueryAction = ReturnType<typeof goToNextQuery> | ReturnType<typeof goToPreviousQuery> | ReturnType<typeof changeUserInput> | ReturnType<typeof saveQueryToHistory> | ReturnType<typeof setTenantPath>;
22
16
  export interface ExecuteQueryStateSlice {
23
17
  executeQuery: ExecuteQueryState;
24
18
  }
25
- export {};
@@ -104,3 +104,4 @@ export declare const QUERY_USE_MULTI_SCHEMA_KEY = "queryUseMultiSchema";
104
104
  export declare const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = "useClusterBalancerAsBacked";
105
105
  export declare const ENABLE_AUTOCOMPLETE = "enableAutocomplete";
106
106
  export declare const AUTOCOMPLETE_ON_ENTER = "autocompleteOnEnter";
107
+ export declare const IS_HOTKEYS_HELP_HIDDDEN_KEY = "isHotKeysHelpHidden";
@@ -102,3 +102,4 @@ export const QUERY_USE_MULTI_SCHEMA_KEY = 'queryUseMultiSchema';
102
102
  export const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = 'useClusterBalancerAsBacked';
103
103
  export const ENABLE_AUTOCOMPLETE = 'enableAutocomplete';
104
104
  export const AUTOCOMPLETE_ON_ENTER = 'autocompleteOnEnter';
105
+ export const IS_HOTKEYS_HELP_HIDDDEN_KEY = 'isHotKeysHelpHidden';
@@ -1,3 +1,4 @@
1
+ import type { YQLEntity } from '@gravity-ui/websql-autocomplete';
1
2
  export declare const LANGUAGE_YQL_ID = "yql";
2
3
  export declare const SimpleTypes: string[];
3
4
  export declare const SimpleFunctions: string[];
@@ -6,3 +7,4 @@ export declare const Udfs: string[];
6
7
  export declare const WindowFunctions: string[];
7
8
  export declare const TableFunction: never[];
8
9
  export declare const Pragmas: string[];
10
+ export declare const EntitySettings: Record<YQLEntity, string[]>;
@@ -695,3 +695,36 @@ export const WindowFunctions = [
695
695
  ];
696
696
  export const TableFunction = [];
697
697
  export const Pragmas = ['TablePathPrefix', 'Warning'];
698
+ export const EntitySettings = {
699
+ table: [
700
+ 'AUTO_PARTITIONING_BY_SIZE',
701
+ 'AUTO_PARTITIONING_PARTITION_SIZE_MB',
702
+ 'AUTO_PARTITIONING_BY_LOAD',
703
+ 'AUTO_PARTITIONING_MIN_PARTITIONS_COUNT',
704
+ 'AUTO_PARTITIONING_MAX_PARTITIONS_COUNT',
705
+ 'UNIFORM_PARTITIONS',
706
+ 'READ_REPLICAS_SETTINGS',
707
+ 'TTL',
708
+ 'KEY_BLOOM_FILTER',
709
+ 'STORE',
710
+ ],
711
+ view: ['security_invoker'],
712
+ topic: [
713
+ 'min_active_partitions',
714
+ 'partition_count_limit',
715
+ 'retention_period',
716
+ 'retention_storage_mb',
717
+ 'partition_write_speed_bytes_per_second',
718
+ 'partition_write_burst_bytes',
719
+ 'metering_mode',
720
+ ],
721
+ object: [],
722
+ user: [],
723
+ group: [],
724
+ externalDataSource: [],
725
+ externalTable: [],
726
+ tableStore: [],
727
+ replication: ['ENDPOINT', 'DATABASE', 'USER', 'PASSWORD'],
728
+ tableIndex: [],
729
+ topicConsumer: ['important', 'read_from'],
730
+ };
@@ -25,3 +25,4 @@ export declare function generateWindowFunctionsSuggestion(rangeToInsertSuggestio
25
25
  export declare function generateTableFunctionsSuggestion(rangeToInsertSuggestion: monaco.IRange): Promise<monaco.languages.CompletionItem[]>;
26
26
  export declare function generateAggregateFunctionsSuggestion(rangeToInsertSuggestion: monaco.IRange): Promise<monaco.languages.CompletionItem[]>;
27
27
  export declare function generatePragmasSuggestion(rangeToInsertSuggestion: monaco.IRange): Promise<monaco.languages.CompletionItem[]>;
28
+ export declare function generateEntitySettingsSuggestion(rangeToInsertSuggestion: monaco.IRange, entityType: YQLEntity): Promise<monaco.languages.CompletionItem[]>;
@@ -1,5 +1,5 @@
1
1
  import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
2
- import { AggregateFunctions, Pragmas, SimpleFunctions, SimpleTypes, TableFunction, Udfs, WindowFunctions, } from './constants';
2
+ import { AggregateFunctions, EntitySettings, Pragmas, SimpleFunctions, SimpleTypes, TableFunction, Udfs, WindowFunctions, } from './constants';
3
3
  const CompletionItemKind = {
4
4
  Method: 0,
5
5
  Function: 1,
@@ -33,13 +33,13 @@ const CompletionItemKind = {
33
33
  const re = /[\s'"-/@]/;
34
34
  const suggestionEntityToAutocomplete = {
35
35
  externalDataSource: ['external_data_source'],
36
+ externalTable: ['external_table'],
36
37
  replication: ['replication'],
37
- table: ['table'],
38
+ table: ['table', 'column_table'],
38
39
  tableStore: ['column_store'],
39
40
  topic: ['pers_queue_group'],
40
41
  view: ['view'],
41
- //TODO: add after websql-autocomplete support indexex
42
- // index: ['table_index', 'index'],
42
+ tableIndex: ['table_index', 'index'],
43
43
  };
44
44
  const commonSuggestionEntities = ['dir', 'unknown'];
45
45
  function filterAutocompleteEntities(autocompleteEntities, suggestions) {
@@ -90,13 +90,16 @@ const SuggestionsWeight = {
90
90
  suggestEntity: 2,
91
91
  suggestColumns: 3,
92
92
  suggestColumnAliases: 4,
93
- suggestKeywords: 5,
94
- suggestAggregateFunctions: 6,
95
- suggestTableFunctions: 7,
96
- suggestWindowFunctions: 8,
97
- suggestFunctions: 9,
98
- suggestUdfs: 10,
99
- suggestSimpleTypes: 11,
93
+ suggestTableIndexes: 5,
94
+ suggestTableHints: 6,
95
+ suggestEntitySettings: 7,
96
+ suggestSimpleTypes: 8,
97
+ suggestKeywords: 9,
98
+ suggestAggregateFunctions: 10,
99
+ suggestTableFunctions: 11,
100
+ suggestWindowFunctions: 12,
101
+ suggestFunctions: 13,
102
+ suggestUdfs: 14,
100
103
  };
101
104
  function getSuggestionIndex(suggestionType) {
102
105
  return SuggestionsWeight[suggestionType];
@@ -116,6 +119,9 @@ async function getAggregateFunctions() {
116
119
  async function getPragmas() {
117
120
  return Pragmas;
118
121
  }
122
+ async function getEntitySettings(entityType) {
123
+ return EntitySettings[entityType];
124
+ }
119
125
  async function getUdfs() {
120
126
  return Udfs;
121
127
  }
@@ -328,6 +334,17 @@ export async function generatePragmasSuggestion(rangeToInsertSuggestion) {
328
334
  sortText: suggestionIndexToWeight(getSuggestionIndex('suggestPragmas')),
329
335
  }));
330
336
  }
337
+ export async function generateEntitySettingsSuggestion(rangeToInsertSuggestion, entityType) {
338
+ const entitySettings = await getEntitySettings(entityType);
339
+ return entitySettings.map((el) => ({
340
+ label: el,
341
+ insertText: el,
342
+ kind: CompletionItemKind.Property,
343
+ detail: 'Setting',
344
+ range: rangeToInsertSuggestion,
345
+ sortText: suggestionIndexToWeight(getSuggestionIndex('suggestEntitySettings')),
346
+ }));
347
+ }
331
348
  const alphabet = 'abcdefghijklmnopqrstuvwxyz';
332
349
  function suggestionIndexToWeight(index) {
333
350
  const characterInsideAlphabet = alphabet[index];