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