snss-types 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/index.d.ts +678 -0
- package/dist-types/index.js +157 -0
- package/dist-types/index.js.map +1 -0
- package/package.json +10 -4
- package/src/types/case.ts +0 -86
- package/src/types/index.ts +0 -70
- package/src/types/scene.ts +0 -612
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
declare class ModelEntity {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
url: string;
|
|
6
|
+
updateTime: Date;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 场景树结构对象类型
|
|
11
|
+
*/
|
|
12
|
+
interface SceneItem {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
meta: SceneItemMeta;
|
|
16
|
+
isLeaf?: boolean;
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 场景元数据详细信息类型
|
|
21
|
+
*/
|
|
22
|
+
interface SceneItemMeta {
|
|
23
|
+
scene_json?: SceneItemSelfInfo;
|
|
24
|
+
manifest_json?: ManifestData;
|
|
25
|
+
constellations_json?: ConstellationsData;
|
|
26
|
+
satellites_json?: SatellitesData;
|
|
27
|
+
nodes_json?: NodesData;
|
|
28
|
+
links_json?: LinksData;
|
|
29
|
+
tasks_json?: TasksData;
|
|
30
|
+
flows_json?: FlowsData;
|
|
31
|
+
timeline_json?: TimelineData;
|
|
32
|
+
metrics_json?: MetricsData;
|
|
33
|
+
evaluation_json?: EvaluationData;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 场景节点(单个架构版本)
|
|
37
|
+
*/
|
|
38
|
+
interface SceneItemSelfInfo {
|
|
39
|
+
/** 场景唯一标识 */
|
|
40
|
+
scene_id: string;
|
|
41
|
+
/** 场景显示名称 */
|
|
42
|
+
scene_name: string;
|
|
43
|
+
/** 文件路径 */
|
|
44
|
+
file_path?: string;
|
|
45
|
+
/** 场景角色:基线/迭代/最终 */
|
|
46
|
+
scene_role: SceneRole;
|
|
47
|
+
/** 场景描述说明 */
|
|
48
|
+
description: string;
|
|
49
|
+
/** 上一个场景ID(可选,基线版本没有) */
|
|
50
|
+
prev_scene_id?: string;
|
|
51
|
+
/** 下一个场景ID(可选,最终版本没有) */
|
|
52
|
+
next_scene_id?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 场景角色类型
|
|
56
|
+
* - baseline: 基线架构版本
|
|
57
|
+
* - iteration: 优化迭代版本
|
|
58
|
+
* - final: 最终优化版本
|
|
59
|
+
*/
|
|
60
|
+
type SceneRole = 'baseline' | 'iteration' | 'final';
|
|
61
|
+
/**
|
|
62
|
+
* 时间配置
|
|
63
|
+
*/
|
|
64
|
+
interface ManifestTime {
|
|
65
|
+
epoch_utc: string;
|
|
66
|
+
start_time_s: number;
|
|
67
|
+
end_time_s: number;
|
|
68
|
+
time_step_ms: number;
|
|
69
|
+
frame_count: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* 场景清单文件
|
|
73
|
+
*/
|
|
74
|
+
interface ManifestData {
|
|
75
|
+
scene_id: string;
|
|
76
|
+
scene_name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
time: ManifestTime;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 星座类型
|
|
82
|
+
*/
|
|
83
|
+
type ConstellationType = 'GEO' | 'MEO' | 'LEO';
|
|
84
|
+
/**
|
|
85
|
+
* 星座配置
|
|
86
|
+
*/
|
|
87
|
+
interface Constellation {
|
|
88
|
+
constellation_id: string;
|
|
89
|
+
constellation_name: string;
|
|
90
|
+
layer: ConstellationType;
|
|
91
|
+
satellite_count: number;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* 星座列表
|
|
95
|
+
*/
|
|
96
|
+
interface ConstellationsData {
|
|
97
|
+
constellations: Constellation[];
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* 卫星TLE数据
|
|
101
|
+
*/
|
|
102
|
+
interface SatelliteTLE {
|
|
103
|
+
line1: string;
|
|
104
|
+
line2: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* 卫星配置
|
|
108
|
+
*/
|
|
109
|
+
interface Satellite {
|
|
110
|
+
satellite_id: string;
|
|
111
|
+
satellite_name: string;
|
|
112
|
+
constellation_id: string;
|
|
113
|
+
layer: ConstellationType;
|
|
114
|
+
satellite_type: TaskType;
|
|
115
|
+
orbit_plane: number;
|
|
116
|
+
orbit_index: number;
|
|
117
|
+
tle: SatelliteTLE;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* 卫星列表
|
|
121
|
+
*/
|
|
122
|
+
interface SatellitesData {
|
|
123
|
+
satellites: Satellite[];
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 容量配置
|
|
127
|
+
*/
|
|
128
|
+
interface Capacity {
|
|
129
|
+
max_access_capacity_mbps: number;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* 显示配置
|
|
133
|
+
*/
|
|
134
|
+
interface DisplayOptions {
|
|
135
|
+
show_trajectory?: boolean;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* 节点类型
|
|
139
|
+
*/
|
|
140
|
+
type NodeType = 'gateway' | 'user_terminal' | 'control_center' | 'other';
|
|
141
|
+
/**
|
|
142
|
+
* 终端类型(仅在 node_type = 'user_terminal' 时使用)
|
|
143
|
+
*/
|
|
144
|
+
type TerminalType = 'fixed' | 'mobile' | 'airborne' | 'maritime';
|
|
145
|
+
/**
|
|
146
|
+
* 移动模型类型
|
|
147
|
+
*/
|
|
148
|
+
type MobilityModel = 'static' | 'waypoint';
|
|
149
|
+
/**
|
|
150
|
+
* 网关节点
|
|
151
|
+
*/
|
|
152
|
+
interface GatewayNode {
|
|
153
|
+
node_id: string;
|
|
154
|
+
node_name: string;
|
|
155
|
+
node_type: 'gateway';
|
|
156
|
+
region: string;
|
|
157
|
+
geo_position: GeoPosition;
|
|
158
|
+
capacity: Capacity;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* 固定用户终端
|
|
162
|
+
*/
|
|
163
|
+
interface StaticUserTerminal {
|
|
164
|
+
node_id: string;
|
|
165
|
+
node_name: string;
|
|
166
|
+
node_type: 'user_terminal';
|
|
167
|
+
terminal_type: 'fixed';
|
|
168
|
+
mobility_model: 'static';
|
|
169
|
+
geo_position: GeoPosition;
|
|
170
|
+
display_options?: DisplayOptions;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* 移动用户终端
|
|
174
|
+
*/
|
|
175
|
+
interface MobileUserTerminal {
|
|
176
|
+
node_id: string;
|
|
177
|
+
node_name: string;
|
|
178
|
+
node_type: 'user_terminal';
|
|
179
|
+
terminal_type: 'mobile';
|
|
180
|
+
mobility_model: 'waypoint';
|
|
181
|
+
geo_position: GeoPosition;
|
|
182
|
+
display_options?: DisplayOptions;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* 其他类型用户终端
|
|
186
|
+
*/
|
|
187
|
+
interface OtherUserTerminal {
|
|
188
|
+
node_id: string;
|
|
189
|
+
node_name: string;
|
|
190
|
+
node_type: 'user_terminal';
|
|
191
|
+
terminal_type: Exclude<TerminalType, 'fixed' | 'mobile'>;
|
|
192
|
+
mobility_model: MobilityModel;
|
|
193
|
+
geo_position: GeoPosition;
|
|
194
|
+
display_options?: DisplayOptions;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* 控制中心节点
|
|
198
|
+
*/
|
|
199
|
+
interface ControlCenterNode {
|
|
200
|
+
node_id: string;
|
|
201
|
+
node_name: string;
|
|
202
|
+
node_type: 'control_center';
|
|
203
|
+
geo_position: GeoPosition;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* 其他类型节点
|
|
207
|
+
*/
|
|
208
|
+
interface OtherNode {
|
|
209
|
+
node_id: string;
|
|
210
|
+
node_name: string;
|
|
211
|
+
node_type: 'other';
|
|
212
|
+
geo_position: GeoPosition;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* 节点联合类型
|
|
216
|
+
*/
|
|
217
|
+
type Node = GatewayNode | StaticUserTerminal | MobileUserTerminal | OtherUserTerminal | ControlCenterNode | OtherNode;
|
|
218
|
+
/**
|
|
219
|
+
* 节点列表
|
|
220
|
+
*/
|
|
221
|
+
interface NodesData {
|
|
222
|
+
nodes: Node[];
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* 链路类型
|
|
226
|
+
*/
|
|
227
|
+
type LinkType = 'ISL' | 'IOL' | 'GSL' | 'BACKHAUL';
|
|
228
|
+
/**
|
|
229
|
+
* 节点类型
|
|
230
|
+
*/
|
|
231
|
+
type LinkNodeType = 'satellite' | 'gateway';
|
|
232
|
+
/**
|
|
233
|
+
* 链路实例
|
|
234
|
+
*/
|
|
235
|
+
interface Link {
|
|
236
|
+
link_id: string;
|
|
237
|
+
node_a_id: string;
|
|
238
|
+
node_a_type: LinkNodeType;
|
|
239
|
+
node_b_id: string;
|
|
240
|
+
node_b_type: LinkNodeType;
|
|
241
|
+
link_type: LinkType;
|
|
242
|
+
capacity_mbps: number;
|
|
243
|
+
node_a_constellation_id?: string;
|
|
244
|
+
node_b_constellation_id?: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* 批量链路配置规则
|
|
248
|
+
*/
|
|
249
|
+
interface BulkConfigRule {
|
|
250
|
+
constellation_id: string;
|
|
251
|
+
link_type: LinkType;
|
|
252
|
+
capacity_mbps: number;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* 链路列表
|
|
256
|
+
*/
|
|
257
|
+
interface LinksData {
|
|
258
|
+
links: Link[];
|
|
259
|
+
bulk_config_rules: BulkConfigRule[];
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* 任务类型
|
|
263
|
+
*/
|
|
264
|
+
type TaskType = 'emergency_communication';
|
|
265
|
+
/**
|
|
266
|
+
* 任务优先级
|
|
267
|
+
*/
|
|
268
|
+
type TaskPriority = 'high';
|
|
269
|
+
/**
|
|
270
|
+
* 任务
|
|
271
|
+
*/
|
|
272
|
+
interface Task {
|
|
273
|
+
task_id: string;
|
|
274
|
+
task_name: string;
|
|
275
|
+
task_type: TaskType;
|
|
276
|
+
priority: TaskPriority;
|
|
277
|
+
flow_ids: string[];
|
|
278
|
+
start_time_s: number;
|
|
279
|
+
end_time_s: number;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* 任务列表
|
|
283
|
+
*/
|
|
284
|
+
interface TasksData {
|
|
285
|
+
tasks: Task[];
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* 业务类型
|
|
289
|
+
*/
|
|
290
|
+
type ServiceType = 'voice' | 'image_return';
|
|
291
|
+
/**
|
|
292
|
+
* 业务优先级
|
|
293
|
+
*/
|
|
294
|
+
type FlowPriority = 'high';
|
|
295
|
+
/**
|
|
296
|
+
* 业务流
|
|
297
|
+
*/
|
|
298
|
+
interface Flow {
|
|
299
|
+
flow_id: string;
|
|
300
|
+
flow_name: string;
|
|
301
|
+
task_id: string;
|
|
302
|
+
service_type: ServiceType;
|
|
303
|
+
priority: FlowPriority;
|
|
304
|
+
src_node_id: string;
|
|
305
|
+
dst_node_id: string;
|
|
306
|
+
start_time_s: number;
|
|
307
|
+
end_time_s: number;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* 业务流列表
|
|
311
|
+
*/
|
|
312
|
+
interface FlowsData {
|
|
313
|
+
flows: Flow[];
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* 地理位置
|
|
317
|
+
*/
|
|
318
|
+
interface GeoPosition {
|
|
319
|
+
lon_deg: number;
|
|
320
|
+
lat_deg: number;
|
|
321
|
+
alt_km: number;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* 地理位置
|
|
325
|
+
*/
|
|
326
|
+
interface GeoPosition {
|
|
327
|
+
lon_deg: number;
|
|
328
|
+
lat_deg: number;
|
|
329
|
+
alt_km: number;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* 速度向量
|
|
333
|
+
*/
|
|
334
|
+
interface VelocityWGS {
|
|
335
|
+
vx: number;
|
|
336
|
+
vy: number;
|
|
337
|
+
vz: number;
|
|
338
|
+
unit: string;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* 用户状态
|
|
342
|
+
*/
|
|
343
|
+
interface UserState {
|
|
344
|
+
node_id: string;
|
|
345
|
+
geo_position: GeoPosition;
|
|
346
|
+
velocity_wgs: VelocityWGS;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* 链路状态
|
|
350
|
+
*/
|
|
351
|
+
interface LinkState {
|
|
352
|
+
link_id: string;
|
|
353
|
+
status: string;
|
|
354
|
+
utilization_ratio: number;
|
|
355
|
+
congestion_level: number;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* 业务流状态
|
|
359
|
+
*/
|
|
360
|
+
interface FlowState {
|
|
361
|
+
flow_id: string;
|
|
362
|
+
status: string;
|
|
363
|
+
throughput_mbps: number;
|
|
364
|
+
avg_delay_ms: number;
|
|
365
|
+
loss_rate: number;
|
|
366
|
+
current_path_node_ids: string[];
|
|
367
|
+
is_sla_satisfied: boolean;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* 任务状态
|
|
371
|
+
*/
|
|
372
|
+
interface TaskState {
|
|
373
|
+
task_id: string;
|
|
374
|
+
status: string;
|
|
375
|
+
active_flow_ids: string[];
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* 时间轴单帧数据
|
|
379
|
+
*/
|
|
380
|
+
interface TimelineFrame {
|
|
381
|
+
frame_no: number;
|
|
382
|
+
timestamp_s: number;
|
|
383
|
+
user_states: UserState[];
|
|
384
|
+
links: LinkState[];
|
|
385
|
+
flows: FlowState[];
|
|
386
|
+
tasks: TaskState[];
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* 时间轴数据
|
|
390
|
+
*/
|
|
391
|
+
interface TimelineData {
|
|
392
|
+
timelines: TimelineFrame[];
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* 概要统计
|
|
396
|
+
*/
|
|
397
|
+
interface MetricsSummary {
|
|
398
|
+
active_flow_total: number;
|
|
399
|
+
high_priority_flow_total: number;
|
|
400
|
+
avg_delay_ms: number;
|
|
401
|
+
avg_loss_rate: number;
|
|
402
|
+
avg_throughput_mbps: number;
|
|
403
|
+
congested_link_total: number;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* 时序数据点
|
|
407
|
+
*/
|
|
408
|
+
interface TimeseriesPoint {
|
|
409
|
+
timestamp_s: number;
|
|
410
|
+
active_flow_count: number;
|
|
411
|
+
network_throughput_mbps: number;
|
|
412
|
+
avg_delay_ms: number;
|
|
413
|
+
avg_loss_rate: number;
|
|
414
|
+
congested_link_count: number;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* 图表配置
|
|
418
|
+
*/
|
|
419
|
+
interface ChartConfig {
|
|
420
|
+
chart_id: string;
|
|
421
|
+
chart_name: string;
|
|
422
|
+
chart_type: string;
|
|
423
|
+
x_field: string;
|
|
424
|
+
y_fields: string[];
|
|
425
|
+
unit: string;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* 图表资源
|
|
429
|
+
*/
|
|
430
|
+
interface FigureAsset {
|
|
431
|
+
figure_id: string;
|
|
432
|
+
figure_name: string;
|
|
433
|
+
figure_type: string;
|
|
434
|
+
file_path: string;
|
|
435
|
+
description: string;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* 指标数据
|
|
439
|
+
*/
|
|
440
|
+
interface MetricsData {
|
|
441
|
+
summary: MetricsSummary;
|
|
442
|
+
timeseries: TimeseriesPoint[];
|
|
443
|
+
charts: ChartConfig[];
|
|
444
|
+
figure_assets: FigureAsset[];
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* 评估方法类型
|
|
448
|
+
*/
|
|
449
|
+
type EvaluationMethod = 'AHP_ENTROPY';
|
|
450
|
+
/**
|
|
451
|
+
* 指标方向类型
|
|
452
|
+
*/
|
|
453
|
+
type MetricDirection = 'benefit' | 'cost';
|
|
454
|
+
/**
|
|
455
|
+
* 评估模型
|
|
456
|
+
*/
|
|
457
|
+
interface EvaluationModel {
|
|
458
|
+
method: EvaluationMethod;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* 细分指标
|
|
462
|
+
*/
|
|
463
|
+
interface Metric {
|
|
464
|
+
metric_id: string;
|
|
465
|
+
metric_name: string;
|
|
466
|
+
direction: MetricDirection;
|
|
467
|
+
value: number;
|
|
468
|
+
normalized_value: number;
|
|
469
|
+
unit: string;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* 评估维度
|
|
473
|
+
*/
|
|
474
|
+
interface EvaluationDimension {
|
|
475
|
+
dimension_id: string;
|
|
476
|
+
dimension_name: string;
|
|
477
|
+
score: number;
|
|
478
|
+
ahp_weight: number;
|
|
479
|
+
entropy_weight: number;
|
|
480
|
+
combined_weight: number;
|
|
481
|
+
metrics: Metric[];
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* 最终得分
|
|
485
|
+
*/
|
|
486
|
+
interface FinalScore {
|
|
487
|
+
score: number;
|
|
488
|
+
score_scale: string;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* 评估图表配置
|
|
492
|
+
*/
|
|
493
|
+
interface EvaluationChart {
|
|
494
|
+
chart_id: string;
|
|
495
|
+
chart_name: string;
|
|
496
|
+
chart_type: string;
|
|
497
|
+
label_field: string;
|
|
498
|
+
value_field: string;
|
|
499
|
+
unit: string;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* 评估图表资源
|
|
503
|
+
*/
|
|
504
|
+
interface EvaluationFigureAsset {
|
|
505
|
+
figure_id: string;
|
|
506
|
+
figure_name: string;
|
|
507
|
+
figure_type: string;
|
|
508
|
+
file_path: string;
|
|
509
|
+
description: string;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* 评估结果
|
|
513
|
+
*/
|
|
514
|
+
interface EvaluationData {
|
|
515
|
+
scene_id: string;
|
|
516
|
+
scene_name: string;
|
|
517
|
+
evaluation_model: EvaluationModel;
|
|
518
|
+
dimensions: EvaluationDimension[];
|
|
519
|
+
final_score: FinalScore;
|
|
520
|
+
charts: EvaluationChart[];
|
|
521
|
+
figure_assets: EvaluationFigureAsset[];
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* 案例类型
|
|
526
|
+
*/
|
|
527
|
+
type CaseType = 'architecture_optimization';
|
|
528
|
+
/**
|
|
529
|
+
* 优化评估案例
|
|
530
|
+
*/
|
|
531
|
+
interface CaseJsonData {
|
|
532
|
+
/** 案例唯一标识 */
|
|
533
|
+
case_id: string;
|
|
534
|
+
/** 案例名称 */
|
|
535
|
+
case_name: string;
|
|
536
|
+
/** 案例类型 */
|
|
537
|
+
case_type: CaseType;
|
|
538
|
+
/** 案例描述 */
|
|
539
|
+
description: string;
|
|
540
|
+
/** 默认展示的场景ID */
|
|
541
|
+
default_scene_id: string;
|
|
542
|
+
/** 场景顺序列表(按迭代顺序排列的 scene_id 数组) */
|
|
543
|
+
scene_order: string[];
|
|
544
|
+
/** 场景详情列表 */
|
|
545
|
+
scenes: SceneItemSelfInfo[];
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* 案例库树结构对象
|
|
549
|
+
*/
|
|
550
|
+
interface CaseItem {
|
|
551
|
+
label: string;
|
|
552
|
+
value: string;
|
|
553
|
+
meta: CaseItemMeta;
|
|
554
|
+
children: SceneItem[];
|
|
555
|
+
isLeaf?: boolean;
|
|
556
|
+
isOnline?: boolean;
|
|
557
|
+
[x: string]: any;
|
|
558
|
+
}
|
|
559
|
+
interface CaseItemMeta {
|
|
560
|
+
case_json?: CaseJsonData;
|
|
561
|
+
evaluation_summary_json?: EvaluationSummaryData;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* 各维度评分
|
|
565
|
+
*/
|
|
566
|
+
interface DimensionScores {
|
|
567
|
+
/** 网络容量评分 */
|
|
568
|
+
network_capacity: number;
|
|
569
|
+
/** 服务质量评分 */
|
|
570
|
+
service_quality: number;
|
|
571
|
+
/** 网络韧性评分 */
|
|
572
|
+
network_resilience: number;
|
|
573
|
+
/** 网络复杂度评分 */
|
|
574
|
+
network_complexity: number;
|
|
575
|
+
[x: string]: number;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* 场景评估节点
|
|
579
|
+
*/
|
|
580
|
+
interface SceneEvaluation {
|
|
581
|
+
/** 场景唯一标识 */
|
|
582
|
+
scene_id: string;
|
|
583
|
+
/** 场景显示名称 */
|
|
584
|
+
scene_name: string;
|
|
585
|
+
/** 综合最终得分 */
|
|
586
|
+
final_score: number;
|
|
587
|
+
/** 各维度得分详情 */
|
|
588
|
+
dimension_scores: DimensionScores;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* 多维度评估结果
|
|
592
|
+
*/
|
|
593
|
+
interface EvaluationSummaryData {
|
|
594
|
+
/** 案例唯一标识 */
|
|
595
|
+
case_id: string;
|
|
596
|
+
/** 评估方法 */
|
|
597
|
+
evaluation_method: EvaluationMethod;
|
|
598
|
+
/** 场景评估列表 */
|
|
599
|
+
scenes: SceneEvaluation[];
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
declare class DirPathDto {
|
|
603
|
+
dir: string;
|
|
604
|
+
isAbsolutePath?: boolean;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
declare class InitCaseCacheDto {
|
|
608
|
+
dirPaths?: Array<DirPathDto>;
|
|
609
|
+
fileName?: string;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
declare class ModelDto {
|
|
613
|
+
name: string;
|
|
614
|
+
type: string;
|
|
615
|
+
url: string;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
declare class SendMessageDto {
|
|
619
|
+
msg: string;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* 基础响应结构
|
|
624
|
+
* 所有 API 响应的通用格式
|
|
625
|
+
*/
|
|
626
|
+
interface BaseResponse {
|
|
627
|
+
/** 状态码,通常 200 表示成功,其他表示错误 */
|
|
628
|
+
code: number;
|
|
629
|
+
/** 响应数据,可选 */
|
|
630
|
+
data?: any;
|
|
631
|
+
/** 响应消息或错误描述 */
|
|
632
|
+
message: string;
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* 库树结构响应
|
|
636
|
+
* 用于返回层级化的树形结构数据(如目录树、模型库树等)
|
|
637
|
+
*/
|
|
638
|
+
interface CaseTreeResponse extends BaseResponse {
|
|
639
|
+
/** 树形节点数组 */
|
|
640
|
+
data?: CaseItem[];
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* 场景详细信息响应
|
|
644
|
+
* 通过场景文件夹路径查询并返回场景详细信息
|
|
645
|
+
*/
|
|
646
|
+
interface SceneItemMetaResponse extends BaseResponse {
|
|
647
|
+
/** 树形节点数组 */
|
|
648
|
+
data?: SceneItemMeta;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* JSON 文件上传响应
|
|
652
|
+
* 用于返回上传后的文件详细信息
|
|
653
|
+
*/
|
|
654
|
+
interface UploadFileResponse extends BaseResponse {
|
|
655
|
+
/** 上传文件的具体信息 */
|
|
656
|
+
data?: {
|
|
657
|
+
/** 原始文件名 */
|
|
658
|
+
originalName: string;
|
|
659
|
+
/** 文件大小(字节) */
|
|
660
|
+
size: number;
|
|
661
|
+
/** 文件 MIME 类型 */
|
|
662
|
+
mimetype: string;
|
|
663
|
+
/** 服务器存储路径 */
|
|
664
|
+
path: string;
|
|
665
|
+
/** 服务器生成的文件名 */
|
|
666
|
+
filename: string;
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* 模型响应
|
|
671
|
+
* 用于返回单个模型、模型列表或空值
|
|
672
|
+
*/
|
|
673
|
+
interface ModelResponse extends BaseResponse {
|
|
674
|
+
/** 模型实体数据,可能是单个对象、数组或 null */
|
|
675
|
+
data?: ModelEntity | ModelEntity[] | null;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export { type BaseResponse, type BulkConfigRule, type Capacity, type CaseItem, type CaseItemMeta, type CaseJsonData, type CaseTreeResponse, type CaseType, type ChartConfig, type Constellation, type ConstellationType, type ConstellationsData, type ControlCenterNode, type DimensionScores, DirPathDto, type DisplayOptions, type EvaluationChart, type EvaluationData, type EvaluationDimension, type EvaluationFigureAsset, type EvaluationMethod, type EvaluationModel, type EvaluationSummaryData, type FigureAsset, type FinalScore, type Flow, type FlowPriority, type FlowState, type FlowsData, type GatewayNode, type GeoPosition, InitCaseCacheDto, type Link, type LinkNodeType, type LinkState, type LinkType, type LinksData, type ManifestData, type ManifestTime, type Metric, type MetricDirection, type MetricsData, type MetricsSummary, type MobileUserTerminal, type MobilityModel, ModelDto, ModelEntity, type ModelResponse, type Node, type NodeType, type NodesData, type OtherNode, type OtherUserTerminal, type Satellite, type SatelliteTLE, type SatellitesData, type SceneEvaluation, type SceneItem, type SceneItemMeta, type SceneItemMetaResponse, type SceneItemSelfInfo, type SceneRole, SendMessageDto, type ServiceType, type StaticUserTerminal, type Task, type TaskPriority, type TaskState, type TaskType, type TasksData, type TerminalType, type TimelineData, type TimelineFrame, type TimeseriesPoint, type UploadFileResponse, type UserState, type VelocityWGS };
|