tencentcloud-sdk-nodejs-ess 4.0.297

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.
@@ -0,0 +1,707 @@
1
+ /**
2
+ * DescribeFileUrls返回参数结构体
3
+ */
4
+ export interface DescribeFileUrlsResponse {
5
+ /**
6
+ * URL信息
7
+ */
8
+ FileUrls: Array<FileUrl>;
9
+ /**
10
+ * URL数量
11
+ */
12
+ TotalCount: number;
13
+ /**
14
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
15
+ */
16
+ RequestId?: string;
17
+ }
18
+ /**
19
+ * CreateDocument返回参数结构体
20
+ */
21
+ export interface CreateDocumentResponse {
22
+ /**
23
+ * 返回的电子文档ID
24
+ */
25
+ DocumentId: string;
26
+ /**
27
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
28
+ */
29
+ RequestId?: string;
30
+ }
31
+ /**
32
+ * StartFlow请求参数结构体
33
+ */
34
+ export interface StartFlowRequest {
35
+ /**
36
+ * 用户信息
37
+ */
38
+ Operator: UserInfo;
39
+ /**
40
+ * 流程编号
41
+ */
42
+ FlowId: string;
43
+ /**
44
+ * 应用相关信息
45
+ */
46
+ Agent?: Agent;
47
+ /**
48
+ * 客户端Token,保持接口幂等性
49
+ */
50
+ ClientToken?: string;
51
+ }
52
+ /**
53
+ * CancelFlow返回参数结构体
54
+ */
55
+ export interface CancelFlowResponse {
56
+ /**
57
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
58
+ */
59
+ RequestId?: string;
60
+ }
61
+ /**
62
+ * CreateDocument请求参数结构体
63
+ */
64
+ export interface CreateDocumentRequest {
65
+ /**
66
+ * 无
67
+ */
68
+ Operator: UserInfo;
69
+ /**
70
+ * 用户上传的模版ID
71
+ */
72
+ TemplateId: string;
73
+ /**
74
+ * 流程ID
75
+ */
76
+ FlowId: string;
77
+ /**
78
+ * 文件名列表
79
+ */
80
+ FileNames: Array<string>;
81
+ /**
82
+ * 内容控件信息数组
83
+ */
84
+ FormFields?: Array<FormField>;
85
+ /**
86
+ * 应用相关信息
87
+ */
88
+ Agent?: Agent;
89
+ /**
90
+ * 客户端Token,保持接口幂等性
91
+ */
92
+ ClientToken?: string;
93
+ }
94
+ /**
95
+ * CreateFlow请求参数结构体
96
+ */
97
+ export interface CreateFlowRequest {
98
+ /**
99
+ * 操作人信息
100
+ */
101
+ Operator: UserInfo;
102
+ /**
103
+ * 流程的名字, 长度不能超过200,中文字母数字下划线
104
+ */
105
+ FlowName: string;
106
+ /**
107
+ * 参与者信息
108
+ */
109
+ Approvers: Array<FlowCreateApprover>;
110
+ /**
111
+ * 流程的描述, 长度不能超过1000
112
+ */
113
+ FlowDescription?: string;
114
+ /**
115
+ * 发送类型(true为无序签,false为顺序签)
116
+ */
117
+ Unordered?: boolean;
118
+ /**
119
+ * 流程的种类(如销售合同/入职合同等)
120
+ */
121
+ FlowType?: string;
122
+ /**
123
+ * 过期时间戳,如果是0则为不过期
124
+ */
125
+ DeadLine?: number;
126
+ /**
127
+ * 执行结果的回调URL(需要以http://或者https://)开头
128
+ */
129
+ CallbackUrl?: string;
130
+ /**
131
+ * 用户自定义字段(需进行base64 encode),回调的时候会进行透传, 长度需要小于20480
132
+ */
133
+ UserData?: string;
134
+ /**
135
+ * 应用相关信息
136
+ */
137
+ Agent?: Agent;
138
+ /**
139
+ * 客户端Token,保持接口幂等性
140
+ */
141
+ ClientToken?: string;
142
+ }
143
+ /**
144
+ * CreateSchemeUrl请求参数结构体
145
+ */
146
+ export interface CreateSchemeUrlRequest {
147
+ /**
148
+ * 调用方用户信息,参考通用结构
149
+ */
150
+ Operator: UserInfo;
151
+ /**
152
+ * 调用方渠道信息,参考通用结构
153
+ */
154
+ Agent?: Agent;
155
+ /**
156
+ * 姓名
157
+ */
158
+ Name?: string;
159
+ /**
160
+ * 手机号
161
+ */
162
+ Mobile?: string;
163
+ /**
164
+ * 跳转页面 1: 小程序合同详情 2: 小程序合同列表页 0: 不传, 默认主页
165
+ */
166
+ PathType?: number;
167
+ /**
168
+ * 合同详情 id (PathType=1时必传)
169
+ */
170
+ FlowId?: string;
171
+ }
172
+ /**
173
+ * 下载文件的URL信息
174
+ */
175
+ export interface FileUrl {
176
+ /**
177
+ * 下载文件的URL
178
+ */
179
+ Url: string;
180
+ /**
181
+ * 下载文件的附加信息
182
+ 注意:此字段可能返回 null,表示取不到有效值。
183
+ */
184
+ Option: string;
185
+ }
186
+ /**
187
+ * DescribeThirdPartyAuthCode请求参数结构体
188
+ */
189
+ export interface DescribeThirdPartyAuthCodeRequest {
190
+ /**
191
+ * AuthCode 值
192
+ */
193
+ AuthCode: string;
194
+ }
195
+ /**
196
+ * CancelFlow请求参数结构体
197
+ */
198
+ export interface CancelFlowRequest {
199
+ /**
200
+ * 操作用户id
201
+ */
202
+ Operator: UserInfo;
203
+ /**
204
+ * 应用相关信息
205
+ */
206
+ Agent: Agent;
207
+ /**
208
+ * 流程id
209
+ */
210
+ FlowId: string;
211
+ /**
212
+ * 撤销原因
213
+ */
214
+ CancelMessage: string;
215
+ }
216
+ /**
217
+ * DescribeFlowBriefs返回参数结构体
218
+ */
219
+ export interface DescribeFlowBriefsResponse {
220
+ /**
221
+ * 流程列表
222
+ */
223
+ FlowBriefs: Array<FlowBrief>;
224
+ /**
225
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
226
+ */
227
+ RequestId?: string;
228
+ }
229
+ /**
230
+ * 模板控件信息
231
+ */
232
+ export interface Component {
233
+ /**
234
+ * 如果是 Component 控件类型,则可选类型为:
235
+ TEXT - 内容文本控件
236
+ DATE - 内容日期控件
237
+ SELECT - 勾选框控件
238
+ 如果是 SignComponent 控件类型,则可选类型为:
239
+ SIGN_SEAL - 签署印章控件
240
+ SIGN_DATE - 签署日期控件
241
+ SIGN_SIGNATURE - 手写签名控件
242
+ */
243
+ ComponentType: string;
244
+ /**
245
+ * 参数控件宽度,单位px
246
+ */
247
+ ComponentWidth: number;
248
+ /**
249
+ * 参数控件高度,单位px
250
+ */
251
+ ComponentHeight: number;
252
+ /**
253
+ * 参数控件所在页码,取值为:1-N
254
+ */
255
+ ComponentPage: number;
256
+ /**
257
+ * 参数控件X位置,单位px
258
+ */
259
+ ComponentPosX: number;
260
+ /**
261
+ * 参数控件Y位置,单位px
262
+ */
263
+ ComponentPosY: number;
264
+ /**
265
+ * 控件所属文件的序号(模板中的resourceId排列序号,取值为:0-N)
266
+ */
267
+ FileIndex: number;
268
+ /**
269
+ * 控件编号
270
+ */
271
+ ComponentId?: string;
272
+ /**
273
+ * 控件名称
274
+ */
275
+ ComponentName?: string;
276
+ /**
277
+ * 是否必选,默认为false
278
+ */
279
+ ComponentRequired?: boolean;
280
+ /**
281
+ * 参数控件样式
282
+ */
283
+ ComponentExtra?: string;
284
+ /**
285
+ * 控件关联的签署人ID
286
+ */
287
+ ComponentRecipientId?: string;
288
+ /**
289
+ * 控件所填写的内容
290
+ */
291
+ ComponentValue?: string;
292
+ /**
293
+ * 是否是表单域类型,默认不存在
294
+ */
295
+ IsFormType?: boolean;
296
+ /**
297
+ * NORMAL 正常模式,使用坐标制定签署控件位置
298
+ FIELD 表单域,需使用ComponentName指定表单域名称
299
+ KEYWORD 关键字,使用ComponentId指定关键字
300
+ */
301
+ GenerateMode?: string;
302
+ /**
303
+ * 日期控件类型字号
304
+ */
305
+ ComponentDateFontSize?: number;
306
+ }
307
+ /**
308
+ * DescribeThirdPartyAuthCode返回参数结构体
309
+ */
310
+ export interface DescribeThirdPartyAuthCodeResponse {
311
+ /**
312
+ * 用户是否实名,VERIFIED 为实名,UNVERIFIED 未实名
313
+ */
314
+ VerifyStatus: string;
315
+ /**
316
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
317
+ */
318
+ RequestId?: string;
319
+ }
320
+ /**
321
+ * CreateFlowByFiles返回参数结构体
322
+ */
323
+ export interface CreateFlowByFilesResponse {
324
+ /**
325
+ * 流程编号
326
+ */
327
+ FlowId: string;
328
+ /**
329
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
330
+ */
331
+ RequestId?: string;
332
+ }
333
+ /**
334
+ * DescribeFlowBriefs请求参数结构体
335
+ */
336
+ export interface DescribeFlowBriefsRequest {
337
+ /**
338
+ * 操作人信息
339
+ */
340
+ Operator: UserInfo;
341
+ /**
342
+ * 需要查询的流程ID列表
343
+ */
344
+ FlowIds: Array<string>;
345
+ /**
346
+ * 代理商信息
347
+ */
348
+ Agent?: Agent;
349
+ }
350
+ /**
351
+ * DescribeFileUrls请求参数结构体
352
+ */
353
+ export interface DescribeFileUrlsRequest {
354
+ /**
355
+ * 文件对应的业务类型,目前支持:
356
+ - 模板 "TEMPLATE"
357
+ - 文档 "DOCUMENT"
358
+ - 印章 “SEAL”
359
+ - 流程 "FLOW"
360
+ */
361
+ BusinessType: string;
362
+ /**
363
+ * 操作者信息
364
+ */
365
+ Operator: UserInfo;
366
+ /**
367
+ * 业务编号的数组,如模板编号、文档编号、印章编号
368
+ */
369
+ BusinessIds: Array<string>;
370
+ /**
371
+ * 文件类型,"JPG", "PDF","ZIP"等
372
+ */
373
+ FileType?: string;
374
+ /**
375
+ * 下载后的文件命名,只有fileType为zip的时候生效
376
+ */
377
+ FileName?: string;
378
+ /**
379
+ * 指定资源起始偏移量
380
+ */
381
+ Offset?: number;
382
+ /**
383
+ * 指定资源数量,查询全部资源则传入-1
384
+ */
385
+ Limit?: number;
386
+ /**
387
+ * 应用相关信息
388
+ */
389
+ Agent?: Agent;
390
+ /**
391
+ * 下载url过期时间,0: 按默认值5分钟,允许范围:1s~24*60*60s(1天)
392
+ */
393
+ UrlTtl?: number;
394
+ /**
395
+ * 流程校验发送邮件权限
396
+ */
397
+ CcToken?: string;
398
+ /**
399
+ * 场景
400
+ */
401
+ Scene?: string;
402
+ }
403
+ /**
404
+ * 参与者信息
405
+ */
406
+ export interface ApproverInfo {
407
+ /**
408
+ * 参与者类型:
409
+ 0:企业
410
+ 1:个人
411
+ 3:企业静默签署
412
+ 注:类型为3(企业静默签署)时,此接口会默认完成该签署方的签署,目前只支持第一方进行静默签署。
413
+ */
414
+ ApproverType: number;
415
+ /**
416
+ * 本环节需要操作人的名字
417
+ */
418
+ ApproverName: string;
419
+ /**
420
+ * 本环节需要操作人的手机号
421
+ */
422
+ ApproverMobile: string;
423
+ /**
424
+ * 本环节操作人签署控件配置,为企业静默签署时,只允许类型为SIGN_SEAL(印章)和SIGN_DATE(日期)控件,并且传入印章编号。
425
+ */
426
+ SignComponents: Array<Component>;
427
+ /**
428
+ * 如果是企业,则为企业的名字
429
+ */
430
+ OrganizationName?: string;
431
+ /**
432
+ * 身份证号
433
+ */
434
+ ApproverIdCardNumber?: string;
435
+ /**
436
+ * 证件类型 ID_CARD 身份证
437
+ */
438
+ ApproverIdCardType?: string;
439
+ /**
440
+ * sms--短信,none--不通知
441
+ */
442
+ NotifyType?: string;
443
+ /**
444
+ * 1--收款人、2--开具人、3--见证人
445
+ */
446
+ ApproverRole?: number;
447
+ /**
448
+ * 认证方式:
449
+ WEIXINAPP - 微信小程序;
450
+ VERIFYCODE - 验证码;
451
+
452
+ 可以选择多个, 按照顺序进行优先级选择
453
+ 注:使用验证码方式认证签署时,请传入["VERIFYCODE","WEIXINAPP"]
454
+ */
455
+ VerifyChannel?: Array<string>;
456
+ /**
457
+ * 合同的强制预览时间:3~300s,未指定则按合同页数计算
458
+ */
459
+ PreReadTime?: number;
460
+ }
461
+ /**
462
+ * StartFlow返回参数结构体
463
+ */
464
+ export interface StartFlowResponse {
465
+ /**
466
+ * 返回描述,START-发起成功, REVIEW-提交审核成功,EXECUTING-已提交发起任务
467
+ */
468
+ Status: string;
469
+ /**
470
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
471
+ */
472
+ RequestId?: string;
473
+ }
474
+ /**
475
+ * 创建流程的签署方信息
476
+ */
477
+ export interface FlowCreateApprover {
478
+ /**
479
+ * 签署方类型 (0为企业/1为个人)
480
+ */
481
+ ApproverType: number;
482
+ /**
483
+ * 如果签署方为企业,需要填入企业全称
484
+ */
485
+ OrganizationName?: string;
486
+ /**
487
+ * 是否需要签署
488
+ - `false`: 不需要签署
489
+ - `true`: 需要签署
490
+ */
491
+ Required?: boolean;
492
+ /**
493
+ * 签署方经办人姓名
494
+ */
495
+ ApproverName?: string;
496
+ /**
497
+ * 签署方经办人手机号码
498
+ */
499
+ ApproverMobile?: string;
500
+ /**
501
+ * 签署方经办人证件类型,ID_CARD表示身份证
502
+ */
503
+ ApproverIdCardType?: string;
504
+ /**
505
+ * 签署方经办人证件号码
506
+ */
507
+ ApproverIdCardNumber?: string;
508
+ /**
509
+ * 签署方经办人在模板中的角色ID
510
+ */
511
+ RecipientId?: string;
512
+ /**
513
+ * 签署方经办人的用户ID,和签署方经办人姓名+手机号+证件必须有一个
514
+ */
515
+ UserId?: string;
516
+ /**
517
+ * 签署前置条件:是否需要阅读全文,默认为不需要
518
+ */
519
+ IsFullText?: boolean;
520
+ /**
521
+ * 签署前置条件:阅读时长限制,默认为不需要
522
+ */
523
+ PreReadTime?: number;
524
+ /**
525
+ * 是否发送短信,sms--短信通知,none--不通知,默认为sms
526
+ */
527
+ NotifyType?: string;
528
+ }
529
+ /**
530
+ * CreateSchemeUrl返回参数结构体
531
+ */
532
+ export interface CreateSchemeUrlResponse {
533
+ /**
534
+ * 小程序链接地址
535
+ */
536
+ SchemeUrl: string;
537
+ /**
538
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
539
+ */
540
+ RequestId?: string;
541
+ }
542
+ /**
543
+ * CreateFlowByFiles请求参数结构体
544
+ */
545
+ export interface CreateFlowByFilesRequest {
546
+ /**
547
+ * 调用方用户信息
548
+ */
549
+ Operator: UserInfo;
550
+ /**
551
+ * 流程名称
552
+ */
553
+ FlowName: string;
554
+ /**
555
+ * 签署pdf文件的资源编号列表
556
+ */
557
+ FileIds: Array<string>;
558
+ /**
559
+ * 签署参与者信息
560
+ */
561
+ Approvers: Array<ApproverInfo>;
562
+ /**
563
+ * 流程描述
564
+ */
565
+ FlowDescription?: string;
566
+ /**
567
+ * 发送类型:
568
+ true:无序签
569
+ false:有序签
570
+ 注:默认为false(有序签)
571
+ */
572
+ Unordered?: boolean;
573
+ /**
574
+ * 流程的类型
575
+ */
576
+ FlowType?: string;
577
+ /**
578
+ * 流程的签署截止时间
579
+ */
580
+ Deadline?: number;
581
+ /**
582
+ * 应用号信息
583
+ */
584
+ Agent?: Agent;
585
+ /**
586
+ * 经办人内容控件配置。可选类型为:
587
+ TEXT - 内容文本控件
588
+ MULTI_LINE_TEXT - 多行文本控件
589
+ 注:默认字体大小为 字号12
590
+ */
591
+ Components?: Array<Component>;
592
+ /**
593
+ * 被抄送人的信息列表
594
+ */
595
+ CcInfos?: Array<CcInfo>;
596
+ }
597
+ /**
598
+ * CreateFlow返回参数结构体
599
+ */
600
+ export interface CreateFlowResponse {
601
+ /**
602
+ * 流程编号
603
+ */
604
+ FlowId: string;
605
+ /**
606
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
607
+ */
608
+ RequestId?: string;
609
+ }
610
+ /**
611
+ * 应用相关信息
612
+ */
613
+ export declare type Agent = null;
614
+ /**
615
+ * 电子文档的控件填充信息
616
+ */
617
+ export interface FormField {
618
+ /**
619
+ * 控件填充value
620
+ */
621
+ ComponentValue: string;
622
+ /**
623
+ * 控件id
624
+ */
625
+ ComponentId?: string;
626
+ /**
627
+ * 控件名字
628
+ */
629
+ ComponentName?: string;
630
+ }
631
+ /**
632
+ * 用户信息
633
+ */
634
+ export interface UserInfo {
635
+ /**
636
+ * 用户在平台的编号
637
+ */
638
+ UserId?: string;
639
+ /**
640
+ * 用户的来源渠道
641
+ */
642
+ Channel?: string;
643
+ /**
644
+ * 用户在渠道的编号
645
+ */
646
+ OpenId?: string;
647
+ /**
648
+ * 用户真实IP
649
+ */
650
+ ClientIp?: string;
651
+ /**
652
+ * 用户代理IP
653
+ */
654
+ ProxyIp?: string;
655
+ }
656
+ /**
657
+ * 流程信息摘要
658
+ */
659
+ export interface FlowBrief {
660
+ /**
661
+ * 流程的编号
662
+ */
663
+ FlowId: string;
664
+ /**
665
+ * 流程的名称
666
+ */
667
+ FlowName: string;
668
+ /**
669
+ * 流程的描述
670
+ 注意:此字段可能返回 null,表示取不到有效值。
671
+ */
672
+ FlowDescription: string;
673
+ /**
674
+ * 流程的类型
675
+ */
676
+ FlowType: string;
677
+ /**
678
+ * 流程状态
679
+ - `1` 未签署
680
+ - `2` 部分签署
681
+ - `3` 已退回
682
+ - `4` 完成签署
683
+ - `5` 已过期
684
+ - `6` 已取消
685
+ 注意:此字段可能返回 null,表示取不到有效值。
686
+ */
687
+ FlowStatus: number;
688
+ /**
689
+ * 流程创建的时间戳
690
+ 注意:此字段可能返回 null,表示取不到有效值。
691
+ */
692
+ CreatedOn: number;
693
+ /**
694
+ * 拒签或者取消的原因描述
695
+ 注意:此字段可能返回 null,表示取不到有效值。
696
+ */
697
+ FlowMessage: string;
698
+ }
699
+ /**
700
+ * 抄送信息
701
+ */
702
+ export interface CcInfo {
703
+ /**
704
+ * 被抄送人手机号
705
+ */
706
+ Mobile?: string;
707
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import * as Models from "./ess_models";
2
+ import { Client } from "./ess_client";
3
+ export declare const v20201111: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };