snss-types 1.0.1 → 1.0.3

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.
@@ -21,16 +21,16 @@ interface SceneItem {
21
21
  */
22
22
  interface SceneItemMeta {
23
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;
24
+ manifest_json?: SceneManifestData;
25
+ constellations_json?: SceneConstellationsData;
26
+ satellites_json?: SceneSatellitesData;
27
+ nodes_json?: SceneNodesData;
28
+ links_json?: SceneLinksData;
29
+ tasks_json?: SceneTasksData;
30
+ flows_json?: SceneFlowsData;
31
+ timeline_json?: SceneTimelineData;
32
+ metrics_json?: SceneMetricsData;
33
+ evaluation_json?: SceneEvaluationData;
34
34
  }
35
35
  /**
36
36
  * 场景节点(单个架构版本)
@@ -61,7 +61,7 @@ type SceneRole = 'baseline' | 'iteration' | 'final';
61
61
  /**
62
62
  * 时间配置
63
63
  */
64
- interface ManifestTime {
64
+ interface SceneManifestTime {
65
65
  epoch_utc: string;
66
66
  start_time_s: number;
67
67
  end_time_s: number;
@@ -71,174 +71,175 @@ interface ManifestTime {
71
71
  /**
72
72
  * 场景清单文件
73
73
  */
74
- interface ManifestData {
74
+ interface SceneManifestData {
75
75
  scene_id: string;
76
76
  scene_name: string;
77
77
  description: string;
78
- time: ManifestTime;
78
+ time: SceneManifestTime;
79
79
  }
80
80
  /**
81
81
  * 星座类型
82
82
  */
83
- type ConstellationType = 'GEO' | 'MEO' | 'LEO';
83
+ type SceneConstellationType = 'GEO' | 'MEO' | 'LEO';
84
84
  /**
85
85
  * 星座配置
86
86
  */
87
- interface Constellation {
87
+ interface SceneConstellation {
88
88
  constellation_id: string;
89
89
  constellation_name: string;
90
- layer: ConstellationType;
90
+ layer: SceneConstellationType;
91
91
  satellite_count: number;
92
92
  }
93
93
  /**
94
94
  * 星座列表
95
95
  */
96
- interface ConstellationsData {
97
- constellations: Constellation[];
96
+ interface SceneConstellationsData {
97
+ constellations: SceneConstellation[];
98
98
  }
99
99
  /**
100
100
  * 卫星TLE数据
101
101
  */
102
- interface SatelliteTLE {
102
+ interface SceneSatelliteTLE {
103
103
  line1: string;
104
104
  line2: string;
105
105
  }
106
106
  /**
107
107
  * 卫星配置
108
108
  */
109
- interface Satellite {
109
+ interface SceneSatellite {
110
110
  satellite_id: string;
111
111
  satellite_name: string;
112
112
  constellation_id: string;
113
- layer: ConstellationType;
114
- satellite_type: TaskType;
113
+ layer: SceneConstellationType;
114
+ satellite_type: SceneSatelliteType;
115
115
  orbit_plane: number;
116
116
  orbit_index: number;
117
- tle: SatelliteTLE;
117
+ tle: SceneSatelliteTLE;
118
118
  }
119
+ type SceneSatelliteType = 'communication' | 'remote_sensing' | 'navigation' | 'relay' | 'KJZ';
119
120
  /**
120
121
  * 卫星列表
121
122
  */
122
- interface SatellitesData {
123
- satellites: Satellite[];
123
+ interface SceneSatellitesData {
124
+ satellites: SceneSatellite[];
124
125
  }
125
126
  /**
126
127
  * 容量配置
127
128
  */
128
- interface Capacity {
129
+ interface SceneCapacity {
129
130
  max_access_capacity_mbps: number;
130
131
  }
131
132
  /**
132
133
  * 显示配置
133
134
  */
134
- interface DisplayOptions {
135
+ interface SceneDisplayOptions {
135
136
  show_trajectory?: boolean;
136
137
  }
137
138
  /**
138
139
  * 节点类型
139
140
  */
140
- type NodeType = 'gateway' | 'user_terminal' | 'control_center' | 'other';
141
+ type SceneNodeType = 'gateway' | 'user_terminal' | 'control_center' | 'other';
141
142
  /**
142
143
  * 终端类型(仅在 node_type = 'user_terminal' 时使用)
143
144
  */
144
- type TerminalType = 'fixed' | 'mobile' | 'airborne' | 'maritime';
145
+ type SceneTerminalType = 'fixed' | 'mobile' | 'airborne' | 'maritime';
145
146
  /**
146
147
  * 移动模型类型
147
148
  */
148
- type MobilityModel = 'static' | 'waypoint';
149
+ type SceneMobilityModel = 'static' | 'waypoint';
149
150
  /**
150
151
  * 网关节点
151
152
  */
152
- interface GatewayNode {
153
+ interface SceneGatewayNode {
153
154
  node_id: string;
154
155
  node_name: string;
155
156
  node_type: 'gateway';
156
157
  region: string;
157
- geo_position: GeoPosition;
158
- capacity: Capacity;
158
+ geo_position: SceneGeoPosition;
159
+ capacity: SceneCapacity;
159
160
  }
160
161
  /**
161
162
  * 固定用户终端
162
163
  */
163
- interface StaticUserTerminal {
164
+ interface SceneStaticUserTerminal {
164
165
  node_id: string;
165
166
  node_name: string;
166
167
  node_type: 'user_terminal';
167
168
  terminal_type: 'fixed';
168
169
  mobility_model: 'static';
169
- geo_position: GeoPosition;
170
- display_options?: DisplayOptions;
170
+ geo_position: SceneGeoPosition;
171
+ display_options?: SceneDisplayOptions;
171
172
  }
172
173
  /**
173
174
  * 移动用户终端
174
175
  */
175
- interface MobileUserTerminal {
176
+ interface SceneMobileUserTerminal {
176
177
  node_id: string;
177
178
  node_name: string;
178
179
  node_type: 'user_terminal';
179
180
  terminal_type: 'mobile';
180
181
  mobility_model: 'waypoint';
181
- geo_position: GeoPosition;
182
- display_options?: DisplayOptions;
182
+ geo_position: SceneGeoPosition;
183
+ display_options?: SceneDisplayOptions;
183
184
  }
184
185
  /**
185
186
  * 其他类型用户终端
186
187
  */
187
- interface OtherUserTerminal {
188
+ interface SceneOtherUserTerminal {
188
189
  node_id: string;
189
190
  node_name: string;
190
191
  node_type: 'user_terminal';
191
- terminal_type: Exclude<TerminalType, 'fixed' | 'mobile'>;
192
- mobility_model: MobilityModel;
193
- geo_position: GeoPosition;
194
- display_options?: DisplayOptions;
192
+ terminal_type: Exclude<SceneTerminalType, 'fixed' | 'mobile'>;
193
+ mobility_model: SceneMobilityModel;
194
+ geo_position: SceneGeoPosition;
195
+ display_options?: SceneDisplayOptions;
195
196
  }
196
197
  /**
197
198
  * 控制中心节点
198
199
  */
199
- interface ControlCenterNode {
200
+ interface SceneControlCenterNode {
200
201
  node_id: string;
201
202
  node_name: string;
202
203
  node_type: 'control_center';
203
- geo_position: GeoPosition;
204
+ geo_position: SceneGeoPosition;
204
205
  }
205
206
  /**
206
207
  * 其他类型节点
207
208
  */
208
- interface OtherNode {
209
+ interface SceneOtherNode {
209
210
  node_id: string;
210
211
  node_name: string;
211
212
  node_type: 'other';
212
- geo_position: GeoPosition;
213
+ geo_position: SceneGeoPosition;
213
214
  }
214
215
  /**
215
216
  * 节点联合类型
216
217
  */
217
- type Node = GatewayNode | StaticUserTerminal | MobileUserTerminal | OtherUserTerminal | ControlCenterNode | OtherNode;
218
+ type SceneNode = SceneGatewayNode | SceneStaticUserTerminal | SceneMobileUserTerminal | SceneOtherUserTerminal | SceneControlCenterNode | SceneOtherNode;
218
219
  /**
219
220
  * 节点列表
220
221
  */
221
- interface NodesData {
222
- nodes: Node[];
222
+ interface SceneNodesData {
223
+ nodes: SceneNode[];
223
224
  }
224
225
  /**
225
226
  * 链路类型
226
227
  */
227
- type LinkType = 'ISL' | 'IOL' | 'GSL' | 'BACKHAUL';
228
+ type SceneLinkType = 'ISL' | 'IOL' | 'GSL' | 'BACKHAUL';
228
229
  /**
229
230
  * 节点类型
230
231
  */
231
- type LinkNodeType = 'satellite' | 'gateway';
232
+ type SceneLinkNodeType = 'satellite' | 'gateway';
232
233
  /**
233
234
  * 链路实例
234
235
  */
235
- interface Link {
236
+ interface SceneLink {
236
237
  link_id: string;
237
238
  node_a_id: string;
238
- node_a_type: LinkNodeType;
239
+ node_a_type: SceneLinkNodeType;
239
240
  node_b_id: string;
240
- node_b_type: LinkNodeType;
241
- link_type: LinkType;
241
+ node_b_type: SceneLinkNodeType;
242
+ link_type: SceneLinkType;
242
243
  capacity_mbps: number;
243
244
  node_a_constellation_id?: string;
244
245
  node_b_constellation_id?: string;
@@ -246,34 +247,34 @@ interface Link {
246
247
  /**
247
248
  * 批量链路配置规则
248
249
  */
249
- interface BulkConfigRule {
250
+ interface SceneBulkConfigRule {
250
251
  constellation_id: string;
251
- link_type: LinkType;
252
+ link_type: SceneLinkType;
252
253
  capacity_mbps: number;
253
254
  }
254
255
  /**
255
256
  * 链路列表
256
257
  */
257
- interface LinksData {
258
- links: Link[];
259
- bulk_config_rules: BulkConfigRule[];
258
+ interface SceneLinksData {
259
+ links: SceneLink[];
260
+ bulk_config_rules: SceneBulkConfigRule[];
260
261
  }
261
262
  /**
262
263
  * 任务类型
263
264
  */
264
- type TaskType = 'emergency_communication';
265
+ type SceneTaskType = 'emergency_communication';
265
266
  /**
266
267
  * 任务优先级
267
268
  */
268
- type TaskPriority = 'high';
269
+ type SceneTaskPriority = 'high';
269
270
  /**
270
271
  * 任务
271
272
  */
272
- interface Task {
273
+ interface SceneTask {
273
274
  task_id: string;
274
275
  task_name: string;
275
- task_type: TaskType;
276
- priority: TaskPriority;
276
+ task_type: SceneTaskType;
277
+ priority: SceneTaskPriority;
277
278
  flow_ids: string[];
278
279
  start_time_s: number;
279
280
  end_time_s: number;
@@ -281,26 +282,26 @@ interface Task {
281
282
  /**
282
283
  * 任务列表
283
284
  */
284
- interface TasksData {
285
- tasks: Task[];
285
+ interface SceneTasksData {
286
+ tasks: SceneTask[];
286
287
  }
287
288
  /**
288
289
  * 业务类型
289
290
  */
290
- type ServiceType = 'voice' | 'image_return';
291
+ type SceneServiceType = 'voice' | 'image_return';
291
292
  /**
292
293
  * 业务优先级
293
294
  */
294
- type FlowPriority = 'high';
295
+ type SceneFlowPriority = 'high';
295
296
  /**
296
297
  * 业务流
297
298
  */
298
- interface Flow {
299
+ interface SceneFlow {
299
300
  flow_id: string;
300
301
  flow_name: string;
301
302
  task_id: string;
302
- service_type: ServiceType;
303
- priority: FlowPriority;
303
+ service_type: SceneServiceType;
304
+ priority: SceneFlowPriority;
304
305
  src_node_id: string;
305
306
  dst_node_id: string;
306
307
  start_time_s: number;
@@ -309,13 +310,13 @@ interface Flow {
309
310
  /**
310
311
  * 业务流列表
311
312
  */
312
- interface FlowsData {
313
- flows: Flow[];
313
+ interface SceneFlowsData {
314
+ flows: SceneFlow[];
314
315
  }
315
316
  /**
316
317
  * 地理位置
317
318
  */
318
- interface GeoPosition {
319
+ interface SceneGeoPosition {
319
320
  lon_deg: number;
320
321
  lat_deg: number;
321
322
  alt_km: number;
@@ -323,7 +324,7 @@ interface GeoPosition {
323
324
  /**
324
325
  * 地理位置
325
326
  */
326
- interface GeoPosition {
327
+ interface SceneGeoPosition {
327
328
  lon_deg: number;
328
329
  lat_deg: number;
329
330
  alt_km: number;
@@ -331,7 +332,7 @@ interface GeoPosition {
331
332
  /**
332
333
  * 速度向量
333
334
  */
334
- interface VelocityWGS {
335
+ interface SceneVelocityWGS {
335
336
  vx: number;
336
337
  vy: number;
337
338
  vz: number;
@@ -340,15 +341,15 @@ interface VelocityWGS {
340
341
  /**
341
342
  * 用户状态
342
343
  */
343
- interface UserState {
344
+ interface SceneUserState {
344
345
  node_id: string;
345
- geo_position: GeoPosition;
346
- velocity_wgs: VelocityWGS;
346
+ geo_position: SceneGeoPosition;
347
+ velocity_wgs: SceneVelocityWGS;
347
348
  }
348
349
  /**
349
350
  * 链路状态
350
351
  */
351
- interface LinkState {
352
+ interface SceneLinkState {
352
353
  link_id: string;
353
354
  status: string;
354
355
  utilization_ratio: number;
@@ -357,7 +358,7 @@ interface LinkState {
357
358
  /**
358
359
  * 业务流状态
359
360
  */
360
- interface FlowState {
361
+ interface SceneFlowState {
361
362
  flow_id: string;
362
363
  status: string;
363
364
  throughput_mbps: number;
@@ -369,7 +370,7 @@ interface FlowState {
369
370
  /**
370
371
  * 任务状态
371
372
  */
372
- interface TaskState {
373
+ interface SceneTaskState {
373
374
  task_id: string;
374
375
  status: string;
375
376
  active_flow_ids: string[];
@@ -377,24 +378,24 @@ interface TaskState {
377
378
  /**
378
379
  * 时间轴单帧数据
379
380
  */
380
- interface TimelineFrame {
381
+ interface SceneTimelineFrame {
381
382
  frame_no: number;
382
383
  timestamp_s: number;
383
- user_states: UserState[];
384
- links: LinkState[];
385
- flows: FlowState[];
386
- tasks: TaskState[];
384
+ user_states: SceneUserState[];
385
+ links: SceneLinkState[];
386
+ flows: SceneFlowState[];
387
+ tasks: SceneTaskState[];
387
388
  }
388
389
  /**
389
390
  * 时间轴数据
390
391
  */
391
- interface TimelineData {
392
- timelines: TimelineFrame[];
392
+ interface SceneTimelineData {
393
+ timelines: SceneTimelineFrame[];
393
394
  }
394
395
  /**
395
396
  * 概要统计
396
397
  */
397
- interface MetricsSummary {
398
+ interface SceneMetricsSummary {
398
399
  active_flow_total: number;
399
400
  high_priority_flow_total: number;
400
401
  avg_delay_ms: number;
@@ -405,7 +406,7 @@ interface MetricsSummary {
405
406
  /**
406
407
  * 时序数据点
407
408
  */
408
- interface TimeseriesPoint {
409
+ interface SceneTimeseriesPoint {
409
410
  timestamp_s: number;
410
411
  active_flow_count: number;
411
412
  network_throughput_mbps: number;
@@ -416,7 +417,7 @@ interface TimeseriesPoint {
416
417
  /**
417
418
  * 图表配置
418
419
  */
419
- interface ChartConfig {
420
+ interface SceneChartConfig {
420
421
  chart_id: string;
421
422
  chart_name: string;
422
423
  chart_type: string;
@@ -427,7 +428,7 @@ interface ChartConfig {
427
428
  /**
428
429
  * 图表资源
429
430
  */
430
- interface FigureAsset {
431
+ interface SceneFigureAsset {
431
432
  figure_id: string;
432
433
  figure_name: string;
433
434
  figure_type: string;
@@ -437,33 +438,33 @@ interface FigureAsset {
437
438
  /**
438
439
  * 指标数据
439
440
  */
440
- interface MetricsData {
441
- summary: MetricsSummary;
442
- timeseries: TimeseriesPoint[];
443
- charts: ChartConfig[];
444
- figure_assets: FigureAsset[];
441
+ interface SceneMetricsData {
442
+ summary: SceneMetricsSummary;
443
+ timeseries: SceneTimeseriesPoint[];
444
+ charts: SceneChartConfig[];
445
+ figure_assets: SceneFigureAsset[];
445
446
  }
446
447
  /**
447
448
  * 评估方法类型
448
449
  */
449
- type EvaluationMethod = 'AHP_ENTROPY';
450
+ type SceneEvaluationMethod = 'AHP_ENTROPY';
450
451
  /**
451
452
  * 指标方向类型
452
453
  */
453
- type MetricDirection = 'benefit' | 'cost';
454
+ type SceneMetricDirection = 'benefit' | 'cost';
454
455
  /**
455
456
  * 评估模型
456
457
  */
457
- interface EvaluationModel {
458
- method: EvaluationMethod;
458
+ interface SceneEvaluationModel {
459
+ method: SceneEvaluationMethod;
459
460
  }
460
461
  /**
461
462
  * 细分指标
462
463
  */
463
- interface Metric {
464
+ interface SceneMetric {
464
465
  metric_id: string;
465
466
  metric_name: string;
466
- direction: MetricDirection;
467
+ direction: SceneMetricDirection;
467
468
  value: number;
468
469
  normalized_value: number;
469
470
  unit: string;
@@ -471,26 +472,26 @@ interface Metric {
471
472
  /**
472
473
  * 评估维度
473
474
  */
474
- interface EvaluationDimension {
475
+ interface SceneEvaluationDimension {
475
476
  dimension_id: string;
476
477
  dimension_name: string;
477
478
  score: number;
478
479
  ahp_weight: number;
479
480
  entropy_weight: number;
480
481
  combined_weight: number;
481
- metrics: Metric[];
482
+ metrics: SceneMetric[];
482
483
  }
483
484
  /**
484
485
  * 最终得分
485
486
  */
486
- interface FinalScore {
487
+ interface SceneFinalScore {
487
488
  score: number;
488
489
  score_scale: string;
489
490
  }
490
491
  /**
491
492
  * 评估图表配置
492
493
  */
493
- interface EvaluationChart {
494
+ interface SceneEvaluationChart {
494
495
  chart_id: string;
495
496
  chart_name: string;
496
497
  chart_type: string;
@@ -501,7 +502,7 @@ interface EvaluationChart {
501
502
  /**
502
503
  * 评估图表资源
503
504
  */
504
- interface EvaluationFigureAsset {
505
+ interface SceneEvaluationFigureAsset {
505
506
  figure_id: string;
506
507
  figure_name: string;
507
508
  figure_type: string;
@@ -511,14 +512,14 @@ interface EvaluationFigureAsset {
511
512
  /**
512
513
  * 评估结果
513
514
  */
514
- interface EvaluationData {
515
+ interface SceneEvaluationData {
515
516
  scene_id: string;
516
517
  scene_name: string;
517
- evaluation_model: EvaluationModel;
518
- dimensions: EvaluationDimension[];
519
- final_score: FinalScore;
520
- charts: EvaluationChart[];
521
- figure_assets: EvaluationFigureAsset[];
518
+ evaluation_model: SceneEvaluationModel;
519
+ dimensions: SceneEvaluationDimension[];
520
+ final_score: SceneFinalScore;
521
+ charts: SceneEvaluationChart[];
522
+ figure_assets: SceneEvaluationFigureAsset[];
522
523
  }
523
524
 
524
525
  /**
@@ -556,28 +557,28 @@ interface CaseItem {
556
557
  isOnline?: boolean;
557
558
  [x: string]: any;
558
559
  }
560
+ /**
561
+ * 案例库树结构对象元数据
562
+ */
559
563
  interface CaseItemMeta {
560
564
  case_json?: CaseJsonData;
561
- evaluation_summary_json?: EvaluationSummaryData;
565
+ evaluation_summary_json?: CaseEvaluationSummaryJsonData;
562
566
  }
563
567
  /**
564
- * 各维度评分
568
+ * 案例库多维度评估结果
565
569
  */
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;
570
+ interface CaseEvaluationSummaryJsonData {
571
+ /** 案例唯一标识 */
572
+ case_id: string;
573
+ /** 评估方法 */
574
+ evaluation_method: SceneEvaluationMethod;
575
+ /** 场景评估列表 */
576
+ scenes: CaseSceneEvaluation[];
576
577
  }
577
578
  /**
578
- * 场景评估节点
579
+ * 案例库场景评估节点
579
580
  */
580
- interface SceneEvaluation {
581
+ interface CaseSceneEvaluation {
581
582
  /** 场景唯一标识 */
582
583
  scene_id: string;
583
584
  /** 场景显示名称 */
@@ -585,18 +586,21 @@ interface SceneEvaluation {
585
586
  /** 综合最终得分 */
586
587
  final_score: number;
587
588
  /** 各维度得分详情 */
588
- dimension_scores: DimensionScores;
589
+ dimension_scores: CaseSceneDimensionScore;
589
590
  }
590
591
  /**
591
- * 多维度评估结果
592
+ * 案例库各维度评分
592
593
  */
593
- interface EvaluationSummaryData {
594
- /** 案例唯一标识 */
595
- case_id: string;
596
- /** 评估方法 */
597
- evaluation_method: EvaluationMethod;
598
- /** 场景评估列表 */
599
- scenes: SceneEvaluation[];
594
+ interface CaseSceneDimensionScore {
595
+ /** 网络容量评分 */
596
+ network_capacity: number;
597
+ /** 服务质量评分 */
598
+ service_quality: number;
599
+ /** 网络韧性评分 */
600
+ network_resilience: number;
601
+ /** 网络复杂度评分 */
602
+ network_complexity: number;
603
+ [x: string]: number;
600
604
  }
601
605
 
602
606
  declare class DirPathDto {
@@ -653,18 +657,15 @@ interface SceneItemMetaResponse extends BaseResponse {
653
657
  */
654
658
  interface UploadFileResponse extends BaseResponse {
655
659
  /** 上传文件的具体信息 */
656
- data?: {
657
- /** 原始文件名 */
658
- originalName: string;
659
- /** 文件大小(字节) */
660
- size: number;
661
- /** 文件 MIME 类型 */
662
- mimetype: string;
663
- /** 服务器存储路径 */
664
- path: string;
665
- /** 服务器生成的文件名 */
666
- filename: string;
667
- };
660
+ data?: UploadFileResponseData;
661
+ }
662
+ interface UploadFileResponseData {
663
+ /** 原始文件名 */
664
+ originalName: string;
665
+ /** 文件大小(字节) */
666
+ size: number;
667
+ uploadPath: string;
668
+ unzipPath: string;
668
669
  }
669
670
  /**
670
671
  * 模型响应
@@ -674,5 +675,19 @@ interface ModelResponse extends BaseResponse {
674
675
  /** 模型实体数据,可能是单个对象、数组或 null */
675
676
  data?: ModelEntity | ModelEntity[] | null;
676
677
  }
678
+ /**
679
+ * 模型图片响应
680
+ * 用于返回模型图片的 base64 数据
681
+ */
682
+ interface FigureAssetsImageResponse extends BaseResponse {
683
+ /** base64格式的图片数据 */
684
+ data?: FigureAssetsImageResponseData;
685
+ }
686
+ interface FigureAssetsImageResponseData {
687
+ base64: string;
688
+ mimeType: string;
689
+ fileSize: number;
690
+ fileName: string;
691
+ }
677
692
 
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 };
693
+ export { type BaseResponse, type CaseEvaluationSummaryJsonData, type CaseItem, type CaseItemMeta, type CaseJsonData, type CaseSceneDimensionScore, type CaseSceneEvaluation, type CaseTreeResponse, type CaseType, DirPathDto, type FigureAssetsImageResponse, type FigureAssetsImageResponseData, InitCaseCacheDto, ModelDto, ModelEntity, type ModelResponse, type SceneBulkConfigRule, type SceneCapacity, type SceneChartConfig, type SceneConstellation, type SceneConstellationType, type SceneConstellationsData, type SceneControlCenterNode, type SceneDisplayOptions, type SceneEvaluationChart, type SceneEvaluationData, type SceneEvaluationDimension, type SceneEvaluationFigureAsset, type SceneEvaluationMethod, type SceneEvaluationModel, type SceneFigureAsset, type SceneFinalScore, type SceneFlow, type SceneFlowPriority, type SceneFlowState, type SceneFlowsData, type SceneGatewayNode, type SceneGeoPosition, type SceneItem, type SceneItemMeta, type SceneItemMetaResponse, type SceneItemSelfInfo, type SceneLink, type SceneLinkNodeType, type SceneLinkState, type SceneLinkType, type SceneLinksData, type SceneManifestData, type SceneManifestTime, type SceneMetric, type SceneMetricDirection, type SceneMetricsData, type SceneMetricsSummary, type SceneMobileUserTerminal, type SceneMobilityModel, type SceneNode, type SceneNodeType, type SceneNodesData, type SceneOtherNode, type SceneOtherUserTerminal, type SceneRole, type SceneSatellite, type SceneSatelliteTLE, type SceneSatelliteType, type SceneSatellitesData, type SceneServiceType, type SceneStaticUserTerminal, type SceneTask, type SceneTaskPriority, type SceneTaskState, type SceneTaskType, type SceneTasksData, type SceneTerminalType, type SceneTimelineData, type SceneTimelineFrame, type SceneTimeseriesPoint, type SceneUserState, type SceneVelocityWGS, SendMessageDto, type UploadFileResponse, type UploadFileResponseData };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types/index.ts","../src/dto/DirPathDto.ts","../src/dto/InitCaseCacheDto.ts","../src/dto/ModelDto.ts","../src/dto/SendMessageDto.ts","../src/entity/ModelEntity.ts"],"sourcesContent":["import { ModelEntity } from '@/entity/ModelEntity'\r\nimport { CaseItem } from './case'\r\nimport { SceneItemMeta } from './scene'\r\n\r\nexport * from '@/dto/DirPathDto'\r\nexport * from '@/dto/InitCaseCacheDto'\r\nexport * from '@/dto/ModelDto'\r\nexport * from '@/dto/SendMessageDto'\r\nexport * from '@/entity/ModelEntity'\r\nexport * from './case'\r\nexport * from './scene'\r\n\r\n/**\r\n * 基础响应结构\r\n * 所有 API 响应的通用格式\r\n */\r\nexport interface BaseResponse {\r\n /** 状态码,通常 200 表示成功,其他表示错误 */\r\n code: number\r\n /** 响应数据,可选 */\r\n data?: any\r\n /** 响应消息或错误描述 */\r\n message: string\r\n}\r\n\r\n/**\r\n * 库树结构响应\r\n * 用于返回层级化的树形结构数据(如目录树、模型库树等)\r\n */\r\nexport interface CaseTreeResponse extends BaseResponse {\r\n /** 树形节点数组 */\r\n data?: CaseItem[]\r\n}\r\n/**\r\n * 场景详细信息响应\r\n * 通过场景文件夹路径查询并返回场景详细信息\r\n */\r\nexport interface SceneItemMetaResponse extends BaseResponse {\r\n /** 树形节点数组 */\r\n data?: SceneItemMeta\r\n}\r\n\r\n/**\r\n * JSON 文件上传响应\r\n * 用于返回上传后的文件详细信息\r\n */\r\nexport interface UploadFileResponse extends BaseResponse {\r\n /** 上传文件的具体信息 */\r\n data?: {\r\n /** 原始文件名 */\r\n originalName: string\r\n /** 文件大小(字节) */\r\n size: number\r\n /** 文件 MIME 类型 */\r\n mimetype: string\r\n /** 服务器存储路径 */\r\n path: string\r\n /** 服务器生成的文件名 */\r\n filename: string\r\n }\r\n}\r\n\r\n/**\r\n * 模型响应\r\n * 用于返回单个模型、模型列表或空值\r\n */\r\nexport interface ModelResponse extends BaseResponse {\r\n /** 模型实体数据,可能是单个对象、数组或 null */\r\n data?: ModelEntity | ModelEntity[] | null\r\n}\r\n","import { ApiProperty } from '@nestjs/swagger'\nexport class DirPathDto {\n @ApiProperty({ description: '相对路径或绝对路径', default: '/dataset/cases' })\n dir!: string\n\n @ApiProperty({\n description: '是否为绝对路径,可选参数',\n default: false,\n })\n isAbsolutePath?: boolean\n}\n","import { ApiProperty } from '@nestjs/swagger'\r\nimport { DirPathDto } from './DirPathDto'\r\nexport class InitCaseCacheDto {\r\n @ApiProperty({\r\n description:\r\n '目标目录路径(isAbsolutePath 为 false 是相对于后端部署包的根目录\"/dataset/cases\",isAbsolutePath为 true 是绝对路径\"D:\\\\XXX\")',\r\n type: [DirPathDto], // 这里必须指定类型\r\n example: [\r\n {\r\n dir: '/dataset/cases',\r\n isAbsolutePath: false,\r\n },\r\n // ,\r\n // {\r\n // dir: 'D:\\\\test',\r\n // isAbsolutePath: true,\r\n // },\r\n ],\r\n })\r\n dirPaths?: Array<DirPathDto>\r\n\r\n @ApiProperty({\r\n description: '文件名模糊匹配关键词,可选参数',\r\n default: '',\r\n })\r\n fileName?: string\r\n}\r\n","import { ApiProperty } from '@nestjs/swagger'\nexport class ModelDto {\n @ApiProperty({ description: '名称', default: '' })\n name!: string\n\n @ApiProperty({\n description: '类型 ( satellite | station | equip | other )',\n default: 'satellite',\n })\n type!: string\n\n @ApiProperty({\n description: '模型相对路径',\n default: '',\n })\n url!: string\n}\n","import { ApiProperty } from '@nestjs/swagger'\nimport { IsNotEmpty, IsString } from 'class-validator'\nexport class SendMessageDto {\n @ApiProperty({ description: '要发送的消息内容' })\n @IsString() // 限制必须是字符串\n @IsNotEmpty() // 限制不能为空\n msg!: string\n}\n","import {\n Entity,\n PrimaryGeneratedColumn,\n Column,\n UpdateDateColumn,\n} from 'typeorm'\n\n@Entity() // 默认映射的数据库表名为 model-entity\nexport class ModelEntity {\n @PrimaryGeneratedColumn() // 自动生成主键值(不用你手动赋值)\n id!: number\n\n @Column()\n name!: string // 模型名称\n\n @Column()\n type!: string // 模型类型(卫星、终端设备、信关站)\n\n @Column()\n url!: string // 模型url\n\n // 每次执行 save 操作更新该实体时,该字段会自动更新为当前时间戳\n @UpdateDateColumn()\n updateTime!: Date\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,qBAA4B;AACrB,IAAM,aAAN,MAAiB;AAAA,EAEtB;AAAA,EAMA;AACF;AAPE;AAAA,MADC,4BAAY,EAAE,aAAa,0DAAa,SAAS,iBAAiB,CAAC;AAAA,GADzD,WAEX;AAMA;AAAA,MAJC,4BAAY;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,EACX,CAAC;AAAA,GAPU,WAQX;;;ACTF,IAAAA,kBAA4B;AAErB,IAAM,mBAAN,MAAuB;AAAA,EAiB5B;AAAA,EAMA;AACF;AAPE;AAAA,MAhBC,6BAAY;AAAA,IACX,aACE;AAAA,IACF,MAAM,CAAC,UAAU;AAAA;AAAA,IACjB,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,gBAAgB;AAAA,MAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMF;AAAA,EACF,CAAC;AAAA,GAhBU,iBAiBX;AAMA;AAAA,MAJC,6BAAY;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,EACX,CAAC;AAAA,GAtBU,iBAuBX;;;ACzBF,IAAAC,kBAA4B;AACrB,IAAM,WAAN,MAAe;AAAA,EAEpB;AAAA,EAMA;AAAA,EAMA;AACF;AAbE;AAAA,MADC,6BAAY,EAAE,aAAa,gBAAM,SAAS,GAAG,CAAC;AAAA,GADpC,SAEX;AAMA;AAAA,MAJC,6BAAY;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,EACX,CAAC;AAAA,GAPU,SAQX;AAMA;AAAA,MAJC,6BAAY;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,EACX,CAAC;AAAA,GAbU,SAcX;;;ACfF,IAAAC,kBAA4B;AAC5B,6BAAqC;AAC9B,IAAM,iBAAN,MAAqB;AAAA;AAAA,EAI1B;AACF;AADE;AAAA,MAHC,6BAAY,EAAE,aAAa,mDAAW,CAAC;AAAA,MACvC,iCAAS;AAAA,MACT,mCAAW;AAAA,GAHD,eAIX;;;ACNF,qBAKO;AAGA,IAAM,cAAN,MAAkB;AAAA;AAAA,EAEvB;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EAIA;AACF;AAdE;AAAA,MADC,uCAAuB;AAAA,GADb,YAEX;AAGA;AAAA,MADC,uBAAO;AAAA,GAJG,YAKX;AAGA;AAAA,MADC,uBAAO;AAAA,GAPG,YAQX;AAGA;AAAA,MADC,uBAAO;AAAA,GAVG,YAWX;AAIA;AAAA,MADC,iCAAiB;AAAA,GAdP,YAeX;AAfW,cAAN;AAAA,MADN,uBAAO;AAAA,GACK;","names":["import_swagger","import_swagger","import_swagger"]}
1
+ {"version":3,"sources":["../src/types/index.ts","../src/dto/DirPathDto.ts","../src/dto/InitCaseCacheDto.ts","../src/dto/ModelDto.ts","../src/dto/SendMessageDto.ts","../src/entity/ModelEntity.ts"],"sourcesContent":["import { ModelEntity } from '@/entity/ModelEntity'\r\nimport { CaseItem } from './case'\r\nimport { SceneItemMeta } from './scene'\r\n\r\nexport * from '@/dto/DirPathDto'\r\nexport * from '@/dto/InitCaseCacheDto'\r\nexport * from '@/dto/ModelDto'\r\nexport * from '@/dto/SendMessageDto'\r\nexport * from '@/entity/ModelEntity'\r\nexport * from './case'\r\nexport * from './scene'\r\n\r\n/**\r\n * 基础响应结构\r\n * 所有 API 响应的通用格式\r\n */\r\nexport interface BaseResponse {\r\n /** 状态码,通常 200 表示成功,其他表示错误 */\r\n code: number\r\n /** 响应数据,可选 */\r\n data?: any\r\n /** 响应消息或错误描述 */\r\n message: string\r\n}\r\n\r\n/**\r\n * 库树结构响应\r\n * 用于返回层级化的树形结构数据(如目录树、模型库树等)\r\n */\r\nexport interface CaseTreeResponse extends BaseResponse {\r\n /** 树形节点数组 */\r\n data?: CaseItem[]\r\n}\r\n\r\n/**\r\n * 场景详细信息响应\r\n * 通过场景文件夹路径查询并返回场景详细信息\r\n */\r\nexport interface SceneItemMetaResponse extends BaseResponse {\r\n /** 树形节点数组 */\r\n data?: SceneItemMeta\r\n}\r\n\r\n/**\r\n * JSON 文件上传响应\r\n * 用于返回上传后的文件详细信息\r\n */\r\nexport interface UploadFileResponse extends BaseResponse {\r\n /** 上传文件的具体信息 */\r\n data?: UploadFileResponseData\r\n}\r\nexport interface UploadFileResponseData {\r\n /** 原始文件名 */\r\n originalName: string\r\n /** 文件大小(字节) */\r\n size: number\r\n uploadPath: string\r\n unzipPath: string\r\n}\r\n\r\n/**\r\n * 模型响应\r\n * 用于返回单个模型、模型列表或空值\r\n */\r\nexport interface ModelResponse extends BaseResponse {\r\n /** 模型实体数据,可能是单个对象、数组或 null */\r\n data?: ModelEntity | ModelEntity[] | null\r\n}\r\n\r\n/**\r\n * 模型图片响应\r\n * 用于返回模型图片的 base64 数据\r\n */\r\nexport interface FigureAssetsImageResponse extends BaseResponse {\r\n /** base64格式的图片数据 */\r\n data?: FigureAssetsImageResponseData\r\n}\r\nexport interface FigureAssetsImageResponseData {\r\n base64: string\r\n mimeType: string\r\n fileSize: number\r\n fileName: string\r\n}\r\n","import { ApiProperty } from '@nestjs/swagger'\nexport class DirPathDto {\n @ApiProperty({ description: '相对路径或绝对路径', default: '/dataset/cases' })\n dir!: string\n\n @ApiProperty({\n description: '是否为绝对路径,可选参数',\n default: false,\n })\n isAbsolutePath?: boolean\n}\n","import { ApiProperty } from '@nestjs/swagger'\r\nimport { DirPathDto } from './DirPathDto'\r\nexport class InitCaseCacheDto {\r\n @ApiProperty({\r\n description:\r\n '目标目录路径(isAbsolutePath 为 false 是相对于后端部署包的根目录\"/dataset/cases\",isAbsolutePath为 true 是绝对路径\"D:\\\\XXX\")',\r\n type: [DirPathDto], // 这里必须指定类型\r\n example: [\r\n {\r\n dir: '/dataset/cases',\r\n isAbsolutePath: false,\r\n },\r\n // ,\r\n // {\r\n // dir: 'D:\\\\test',\r\n // isAbsolutePath: true,\r\n // },\r\n ],\r\n })\r\n dirPaths?: Array<DirPathDto>\r\n\r\n @ApiProperty({\r\n description: '文件名模糊匹配关键词,可选参数',\r\n default: '',\r\n })\r\n fileName?: string\r\n}\r\n","import { ApiProperty } from '@nestjs/swagger'\nexport class ModelDto {\n @ApiProperty({ description: '名称', default: '' })\n name!: string\n\n @ApiProperty({\n description: '类型 ( satellite | station | equip | other )',\n default: 'satellite',\n })\n type!: string\n\n @ApiProperty({\n description: '模型相对路径',\n default: '',\n })\n url!: string\n}\n","import { ApiProperty } from '@nestjs/swagger'\nimport { IsNotEmpty, IsString } from 'class-validator'\nexport class SendMessageDto {\n @ApiProperty({ description: '要发送的消息内容' })\n @IsString() // 限制必须是字符串\n @IsNotEmpty() // 限制不能为空\n msg!: string\n}\n","import {\n Entity,\n PrimaryGeneratedColumn,\n Column,\n UpdateDateColumn,\n} from 'typeorm'\n\n@Entity() // 默认映射的数据库表名为 model-entity\nexport class ModelEntity {\n @PrimaryGeneratedColumn() // 自动生成主键值(不用你手动赋值)\n id!: number\n\n @Column()\n name!: string // 模型名称\n\n @Column()\n type!: string // 模型类型(卫星、终端设备、信关站)\n\n @Column()\n url!: string // 模型url\n\n // 每次执行 save 操作更新该实体时,该字段会自动更新为当前时间戳\n @UpdateDateColumn()\n updateTime!: Date\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,qBAA4B;AACrB,IAAM,aAAN,MAAiB;AAAA,EAEtB;AAAA,EAMA;AACF;AAPE;AAAA,MADC,4BAAY,EAAE,aAAa,0DAAa,SAAS,iBAAiB,CAAC;AAAA,GADzD,WAEX;AAMA;AAAA,MAJC,4BAAY;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,EACX,CAAC;AAAA,GAPU,WAQX;;;ACTF,IAAAA,kBAA4B;AAErB,IAAM,mBAAN,MAAuB;AAAA,EAiB5B;AAAA,EAMA;AACF;AAPE;AAAA,MAhBC,6BAAY;AAAA,IACX,aACE;AAAA,IACF,MAAM,CAAC,UAAU;AAAA;AAAA,IACjB,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,gBAAgB;AAAA,MAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMF;AAAA,EACF,CAAC;AAAA,GAhBU,iBAiBX;AAMA;AAAA,MAJC,6BAAY;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,EACX,CAAC;AAAA,GAtBU,iBAuBX;;;ACzBF,IAAAC,kBAA4B;AACrB,IAAM,WAAN,MAAe;AAAA,EAEpB;AAAA,EAMA;AAAA,EAMA;AACF;AAbE;AAAA,MADC,6BAAY,EAAE,aAAa,gBAAM,SAAS,GAAG,CAAC;AAAA,GADpC,SAEX;AAMA;AAAA,MAJC,6BAAY;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,EACX,CAAC;AAAA,GAPU,SAQX;AAMA;AAAA,MAJC,6BAAY;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,EACX,CAAC;AAAA,GAbU,SAcX;;;ACfF,IAAAC,kBAA4B;AAC5B,6BAAqC;AAC9B,IAAM,iBAAN,MAAqB;AAAA;AAAA,EAI1B;AACF;AADE;AAAA,MAHC,6BAAY,EAAE,aAAa,mDAAW,CAAC;AAAA,MACvC,iCAAS;AAAA,MACT,mCAAW;AAAA,GAHD,eAIX;;;ACNF,qBAKO;AAGA,IAAM,cAAN,MAAkB;AAAA;AAAA,EAEvB;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EAIA;AACF;AAdE;AAAA,MADC,uCAAuB;AAAA,GADb,YAEX;AAGA;AAAA,MADC,uBAAO;AAAA,GAJG,YAKX;AAGA;AAAA,MADC,uBAAO;AAAA,GAPG,YAQX;AAGA;AAAA,MADC,uBAAO;AAAA,GAVG,YAWX;AAIA;AAAA,MADC,iCAAiB;AAAA,GAdP,YAeX;AAfW,cAAN;AAAA,MADN,uBAAO;AAAA,GACK;","names":["import_swagger","import_swagger","import_swagger"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snss-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "label": "卫星网络仿真文件解析数据传输服务",
5
5
  "description": "基于 Nestjs 的 服务端接口,提供文件数据处理解析传输等服务接口",
6
6
  "private": false,