tencentcloud-sdk-nodejs-yunsou 4.0.917 → 4.1.9
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/README.md +79 -30
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/yunsou/index.js +6 -0
- package/es/services/yunsou/v20180504/index.js +6 -0
- package/es/services/yunsou/v20180504/yunsou_client.js +12 -0
- package/es/services/yunsou/v20180504/yunsou_models.js +0 -0
- package/es/services/yunsou/v20191115/index.js +6 -0
- package/es/services/yunsou/v20191115/yunsou_client.js +12 -0
- package/es/services/yunsou/v20191115/yunsou_models.js +0 -0
- package/package.json +26 -8
- package/tencentcloud/services/yunsou/index.d.ts +4 -4
- package/tencentcloud/services/yunsou/index.js +2 -2
- package/tencentcloud/services/yunsou/v20180504/index.js +2 -1
- package/tencentcloud/services/yunsou/v20180504/yunsou_client.js +2 -1
- package/tencentcloud/services/yunsou/v20191115/index.js +2 -1
- package/tencentcloud/services/yunsou/v20191115/yunsou_client.js +2 -1
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/products.md +0 -254
- package/src/index.ts +0 -1
- package/src/services/index.ts +0 -1
- package/src/services/yunsou/index.ts +0 -7
- package/src/services/yunsou/v20180504/index.ts +0 -6
- package/src/services/yunsou/v20180504/yunsou_client.ts +0 -54
- package/src/services/yunsou/v20180504/yunsou_models.ts +0 -164
- package/src/services/yunsou/v20191115/index.ts +0 -6
- package/src/services/yunsou/v20191115/yunsou_client.ts +0 -61
- package/src/services/yunsou/v20191115/yunsou_models.ts +0 -282
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing,
|
|
11
|
-
* software distributed under the License is distributed on an
|
|
12
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
-
* KIND, either express or implied. See the License for the
|
|
14
|
-
* specific language governing permissions and limitations
|
|
15
|
-
* under the License.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* 搜索结果
|
|
20
|
-
*/
|
|
21
|
-
export interface SearchResult {
|
|
22
|
-
/**
|
|
23
|
-
* 检索耗时,单位ms
|
|
24
|
-
*/
|
|
25
|
-
CostTime: number
|
|
26
|
-
/**
|
|
27
|
-
* 搜索最多可以展示的结果数,多页
|
|
28
|
-
*/
|
|
29
|
-
DisplayNum: number
|
|
30
|
-
/**
|
|
31
|
-
* 和检索请求中的echo相对应
|
|
32
|
-
*/
|
|
33
|
-
Echo: string
|
|
34
|
-
/**
|
|
35
|
-
* 检索结果的估算篇数,由索引平台估算
|
|
36
|
-
*/
|
|
37
|
-
EResultNum: number
|
|
38
|
-
/**
|
|
39
|
-
* 检索返回的当前页码结果数
|
|
40
|
-
*/
|
|
41
|
-
ResultNum: number
|
|
42
|
-
/**
|
|
43
|
-
* 检索结果列表
|
|
44
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
45
|
-
*/
|
|
46
|
-
ResultList: Array<SearchResultItem>
|
|
47
|
-
/**
|
|
48
|
-
* 检索的分词结果,array类型,可包含多个
|
|
49
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
50
|
-
*/
|
|
51
|
-
SegList: Array<SearchResultSeg>
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* SearchResultSeg
|
|
56
|
-
*/
|
|
57
|
-
export interface SearchResultSeg {
|
|
58
|
-
/**
|
|
59
|
-
* 分词
|
|
60
|
-
*/
|
|
61
|
-
SegStr: string
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* 数据操作结果
|
|
66
|
-
*/
|
|
67
|
-
export interface DataManipulationResult {
|
|
68
|
-
/**
|
|
69
|
-
* 应用ID
|
|
70
|
-
*/
|
|
71
|
-
AppId: number
|
|
72
|
-
/**
|
|
73
|
-
* 序号
|
|
74
|
-
*/
|
|
75
|
-
Seq: number
|
|
76
|
-
/**
|
|
77
|
-
* 结果
|
|
78
|
-
*/
|
|
79
|
-
TotalResult: string
|
|
80
|
-
/**
|
|
81
|
-
* 操作结果明细
|
|
82
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
83
|
-
*/
|
|
84
|
-
Result: Array<DataManipulationResultItem>
|
|
85
|
-
/**
|
|
86
|
-
* 异常信息
|
|
87
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
88
|
-
*/
|
|
89
|
-
ErrorResult: string
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* 搜索结果元素
|
|
94
|
-
*/
|
|
95
|
-
export interface SearchResultItem {
|
|
96
|
-
/**
|
|
97
|
-
* 动态摘要信息
|
|
98
|
-
*/
|
|
99
|
-
DocAbs: string
|
|
100
|
-
/**
|
|
101
|
-
* 检索文档id
|
|
102
|
-
*/
|
|
103
|
-
DocId: string
|
|
104
|
-
/**
|
|
105
|
-
* 原始文档信息
|
|
106
|
-
*/
|
|
107
|
-
DocMeta: string
|
|
108
|
-
/**
|
|
109
|
-
* 精计算得分
|
|
110
|
-
*/
|
|
111
|
-
L2Score: number
|
|
112
|
-
/**
|
|
113
|
-
* 文档级回传信息
|
|
114
|
-
*/
|
|
115
|
-
SearchDebuginfo: string
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* DataSearch返回参数结构体
|
|
120
|
-
*/
|
|
121
|
-
export interface DataSearchResponse {
|
|
122
|
-
/**
|
|
123
|
-
* 检索结果
|
|
124
|
-
*/
|
|
125
|
-
Data?: SearchResult
|
|
126
|
-
/**
|
|
127
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
128
|
-
*/
|
|
129
|
-
RequestId?: string
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* DataSearch请求参数结构体
|
|
134
|
-
*/
|
|
135
|
-
export interface DataSearchRequest {
|
|
136
|
-
/**
|
|
137
|
-
* 云搜的业务ID,用以表明当前数据请求的业务
|
|
138
|
-
*/
|
|
139
|
-
ResourceId: number
|
|
140
|
-
/**
|
|
141
|
-
* 检索串
|
|
142
|
-
*/
|
|
143
|
-
SearchQuery?: string
|
|
144
|
-
/**
|
|
145
|
-
* 当前页,从第0页开始计算
|
|
146
|
-
*/
|
|
147
|
-
PageId?: number
|
|
148
|
-
/**
|
|
149
|
-
* 每页结果数
|
|
150
|
-
*/
|
|
151
|
-
NumPerPage?: number
|
|
152
|
-
/**
|
|
153
|
-
* 当前检索号,用于定位问题,建议指定并且全局唯一
|
|
154
|
-
*/
|
|
155
|
-
SearchId?: string
|
|
156
|
-
/**
|
|
157
|
-
* 请求编码,0表示utf8,1表示gbk,建议指定
|
|
158
|
-
*/
|
|
159
|
-
QueryEncode?: number
|
|
160
|
-
/**
|
|
161
|
-
* 排序类型
|
|
162
|
-
*/
|
|
163
|
-
RankType?: number
|
|
164
|
-
/**
|
|
165
|
-
* 数值过滤,结果中按属性过滤
|
|
166
|
-
*/
|
|
167
|
-
NumFilter?: string
|
|
168
|
-
/**
|
|
169
|
-
* 分类过滤,导航类检索请求
|
|
170
|
-
*/
|
|
171
|
-
ClFilter?: string
|
|
172
|
-
/**
|
|
173
|
-
* 检索用户相关字段
|
|
174
|
-
*/
|
|
175
|
-
Extra?: string
|
|
176
|
-
/**
|
|
177
|
-
* 检索来源
|
|
178
|
-
*/
|
|
179
|
-
SourceId?: number
|
|
180
|
-
/**
|
|
181
|
-
* 是否进行二次检索,0关闭,1打开
|
|
182
|
-
*/
|
|
183
|
-
SecondSearch?: number
|
|
184
|
-
/**
|
|
185
|
-
* 指定返回最大篇数,无特殊原因不建议指定
|
|
186
|
-
*/
|
|
187
|
-
MaxDocReturn?: number
|
|
188
|
-
/**
|
|
189
|
-
* 是否smartbox检索,0关闭,1打开
|
|
190
|
-
*/
|
|
191
|
-
IsSmartbox?: number
|
|
192
|
-
/**
|
|
193
|
-
* 是否打开高红标亮,0关闭,1打开
|
|
194
|
-
*/
|
|
195
|
-
EnableAbsHighlight?: number
|
|
196
|
-
/**
|
|
197
|
-
* 指定访问QC纠错业务ID
|
|
198
|
-
*/
|
|
199
|
-
QcBid?: number
|
|
200
|
-
/**
|
|
201
|
-
* 按指定字段进行group by,只能对数值字段进行操作
|
|
202
|
-
*/
|
|
203
|
-
GroupBy?: string
|
|
204
|
-
/**
|
|
205
|
-
* 按指定字段进行distinct,只能对数值字段进行操作
|
|
206
|
-
*/
|
|
207
|
-
Distinct?: string
|
|
208
|
-
/**
|
|
209
|
-
* 高级排序参数,具体参见高级排序说明
|
|
210
|
-
*/
|
|
211
|
-
L4RankExpression?: string
|
|
212
|
-
/**
|
|
213
|
-
* 高级排序参数,具体参见高级排序说明
|
|
214
|
-
*/
|
|
215
|
-
MatchValue?: string
|
|
216
|
-
/**
|
|
217
|
-
* 经度信息
|
|
218
|
-
*/
|
|
219
|
-
Longitude?: number
|
|
220
|
-
/**
|
|
221
|
-
* 纬度信息
|
|
222
|
-
*/
|
|
223
|
-
Latitude?: number
|
|
224
|
-
/**
|
|
225
|
-
* 分类过滤并集
|
|
226
|
-
*/
|
|
227
|
-
MultiFilter?: Array<string>
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* 数据操作结果明细
|
|
232
|
-
*/
|
|
233
|
-
export interface DataManipulationResultItem {
|
|
234
|
-
/**
|
|
235
|
-
* 结果
|
|
236
|
-
*/
|
|
237
|
-
Result: string
|
|
238
|
-
/**
|
|
239
|
-
* 文档ID
|
|
240
|
-
*/
|
|
241
|
-
DocId: string
|
|
242
|
-
/**
|
|
243
|
-
* 错误码
|
|
244
|
-
*/
|
|
245
|
-
Errno: number
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* DataManipulation请求参数结构体
|
|
250
|
-
*/
|
|
251
|
-
export interface DataManipulationRequest {
|
|
252
|
-
/**
|
|
253
|
-
* 操作类型,add或del
|
|
254
|
-
*/
|
|
255
|
-
OpType: string
|
|
256
|
-
/**
|
|
257
|
-
* 数据编码类型
|
|
258
|
-
*/
|
|
259
|
-
Encoding: string
|
|
260
|
-
/**
|
|
261
|
-
* 数据
|
|
262
|
-
*/
|
|
263
|
-
Contents: string
|
|
264
|
-
/**
|
|
265
|
-
* 应用Id
|
|
266
|
-
*/
|
|
267
|
-
ResourceId: number
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* DataManipulation返回参数结构体
|
|
272
|
-
*/
|
|
273
|
-
export interface DataManipulationResponse {
|
|
274
|
-
/**
|
|
275
|
-
* 数据操作结果
|
|
276
|
-
*/
|
|
277
|
-
Data?: DataManipulationResult
|
|
278
|
-
/**
|
|
279
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
280
|
-
*/
|
|
281
|
-
RequestId?: string
|
|
282
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// "incremental": true, /* 增量编译 提高编译速度*/
|
|
4
|
-
"target": "ES2019" /* 编译目标ES版本*/,
|
|
5
|
-
"module": "commonjs" /* 编译目标模块系统*/,
|
|
6
|
-
// "lib": [], /* 编译过程中需要引入的库文件列表*/
|
|
7
|
-
"declaration": true /* 编译时创建声明文件 */,
|
|
8
|
-
"outDir": "tencentcloud" /* ts编译输出目录 */,
|
|
9
|
-
"rootDir": "src" /* ts编译根目录. */,
|
|
10
|
-
"importHelpers": true /* 从tslib导入辅助工具函数(如__importDefault)*/,
|
|
11
|
-
"strict": true /* 严格模式开关 等价于noImplicitAny、strictNullChecks、strictFunctionTypes、strictBindCallApply等设置true */,
|
|
12
|
-
"strictNullChecks": false,
|
|
13
|
-
"noUnusedLocals": false /* 未使用局部变量报错*/,
|
|
14
|
-
"noUnusedParameters": false /* 未使用参数报错*/,
|
|
15
|
-
"noImplicitReturns": true /* 有代码路径没有返回值时报错*/,
|
|
16
|
-
"noFallthroughCasesInSwitch": true /* 不允许switch的case语句贯穿*/,
|
|
17
|
-
"moduleResolution": "node" /* 模块解析策略 */,
|
|
18
|
-
"typeRoots": [
|
|
19
|
-
/* 要包含的类型声明文件路径列表*/
|
|
20
|
-
"./typings",
|
|
21
|
-
"./node_modules/@types"
|
|
22
|
-
],
|
|
23
|
-
"allowSyntheticDefaultImports": true /* 允许从没有设置默认导出的模块中默认导入,仅用于提示,不影响编译结果*/,
|
|
24
|
-
"esModuleInterop": false /* 允许编译生成文件时,在代码中注入工具类(__importDefault、__importStar)对ESM与commonjs混用情况做兼容处理*/,
|
|
25
|
-
"sourceMap": false
|
|
26
|
-
},
|
|
27
|
-
"include": [
|
|
28
|
-
/* 需要编译的文件 */
|
|
29
|
-
"src/**/*.ts",
|
|
30
|
-
"typings/**/*.ts"
|
|
31
|
-
],
|
|
32
|
-
"exclude": []
|
|
33
|
-
}
|
package/typings/index.d.ts
DELETED