tencentcloud-sdk-nodejs-ess 4.0.453 → 4.0.455

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.
@@ -17,21 +17,26 @@
17
17
  */
18
18
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
19
  import {
20
- UploadFile,
20
+ PdfVerifyResult,
21
21
  CancelMultiFlowSignQRCodeRequest,
22
22
  CreateFlowEvidenceReportResponse,
23
23
  DescribeFileUrlsResponse,
24
24
  TemplateInfo,
25
25
  CreateDocumentResponse,
26
+ DescribeIntegrationEmployeesRequest,
26
27
  StartFlowRequest,
27
28
  CancelFlowResponse,
28
29
  CreateDocumentRequest,
29
30
  CreateFlowRequest,
31
+ Department,
30
32
  CreateSchemeUrlRequest,
31
- FileUrl,
33
+ DeleteStaffsResult,
32
34
  DescribeThirdPartyAuthCodeRequest,
35
+ FileUrl,
36
+ DeleteIntegrationEmployeesResponse,
33
37
  Filter,
34
- SignQrCode,
38
+ DeleteIntegrationEmployeesRequest,
39
+ DescribeIntegrationEmployeesResponse,
35
40
  CreateFlowApproversResponse,
36
41
  DescribeFlowInfoRequest,
37
42
  RegisterInfo,
@@ -41,30 +46,39 @@ import {
41
46
  CreateMultiFlowSignQRCodeResponse,
42
47
  FlowCreateApprover,
43
48
  UploadFilesResponse,
49
+ CreateIntegrationEmployeesResponse,
44
50
  DescribeThirdPartyAuthCodeResponse,
45
51
  FlowDetailInfo,
52
+ UploadFile,
46
53
  CreateFlowByFilesResponse,
47
- OrganizationInfo,
54
+ FailedCreateStaffData,
48
55
  DescribeFlowBriefsRequest,
56
+ SuccessCreateStaffData,
49
57
  Recipient,
50
58
  VerifyPdfRequest,
51
59
  UserInfo,
52
60
  FillApproverInfo,
53
61
  SignUrl,
54
62
  VerifyPdfResponse,
55
- DescribeFileUrlsRequest,
63
+ CreateIntegrationEmployeesRequest,
56
64
  ApproverInfo,
57
65
  CreateFlowSignReviewResponse,
58
66
  Caller,
59
67
  DescribeFlowTemplatesResponse,
60
- PdfVerifyResult,
68
+ FailedDeleteStaffData,
61
69
  CreateFlowEvidenceReportRequest,
62
70
  CreateBatchCancelFlowUrlResponse,
71
+ CreateStaffResult,
63
72
  UploadFilesRequest,
73
+ SignQrCode,
74
+ StaffRole,
75
+ DescribeFileUrlsRequest,
76
+ OrganizationInfo,
64
77
  StartFlowResponse,
65
78
  GetTaskResultApiRequest,
66
79
  FileInfo,
67
80
  CreateBatchCancelFlowUrlRequest,
81
+ SuccessDeleteStaffData,
68
82
  CreateMultiFlowSignQRCodeRequest,
69
83
  CreateConvertTaskApiResponse,
70
84
  CreateFlowSignReviewRequest,
@@ -83,6 +97,7 @@ import {
83
97
  CreateFlowApproversRequest,
84
98
  FlowBrief,
85
99
  CcInfo,
100
+ Staff,
86
101
  } from "./ess_models"
87
102
 
88
103
  /**
@@ -95,13 +110,38 @@ export class Client extends TencentCloudCommon.AbstractClient {
95
110
  }
96
111
 
97
112
  /**
98
- * 验证合同文件
99
- */
100
- async VerifyPdf(
101
- req: VerifyPdfRequest,
102
- cb?: (error: string, rep: VerifyPdfResponse) => void
103
- ): Promise<VerifyPdfResponse> {
104
- return this.request("VerifyPdf", req, cb)
113
+ * 此接口用于发起流程
114
+ 适用场景:见创建签署流程接口。
115
+ 注:该接口是“创建电子文档”接口的后置接口,用于激活包含完整合同信息(模板及内容信息)的流程。激活后的流程就是一份待签署的电子合同。
116
+ */
117
+ async StartFlow(
118
+ req: StartFlowRequest,
119
+ cb?: (error: string, rep: StartFlowResponse) => void
120
+ ): Promise<StartFlowResponse> {
121
+ return this.request("StartFlow", req, cb)
122
+ }
123
+
124
+ /**
125
+ * 用于撤销签署流程
126
+ 适用场景:如果某个合同流程当前至少还有一方没有签署,则可通过该接口取消该合同流程。常用于合同发错、内容填错,需要及时撤销的场景。
127
+ 注:如果合同流程中的参与方均已签署完毕,则无法通过该接口撤销合同。
128
+ */
129
+ async CancelFlow(
130
+ req: CancelFlowRequest,
131
+ cb?: (error: string, rep: CancelFlowResponse) => void
132
+ ): Promise<CancelFlowResponse> {
133
+ return this.request("CancelFlow", req, cb)
134
+ }
135
+
136
+ /**
137
+ * 二期接口-查询模板
138
+ 适用场景:当模板较多或模板中的控件较多时,可以通过查询模板接口更方便的获取自己主体下的模板列表,以及每个模板内的控件信息。该接口常用来配合“创建电子文档”接口作为前置的接口使用。
139
+ */
140
+ async DescribeFlowTemplates(
141
+ req: DescribeFlowTemplatesRequest,
142
+ cb?: (error: string, rep: DescribeFlowTemplatesResponse) => void
143
+ ): Promise<DescribeFlowTemplatesResponse> {
144
+ return this.request("DescribeFlowTemplates", req, cb)
105
145
  }
106
146
 
107
147
  /**
@@ -116,26 +156,38 @@ export class Client extends TencentCloudCommon.AbstractClient {
116
156
  }
117
157
 
118
158
  /**
119
- * 查询合同详情
120
- 适用场景:可用于主动查询某个合同详情信息。
159
+ * 验证合同文件
160
+ */
161
+ async VerifyPdf(
162
+ req: VerifyPdfRequest,
163
+ cb?: (error: string, rep: VerifyPdfResponse) => void
164
+ ): Promise<VerifyPdfResponse> {
165
+ return this.request("VerifyPdf", req, cb)
166
+ }
167
+
168
+ /**
169
+ * 电子签企业版:指定需要批量撤回的签署流程Id,获取批量撤销链接
170
+ 客户指定需要撤回的签署流程Id,最多100个,超过100不处理;接口调用成功返回批量撤回合同的链接,通过链接跳转到电子签小程序完成批量撤回
121
171
  */
122
- async DescribeFlowInfo(
123
- req: DescribeFlowInfoRequest,
124
- cb?: (error: string, rep: DescribeFlowInfoResponse) => void
125
- ): Promise<DescribeFlowInfoResponse> {
126
- return this.request("DescribeFlowInfo", req, cb)
172
+ async CreateBatchCancelFlowUrl(
173
+ req: CreateBatchCancelFlowUrlRequest,
174
+ cb?: (error: string, rep: CreateBatchCancelFlowUrlResponse) => void
175
+ ): Promise<CreateBatchCancelFlowUrlResponse> {
176
+ return this.request("CreateBatchCancelFlowUrl", req, cb)
127
177
  }
128
178
 
129
179
  /**
130
- * 此接口用于发起流程
131
- 适用场景:见创建签署流程接口。
132
- 注:该接口是“创建电子文档”接口的后置接口,用于激活包含完整合同信息(模板及内容信息)的流程。激活后的流程就是一份待签署的电子合同。
180
+ * 补充签署流程本企业签署人信息
181
+ 适用场景:在通过模板或者文件发起合同时,若未指定本企业签署人信息,则流程发起后,可以调用此接口补充签署人。
182
+ 同一签署人可以补充多个员工作为候选签署人,最终签署人取决于谁先领取合同完成签署。
183
+
184
+ 注:目前暂时只支持补充来源于企业微信的员工作为候选签署人
133
185
  */
134
- async StartFlow(
135
- req: StartFlowRequest,
136
- cb?: (error: string, rep: StartFlowResponse) => void
137
- ): Promise<StartFlowResponse> {
138
- return this.request("StartFlow", req, cb)
186
+ async CreateFlowApprovers(
187
+ req: CreateFlowApproversRequest,
188
+ cb?: (error: string, rep: CreateFlowApproversResponse) => void
189
+ ): Promise<CreateFlowApproversResponse> {
190
+ return this.request("CreateFlowApprovers", req, cb)
139
191
  }
140
192
 
141
193
  /**
@@ -152,18 +204,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
152
204
  return this.request("CreateFlowSignReview", req, cb)
153
205
  }
154
206
 
155
- /**
156
- * 用于撤销签署流程
157
- 适用场景:如果某个合同流程当前至少还有一方没有签署,则可通过该接口取消该合同流程。常用于合同发错、内容填错,需要及时撤销的场景。
158
- 注:如果合同流程中的参与方均已签署完毕,则无法通过该接口撤销合同。
159
- */
160
- async CancelFlow(
161
- req: CancelFlowRequest,
162
- cb?: (error: string, rep: CancelFlowResponse) => void
163
- ): Promise<CancelFlowResponse> {
164
- return this.request("CancelFlow", req, cb)
165
- }
166
-
167
207
  /**
168
208
  * 创建签署流程电子文档
169
209
  适用场景:见创建签署流程接口。
@@ -177,31 +217,19 @@ export class Client extends TencentCloudCommon.AbstractClient {
177
217
  }
178
218
 
179
219
  /**
180
- * 此接口(CreateMultiFlowSignQRCode)用于创建一码多扫流程签署二维码。
181
- 适用场景:无需填写签署人信息,可通过模板id生成签署二维码,签署人可通过扫描二维码补充签署信息进行实名签署。常用于提前不知道签署人的身份信息场景,例如:劳务工招工、大批量员工入职等场景。
182
- 适用的模板仅限于B2C(1、无序签署,2、顺序签署时B静默签署,3、顺序签署时B非首位签署)、单C的模板,且模板中发起方没有填写控件。
220
+ * 查询合同详情
221
+ 适用场景:可用于主动查询某个合同详情信息。
183
222
  */
184
- async CreateMultiFlowSignQRCode(
185
- req: CreateMultiFlowSignQRCodeRequest,
186
- cb?: (error: string, rep: CreateMultiFlowSignQRCodeResponse) => void
187
- ): Promise<CreateMultiFlowSignQRCodeResponse> {
188
- return this.request("CreateMultiFlowSignQRCode", req, cb)
223
+ async DescribeFlowInfo(
224
+ req: DescribeFlowInfoRequest,
225
+ cb?: (error: string, rep: DescribeFlowInfoResponse) => void
226
+ ): Promise<DescribeFlowInfoResponse> {
227
+ return this.request("DescribeFlowInfo", req, cb)
189
228
  }
190
229
 
191
230
  /**
192
- * 通过AuthCode查询用户是否实名
231
+ * 创建出证报告,返回报告 URL。此接口暂未开放,有问题请联系运营人员。
193
232
  */
194
- async DescribeThirdPartyAuthCode(
195
- req: DescribeThirdPartyAuthCodeRequest,
196
- cb?: (error: string, rep: DescribeThirdPartyAuthCodeResponse) => void
197
- ): Promise<DescribeThirdPartyAuthCodeResponse> {
198
- return this.request("DescribeThirdPartyAuthCode", req, cb)
199
- }
200
-
201
- /**
202
- * 【描述】:创建出证报告,返回报告 URL
203
- 【注意】:此接口需要通过添加白名单获取调用权限,请联系运营人员加白
204
- */
205
233
  async CreateFlowEvidenceReport(
206
234
  req: CreateFlowEvidenceReportRequest,
207
235
  cb?: (error: string, rep: CreateFlowEvidenceReportResponse) => void
@@ -235,33 +263,15 @@ export class Client extends TencentCloudCommon.AbstractClient {
235
263
  }
236
264
 
237
265
  /**
238
- * 此接口(CancelMultiFlowSignQRCode)用于取消一码多扫二维码。该接口对传入的二维码ID,若还在有效期内,可以提前失效。
239
- */
240
- async CancelMultiFlowSignQRCode(
241
- req: CancelMultiFlowSignQRCodeRequest,
242
- cb?: (error: string, rep: CancelMultiFlowSignQRCodeResponse) => void
243
- ): Promise<CancelMultiFlowSignQRCodeResponse> {
244
- return this.request("CancelMultiFlowSignQRCode", req, cb)
245
- }
246
-
247
- /**
248
- * 获取小程序跳转链接
249
-
250
- 适用场景:如果需要签署人在自己的APP、小程序、H5应用中签署,可以通过此接口获取跳转腾讯电子签小程序的签署跳转链接。
251
-
252
- 注:如果签署人是在PC端扫码签署,可以通过生成跳转链接自主转换成二维码,让签署人在PC端扫码签署。
253
-
254
-
255
- 跳转到小程序的实现,参考官方文档(分为<a href="https://developers.weixin.qq.com/miniprogram/dev/api/navigate/wx.navigateToMiniProgram.html">全屏</a>、<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/openEmbeddedMiniProgram.html">半屏</a>两种方式)
256
-
257
-
258
- 如您需要自主配置小程序跳转链接,请参考: <a href="https://cloud.tencent.com/document/product/1323/74774">跳转小程序链接配置说明</a>
266
+ * 此接口(CreateMultiFlowSignQRCode)用于创建一码多扫流程签署二维码。
267
+ 适用场景:无需填写签署人信息,可通过模板id生成签署二维码,签署人可通过扫描二维码补充签署信息进行实名签署。常用于提前不知道签署人的身份信息场景,例如:劳务工招工、大批量员工入职等场景。
268
+ 适用的模板仅限于B2C(1、无序签署,2、顺序签署时B静默签署,3、顺序签署时B非首位签署)、单C的模板,且模板中发起方没有填写控件。
259
269
  */
260
- async CreateSchemeUrl(
261
- req: CreateSchemeUrlRequest,
262
- cb?: (error: string, rep: CreateSchemeUrlResponse) => void
263
- ): Promise<CreateSchemeUrlResponse> {
264
- return this.request("CreateSchemeUrl", req, cb)
270
+ async CreateMultiFlowSignQRCode(
271
+ req: CreateMultiFlowSignQRCodeRequest,
272
+ cb?: (error: string, rep: CreateMultiFlowSignQRCodeResponse) => void
273
+ ): Promise<CreateMultiFlowSignQRCodeResponse> {
274
+ return this.request("CreateMultiFlowSignQRCode", req, cb)
265
275
  }
266
276
 
267
277
  /**
@@ -275,35 +285,33 @@ export class Client extends TencentCloudCommon.AbstractClient {
275
285
  }
276
286
 
277
287
  /**
278
- * 创建文件转换任务
288
+ * 此接口(CancelMultiFlowSignQRCode)用于取消一码多扫二维码。该接口对传入的二维码ID,若还在有效期内,可以提前失效。
279
289
  */
280
- async CreateConvertTaskApi(
281
- req: CreateConvertTaskApiRequest,
282
- cb?: (error: string, rep: CreateConvertTaskApiResponse) => void
283
- ): Promise<CreateConvertTaskApiResponse> {
284
- return this.request("CreateConvertTaskApi", req, cb)
290
+ async CancelMultiFlowSignQRCode(
291
+ req: CancelMultiFlowSignQRCodeRequest,
292
+ cb?: (error: string, rep: CancelMultiFlowSignQRCodeResponse) => void
293
+ ): Promise<CancelMultiFlowSignQRCodeResponse> {
294
+ return this.request("CancelMultiFlowSignQRCode", req, cb)
285
295
  }
286
296
 
287
297
  /**
288
- * 二期接口-查询模板
289
- 适用场景:当模板较多或模板中的控件较多时,可以通过查询模板接口更方便的获取自己主体下的模板列表,以及每个模板内的控件信息。该接口常用来配合“创建电子文档”接口作为前置的接口使用。
290
- */
291
- async DescribeFlowTemplates(
292
- req: DescribeFlowTemplatesRequest,
293
- cb?: (error: string, rep: DescribeFlowTemplatesResponse) => void
294
- ): Promise<DescribeFlowTemplatesResponse> {
295
- return this.request("DescribeFlowTemplates", req, cb)
298
+ * 查询员工信息,每次返回的数据量最大为20
299
+ */
300
+ async DescribeIntegrationEmployees(
301
+ req: DescribeIntegrationEmployeesRequest,
302
+ cb?: (error: string, rep: DescribeIntegrationEmployeesResponse) => void
303
+ ): Promise<DescribeIntegrationEmployeesResponse> {
304
+ return this.request("DescribeIntegrationEmployees", req, cb)
296
305
  }
297
306
 
298
307
  /**
299
- * 电子签企业版:指定需要批量撤回的签署流程Id,获取批量撤销链接
300
- 客户指定需要撤回的签署流程Id,最多100个,超过100不处理;接口调用成功返回批量撤回合同的链接,通过链接跳转到电子签小程序完成批量撤回
301
- */
302
- async CreateBatchCancelFlowUrl(
303
- req: CreateBatchCancelFlowUrlRequest,
304
- cb?: (error: string, rep: CreateBatchCancelFlowUrlResponse) => void
305
- ): Promise<CreateBatchCancelFlowUrlResponse> {
306
- return this.request("CreateBatchCancelFlowUrl", req, cb)
308
+ * 创建文件转换任务
309
+ */
310
+ async CreateConvertTaskApi(
311
+ req: CreateConvertTaskApiRequest,
312
+ cb?: (error: string, rep: CreateConvertTaskApiResponse) => void
313
+ ): Promise<CreateConvertTaskApiResponse> {
314
+ return this.request("CreateConvertTaskApi", req, cb)
307
315
  }
308
316
 
309
317
  /**
@@ -318,20 +326,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
318
326
  return this.request("DescribeFlowBriefs", req, cb)
319
327
  }
320
328
 
321
- /**
322
- * 补充签署流程本企业签署人信息
323
- 适用场景:在通过模板或者文件发起合同时,若未指定本企业签署人信息,则流程发起后,可以调用此接口补充签署人。
324
- 同一签署人可以补充多个员工作为候选签署人,最终签署人取决于谁先领取合同完成签署。
325
-
326
- 注:目前暂时只支持补充来源于企业微信的员工作为候选签署人
327
- */
328
- async CreateFlowApprovers(
329
- req: CreateFlowApproversRequest,
330
- cb?: (error: string, rep: CreateFlowApproversResponse) => void
331
- ): Promise<CreateFlowApproversResponse> {
332
- return this.request("CreateFlowApprovers", req, cb)
333
- }
334
-
335
329
  /**
336
330
  * 此接口(UploadFiles)用于文件上传。
337
331
  适用场景:用于生成pdf资源编号(FileIds)来配合“用PDF创建流程”接口使用,使用场景可详见“用PDF创建流程”接口说明。
@@ -343,4 +337,54 @@ export class Client extends TencentCloudCommon.AbstractClient {
343
337
  ): Promise<UploadFilesResponse> {
344
338
  return this.request("UploadFiles", req, cb)
345
339
  }
340
+
341
+ /**
342
+ * 通过AuthCode查询用户是否实名
343
+ */
344
+ async DescribeThirdPartyAuthCode(
345
+ req: DescribeThirdPartyAuthCodeRequest,
346
+ cb?: (error: string, rep: DescribeThirdPartyAuthCodeResponse) => void
347
+ ): Promise<DescribeThirdPartyAuthCodeResponse> {
348
+ return this.request("DescribeThirdPartyAuthCode", req, cb)
349
+ }
350
+
351
+ /**
352
+ * 移除员工
353
+ */
354
+ async DeleteIntegrationEmployees(
355
+ req: DeleteIntegrationEmployeesRequest,
356
+ cb?: (error: string, rep: DeleteIntegrationEmployeesResponse) => void
357
+ ): Promise<DeleteIntegrationEmployeesResponse> {
358
+ return this.request("DeleteIntegrationEmployees", req, cb)
359
+ }
360
+
361
+ /**
362
+ * 获取小程序跳转链接
363
+
364
+ 适用场景:如果需要签署人在自己的APP、小程序、H5应用中签署,可以通过此接口获取跳转腾讯电子签小程序的签署跳转链接。
365
+
366
+ 注:如果签署人是在PC端扫码签署,可以通过生成跳转链接自主转换成二维码,让签署人在PC端扫码签署。
367
+
368
+
369
+ 跳转到小程序的实现,参考官方文档(分为<a href="https://developers.weixin.qq.com/miniprogram/dev/api/navigate/wx.navigateToMiniProgram.html">全屏</a>、<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/openEmbeddedMiniProgram.html">半屏</a>两种方式)
370
+
371
+
372
+ 如您需要自主配置小程序跳转链接,请参考: <a href="https://cloud.tencent.com/document/product/1323/74774">跳转小程序链接配置说明</a>
373
+ */
374
+ async CreateSchemeUrl(
375
+ req: CreateSchemeUrlRequest,
376
+ cb?: (error: string, rep: CreateSchemeUrlResponse) => void
377
+ ): Promise<CreateSchemeUrlResponse> {
378
+ return this.request("CreateSchemeUrl", req, cb)
379
+ }
380
+
381
+ /**
382
+ * 创建员工
383
+ */
384
+ async CreateIntegrationEmployees(
385
+ req: CreateIntegrationEmployeesRequest,
386
+ cb?: (error: string, rep: CreateIntegrationEmployeesResponse) => void
387
+ ): Promise<CreateIntegrationEmployeesResponse> {
388
+ return this.request("CreateIntegrationEmployees", req, cb)
389
+ }
346
390
  }