@hddjs/hdd-cloud-types 1.0.4 → 1.0.5
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 +2 -2
- package/hdd-ai-cloud/common/ICallUniCloudParams.ts +20 -20
- package/hdd-ai-cloud/common/IChatAiMessageItem.d.ts +23 -23
- package/hdd-ai-cloud/common/ICommonReqRes.d.ts +30 -30
- package/hdd-ai-cloud/common/ICommonRequstHead.js +2 -2
- package/hdd-ai-cloud/common/ICommonRequstHead.ts +17 -17
- package/hdd-ai-cloud/common/ICounselor.d.ts +4 -4
- package/hdd-ai-cloud/common/IFormatCutOffCollegeData.d.ts +29 -29
- package/hdd-ai-cloud/common/IFormatProfessional.ts +29 -29
- package/hdd-ai-cloud/common/IPicture.d.ts +13 -13
- package/hdd-ai-cloud/common/ISceneAiConfig.d.ts +27 -27
- package/hdd-ai-cloud/common/ISessionContent.d.ts +9 -9
- 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 -0
- package/hdd-ai-cloud/common/IThisContext.d.ts +128 -128
- package/hdd-ai-cloud/common/index.d.ts +15 -14
- package/hdd-ai-cloud/controller/index.d.ts +279 -279
- 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,279 +1,279 @@
|
|
|
1
|
-
import { type IChatAiMessageItem } from '../common/IChatAiMessageItem';
|
|
2
|
-
import { type ICommonReq, type AISceneEnum, type ICommonRes } from '../common';
|
|
3
|
-
import { type IPicture } from '../common/IPicture';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 千问AI聊天api 请求参数
|
|
7
|
-
*/
|
|
8
|
-
export interface IChatQwenReq extends ICommonReq {
|
|
9
|
-
/**
|
|
10
|
-
* 历史对话消息
|
|
11
|
-
*/
|
|
12
|
-
messages: IChatAiMessageItem[];
|
|
13
|
-
/**
|
|
14
|
-
* 是否开启流式传输
|
|
15
|
-
*/
|
|
16
|
-
stream: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* 提问场景
|
|
19
|
-
*/
|
|
20
|
-
scene?: AISceneEnum;
|
|
21
|
-
/**
|
|
22
|
-
* 通道id(如果开启流式传输stream为true则必传)
|
|
23
|
-
*/
|
|
24
|
-
channel?: string;
|
|
25
|
-
/**
|
|
26
|
-
* 是否开发模式 仅调式使用 默认false 前端禁止使用
|
|
27
|
-
*/
|
|
28
|
-
devMode?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
*会话id 如有则表示是已经创建的聊天 没有则表示是新聊天
|
|
31
|
-
*/
|
|
32
|
-
sessionId?: string;
|
|
33
|
-
/**
|
|
34
|
-
*会话步骤id
|
|
35
|
-
*/
|
|
36
|
-
stepId?: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 千问AI聊天api 返回参数
|
|
41
|
-
*/
|
|
42
|
-
export interface IChatQwenRes extends ICommonReq {
|
|
43
|
-
/**
|
|
44
|
-
* ai回复消息(完成拼接之后的消息)
|
|
45
|
-
*/
|
|
46
|
-
message: string;
|
|
47
|
-
/**
|
|
48
|
-
* llm运行总时间 单位ms
|
|
49
|
-
*/
|
|
50
|
-
llmRunTime: number;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* AI聊天api 单次流式传输返回参数
|
|
55
|
-
*/
|
|
56
|
-
export interface IChatAIStreamRes {
|
|
57
|
-
/**
|
|
58
|
-
* 当前返回的消息
|
|
59
|
-
*/
|
|
60
|
-
chunkMessage: string;
|
|
61
|
-
/**
|
|
62
|
-
* 深度思考的原因 仅deepseek模型返回
|
|
63
|
-
*/
|
|
64
|
-
chunkReasonMessage?: string;
|
|
65
|
-
/**
|
|
66
|
-
* 索引(从0开始) 本次流式消息是整体流式消息的第几个
|
|
67
|
-
*/
|
|
68
|
-
index: number;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* DeepSeek AI聊天api 请求参数
|
|
73
|
-
*/
|
|
74
|
-
export interface IChatDeepSeekReq extends ICommonReq {
|
|
75
|
-
/**
|
|
76
|
-
* 历史对话消息
|
|
77
|
-
*/
|
|
78
|
-
messages: IChatAiMessageItem[];
|
|
79
|
-
/**
|
|
80
|
-
* 是否开启流式传输
|
|
81
|
-
*/
|
|
82
|
-
stream: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* 通道id(如果开启流式传输stream为true则必传)
|
|
85
|
-
*/
|
|
86
|
-
channel?: string;
|
|
87
|
-
/**
|
|
88
|
-
* 提问场景
|
|
89
|
-
*/
|
|
90
|
-
scene?: AISceneEnum;
|
|
91
|
-
/**
|
|
92
|
-
* 是否开发模式 仅调式使用 默认false 前端禁止使用
|
|
93
|
-
*/
|
|
94
|
-
devMode?: boolean;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* DeepSeek AI聊天api 返回参数
|
|
99
|
-
*/
|
|
100
|
-
export interface IChatDeepSeekRes extends ICommonReq {
|
|
101
|
-
/**
|
|
102
|
-
* ai回复消息(完成拼接之后的消息)
|
|
103
|
-
*/
|
|
104
|
-
message: string;
|
|
105
|
-
/**
|
|
106
|
-
* deepseek深度思考给出的原因
|
|
107
|
-
*/
|
|
108
|
-
reasonMessage: string;
|
|
109
|
-
/**
|
|
110
|
-
* llm运行总时间 单位ms
|
|
111
|
-
*/
|
|
112
|
-
llmRunTime: number;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export interface IGuessAnswerListReq extends ICommonReq {
|
|
116
|
-
/**
|
|
117
|
-
* 问题内容
|
|
118
|
-
*/
|
|
119
|
-
content: string;
|
|
120
|
-
/**
|
|
121
|
-
* 临时消息id
|
|
122
|
-
*/
|
|
123
|
-
tempMsgId: string;
|
|
124
|
-
/**
|
|
125
|
-
* 场景
|
|
126
|
-
*/
|
|
127
|
-
scene?: AISceneEnum;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface IGuessAnswerListRes extends ICommonRes {
|
|
131
|
-
/**
|
|
132
|
-
* 关联的问题id
|
|
133
|
-
*/
|
|
134
|
-
relatedTempMsgId?: string;
|
|
135
|
-
/**
|
|
136
|
-
* 可能的答案选项
|
|
137
|
-
*/
|
|
138
|
-
choices?: string[];
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* 生成报告的req
|
|
143
|
-
*/
|
|
144
|
-
export interface IGenerateReportReq extends ICommonReq {
|
|
145
|
-
/**
|
|
146
|
-
* 会话id
|
|
147
|
-
*/
|
|
148
|
-
sessionId?: string;
|
|
149
|
-
/**
|
|
150
|
-
* 报告id
|
|
151
|
-
*/
|
|
152
|
-
reportId?: string;
|
|
153
|
-
/**
|
|
154
|
-
* 报告类型,例如:专业、性格
|
|
155
|
-
*/
|
|
156
|
-
reportType?: string;
|
|
157
|
-
/**
|
|
158
|
-
* 咨询类型
|
|
159
|
-
*/
|
|
160
|
-
counselorId?: string;
|
|
161
|
-
/**
|
|
162
|
-
* 报告所需数据
|
|
163
|
-
*/
|
|
164
|
-
params?: any;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* 生成报告的res
|
|
169
|
-
*/
|
|
170
|
-
export interface IGenerateReportRes extends ICommonRes {}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* 咨询师类型请求
|
|
174
|
-
*/
|
|
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[];
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* 智能体的req
|
|
218
|
-
*/
|
|
219
|
-
export interface IAgentReq extends ICommonReq {
|
|
220
|
-
/**
|
|
221
|
-
* 智能体类型 necc为高考智能体
|
|
222
|
-
*/
|
|
223
|
-
type: 'ncee';
|
|
224
|
-
/**
|
|
225
|
-
* 节点名称 恢复对话时候前端透传需要回到的节点名称
|
|
226
|
-
*/
|
|
227
|
-
gotoNodeName?: string;
|
|
228
|
-
/**
|
|
229
|
-
* 会话id
|
|
230
|
-
*/
|
|
231
|
-
sessionId?: string;
|
|
232
|
-
/**
|
|
233
|
-
* 用户输入信息
|
|
234
|
-
*/
|
|
235
|
-
content?: string;
|
|
236
|
-
/**
|
|
237
|
-
* 是否是恢复上次的会话 'F' | 'T'
|
|
238
|
-
*/
|
|
239
|
-
isResume?: 'F' | 'T';
|
|
240
|
-
/**
|
|
241
|
-
* 是否展示图表数据 'F' | 'T'
|
|
242
|
-
*/
|
|
243
|
-
showGraph?: 'F' | 'T';
|
|
244
|
-
gaokaoData: {
|
|
245
|
-
/**
|
|
246
|
-
* 高考排名
|
|
247
|
-
*/
|
|
248
|
-
rank?: string;
|
|
249
|
-
/**
|
|
250
|
-
* 高考主要选课
|
|
251
|
-
*/
|
|
252
|
-
mainSubject?: string;
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* 智能体res
|
|
258
|
-
*/
|
|
259
|
-
export interface IAgentRes extends ICommonRes {
|
|
260
|
-
data?: {
|
|
261
|
-
/**
|
|
262
|
-
* 图结构showGraph为'T'时返回
|
|
263
|
-
*/
|
|
264
|
-
base64Image?: string;
|
|
265
|
-
/**
|
|
266
|
-
* 智能体回复的消息
|
|
267
|
-
*/
|
|
268
|
-
message: string[];
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export interface ISttOneMinuteRes extends ICommonRes {
|
|
273
|
-
data?: {
|
|
274
|
-
/**
|
|
275
|
-
* 翻译结果
|
|
276
|
-
*/
|
|
277
|
-
transResult?: string;
|
|
278
|
-
};
|
|
279
|
-
}
|
|
1
|
+
import { type IChatAiMessageItem } from '../common/IChatAiMessageItem';
|
|
2
|
+
import { type ICommonReq, type AISceneEnum, type ICommonRes } from '../common';
|
|
3
|
+
import { type IPicture } from '../common/IPicture';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 千问AI聊天api 请求参数
|
|
7
|
+
*/
|
|
8
|
+
export interface IChatQwenReq extends ICommonReq {
|
|
9
|
+
/**
|
|
10
|
+
* 历史对话消息
|
|
11
|
+
*/
|
|
12
|
+
messages: IChatAiMessageItem[];
|
|
13
|
+
/**
|
|
14
|
+
* 是否开启流式传输
|
|
15
|
+
*/
|
|
16
|
+
stream: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 提问场景
|
|
19
|
+
*/
|
|
20
|
+
scene?: AISceneEnum;
|
|
21
|
+
/**
|
|
22
|
+
* 通道id(如果开启流式传输stream为true则必传)
|
|
23
|
+
*/
|
|
24
|
+
channel?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 是否开发模式 仅调式使用 默认false 前端禁止使用
|
|
27
|
+
*/
|
|
28
|
+
devMode?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
*会话id 如有则表示是已经创建的聊天 没有则表示是新聊天
|
|
31
|
+
*/
|
|
32
|
+
sessionId?: string;
|
|
33
|
+
/**
|
|
34
|
+
*会话步骤id
|
|
35
|
+
*/
|
|
36
|
+
stepId?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 千问AI聊天api 返回参数
|
|
41
|
+
*/
|
|
42
|
+
export interface IChatQwenRes extends ICommonReq {
|
|
43
|
+
/**
|
|
44
|
+
* ai回复消息(完成拼接之后的消息)
|
|
45
|
+
*/
|
|
46
|
+
message: string;
|
|
47
|
+
/**
|
|
48
|
+
* llm运行总时间 单位ms
|
|
49
|
+
*/
|
|
50
|
+
llmRunTime: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* AI聊天api 单次流式传输返回参数
|
|
55
|
+
*/
|
|
56
|
+
export interface IChatAIStreamRes {
|
|
57
|
+
/**
|
|
58
|
+
* 当前返回的消息
|
|
59
|
+
*/
|
|
60
|
+
chunkMessage: string;
|
|
61
|
+
/**
|
|
62
|
+
* 深度思考的原因 仅deepseek模型返回
|
|
63
|
+
*/
|
|
64
|
+
chunkReasonMessage?: string;
|
|
65
|
+
/**
|
|
66
|
+
* 索引(从0开始) 本次流式消息是整体流式消息的第几个
|
|
67
|
+
*/
|
|
68
|
+
index: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* DeepSeek AI聊天api 请求参数
|
|
73
|
+
*/
|
|
74
|
+
export interface IChatDeepSeekReq extends ICommonReq {
|
|
75
|
+
/**
|
|
76
|
+
* 历史对话消息
|
|
77
|
+
*/
|
|
78
|
+
messages: IChatAiMessageItem[];
|
|
79
|
+
/**
|
|
80
|
+
* 是否开启流式传输
|
|
81
|
+
*/
|
|
82
|
+
stream: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* 通道id(如果开启流式传输stream为true则必传)
|
|
85
|
+
*/
|
|
86
|
+
channel?: string;
|
|
87
|
+
/**
|
|
88
|
+
* 提问场景
|
|
89
|
+
*/
|
|
90
|
+
scene?: AISceneEnum;
|
|
91
|
+
/**
|
|
92
|
+
* 是否开发模式 仅调式使用 默认false 前端禁止使用
|
|
93
|
+
*/
|
|
94
|
+
devMode?: boolean;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* DeepSeek AI聊天api 返回参数
|
|
99
|
+
*/
|
|
100
|
+
export interface IChatDeepSeekRes extends ICommonReq {
|
|
101
|
+
/**
|
|
102
|
+
* ai回复消息(完成拼接之后的消息)
|
|
103
|
+
*/
|
|
104
|
+
message: string;
|
|
105
|
+
/**
|
|
106
|
+
* deepseek深度思考给出的原因
|
|
107
|
+
*/
|
|
108
|
+
reasonMessage: string;
|
|
109
|
+
/**
|
|
110
|
+
* llm运行总时间 单位ms
|
|
111
|
+
*/
|
|
112
|
+
llmRunTime: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface IGuessAnswerListReq extends ICommonReq {
|
|
116
|
+
/**
|
|
117
|
+
* 问题内容
|
|
118
|
+
*/
|
|
119
|
+
content: string;
|
|
120
|
+
/**
|
|
121
|
+
* 临时消息id
|
|
122
|
+
*/
|
|
123
|
+
tempMsgId: string;
|
|
124
|
+
/**
|
|
125
|
+
* 场景
|
|
126
|
+
*/
|
|
127
|
+
scene?: AISceneEnum;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface IGuessAnswerListRes extends ICommonRes {
|
|
131
|
+
/**
|
|
132
|
+
* 关联的问题id
|
|
133
|
+
*/
|
|
134
|
+
relatedTempMsgId?: string;
|
|
135
|
+
/**
|
|
136
|
+
* 可能的答案选项
|
|
137
|
+
*/
|
|
138
|
+
choices?: string[];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* 生成报告的req
|
|
143
|
+
*/
|
|
144
|
+
export interface IGenerateReportReq extends ICommonReq {
|
|
145
|
+
/**
|
|
146
|
+
* 会话id
|
|
147
|
+
*/
|
|
148
|
+
sessionId?: string;
|
|
149
|
+
/**
|
|
150
|
+
* 报告id
|
|
151
|
+
*/
|
|
152
|
+
reportId?: string;
|
|
153
|
+
/**
|
|
154
|
+
* 报告类型,例如:专业、性格
|
|
155
|
+
*/
|
|
156
|
+
reportType?: string;
|
|
157
|
+
/**
|
|
158
|
+
* 咨询类型
|
|
159
|
+
*/
|
|
160
|
+
counselorId?: string;
|
|
161
|
+
/**
|
|
162
|
+
* 报告所需数据
|
|
163
|
+
*/
|
|
164
|
+
params?: any;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* 生成报告的res
|
|
169
|
+
*/
|
|
170
|
+
export interface IGenerateReportRes extends ICommonRes {}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* 咨询师类型请求
|
|
174
|
+
*/
|
|
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[];
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* 智能体的req
|
|
218
|
+
*/
|
|
219
|
+
export interface IAgentReq extends ICommonReq {
|
|
220
|
+
/**
|
|
221
|
+
* 智能体类型 necc为高考智能体
|
|
222
|
+
*/
|
|
223
|
+
type: 'ncee';
|
|
224
|
+
/**
|
|
225
|
+
* 节点名称 恢复对话时候前端透传需要回到的节点名称
|
|
226
|
+
*/
|
|
227
|
+
gotoNodeName?: string;
|
|
228
|
+
/**
|
|
229
|
+
* 会话id
|
|
230
|
+
*/
|
|
231
|
+
sessionId?: string;
|
|
232
|
+
/**
|
|
233
|
+
* 用户输入信息
|
|
234
|
+
*/
|
|
235
|
+
content?: string;
|
|
236
|
+
/**
|
|
237
|
+
* 是否是恢复上次的会话 'F' | 'T'
|
|
238
|
+
*/
|
|
239
|
+
isResume?: 'F' | 'T';
|
|
240
|
+
/**
|
|
241
|
+
* 是否展示图表数据 'F' | 'T'
|
|
242
|
+
*/
|
|
243
|
+
showGraph?: 'F' | 'T';
|
|
244
|
+
gaokaoData: {
|
|
245
|
+
/**
|
|
246
|
+
* 高考排名
|
|
247
|
+
*/
|
|
248
|
+
rank?: string;
|
|
249
|
+
/**
|
|
250
|
+
* 高考主要选课
|
|
251
|
+
*/
|
|
252
|
+
mainSubject?: string;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* 智能体res
|
|
258
|
+
*/
|
|
259
|
+
export interface IAgentRes extends ICommonRes {
|
|
260
|
+
data?: {
|
|
261
|
+
/**
|
|
262
|
+
* 图结构showGraph为'T'时返回
|
|
263
|
+
*/
|
|
264
|
+
base64Image?: string;
|
|
265
|
+
/**
|
|
266
|
+
* 智能体回复的消息
|
|
267
|
+
*/
|
|
268
|
+
message: string[];
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface ISttOneMinuteRes extends ICommonRes {
|
|
273
|
+
data?: {
|
|
274
|
+
/**
|
|
275
|
+
* 翻译结果
|
|
276
|
+
*/
|
|
277
|
+
transResult?: string;
|
|
278
|
+
};
|
|
279
|
+
}
|
package/hdd-ai-cloud/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './common';
|
|
2
|
-
export * from './controller';
|
|
3
|
-
export * from './service';
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from './controller';
|
|
3
|
+
export * from './service';
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { type IFormatCutOffCollegeData } from '../common/IFormatCutOffCollegeData';
|
|
2
|
-
/**
|
|
3
|
-
* 根据排名获取投档院校专业冲稳保的范围service返回
|
|
4
|
-
* @interface ApiResponseData
|
|
5
|
-
* @description 定义API返回数据的结构
|
|
6
|
-
*/
|
|
7
|
-
export interface IFilterCutOffCollegeByRankRes {
|
|
8
|
-
/** 目标排名 */
|
|
9
|
-
targetRank: number;
|
|
10
|
-
/** 统计摘要信息 */
|
|
11
|
-
summary: {
|
|
12
|
-
/** 冲击院校数量 */
|
|
13
|
-
chongCount: number;
|
|
14
|
-
/** 稳妥院校数量 */
|
|
15
|
-
wenCount: number;
|
|
16
|
-
/** 保底院校数量 */
|
|
17
|
-
baoCount: number;
|
|
18
|
-
/** 总院校数量 */
|
|
19
|
-
totalCount: number;
|
|
20
|
-
};
|
|
21
|
-
/** 各类院校的排名范围说明 */
|
|
22
|
-
ranges: {
|
|
23
|
-
/** 冲击院校排名范围 */
|
|
24
|
-
chong: string;
|
|
25
|
-
/** 稳妥院校排名范围 */
|
|
26
|
-
wen: string;
|
|
27
|
-
/** 保底院校排名范围 */
|
|
28
|
-
bao: string;
|
|
29
|
-
};
|
|
30
|
-
/** 冲击院校列表 */
|
|
31
|
-
chongColleges: IFormatCutOffCollegeData[];
|
|
32
|
-
/** 稳妥院校列表 */
|
|
33
|
-
wenColleges: IFormatCutOffCollegeData[];
|
|
34
|
-
/** 保底院校列表 */
|
|
35
|
-
baoColleges: IFormatCutOffCollegeData[];
|
|
36
|
-
}
|
|
1
|
+
import { type IFormatCutOffCollegeData } from '../common/IFormatCutOffCollegeData';
|
|
2
|
+
/**
|
|
3
|
+
* 根据排名获取投档院校专业冲稳保的范围service返回
|
|
4
|
+
* @interface ApiResponseData
|
|
5
|
+
* @description 定义API返回数据的结构
|
|
6
|
+
*/
|
|
7
|
+
export interface IFilterCutOffCollegeByRankRes {
|
|
8
|
+
/** 目标排名 */
|
|
9
|
+
targetRank: number;
|
|
10
|
+
/** 统计摘要信息 */
|
|
11
|
+
summary: {
|
|
12
|
+
/** 冲击院校数量 */
|
|
13
|
+
chongCount: number;
|
|
14
|
+
/** 稳妥院校数量 */
|
|
15
|
+
wenCount: number;
|
|
16
|
+
/** 保底院校数量 */
|
|
17
|
+
baoCount: number;
|
|
18
|
+
/** 总院校数量 */
|
|
19
|
+
totalCount: number;
|
|
20
|
+
};
|
|
21
|
+
/** 各类院校的排名范围说明 */
|
|
22
|
+
ranges: {
|
|
23
|
+
/** 冲击院校排名范围 */
|
|
24
|
+
chong: string;
|
|
25
|
+
/** 稳妥院校排名范围 */
|
|
26
|
+
wen: string;
|
|
27
|
+
/** 保底院校排名范围 */
|
|
28
|
+
bao: string;
|
|
29
|
+
};
|
|
30
|
+
/** 冲击院校列表 */
|
|
31
|
+
chongColleges: IFormatCutOffCollegeData[];
|
|
32
|
+
/** 稳妥院校列表 */
|
|
33
|
+
wenColleges: IFormatCutOffCollegeData[];
|
|
34
|
+
/** 保底院校列表 */
|
|
35
|
+
baoColleges: IFormatCutOffCollegeData[];
|
|
36
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './hdd-ai-cloud';
|
|
2
|
-
export * from './HddCloud';
|
|
1
|
+
export * from './hdd-ai-cloud';
|
|
2
|
+
export * from './HddCloud';
|
package/npmPublish.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
### 发布前切换到官方的站点
|
|
2
|
-
npm config set registry https://registry.npmjs.org/
|
|
3
|
-
### 执行登录
|
|
4
|
-
npm login
|
|
5
|
-
### 发公有包
|
|
6
|
-
npm publish --access=public
|
|
7
|
-
```
|
|
8
|
-
--access=public必须要加上,不然发布的是私有包,而NPM上要发布私有包是要收费的,如果第一步init时没有加上--scope=hddjs,那么这里可以不加上这个后缀,因为不带作用域的包发布时,默认是公有的
|
|
9
|
-
```
|
|
10
|
-
### 发布完包之后切会淘宝源
|
|
1
|
+
### 发布前切换到官方的站点
|
|
2
|
+
npm config set registry https://registry.npmjs.org/
|
|
3
|
+
### 执行登录
|
|
4
|
+
npm login
|
|
5
|
+
### 发公有包
|
|
6
|
+
npm publish --access=public
|
|
7
|
+
```
|
|
8
|
+
--access=public必须要加上,不然发布的是私有包,而NPM上要发布私有包是要收费的,如果第一步init时没有加上--scope=hddjs,那么这里可以不加上这个后缀,因为不带作用域的包发布时,默认是公有的
|
|
9
|
+
```
|
|
10
|
+
### 发布完包之后切会淘宝源
|
|
11
11
|
npm config set registry https://registry.npmmirror.com
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@hddjs/hdd-cloud-types",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"main": "index.js",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
|
-
},
|
|
8
|
-
"author": "LZC",
|
|
9
|
-
"license": "ISC",
|
|
10
|
-
"types": "./index.d.ts",
|
|
11
|
-
"description": ""
|
|
1
|
+
{
|
|
2
|
+
"name": "@hddjs/hdd-cloud-types",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
|
+
},
|
|
8
|
+
"author": "LZC",
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"description": ""
|
|
12
12
|
}
|