@hddjs/hdd-cloud-types 1.0.6 → 1.0.8
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/HddCloud/common/index.d.ts +4 -4
- package/HddCloud/index.d.ts +59 -59
- package/README.md +2 -2
- package/hdd-ai-cloud/common/AISceneEnum.d.ts +54 -54
- package/hdd-ai-cloud/common/IAliFcContext.d.ts +5 -5
- package/hdd-ai-cloud/common/ICallUniCloudParams.js +3 -3
- package/hdd-ai-cloud/common/ICallUniCloudParams.ts +20 -20
- package/hdd-ai-cloud/common/IChatAiMessageItem.d.ts +23 -23
- package/hdd-ai-cloud/common/ICommonError.d.ts +13 -0
- package/hdd-ai-cloud/common/ICommonReqRes.d.ts +23 -30
- package/hdd-ai-cloud/common/ICommonRequstHead.js +3 -3
- package/hdd-ai-cloud/common/ICommonRequstHead.ts +17 -17
- package/hdd-ai-cloud/common/ICounselor.d.ts +4 -4
- package/hdd-ai-cloud/common/ICounselorType.d.ts +23 -23
- package/hdd-ai-cloud/common/IFormatCutOffCollegeData.d.ts +29 -29
- package/hdd-ai-cloud/common/IFormatProfessional.js +3 -3
- package/hdd-ai-cloud/common/IFormatProfessional.ts +29 -29
- package/hdd-ai-cloud/common/IGetRecommendSchool.d.ts +77 -73
- package/hdd-ai-cloud/common/IInquiryBasicInfo.d.ts +39 -39
- package/hdd-ai-cloud/common/IInquirySession.d.ts +25 -25
- package/hdd-ai-cloud/common/IPicture.d.ts +13 -13
- package/hdd-ai-cloud/common/IReportData.d.ts +136 -0
- package/hdd-ai-cloud/common/ISceneAiConfig.d.ts +27 -27
- package/hdd-ai-cloud/common/IScoreRank.d.ts +18 -18
- package/hdd-ai-cloud/common/ISelectSubject.d.ts +29 -29
- package/hdd-ai-cloud/common/ISessionContent.d.ts +27 -27
- package/hdd-ai-cloud/common/ISessionRole.d.ts +21 -21
- package/hdd-ai-cloud/common/ISseChunk.d.ts +57 -57
- package/hdd-ai-cloud/common/ISseData.d.ts +96 -96
- package/hdd-ai-cloud/common/IThisContext.d.ts +128 -128
- package/hdd-ai-cloud/common/ReportTypeEnum.d.ts +7 -0
- package/hdd-ai-cloud/common/SubReportTypeEnum.d.ts +18 -0
- package/hdd-ai-cloud/common/index.d.ts +27 -23
- package/hdd-ai-cloud/controller/index.d.ts +480 -453
- package/hdd-ai-cloud/index.d.ts +3 -3
- package/hdd-ai-cloud/service/index.d.ts +36 -36
- package/index.d.ts +2 -2
- package/npmPublish.md +10 -10
- package/package.json +11 -11
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { type SessionRoleEnum } from './ISessionRole';
|
|
2
|
-
/**
|
|
3
|
-
* sse流式返回片段 @deprecated 即将废弃 请整体切换到ISseData
|
|
4
|
-
*/
|
|
5
|
-
export interface ISseChunk {
|
|
6
|
-
/**
|
|
7
|
-
* sse流式返回片段的类型
|
|
8
|
-
*/
|
|
9
|
-
type: ISseChunkType;
|
|
10
|
-
/**
|
|
11
|
-
* sse流式返回片段的角色
|
|
12
|
-
*/
|
|
13
|
-
role?: SessionRoleEnum;
|
|
14
|
-
/**
|
|
15
|
-
* 当type为content时sse流式返回片段的内容
|
|
16
|
-
*/
|
|
17
|
-
content?: string | null;
|
|
18
|
-
/**
|
|
19
|
-
* 当type为reason时sse流式返回片段的原因
|
|
20
|
-
*/
|
|
21
|
-
reason?: string | null;
|
|
22
|
-
/**
|
|
23
|
-
* 当type为formatJson时sse流式返回片段的格式化json
|
|
24
|
-
* */
|
|
25
|
-
formatJson?: {
|
|
26
|
-
/**
|
|
27
|
-
* 是否开始下一个流程
|
|
28
|
-
*/
|
|
29
|
-
startNextStep?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* 可能的答案选项
|
|
32
|
-
*/
|
|
33
|
-
guessAnswerList?: string[];
|
|
34
|
-
/**
|
|
35
|
-
* 是否是总结
|
|
36
|
-
*/
|
|
37
|
-
isSummary?: boolean;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* sse流式返回片段的类型 @deprecated 即将废弃 请整体切换到ISseData
|
|
43
|
-
*/
|
|
44
|
-
export const enum ISseChunkType {
|
|
45
|
-
/**
|
|
46
|
-
* 内容
|
|
47
|
-
*/
|
|
48
|
-
CONTENT = 'content',
|
|
49
|
-
/**
|
|
50
|
-
* 原因
|
|
51
|
-
*/
|
|
52
|
-
REASON = 'reason',
|
|
53
|
-
/**
|
|
54
|
-
* 格式化的json
|
|
55
|
-
* */
|
|
56
|
-
FORMATJSON = 'formatJson'
|
|
57
|
-
}
|
|
1
|
+
import { type SessionRoleEnum } from './ISessionRole';
|
|
2
|
+
/**
|
|
3
|
+
* sse流式返回片段 @deprecated 即将废弃 请整体切换到ISseData
|
|
4
|
+
*/
|
|
5
|
+
export interface ISseChunk {
|
|
6
|
+
/**
|
|
7
|
+
* sse流式返回片段的类型
|
|
8
|
+
*/
|
|
9
|
+
type: ISseChunkType;
|
|
10
|
+
/**
|
|
11
|
+
* sse流式返回片段的角色
|
|
12
|
+
*/
|
|
13
|
+
role?: SessionRoleEnum;
|
|
14
|
+
/**
|
|
15
|
+
* 当type为content时sse流式返回片段的内容
|
|
16
|
+
*/
|
|
17
|
+
content?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* 当type为reason时sse流式返回片段的原因
|
|
20
|
+
*/
|
|
21
|
+
reason?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* 当type为formatJson时sse流式返回片段的格式化json
|
|
24
|
+
* */
|
|
25
|
+
formatJson?: {
|
|
26
|
+
/**
|
|
27
|
+
* 是否开始下一个流程
|
|
28
|
+
*/
|
|
29
|
+
startNextStep?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 可能的答案选项
|
|
32
|
+
*/
|
|
33
|
+
guessAnswerList?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* 是否是总结
|
|
36
|
+
*/
|
|
37
|
+
isSummary?: boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* sse流式返回片段的类型 @deprecated 即将废弃 请整体切换到ISseData
|
|
43
|
+
*/
|
|
44
|
+
export const enum ISseChunkType {
|
|
45
|
+
/**
|
|
46
|
+
* 内容
|
|
47
|
+
*/
|
|
48
|
+
CONTENT = 'content',
|
|
49
|
+
/**
|
|
50
|
+
* 原因
|
|
51
|
+
*/
|
|
52
|
+
REASON = 'reason',
|
|
53
|
+
/**
|
|
54
|
+
* 格式化的json
|
|
55
|
+
* */
|
|
56
|
+
FORMATJSON = 'formatJson'
|
|
57
|
+
}
|
|
@@ -1,96 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* uniCloud云对象的this上下文
|
|
3
|
-
*/
|
|
4
|
-
export interface IThisContext {
|
|
5
|
-
/**
|
|
6
|
-
* 函数执行开始的时间戳 毫秒 在_before中赋值
|
|
7
|
-
*/
|
|
8
|
-
funStartTime?: number;
|
|
9
|
-
/**
|
|
10
|
-
* 函数执行结束的时间戳 毫秒 在_after中赋值
|
|
11
|
-
*/
|
|
12
|
-
funEndTime?: number;
|
|
13
|
-
/**
|
|
14
|
-
* 函数执行的总时间 毫秒 在_after中赋值funEndTime - funStartTime
|
|
15
|
-
*/
|
|
16
|
-
funRunTime?: number;
|
|
17
|
-
/**
|
|
18
|
-
* 通过token解析出来的用户信息 _before中赋值 未登录时候赋值为null
|
|
19
|
-
*/
|
|
20
|
-
tokenRes?: ITokenRes | null;
|
|
21
|
-
/**
|
|
22
|
-
* 获取的云对象信息
|
|
23
|
-
*/
|
|
24
|
-
getCloudInfo?: () => ICloudInfo;
|
|
25
|
-
/**
|
|
26
|
-
* 获取客户端信息
|
|
27
|
-
*/
|
|
28
|
-
getClientInfo?: () => IClientInfo;
|
|
29
|
-
/**
|
|
30
|
-
* 获取token
|
|
31
|
-
*/
|
|
32
|
-
getUniIdToken?: () => string;
|
|
33
|
-
/**
|
|
34
|
-
* 获取调用的云对象方法名
|
|
35
|
-
*/
|
|
36
|
-
getMethodName?: () => string;
|
|
37
|
-
/**
|
|
38
|
-
* 获取调用云对象时候传入的参数
|
|
39
|
-
*/
|
|
40
|
-
getParams?: () => any;
|
|
41
|
-
/**
|
|
42
|
-
* 获取请求id
|
|
43
|
-
*/
|
|
44
|
-
getUniCloudRequestId?: () => string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* this.tokenRes解析出来的用户信息
|
|
49
|
-
*/
|
|
50
|
-
export interface ITokenRes {
|
|
51
|
-
/**
|
|
52
|
-
* 错误码 0为成功
|
|
53
|
-
*/
|
|
54
|
-
errCode?: number;
|
|
55
|
-
/**
|
|
56
|
-
* token解析出来的uid
|
|
57
|
-
*/
|
|
58
|
-
uid?: string;
|
|
59
|
-
/**
|
|
60
|
-
* token解析出来的role角色
|
|
61
|
-
*/
|
|
62
|
-
role?: string[];
|
|
63
|
-
/**
|
|
64
|
-
* token解析出来的permission权限
|
|
65
|
-
*/
|
|
66
|
-
permission?: string[];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* this.getClientInfo返回的客户端信息
|
|
71
|
-
*/
|
|
72
|
-
export interface IClientInfo {
|
|
73
|
-
/**
|
|
74
|
-
* 客户端ip
|
|
75
|
-
*/
|
|
76
|
-
clientIP?: string;
|
|
77
|
-
/**
|
|
78
|
-
* 客户端ua,注意非本地运行环境下客户端getSystemInfoSync也会获取ua参数并上传给云对象,但是云对象会从http请求头里面获取ua而不是clientInfo里面的ua
|
|
79
|
-
*/
|
|
80
|
-
userAgent?: string;
|
|
81
|
-
/**
|
|
82
|
-
* 调用来源
|
|
83
|
-
* client uni-app客户端导入云对象调用
|
|
84
|
-
* function 由其他云函数或云对象调用
|
|
85
|
-
* http 云对象URL化后通过http访问调用 HBuilderX 3.5.2+
|
|
86
|
-
* timing 定时任务调用云对象 HBuilderX 3.5.2+
|
|
87
|
-
* server 云函数上传并运行
|
|
88
|
-
*/
|
|
89
|
-
source?: 'client' | 'function' | 'http' | 'timing' | 'server';
|
|
90
|
-
/**
|
|
91
|
-
* 请求id
|
|
92
|
-
*/
|
|
93
|
-
requestId?: string;
|
|
94
|
-
/**
|
|
95
|
-
* 场景值 客户端uni.getLaunchOptionsSync返回的scene参数,新增于HBuilderX 3.5.1
|
|
96
|
-
*/
|
|
97
|
-
scene?: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* this.getCloudInfo获取的云对象信息
|
|
102
|
-
*/
|
|
103
|
-
export interface ICloudInfo {
|
|
104
|
-
/**
|
|
105
|
-
* 服务空间供应商,支付宝云为:alipay,阿里云为:aliyun,腾讯云为:tencent
|
|
106
|
-
*/
|
|
107
|
-
provider: 'alipay' | 'aliyun' | 'tencent';
|
|
108
|
-
/**
|
|
109
|
-
* 服务空间Id
|
|
110
|
-
*/
|
|
111
|
-
spaceId: string;
|
|
112
|
-
/**
|
|
113
|
-
* 当前获取的服务空间id是否为迁移前的服务空间id
|
|
114
|
-
*/
|
|
115
|
-
useOldSpaceId: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* 云对象名称
|
|
118
|
-
*/
|
|
119
|
-
functionName: string;
|
|
120
|
-
/**
|
|
121
|
-
* 云对象此值固定为cloudobject
|
|
122
|
-
*/
|
|
123
|
-
functionType: 'cloudobject';
|
|
124
|
-
/**
|
|
125
|
-
* 运行环境,取值为local(本地运行)或cloud(云端运行) 新增于HBuilderX 4.25
|
|
126
|
-
*/
|
|
127
|
-
runtimeEnv: 'local' | 'cloud';
|
|
128
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* uniCloud云对象的this上下文
|
|
3
|
+
*/
|
|
4
|
+
export interface IThisContext {
|
|
5
|
+
/**
|
|
6
|
+
* 函数执行开始的时间戳 毫秒 在_before中赋值
|
|
7
|
+
*/
|
|
8
|
+
funStartTime?: number;
|
|
9
|
+
/**
|
|
10
|
+
* 函数执行结束的时间戳 毫秒 在_after中赋值
|
|
11
|
+
*/
|
|
12
|
+
funEndTime?: number;
|
|
13
|
+
/**
|
|
14
|
+
* 函数执行的总时间 毫秒 在_after中赋值funEndTime - funStartTime
|
|
15
|
+
*/
|
|
16
|
+
funRunTime?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 通过token解析出来的用户信息 _before中赋值 未登录时候赋值为null
|
|
19
|
+
*/
|
|
20
|
+
tokenRes?: ITokenRes | null;
|
|
21
|
+
/**
|
|
22
|
+
* 获取的云对象信息
|
|
23
|
+
*/
|
|
24
|
+
getCloudInfo?: () => ICloudInfo;
|
|
25
|
+
/**
|
|
26
|
+
* 获取客户端信息
|
|
27
|
+
*/
|
|
28
|
+
getClientInfo?: () => IClientInfo;
|
|
29
|
+
/**
|
|
30
|
+
* 获取token
|
|
31
|
+
*/
|
|
32
|
+
getUniIdToken?: () => string;
|
|
33
|
+
/**
|
|
34
|
+
* 获取调用的云对象方法名
|
|
35
|
+
*/
|
|
36
|
+
getMethodName?: () => string;
|
|
37
|
+
/**
|
|
38
|
+
* 获取调用云对象时候传入的参数
|
|
39
|
+
*/
|
|
40
|
+
getParams?: () => any;
|
|
41
|
+
/**
|
|
42
|
+
* 获取请求id
|
|
43
|
+
*/
|
|
44
|
+
getUniCloudRequestId?: () => string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* this.tokenRes解析出来的用户信息
|
|
49
|
+
*/
|
|
50
|
+
export interface ITokenRes {
|
|
51
|
+
/**
|
|
52
|
+
* 错误码 0为成功
|
|
53
|
+
*/
|
|
54
|
+
errCode?: number;
|
|
55
|
+
/**
|
|
56
|
+
* token解析出来的uid
|
|
57
|
+
*/
|
|
58
|
+
uid?: string;
|
|
59
|
+
/**
|
|
60
|
+
* token解析出来的role角色
|
|
61
|
+
*/
|
|
62
|
+
role?: string[];
|
|
63
|
+
/**
|
|
64
|
+
* token解析出来的permission权限
|
|
65
|
+
*/
|
|
66
|
+
permission?: string[];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* this.getClientInfo返回的客户端信息
|
|
71
|
+
*/
|
|
72
|
+
export interface IClientInfo {
|
|
73
|
+
/**
|
|
74
|
+
* 客户端ip
|
|
75
|
+
*/
|
|
76
|
+
clientIP?: string;
|
|
77
|
+
/**
|
|
78
|
+
* 客户端ua,注意非本地运行环境下客户端getSystemInfoSync也会获取ua参数并上传给云对象,但是云对象会从http请求头里面获取ua而不是clientInfo里面的ua
|
|
79
|
+
*/
|
|
80
|
+
userAgent?: string;
|
|
81
|
+
/**
|
|
82
|
+
* 调用来源
|
|
83
|
+
* client uni-app客户端导入云对象调用
|
|
84
|
+
* function 由其他云函数或云对象调用
|
|
85
|
+
* http 云对象URL化后通过http访问调用 HBuilderX 3.5.2+
|
|
86
|
+
* timing 定时任务调用云对象 HBuilderX 3.5.2+
|
|
87
|
+
* server 云函数上传并运行
|
|
88
|
+
*/
|
|
89
|
+
source?: 'client' | 'function' | 'http' | 'timing' | 'server';
|
|
90
|
+
/**
|
|
91
|
+
* 请求id
|
|
92
|
+
*/
|
|
93
|
+
requestId?: string;
|
|
94
|
+
/**
|
|
95
|
+
* 场景值 客户端uni.getLaunchOptionsSync返回的scene参数,新增于HBuilderX 3.5.1
|
|
96
|
+
*/
|
|
97
|
+
scene?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* this.getCloudInfo获取的云对象信息
|
|
102
|
+
*/
|
|
103
|
+
export interface ICloudInfo {
|
|
104
|
+
/**
|
|
105
|
+
* 服务空间供应商,支付宝云为:alipay,阿里云为:aliyun,腾讯云为:tencent
|
|
106
|
+
*/
|
|
107
|
+
provider: 'alipay' | 'aliyun' | 'tencent';
|
|
108
|
+
/**
|
|
109
|
+
* 服务空间Id
|
|
110
|
+
*/
|
|
111
|
+
spaceId: string;
|
|
112
|
+
/**
|
|
113
|
+
* 当前获取的服务空间id是否为迁移前的服务空间id
|
|
114
|
+
*/
|
|
115
|
+
useOldSpaceId: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* 云对象名称
|
|
118
|
+
*/
|
|
119
|
+
functionName: string;
|
|
120
|
+
/**
|
|
121
|
+
* 云对象此值固定为cloudobject
|
|
122
|
+
*/
|
|
123
|
+
functionType: 'cloudobject';
|
|
124
|
+
/**
|
|
125
|
+
* 运行环境,取值为local(本地运行)或cloud(云端运行) 新增于HBuilderX 4.25
|
|
126
|
+
*/
|
|
127
|
+
runtimeEnv: 'local' | 'cloud';
|
|
128
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 报告类型枚举
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export const enum SubReportTypeEnum {
|
|
6
|
+
/** 分数定位分析 */
|
|
7
|
+
GAOKAO_SCORE_POSITION = 'gaokao-score-position',
|
|
8
|
+
/** 高考志愿兴趣分析:霍兰德职业兴趣测评报告 */
|
|
9
|
+
GAOKAO_INTEREST = 'gaokao-interest',
|
|
10
|
+
/** 高考志愿推荐:院校排序等推荐 */
|
|
11
|
+
GAOKAO_VOLUNTEER_RECOMMENDATION = 'gaokao-volunteer-recommendation',
|
|
12
|
+
/** 高考志愿专业匹配分析:专业推荐报告(专业匹配分析\排序) */
|
|
13
|
+
GAOKAO_MAJOR_MATCHING = 'gaokao-major-matching',
|
|
14
|
+
/** 高考志愿专业院校解读 */
|
|
15
|
+
GAOKAO_KEY_UNIVERSITY = 'gaokao-key-university',
|
|
16
|
+
/** 高考志愿未来发展:未来发展建议 */
|
|
17
|
+
GAOKAO_FUTURE_DEVELOPMENT = 'gaokao-future-development'
|
|
18
|
+
}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
export * from './ICommonReqRes';
|
|
2
|
-
export * from './ISessionRole';
|
|
3
|
-
export * from './ISessionContent';
|
|
4
|
-
export * from './ICounselor';
|
|
5
|
-
export * from './IChatAiMessageItem';
|
|
6
|
-
export * from './AISceneEnum';
|
|
7
|
-
export * from './ISceneAiConfig';
|
|
8
|
-
export * from './IAliFcContext';
|
|
9
|
-
export * from './ISseChunk';
|
|
10
|
-
export * from './ICallUniCloudParams';
|
|
11
|
-
export * from './ICommonRequstHead';
|
|
12
|
-
export * from './IFormatCutOffCollegeData';
|
|
13
|
-
export * from './IFormatProfessional.ts';
|
|
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
|
+
export * from './ICommonReqRes';
|
|
2
|
+
export * from './ISessionRole';
|
|
3
|
+
export * from './ISessionContent';
|
|
4
|
+
export * from './ICounselor';
|
|
5
|
+
export * from './IChatAiMessageItem';
|
|
6
|
+
export * from './AISceneEnum';
|
|
7
|
+
export * from './ISceneAiConfig';
|
|
8
|
+
export * from './IAliFcContext';
|
|
9
|
+
export * from './ISseChunk';
|
|
10
|
+
export * from './ICallUniCloudParams';
|
|
11
|
+
export * from './ICommonRequstHead';
|
|
12
|
+
export * from './IFormatCutOffCollegeData';
|
|
13
|
+
export * from './IFormatProfessional.ts';
|
|
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';
|
|
24
|
+
export * from './ICommonError';
|
|
25
|
+
export * from './ReportTypeEnum';
|
|
26
|
+
export * from './SubReportTypeEnum';
|
|
27
|
+
export * from './IReportData';
|