ydb-embedded-ui 6.18.0 → 6.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (250) hide show
  1. package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
  2. package/dist/components/GroupInfo/GroupInfo.js +3 -3
  3. package/dist/components/MetricChart/reducer.d.ts +2 -2
  4. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  5. package/dist/components/PaginatedTable/PaginatedTable.scss +4 -0
  6. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  7. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  8. package/dist/components/PaginatedTable/TableRow.js +1 -1
  9. package/dist/components/PaginatedTable/TableRow.js.map +1 -1
  10. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js +4 -2
  11. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js.map +1 -1
  12. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +4 -3
  13. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
  14. package/dist/containers/AppWithClusters/useClusterData.d.ts +7 -1
  15. package/dist/containers/AppWithClusters/useClusterData.js +8 -8
  16. package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
  17. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +3 -0
  18. package/dist/containers/AsideNavigation/AsideNavigation.js +6 -10
  19. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  20. package/dist/containers/AsideNavigation/Navigation.js +4 -1
  21. package/dist/containers/AsideNavigation/Navigation.js.map +1 -1
  22. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +3 -1
  23. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -4
  24. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js.map +1 -1
  25. package/dist/containers/Cluster/Cluster.js +5 -13
  26. package/dist/containers/Cluster/Cluster.js.map +1 -1
  27. package/dist/containers/Cluster/Cluster.scss +1 -0
  28. package/dist/containers/Header/Header.js +3 -7
  29. package/dist/containers/Header/Header.js.map +1 -1
  30. package/dist/containers/Node/Node.js +1 -5
  31. package/dist/containers/Node/Node.js.map +1 -1
  32. package/dist/containers/Node/NodePages.js +5 -4
  33. package/dist/containers/Node/NodePages.js.map +1 -1
  34. package/dist/containers/Node/NodeStructure/NodeStructure.js +9 -3
  35. package/dist/containers/Node/NodeStructure/NodeStructure.js.map +1 -1
  36. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +16 -7
  37. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
  38. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +2 -0
  39. package/dist/containers/PDiskPage/PDiskGroups/utils.js +14 -0
  40. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +1 -0
  41. package/dist/containers/PDiskPage/PDiskPage.js +1 -1
  42. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  43. package/dist/containers/Storage/Storage.js +9 -9
  44. package/dist/containers/Storage/Storage.js.map +1 -1
  45. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +7 -2
  46. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  47. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +1 -1
  48. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js +7 -20
  49. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -1
  50. package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -1
  51. package/dist/containers/Storage/StorageGroups/getGroups.js +27 -24
  52. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  53. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +1 -1
  54. package/dist/containers/Storage/utils/index.js +3 -4
  55. package/dist/containers/Storage/utils/index.js.map +1 -1
  56. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  57. package/dist/containers/Tenant/Diagnostics/Configs/Configs.d.ts +6 -0
  58. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js +79 -0
  59. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js.map +1 -0
  60. package/dist/containers/Tenant/Diagnostics/Configs/Configs.scss +8 -0
  61. package/dist/containers/Tenant/Diagnostics/Configs/i18n/en.json +11 -0
  62. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +2 -0
  63. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js +5 -0
  64. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js.map +1 -0
  65. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
  66. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  67. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +3 -0
  68. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
  69. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  70. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
  71. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +21 -4
  72. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  73. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +2 -0
  74. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +7 -0
  75. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +1 -0
  76. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +8 -3
  77. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
  78. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.d.ts +7 -0
  79. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js +17 -0
  80. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js.map +1 -0
  81. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +9 -0
  82. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +5 -9
  83. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +7 -7
  84. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  85. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -12
  86. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +1 -1
  87. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +9 -24
  88. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
  89. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +0 -1
  90. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  91. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +4 -12
  92. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +7 -5
  93. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
  94. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -6
  95. package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +1 -2
  96. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +1 -1
  97. package/dist/containers/Tenant/Query/Query.js +14 -2
  98. package/dist/containers/Tenant/Query/Query.js.map +1 -1
  99. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +3 -2
  100. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -36
  101. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  102. package/dist/containers/Tenant/Query/i18n/en.json +1 -0
  103. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  104. package/dist/containers/Tenant/utils/queryTemplates.js +1 -1
  105. package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
  106. package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
  107. package/dist/containers/VDiskPage/VDiskPage.js +33 -10
  108. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  109. package/dist/containers/VDiskPage/utils.d.ts +2 -0
  110. package/dist/containers/VDiskPage/utils.js +7 -0
  111. package/dist/containers/VDiskPage/utils.js.map +1 -0
  112. package/dist/lib.d.ts +1 -0
  113. package/dist/lib.js +1 -0
  114. package/dist/lib.js.map +1 -1
  115. package/dist/services/api.d.ts +17 -10
  116. package/dist/services/api.js +62 -16
  117. package/dist/services/api.js.map +1 -1
  118. package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
  119. package/dist/services/parsers/parseMetaCluster.js +17 -31
  120. package/dist/services/parsers/parseMetaCluster.js.map +1 -1
  121. package/dist/store/configureStore.d.ts +4 -4
  122. package/dist/store/defaultStore.d.ts +2 -2
  123. package/dist/store/getUrlData.js +9 -6
  124. package/dist/store/getUrlData.js.map +1 -1
  125. package/dist/store/reducers/api.d.ts +1 -1
  126. package/dist/store/reducers/api.js +1 -1
  127. package/dist/store/reducers/api.js.map +1 -1
  128. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  129. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  130. package/dist/store/reducers/cancelQuery.js.map +1 -1
  131. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
  132. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  133. package/dist/store/reducers/capabilities/hooks.js +8 -1
  134. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  135. package/dist/store/reducers/cluster/cluster.d.ts +230 -2
  136. package/dist/store/reducers/cluster/cluster.js +36 -3
  137. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  138. package/dist/store/reducers/cluster/utils.d.ts +1 -0
  139. package/dist/store/reducers/cluster/utils.js +7 -0
  140. package/dist/store/reducers/cluster/utils.js.map +1 -1
  141. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  142. package/dist/store/reducers/describe.d.ts +2 -2
  143. package/dist/store/reducers/executeQuery.d.ts +8 -4
  144. package/dist/store/reducers/executeQuery.js +34 -1
  145. package/dist/store/reducers/executeQuery.js.map +1 -1
  146. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  147. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -3
  148. package/dist/store/reducers/explainQuery/explainQuery.js +23 -2
  149. package/dist/store/reducers/explainQuery/explainQuery.js.map +1 -1
  150. package/dist/store/reducers/explainQuery/types.d.ts +1 -0
  151. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
  152. package/dist/store/reducers/heatmap.d.ts +2 -2
  153. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  154. package/dist/store/reducers/index.d.ts +3 -3
  155. package/dist/store/reducers/network/network.d.ts +2 -2
  156. package/dist/store/reducers/node/node.d.ts +3 -3
  157. package/dist/store/reducers/node/selectors.d.ts +1 -1
  158. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  159. package/dist/store/reducers/nodes/nodes.js +1 -2
  160. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  161. package/dist/store/reducers/nodesList.d.ts +3 -3
  162. package/dist/store/reducers/overview/overview.d.ts +2 -2
  163. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  164. package/dist/store/reducers/pdisk/pdisk.d.ts +2 -3
  165. package/dist/store/reducers/pdisk/pdisk.js +1 -21
  166. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  167. package/dist/store/reducers/pdisk/utils.d.ts +0 -3
  168. package/dist/store/reducers/pdisk/utils.js +0 -22
  169. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  170. package/dist/store/reducers/preview.d.ts +2 -2
  171. package/dist/store/reducers/schema/schema.d.ts +3 -3
  172. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
  173. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  174. package/dist/store/reducers/storage/requestStorageData.d.ts +5 -0
  175. package/dist/store/reducers/storage/requestStorageData.js +12 -0
  176. package/dist/store/reducers/storage/requestStorageData.js.map +1 -0
  177. package/dist/store/reducers/storage/selectors.js +1 -1
  178. package/dist/store/reducers/storage/storage.d.ts +6 -4
  179. package/dist/store/reducers/storage/storage.js +6 -6
  180. package/dist/store/reducers/storage/storage.js.map +1 -1
  181. package/dist/store/reducers/storage/types.d.ts +11 -23
  182. package/dist/store/reducers/storage/utils.d.ts +3 -2
  183. package/dist/store/reducers/storage/utils.js +52 -26
  184. package/dist/store/reducers/storage/utils.js.map +1 -1
  185. package/dist/store/reducers/tableData.d.ts +1 -1
  186. package/dist/store/reducers/tablet.d.ts +7 -7
  187. package/dist/store/reducers/tablets.d.ts +13 -13
  188. package/dist/store/reducers/tenant/constants.d.ts +1 -0
  189. package/dist/store/reducers/tenant/constants.js +1 -0
  190. package/dist/store/reducers/tenant/constants.js.map +1 -1
  191. package/dist/store/reducers/tenant/tenant.d.ts +5 -2
  192. package/dist/store/reducers/tenant/tenant.js +12 -0
  193. package/dist/store/reducers/tenant/tenant.js.map +1 -1
  194. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  195. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  196. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  197. package/dist/store/reducers/tenants/selectors.d.ts +27 -27
  198. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  199. package/dist/store/reducers/topic.d.ts +44 -44
  200. package/dist/store/reducers/trace.d.ts +4 -5
  201. package/dist/store/reducers/trace.js +5 -8
  202. package/dist/store/reducers/trace.js.map +1 -1
  203. package/dist/store/reducers/vdisk/utils.d.ts +0 -2
  204. package/dist/store/reducers/vdisk/utils.js +0 -10
  205. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  206. package/dist/store/reducers/vdisk/vdisk.d.ts +8 -5
  207. package/dist/store/reducers/vdisk/vdisk.js +17 -32
  208. package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
  209. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  210. package/dist/types/api/capabilities.d.ts +1 -1
  211. package/dist/types/api/compute.d.ts +1 -4
  212. package/dist/types/api/compute.js +1 -5
  213. package/dist/types/api/compute.js.map +1 -1
  214. package/dist/types/api/featureFlags.d.ts +13 -0
  215. package/dist/types/api/featureFlags.js +2 -0
  216. package/dist/types/api/featureFlags.js.map +1 -0
  217. package/dist/types/api/meta.d.ts +4 -2
  218. package/dist/types/api/pdisk.d.ts +1 -1
  219. package/dist/types/api/storage.d.ts +132 -6
  220. package/dist/types/api/storage.js +1 -5
  221. package/dist/types/api/storage.js.map +1 -1
  222. package/dist/types/api/trace.d.ts +16 -6
  223. package/dist/types/api/trace.js +7 -1
  224. package/dist/types/api/trace.js.map +1 -1
  225. package/dist/types/api/vdisk.d.ts +1 -1
  226. package/dist/types/store/executeQuery.d.ts +25 -3
  227. package/dist/types/store/executeQuery.js +5 -1
  228. package/dist/types/store/executeQuery.js.map +1 -1
  229. package/dist/utils/disks/helpers.d.ts +4 -1
  230. package/dist/utils/disks/helpers.js +7 -1
  231. package/dist/utils/disks/helpers.js.map +1 -1
  232. package/dist/utils/monaco/yql/generateSuggestions.js +8 -3
  233. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  234. package/dist/utils/storage.d.ts +2 -21
  235. package/dist/utils/storage.js +14 -19
  236. package/dist/utils/storage.js.map +1 -1
  237. package/package.json +1 -6
  238. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +0 -9
  239. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +0 -9
  240. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +0 -1
  241. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +0 -3
  242. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +0 -4
  243. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +0 -29
  244. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js.map +0 -1
  245. package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -4
  246. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js +0 -2
  247. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js.map +0 -1
  248. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.d.ts +0 -3
  249. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js +0 -13
  250. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js.map +0 -1
@@ -1,7 +1,8 @@
1
1
  import type { EFlag } from './enums';
2
- import type { TVDiskStateInfo } from './vdisk';
2
+ import type { EDecommitStatus, EDriveStatus, TPDiskStateInfo } from './pdisk';
3
+ import type { EVDiskStatus, TVDiskStateInfo } from './vdisk';
3
4
  /**
4
- * endpoint: /viewer/json/storage
5
+ * endpoint: /viewer/storage
5
6
  *
6
7
  * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/protos/viewer.proto
7
8
  */
@@ -50,7 +51,9 @@ export interface TStorageGroupInfoV2 extends TStorageGroupInfo {
50
51
  /** uint64 */
51
52
  Usage?: string;
52
53
  }
53
- export type TStorageGroupInfo = TBSGroupStateInfo & THiveStorageGroupStats;
54
+ export type TStorageGroupInfo = TBSGroupStateInfo & THiveStorageGroupStats & {
55
+ DiskSpace?: EFlag;
56
+ };
54
57
  interface TBSGroupStateInfo {
55
58
  GroupID?: number;
56
59
  ErasureSpecies?: string;
@@ -92,8 +95,131 @@ interface THiveStorageGroupStats {
92
95
  /** uint64 */
93
96
  AvailableSize?: string;
94
97
  }
95
- export declare enum EVersion {
96
- v1 = "v1",
97
- v2 = "v2"
98
+ /**
99
+ * endpoint: /storage/groups
100
+ *
101
+ * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/storage_groups.h
102
+ */
103
+ export interface StorageGroupsResponse {
104
+ Version?: number;
105
+ TotalGroups?: number;
106
+ FoundGroups?: number;
107
+ FieldsAvailable?: number;
108
+ FieldsRequired?: number;
109
+ StorageGroups?: TGroupsStorageGroupInfo[];
110
+ StorageGroupGroups?: StorageGroupGroups;
111
+ }
112
+ interface StorageGroupGroups {
113
+ GroupName?: string;
114
+ GroupCount?: string;
115
+ }
116
+ export interface TGroupsStorageGroupInfo {
117
+ GroupId?: string;
118
+ /** uint64 */
119
+ GroupGeneration?: string;
120
+ PoolName?: string;
121
+ Encryption?: boolean;
122
+ Overall?: EFlag;
123
+ DiskSpace?: EFlag;
124
+ Kind?: string;
125
+ MediaType?: string;
126
+ ErasureSpecies?: string;
127
+ /** uint64 */
128
+ AllocationUnits?: string;
129
+ State?: string;
130
+ /** uint64 */
131
+ MissingDisks?: string;
132
+ /** uint64 */
133
+ Used?: string;
134
+ /** uint64 */
135
+ Limit?: string;
136
+ /** uint64 */
137
+ Available?: string;
138
+ /** float */
139
+ Usage?: number;
140
+ /** uint64 */
141
+ Read?: string;
142
+ /** uint64 */
143
+ Write?: string;
144
+ /** float */
145
+ DiskSpaceUsage?: number;
146
+ VDisks?: TStorageVDisk[];
147
+ }
148
+ /**
149
+ * VDisk data from storage/groups handler
150
+ */
151
+ export interface TStorageVDisk {
152
+ VDiskId?: string;
153
+ NodeId?: number;
154
+ /** uint64 */
155
+ AllocatedSize?: string;
156
+ /** uint64 */
157
+ AvailableSize?: string;
158
+ Status?: EVDiskStatus;
159
+ DiskSpace?: EFlag;
160
+ Donors?: Omit<TStorageVDisk, 'PDisk' | 'Whiteboard'>;
161
+ PDisk?: TStoragePDisk;
162
+ Whiteboard?: TVDiskStateInfo;
163
+ }
164
+ /**
165
+ * PDisk data from storage/groups handler
166
+ */
167
+ interface TStoragePDisk {
168
+ PDiskId?: string;
169
+ Path?: string;
170
+ Type?: 'hdd' | 'ssd' | 'nvme';
171
+ Guid?: string;
172
+ /** uint64 */
173
+ Category?: string;
174
+ /** uint64 */
175
+ TotalSize?: string;
176
+ /** uint64 */
177
+ AvailableSize?: string;
178
+ Status?: EDriveStatus;
179
+ DiskSpace?: EFlag;
180
+ DecommitStatus?: EDecommitStatus;
181
+ /** uint64 */
182
+ SlotSize?: string;
183
+ Whiteboard?: TPDiskStateInfo;
184
+ }
185
+ export type EVersion = 'v1' | 'v2';
186
+ /**
187
+ * Values to sort /viewer/storage v2 response
188
+ */
189
+ export type StorageV2SortValue = 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'Degraded' | 'Usage' | 'GroupId' | 'Used' | 'Limit' | 'Read' | 'Write';
190
+ /**
191
+ * Values to sort /storage/groups response
192
+ */
193
+ export type GroupsSortField = StorageV2SortValue | 'MissingDisks' | 'State' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits';
194
+ export type StorageV2Sort = `-${StorageV2SortValue}` | `+${StorageV2SortValue}`;
195
+ export type GroupsSort = `-${GroupsSortField}` | `+${GroupsSortField}`;
196
+ export type StorageWithFilter = 'space' | 'missing' | 'all';
197
+ export type GroupsGroupByField = 'GroupId' | 'Erasure' | 'Usage' | 'DiskSpaceUsage' | 'PoolName' | 'Kind' | 'Encryption' | 'MediaType' | 'MissingDisks' | 'State';
198
+ export type GroupsRequiredField = 'GroupId' | 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'MissingDisks' | 'Degraded' | 'State' | 'Usage' | 'Used' | 'Limit' | 'Usage' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits' | 'Read' | 'Write' | 'PDisk' | 'VDisk';
199
+ interface BaseStorageRequestParams {
200
+ /** @deprecated use database instead */
201
+ tenant?: string;
202
+ database?: string;
203
+ pool?: string;
204
+ with?: StorageWithFilter;
205
+ /** PoolName or GroupId */
206
+ filter?: string;
207
+ offset?: number;
208
+ limit?: number;
209
+ }
210
+ export interface StorageRequestParams extends BaseStorageRequestParams {
211
+ nodeId?: string | number;
212
+ pDiskId?: string | number;
213
+ groupId?: string | number;
214
+ sort?: StorageV2Sort;
215
+ version?: EVersion;
216
+ }
217
+ export interface GroupsRequestParams extends BaseStorageRequestParams {
218
+ nodeId?: string | number | (string | number)[];
219
+ pDiskId?: string | number | (string | number)[];
220
+ groupId?: string | number | (string | number)[];
221
+ sort?: GroupsSort;
222
+ group?: GroupsGroupByField;
223
+ fieldsRequired?: GroupsRequiredField[] | 'all';
98
224
  }
99
225
  export {};
@@ -1,6 +1,2 @@
1
- export var EVersion;
2
- (function (EVersion) {
3
- EVersion["v1"] = "v1";
4
- EVersion["v2"] = "v2";
5
- })(EVersion || (EVersion = {}));
1
+ export {};
6
2
  //# sourceMappingURL=storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/types/api/storage.ts"],"names":[],"mappings":"AAwGA,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IAChB,qBAAS,CAAA;IACT,qBAAS,CAAA;AACb,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB"}
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/types/api/storage.ts"],"names":[],"mappings":""}
@@ -1,7 +1,17 @@
1
- import type { AxiosRequestConfig } from 'axios';
2
- export interface TTraceCheck {
3
- url: AxiosRequestConfig['url'];
4
- }
5
- export interface TTraceView {
1
+ import { z } from 'zod';
2
+ export declare const traceCheckSchema: z.ZodObject<{
3
+ url: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
6
5
  url: string;
7
- }
6
+ }, {
7
+ url: string;
8
+ }>;
9
+ export type TTraceCheck = z.infer<typeof traceCheckSchema>;
10
+ export declare const traceViewSchema: z.ZodObject<{
11
+ url: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ url: string;
14
+ }, {
15
+ url: string;
16
+ }>;
17
+ export type TTraceView = z.infer<typeof traceViewSchema>;
@@ -1,2 +1,8 @@
1
- export {};
1
+ import { z } from 'zod';
2
+ export const traceCheckSchema = z.object({
3
+ url: z.string().url(),
4
+ });
5
+ export const traceViewSchema = z.object({
6
+ url: z.string().url(),
7
+ });
2
8
  //# sourceMappingURL=trace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/types/api/trace.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/types/api/trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACxB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACxB,CAAC,CAAC"}
@@ -146,5 +146,5 @@ export interface TVSlotInfo {
146
146
  Kind?: string;
147
147
  IsBeingDeleted?: boolean;
148
148
  }
149
- type EVDiskStatus = 'ERROR' | 'INIT_PENDING' | 'REPLICATING' | 'READY';
149
+ export type EVDiskStatus = 'ERROR' | 'INIT_PENDING' | 'REPLICATING' | 'READY';
150
150
  export {};
@@ -1,4 +1,6 @@
1
- import type { changeUserInput, goToNextQuery, goToPreviousQuery, saveQueryToHistory, setQueryHistoryFilter, setTenantPath, updateQueryInHistory } from '../../store/reducers/executeQuery';
1
+ import type { changeUserInput, goToNextQuery, goToPreviousQuery, saveQueryToHistory, setQueryHistoryFilter, setQueryResult, setTenantPath, updateQueryInHistory } from '../../store/reducers/executeQuery';
2
+ import type { PreparedExplainResponse } from '../../store/reducers/explainQuery/types';
3
+ import type { IQueryResult } from './query';
2
4
  export interface QueryInHistory {
3
5
  queryId?: string;
4
6
  queryText: string;
@@ -6,9 +8,28 @@ export interface QueryInHistory {
6
8
  endTime?: string | number;
7
9
  durationUs?: string | number;
8
10
  }
11
+ export declare enum ResultType {
12
+ EXECUTE = "execute",
13
+ EXPLAIN = "explain"
14
+ }
15
+ interface CommonResultParams {
16
+ queryId: string;
17
+ isLoading: boolean;
18
+ }
19
+ export type ExecuteQueryResult = {
20
+ type: ResultType.EXECUTE;
21
+ data?: IQueryResult;
22
+ error?: unknown;
23
+ } & CommonResultParams;
24
+ export type ExplainQueryResult = {
25
+ type: ResultType.EXPLAIN;
26
+ data?: PreparedExplainResponse;
27
+ error?: unknown;
28
+ } & CommonResultParams;
29
+ export type QueryResult = ExecuteQueryResult | ExplainQueryResult;
9
30
  export interface ExecuteQueryState {
10
- loading: boolean;
11
31
  input: string;
32
+ result?: QueryResult;
12
33
  history: {
13
34
  queries: QueryInHistory[];
14
35
  currentIndex: number;
@@ -16,7 +37,8 @@ export interface ExecuteQueryState {
16
37
  };
17
38
  tenantPath?: string;
18
39
  }
19
- export type ExecuteQueryAction = ReturnType<typeof goToNextQuery> | ReturnType<typeof goToPreviousQuery> | ReturnType<typeof changeUserInput> | ReturnType<typeof saveQueryToHistory> | ReturnType<typeof updateQueryInHistory> | ReturnType<typeof setTenantPath> | ReturnType<typeof setQueryHistoryFilter>;
40
+ export type ExecuteQueryAction = ReturnType<typeof goToNextQuery> | ReturnType<typeof goToPreviousQuery> | ReturnType<typeof changeUserInput> | ReturnType<typeof setQueryResult> | ReturnType<typeof saveQueryToHistory> | ReturnType<typeof updateQueryInHistory> | ReturnType<typeof setTenantPath> | ReturnType<typeof setQueryHistoryFilter>;
20
41
  export interface ExecuteQueryStateSlice {
21
42
  executeQuery: ExecuteQueryState;
22
43
  }
44
+ export {};
@@ -1,2 +1,6 @@
1
- export {};
1
+ export var ResultType;
2
+ (function (ResultType) {
3
+ ResultType["EXECUTE"] = "execute";
4
+ ResultType["EXPLAIN"] = "explain";
5
+ })(ResultType || (ResultType = {}));
2
6
  //# sourceMappingURL=executeQuery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"executeQuery.js","sourceRoot":"","sources":["../../../src/types/store/executeQuery.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"executeQuery.js","sourceRoot":"","sources":["../../../src/types/store/executeQuery.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACvB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
@@ -1,4 +1,7 @@
1
+ import type { EFlag } from '../../types/api/enums';
1
2
  import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
2
3
  export declare function isFullVDiskData(disk: TVDiskStateInfo | TVSlotId): disk is TVDiskStateInfo;
3
- export declare function getSeverityColor(severity: number | undefined): import("../../types/api/enums").EFlag;
4
+ export declare function getSeverityColor(severity: number | undefined): EFlag;
5
+ export declare function getColorSeverity(color?: EFlag): number;
4
6
  export declare function getPDiskId(nodeId?: string | number | null, pDiskId?: string | number | null): string | undefined;
7
+ export declare function getVDiskSlotBasedId(nodeId: string | number, pDiskId: string | number, vDiskSlotId: string | number): string;
@@ -1,5 +1,5 @@
1
1
  import { valueIsDefined } from '..';
2
- import { DISK_NUMERIC_SEVERITY_TO_STATE_COLOR, NOT_AVAILABLE_SEVERITY_COLOR } from './constants';
2
+ import { DISK_COLOR_STATE_TO_NUMERIC_SEVERITY, DISK_NUMERIC_SEVERITY_TO_STATE_COLOR, NOT_AVAILABLE_SEVERITY_COLOR, } from './constants';
3
3
  export function isFullVDiskData(disk) {
4
4
  return 'VDiskId' in disk;
5
5
  }
@@ -9,10 +9,16 @@ export function getSeverityColor(severity) {
9
9
  }
10
10
  return DISK_NUMERIC_SEVERITY_TO_STATE_COLOR[severity] || NOT_AVAILABLE_SEVERITY_COLOR;
11
11
  }
12
+ export function getColorSeverity(color) {
13
+ return color ? DISK_COLOR_STATE_TO_NUMERIC_SEVERITY[color] : 0;
14
+ }
12
15
  export function getPDiskId(nodeId, pDiskId) {
13
16
  if (valueIsDefined(nodeId) && valueIsDefined(pDiskId)) {
14
17
  return `${nodeId}-${pDiskId}`;
15
18
  }
16
19
  return undefined;
17
20
  }
21
+ export function getVDiskSlotBasedId(nodeId, pDiskId, vDiskSlotId) {
22
+ return [nodeId, pDiskId, vDiskSlotId].join('-');
23
+ }
18
24
  //# sourceMappingURL=helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/utils/disks/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,IAAI,CAAC;AAGlC,OAAO,EAAC,oCAAoC,EAAE,4BAA4B,EAAC,MAAM,aAAa,CAAC;AAE/F,MAAM,UAAU,eAAe,CAAC,IAAgC;IAC5D,OAAO,SAAS,IAAI,IAAI,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,QAA4B;IACzD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,4BAA4B,CAAC;IACxC,CAAC;IAED,OAAO,oCAAoC,CAAC,QAAQ,CAAC,IAAI,4BAA4B,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAA+B,EAAE,OAAgC;IACxF,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;QACpD,OAAO,GAAG,MAAM,IAAI,OAAO,EAAE,CAAC;IAClC,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/utils/disks/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,IAAI,CAAC;AAIlC,OAAO,EACH,oCAAoC,EACpC,oCAAoC,EACpC,4BAA4B,GAC/B,MAAM,aAAa,CAAC;AAErB,MAAM,UAAU,eAAe,CAAC,IAAgC;IAC5D,OAAO,SAAS,IAAI,IAAI,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,QAA4B;IACzD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,4BAA4B,CAAC;IACxC,CAAC;IAED,OAAO,oCAAoC,CAAC,QAAQ,CAAC,IAAI,4BAA4B,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC1C,OAAO,KAAK,CAAC,CAAC,CAAC,oCAAoC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAA+B,EAAE,OAAgC;IACxF,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;QACpD,OAAO,GAAG,MAAM,IAAI,OAAO,EAAE,CAAC;IAClC,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAC/B,MAAuB,EACvB,OAAwB,EACxB,WAA4B;IAE5B,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpD,CAAC"}
@@ -41,7 +41,8 @@ const suggestionEntityToAutocomplete = {
41
41
  view: ['view'],
42
42
  tableIndex: ['table_index', 'index'],
43
43
  };
44
- const commonSuggestionEntities = ['dir', 'unknown'];
44
+ const commonSuggestionEntities = ['dir', 'unknown', 'ext_sub_domain'];
45
+ const directoryTypes = ['dir', 'ext_sub_domain'];
45
46
  function filterAutocompleteEntities(autocompleteEntities, suggestions) {
46
47
  const suggestionsSet = suggestions.reduce((acc, el) => {
47
48
  const autocompleteEntity = suggestionEntityToAutocomplete[el];
@@ -77,7 +78,11 @@ function removeStartSlash(value) {
77
78
  return value;
78
79
  }
79
80
  function normalizeEntityPrefix(value = '', database) {
80
- let cleanedValue = removeStartSlash(removeBackticks(value));
81
+ const valueWithoutBackticks = removeBackticks(value);
82
+ if (!valueWithoutBackticks.startsWith('/')) {
83
+ return valueWithoutBackticks;
84
+ }
85
+ let cleanedValue = removeStartSlash(valueWithoutBackticks);
81
86
  const cleanedDatabase = removeStartSlash(database);
82
87
  if (cleanedValue.startsWith(cleanedDatabase)) {
83
88
  cleanedValue = cleanedValue.slice(cleanedDatabase.length);
@@ -232,7 +237,7 @@ export async function generateEntitiesSuggestion(rangeToInsertSuggestion, sugges
232
237
  if (data.Success) {
233
238
  const filteredEntities = filterAutocompleteEntities(data.Result.Entities, suggestEntities);
234
239
  return filteredEntities.reduce((acc, { Name, Type }) => {
235
- const isDir = Type === 'dir';
240
+ const isDir = directoryTypes.includes(Type);
236
241
  const label = isDir ? `${Name}/` : Name;
237
242
  let labelAsSnippet;
238
243
  if (isDir && !withBackticks) {
@@ -1 +1 @@
1
- {"version":3,"file":"generateSuggestions.js","sourceRoot":"","sources":["../../../../src/utils/monaco/yql/generateSuggestions.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,wCAAwC,CAAC;AAIjE,OAAO,EACH,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,eAAe,EACf,WAAW,EACX,aAAa,EACb,IAAI,EACJ,eAAe,GAClB,MAAM,aAAa,CAAC;AAErB,MAAM,kBAAkB,GAEpB;IACA,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,CAAC;IACX,WAAW,EAAE,CAAC;IACd,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,EAAE;IACd,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,EAAE;IACf,MAAM,E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AAQ,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;KAC1E,CAAC,CAAC,CAAC;AACR,CAAC;AACD,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAClD,uBAAsC,EACtC,UAAqB;IAErB,MAAM,cAAc,GAAG,MAAM,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC3D,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/B,KAAK,EAAE,EAAE;QACT,UAAU,EAAE,EAAE;QACd,IAAI,EAAE,kBAAkB,CAAC,QAAQ;QACjC,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,uBAAuB;QAC9B,QAAQ,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;KACjF,CAAC,CAAC,CAAC;AACR,CAAC;AAED,MAAM,QAAQ,GAAG,4BAA4B,CAAC;AAE9C,SAAS,uBAAuB,CAAC,KAAa;IAC1C,MAAM,uBAAuB,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChD,IAAI,uBAAuB,EAAE,CAAC;QAC1B,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3D,MAAM,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IAExC,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzC,OAAO,aAAa,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;AACpE,CAAC"}
@@ -1,27 +1,8 @@
1
- import type { ValueOf } from '../types/common';
1
+ import type { StorageV2SortValue } from '../types/api/storage';
2
2
  interface EntityWithUsage {
3
3
  Used: number;
4
4
  Limit: number;
5
5
  }
6
6
  export declare const getUsage: <T extends EntityWithUsage>(data: T, step?: number) => number;
7
- /**
8
- * Values to sort /storage v2 response
9
- *
10
- * Source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_storage.h
11
- */
12
- export declare const STORAGE_SORT_VALUES: {
13
- readonly PoolName: "PoolName";
14
- readonly Kind: "Kind";
15
- readonly MediaType: "MediaType";
16
- readonly Erasure: "Erasure";
17
- readonly Degraded: "Degraded";
18
- readonly Usage: "Usage";
19
- readonly GroupId: "GroupId";
20
- readonly Used: "Used";
21
- readonly Limit: "Limit";
22
- readonly Read: "Read";
23
- readonly Write: "Write";
24
- };
25
- export type StorageSortValue = ValueOf<typeof STORAGE_SORT_VALUES>;
26
- export declare const isSortableStorageProperty: (value: string) => value is StorageSortValue;
7
+ export declare const isSortableStorageProperty: (value: string) => value is StorageV2SortValue;
27
8
  export {};
@@ -3,23 +3,18 @@ export const getUsage = (data, step = 1) => {
3
3
  const usage = data.Limit ? (data.Used * 100) / data.Limit : 0;
4
4
  return Math.floor(usage / step) * step;
5
5
  };
6
- /**
7
- * Values to sort /storage v2 response
8
- *
9
- * Source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_storage.h
10
- */
11
- export const STORAGE_SORT_VALUES = {
12
- PoolName: 'PoolName',
13
- Kind: 'Kind',
14
- MediaType: 'MediaType',
15
- Erasure: 'Erasure',
16
- Degraded: 'Degraded',
17
- Usage: 'Usage',
18
- GroupId: 'GroupId',
19
- Used: 'Used',
20
- Limit: 'Limit',
21
- Read: 'Read',
22
- Write: 'Write',
23
- };
24
- export const isSortableStorageProperty = (value) => Object.values(STORAGE_SORT_VALUES).includes(value);
6
+ const STORAGE_SORT_VALUES = [
7
+ 'PoolName',
8
+ 'Kind',
9
+ 'MediaType',
10
+ 'Erasure',
11
+ 'Degraded',
12
+ 'Usage',
13
+ 'GroupId',
14
+ 'Used',
15
+ 'Limit',
16
+ 'Read',
17
+ 'Write',
18
+ ];
19
+ export const isSortableStorageProperty = (value) => STORAGE_SORT_VALUES.includes(value);
25
20
  //# sourceMappingURL=storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACR,CAAC;AAIX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAA6B,EAAE,CAClF,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,QAAQ,CAAC,KAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAyB;IAC9C,UAAU;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,UAAU;IACV,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAA+B,EAAE,CACpF,mBAAmB,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.18.0",
3
+ "version": "6.19.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -38,20 +38,16 @@
38
38
  "path-to-regexp": "^3.0.0",
39
39
  "qs": "^6.12.0",
40
40
  "react-error-boundary": "^4.0.13",
41
- "react-freeze": "^1.0.4",
42
41
  "react-helmet-async": "^2.0.5",
43
42
  "react-hook-form": "^7.52.1",
44
43
  "react-json-inspector": "^7.1.1",
45
- "react-list": "^0.8.17",
46
44
  "react-monaco-editor": "^0.55.0",
47
45
  "react-redux": "^9.1.2",
48
- "react-router": "^5.3.4",
49
46
  "react-router-dom": "^5.3.4",
50
47
  "react-split": "^2.0.14",
51
48
  "redux": "^5.0.1",
52
49
  "redux-location-state": "^2.8.2",
53
50
  "tslib": "^2.6.3",
54
- "url": "^0.11.3",
55
51
  "use-query-params": "^2.2.1",
56
52
  "uuid": "^10.0.0",
57
53
  "web-vitals": "^1.1.2",
@@ -144,7 +140,6 @@
144
140
  "@types/qs": "^6.9.15",
145
141
  "@types/react": "^18.3.3",
146
142
  "@types/react-dom": "^18.3.0",
147
- "@types/react-router": "^5.1.20",
148
143
  "@types/react-router-dom": "^5.3.3",
149
144
  "@types/uuid": "^10.0.0",
150
145
  "copyfiles": "^2.4.1",
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './NotRenderUntilFirstVisible.scss';
3
- interface Props {
4
- show?: boolean;
5
- className?: string;
6
- children: React.ReactNode;
7
- }
8
- export default function NotRenderUntilFirstVisible({ show, className, children }: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Freeze } from 'react-freeze';
3
- import { cn } from '../../utils/cn';
4
- import './NotRenderUntilFirstVisible.scss';
5
- const block = cn('ydb-not-render-until-first-visible');
6
- export default function NotRenderUntilFirstVisible({ show, className, children }) {
7
- return (_jsx("div", { style: show ? undefined : { display: 'none' }, className: block(null, className), children: _jsx(Freeze, { freeze: !show, children: children }) }));
8
- }
9
- //# sourceMappingURL=NotRenderUntilFirstVisible.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotRenderUntilFirstVisible.js","sourceRoot":"","sources":["../../../src/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,mCAAmC,CAAC;AAE3C,MAAM,KAAK,GAAG,EAAE,CAAC,oCAAoC,CAAC,CAAC;AAQvD,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAQ;IACjF,OAAO,CACH,cAAK,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAC,OAAO,EAAE,MAAM,EAAC,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,YAC/E,KAAC,MAAM,IAAC,MAAM,EAAE,CAAC,IAAI,YAAG,QAAQ,GAAU,GACxC,CACT,CAAC;AACN,CAAC"}
@@ -1,3 +0,0 @@
1
- .ydb-not-render-until-first-visible {
2
- display: contents;
3
- }
@@ -1,4 +0,0 @@
1
- import type { StorageApiRequestParams } from '../../storage/types';
2
- export declare const topStorageGroupsApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, {
3
- getTopStorageGroups: import("@reduxjs/toolkit/query").QueryDefinition<StorageApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../storage/types").PreparedStorageGroup[] | undefined, "api">;
4
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,29 +0,0 @@
1
- import { EVersion } from '../../../../types/api/storage';
2
- import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../utils/constants';
3
- import { api } from '../../api';
4
- import { prepareTopStorageGroupsResponse } from './utils';
5
- export const topStorageGroupsApi = api.injectEndpoints({
6
- endpoints: (builder) => ({
7
- getTopStorageGroups: builder.query({
8
- queryFn: async (params, { signal }) => {
9
- try {
10
- const data = await window.api.getStorageInfo({
11
- visibleEntities: 'all',
12
- sortOrder: -1,
13
- sortValue: 'Usage',
14
- limit: TENANT_OVERVIEW_TABLES_LIMIT,
15
- version: EVersion.v2,
16
- ...params,
17
- }, { signal });
18
- return { data: prepareTopStorageGroupsResponse(data).groups || [] };
19
- }
20
- catch (error) {
21
- return { error };
22
- }
23
- },
24
- providesTags: ['All'],
25
- }),
26
- }),
27
- overrideExisting: 'throw',
28
- });
29
- //# sourceMappingURL=topStorageGroups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topStorageGroups.js","sourceRoot":"","sources":["../../../../../src/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAC,4BAA4B,EAAC,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAC;AAG9B,OAAO,EAAC,+BAA+B,EAAC,MAAM,SAAS,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC,eAAe,CAAC;IACnD,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrB,mBAAmB,EAAE,OAAO,CAAC,KAAK,CAAC;YAC/B,OAAO,EAAE,KAAK,EAAE,MAA+B,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACzD,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CACxC;wBACI,eAAe,EAAE,KAAK;wBACtB,SAAS,EAAE,CAAC,CAAC;wBACb,SAAS,EAAE,OAAO;wBAClB,KAAK,EAAE,4BAA4B;wBACnC,OAAO,EAAE,QAAQ,CAAC,EAAE;wBACpB,GAAG,MAAM;qBACZ,EACD,EAAC,MAAM,EAAC,CACX,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,EAAE,EAAC,CAAC;gBACtE,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { PreparedStorageGroup } from '../../storage/types';
2
- export interface PreparedTopStorageGroupsResponse {
3
- groups?: PreparedStorageGroup[];
4
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/store/reducers/tenantOverview/topStorageGroups/types.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { TStorageInfo } from '../../../../types/api/storage';
2
- import type { PreparedTopStorageGroupsResponse } from './types';
3
- export declare const prepareTopStorageGroupsResponse: (data: TStorageInfo) => PreparedTopStorageGroupsResponse;
@@ -1,13 +0,0 @@
1
- import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../utils/constants';
2
- import { prepareStorageGroups } from '../../storage/utils';
3
- export const prepareTopStorageGroupsResponse = (data) => {
4
- const { StoragePools, StorageGroups } = data;
5
- const preparedGroups = prepareStorageGroups(StorageGroups, StoragePools);
6
- if (StoragePools) {
7
- preparedGroups.sort((a, b) => b.Usage - a.Usage);
8
- }
9
- return {
10
- groups: preparedGroups.slice(0, TENANT_OVERVIEW_TABLES_LIMIT),
11
- };
12
- };
13
- //# sourceMappingURL=utils.js.map