tencentcloud-sdk-nodejs-cii 4.0.431 → 4.0.432
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/CHANGELOG.md +1 -1
- package/package.json +1 -1
- package/src/services/cii/index.ts +6 -9
- package/src/services/cii/v20201210/cii_client.ts +38 -33
- package/src/services/cii/v20201210/cii_models.ts +156 -165
- package/src/services/cii/v20201210/index.ts +3 -3
- package/src/services/cii/v20210408/cii_client.ts +183 -148
- package/src/services/cii/v20210408/cii_models.ts +719 -766
- package/src/services/cii/v20210408/index.ts +3 -3
- package/tencentcloud/services/cii/v20201210/cii_models.d.ts +75 -75
- package/tencentcloud/services/cii/v20201210/index.js +1 -1
- package/tencentcloud/services/cii/v20210408/cii_client.js +2 -2
- package/tencentcloud/services/cii/v20210408/cii_models.d.ts +392 -392
- package/tencentcloud/services/cii/v20210408/index.js +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import { v20201210 } from "./v20201210"
|
|
2
|
+
import { v20210408 } from "./v20210408"
|
|
1
3
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
v20201210: v20201210,
|
|
7
|
-
v20210408: v20210408,
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
4
|
+
export const cii = {
|
|
5
|
+
v20201210: v20201210,
|
|
6
|
+
v20210408: v20210408,
|
|
7
|
+
}
|
|
@@ -17,15 +17,14 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
DescribeStructCompareDataResponse,
|
|
21
|
+
DescribeStructureTaskResultRequest,
|
|
22
|
+
CreateStructureTaskRequest,
|
|
23
|
+
CompareMetricsData,
|
|
24
|
+
ResultObject,
|
|
25
|
+
DescribeStructCompareDataRequest,
|
|
26
|
+
CreateStructureTaskResponse,
|
|
27
|
+
DescribeStructureTaskResultResponse,
|
|
29
28
|
} from "./cii_models"
|
|
30
29
|
|
|
31
30
|
/**
|
|
@@ -33,31 +32,37 @@ import {
|
|
|
33
32
|
* @class
|
|
34
33
|
*/
|
|
35
34
|
export class Client extends TencentCloudCommon.AbstractClient {
|
|
35
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
36
|
+
super("cii.tencentcloudapi.com", "2020-12-10", clientConfig)
|
|
37
|
+
}
|
|
36
38
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 依据任务ID获取结构化结果接口。
|
|
50
|
-
*/
|
|
51
|
-
async DescribeStructureTaskResult(req: DescribeStructureTaskResultRequest, cb?: (error: string, rep: DescribeStructureTaskResultResponse) => void): Promise<DescribeStructureTaskResultResponse> {
|
|
52
|
-
return this.request("DescribeStructureTaskResult", req, cb);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* 基于提供的客户及保单信息,启动结构化识别任务。
|
|
57
|
-
*/
|
|
58
|
-
async CreateStructureTask(req: CreateStructureTaskRequest, cb?: (error: string, rep: CreateStructureTaskResponse) => void): Promise<CreateStructureTaskResponse> {
|
|
59
|
-
return this.request("CreateStructureTask", req, cb);
|
|
60
|
-
}
|
|
39
|
+
/**
|
|
40
|
+
* 结构化对比查询接口,对比结构化复核前后数据差异,查询识别正确率,召回率。
|
|
41
|
+
*/
|
|
42
|
+
async DescribeStructCompareData(
|
|
43
|
+
req: DescribeStructCompareDataRequest,
|
|
44
|
+
cb?: (error: string, rep: DescribeStructCompareDataResponse) => void
|
|
45
|
+
): Promise<DescribeStructCompareDataResponse> {
|
|
46
|
+
return this.request("DescribeStructCompareData", req, cb)
|
|
47
|
+
}
|
|
61
48
|
|
|
49
|
+
/**
|
|
50
|
+
* 依据任务ID获取结构化结果接口。
|
|
51
|
+
*/
|
|
52
|
+
async DescribeStructureTaskResult(
|
|
53
|
+
req: DescribeStructureTaskResultRequest,
|
|
54
|
+
cb?: (error: string, rep: DescribeStructureTaskResultResponse) => void
|
|
55
|
+
): Promise<DescribeStructureTaskResultResponse> {
|
|
56
|
+
return this.request("DescribeStructureTaskResult", req, cb)
|
|
57
|
+
}
|
|
62
58
|
|
|
59
|
+
/**
|
|
60
|
+
* 基于提供的客户及保单信息,启动结构化识别任务。
|
|
61
|
+
*/
|
|
62
|
+
async CreateStructureTask(
|
|
63
|
+
req: CreateStructureTaskRequest,
|
|
64
|
+
cb?: (error: string, rep: CreateStructureTaskResponse) => void
|
|
65
|
+
): Promise<CreateStructureTaskResponse> {
|
|
66
|
+
return this.request("CreateStructureTask", req, cb)
|
|
67
|
+
}
|
|
63
68
|
}
|
|
@@ -19,224 +19,215 @@
|
|
|
19
19
|
* DescribeStructCompareData返回参数结构体
|
|
20
20
|
*/
|
|
21
21
|
export interface DescribeStructCompareDataResponse {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
RequestId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 保单号
|
|
24
|
+
*/
|
|
25
|
+
PolicyId?: string
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 结构化任务ID
|
|
29
|
+
*/
|
|
30
|
+
TaskId?: string
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 客户号
|
|
34
|
+
*/
|
|
35
|
+
CustomerId?: string
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 客户姓名
|
|
39
|
+
*/
|
|
40
|
+
CustomerName?: string
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 复核时间
|
|
44
|
+
*/
|
|
45
|
+
ReviewTime?: string
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 算法识别结果
|
|
49
|
+
*/
|
|
50
|
+
MachineResult?: string
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 人工复核结果
|
|
54
|
+
*/
|
|
55
|
+
ManualResult?: string
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 结构化对比指标数据
|
|
59
|
+
*/
|
|
60
|
+
Metrics?: CompareMetricsData
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 新增项
|
|
64
|
+
*/
|
|
65
|
+
NewItems?: string
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 修改项
|
|
69
|
+
*/
|
|
70
|
+
ModifyItems?: string
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
74
|
+
*/
|
|
75
|
+
RequestId?: string
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
/**
|
|
80
79
|
* DescribeStructureTaskResult请求参数结构体
|
|
81
80
|
*/
|
|
82
81
|
export interface DescribeStructureTaskResultRequest {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
TaskId: string;
|
|
82
|
+
/**
|
|
83
|
+
* 结构化任务ID
|
|
84
|
+
*/
|
|
85
|
+
TaskId: string
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
/**
|
|
91
89
|
* CreateStructureTask请求参数结构体
|
|
92
90
|
*/
|
|
93
91
|
export interface CreateStructureTaskRequest {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* 保单号
|
|
94
|
+
*/
|
|
95
|
+
PolicyId: string
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* 客户号
|
|
99
|
+
*/
|
|
100
|
+
CustomerId: string
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* 客户姓名
|
|
104
|
+
*/
|
|
105
|
+
CustomerName: string
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* 文件类型,目前只支持体检报告类型,对应的值为:HealthReport
|
|
109
|
+
*/
|
|
110
|
+
TaskType: string
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 报告年份
|
|
114
|
+
*/
|
|
115
|
+
Year: string
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* 报告文件上传的地址列表,需按顺序排列。如果使用ImageList参数,置为空数组即可
|
|
119
|
+
*/
|
|
120
|
+
FileList: Array<string>
|
|
121
|
+
|
|
122
|
+
/**
|
|
126
123
|
* 险种,如果是体检报告类型,此参数是必填,类型说明如下:
|
|
127
124
|
CriticalDiseaseInsurance:重疾险
|
|
128
125
|
LifeInsurance:寿险
|
|
129
126
|
AccidentInsurance:意外险
|
|
130
127
|
*/
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
128
|
+
InsuranceTypes?: Array<string>
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* 报告上传的图片内容数组,图片内容采用base64编码,需按顺序排列
|
|
132
|
+
*/
|
|
133
|
+
ImageList?: Array<string>
|
|
137
134
|
}
|
|
138
135
|
|
|
139
136
|
/**
|
|
140
137
|
* 结构化对比指标(准确率/召回率)数据
|
|
141
138
|
*/
|
|
142
139
|
export interface CompareMetricsData {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
LongContentRecall: string;
|
|
140
|
+
/**
|
|
141
|
+
* 短文准确率
|
|
142
|
+
*/
|
|
143
|
+
ShortStructAccuracy: string
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* 短文召回率
|
|
147
|
+
*/
|
|
148
|
+
ShortStructRecall: string
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* 长文结构化准确率
|
|
152
|
+
*/
|
|
153
|
+
LongStructAccuracy: string
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* 长文结构化召回率
|
|
157
|
+
*/
|
|
158
|
+
LongStructRecall: string
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* 长文提取准确率
|
|
162
|
+
*/
|
|
163
|
+
LongContentAccuracy: string
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* 长文提取召回率
|
|
167
|
+
*/
|
|
168
|
+
LongContentRecall: string
|
|
173
169
|
}
|
|
174
170
|
|
|
175
171
|
/**
|
|
176
172
|
* 用于返回结构化任务结果
|
|
177
173
|
*/
|
|
178
174
|
export interface ResultObject {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
StructureResult: string;
|
|
175
|
+
/**
|
|
176
|
+
* 图片质量分
|
|
177
|
+
*/
|
|
178
|
+
Quality: number
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* 由结构化算法结构化json转换的字符串,具体协议参见算法结构化结果协议
|
|
182
|
+
*/
|
|
183
|
+
StructureResult: string
|
|
189
184
|
}
|
|
190
185
|
|
|
191
186
|
/**
|
|
192
187
|
* DescribeStructCompareData请求参数结构体
|
|
193
188
|
*/
|
|
194
189
|
export interface DescribeStructCompareDataRequest {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
TaskId: string;
|
|
190
|
+
/**
|
|
191
|
+
* 结构化任务ID
|
|
192
|
+
*/
|
|
193
|
+
TaskId: string
|
|
200
194
|
}
|
|
201
195
|
|
|
202
196
|
/**
|
|
203
197
|
* CreateStructureTask返回参数结构体
|
|
204
198
|
*/
|
|
205
199
|
export interface CreateStructureTaskResponse {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
RequestId?: string;
|
|
200
|
+
/**
|
|
201
|
+
* 本次结构化任务的ID
|
|
202
|
+
*/
|
|
203
|
+
TaskId: string
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
207
|
+
*/
|
|
208
|
+
RequestId?: string
|
|
216
209
|
}
|
|
217
210
|
|
|
218
211
|
/**
|
|
219
212
|
* DescribeStructureTaskResult返回参数结构体
|
|
220
213
|
*/
|
|
221
214
|
export interface DescribeStructureTaskResultResponse {
|
|
222
|
-
|
|
223
|
-
/**
|
|
215
|
+
/**
|
|
224
216
|
* 结果状态:
|
|
225
217
|
0:返回成功
|
|
226
218
|
1:结果未生成
|
|
227
219
|
2:结果生成失败
|
|
228
220
|
*/
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
221
|
+
Status: number
|
|
222
|
+
|
|
223
|
+
/**
|
|
232
224
|
* 结构化识别结果数组,每个数组元素对应一个图片的结构化结果,顺序和输入参数的ImageList或FileList对应。
|
|
233
225
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
234
226
|
*/
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
239
|
-
*/
|
|
240
|
-
RequestId?: string;
|
|
241
|
-
}
|
|
227
|
+
Results: Array<ResultObject>
|
|
242
228
|
|
|
229
|
+
/**
|
|
230
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
231
|
+
*/
|
|
232
|
+
RequestId?: string
|
|
233
|
+
}
|