tencentcloud-sdk-nodejs-essbasic 4.0.553 → 4.0.555

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.
@@ -117,6 +117,17 @@ export interface Department {
117
117
  DepartmentName: string
118
118
  }
119
119
 
120
+ /**
121
+ * 签署人配置信息
122
+ */
123
+ export interface CommonApproverOption {
124
+ /**
125
+ * 是否允许修改签署人信息
126
+ 注意:此字段可能返回 null,表示取不到有效值。
127
+ */
128
+ CanEditApprover?: boolean
129
+ }
130
+
120
131
  /**
121
132
  * ChannelCreateFlowSignReview请求参数结构体
122
133
  */
@@ -398,6 +409,70 @@ export interface FlowFileInfo {
398
409
  NeedSignReview?: boolean
399
410
  }
400
411
 
412
+ /**
413
+ * 创建合同配置信息
414
+ */
415
+ export interface CreateFlowOption {
416
+ /**
417
+ * 是否允许修改合同信息
418
+ 注意:此字段可能返回 null,表示取不到有效值。
419
+ */
420
+ CanEditFlow?: boolean
421
+ }
422
+
423
+ /**
424
+ * 基础流程信息
425
+ */
426
+ export interface BaseFlowInfo {
427
+ /**
428
+ * 合同流程名称
429
+ 注意:此字段可能返回 null,表示取不到有效值。
430
+ */
431
+ FlowName: string
432
+
433
+ /**
434
+ * 合同流程类型
435
+ 注意:此字段可能返回 null,表示取不到有效值。
436
+ */
437
+ FlowType: string
438
+
439
+ /**
440
+ * 合同流程描述信息
441
+ 注意:此字段可能返回 null,表示取不到有效值。
442
+ */
443
+ FlowDescription: string
444
+
445
+ /**
446
+ * 合同流程截止时间,unix时间戳
447
+ 注意:此字段可能返回 null,表示取不到有效值。
448
+ */
449
+ Deadline: number
450
+
451
+ /**
452
+ * 是否顺序签署(true:无序签,false:顺序签)
453
+ 注意:此字段可能返回 null,表示取不到有效值。
454
+ */
455
+ Unordered?: boolean
456
+
457
+ /**
458
+ * 打开智能添加填写区(默认开启,打开:"OPEN" 关闭:"CLOSE")
459
+ 注意:此字段可能返回 null,表示取不到有效值。
460
+ */
461
+ IntelligentStatus?: string
462
+
463
+ /**
464
+ * 填写控件内容
465
+ 注意:此字段可能返回 null,表示取不到有效值。
466
+ */
467
+ FormFields?: Array<FormField>
468
+
469
+ /**
470
+ * 本企业(发起方企业)是否需要签署审批,true:开启本企业签署审批
471
+ 注意:此字段可能返回 null,表示取不到有效值。
472
+ */
473
+ NeedSignReview?: boolean
474
+ }
475
+
401
476
  /**
402
477
  * CreateConsoleLoginUrl返回参数结构体
403
478
  */
@@ -465,26 +540,56 @@ export interface SyncProxyOrganizationRequest {
465
540
  }
466
541
 
467
542
  /**
468
- * CreateSealByImage请求参数结构体
543
+ * ChannelCreatePrepareFlow请求参数结构体
469
544
  */
470
- export interface CreateSealByImageRequest {
545
+ export interface ChannelCreatePrepareFlowRequest {
471
546
  /**
472
- * 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 均必填。
547
+ * 资源id,与ResourceType对应
473
548
  */
474
- Agent: Agent
549
+ ResourceId: string
475
550
 
476
551
  /**
477
- * 印章名称,最大长度不超过50字符
552
+ * 资源类型,1:模版,目前仅支持模版,与ResourceId对应
478
553
  */
479
- SealName: string
554
+ ResourceType: number
480
555
 
481
556
  /**
482
- * 印章图片base64,大小不超过10M(原始图片不超过7.6M)
557
+ * 合同流程基础信息
483
558
  */
484
- SealImage: string
559
+ FlowInfo: BaseFlowInfo
485
560
 
486
561
  /**
487
- * 操作者的信息
562
+ * 合同签署人信息
563
+ */
564
+ FlowApproverList: Array<CommonFlowApprover>
565
+
566
+ /**
567
+ * 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 均必填
568
+ */
569
+ Agent?: Agent
570
+
571
+ /**
572
+ * 合同流程配置信息
573
+ */
574
+ FlowOption?: CreateFlowOption
575
+
576
+ /**
577
+ * 该参数不可用,请通过获取 web 可嵌入接口获取合同流程预览 URL
578
+ */
579
+ FlowId?: string
580
+
581
+ /**
582
+ * 该参数不可用,请通过获取 web 可嵌入接口获取合同流程预览 URL
583
+ */
584
+ NeedPreview?: boolean
585
+
586
+ /**
587
+ * 企业机构信息,不用传
588
+ */
589
+ Organization?: OrganizationInfo
590
+
591
+ /**
592
+ * 操作人(用户)信息,不用传
488
593
  */
489
594
  Operator?: UserInfo
490
595
  }
@@ -1395,6 +1500,95 @@ export interface OrganizationInfo {
1395
1500
  Channel?: string
1396
1501
  }
1397
1502
 
1503
+ /**
1504
+ * 通用签署人信息
1505
+ */
1506
+ export interface CommonFlowApprover {
1507
+ /**
1508
+ * 指定当前签署人为第三方应用集成子客,默认false:当前签署人为第三方应用集成子客,true:当前签署人为saas企业用户
1509
+ 注意:此字段可能返回 null,表示取不到有效值。
1510
+ */
1511
+ NotChannelOrganization: boolean
1512
+
1513
+ /**
1514
+ * 签署人类型,目前支持:0-企业签署人,1-个人签署人,3-企业静默签署人
1515
+ 注意:此字段可能返回 null,表示取不到有效值。
1516
+ */
1517
+ ApproverType?: number
1518
+
1519
+ /**
1520
+ * 企业id
1521
+ 注意:此字段可能返回 null,表示取不到有效值。
1522
+ */
1523
+ OrganizationId?: string
1524
+
1525
+ /**
1526
+ * 企业OpenId,第三方应用集成非静默签子客企业签署人发起合同毕传
1527
+ 注意:此字段可能返回 null,表示取不到有效值。
1528
+ */
1529
+ OrganizationOpenId?: string
1530
+
1531
+ /**
1532
+ * 企业名称,第三方应用集成非静默签子客企业签署人必传,saas企业签署人必传
1533
+ 注意:此字段可能返回 null,表示取不到有效值。
1534
+ */
1535
+ OrganizationName?: string
1536
+
1537
+ /**
1538
+ * 用户id
1539
+ 注意:此字段可能返回 null,表示取不到有效值。
1540
+ */
1541
+ UserId?: string
1542
+
1543
+ /**
1544
+ * 用户openId,第三方应用集成非静默签子客企业签署人必传
1545
+ 注意:此字段可能返回 null,表示取不到有效值。
1546
+ */
1547
+ OpenId?: string
1548
+
1549
+ /**
1550
+ * 签署人名称,saas企业签署人,个人签署人必传
1551
+ 注意:此字段可能返回 null,表示取不到有效值。
1552
+ */
1553
+ ApproverName?: string
1554
+
1555
+ /**
1556
+ * 签署人手机号,saas企业签署人,个人签署人必传
1557
+ 注意:此字段可能返回 null,表示取不到有效值。
1558
+ */
1559
+ ApproverMobile?: string
1560
+
1561
+ /**
1562
+ * 签署人Id,使用模版发起是,对应模版配置中的签署人RecipientId
1563
+ 注意:此字段可能返回 null,表示取不到有效值。
1564
+ */
1565
+ RecipientId?: string
1566
+
1567
+ /**
1568
+ * 签署前置条件:阅读时长限制,不传默认10s,最大300s,最小3s
1569
+ 注意:此字段可能返回 null,表示取不到有效值。
1570
+ */
1571
+ PreReadTime?: number
1572
+
1573
+ /**
1574
+ * 签署前置条件:阅读全文限制
1575
+ 注意:此字段可能返回 null,表示取不到有效值。
1576
+ */
1577
+ IsFullText?: boolean
1578
+
1579
+ /**
1580
+ * 通知类型:SMS(短信) NONE(不做通知), 不传 默认SMS
1581
+ 注意:此字段可能返回 null,表示取不到有效值。
1582
+ */
1583
+ NotifyType?: string
1584
+
1585
+ /**
1586
+ * 签署人配置
1587
+ 注意:此字段可能返回 null,表示取不到有效值。
1588
+ */
1589
+ ApproverOption?: CommonApproverOption
1590
+ }
1591
+
1398
1592
  /**
1399
1593
  * 合同文件验签单个结果结构体
1400
1594
  */
@@ -2770,6 +2964,26 @@ export interface ChannelDescribeOrganizationSealsResponse {
2770
2964
  RequestId?: string
2771
2965
  }
2772
2966
 
2967
+ /**
2968
+ * ChannelCreatePrepareFlow返回参数结构体
2969
+ */
2970
+ export interface ChannelCreatePrepareFlowResponse {
2971
+ /**
2972
+ * 预发起的合同链接
2973
+ */
2974
+ PrepareFlowUrl?: string
2975
+
2976
+ /**
2977
+ * 合同发起后预览链接
2978
+ */
2979
+ PreviewFlowUrl?: string
2980
+
2981
+ /**
2982
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2983
+ */
2984
+ RequestId?: string
2985
+ }
2986
+
2773
2987
  /**
2774
2988
  * ChannelCancelMultiFlowSignQRCode返回参数结构体
2775
2989
  */
@@ -3289,6 +3503,21 @@ export interface GetDownloadFlowUrlRequest {
3289
3503
  Operator?: UserInfo
3290
3504
  }
3291
3505
 
3506
+ /**
3507
+ * ChannelCreateEmbedWebUrl返回参数结构体
3508
+ */
3509
+ export interface ChannelCreateEmbedWebUrlResponse {
3510
+ /**
3511
+ * 嵌入的web链接
3512
+ */
3513
+ WebUrl?: string
3514
+
3515
+ /**
3516
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3517
+ */
3518
+ RequestId?: string
3519
+ }
3520
+
3292
3521
  /**
3293
3522
  * ChannelBatchCancelFlows请求参数结构体
3294
3523
  */
@@ -3805,6 +4034,31 @@ export interface DescribeChannelFlowEvidenceReportResponse {
3805
4034
  RequestId?: string
3806
4035
  }
3807
4036
 
4037
+ /**
4038
+ * CreateSealByImage请求参数结构体
4039
+ */
4040
+ export interface CreateSealByImageRequest {
4041
+ /**
4042
+ * 应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 均必填。
4043
+ */
4044
+ Agent: Agent
4045
+
4046
+ /**
4047
+ * 印章名称,最大长度不超过50字符
4048
+ */
4049
+ SealName: string
4050
+
4051
+ /**
4052
+ * 印章图片base64,大小不超过10M(原始图片不超过7.6M)
4053
+ */
4054
+ SealImage: string
4055
+
4056
+ /**
4057
+ * 操作者的信息
4058
+ */
4059
+ Operator?: UserInfo
4060
+ }
4061
+
3808
4062
  /**
3809
4063
  * ChannelUpdateSealStatus返回参数结构体
3810
4064
  */
@@ -3861,6 +4115,36 @@ export interface DescribeExtendedServiceAuthInfoResponse {
3861
4115
  RequestId?: string
3862
4116
  }
3863
4117
 
4118
+ /**
4119
+ * ChannelCreateEmbedWebUrl请求参数结构体
4120
+ */
4121
+ export interface ChannelCreateEmbedWebUrlRequest {
4122
+ /**
4123
+ * WEB嵌入资源类型,取值范围:CREATE_SEAL创建印章,CREATE_TEMPLATE创建模板,MODIFY_TEMPLATE修改模板,PREVIEW_TEMPLATE预览模板,PREVIEW_FLOW预览流程
4124
+ */
4125
+ EmbedType: string
4126
+
4127
+ /**
4128
+ * 渠道应用相关信息。 此接口Agent.ProxyOrganizationOpenId、Agent. ProxyOperator.OpenId、Agent.AppId 和 Agent.ProxyAppId 必填。
4129
+ */
4130
+ Agent: Agent
4131
+
4132
+ /**
4133
+ * 渠道操作者信息
4134
+ */
4135
+ Operator?: UserInfo
4136
+
4137
+ /**
4138
+ * WEB嵌入的业务资源ID,EmbedType取值MODIFY_TEMPLATE或PREVIEW_TEMPLATE或 PREVIEW_FLOW时BusinessId必填
4139
+ */
4140
+ BusinessId?: string
4141
+
4142
+ /**
4143
+ * 是否隐藏控件,只有预览模板时生效
4144
+ */
4145
+ HiddenComponents?: boolean
4146
+ }
4147
+
3864
4148
  /**
3865
4149
  * 抄送信息
3866
4150
  */
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { SyncProxyOrganizationResponse, ChannelCreateConvertTaskApiResponse, ChannelCreateFlowRemindsResponse, ChannelDeleteSealPoliciesRequest, ChannelBatchCancelFlowsResponse, ChannelCreateFlowSignReviewRequest, DescribeFlowDetailInfoRequest, ModifyExtendedServiceRequest, DescribeResourceUrlsByFlowsRequest, ChannelCreateFlowSignUrlResponse, CreateSealByImageResponse, OperateChannelTemplateResponse, CreateConsoleLoginUrlResponse, SyncProxyOrganizationRequest, CreateSealByImageRequest, ChannelCreateFlowRemindsRequest, ChannelCreateSealPolicyResponse, ChannelCancelFlowResponse, ChannelCreateConvertTaskApiRequest, ChannelCreateFlowByFilesRequest, ChannelCreateFlowGroupByFilesRequest, DescribeFlowDetailInfoResponse, PrepareFlowsResponse, GetDownloadFlowUrlResponse, DescribeTemplatesResponse, ChannelVerifyPdfRequest, CreateChannelFlowEvidenceReportRequest, ChannelVerifyPdfResponse, CreateConsoleLoginUrlRequest, ChannelCancelMultiFlowSignQRCodeRequest, UploadFilesRequest, ChannelDescribeOrganizationSealsRequest, DescribeUsageRequest, DescribeExtendedServiceAuthInfoRequest, DescribeUsageResponse, ChannelCreateBoundFlowsRequest, ChannelDescribeEmployeesRequest, DescribeResourceUrlsByFlowsResponse, SyncProxyOrganizationOperatorsRequest, CreateSignUrlsRequest, ChannelCreateMultiFlowSignQRCodeRequest, ChannelGetTaskResultApiRequest, CreateFlowsByTemplatesResponse, DescribeChannelFlowEvidenceReportRequest, SyncProxyOrganizationOperatorsResponse, CreateSignUrlsResponse, UploadFilesResponse, ChannelCreateBatchCancelFlowUrlRequest, PrepareFlowsRequest, ChannelCreateFlowByFilesResponse, ChannelCreateFlowSignReviewResponse, ChannelDescribeOrganizationSealsResponse, ChannelCancelMultiFlowSignQRCodeResponse, ChannelCreateReleaseFlowRequest, ChannelCreateFlowGroupByFilesResponse, ChannelCreateMultiFlowSignQRCodeResponse, ChannelCreateBoundFlowsResponse, ModifyExtendedServiceResponse, ChannelGetTaskResultApiResponse, ChannelDeleteSealPoliciesResponse, GetDownloadFlowUrlRequest, ChannelBatchCancelFlowsRequest, ChannelUpdateSealStatusRequest, ChannelCancelFlowRequest, DescribeTemplatesRequest, ChannelCreateSealPolicyRequest, CreateFlowsByTemplatesRequest, ChannelCreateBatchCancelFlowUrlResponse, OperateChannelTemplateRequest, CreateChannelFlowEvidenceReportResponse, ChannelDescribeEmployeesResponse, ChannelCreateReleaseFlowResponse, DescribeChannelFlowEvidenceReportResponse, ChannelUpdateSealStatusResponse, ChannelCreateFlowSignUrlRequest, DescribeExtendedServiceAuthInfoResponse } from "./essbasic_models";
2
+ import { SyncProxyOrganizationResponse, ChannelCreateConvertTaskApiResponse, ChannelCreateFlowRemindsResponse, ChannelDeleteSealPoliciesRequest, ChannelBatchCancelFlowsResponse, ChannelCreateFlowSignReviewRequest, DescribeFlowDetailInfoRequest, ModifyExtendedServiceRequest, DescribeResourceUrlsByFlowsRequest, ChannelCreateFlowSignUrlResponse, CreateSealByImageResponse, OperateChannelTemplateResponse, CreateConsoleLoginUrlResponse, SyncProxyOrganizationRequest, ChannelCreatePrepareFlowRequest, ChannelCreateFlowRemindsRequest, ChannelCreateSealPolicyResponse, ChannelCancelFlowResponse, ChannelCreateConvertTaskApiRequest, ChannelCreateFlowByFilesRequest, ChannelCreateFlowGroupByFilesRequest, DescribeFlowDetailInfoResponse, PrepareFlowsResponse, GetDownloadFlowUrlResponse, DescribeTemplatesResponse, ChannelVerifyPdfRequest, CreateChannelFlowEvidenceReportRequest, ChannelVerifyPdfResponse, CreateConsoleLoginUrlRequest, ChannelCancelMultiFlowSignQRCodeRequest, UploadFilesRequest, ChannelDescribeOrganizationSealsRequest, DescribeUsageRequest, DescribeExtendedServiceAuthInfoRequest, DescribeUsageResponse, ChannelCreateBoundFlowsRequest, ChannelDescribeEmployeesRequest, DescribeResourceUrlsByFlowsResponse, SyncProxyOrganizationOperatorsRequest, CreateSignUrlsRequest, ChannelCreateMultiFlowSignQRCodeRequest, ChannelGetTaskResultApiRequest, CreateFlowsByTemplatesResponse, DescribeChannelFlowEvidenceReportRequest, SyncProxyOrganizationOperatorsResponse, CreateSignUrlsResponse, UploadFilesResponse, ChannelCreateBatchCancelFlowUrlRequest, PrepareFlowsRequest, ChannelCreateFlowByFilesResponse, ChannelCreateFlowSignReviewResponse, ChannelDescribeOrganizationSealsResponse, ChannelCreatePrepareFlowResponse, ChannelCancelMultiFlowSignQRCodeResponse, ChannelCreateReleaseFlowRequest, ChannelCreateFlowGroupByFilesResponse, ChannelCreateMultiFlowSignQRCodeResponse, ChannelCreateBoundFlowsResponse, ModifyExtendedServiceResponse, ChannelGetTaskResultApiResponse, ChannelDeleteSealPoliciesResponse, GetDownloadFlowUrlRequest, ChannelCreateEmbedWebUrlResponse, ChannelBatchCancelFlowsRequest, ChannelUpdateSealStatusRequest, ChannelCancelFlowRequest, DescribeTemplatesRequest, ChannelCreateSealPolicyRequest, CreateFlowsByTemplatesRequest, ChannelCreateBatchCancelFlowUrlResponse, OperateChannelTemplateRequest, CreateChannelFlowEvidenceReportResponse, ChannelDescribeEmployeesResponse, ChannelCreateReleaseFlowResponse, DescribeChannelFlowEvidenceReportResponse, CreateSealByImageRequest, ChannelUpdateSealStatusResponse, ChannelCreateFlowSignUrlRequest, DescribeExtendedServiceAuthInfoResponse, ChannelCreateEmbedWebUrlRequest } from "./essbasic_models";
3
3
  /**
4
4
  * essbasic client
5
5
  * @class
@@ -97,6 +97,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
97
97
  * 此接口(ChannelCreateBoundFlows)用于子客领取合同,经办人需要有相应的角色,合同不能重复领取。
98
98
  */
99
99
  ChannelCreateBoundFlows(req: ChannelCreateBoundFlowsRequest, cb?: (error: string, rep: ChannelCreateBoundFlowsResponse) => void): Promise<ChannelCreateBoundFlowsResponse>;
100
+ /**
101
+ * 创建预发起合同
102
+ */
103
+ ChannelCreatePrepareFlow(req: ChannelCreatePrepareFlowRequest, cb?: (error: string, rep: ChannelCreatePrepareFlowResponse) => void): Promise<ChannelCreatePrepareFlowResponse>;
100
104
  /**
101
105
  * 指定需要批量撤销的签署流程Id,获取批量撤销链接 - 不建议使用此接口,可使用ChannelBatchCancelFlows
102
106
  客户指定需要撤销的签署流程Id,最多100个,超过100不处理;
@@ -208,6 +212,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
208
212
  * 接口(ChannelCreateFlowGroupByFiles)用于通过多文件创建合同组签署流程。
209
213
  */
210
214
  ChannelCreateFlowGroupByFiles(req: ChannelCreateFlowGroupByFilesRequest, cb?: (error: string, rep: ChannelCreateFlowGroupByFilesResponse) => void): Promise<ChannelCreateFlowGroupByFilesResponse>;
215
+ /**
216
+ * 本接口(ChannelCreateEmbedWebUrl)用于创建嵌入web的链接
217
+ */
218
+ ChannelCreateEmbedWebUrl(req: ChannelCreateEmbedWebUrlRequest, cb?: (error: string, rep: ChannelCreateEmbedWebUrlResponse) => void): Promise<ChannelCreateEmbedWebUrlResponse>;
211
219
  /**
212
220
  * 此接口(DescribeFlowDetailInfo)用于查询合同(签署流程)的详细信息。
213
221
  */
@@ -150,6 +150,12 @@ class Client extends TencentCloudCommon.AbstractClient {
150
150
  async ChannelCreateBoundFlows(req, cb) {
151
151
  return this.request("ChannelCreateBoundFlows", req, cb);
152
152
  }
153
+ /**
154
+ * 创建预发起合同
155
+ */
156
+ async ChannelCreatePrepareFlow(req, cb) {
157
+ return this.request("ChannelCreatePrepareFlow", req, cb);
158
+ }
153
159
  /**
154
160
  * 指定需要批量撤销的签署流程Id,获取批量撤销链接 - 不建议使用此接口,可使用ChannelBatchCancelFlows
155
161
  客户指定需要撤销的签署流程Id,最多100个,超过100不处理;
@@ -303,6 +309,12 @@ class Client extends TencentCloudCommon.AbstractClient {
303
309
  async ChannelCreateFlowGroupByFiles(req, cb) {
304
310
  return this.request("ChannelCreateFlowGroupByFiles", req, cb);
305
311
  }
312
+ /**
313
+ * 本接口(ChannelCreateEmbedWebUrl)用于创建嵌入web的链接
314
+ */
315
+ async ChannelCreateEmbedWebUrl(req, cb) {
316
+ return this.request("ChannelCreateEmbedWebUrl", req, cb);
317
+ }
306
318
  /**
307
319
  * 此接口(DescribeFlowDetailInfo)用于查询合同(签署流程)的详细信息。
308
320
  */