@hddjs/hdd-cloud-types 1.0.4 → 1.0.6

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.
@@ -1,2 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ //# sourceMappingURL=ICallUniCloudParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICallUniCloudParams.js","sourceRoot":"","sources":["ICallUniCloudParams.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ //# sourceMappingURL=ICommonRequstHead.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICommonRequstHead.js","sourceRoot":"","sources":["ICommonRequstHead.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { type IPicture } from './IPicture';
2
+
3
+ /**
4
+ * 咨询师信息
5
+ */
6
+ export interface ICounselorType {
7
+ /**
8
+ * 咨询师id
9
+ */
10
+ counselorId?: string;
11
+ /**
12
+ * 咨询师名称
13
+ */
14
+ counselorName?: string;
15
+ /**
16
+ * 咨询师头像url
17
+ */
18
+ avatar?: IPicture | null;
19
+ /**
20
+ * 报告类型
21
+ */
22
+ reportTypes: string[];
23
+ }
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ //# sourceMappingURL=IFormatProfessional.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFormatProfessional.js","sourceRoot":"","sources":["IFormatProfessional.ts"],"names":[],"mappings":""}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * 推荐学校
3
+ */
4
+ export interface IGetRecommendSchool {
5
+ /**
6
+ * 年份
7
+ */
8
+ year?: number;
9
+ /**
10
+ * 分数
11
+ */
12
+ grade?: number;
13
+ /**
14
+ * 学校id
15
+ */
16
+ schoolId?: number;
17
+ /**
18
+ * 学校名称
19
+ */
20
+ schoolName?: String;
21
+ /**
22
+ * 省份id
23
+ */
24
+ provinceId?: string;
25
+ /**
26
+ * 省份名称
27
+ */
28
+ schoolProvince?: string;
29
+ /**
30
+ * 组别id
31
+ */
32
+ groupId?: number;
33
+ /**
34
+ * 批次id
35
+ */
36
+ batchId?: string;
37
+ /**
38
+ * 专业标识
39
+ */
40
+ majorGroupId?: string;
41
+ /**
42
+ * 专业选科要求
43
+ */
44
+ majorRequirement?: string;
45
+ /**
46
+ * 专业选科要求id
47
+ */
48
+ majorRequirementId?: number;
49
+ /**
50
+ * 省控线
51
+ */
52
+ minControlLine?: number;
53
+ /**
54
+ * 排名
55
+ */
56
+ rank?: number;
57
+ /**
58
+ * 招生代码
59
+ */
60
+ enrollmentId?: string;
61
+ /**
62
+ * 专业名称
63
+ */
64
+ majorName?: string;
65
+ /**
66
+ * 学费
67
+ */
68
+ money?: number;
69
+ /**
70
+ * 招生人数
71
+ */
72
+ hc?: number;
73
+ }
@@ -0,0 +1,39 @@
1
+ import { type ISelectSubject } from './ISelectSubject';
2
+
3
+ /**
4
+ * 基础信息
5
+ */
6
+ export interface IInquiryBasicInfo {
7
+ /**
8
+ * 选科信息
9
+ */
10
+ selectSubject?: ISelectSubject;
11
+ /**
12
+ * 会话id
13
+ */
14
+ sessionId?: string;
15
+ /**
16
+ * 省份id
17
+ */
18
+ provinceId?: string;
19
+ /**
20
+ * 省份
21
+ */
22
+ province?: string;
23
+ /**
24
+ * 年份
25
+ */
26
+ year?: number;
27
+ /**
28
+ * 分数
29
+ */
30
+ grade?: number | null;
31
+ /**
32
+ * 排名
33
+ */
34
+ rank?: number | null;
35
+ /**
36
+ * 组别id
37
+ */
38
+ groupId?: number;
39
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 问询会话
3
+ */
4
+ export interface IInquirySession {
5
+ /**
6
+ * 用户id
7
+ */
8
+ uid?: string;
9
+ /**
10
+ * 咨询师id
11
+ */
12
+ counselorId?: string;
13
+ /**
14
+ * 咨询师name
15
+ */
16
+ counselorName?: string;
17
+ /**
18
+ * 会话标题
19
+ */
20
+ sessionTitle?: string;
21
+ /**
22
+ * 当前步骤
23
+ */
24
+ currentStepId?: string;
25
+ }
@@ -5,9 +5,9 @@ export interface IPicture {
5
5
  /**
6
6
  * domain的类型,ali、qiniu
7
7
  */
8
- domainType?: string;
8
+ domainType?: string | null;
9
9
  /**
10
10
  * 图片path
11
11
  */
12
- path?: string;
12
+ path?: string | null;
13
13
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * 报告信息
3
+ */
4
+ export interface IReportInfo {
5
+ /**
6
+ * 会话id
7
+ */
8
+ sessionId?: string;
9
+ /**
10
+ * 报告类型
11
+ */
12
+ reportType?: string;
13
+ /**
14
+ * 状态 0:创建中,1:已创建
15
+ */
16
+ status?: number;
17
+ /**
18
+ * 报告信息
19
+ */
20
+ reportInfo?: string;
21
+ }
@@ -0,0 +1,23 @@
1
+ import { type IReportInfo } from './IReportInfo';
2
+ import type { IScoreRank } from './IScoreRank';
3
+
4
+ /**
5
+ * 报告信息
6
+ */
7
+ export interface IReportResult {
8
+ /**
9
+ * code
10
+ * part: 部分完成
11
+ * generating: 都未完成
12
+ * generated: 全部完成
13
+ */
14
+ code?: string;
15
+ /**
16
+ *报告信息
17
+ */
18
+ reportInfos?: IReportInfo[];
19
+ /**
20
+ * 一分一档
21
+ */
22
+ gradeInfo?: IScoreRank;
23
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 一分一档前端展示对象
3
+ */
4
+ export interface IScoreRankSeriesVO {
5
+ name?: string;
6
+ type?: string;
7
+ data?: Array<string | null>;
8
+ index?: number;
9
+ color?: string;
10
+ }
11
+
12
+ /**
13
+ * 一份一档表
14
+ */
15
+ export interface IScoreRank {
16
+ categories?: Array<string | null>;
17
+ series?: Array<IScoreRankSeriesVO | null>;
18
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * 选科信息
3
+ */
4
+ export interface ISelectSubject {
5
+ /**
6
+ * 物理
7
+ */
8
+ physics?: boolean;
9
+ /**
10
+ * 化学
11
+ */
12
+ chemistry?: boolean;
13
+ /**
14
+ * 生物
15
+ */
16
+ biology?: boolean;
17
+ /**
18
+ * 历史
19
+ */
20
+ history?: boolean;
21
+ /**
22
+ * 政治
23
+ */
24
+ politics?: boolean;
25
+ /**
26
+ * 地理
27
+ */
28
+ geography?: boolean;
29
+ }
@@ -1,9 +1,27 @@
1
+ import { type SessionRoleEnum } from './ISessionRole';
2
+
1
3
  /**
2
4
  * 会话内容
3
5
  */
4
6
  export interface ISessionContent {
5
7
  /**
6
- * 消息内容id
8
+ * sessionId
7
9
  */
8
- _id?: string;
10
+ sessionId?: string;
11
+ /**
12
+ * 步骤id
13
+ */
14
+ stepId?: string;
15
+ /**
16
+ * 内容
17
+ */
18
+ content?: string;
19
+ /**
20
+ * 原内容类型
21
+ */
22
+ oriContentType?: string;
23
+ /**
24
+ * 角色
25
+ */
26
+ role?: SessionRoleEnum;
9
27
  }
@@ -1,6 +1,6 @@
1
1
  import { type SessionRoleEnum } from './ISessionRole';
2
2
  /**
3
- * sse流式返回片段
3
+ * sse流式返回片段 @deprecated 即将废弃 请整体切换到ISseData
4
4
  */
5
5
  export interface ISseChunk {
6
6
  /**
@@ -27,19 +27,19 @@ export interface ISseChunk {
27
27
  * 是否开始下一个流程
28
28
  */
29
29
  startNextStep?: boolean;
30
- /**
31
- * 是否是总结
32
- */
33
- isSummary?: boolean;
34
30
  /**
35
31
  * 可能的答案选项
36
32
  */
37
33
  guessAnswerList?: string[];
34
+ /**
35
+ * 是否是总结
36
+ */
37
+ isSummary?: boolean;
38
38
  };
39
39
  }
40
40
 
41
41
  /**
42
- * sse流式返回片段的类型
42
+ * sse流式返回片段的类型 @deprecated 即将废弃 请整体切换到ISseData
43
43
  */
44
44
  export const enum ISseChunkType {
45
45
  /**
@@ -0,0 +1,96 @@
1
+ /**
2
+ * sse流式返回片段
3
+ */
4
+ export interface ISseData {
5
+ /**
6
+ * 流式返回片段的类型
7
+ */
8
+ type: SseDataTypeEnum;
9
+ /**
10
+ * ai返回的对话内容
11
+ */
12
+ aiMessage?: {
13
+ content?: string;
14
+ };
15
+ /**
16
+ * ai思考的内容
17
+ */
18
+ aiThinking?: {
19
+ reason?: string;
20
+ };
21
+ /**
22
+ * 需要收集非结构化信息
23
+ */
24
+ needCollectstructuredInfo?: {
25
+ /**
26
+ * 表单类型
27
+ */
28
+ type?: string;
29
+ /**
30
+ * 表单标题
31
+ */
32
+ title?: string;
33
+ /**
34
+ * 表单描述
35
+ */
36
+ description?: string;
37
+ /**
38
+ * 需要收集的字段列表
39
+ */
40
+ fields: {
41
+ /**
42
+ * 字段名称
43
+ */
44
+ name?: string;
45
+ /**
46
+ * 字段标签
47
+ */
48
+ label?: string;
49
+ /**
50
+ * 字段描述
51
+ */
52
+ description?: string;
53
+ /**
54
+ * 是否必填
55
+ */
56
+ required?: boolean;
57
+ /**
58
+ * 选项
59
+ */
60
+ options?: string[];
61
+ /**
62
+ * 占位符
63
+ */
64
+ placeholder?: string;
65
+ }[];
66
+ };
67
+ /**
68
+ * 错误信息
69
+ */
70
+ errorInfo?: {
71
+ errCode?: string;
72
+ errMsg?: string;
73
+ };
74
+ }
75
+
76
+ /**
77
+ * sse流式返回片段的类型
78
+ */
79
+ export const enum SseDataTypeEnum {
80
+ /**
81
+ * ai返回的对话内容
82
+ */
83
+ AIMessage = 'aiMessage',
84
+ /**
85
+ * ai思考的内容
86
+ */
87
+ AiThinking = 'aiThinking',
88
+ /**
89
+ * 需要收集结构化信息
90
+ */
91
+ NeedCollectStructuredInfo = 'needCollectStructuredInfo',
92
+ /**
93
+ * 错误信息
94
+ */
95
+ ErrorInfo = 'errorInfo'
96
+ }
@@ -12,3 +12,12 @@ export * from './ICommonRequstHead';
12
12
  export * from './IFormatCutOffCollegeData';
13
13
  export * from './IFormatProfessional.ts';
14
14
  export * from './IPicture.ts';
15
+ export * from './ISseData';
16
+ export * from './ISelectSubject';
17
+ export * from './IInquiryBasicInfo';
18
+ export * from './IInquirySession';
19
+ export * from './ISessionContent';
20
+ export * from './IGetRecommendSchool';
21
+ export * from './IScoreRank';
22
+ export * from './IReportInfo';
23
+ export * from './IReportResult';
@@ -1,6 +1,17 @@
1
1
  import { type IChatAiMessageItem } from '../common/IChatAiMessageItem';
2
- import { type ICommonReq, type AISceneEnum, type ICommonRes } from '../common';
3
- import { type IPicture } from '../common/IPicture';
2
+ import {
3
+ type ICommonReq,
4
+ type AISceneEnum,
5
+ type ICommonRes,
6
+ type ISelectSubject,
7
+ type IInquiryBasicInfo,
8
+ type IInquirySession,
9
+ type ISessionContent,
10
+ type IGetRecommendSchool,
11
+ type IScoreRank,
12
+ type IReportResult
13
+ } from '../common';
14
+ import { type ICounselorType } from '../common/ICounselorType';
4
15
 
5
16
  /**
6
17
  * 千问AI聊天api 请求参数
@@ -170,47 +181,10 @@ export interface IGenerateReportReq extends ICommonReq {
170
181
  export interface IGenerateReportRes extends ICommonRes {}
171
182
 
172
183
  /**
173
- * 咨询师类型请求
184
+ * 获取咨询师类型的响应
174
185
  */
175
- export interface ICounselorTypeReq extends ICommonReq {
176
- /**
177
- * 咨询师id
178
- */
179
- counselorId?: string;
180
- /**
181
- * 咨询师名称
182
- */
183
- counselorName?: string;
184
- /**
185
- * 咨询师头像url
186
- */
187
- avatar?: IPicture;
188
- /**
189
- * 报告类型
190
- */
191
- reportTypes: string[];
192
- }
193
-
194
- /**
195
- * 咨询师类型响应
196
- */
197
- export interface IGenerateReportRes extends ICommonRes {
198
- /**
199
- * 咨询师id
200
- */
201
- counselorId?: string;
202
- /**
203
- * 咨询师名称
204
- */
205
- counselorName?: string;
206
- /**
207
- * 咨询师头像url
208
- */
209
- avatar?: IPicture;
210
- /**
211
- * 报告类型
212
- */
213
- reportTypes: string[];
186
+ export interface IGetCounselorTypeRes extends ICommonRes {
187
+ data?: ICounselorType[] | null;
214
188
  }
215
189
 
216
190
  /**
@@ -277,3 +251,203 @@ export interface ISttOneMinuteRes extends ICommonRes {
277
251
  transResult?: string;
278
252
  };
279
253
  }
254
+
255
+ /**
256
+ * 获取group info的req
257
+ */
258
+ export interface IGetGroupInfoReq extends ICommonReq, ISelectSubject {}
259
+
260
+ /**
261
+ * 获取group info的res
262
+ */
263
+ export interface IGetGroupInfoRes extends ICommonRes {
264
+ data?: {
265
+ /**
266
+ * 组别id
267
+ */
268
+ groupId?: number;
269
+ /**
270
+ * 描述
271
+ */
272
+ desc?: string;
273
+ };
274
+ }
275
+
276
+ /**
277
+ * 添加基础信息req
278
+ */
279
+ export interface IAddInquiryBasicInfoReq extends ICommonReq, IInquiryBasicInfo {}
280
+
281
+ /**
282
+ * 添加基础信息res
283
+ */
284
+ export interface IAddInquiryBasicInfoRes extends ICommonRes {
285
+ data?: {
286
+ /**
287
+ * 基础信息id
288
+ */
289
+ basicId?: string;
290
+ };
291
+ }
292
+
293
+ /**
294
+ * 获取基础信息req
295
+ */
296
+ export interface IGetInquiryBasicInfoReq extends ICommonRes {
297
+ sessionId?: string;
298
+ }
299
+
300
+ /**
301
+ * 添加基础信息res
302
+ */
303
+ export interface IGetInquiryBasicInfoRes extends ICommonRes {
304
+ data?: {
305
+ /**
306
+ * 基础信息
307
+ */
308
+ basicInfo?: IInquiryBasicInfo;
309
+ };
310
+ }
311
+
312
+ /**
313
+ * 添加问询会话req
314
+ */
315
+ export interface IAddInquirySessionReq extends ICommonReq, IInquirySession {}
316
+
317
+ /**
318
+ * 添加问询会话res
319
+ */
320
+ export interface IAddInquirySessionRes extends ICommonRes {
321
+ data?: {
322
+ /**
323
+ * 问询会话id
324
+ */
325
+ sessionId?: string;
326
+ };
327
+ }
328
+
329
+ /**
330
+ * 获取问询会话req
331
+ */
332
+ export interface IGetInquirySessionListReq extends ICommonRes {
333
+ /**
334
+ * 咨询师id
335
+ */
336
+ counselorId?: string;
337
+ }
338
+
339
+ /**
340
+ * 添加问询会话res
341
+ */
342
+ export interface IGetInquirySessionListRes extends ICommonRes {
343
+ data?: {
344
+ /**
345
+ * 问询会话列表
346
+ */
347
+ sessionInfos?: IInquirySession[];
348
+ };
349
+ }
350
+
351
+ /**
352
+ * 添加会话内容req
353
+ */
354
+ export interface IAddSessionContentReq extends ICommonReq, ISessionContent {}
355
+
356
+ /**
357
+ * 添加会话内容res
358
+ */
359
+ export interface IAddSessionContentRes extends ICommonRes {
360
+ data?: {
361
+ /**
362
+ * 会话内容id
363
+ */
364
+ contentId?: string;
365
+ };
366
+ }
367
+
368
+ /**
369
+ * 获取会话内容req
370
+ */
371
+ export interface IGetSessionContentReq extends ICommonRes {
372
+ /**
373
+ * 会话id
374
+ */
375
+ sessionId?: string;
376
+ /**
377
+ * 步骤id
378
+ */
379
+ stepId?: string;
380
+ }
381
+
382
+ /**
383
+ * 添加会话内容res
384
+ */
385
+ export interface IGetSessionContentRes extends ICommonRes {
386
+ data?: {
387
+ /**
388
+ * 会话内容列表
389
+ */
390
+ contents?: ISessionContent[];
391
+ };
392
+ }
393
+
394
+ /**
395
+ * 获取推荐学校req
396
+ */
397
+ export interface IGetRecommendSchoolReq extends ICommonRes {
398
+ /**
399
+ * 会话id
400
+ */
401
+ sessionId?: string;
402
+ }
403
+
404
+ /**
405
+ * 获取推荐学校res
406
+ */
407
+ export interface IGetRecommendSchoolRes extends ICommonRes {
408
+ data?: {
409
+ /**
410
+ * 推荐学校列表
411
+ */
412
+ schoolInfos?: IGetRecommendSchool[];
413
+ };
414
+ }
415
+
416
+ /**
417
+ * 一分一档req
418
+ */
419
+ export interface IGetGradeInfoReq extends ICommonRes {
420
+ /**
421
+ * 会话id
422
+ */
423
+ sessionId?: string;
424
+ }
425
+
426
+ /**
427
+ * 一分一档res
428
+ */
429
+ export interface IGetGradeInfoRes extends ICommonRes {
430
+ data?: {
431
+ /**
432
+ * 一分一档
433
+ */
434
+ gradeInfo?: IScoreRank;
435
+ };
436
+ }
437
+
438
+ /**
439
+ * 生成报告信息req
440
+ */
441
+ export interface IGenerateReportInfoReq extends ICommonRes {
442
+ /**
443
+ * 会话id
444
+ */
445
+ sessionId?: string;
446
+ }
447
+
448
+ /**
449
+ * 生成报告信息res
450
+ */
451
+ export interface IGenerateReportInfoRes extends ICommonRes {
452
+ data?: IReportResult;
453
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hddjs/hdd-cloud-types",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"