tencentcloud-sdk-nodejs 4.0.499 → 4.0.500

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.
@@ -229,118 +229,6 @@ export class Client extends AbstractClient {
229
229
  * 创建签署流程电子文档
230
230
  适用场景:见创建签署流程接口。
231
231
  注:该接口需要给对应的流程指定一个模板id,并且填充该模板中需要补充的信息。是“发起流程”接口的前置接口。
232
-
233
- 【动态表格传参说明】
234
- 当模板的 ComponentType='DYNAMIC_TABLE'时(渠道版或集成版),FormField.ComponentValue需要传递json格式的字符串参数,用于确定表头&填充动态表格(支持内容的单元格合并)
235
- 输入示例1:
236
-
237
- ```
238
- {
239
- "headers":[
240
- {
241
- "content":"head1"
242
- },
243
- {
244
- "content":"head2"
245
- },
246
- {
247
- "content":"head3"
248
- }
249
- ],
250
- "rowCount":3,
251
- "body":{
252
- "cells":[
253
- {
254
- "rowStart":1,
255
- "rowEnd":1,
256
- "columnStart":1,
257
- "columnEnd":1,
258
- "content":"123"
259
- },
260
- {
261
- "rowStart":2,
262
- "rowEnd":3,
263
- "columnStart":1,
264
- "columnEnd":2,
265
- "content":"456"
266
- },
267
- {
268
- "rowStart":3,
269
- "rowEnd":3,
270
- "columnStart":3,
271
- "columnEnd":3,
272
- "content":"789"
273
- }
274
- ]
275
- }
276
- }
277
-
278
- ```
279
-
280
- 输入示例2(表格表头宽度比例配置):
281
-
282
- ```
283
- {
284
- "headers":[
285
- {
286
- "content":"head1",
287
- "widthPercent": 30
288
- },
289
- {
290
- "content":"head2",
291
- "widthPercent": 30
292
- },
293
- {
294
- "content":"head3",
295
- "widthPercent": 40
296
- }
297
- ],
298
- "rowCount":3,
299
- "body":{
300
- "cells":[
301
- {
302
- "rowStart":1,
303
- "rowEnd":1,
304
- "columnStart":1,
305
- "columnEnd":1,
306
- "content":"123"
307
- },
308
- {
309
- "rowStart":2,
310
- "rowEnd":3,
311
- "columnStart":1,
312
- "columnEnd":2,
313
- "content":"456"
314
- },
315
- {
316
- "rowStart":3,
317
- "rowEnd":3,
318
- "columnStart":3,
319
- "columnEnd":3,
320
- "content":"789"
321
- }
322
- ]
323
- }
324
- }
325
-
326
- ```
327
- 表格参数说明
328
-
329
- | 名称 | 类型 | 描述 |
330
- | ------------------- | ------- | ------------------------------------------------- |
331
- | headers | Array | 表头:不超过10列,不支持单元格合并,字数不超过100 |
332
- | rowCount | Integer | 表格内容最大行数 |
333
- | cells.N.rowStart | Integer | 单元格坐标:行起始index |
334
- | cells.N.rowEnd | Integer | 单元格坐标:行结束index |
335
- | cells.N.columnStart | Integer | 单元格坐标:列起始index |
336
- | cells.N.columnEnd | Integer | 单元格坐标:列结束index |
337
- | cells.N.content | String | 单元格内容,字数不超过100 |
338
-
339
- 表格参数headers说明
340
- | 名称 | 类型 | 描述 |
341
- | ------------------- | ------- | ------------------------------------------------- |
342
- | widthPercent | Integer | 表头单元格列占总表头的比例,例如1:30表示 此列占表头的30%,不填写时列宽度平均拆分;例如2:总2列,某一列填写40,剩余列可以为空,按照60计算。;例如3:总3列,某一列填写30,剩余2列可以为空,分别为(100-30)/2=35 |
343
- | content | String | 表头单元格内容,字数不超过100 |
344
232
  */
345
233
  async CreateDocument(
346
234
  req: CreateDocumentRequest,
@@ -472,7 +360,7 @@ export class Client extends AbstractClient {
472
360
  /**
473
361
  * 此接口(UploadFiles)用于文件上传。
474
362
  适用场景:用于生成pdf资源编号(FileIds)来配合“用PDF创建流程”接口使用,使用场景可详见“用PDF创建流程”接口说明。
475
- 调用时需要设置Domain file.ess.tencent.cn,设置Version2020-12-22
363
+ 调用时需要设置Domain/接口请求域名为 file.ess.tencent.cn,并设置参数Version/版本号为2020-12-22
476
364
  */
477
365
  async UploadFiles(
478
366
  req: UploadFilesRequest,
@@ -131,7 +131,7 @@ export interface UploadFilesRequest {
131
131
  BusinessType: string
132
132
 
133
133
  /**
134
- * 调用方信息
134
+ * 调用方信息,其中OperatorId为必填字段,即用户的UserId
135
135
  */
136
136
  Caller?: Caller
137
137
 
@@ -141,27 +141,27 @@ export interface UploadFilesRequest {
141
141
  FileInfos?: Array<UploadFile>
142
142
 
143
143
  /**
144
- * 不再使用,上传文件链接数组,最多支持20个URL
145
- */
146
- FileUrls?: string
144
+ * 文件类型, 默认通过文件内容解析得到文件类型,客户可以显示的说明上传文件的类型。
145
+ 如:PDF 表示上传的文件 xxx.pdf的文件类型是 PDF
146
+ */
147
+ FileType?: string
147
148
 
148
149
  /**
149
150
  * 此参数只对 PDF 文件有效。是否将pdf灰色矩阵置白
150
151
  true--是,处理置白
151
- false--否,不处理
152
+ 默认为false--否,不处理
152
153
  */
153
154
  CoverRect?: boolean
154
155
 
155
- /**
156
- * 文件类型, 默认通过文件内容解析得到文件类型,客户可以显示的说明上传文件的类型。
157
- 如:PDF 表示上传的文件 xxx.pdf的文件类型是 PDF
158
- */
159
- FileType?: string
160
-
161
156
  /**
162
157
  * 用户自定义ID数组,与上传文件一一对应
163
158
  */
164
159
  CustomIds?: Array<string>
160
+
161
+ /**
162
+ * 不再使用,上传文件链接数组,最多支持20个URL
163
+ */
164
+ FileUrls?: string
165
165
  }
166
166
 
167
167
  /**
@@ -1311,7 +1311,117 @@ export interface DescribeFileUrlsRequest {
1311
1311
  }
1312
1312
 
1313
1313
  /**
1314
- * 电子文档的控件填充信息
1314
+ * 电子文档的控件填充信息。按照控件类型进行相应的填充。
1315
+
1316
+ 【数据表格传参说明】
1317
+ 当模板的 ComponentType='DYNAMIC_TABLE'时(渠道版或集成版),FormField.ComponentValue需要传递json格式的字符串参数,用于确定表头&填充数据表格(支持内容的单元格合并)
1318
+ 输入示例1:
1319
+
1320
+ ```
1321
+ {
1322
+ "headers":[
1323
+ {
1324
+ "content":"head1"
1325
+ },
1326
+ {
1327
+ "content":"head2"
1328
+ },
1329
+ {
1330
+ "content":"head3"
1331
+ }
1332
+ ],
1333
+ "rowCount":3,
1334
+ "body":{
1335
+ "cells":[
1336
+ {
1337
+ "rowStart":1,
1338
+ "rowEnd":1,
1339
+ "columnStart":1,
1340
+ "columnEnd":1,
1341
+ "content":"123"
1342
+ },
1343
+ {
1344
+ "rowStart":2,
1345
+ "rowEnd":3,
1346
+ "columnStart":1,
1347
+ "columnEnd":2,
1348
+ "content":"456"
1349
+ },
1350
+ {
1351
+ "rowStart":3,
1352
+ "rowEnd":3,
1353
+ "columnStart":3,
1354
+ "columnEnd":3,
1355
+ "content":"789"
1356
+ }
1357
+ ]
1358
+ }
1359
+ }
1360
+
1361
+ ```
1362
+
1363
+ 输入示例2(表格表头宽度比例配置):
1364
+
1365
+ ```
1366
+ {
1367
+ "headers":[
1368
+ {
1369
+ "content":"head1",
1370
+ "widthPercent": 30
1371
+ },
1372
+ {
1373
+ "content":"head2",
1374
+ "widthPercent": 30
1375
+ },
1376
+ {
1377
+ "content":"head3",
1378
+ "widthPercent": 40
1379
+ }
1380
+ ],
1381
+ "rowCount":3,
1382
+ "body":{
1383
+ "cells":[
1384
+ {
1385
+ "rowStart":1,
1386
+ "rowEnd":1,
1387
+ "columnStart":1,
1388
+ "columnEnd":1,
1389
+ "content":"123"
1390
+ },
1391
+ {
1392
+ "rowStart":2,
1393
+ "rowEnd":3,
1394
+ "columnStart":1,
1395
+ "columnEnd":2,
1396
+ "content":"456"
1397
+ },
1398
+ {
1399
+ "rowStart":3,
1400
+ "rowEnd":3,
1401
+ "columnStart":3,
1402
+ "columnEnd":3,
1403
+ "content":"789"
1404
+ }
1405
+ ]
1406
+ }
1407
+ }
1408
+
1409
+ ```
1410
+ 表格参数说明
1411
+
1412
+ | 名称 | 类型 | 描述 |
1413
+ | ------------------- | ------- | ------------------------------------------------- |
1414
+ | headers | Array | 表头:不超过10列,不支持单元格合并,字数不超过100 |
1415
+ | rowCount | Integer | 表格内容最大行数 |
1416
+ | cells.N.rowStart | Integer | 单元格坐标:行起始index |
1417
+ | cells.N.rowEnd | Integer | 单元格坐标:行结束index |
1418
+ | cells.N.columnStart | Integer | 单元格坐标:列起始index |
1419
+ | cells.N.columnEnd | Integer | 单元格坐标:列结束index |
1420
+ | cells.N.content | String | 单元格内容,字数不超过100 |
1421
+
1422
+ 表格参数headers说明
1423
+ widthPercent Integer 表头单元格列占总表头的比例,例如1:30表示 此列占表头的30%,不填写时列宽度平均拆分;例如2:总2列,某一列填写40,剩余列可以为空,按照60计算。;例如3:总3列,某一列填写30,剩余2列可以为空,分别为(100-30)/2=35
1424
+ content String 表头单元格内容,字数不超过100
1315
1425
  */
1316
1426
  export interface FormField {
1317
1427
  /**
@@ -2110,7 +2220,7 @@ export interface CreatePrepareFlowRequest {
2110
2220
  Operator: UserInfo
2111
2221
 
2112
2222
  /**
2113
- * 资源Id,通过上传uploadfile接口获得
2223
+ * 资源Id,通过多文件上传(UploadFiles)接口获得
2114
2224
  */
2115
2225
  ResourceId: string
2116
2226
 
@@ -1397,8 +1397,8 @@ CreateFlowsByTemplates 接口不使用此字段。
1397
1397
  /**
1398
1398
  * 此结构体 (FlowInfo) 用于描述签署流程信息。
1399
1399
 
1400
- 【动态表格传参说明】
1401
- 当模板的 ComponentType='DYNAMIC_TABLE'时(渠道版或集成版),FormField.ComponentValue需要传递json格式的字符串参数,用于确定表头&填充动态表格(支持内容的单元格合并)
1400
+ 【数据表格传参说明】
1401
+ 当模板的 ComponentType='DYNAMIC_TABLE'时(渠道版或集成版),FormField.ComponentValue需要传递json格式的字符串参数,用于确定表头&填充数据表格(支持内容的单元格合并)
1402
1402
  输入示例1:
1403
1403
 
1404
1404
  ```