@hddjs/hdd-cloud-types 1.0.8 → 1.0.12

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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 报告信息
3
+ */
4
+ export interface IConfigInfo {
5
+ tokenInfo?: string;
6
+ }
@@ -0,0 +1,67 @@
1
+ /**
2
+ * 格式化高考基础信息的类型定义
3
+ */
4
+ export interface IFormatGaokaoBasicInfo {
5
+ /**
6
+ * 高考基础信息
7
+ */
8
+ gaokao?: {
9
+ /**
10
+ * 省份
11
+ */
12
+ province?: {
13
+ id?: string;
14
+ name?: string;
15
+ sname?: string;
16
+ pinyin?: string;
17
+ examType?: string;
18
+ isActived?: boolean;
19
+ };
20
+ /**
21
+ * 分数
22
+ */
23
+ score?: string | number;
24
+ /**
25
+ * 排名
26
+ */
27
+ rank?: string | number;
28
+ /**
29
+ * 选课
30
+ */
31
+ subjects?: string[];
32
+ };
33
+ /**
34
+ * 三维探索 包括专业、城市、学校
35
+ */
36
+ explore?: {
37
+ /**
38
+ * 优先级 城市优先 学校优先 专业优先
39
+ */
40
+ priority?: string;
41
+ /**
42
+ * 意向专业
43
+ */
44
+ major?: string;
45
+ /**
46
+ * 意向城市
47
+ */
48
+ city?: string;
49
+ /**
50
+ * 意向学校
51
+ */
52
+ school?: string;
53
+ };
54
+ /**
55
+ * 其他信息
56
+ */
57
+ otherInfo?: {
58
+ /**
59
+ * 未来计划
60
+ */
61
+ futurePlan?: string;
62
+ /**
63
+ * 经济计划
64
+ */
65
+ economicPlan?: string;
66
+ };
67
+ }
@@ -24,4 +24,8 @@ export interface ISessionContent {
24
24
  * 角色
25
25
  */
26
26
  role?: SessionRoleEnum;
27
+ /**
28
+ * 备注
29
+ */
30
+ formatInfo?: string;
27
31
  }
@@ -6,6 +6,10 @@ export interface ISseData {
6
6
  * 流式返回片段的类型
7
7
  */
8
8
  type: SseDataTypeEnum;
9
+ /**
10
+ * 标识对话步骤id
11
+ */
12
+ stepId?: string;
9
13
  /**
10
14
  * ai返回的对话内容
11
15
  */
@@ -26,6 +30,10 @@ export interface ISseData {
26
30
  * 表单类型
27
31
  */
28
32
  type?: string;
33
+ /**
34
+ * 对用户的语言提示
35
+ */
36
+ voiceTip?: string;
29
37
  /**
30
38
  * 表单标题
31
39
  */
@@ -34,6 +42,10 @@ export interface ISseData {
34
42
  * 表单描述
35
43
  */
36
44
  description?: string;
45
+ /**
46
+ * 等效的AI内容(当不使用结构化展示时候可以使用等效的AI内容展示给用户 或 用于上下文)
47
+ */
48
+ equalAiContent: string;
37
49
  /**
38
50
  * 需要收集的字段列表
39
51
  */
@@ -71,6 +83,29 @@ export interface ISseData {
71
83
  errCode?: string;
72
84
  errMsg?: string;
73
85
  };
86
+ /**
87
+ * 行为动作
88
+ */
89
+ behaviorAction?: {
90
+ /**
91
+ * 行为动作
92
+ */
93
+ action?: IBehaviorAction;
94
+ /**
95
+ * 行为动作描述
96
+ */
97
+ actionDescription?: string;
98
+ };
99
+ }
100
+
101
+ /**
102
+ * 行为动作
103
+ */
104
+ export const enum IBehaviorAction {
105
+ /**
106
+ * 结束当前咨询流程,开始生成报告
107
+ */
108
+ EndInquiryToGenerateReport = 'endInquiryToGenerateReport'
74
109
  }
75
110
 
76
111
  /**
@@ -92,5 +127,9 @@ export const enum SseDataTypeEnum {
92
127
  /**
93
128
  * 错误信息
94
129
  */
95
- ErrorInfo = 'errorInfo'
130
+ ErrorInfo = 'errorInfo',
131
+ /**
132
+ * 行为动作
133
+ */
134
+ BehaviorAction = 'behaviorAction'
96
135
  }
@@ -25,3 +25,5 @@ export * from './ICommonError';
25
25
  export * from './ReportTypeEnum';
26
26
  export * from './SubReportTypeEnum';
27
27
  export * from './IReportData';
28
+ export * from './IFormatGaokaoBasicInfo';
29
+ export * from './IConfigInfo';
@@ -11,9 +11,15 @@ import {
11
11
  type IScoreRank,
12
12
  type IReportResult,
13
13
  type ReportTypeEnum,
14
- type SubReportTypeEnum
14
+ type SubReportTypeEnum,
15
+ type IFormatGaokaoBasicInfo,
16
+ type IConfigInfo
15
17
  } from '../common';
16
18
  import { type ICounselorType } from '../common/ICounselorType';
19
+ import { type IGaokaoVolunteerRecommendationReport } from '../common/IReportData';
20
+ import { type IGaokaoInterestReport } from '../common/IReportData';
21
+ import { type IGaokaoMajorMatchingReport } from '../common/IReportData';
22
+ import { type IGaokaoFutureDevelopmentReport } from '../common/IReportData';
17
23
 
18
24
  /**
19
25
  * 千问AI聊天api 请求参数
@@ -170,7 +176,24 @@ export interface IAiGenerateReportRes extends ICommonRes {
170
176
  /**
171
177
  * 报告数据
172
178
  */
173
- reportData?: Record<string, unknown>;
179
+ reportData?: {
180
+ /**
181
+ * 高考志愿推荐:院校排序等推荐
182
+ */
183
+ 'gaokao-volunteer-recommendation'?: IGaokaoVolunteerRecommendationReport;
184
+ /**
185
+ * 高考志愿兴趣分析:霍兰德职业兴趣测评报告
186
+ */
187
+ 'gaokao-interest'?: IGaokaoInterestReport;
188
+ /**
189
+ * 高考志愿专业匹配分析:专业推荐报告(专业匹配分析\排序)
190
+ */
191
+ 'gaokao-major-matching'?: IGaokaoMajorMatchingReport;
192
+ /**
193
+ * 高考志愿未来发展:未来发展建议
194
+ */
195
+ 'gaokao-future-development'?: IGaokaoFutureDevelopmentReport;
196
+ };
174
197
  }
175
198
 
176
199
  /**
@@ -218,6 +241,10 @@ export interface IAgentReq extends ICommonReq {
218
241
  * 用户输入信息
219
242
  */
220
243
  content?: string;
244
+ /**
245
+ * 步骤id
246
+ */
247
+ stepId?: string;
221
248
  /**
222
249
  * 是否是恢复上次的会话 'F' | 'T'
223
250
  */
@@ -227,31 +254,13 @@ export interface IAgentReq extends ICommonReq {
227
254
  */
228
255
  showGraph?: 'F' | 'T';
229
256
  /**
230
- * 高考数据
257
+ * 表单类型
231
258
  */
232
- gaokaoData?: {
233
- /**
234
- * 高考排名
235
- */
236
- rank?: string;
237
- /**
238
- * 高考主要选课
239
- */
240
- mainSubject?: string;
241
- };
259
+ formType?: 'gaokaoBasicInfo';
242
260
  /**
243
- * 报告数据
261
+ * 格式化的表单数据 包括高考数据和报告数据
244
262
  */
245
- reportData?: {
246
- /**
247
- * 报告id
248
- */
249
- reportId?: string;
250
- /**
251
- * 报告类型
252
- */
253
- reportTypeList?: ('holland' | 'career')[];
254
- };
263
+ formattedFormData?: IFormatGaokaoBasicInfo;
255
264
  }
256
265
 
257
266
  /**
@@ -478,3 +487,10 @@ export interface IGenerateReportInfoReq extends ICommonRes {
478
487
  export interface IGenerateReportInfoRes extends ICommonRes {
479
488
  data?: IReportResult;
480
489
  }
490
+
491
+ /**
492
+ * 获取token
493
+ */
494
+ export interface IGetConfigInfoRes extends ICommonRes {
495
+ data?: IConfigInfo;
496
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hddjs/hdd-cloud-types",
3
- "version": "1.0.8",
3
+ "version": "1.0.12",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"