@hddjs/hdd-cloud-types 1.0.15-SNAPSHOT.1 → 1.0.15-SNAPSHOT.2
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.
|
@@ -30,6 +30,16 @@ export interface ISessionContent {
|
|
|
30
30
|
toolMessage?: IToolMessage;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* 系统消息
|
|
35
|
+
*/
|
|
36
|
+
export interface ISystemMessage {
|
|
37
|
+
/**
|
|
38
|
+
* 内容
|
|
39
|
+
*/
|
|
40
|
+
content?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
33
43
|
/**
|
|
34
44
|
* 工具消息类型
|
|
35
45
|
*/
|
|
@@ -92,7 +102,7 @@ export interface IToolMessage {
|
|
|
92
102
|
/**
|
|
93
103
|
* 工具消息类型
|
|
94
104
|
*/
|
|
95
|
-
type
|
|
105
|
+
type?: IToolTypeEnum;
|
|
96
106
|
/**
|
|
97
107
|
* 工具消息内容
|
|
98
108
|
*/
|
|
@@ -115,11 +125,16 @@ export interface IToolMessage {
|
|
|
115
125
|
actionDescription?: string;
|
|
116
126
|
};
|
|
117
127
|
/**
|
|
118
|
-
*
|
|
128
|
+
* 需要收集结构化信息
|
|
119
129
|
*/
|
|
120
130
|
needCollectStructuredInfo?: INeedCollectStructuredInfo;
|
|
121
131
|
}
|
|
122
132
|
|
|
133
|
+
/**
|
|
134
|
+
* 系统消息
|
|
135
|
+
*/
|
|
136
|
+
export interface ISystemMessage {}
|
|
137
|
+
|
|
123
138
|
/**
|
|
124
139
|
* uCharts 图表类型
|
|
125
140
|
*/
|
|
@@ -153,7 +168,7 @@ export interface IUChartsSeries {
|
|
|
153
168
|
/**
|
|
154
169
|
* 数据值数组
|
|
155
170
|
*/
|
|
156
|
-
data?: number[] |
|
|
171
|
+
data?: number[] | number;
|
|
157
172
|
/**
|
|
158
173
|
* 系列颜色
|
|
159
174
|
*/
|
|
@@ -281,6 +296,8 @@ export interface IUChartsOpts {
|
|
|
281
296
|
scrollColor?: string;
|
|
282
297
|
scrollBackgroundColor?: string;
|
|
283
298
|
format?: string;
|
|
299
|
+
min?: number;
|
|
300
|
+
max?: number;
|
|
284
301
|
};
|
|
285
302
|
/**
|
|
286
303
|
* Y轴配置
|
|
@@ -363,6 +380,7 @@ export interface IUChartsOpts {
|
|
|
363
380
|
opacity?: number;
|
|
364
381
|
max?: number;
|
|
365
382
|
labelShow?: boolean;
|
|
383
|
+
border?: boolean;
|
|
366
384
|
labelColor?: string;
|
|
367
385
|
labelPointShow?: boolean;
|
|
368
386
|
labelPointColor?: string;
|
|
@@ -489,30 +507,35 @@ export interface INeedCollectStructuredInfo {
|
|
|
489
507
|
/**
|
|
490
508
|
* 需要收集的字段列表
|
|
491
509
|
*/
|
|
492
|
-
fields:
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
510
|
+
fields: ICollectStructuredInfoField[];
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* 需要收集的字段列表
|
|
515
|
+
*/
|
|
516
|
+
export interface ICollectStructuredInfoField {
|
|
517
|
+
/**
|
|
518
|
+
* 字段名称
|
|
519
|
+
*/
|
|
520
|
+
name?: string;
|
|
521
|
+
/**
|
|
522
|
+
* 字段标签
|
|
523
|
+
*/
|
|
524
|
+
label?: string;
|
|
525
|
+
/**
|
|
526
|
+
* 字段描述
|
|
527
|
+
*/
|
|
528
|
+
description?: string;
|
|
529
|
+
/**
|
|
530
|
+
* 是否必填
|
|
531
|
+
*/
|
|
532
|
+
required?: boolean;
|
|
533
|
+
/**
|
|
534
|
+
* 选项
|
|
535
|
+
*/
|
|
536
|
+
options?: string[];
|
|
537
|
+
/**
|
|
538
|
+
* 占位符
|
|
539
|
+
*/
|
|
540
|
+
placeholder?: string;
|
|
518
541
|
}
|
|
@@ -387,7 +387,12 @@ export interface IGetInquirySessionListRes extends ICommonRes {
|
|
|
387
387
|
/**
|
|
388
388
|
* 添加会话内容req
|
|
389
389
|
*/
|
|
390
|
-
export interface IAddSessionContentReq extends ICommonReq, ISessionContent {
|
|
390
|
+
export interface IAddSessionContentReq extends ICommonReq, ISessionContent {
|
|
391
|
+
/**
|
|
392
|
+
* 会话id
|
|
393
|
+
*/
|
|
394
|
+
sessionId?: string;
|
|
395
|
+
}
|
|
391
396
|
|
|
392
397
|
/**
|
|
393
398
|
* 添加会话内容res
|