ydb-embedded-ui 6.34.0 → 6.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +5 -3
  2. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -2
  3. package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
  4. package/dist/components/nodesColumns/__test__/utils.test.d.ts +1 -0
  5. package/dist/components/nodesColumns/__test__/utils.test.js +28 -0
  6. package/dist/components/nodesColumns/__test__/utils.test.js.map +1 -0
  7. package/dist/components/nodesColumns/columns.d.ts +28 -2
  8. package/dist/components/nodesColumns/columns.js +82 -4
  9. package/dist/components/nodesColumns/columns.js.map +1 -1
  10. package/dist/components/nodesColumns/constants.d.ts +12 -0
  11. package/dist/components/nodesColumns/constants.js +36 -0
  12. package/dist/components/nodesColumns/constants.js.map +1 -1
  13. package/dist/components/nodesColumns/i18n/en.json +11 -1
  14. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  15. package/dist/components/nodesColumns/utils.d.ts +2 -0
  16. package/dist/components/nodesColumns/utils.js +11 -0
  17. package/dist/components/nodesColumns/utils.js.map +1 -0
  18. package/dist/containers/Nodes/Nodes.js +2 -2
  19. package/dist/containers/Nodes/Nodes.js.map +1 -1
  20. package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +3 -1
  21. package/dist/containers/Nodes/NodesControls/NodesControls.js +3 -3
  22. package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
  23. package/dist/containers/Nodes/PaginatedNodes.d.ts +11 -3
  24. package/dist/containers/Nodes/PaginatedNodes.js +16 -19
  25. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  26. package/dist/containers/Nodes/columns/constants.d.ts +3 -2
  27. package/dist/containers/Nodes/columns/constants.js +8 -8
  28. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  29. package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +3 -2
  30. package/dist/containers/Nodes/useNodesPageQueryParams.js +2 -2
  31. package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -1
  32. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
  33. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  34. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.d.ts +4 -0
  35. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js +23 -0
  36. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js.map +1 -0
  37. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.d.ts +5 -0
  38. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js +23 -0
  39. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js.map +1 -0
  40. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.d.ts +6 -0
  41. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +26 -0
  42. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -0
  43. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +1 -1
  44. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
  45. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.d.ts +2 -2
  46. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js +3 -2
  47. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js.map +1 -1
  48. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +3 -9
  49. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
  50. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -2
  51. package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +1 -1
  52. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +17 -3
  53. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  54. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +12 -3
  55. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +25 -10
  56. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
  57. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +0 -1
  58. package/dist/containers/Tenant/utils/newSQLQueryActions.js +0 -1
  59. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -1
  60. package/dist/containers/Tenant/utils/schemaActions.js +5 -4
  61. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  62. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +86 -53
  63. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  64. package/dist/containers/UserSettings/i18n/en.json +1 -0
  65. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  66. package/dist/containers/UserSettings/settings.d.ts +1 -0
  67. package/dist/containers/UserSettings/settings.js +6 -2
  68. package/dist/containers/UserSettings/settings.js.map +1 -1
  69. package/dist/services/settings.d.ts +1 -0
  70. package/dist/services/settings.js +2 -1
  71. package/dist/services/settings.js.map +1 -1
  72. package/dist/store/configureStore.d.ts +12 -4
  73. package/dist/store/defaultStore.d.ts +6 -2
  74. package/dist/store/reducers/capabilities/capabilities.d.ts +24 -8
  75. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  76. package/dist/store/reducers/capabilities/hooks.js +3 -0
  77. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  78. package/dist/store/reducers/cluster/cluster.d.ts +18 -6
  79. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +60 -20
  80. package/dist/store/reducers/index.d.ts +9 -3
  81. package/dist/store/reducers/node/selectors.d.ts +3 -1
  82. package/dist/store/reducers/nodes/types.d.ts +13 -0
  83. package/dist/store/reducers/nodes/utils.js +3 -3
  84. package/dist/store/reducers/nodes/utils.js.map +1 -1
  85. package/dist/store/reducers/nodesList.d.ts +3 -1
  86. package/dist/store/reducers/partitions/partitions.d.ts +4 -3
  87. package/dist/store/reducers/partitions/partitions.js +1 -3
  88. package/dist/store/reducers/partitions/partitions.js.map +1 -1
  89. package/dist/store/reducers/partitions/types.d.ts +0 -3
  90. package/dist/store/reducers/queryActions/types.d.ts +1 -1
  91. package/dist/store/reducers/tablets.d.ts +15 -5
  92. package/dist/store/reducers/tenants/selectors.d.ts +27 -9
  93. package/dist/store/reducers/topic.d.ts +45 -15
  94. package/dist/types/api/nodes.d.ts +56 -0
  95. package/dist/types/api/nodes.js.map +1 -1
  96. package/dist/utils/constants.d.ts +1 -0
  97. package/dist/utils/constants.js +1 -0
  98. package/dist/utils/constants.js.map +1 -1
  99. package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -1
  100. package/dist/utils/dataFormatters/dataFormatters.js +12 -6
  101. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  102. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +12 -8
  103. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -1
  104. package/dist/utils/monaco/insertSnippet.d.ts +1 -0
  105. package/dist/utils/monaco/insertSnippet.js +8 -0
  106. package/dist/utils/monaco/insertSnippet.js.map +1 -0
  107. package/dist/utils/timeParsers/parsers.d.ts +1 -1
  108. package/dist/utils/timeParsers/parsers.js +3 -2
  109. package/dist/utils/timeParsers/parsers.js.map +1 -1
  110. package/package.json +2 -2
@@ -1,6 +1,9 @@
1
1
  export const createTableTemplate = (params) => {
2
+ const tableName = (params === null || params === void 0 ? void 0 : params.relativePath)
3
+ ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}/my_row_table\``
4
+ : '${1:my_row_table}';
2
5
  return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table
3
- CREATE TABLE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}/ydb_row_table\` (
6
+ CREATE TABLE ${tableName} (
4
7
  category_id Uint64 NOT NULL,
5
8
  id Uint64,
6
9
  expire_at Datetime,
@@ -32,8 +35,11 @@ WITH (
32
35
  )`;
33
36
  };
34
37
  export const createColumnTableTemplate = (params) => {
38
+ const tableName = (params === null || params === void 0 ? void 0 : params.relativePath)
39
+ ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}/my_column_table\``
40
+ : '${1:my_column_table}';
35
41
  return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables
36
- CREATE TABLE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}/ydb_column_table\` (
42
+ CREATE TABLE ${tableName} (
37
43
  id Int64 NOT NULL,
38
44
  author Text,
39
45
  title Text,
@@ -44,12 +50,13 @@ PARTITION BY HASH(id)
44
50
  WITH (STORE = COLUMN)`;
45
51
  };
46
52
  export const createAsyncReplicationTemplate = () => {
47
- return `CREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";
53
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-async-replication
54
+ CREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";
48
55
 
49
56
  CREATE ASYNC REPLICATION my_replication
50
- FOR \`/remote_database/table_name\` AS \`local_table_name\` --[, \`/remote_database/another_table_name\` AS \`another_local_table_name\` ...]
57
+ FOR \${1:<original_table>} AS \${2:replica_table} --[, \`/remote_database/another_table_name\` AS \`another_local_table_name\` ...]
51
58
  WITH (
52
- CONNECTION_STRING="grpcs://mydb.ydb.tech:2135/?database=/remote_database",
59
+ CONNECTION_STRING="\${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",
53
60
  TOKEN_SECRET_NAME = "secret_name"
54
61
  -- ENDPOINT="mydb.ydb.tech:2135",
55
62
  -- DATABASE=\`/remote_database\`,
@@ -58,47 +65,57 @@ WITH (
58
65
  );`;
59
66
  };
60
67
  export const alterTableTemplate = (params) => {
68
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_table>}';
61
69
  return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/
62
70
 
63
- ALTER TABLE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`
71
+ ALTER TABLE ${path}
64
72
  -- RENAME TO new_table_name
65
73
  -- DROP COLUMN some_existing_column
66
- ADD COLUMN numeric_column Int32;`;
74
+ \${2:ADD COLUMN numeric_column Int32};`;
67
75
  };
68
76
  export const selectQueryTemplate = (params) => {
69
77
  var _a;
70
- const columns = ((_a = params === null || params === void 0 ? void 0 : params.tableData) === null || _a === void 0 ? void 0 : _a.map((column) => '`' + column.name + '`').join(', ')) || '*';
78
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${2:<my_table>}';
79
+ const columns = ((_a = params === null || params === void 0 ? void 0 : params.tableData) === null || _a === void 0 ? void 0 : _a.map((column) => '`' + column.name + '`').join(', ')) || '${1:*}';
71
80
  return `SELECT ${columns}
72
- FROM \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`
73
- LIMIT 10;`;
81
+ FROM ${path}
82
+ WHERE \${3:Key1 = 1}
83
+ ORDER BY \${4:Key1}
84
+ LIMIT \${5:10};`;
74
85
  };
75
86
  export const upsertQueryTemplate = (params) => {
76
87
  var _a;
77
- const columns = ((_a = params === null || params === void 0 ? void 0 : params.tableData) === null || _a === void 0 ? void 0 : _a.map((column) => `\`${column.name}\``).join(', ')) || `\`id\`, \`name\``;
78
- return `UPSERT INTO \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`
79
- ( ${columns} )
80
- VALUES ( );`;
88
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_table>}';
89
+ const columns = ((_a = params === null || params === void 0 ? void 0 : params.tableData) === null || _a === void 0 ? void 0 : _a.map((column) => `\`${column.name}\``).join(', ')) || '${2:id, name}';
90
+ const values = (params === null || params === void 0 ? void 0 : params.tableData) ? '${3: }' : '${3:1, "foo"}';
91
+ return `UPSERT INTO ${path}
92
+ ( ${columns} )
93
+ VALUES ( ${values} );`;
81
94
  };
82
95
  export const dropExternalTableTemplate = (params) => {
83
- return `DROP EXTERNAL TABLE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`;`;
96
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:my_table}';
97
+ return `DROP EXTERNAL TABLE ${path};`;
84
98
  };
85
99
  export const createExternalTableTemplate = (params) => {
86
100
  // Remove data source name from path
87
101
  // to create table in the same folder with data source
88
102
  const targetPath = params === null || params === void 0 ? void 0 : params.relativePath.split('/').slice(0, -1).join('/');
89
- return `CREATE EXTERNAL TABLE \`${targetPath || '$path'}/my_external_table\` (
103
+ const target = targetPath ? `\`${targetPath}/my_external_table\`` : '${1:<my_external_table>}';
104
+ const source = (params === null || params === void 0 ? void 0 : params.relativePath) ? `${params.relativePath}` : '${2:<path_to_data_source>}';
105
+ return `CREATE EXTERNAL TABLE ${target} (
90
106
  column1 Int,
91
107
  column2 Int
92
108
  ) WITH (
93
- DATA_SOURCE="${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}",
109
+ DATA_SOURCE="${source}",
94
110
  LOCATION="",
95
111
  FORMAT="json_as_string",
96
112
  \`file_pattern\`=""
97
113
  );`;
98
114
  };
99
115
  export const createTopicTemplate = (params) => {
116
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`/my_topic` : '${1:my_topic}';
100
117
  return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-topic
101
- CREATE TOPIC \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}/my_topic\` (
118
+ CREATE TOPIC ${path} (
102
119
  CONSUMER consumer1,
103
120
  CONSUMER consumer2 WITH (read_from = Datetime('1970-01-01T00:00:00Z')) -- Sets up the message write time starting from which the consumer will receive data.
104
121
  -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).
@@ -117,8 +134,9 @@ CREATE TOPIC \`${(params === null || params === void 0 ? void 0 : params.relativ
117
134
  );`;
118
135
  };
119
136
  export const alterTopicTemplate = (params) => {
137
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_topic>}';
120
138
  return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic
121
- ALTER TOPIC \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`
139
+ ALTER TOPIC ${path}
122
140
  ADD CONSUMER new_consumer WITH (read_from = Datetime('1970-01-01T00:00:00Z')), -- Sets up the message write time starting from which the consumer will receive data.
123
141
  -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).
124
142
  -- Default value: now
@@ -138,37 +156,46 @@ ALTER TOPIC \`${(params === null || params === void 0 ? void 0 : params.relative
138
156
  );`;
139
157
  };
140
158
  export const dropTopicTemplate = (params) => {
141
- return `DROP TOPIC \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`;`;
159
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_topic>}';
160
+ return `DROP TOPIC ${path};`;
142
161
  };
143
162
  export const createViewTemplate = (params) => {
144
- return `CREATE VIEW \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}/my_view\` WITH (security_invoker = TRUE) AS SELECT 1;`;
163
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`/my_view` : '${1:my_view}';
164
+ return `CREATE VIEW ${path} WITH (security_invoker = TRUE) AS SELECT 1;`;
145
165
  };
146
166
  export const dropViewTemplate = (params) => {
147
- return `DROP VIEW \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`;`;
167
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_view>}';
168
+ return `DROP VIEW ${path};`;
148
169
  };
149
170
  export const dropAsyncReplicationTemplate = (params) => {
150
- return `DROP ASYNC REPLICATION \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`;`;
171
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_replication>}';
172
+ return `DROP ASYNC REPLICATION ${path};`;
151
173
  };
152
174
  export const alterAsyncReplicationTemplate = (params) => {
153
- return `ALTER ASYNC REPLICATION \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\` SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`;
175
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_replication>}';
176
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication
177
+ ALTER ASYNC REPLICATION ${path} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`;
154
178
  };
155
179
  export const addTableIndex = (params) => {
156
- return `ALTER TABLE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\` ADD INDEX \`$indexName\` GLOBAL ON (\`$columnName\`);`;
180
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_table>}';
181
+ return `ALTER TABLE ${path} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`;
157
182
  };
158
183
  export const dropTableIndex = (params) => {
159
184
  const indexName = params === null || params === void 0 ? void 0 : params.relativePath.split('/').pop();
160
185
  const path = params === null || params === void 0 ? void 0 : params.relativePath.split('/').slice(0, -1).join('/');
161
- return `ALTER TABLE \`${path || '$path'}\` DROP INDEX \`${indexName || '$indexName'}\`;`;
186
+ const pathSnippet = path ? `\`${path}\`` : '${1:<my_table>}';
187
+ return `ALTER TABLE ${pathSnippet} DROP INDEX ${indexName || '${2:<index_name>}'};`;
162
188
  };
163
189
  export const createCdcStreamTemplate = (params) => {
164
- return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create_changefeed
165
- ALTER TABLE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\` ADD CHANGEFEED $name WITH (
166
- MODE = $mode, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES
167
- FORMAT = $format, -- JSON or DEBEZIUM_JSON
168
- VIRTUAL_TIMESTAMPS = $virtualTimestamps, -- true or false
169
- RETENTION_PERIOD = $retentionPeriod, -- Interval value, e.g., Interval('PT24H')
170
- TOPIC_MIN_ACTIVE_PARTITIONS = $topicMinActivePartitions,
171
- INITIAL_SCAN = $initialScan -- true or false
190
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_table>}';
191
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed
192
+ ALTER TABLE ${path} ADD CHANGEFEED \${2:changefeed_name} WITH (
193
+ MODE = \${3:'UPDATES'}, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES
194
+ FORMAT = \${4:'JSON'}, -- JSON or DEBEZIUM_JSON
195
+ VIRTUAL_TIMESTAMPS = \${5:TRUE}, -- true or false
196
+ RETENTION_PERIOD = \${6:Interval('PT12H')}, -- Interval value, e.g., Interval('PT24H')
197
+ -- TOPIC_MIN_ACTIVE_PARTITIONS: The number of topic partitions. By default, the number of topic partitions is equal to the number of table partitions
198
+ INITIAL_SCAN = \${8:TRUE} -- true or false
172
199
  )
173
200
 
174
201
  -- MODE options:
@@ -180,42 +207,44 @@ ALTER TABLE \`${(params === null || params === void 0 ? void 0 : params.relative
180
207
  };
181
208
  export const createGroupTemplate = () => {
182
209
  return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group
183
- CREATE GROUP $group_name
210
+ CREATE GROUP \${1:group_name}
184
211
  -- group_name: The name of the group. It may contain lowercase Latin letters and digits.`;
185
212
  };
186
213
  export const createUserTemplate = () => {
187
214
  return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user
188
- CREATE USER $user_name [option]
215
+ CREATE USER \${1:user_name} PASSWORD \${2:'password'}
189
216
  -- user_name: The name of the user. It may contain lowercase Latin letters and digits.
190
217
  -- option: The password of the user:
191
218
  -- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.
192
219
  -- PASSWORD NULL creates a user with an empty password.`;
193
220
  };
194
221
  export const deleteRowsTemplate = (params) => {
222
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_table>}';
195
223
  return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete
196
- DELETE FROM \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`
197
- WHERE Key1 == $key1 AND Key2 >= $key2;`;
224
+ DELETE FROM ${path}
225
+ WHERE \${2:Key1 = 1};`;
198
226
  };
199
227
  export const dropGroupTemplate = () => {
200
228
  return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group
201
- DROP GROUP [ IF EXISTS ] $group_name [, ...]
229
+ DROP GROUP \${1:<group_name>}
202
230
 
203
231
  -- IF EXISTS: Suppress an error if the group doesn't exist.
204
232
  -- group_name: The name of the group to be deleted.`;
205
233
  };
206
234
  export const dropUserTemplate = () => {
207
235
  return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user
208
- DROP USER [ IF EXISTS ] $user_name [, ...]
236
+ DROP USER \${1:<user_name>}
209
237
 
210
238
  -- IF EXISTS: Suppress an error if the user doesn't exist.
211
239
  -- user_name: The name of the user to be deleted.`;
212
240
  };
213
241
  export const grantPrivilegeTemplate = (params) => {
214
- return `
215
- GRANT $permission_name [, ...] | ALL [PRIVILEGES]
216
- ON \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path_to_scheme_object'}\` [, ...]
217
- TO $role_name [, ...]
218
- [WITH GRANT OPTION]
242
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath)
243
+ ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\``
244
+ : '${2:<path_to_scheme_object>}';
245
+ return `GRANT \${1:<permission_name>}
246
+ ON ${path}
247
+ TO \${3:<role_name>}
219
248
 
220
249
  -- permission_name: The name of the access right to schema objects that needs to be assigned.
221
250
  -- path_to_scheme_object: The path to the schema object for which rights are being granted.
@@ -226,10 +255,12 @@ TO $role_name [, ...]
226
255
  -- grant rights broader than they possess themselves.`;
227
256
  };
228
257
  export const revokePrivilegeTemplate = (params) => {
229
- return `
230
- REVOKE [GRANT OPTION FOR] $permission_name [, ...] | ALL [PRIVILEGES]
231
- ON \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path_to_scheme_object'}\` [, ...]
232
- FROM $role_name [, ...]
258
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath)
259
+ ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\``
260
+ : '${2:<path_to_scheme_object>}';
261
+ return `REVOKE \${1:<permission_name>}
262
+ ON ${path}
263
+ FROM \${3:<role_name>}
233
264
 
234
265
  -- permission_name: The name of the access right to schema objects that needs to be revoked.
235
266
  -- path_to_scheme_object: The path to the schema object from which rights are being revoked.
@@ -239,12 +270,14 @@ FROM $role_name [, ...]
239
270
  -- This construct has functionality similar to revoking the "ydb.access.grant" or GRANT right.`;
240
271
  };
241
272
  export const updateTableTemplate = (params) => {
273
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_table>}';
242
274
  return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update
243
- UPDATE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`
244
- SET Value1 = YQL::ToString($value2 + 1), Value2 = $value2 - 1
245
- WHERE Key1 > $key1;`;
275
+ UPDATE ${path}
276
+ SET \${2:Column1 = 'foo', Column2 = 'bar'}
277
+ WHERE \${3:Key1 = 1};`;
246
278
  };
247
279
  export const dropTableTemplate = (params) => {
248
- return `DROP TABLE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`;`;
280
+ const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_table>}';
281
+ return `DROP TABLE ${path};`;
249
282
  };
250
283
  //# sourceMappingURL=schemaQueryTemplates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemaQueryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaQueryTemplates.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC9D,OAAO;iBACM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,KAAI,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6B9C,CAAC;AACH,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAA0B,EAAE,EAAE;IACpE,OAAO;iBACM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,KAAI,OAAO;;;;;;;;sBAQ1B,CAAC;AACvB,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC/C,OAAO;;;;;;;;;;;GAWR,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC7D,OAAO;;gBAEK,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,KAAI,OAAO;;;qCAGV,CAAC;AACtC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA0B,EAAE,EAAE;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IAAI,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY;QAC7B,CAAC,CAAC,KAAK,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,IAAI;QAC/B,CAAC,CAAC,8BAA8B,CAAC;IACrC,OAAO;KACN,IAAI;;;;;;;;iHAQwG,CAAC;AAClH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC9D,MAAM,IAAI,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,EAAC,CAAC,CAAC,KAAK,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;IACtF,OAAO;SACF,IAAI;;sBAES,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC5D,MAAM,IAAI,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,EAAC,CAAC,CAAC,KAAK,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;IACtF,OAAO,cAAc,IAAI,GAAG,CAAC;AACjC,CAAC,CAAC"}
@@ -22,6 +22,7 @@
22
22
  "settings.invertedDisks.title": "Inverted disks space indicators",
23
23
  "settings.usePaginatedTables.title": "Use paginated tables",
24
24
  "settings.usePaginatedTables.description": " Use table with data load on scroll for Nodes and Storage tabs. It will increase performance, but could work unstable",
25
+ "settings.enableNetworkTable.title": "Enable network table",
25
26
  "settings.useShowPlanToSvg.title": "Plan to svg",
26
27
  "settings.useShowPlanToSvg.description": " Show \"Plan to svg\" button in query result widow (if query was executed with full stats option).",
27
28
  "settings.showDomainDatabase.title": "Show domain database",
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "page.general" | "section.appearance" | "page.experiments" | "section.experiments" | "page.editor" | "section.dev-setting" | "page.about" | "section.about" | "settings.editor.autocomplete.title" | "settings.editor.autocomplete.description" | "settings.editor.autocomplete-on-enter.title" | "settings.editor.autocomplete-on-enter.description" | "settings.theme.title" | "settings.theme.option-dark" | "settings.theme.option-light" | "settings.theme.option-system" | "settings.language.title" | "settings.language.option-russian" | "settings.language.option-english" | "settings.binaryDataInPlainTextDisplay.title" | "settings.invertedDisks.title" | "settings.usePaginatedTables.title" | "settings.usePaginatedTables.description" | "settings.useShowPlanToSvg.title" | "settings.useShowPlanToSvg.description" | "settings.showDomainDatabase.title" | "settings.useClusterBalancerAsBackend.title" | "settings.useClusterBalancerAsBackend.description" | "settings.about.interfaceVersionInfoField.title", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "page.general" | "section.appearance" | "page.experiments" | "section.experiments" | "page.editor" | "section.dev-setting" | "page.about" | "section.about" | "settings.editor.autocomplete.title" | "settings.editor.autocomplete.description" | "settings.editor.autocomplete-on-enter.title" | "settings.editor.autocomplete-on-enter.description" | "settings.theme.title" | "settings.theme.option-dark" | "settings.theme.option-light" | "settings.theme.option-system" | "settings.language.title" | "settings.language.option-russian" | "settings.language.option-english" | "settings.binaryDataInPlainTextDisplay.title" | "settings.invertedDisks.title" | "settings.usePaginatedTables.title" | "settings.usePaginatedTables.description" | "settings.enableNetworkTable.title" | "settings.useShowPlanToSvg.title" | "settings.useShowPlanToSvg.description" | "settings.showDomainDatabase.title" | "settings.useClusterBalancerAsBackend.title" | "settings.useClusterBalancerAsBackend.description" | "settings.about.interfaceVersionInfoField.title", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -18,6 +18,7 @@ export declare const languageSetting: SettingProps;
18
18
  export declare const binaryDataInPlainTextDisplay: SettingProps;
19
19
  export declare const invertedDisksSetting: SettingProps;
20
20
  export declare const usePaginatedTables: SettingProps;
21
+ export declare const enableNetworkTable: SettingProps;
21
22
  export declare const useShowPlanToSvgTables: SettingProps;
22
23
  export declare const showDomainDatabase: SettingProps;
23
24
  export declare const useClusterBalancerAsBackendSetting: SettingProps;
@@ -1,6 +1,6 @@
1
1
  import { CircleInfo, Flask, PencilToSquare, StarFill } from '@gravity-ui/icons';
2
2
  import { createNextState } from '@reduxjs/toolkit';
3
- import { AUTOCOMPLETE_ON_ENTER, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, INVERTED_DISKS_KEY, LANGUAGE_KEY, SHOW_DOMAIN_DATABASE_KEY, THEME_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_PAGINATED_TABLES_KEY, USE_SHOW_PLAN_SVG_KEY, } from '../../utils/constants';
3
+ import { AUTOCOMPLETE_ON_ENTER, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, ENABLE_NETWORK_TABLE_KEY, INVERTED_DISKS_KEY, LANGUAGE_KEY, SHOW_DOMAIN_DATABASE_KEY, THEME_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_PAGINATED_TABLES_KEY, USE_SHOW_PLAN_SVG_KEY, } from '../../utils/constants';
4
4
  import { Lang, defaultLang } from '../../utils/i18n';
5
5
  import i18n from './i18n';
6
6
  import packageJson from '../../../package.json';
@@ -57,6 +57,10 @@ export const usePaginatedTables = {
57
57
  title: i18n('settings.usePaginatedTables.title'),
58
58
  description: i18n('settings.usePaginatedTables.description'),
59
59
  };
60
+ export const enableNetworkTable = {
61
+ settingKey: ENABLE_NETWORK_TABLE_KEY,
62
+ title: i18n('settings.enableNetworkTable.title'),
63
+ };
60
64
  export const useShowPlanToSvgTables = {
61
65
  settingKey: USE_SHOW_PLAN_SVG_KEY,
62
66
  title: i18n('settings.useShowPlanToSvg.title'),
@@ -99,7 +103,7 @@ export const appearanceSection = {
99
103
  export const experimentsSection = {
100
104
  id: 'experimentsSection',
101
105
  title: i18n('section.experiments'),
102
- settings: [usePaginatedTables, useShowPlanToSvgTables],
106
+ settings: [usePaginatedTables, enableNetworkTable, useShowPlanToSvgTables],
103
107
  };
104
108
  export const devSettingsSection = {
105
109
  id: 'devSettingsSection',
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/containers/UserSettings/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACH,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,SAAS,EACT,mCAAmC,EACnC,wBAAwB,EACxB,qBAAqB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAGnD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAmBhD,MAAM,YAAY,GAAG;IACjB;QACI,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE,IAAI,CAAC,8BAA8B,CAAC;KAChD;IACD;QACI,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,IAAI,CAAC,6BAA6B,CAAC;KAC/C;IACD;QACI,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,IAAI,CAAC,4BAA4B,CAAC;KAC9C;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAiB;IACtC,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,IAAI,CAAC,sBAAsB,CAAC;IACnC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,YAAY;CACxB,CAAC;AAEF,MAAM,eAAe,GAAG;IACpB;QACI,KAAK,EAAE,IAAI,CAAC,EAAE;QACd,OAAO,EAAE,IAAI,CAAC,kCAAkC,CAAC;KACpD;IACD;QACI,KAAK,EAAE,IAAI,CAAC,EAAE;QACd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,GAA0B,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAE1F,OAAO,QAAQ,CAAC;AACpB,CAAC"}
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/containers/UserSettings/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACH,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,SAAS,EACT,mCAAmC,EACnC,wBAAwB,EACxB,qBAAqB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAGnD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAmBhD,MAAM,YAAY,GAAG;IACjB;QACI,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE,IAAI,CAAC,8BAA8B,CAAC;KAChD;IACD;QACI,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,IAAI,CAAC,6BAA6B,CAAC;KAC/C;IACD;QACI,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,IAAI,CAAC,4BAA4B,CAAC;KAC9C;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAiB;IACtC,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,IAAI,CAAC,sBAAsB,CAAC;IACnC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,YAAY;CACxB,CAAC;AAEF,MAAM,eAAe,GAAG;IACpB;QACI,KAAK,EAAE,IAAI,CAAC,EAAE;QACd,OAAO,EAAE,IAAI,CAAC,kCAAkC,CAAC;KACpD;IACD;QACI,KAAK,EA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AAE,CAAC,KAAK,EAAE,EAAE;YACvC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;IAET,MAAM,QAAQ,GAA0B,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAE1F,OAAO,QAAQ,CAAC;AACpB,CAAC"}
@@ -11,6 +11,7 @@ export declare const DEFAULT_USER_SETTINGS: {
11
11
  readonly asideHeaderCompact: true;
12
12
  readonly partitionsHiddenColumns: readonly [];
13
13
  readonly useBackendParamsForTables: true;
14
+ readonly enableNetworkTable: false;
14
15
  readonly useShowPlanToSvg: false;
15
16
  readonly useClusterBalancerAsBacked: true;
16
17
  readonly enableAutocomplete: true;
@@ -1,5 +1,5 @@
1
1
  import { TENANT_PAGES_IDS } from '../store/reducers/tenant/constants';
2
- import { ASIDE_HEADER_COMPACT_KEY, AUTOCOMPLETE_ON_ENTER, AUTO_REFRESH_INTERVAL, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, INVERTED_DISKS_KEY, IS_HOTKEYS_HELP_HIDDEN_KEY, LANGUAGE_KEY, LAST_QUERY_EXECUTION_SETTINGS_KEY, LAST_USED_QUERY_ACTION_KEY, PARTITIONS_HIDDEN_COLUMNS_KEY, QUERY_EXECUTION_SETTINGS_KEY, QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY, SAVED_QUERIES_KEY, SHOW_DOMAIN_DATABASE_KEY, TENANT_INITIAL_PAGE_KEY, THEME_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_PAGINATED_TABLES_KEY, USE_SHOW_PLAN_SVG_KEY, } from '../utils/constants';
2
+ import { ASIDE_HEADER_COMPACT_KEY, AUTOCOMPLETE_ON_ENTER, AUTO_REFRESH_INTERVAL, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, ENABLE_NETWORK_TABLE_KEY, INVERTED_DISKS_KEY, IS_HOTKEYS_HELP_HIDDEN_KEY, LANGUAGE_KEY, LAST_QUERY_EXECUTION_SETTINGS_KEY, LAST_USED_QUERY_ACTION_KEY, PARTITIONS_HIDDEN_COLUMNS_KEY, QUERY_EXECUTION_SETTINGS_KEY, QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY, SAVED_QUERIES_KEY, SHOW_DOMAIN_DATABASE_KEY, TENANT_INITIAL_PAGE_KEY, THEME_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_PAGINATED_TABLES_KEY, USE_SHOW_PLAN_SVG_KEY, } from '../utils/constants';
3
3
  import { DEFAULT_QUERY_SETTINGS, QUERY_ACTIONS } from '../utils/query';
4
4
  import { parseJson } from '../utils/utils';
5
5
  /** User settings keys and their default values */
@@ -14,6 +14,7 @@ export const DEFAULT_USER_SETTINGS = {
14
14
  [ASIDE_HEADER_COMPACT_KEY]: true,
15
15
  [PARTITIONS_HIDDEN_COLUMNS_KEY]: [],
16
16
  [USE_PAGINATED_TABLES_KEY]: true,
17
+ [ENABLE_NETWORK_TABLE_KEY]: false,
17
18
  [USE_SHOW_PLAN_SVG_KEY]: false,
18
19
  [USE_CLUSTER_BALANCER_AS_BACKEND_KEY]: true,
19
20
  [ENABLE_AUTOCOMPLETE]: true,
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/services/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAC;AACpE,OAAO,EACH,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,iCAAiC,EACjC,0BAA0B,EAC1B,6BAA6B,EAC7B,4BAA4B,EAC5B,qCAAqC,EACrC,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,SAAS,EAC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C;IA7CG;;;;OAIG;IACH,qBAAqB,CAAC,GAAW,EAAE,YAAsB;;QACrD,OAAO,MAAA,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,mCAAI,YAAY,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,GAAW,EAAE,KAAc;QAC5C,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;CA+BJ;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC"}
@@ -18,7 +18,9 @@ export declare function configureStore({ aRootReducer, singleClusterMode, api, }
18
18
  showPreview: boolean;
19
19
  };
20
20
  tenants: import("./reducers/tenants/types").TenantsState;
21
- partitions: import("./reducers/partitions/types").PartitionsState;
21
+ partitions: {
22
+ selectedConsumer?: string;
23
+ };
22
24
  executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
23
25
  heatmap: import("../types/store/heatmap").IHeatmapState;
24
26
  settings: import("./reducers/settings/types").SettingsState;
@@ -50,7 +52,9 @@ export declare function configureStore({ aRootReducer, singleClusterMode, api, }
50
52
  showPreview: boolean;
51
53
  } | undefined;
52
54
  tenants: import("./reducers/tenants/types").TenantsState | undefined;
53
- partitions: import("./reducers/partitions/types").PartitionsState | undefined;
55
+ partitions: {
56
+ selectedConsumer?: string;
57
+ } | undefined;
54
58
  executeQuery: import("../types/store/executeQuery").ExecuteQueryState | undefined;
55
59
  heatmap: import("../types/store/heatmap").IHeatmapState | undefined;
56
60
  settings: import("./reducers/settings/types").SettingsState | undefined;
@@ -79,7 +83,9 @@ export declare function configureStore({ aRootReducer, singleClusterMode, api, }
79
83
  showPreview: boolean;
80
84
  };
81
85
  tenants: import("./reducers/tenants/types").TenantsState;
82
- partitions: import("./reducers/partitions/types").PartitionsState;
86
+ partitions: {
87
+ selectedConsumer?: string;
88
+ };
83
89
  executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
84
90
  heatmap: import("../types/store/heatmap").IHeatmapState;
85
91
  settings: import("./reducers/settings/types").SettingsState;
@@ -112,7 +118,9 @@ export declare function configureStore({ aRootReducer, singleClusterMode, api, }
112
118
  showPreview: boolean;
113
119
  };
114
120
  tenants: import("./reducers/tenants/types").TenantsState;
115
- partitions: import("./reducers/partitions/types").PartitionsState;
121
+ partitions: {
122
+ selectedConsumer?: string;
123
+ };
116
124
  executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
117
125
  heatmap: import("../types/store/heatmap").IHeatmapState;
118
126
  settings: import("./reducers/settings/types").SettingsState;
@@ -11,7 +11,9 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
11
11
  showPreview: boolean;
12
12
  };
13
13
  tenants: import("./reducers/tenants/types").TenantsState;
14
- partitions: import("./reducers/partitions/types").PartitionsState;
14
+ partitions: {
15
+ selectedConsumer?: string;
16
+ };
15
17
  executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
16
18
  heatmap: import("../types/store/heatmap").IHeatmapState;
17
19
  settings: import("./reducers/settings/types").SettingsState;
@@ -44,7 +46,9 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
44
46
  showPreview: boolean;
45
47
  };
46
48
  tenants: import("./reducers/tenants/types").TenantsState;
47
- partitions: import("./reducers/partitions/types").PartitionsState;
49
+ partitions: {
50
+ selectedConsumer?: string;
51
+ };
48
52
  executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
49
53
  heatmap: import("../types/store/heatmap").IHeatmapState;
50
54
  settings: import("./reducers/settings/types").SettingsState;
@@ -18,7 +18,9 @@ export declare const selectDatabaseCapabilities: ((state: {
18
18
  showPreview: boolean;
19
19
  };
20
20
  tenants: import("../tenants/types").TenantsState;
21
- partitions: import("../partitions/types").PartitionsState;
21
+ partitions: {
22
+ selectedConsumer?: string;
23
+ };
22
24
  executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
23
25
  heatmap: import("../../../types/store/heatmap").IHeatmapState;
24
26
  settings: import("../settings/types").SettingsState;
@@ -113,7 +115,9 @@ export declare const selectDatabaseCapabilities: ((state: {
113
115
  showPreview: boolean;
114
116
  };
115
117
  tenants: import("../tenants/types").TenantsState;
116
- partitions: import("../partitions/types").PartitionsState;
118
+ partitions: {
119
+ selectedConsumer?: string;
120
+ };
117
121
  executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
118
122
  heatmap: import("../../../types/store/heatmap").IHeatmapState;
119
123
  settings: import("../settings/types").SettingsState;
@@ -210,7 +214,9 @@ export declare const selectDatabaseCapabilities: ((state: {
210
214
  showPreview: boolean;
211
215
  };
212
216
  tenants: import("../tenants/types").TenantsState;
213
- partitions: import("../partitions/types").PartitionsState;
217
+ partitions: {
218
+ selectedConsumer?: string;
219
+ };
214
220
  executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
215
221
  heatmap: import("../../../types/store/heatmap").IHeatmapState;
216
222
  settings: import("../settings/types").SettingsState;
@@ -378,7 +384,9 @@ export declare const selectDatabaseCapabilities: ((state: {
378
384
  showPreview: boolean;
379
385
  };
380
386
  tenants: import("../tenants/types").TenantsState;
381
- partitions: import("../partitions/types").PartitionsState;
387
+ partitions: {
388
+ selectedConsumer?: string;
389
+ };
382
390
  executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
383
391
  heatmap: import("../../../types/store/heatmap").IHeatmapState;
384
392
  settings: import("../settings/types").SettingsState;
@@ -417,7 +425,9 @@ export declare const selectCapabilityVersion: ((state: {
417
425
  showPreview: boolean;
418
426
  };
419
427
  tenants: import("../tenants/types").TenantsState;
420
- partitions: import("../partitions/types").PartitionsState;
428
+ partitions: {
429
+ selectedConsumer?: string;
430
+ };
421
431
  executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
422
432
  heatmap: import("../../../types/store/heatmap").IHeatmapState;
423
433
  settings: import("../settings/types").SettingsState;
@@ -446,7 +456,9 @@ export declare const selectCapabilityVersion: ((state: {
446
456
  showPreview: boolean;
447
457
  };
448
458
  tenants: import("../tenants/types").TenantsState;
449
- partitions: import("../partitions/types").PartitionsState;
459
+ partitions: {
460
+ selectedConsumer?: string;
461
+ };
450
462
  executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
451
463
  heatmap: import("../../../types/store/heatmap").IHeatmapState;
452
464
  settings: import("../settings/types").SettingsState;
@@ -471,7 +483,9 @@ export declare const selectCapabilityVersion: ((state: {
471
483
  showPreview: boolean;
472
484
  };
473
485
  tenants: import("../tenants/types").TenantsState;
474
- partitions: import("../partitions/types").PartitionsState;
486
+ partitions: {
487
+ selectedConsumer?: string;
488
+ };
475
489
  executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
476
490
  heatmap: import("../../../types/store/heatmap").IHeatmapState;
477
491
  settings: import("../settings/types").SettingsState;
@@ -501,7 +515,9 @@ export declare const selectCapabilityVersion: ((state: {
501
515
  showPreview: boolean;
502
516
  };
503
517
  tenants: import("../tenants/types").TenantsState;
504
- partitions: import("../partitions/types").PartitionsState;
518
+ partitions: {
519
+ selectedConsumer?: string;
520
+ };
505
521
  executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
506
522
  heatmap: import("../../../types/store/heatmap").IHeatmapState;
507
523
  settings: import("../settings/types").SettingsState;
@@ -7,5 +7,6 @@ export declare const useStorageGroupsHandlerAvailable: () => boolean;
7
7
  export declare const useStorageGroupsHandlerHasGrouping: () => boolean;
8
8
  export declare const useViewerNodesHandlerHasGrouping: () => boolean;
9
9
  export declare const useViewerNodesHandlerHasGroupingBySystemState: () => boolean;
10
+ export declare const useViewerNodesHandlerHasNetworkStats: () => boolean;
10
11
  export declare const useFeatureFlagsAvailable: () => boolean;
11
12
  export declare const useClusterDashboardAvailable: () => boolean;
@@ -42,6 +42,9 @@ export const useViewerNodesHandlerHasGrouping = () => {
42
42
  export const useViewerNodesHandlerHasGroupingBySystemState = () => {
43
43
  return useGetFeatureVersion('/viewer/nodes') > 11;
44
44
  };
45
+ export const useViewerNodesHandlerHasNetworkStats = () => {
46
+ return useGetFeatureVersion('/viewer/nodes') > 12;
47
+ };
45
48
  export const useFeatureFlagsAvailable = () => {
46
49
  return useGetFeatureVersion('/viewer/feature_flags') > 1;
47
50
  };