tencentcloud-sdk-nodejs-essbasic 4.0.259 → 4.0.260

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.
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { SyncProxyOrganizationResponse, PrepareFlowsResponse, DescribeResourceUrlsByFlowsResponse, DescribeTemplatesResponse, SyncProxyOrganizationOperatorsRequest, CreateSignUrlsRequest, DescribeResourceUrlsByFlowsRequest, CreateConsoleLoginUrlRequest, CreateFlowsByTemplatesResponse, SyncProxyOrganizationOperatorsResponse, DescribeTemplatesRequest, CreateConsoleLoginUrlResponse, CreateFlowsByTemplatesRequest, SyncProxyOrganizationRequest, PrepareFlowsRequest, CreateSignUrlsResponse, DescribeUsageRequest, DescribeUsageResponse } from "./essbasic_models";
2
+ import { SyncProxyOrganizationResponse, PrepareFlowsResponse, GetDownloadFlowUrlResponse, DescribeResourceUrlsByFlowsResponse, DescribeTemplatesResponse, OperateChannelTemplateResponse, CreateSignUrlsRequest, DescribeResourceUrlsByFlowsRequest, GetDownloadFlowUrlRequest, CreateConsoleLoginUrlRequest, CreateFlowsByTemplatesResponse, PrepareFlowsRequest, SyncProxyOrganizationOperatorsResponse, DescribeTemplatesRequest, SyncProxyOrganizationOperatorsRequest, CreateConsoleLoginUrlResponse, CreateFlowsByTemplatesRequest, SyncProxyOrganizationRequest, CreateSignUrlsResponse, OperateChannelTemplateRequest, DescribeUsageRequest, DescribeUsageResponse } from "./essbasic_models";
3
3
  /**
4
4
  * essbasic client
5
5
  * @class
@@ -10,10 +10,32 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
10
10
  * 接口(CreateFlowsByTemplates)用于使用多个模板批量创建流程
11
11
  */
12
12
  CreateFlowsByTemplates(req: CreateFlowsByTemplatesRequest, cb?: (error: string, rep: CreateFlowsByTemplatesResponse) => void): Promise<CreateFlowsByTemplatesResponse>;
13
+ /**
14
+ * 此接口(GetDownloadFlowUrl)用于创建电子签批量下载确认页面链接,支持客户合同(流程)归类打包下载。
15
+
16
+ */
17
+ GetDownloadFlowUrl(req: GetDownloadFlowUrlRequest, cb?: (error: string, rep: GetDownloadFlowUrlResponse) => void): Promise<GetDownloadFlowUrlResponse>;
13
18
  /**
14
19
  * 该接口 (PrepareFlows) 用于创建待发起文件
15
20
  */
16
21
  PrepareFlows(req: PrepareFlowsRequest, cb?: (error: string, rep: PrepareFlowsResponse) => void): Promise<PrepareFlowsResponse>;
22
+ /**
23
+ * 此接口(OperateChannelTemplate)用于渠道侧将模板库中的模板对合作企业进行查询和设置, 其中包括可见性的修改以及对合作企业的指定.
24
+ 1、同步标识=select时:
25
+ 输入规则:“可见标识”、“指定合作企业列表”为空。
26
+ 处理规则:返回指定模版的可见标识、指定合作企业列表。
27
+ 2、同步标识=update时:
28
+ 输入规则:“可见标识”、“指定合作企业列表”非必填输入。
29
+ 处理规则:
30
+ 若“可见标识”=空,不做处理,返回当前的可见标识。
31
+ 若“可见标识”=所有合作企业,不取“指定合作企业列表”的值处理。
32
+ 若“可见标识”=指定合作企业,取“指定合作企业列表”的值进行更新/插入。
33
+ 3、同步标识=delete时:
34
+ 输入规则:“可见标识”、“指定合作企业列表”非必填输入。
35
+ 处理规则:
36
+ 仅取“指定合作企业列表”的值进行删除处理,为空时不做处。
37
+ */
38
+ OperateChannelTemplate(req: OperateChannelTemplateRequest, cb?: (error: string, rep: OperateChannelTemplateResponse) => void): Promise<OperateChannelTemplateResponse>;
17
39
  /**
18
40
  * 根据流程Id批量创建签署参与者签署H5链接
19
41
  */
@@ -33,12 +33,38 @@ class Client extends TencentCloudCommon.AbstractClient {
33
33
  async CreateFlowsByTemplates(req, cb) {
34
34
  return this.request("CreateFlowsByTemplates", req, cb);
35
35
  }
36
+ /**
37
+ * 此接口(GetDownloadFlowUrl)用于创建电子签批量下载确认页面链接,支持客户合同(流程)归类打包下载。
38
+
39
+ */
40
+ async GetDownloadFlowUrl(req, cb) {
41
+ return this.request("GetDownloadFlowUrl", req, cb);
42
+ }
36
43
  /**
37
44
  * 该接口 (PrepareFlows) 用于创建待发起文件
38
45
  */
39
46
  async PrepareFlows(req, cb) {
40
47
  return this.request("PrepareFlows", req, cb);
41
48
  }
49
+ /**
50
+ * 此接口(OperateChannelTemplate)用于渠道侧将模板库中的模板对合作企业进行查询和设置, 其中包括可见性的修改以及对合作企业的指定.
51
+ 1、同步标识=select时:
52
+ 输入规则:“可见标识”、“指定合作企业列表”为空。
53
+ 处理规则:返回指定模版的可见标识、指定合作企业列表。
54
+ 2、同步标识=update时:
55
+ 输入规则:“可见标识”、“指定合作企业列表”非必填输入。
56
+ 处理规则:
57
+ 若“可见标识”=空,不做处理,返回当前的可见标识。
58
+ 若“可见标识”=所有合作企业,不取“指定合作企业列表”的值处理。
59
+ 若“可见标识”=指定合作企业,取“指定合作企业列表”的值进行更新/插入。
60
+ 3、同步标识=delete时:
61
+ 输入规则:“可见标识”、“指定合作企业列表”非必填输入。
62
+ 处理规则:
63
+ 仅取“指定合作企业列表”的值进行删除处理,为空时不做处。
64
+ */
65
+ async OperateChannelTemplate(req, cb) {
66
+ return this.request("OperateChannelTemplate", req, cb);
67
+ }
42
68
  /**
43
69
  * 根据流程Id批量创建签署参与者签署H5链接
44
70
  */
@@ -63,6 +63,10 @@ export interface FlowApproverInfo {
63
63
  * 用户侧第三方id
64
64
  */
65
65
  OpenId?: string;
66
+ /**
67
+ * 合同的强制预览时间:3~300s,未指定则按合同页数计算
68
+ */
69
+ PreReadTime?: number;
66
70
  }
67
71
  /**
68
72
  * PrepareFlows返回参数结构体
@@ -118,6 +122,19 @@ export interface TemplateInfo {
118
122
  */
119
123
  Recipients: Array<Recipient>;
120
124
  }
125
+ /**
126
+ * GetDownloadFlowUrl返回参数结构体
127
+ */
128
+ export interface GetDownloadFlowUrlResponse {
129
+ /**
130
+ * 进入合同(流程)下载确认页面链接
131
+ */
132
+ DownLoadUrl: string;
133
+ /**
134
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
135
+ */
136
+ RequestId?: string;
137
+ }
121
138
  /**
122
139
  * DescribeResourceUrlsByFlows返回参数结构体
123
140
  */
@@ -136,6 +153,43 @@ export interface DescribeResourceUrlsByFlowsResponse {
136
153
  */
137
154
  RequestId?: string;
138
155
  }
156
+ /**
157
+ * 签署参与者信息
158
+ */
159
+ export interface Recipient {
160
+ /**
161
+ * 签署人唯一标识
162
+ */
163
+ RecipientId?: string;
164
+ /**
165
+ * 签署方类型:ENTERPRISE-企业INDIVIDUAL-自然人
166
+ */
167
+ RecipientType?: string;
168
+ /**
169
+ * 描述
170
+ */
171
+ Description?: string;
172
+ /**
173
+ * 签署方备注信息
174
+ */
175
+ RoleName?: string;
176
+ /**
177
+ * 是否需要校验
178
+ */
179
+ RequireValidation?: boolean;
180
+ /**
181
+ * 是否必须填写
182
+ */
183
+ RequireSign?: boolean;
184
+ /**
185
+ * 签署类型
186
+ */
187
+ SignType?: number;
188
+ /**
189
+ * 签署顺序:数字越小优先级越高
190
+ */
191
+ RoutingOrder?: number;
192
+ }
139
193
  /**
140
194
  * DescribeTemplates返回参数结构体
141
195
  */
@@ -150,25 +204,43 @@ export interface DescribeTemplatesResponse {
150
204
  RequestId?: string;
151
205
  }
152
206
  /**
153
- * SyncProxyOrganizationOperators请求参数结构体
207
+ * OperateChannelTemplate返回参数结构体
154
208
  */
155
- export interface SyncProxyOrganizationOperatorsRequest {
209
+ export interface OperateChannelTemplateResponse {
156
210
  /**
157
- * 操作类型,新增:"CREATE",修改:"UPDATE",离职:"RESIGN"
158
- */
159
- OperatorType: string;
211
+ * 腾讯电子签颁发给渠道的应用ID
212
+ 注意:此字段可能返回 null,表示取不到有效值。
213
+ */
214
+ AppId: string;
160
215
  /**
161
- * 应用信息
162
- */
163
- Agent: Agent;
216
+ * 渠道方模板库模板唯一标识
217
+ 注意:此字段可能返回 null,表示取不到有效值。
218
+ */
219
+ TemplateId: string;
164
220
  /**
165
- * 经办人信息列表
166
- */
167
- ProxyOrganizationOperators: Array<ProxyOrganizationOperator>;
221
+ * 全部成功-"all-success",部分成功-"part-success", 全部失败-"fail"失败的会在FailMessageList中展示
222
+ 注意:此字段可能返回 null,表示取不到有效值。
223
+ */
224
+ OperateResult: string;
168
225
  /**
169
- * 操作者的信息
226
+ * 模板可见性, 全部可见-"all", 部分可见-"part"
227
+ 注意:此字段可能返回 null,表示取不到有效值。
228
+ */
229
+ AuthTag: string;
230
+ /**
231
+ * 合作企业方第三方机构唯一标识数据
232
+ 注意:此字段可能返回 null,表示取不到有效值。
233
+ */
234
+ ProxyOrganizationOpenIds: Array<string>;
235
+ /**
236
+ * 操作失败信息数组
237
+ 注意:此字段可能返回 null,表示取不到有效值。
238
+ */
239
+ FailMessageList: Array<AuthFailMessage>;
240
+ /**
241
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
170
242
  */
171
- Operator?: UserInfo;
243
+ RequestId?: string;
172
244
  }
173
245
  /**
174
246
  * CreateSignUrls请求参数结构体
@@ -195,6 +267,19 @@ export interface CreateSignUrlsRequest {
195
267
  */
196
268
  JumpUrl?: string;
197
269
  }
270
+ /**
271
+ * 授权出错信息
272
+ */
273
+ export interface AuthFailMessage {
274
+ /**
275
+ * 合作企业Id
276
+ */
277
+ ProxyOrganizationOpenId: string;
278
+ /**
279
+ * 出错信息
280
+ */
281
+ Message: string;
282
+ }
198
283
  /**
199
284
  * DescribeResourceUrlsByFlows请求参数结构体
200
285
  */
@@ -310,6 +395,24 @@ export interface Component {
310
395
  */
311
396
  ComponentDescription?: string;
312
397
  }
398
+ /**
399
+ * GetDownloadFlowUrl请求参数结构体
400
+ */
401
+ export interface GetDownloadFlowUrlRequest {
402
+ /**
403
+ * 应用信息
404
+ 此接口Agent.ProxyOrganizationOpenId 和 Agent. ProxyOperator.OpenId 必填
405
+ */
406
+ Agent: Agent;
407
+ /**
408
+ * 操作者的信息
409
+ */
410
+ Operator?: UserInfo;
411
+ /**
412
+ * 文件夹数组,合同(流程)总数不能超过50个,一个文件夹下,不能超过20个合同(流程),
413
+ */
414
+ DownLoadFlows?: Array<DownloadFlowInfo>;
415
+ }
313
416
  /**
314
417
  * 签署链接内容
315
418
  */
@@ -434,33 +537,25 @@ export interface CreateFlowsByTemplatesResponse {
434
537
  RequestId?: string;
435
538
  }
436
539
  /**
437
- * 合作企业经办人列表信息
540
+ * PrepareFlows请求参数结构体
438
541
  */
439
- export interface ProxyOrganizationOperator {
542
+ export interface PrepareFlowsRequest {
440
543
  /**
441
- * 经办人ID(渠道颁发)
544
+ * 渠道应用相关信息
442
545
  */
443
- Id: string;
546
+ Agent: Agent;
444
547
  /**
445
- * 经办人姓名
548
+ * 多个合同(流程)信息
446
549
  */
447
- Name?: string;
448
- /**
449
- * 经办人身份证件类型
450
- 用户证件类型:默认ID_CARD
451
- 1. ID_CARD - 居民身份证
452
- 2. HOUSEHOLD_REGISTER - 户口本
453
- 3. TEMP_ID_CARD - 临时居民身份证
454
- */
455
- IdCardType?: string;
550
+ FlowInfos: Array<FlowInfo>;
456
551
  /**
457
- * 经办人身份证号
552
+ * 操作完成后的跳转地址
458
553
  */
459
- IdCardNumber?: string;
554
+ JumpUrl: string;
460
555
  /**
461
- * 经办人手机号
556
+ * 操作者的信息
462
557
  */
463
- Mobile?: string;
558
+ Operator?: UserInfo;
464
559
  }
465
560
  /**
466
561
  * SyncProxyOrganizationOperators返回参数结构体
@@ -515,6 +610,27 @@ export interface DescribeTemplatesRequest {
515
610
  */
516
611
  TemplateId?: string;
517
612
  }
613
+ /**
614
+ * SyncProxyOrganizationOperators请求参数结构体
615
+ */
616
+ export interface SyncProxyOrganizationOperatorsRequest {
617
+ /**
618
+ * 操作类型,新增:"CREATE",修改:"UPDATE",离职:"RESIGN"
619
+ */
620
+ OperatorType: string;
621
+ /**
622
+ * 应用信息
623
+ */
624
+ Agent: Agent;
625
+ /**
626
+ * 经办人信息列表
627
+ */
628
+ ProxyOrganizationOperators: Array<ProxyOrganizationOperator>;
629
+ /**
630
+ * 操作者的信息
631
+ */
632
+ Operator?: UserInfo;
633
+ }
518
634
  /**
519
635
  * CreateConsoleLoginUrl返回参数结构体
520
636
  */
@@ -576,27 +692,6 @@ export interface SyncProxyOrganizationRequest {
576
692
  */
577
693
  Operator?: UserInfo;
578
694
  }
579
- /**
580
- * PrepareFlows请求参数结构体
581
- */
582
- export interface PrepareFlowsRequest {
583
- /**
584
- * 渠道应用相关信息
585
- */
586
- Agent: Agent;
587
- /**
588
- * 多个合同(流程)信息
589
- */
590
- FlowInfos: Array<FlowInfo>;
591
- /**
592
- * 操作完成后的跳转地址
593
- */
594
- JumpUrl: string;
595
- /**
596
- * 操作者的信息
597
- */
598
- Operator?: UserInfo;
599
- }
600
695
  /**
601
696
  * 用量明细
602
697
  */
@@ -637,6 +732,48 @@ export interface CreateSignUrlsResponse {
637
732
  */
638
733
  RequestId?: string;
639
734
  }
735
+ /**
736
+ * OperateChannelTemplate请求参数结构体
737
+ */
738
+ export interface OperateChannelTemplateRequest {
739
+ /**
740
+ * 应用信息
741
+ */
742
+ Agent: Agent;
743
+ /**
744
+ * 渠道方模板库模板唯一标识
745
+ */
746
+ TemplateId: string;
747
+ /**
748
+ * 操作类型,查询:"SELECT",删除:"DELETE",更新:"UPDATE"
749
+ */
750
+ OperateType: string;
751
+ /**
752
+ * 操作者的信息
753
+ */
754
+ Operator?: UserInfo;
755
+ /**
756
+ * 模板可见性, 全部可见-"all", 部分可见-"part"
757
+ */
758
+ AuthTag?: string;
759
+ /**
760
+ * 合作企业方第三方机构唯一标识数据
761
+ */
762
+ ProxyOrganizationOpenIds?: string;
763
+ }
764
+ /**
765
+ * 合同(流程)下载信息
766
+ */
767
+ export interface DownloadFlowInfo {
768
+ /**
769
+ * 文件夹名称
770
+ */
771
+ FileName: string;
772
+ /**
773
+ * 合同(流程)的标识数组
774
+ */
775
+ FlowIdList: Array<string>;
776
+ }
640
777
  /**
641
778
  * 同步经办人失败原因
642
779
  */
@@ -689,41 +826,33 @@ export interface DescribeUsageRequest {
689
826
  Offset?: number;
690
827
  }
691
828
  /**
692
- * 签署参与者信息
829
+ * 合作企业经办人列表信息
693
830
  */
694
- export interface Recipient {
695
- /**
696
- * 签署人唯一标识
697
- */
698
- RecipientId?: string;
699
- /**
700
- * 签署方类型:ENTERPRISE-企业INDIVIDUAL-自然人
701
- */
702
- RecipientType?: string;
703
- /**
704
- * 描述
705
- */
706
- Description?: string;
831
+ export interface ProxyOrganizationOperator {
707
832
  /**
708
- * 签署方备注信息
833
+ * 经办人ID(渠道颁发)
709
834
  */
710
- RoleName?: string;
835
+ Id: string;
711
836
  /**
712
- * 是否需要校验
837
+ * 经办人姓名
713
838
  */
714
- RequireValidation?: boolean;
839
+ Name?: string;
715
840
  /**
716
- * 是否必须填写
717
- */
718
- RequireSign?: boolean;
841
+ * 经办人身份证件类型
842
+ 用户证件类型:默认ID_CARD
843
+ 1. ID_CARD - 居民身份证
844
+ 2. HOUSEHOLD_REGISTER - 户口本
845
+ 3. TEMP_ID_CARD - 临时居民身份证
846
+ */
847
+ IdCardType?: string;
719
848
  /**
720
- * 签署类型
849
+ * 经办人身份证号
721
850
  */
722
- SignType?: number;
851
+ IdCardNumber?: string;
723
852
  /**
724
- * 签署顺序:数字越小优先级越高
853
+ * 经办人手机号
725
854
  */
726
- RoutingOrder?: number;
855
+ Mobile?: string;
727
856
  }
728
857
  /**
729
858
  * 应用相关信息