ydb-embedded-ui 6.6.1 → 6.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/package.json +2 -1
  2. package/dist/src/containers/App/App.d.ts +1 -1
  3. package/dist/src/containers/App/Content.js +1 -1
  4. package/dist/src/containers/App/appSlots.d.ts +1 -1
  5. package/dist/src/containers/AsideNavigation/Navigation.js +1 -3
  6. package/dist/src/containers/AsideNavigation/i18n/en.json +0 -2
  7. package/dist/src/containers/AsideNavigation/i18n/index.d.ts +1 -1
  8. package/dist/src/containers/AsideNavigation/i18n/index.js +1 -2
  9. package/dist/src/containers/Cluster/i18n/index.d.ts +1 -1
  10. package/dist/src/containers/Clusters/constants.d.ts +1 -1
  11. package/dist/src/containers/Header/Header.js +17 -21
  12. package/dist/src/containers/Header/Header.scss +14 -5
  13. package/dist/src/containers/Header/breadcrumbs.js +65 -71
  14. package/dist/src/containers/Heatmap/Heatmap.js +3 -3
  15. package/dist/src/containers/Nodes/Nodes.js +4 -4
  16. package/dist/src/containers/Nodes/VirtualNodes.js +2 -2
  17. package/dist/src/containers/Storage/Storage.js +2 -2
  18. package/dist/src/containers/Tablets/Tablets.js +8 -8
  19. package/dist/src/containers/TabletsFilters/TabletsFilters.d.ts +2 -57
  20. package/dist/src/containers/TabletsFilters/TabletsFilters.js +70 -180
  21. package/dist/src/containers/Tenant/Acl/Acl.d.ts +3 -1
  22. package/dist/src/containers/Tenant/Acl/Acl.js +7 -17
  23. package/dist/src/containers/Tenant/Diagnostics/Autorefresh/AutorefreshControl.js +4 -5
  24. package/dist/src/containers/Tenant/Diagnostics/Consumers/Consumers.js +3 -3
  25. package/dist/src/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -2
  26. package/dist/src/containers/Tenant/Diagnostics/Describe/Describe.js +5 -6
  27. package/dist/src/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.d.ts +1 -0
  28. package/dist/src/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +3 -5
  29. package/dist/src/containers/Tenant/Diagnostics/Diagnostics.d.ts +2 -0
  30. package/dist/src/containers/Tenant/Diagnostics/Diagnostics.js +26 -50
  31. package/dist/src/containers/Tenant/Diagnostics/Diagnostics.scss +1 -1
  32. package/dist/src/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +19 -58
  33. package/dist/src/containers/Tenant/Diagnostics/Network/Network.d.ts +2 -2
  34. package/dist/src/containers/Tenant/Diagnostics/Network/Network.js +5 -5
  35. package/dist/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js +1 -6
  36. package/dist/src/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/ChangefeedInfo.d.ts +2 -1
  37. package/dist/src/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/ChangefeedInfo.js +3 -8
  38. package/dist/src/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -2
  39. package/dist/src/containers/Tenant/Diagnostics/Overview/Overview.js +19 -21
  40. package/dist/src/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.scss +0 -2
  41. package/dist/src/containers/Tenant/Diagnostics/Overview/TopicInfo/TopicInfo.d.ts +2 -1
  42. package/dist/src/containers/Tenant/Diagnostics/Overview/TopicInfo/TopicInfo.js +3 -8
  43. package/dist/src/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.d.ts +3 -1
  44. package/dist/src/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.js +5 -5
  45. package/dist/src/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -12
  46. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +48 -57
  47. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.d.ts +2 -5
  48. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.js +7 -2
  49. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.d.ts +1 -6
  50. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +22 -16
  51. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.d.ts +2 -8
  52. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.js +2 -2
  53. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.d.ts +2 -2
  54. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.js +2 -2
  55. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +2 -2
  56. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +4 -4
  57. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.d.ts +2 -2
  58. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +4 -4
  59. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.d.ts +2 -2
  60. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +4 -4
  61. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.d.ts +2 -1
  62. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +5 -5
  63. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.js +3 -3
  64. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.d.ts +2 -2
  65. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +2 -2
  66. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.d.ts +2 -2
  67. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +4 -4
  68. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +7 -9
  69. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +3 -3
  70. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +3 -3
  71. package/dist/src/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.js +1 -1
  72. package/dist/src/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +2 -2
  73. package/dist/src/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +5 -5
  74. package/dist/src/containers/Tenant/Diagnostics/TopShards/TopShards.d.ts +3 -2
  75. package/dist/src/containers/Tenant/Diagnostics/TopShards/TopShards.js +8 -8
  76. package/dist/src/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.js +0 -6
  77. package/dist/src/containers/Tenant/Info/ExternalTable/ExternalTable.js +0 -6
  78. package/dist/src/containers/Tenant/Info/View/View.js +0 -6
  79. package/dist/src/containers/Tenant/ObjectGeneral/ObjectGeneral.d.ts +2 -1
  80. package/dist/src/containers/Tenant/ObjectGeneral/ObjectGeneral.js +7 -13
  81. package/dist/src/containers/Tenant/ObjectSummary/ObjectSummary.d.ts +4 -4
  82. package/dist/src/containers/Tenant/ObjectSummary/ObjectSummary.js +159 -63
  83. package/dist/src/containers/Tenant/Query/Issues/Issues.js +6 -5
  84. package/dist/src/containers/Tenant/Query/Preview/Preview.d.ts +2 -1
  85. package/dist/src/containers/Tenant/Query/Preview/Preview.js +6 -6
  86. package/dist/src/containers/Tenant/Query/Query.d.ts +1 -0
  87. package/dist/src/containers/Tenant/Query/Query.scss +1 -1
  88. package/dist/src/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -0
  89. package/dist/src/containers/Tenant/Query/QueryEditor/QueryEditor.js +9 -22
  90. package/dist/src/containers/Tenant/Query/i18n/en.json +1 -1
  91. package/dist/src/containers/Tenant/Schema/SchemaTree/SchemaTree.d.ts +1 -0
  92. package/dist/src/containers/Tenant/Schema/SchemaTree/SchemaTree.js +11 -19
  93. package/dist/src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.d.ts +2 -2
  94. package/dist/src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +13 -8
  95. package/dist/src/containers/Tenant/Schema/SchemaViewer/columns.d.ts +2 -1
  96. package/dist/src/containers/Tenant/Schema/SchemaViewer/columns.js +21 -2
  97. package/dist/src/containers/Tenant/Schema/SchemaViewer/i18n/en.json +1 -0
  98. package/dist/src/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
  99. package/dist/src/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -1
  100. package/dist/src/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -0
  101. package/dist/src/containers/Tenant/Tenant.js +20 -36
  102. package/dist/src/containers/Tenant/Tenant.scss +4 -0
  103. package/dist/src/containers/Tenant/TenantNavigation/TenantNavigation.d.ts +2 -0
  104. package/dist/src/containers/Tenant/TenantNavigation/TenantNavigation.js +19 -0
  105. package/dist/src/containers/Tenant/TenantNavigation/TenantNavigation.scss +18 -0
  106. package/dist/src/containers/Tenant/TenantNavigation/useTenantNavigation.d.ts +9 -0
  107. package/dist/src/containers/Tenant/TenantNavigation/useTenantNavigation.js +44 -0
  108. package/dist/src/containers/Tenant/i18n/en.json +17 -0
  109. package/dist/src/containers/Tenant/i18n/index.d.ts +1 -1
  110. package/dist/src/containers/Tenant/utils/queryTemplates.d.ts +1 -0
  111. package/dist/src/containers/Tenant/utils/queryTemplates.js +12 -0
  112. package/dist/src/containers/Tenant/utils/schemaActions.js +3 -1
  113. package/dist/src/lib.d.ts +1 -1
  114. package/dist/src/lib.js +1 -1
  115. package/dist/src/routes.d.ts +1 -1
  116. package/dist/src/routes.js +3 -1
  117. package/dist/src/services/api.d.ts +6 -1
  118. package/dist/src/services/api.js +23 -3
  119. package/dist/src/services/settings.d.ts +1 -0
  120. package/dist/src/services/settings.js +3 -2
  121. package/dist/src/store/configureStore.d.ts +36 -134
  122. package/dist/src/store/configureStore.js +2 -15
  123. package/dist/src/store/defaultStore.d.ts +17 -81
  124. package/dist/src/store/reducers/api.js +0 -1
  125. package/dist/src/store/reducers/authentication/authentication.d.ts +51 -243
  126. package/dist/src/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +196 -849
  127. package/dist/src/store/reducers/healthcheckInfo/healthcheckInfo.js +3 -3
  128. package/dist/src/store/reducers/hotKeys/hotKeys.d.ts +6 -25
  129. package/dist/src/store/reducers/hotKeys/hotKeys.js +36 -49
  130. package/dist/src/store/reducers/index.d.ts +23 -100
  131. package/dist/src/store/reducers/index.js +0 -8
  132. package/dist/src/store/reducers/node/selectors.d.ts +0 -40
  133. package/dist/src/store/reducers/nodesList.d.ts +0 -40
  134. package/dist/src/store/reducers/schema/schema.d.ts +13 -149
  135. package/dist/src/store/reducers/schema/schema.js +45 -90
  136. package/dist/src/store/reducers/schema/types.d.ts +2 -21
  137. package/dist/src/store/reducers/schemaAcl/schemaAcl.d.ts +8 -135
  138. package/dist/src/store/reducers/schemaAcl/schemaAcl.js +18 -44
  139. package/dist/src/store/reducers/settings/settings.d.ts +17 -23
  140. package/dist/src/store/reducers/settings/settings.js +40 -33
  141. package/dist/src/store/reducers/settings/types.d.ts +1 -12
  142. package/dist/src/store/reducers/tablets.d.ts +288 -41
  143. package/dist/src/store/reducers/tablets.js +8 -4
  144. package/dist/src/store/reducers/tabletsFilters.d.ts +11 -164
  145. package/dist/src/store/reducers/tabletsFilters.js +14 -76
  146. package/dist/src/store/reducers/tenants/selectors.d.ts +8 -362
  147. package/dist/src/store/reducers/topic.d.ts +0 -600
  148. package/dist/src/store/state-url-mapping.js +0 -3
  149. package/dist/src/utils/constants.d.ts +1 -1
  150. package/dist/src/utils/constants.js +1 -1
  151. package/dist/src/utils/dataFormatters/dataFormatters.d.ts +2 -1
  152. package/dist/src/utils/dataFormatters/dataFormatters.js +7 -3
  153. package/dist/src/utils/hooks/index.d.ts +1 -0
  154. package/dist/src/utils/hooks/index.js +1 -0
  155. package/dist/src/utils/hooks/useAutoRefreshInterval.d.ts +1 -0
  156. package/dist/src/utils/hooks/useAutoRefreshInterval.js +5 -0
  157. package/dist/src/utils/utils.js +2 -1
  158. package/package.json +2 -1
  159. package/dist/src/components/InfoViewer/schemaOverview/CDCStreamOverview.d.ts +0 -6
  160. package/dist/src/components/InfoViewer/schemaOverview/CDCStreamOverview.js +0 -17
  161. package/dist/src/components/InfoViewer/schemaOverview/PersQueueGroupOverview.d.ts +0 -6
  162. package/dist/src/components/InfoViewer/schemaOverview/PersQueueGroupOverview.js +0 -20
  163. package/dist/src/components/InfoViewer/schemaOverview/index.d.ts +0 -2
  164. package/dist/src/components/InfoViewer/schemaOverview/index.js +0 -2
  165. package/dist/src/containers/AsideNavigation/i18n/ru.json +0 -10
  166. package/dist/src/containers/AsideNavigation/useNavigationMenuItems.d.ts +0 -2
  167. package/dist/src/containers/AsideNavigation/useNavigationMenuItems.js +0 -54
  168. package/dist/src/store/reducers/host.d.ts +0 -130
  169. package/dist/src/store/reducers/host.js +0 -26
  170. package/dist/src/store/reducers/hotKeys/types.d.ts +0 -10
  171. package/dist/src/store/reducers/hotKeys/types.js +0 -1
  172. package/dist/src/store/reducers/schemaAcl/types.d.ts +0 -12
  173. package/dist/src/store/reducers/schemaAcl/types.js +0 -1
  174. package/dist/src/types/store/host.d.ts +0 -15
  175. package/dist/src/types/store/host.js +0 -1
@@ -7,7 +7,7 @@ export default _default;
7
7
  export declare const tabletsApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
8
8
  getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
9
9
  }, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
10
- export declare const selectTabletsWithFqdn: ((state: {
10
+ export declare const selectGetTabletsInfo: ((state: {
11
11
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
12
12
  singleClusterMode: boolean;
13
13
  cluster: import("./cluster/types").ClusterState;
@@ -15,59 +15,306 @@ export declare const selectTabletsWithFqdn: ((state: {
15
15
  tooltip: import("../../types/store/tooltip").ITooltipState;
16
16
  tablets: TabletsState;
17
17
  schema: import("./schema/types").SchemaState;
18
- host: import("../../types/store/host").IHostState;
19
18
  tenants: import("./tenants/types").TenantsState;
20
19
  partitions: import("./partitions/types").PartitionsState;
21
20
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
22
- tabletsFilters: {
23
- loading: boolean;
24
- requestTime: number;
25
- data: undefined;
26
- wasLoaded: boolean;
27
- stateFilter: never[];
28
- typeFilter: never[];
29
- } | {
30
- tabletsData: any;
31
- nodes: any;
32
- loading: boolean;
33
- wasLoaded: boolean;
34
- timeoutForRequest: number;
21
+ heatmap: import("../../types/store/heatmap").IHeatmapState;
22
+ settings: import("./settings/types").SettingsState;
23
+ executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
24
+ shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
25
+ authentication: import("./authentication/types").AuthenticationState;
26
+ header: import("./header/types").HeaderState;
27
+ saveQuery: string | null;
28
+ fullscreen: boolean;
29
+ clusters: import("./clusters/types").ClustersFilters;
30
+ }, params: TabletsApiRequestParams) => import("../../types/api/tablet").TEvTabletStateResponse | undefined) & {
31
+ clearCache: () => void;
32
+ resultsCount: () => number;
33
+ resetResultsCount: () => void;
34
+ } & {
35
+ resultFunc: (resultFuncArgs_0: {
36
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
37
+ singleClusterMode: boolean;
38
+ cluster: import("./cluster/types").ClusterState;
39
+ tenant: import("./tenant/types").TenantState;
40
+ tooltip: import("../../types/store/tooltip").ITooltipState;
41
+ tablets: TabletsState;
42
+ schema: import("./schema/types").SchemaState;
43
+ tenants: import("./tenants/types").TenantsState;
44
+ partitions: import("./partitions/types").PartitionsState;
45
+ executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
46
+ heatmap: import("../../types/store/heatmap").IHeatmapState;
47
+ settings: import("./settings/types").SettingsState;
48
+ executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
49
+ shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
50
+ authentication: import("./authentication/types").AuthenticationState;
51
+ header: import("./header/types").HeaderState;
52
+ saveQuery: string | null;
53
+ fullscreen: boolean;
54
+ clusters: import("./clusters/types").ClustersFilters;
55
+ }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
56
+ getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
57
+ }, "All", "api">) => ({
58
+ status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
59
+ originalArgs?: undefined;
60
+ data?: undefined;
61
+ error?: undefined;
62
+ requestId?: undefined;
63
+ endpointName?: string | undefined;
64
+ startedTimeStamp?: undefined;
65
+ fulfilledTimeStamp?: undefined;
66
+ } & {
67
+ status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
68
+ isUninitialized: true;
69
+ isLoading: false;
70
+ isSuccess: false;
71
+ isError: false;
72
+ }) | ({
73
+ status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
74
+ error: undefined;
75
+ originalArgs: TabletsApiRequestParams;
76
+ requestId: string;
77
+ endpointName: string;
78
+ startedTimeStamp: number;
79
+ data: import("../../types/api/tablet").TEvTabletStateResponse;
80
+ fulfilledTimeStamp: number;
81
+ } & {
82
+ status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
83
+ isUninitialized: false;
84
+ isLoading: false;
85
+ isSuccess: true;
86
+ isError: false;
87
+ }) | ({
88
+ status: import("@reduxjs/toolkit/query").QueryStatus.pending;
89
+ originalArgs: TabletsApiRequestParams;
90
+ requestId: string;
91
+ data?: import("../../types/api/tablet").TEvTabletStateResponse | undefined;
92
+ error?: unknown;
93
+ endpointName: string;
94
+ startedTimeStamp: number;
95
+ fulfilledTimeStamp?: number | undefined;
96
+ } & {
97
+ status: import("@reduxjs/toolkit/query").QueryStatus.pending;
98
+ isUninitialized: false;
99
+ isLoading: true;
100
+ isSuccess: false;
101
+ isError: false;
102
+ }) | ({
103
+ status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
104
+ data?: import("../../types/api/tablet").TEvTabletStateResponse | undefined;
105
+ fulfilledTimeStamp?: number | undefined;
106
+ originalArgs: TabletsApiRequestParams;
107
+ requestId: string;
108
+ endpointName: string;
109
+ startedTimeStamp: number;
110
+ error: unknown;
111
+ } & {
112
+ status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
113
+ isUninitialized: false;
114
+ isLoading: false;
115
+ isSuccess: false;
116
+ isError: true;
117
+ })) => import("../../types/api/tablet").TEvTabletStateResponse | undefined;
118
+ memoizedResultFunc: ((resultFuncArgs_0: {
119
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
120
+ singleClusterMode: boolean;
121
+ cluster: import("./cluster/types").ClusterState;
122
+ tenant: import("./tenant/types").TenantState;
123
+ tooltip: import("../../types/store/tooltip").ITooltipState;
124
+ tablets: TabletsState;
125
+ schema: import("./schema/types").SchemaState;
126
+ tenants: import("./tenants/types").TenantsState;
127
+ partitions: import("./partitions/types").PartitionsState;
128
+ executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
129
+ heatmap: import("../../types/store/heatmap").IHeatmapState;
130
+ settings: import("./settings/types").SettingsState;
131
+ executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
132
+ shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
133
+ authentication: import("./authentication/types").AuthenticationState;
134
+ header: import("./header/types").HeaderState;
135
+ saveQuery: string | null;
136
+ fullscreen: boolean;
137
+ clusters: import("./clusters/types").ClustersFilters;
138
+ }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
139
+ getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
140
+ }, "All", "api">) => ({
141
+ status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
142
+ originalArgs?: undefined;
143
+ data?: undefined;
144
+ error?: undefined;
145
+ requestId?: undefined;
146
+ endpointName?: string | undefined;
147
+ startedTimeStamp?: undefined;
148
+ fulfilledTimeStamp?: undefined;
149
+ } & {
150
+ status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
151
+ isUninitialized: true;
152
+ isLoading: false;
153
+ isSuccess: false;
154
+ isError: false;
155
+ }) | ({
156
+ status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
35
157
  error: undefined;
36
- data: undefined;
37
- stateFilter: never[];
38
- typeFilter: never[];
39
- } | {
40
- error: any;
41
- loading: boolean;
42
- data: undefined;
43
- wasLoaded: boolean;
44
- stateFilter: never[];
45
- typeFilter: never[];
46
- } | {
47
- stateFilter: any;
48
- data: undefined;
49
- loading: boolean;
50
- wasLoaded: boolean;
51
- typeFilter: never[];
52
- } | {
53
- typeFilter: any;
54
- data: undefined;
55
- loading: boolean;
56
- wasLoaded: boolean;
57
- stateFilter: never[];
158
+ originalArgs: TabletsApiRequestParams;
159
+ requestId: string;
160
+ endpointName: string;
161
+ startedTimeStamp: number;
162
+ data: import("../../types/api/tablet").TEvTabletStateResponse;
163
+ fulfilledTimeStamp: number;
164
+ } & {
165
+ status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
166
+ isUninitialized: false;
167
+ isLoading: false;
168
+ isSuccess: true;
169
+ isError: false;
170
+ }) | ({
171
+ status: import("@reduxjs/toolkit/query").QueryStatus.pending;
172
+ originalArgs: TabletsApiRequestParams;
173
+ requestId: string;
174
+ data?: import("../../types/api/tablet").TEvTabletStateResponse | undefined;
175
+ error?: unknown;
176
+ endpointName: string;
177
+ startedTimeStamp: number;
178
+ fulfilledTimeStamp?: number | undefined;
179
+ } & {
180
+ status: import("@reduxjs/toolkit/query").QueryStatus.pending;
181
+ isUninitialized: false;
182
+ isLoading: true;
183
+ isSuccess: false;
184
+ isError: false;
185
+ }) | ({
186
+ status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
187
+ data?: import("../../types/api/tablet").TEvTabletStateResponse | undefined;
188
+ fulfilledTimeStamp?: number | undefined;
189
+ originalArgs: TabletsApiRequestParams;
190
+ requestId: string;
191
+ endpointName: string;
192
+ startedTimeStamp: number;
193
+ error: unknown;
194
+ } & {
195
+ status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
196
+ isUninitialized: false;
197
+ isLoading: false;
198
+ isSuccess: false;
199
+ isError: true;
200
+ })) => import("../../types/api/tablet").TEvTabletStateResponse | undefined) & {
201
+ clearCache: () => void;
202
+ resultsCount: () => number;
203
+ resetResultsCount: () => void;
58
204
  };
205
+ lastResult: () => import("../../types/api/tablet").TEvTabletStateResponse | undefined;
206
+ dependencies: [(state: RootState) => {
207
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
208
+ singleClusterMode: boolean;
209
+ cluster: import("./cluster/types").ClusterState;
210
+ tenant: import("./tenant/types").TenantState;
211
+ tooltip: import("../../types/store/tooltip").ITooltipState;
212
+ tablets: TabletsState;
213
+ schema: import("./schema/types").SchemaState;
214
+ tenants: import("./tenants/types").TenantsState;
215
+ partitions: import("./partitions/types").PartitionsState;
216
+ executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
217
+ heatmap: import("../../types/store/heatmap").IHeatmapState;
218
+ settings: import("./settings/types").SettingsState;
219
+ executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
220
+ shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
221
+ authentication: import("./authentication/types").AuthenticationState;
222
+ header: import("./header/types").HeaderState;
223
+ saveQuery: string | null;
224
+ fullscreen: boolean;
225
+ clusters: import("./clusters/types").ClustersFilters;
226
+ }, (_state: RootState, params: TabletsApiRequestParams) => (state: import("@reduxjs/toolkit/query").RootState<{
227
+ getTabletsInfo: import("@reduxjs/toolkit/query").QueryDefinition<TabletsApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/api/tablet").TEvTabletStateResponse | undefined, "api">;
228
+ }, "All", "api">) => ({
229
+ status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
230
+ originalArgs?: undefined;
231
+ data?: undefined;
232
+ error?: undefined;
233
+ requestId?: undefined;
234
+ endpointName?: string | undefined;
235
+ startedTimeStamp?: undefined;
236
+ fulfilledTimeStamp?: undefined;
237
+ } & {
238
+ status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
239
+ isUninitialized: true;
240
+ isLoading: false;
241
+ isSuccess: false;
242
+ isError: false;
243
+ }) | ({
244
+ status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
245
+ error: undefined;
246
+ originalArgs: TabletsApiRequestParams;
247
+ requestId: string;
248
+ endpointName: string;
249
+ startedTimeStamp: number;
250
+ data: import("../../types/api/tablet").TEvTabletStateResponse;
251
+ fulfilledTimeStamp: number;
252
+ } & {
253
+ status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
254
+ isUninitialized: false;
255
+ isLoading: false;
256
+ isSuccess: true;
257
+ isError: false;
258
+ }) | ({
259
+ status: import("@reduxjs/toolkit/query").QueryStatus.pending;
260
+ originalArgs: TabletsApiRequestParams;
261
+ requestId: string;
262
+ data?: import("../../types/api/tablet").TEvTabletStateResponse | undefined;
263
+ error?: unknown;
264
+ endpointName: string;
265
+ startedTimeStamp: number;
266
+ fulfilledTimeStamp?: number | undefined;
267
+ } & {
268
+ status: import("@reduxjs/toolkit/query").QueryStatus.pending;
269
+ isUninitialized: false;
270
+ isLoading: true;
271
+ isSuccess: false;
272
+ isError: false;
273
+ }) | ({
274
+ status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
275
+ data?: import("../../types/api/tablet").TEvTabletStateResponse | undefined;
276
+ fulfilledTimeStamp?: number | undefined;
277
+ originalArgs: TabletsApiRequestParams;
278
+ requestId: string;
279
+ endpointName: string;
280
+ startedTimeStamp: number;
281
+ error: unknown;
282
+ } & {
283
+ status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
284
+ isUninitialized: false;
285
+ isLoading: false;
286
+ isSuccess: false;
287
+ isError: true;
288
+ })];
289
+ recomputations: () => number;
290
+ resetRecomputations: () => void;
291
+ dependencyRecomputations: () => number;
292
+ resetDependencyRecomputations: () => void;
293
+ } & {
294
+ argsMemoize: typeof import("reselect").weakMapMemoize;
295
+ memoize: typeof import("reselect").weakMapMemoize;
296
+ };
297
+ export declare const selectTabletsWithFqdn: ((state: {
298
+ api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
299
+ singleClusterMode: boolean;
300
+ cluster: import("./cluster/types").ClusterState;
301
+ tenant: import("./tenant/types").TenantState;
302
+ tooltip: import("../../types/store/tooltip").ITooltipState;
303
+ tablets: TabletsState;
304
+ schema: import("./schema/types").SchemaState;
305
+ tenants: import("./tenants/types").TenantsState;
306
+ partitions: import("./partitions/types").PartitionsState;
307
+ executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
59
308
  heatmap: import("../../types/store/heatmap").IHeatmapState;
60
309
  settings: import("./settings/types").SettingsState;
61
- schemaAcl: import("./schemaAcl/types").SchemaAclState;
62
310
  executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
63
311
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
64
- hotKeys: import("./hotKeys/types").HotKeysState;
65
312
  authentication: import("./authentication/types").AuthenticationState;
66
313
  header: import("./header/types").HeaderState;
67
314
  saveQuery: string | null;
68
315
  fullscreen: boolean;
69
316
  clusters: import("./clusters/types").ClustersFilters;
70
- }, nodeId: string | undefined, path: string | undefined) => (TTabletStateInfo & {
317
+ }, params: TabletsApiRequestParams) => (TTabletStateInfo & {
71
318
  fqdn?: string | undefined;
72
319
  })[]) & {
73
320
  clearCache: () => void;
@@ -87,7 +334,7 @@ export declare const selectTabletsWithFqdn: ((state: {
87
334
  lastResult: () => (TTabletStateInfo & {
88
335
  fqdn?: string | undefined;
89
336
  })[];
90
- dependencies: [(state: RootState, nodeId: string | undefined, path: string | undefined) => import("../../types/api/tablet").TEvTabletStateResponse | undefined, (state: RootState) => import("../../types/store/nodesList").NodesMap | undefined];
337
+ dependencies: [(state: RootState, params: TabletsApiRequestParams) => import("../../types/api/tablet").TEvTabletStateResponse | undefined, (state: RootState) => import("../../types/store/nodesList").NodesMap | undefined];
91
338
  recomputations: () => number;
92
339
  resetRecomputations: () => void;
93
340
  dependencyRecomputations: () => number;
@@ -1,4 +1,5 @@
1
- import { createSelector, createSlice } from '@reduxjs/toolkit';
1
+ import { createSelector, createSlice, lruMemoize } from '@reduxjs/toolkit';
2
+ import isEqual from 'lodash/isEqual';
2
3
  import { api } from './api';
3
4
  import { selectNodesMap } from './nodesList';
4
5
  const initialState = {
@@ -36,9 +37,12 @@ export const tabletsApi = api.injectEndpoints({
36
37
  }),
37
38
  overrideExisting: 'throw',
38
39
  });
39
- const getTabletsInfoSelector = createSelector((nodeId, path) => ({ nodeId, path }), ({ nodeId, path }) => tabletsApi.endpoints.getTabletsInfo.select(nodeId === undefined ? { path } : { nodes: [nodeId] }));
40
- const selectGetTabletsInfo = createSelector((state) => state, (_state, nodeId, path) => getTabletsInfoSelector(nodeId, path), (state, selectTabletsInfo) => selectTabletsInfo(state).data);
41
- export const selectTabletsWithFqdn = createSelector((state, nodeId, path) => selectGetTabletsInfo(state, nodeId, path), (state) => selectNodesMap(state), (data, nodesMap) => {
40
+ const getTabletsInfoSelector = createSelector((params) => params, (params) => tabletsApi.endpoints.getTabletsInfo.select(params), {
41
+ argsMemoize: lruMemoize,
42
+ argsMemoizeOptions: { equalityCheck: isEqual },
43
+ });
44
+ export const selectGetTabletsInfo = createSelector((state) => state, (_state, params) => getTabletsInfoSelector(params), (state, selectTabletsInfo) => selectTabletsInfo(state).data);
45
+ export const selectTabletsWithFqdn = createSelector((state, params) => selectGetTabletsInfo(state, params), (state) => selectNodesMap(state), (data, nodesMap) => {
42
46
  if (!(data === null || data === void 0 ? void 0 : data.TabletStateInfo)) {
43
47
  return [];
44
48
  }
@@ -1,4 +1,8 @@
1
- export function getTabletsInfo(data: any): (dispatch: import("redux-thunk").ThunkDispatch<{
1
+ import { lruMemoize } from '@reduxjs/toolkit';
2
+ import type { TTabletStateInfo } from '../../types/api/tablet';
3
+ import type { TabletsApiRequestParams } from '../../types/store/tablets';
4
+ import type { RootState } from '../defaultStore';
5
+ export declare const getFilteredTablets: ((state: {
2
6
  api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
3
7
  singleClusterMode: boolean;
4
8
  cluster: import("./cluster/types").ClusterState;
@@ -6,193 +10,36 @@ export function getTabletsInfo(data: any): (dispatch: import("redux-thunk").Thun
6
10
  tooltip: import("../../types/store/tooltip").ITooltipState;
7
11
  tablets: import("../../types/store/tablets").TabletsState;
8
12
  schema: import("./schema/types").SchemaState;
9
- host: import("../../types/store/host").IHostState;
10
13
  tenants: import("./tenants/types").TenantsState;
11
14
  partitions: import("./partitions/types").PartitionsState;
12
15
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
13
- tabletsFilters: {
14
- loading: boolean;
15
- requestTime: number;
16
- data: undefined;
17
- wasLoaded: boolean;
18
- stateFilter: never[];
19
- typeFilter: never[];
20
- } | {
21
- tabletsData: any;
22
- nodes: any;
23
- loading: boolean;
24
- wasLoaded: boolean;
25
- timeoutForRequest: number;
26
- error: undefined;
27
- data: undefined;
28
- stateFilter: never[];
29
- typeFilter: never[];
30
- } | {
31
- error: any;
32
- loading: boolean;
33
- data: undefined;
34
- wasLoaded: boolean;
35
- stateFilter: never[];
36
- typeFilter: never[];
37
- } | {
38
- stateFilter: any;
39
- data: undefined;
40
- loading: boolean;
41
- wasLoaded: boolean;
42
- typeFilter: never[];
43
- } | {
44
- typeFilter: any;
45
- data: undefined;
46
- loading: boolean;
47
- wasLoaded: boolean;
48
- stateFilter: never[];
49
- };
50
16
  heatmap: import("../../types/store/heatmap").IHeatmapState;
51
17
  settings: import("./settings/types").SettingsState;
52
- schemaAcl: import("./schemaAcl/types").SchemaAclState;
53
18
  executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
54
19
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
55
- hotKeys: import("./hotKeys/types").HotKeysState;
56
20
  authentication: import("./authentication/types").AuthenticationState;
57
21
  header: import("./header/types").HeaderState;
58
22
  saveQuery: string | null;
59
23
  fullscreen: boolean;
60
24
  clusters: import("./clusters/types").ClustersFilters;
61
- }, undefined, import("redux").UnknownAction> & import("redux").Dispatch<any>, getState: () => {
62
- api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
63
- singleClusterMode: boolean;
64
- cluster: import("./cluster/types").ClusterState;
65
- tenant: import("./tenant/types").TenantState;
66
- tooltip: import("../../types/store/tooltip").ITooltipState;
67
- tablets: import("../../types/store/tablets").TabletsState;
68
- schema: import("./schema/types").SchemaState;
69
- host: import("../../types/store/host").IHostState;
70
- tenants: import("./tenants/types").TenantsState;
71
- partitions: import("./partitions/types").PartitionsState;
72
- executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
73
- tabletsFilters: {
74
- loading: boolean;
75
- requestTime: number;
76
- data: undefined;
77
- wasLoaded: boolean;
78
- stateFilter: never[];
79
- typeFilter: never[];
80
- } | {
81
- tabletsData: any;
82
- nodes: any;
83
- loading: boolean;
84
- wasLoaded: boolean;
85
- timeoutForRequest: number;
86
- error: undefined;
87
- data: undefined;
88
- stateFilter: never[];
89
- typeFilter: never[];
90
- } | {
91
- error: any;
92
- loading: boolean;
93
- data: undefined;
94
- wasLoaded: boolean;
95
- stateFilter: never[];
96
- typeFilter: never[];
97
- } | {
98
- stateFilter: any;
99
- data: undefined;
100
- loading: boolean;
101
- wasLoaded: boolean;
102
- typeFilter: never[];
103
- } | {
104
- typeFilter: any;
105
- data: undefined;
106
- loading: boolean;
107
- wasLoaded: boolean;
108
- stateFilter: never[];
109
- };
110
- heatmap: import("../../types/store/heatmap").IHeatmapState;
111
- settings: import("./settings/types").SettingsState;
112
- schemaAcl: import("./schemaAcl/types").SchemaAclState;
113
- executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
114
- shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
115
- hotKeys: import("./hotKeys/types").HotKeysState;
116
- authentication: import("./authentication/types").AuthenticationState;
117
- header: import("./header/types").HeaderState;
118
- saveQuery: string | null;
119
- fullscreen: boolean;
120
- clusters: import("./clusters/types").ClustersFilters;
121
- }) => Promise<any>;
122
- export function clearWasLoadingFlag(): {
123
- type: string;
124
- };
125
- export function setStateFilter(stateFilter: any): {
126
- type: string;
127
- data: any;
128
- };
129
- export function setTypeFilter(typeFilter: any): {
130
- type: string;
131
- data: any;
132
- };
133
- export function getTablets(state: any): any;
134
- export const getFilteredTablets: ((state: any) => any) & {
25
+ }, _params: TabletsApiRequestParams, _stateFilter: string[], typeFilter: string[]) => TTabletStateInfo[]) & {
135
26
  clearCache: () => void;
136
27
  resultsCount: () => number;
137
28
  resetResultsCount: () => void;
138
29
  } & {
139
- resultFunc: (resultFuncArgs_0: any, resultFuncArgs_1: any, resultFuncArgs_2: any) => any;
140
- memoizedResultFunc: ((resultFuncArgs_0: any, resultFuncArgs_1: any, resultFuncArgs_2: any) => any) & {
30
+ resultFunc: (resultFuncArgs_0: TTabletStateInfo[] | undefined, resultFuncArgs_1: string[], resultFuncArgs_2: string[]) => TTabletStateInfo[];
31
+ memoizedResultFunc: ((resultFuncArgs_0: TTabletStateInfo[] | undefined, resultFuncArgs_1: string[], resultFuncArgs_2: string[]) => TTabletStateInfo[]) & {
141
32
  clearCache: () => void;
142
33
  resultsCount: () => number;
143
34
  resetResultsCount: () => void;
144
35
  };
145
- lastResult: () => any;
146
- dependencies: [(state: any) => any, (state: any) => any, (state: any) => any];
36
+ lastResult: () => TTabletStateInfo[];
37
+ dependencies: [(state: RootState, params: TabletsApiRequestParams) => TTabletStateInfo[] | undefined, (_: RootState, _params: TabletsApiRequestParams, stateFilter: string[]) => string[], (_: RootState, _params: TabletsApiRequestParams, _stateFilter: string[], typeFilter: string[]) => string[]];
147
38
  recomputations: () => number;
148
39
  resetRecomputations: () => void;
149
40
  dependencyRecomputations: () => number;
150
41
  resetDependencyRecomputations: () => void;
151
42
  } & {
152
- argsMemoize: typeof import("reselect").weakMapMemoize;
43
+ argsMemoize: typeof lruMemoize;
153
44
  memoize: typeof import("reselect").weakMapMemoize;
154
45
  };
155
- export default tabletsFilters;
156
- declare function tabletsFilters(state: {
157
- data: undefined;
158
- loading: boolean;
159
- wasLoaded: boolean;
160
- stateFilter: never[];
161
- typeFilter: never[];
162
- } | undefined, action: any): {
163
- loading: boolean;
164
- requestTime: number;
165
- data: undefined;
166
- wasLoaded: boolean;
167
- stateFilter: never[];
168
- typeFilter: never[];
169
- } | {
170
- tabletsData: any;
171
- nodes: any;
172
- loading: boolean;
173
- wasLoaded: boolean;
174
- timeoutForRequest: number;
175
- error: undefined;
176
- data: undefined;
177
- stateFilter: never[];
178
- typeFilter: never[];
179
- } | {
180
- error: any;
181
- loading: boolean;
182
- data: undefined;
183
- wasLoaded: boolean;
184
- stateFilter: never[];
185
- typeFilter: never[];
186
- } | {
187
- stateFilter: any;
188
- data: undefined;
189
- loading: boolean;
190
- wasLoaded: boolean;
191
- typeFilter: never[];
192
- } | {
193
- typeFilter: any;
194
- data: undefined;
195
- loading: boolean;
196
- wasLoaded: boolean;
197
- stateFilter: never[];
198
- };