tencentcloud-sdk-ess 3.0.682 → 3.0.684

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b9f6303390069e02d65b677a1d6c8aec52e76f2
4
- data.tar.gz: 505bc397ccca715c558a2a0fa27245ffe57402b7
3
+ metadata.gz: 6b0e06ccc9e48117541d40b45e0c53f25c630861
4
+ data.tar.gz: 213f376f9833001afae19bd09423611023b7be9d
5
5
  SHA512:
6
- metadata.gz: 05a1214484ea4f7cc4aeea79a9d34a419790bb743e5c1ac67c5a32a819622271c0c922a859ec26e7f7ca3e7a2ed0dc142f80e48e28cd5ba45f47292d283a1c84
7
- data.tar.gz: 74ffcde575b3e9ff00891c9ed8a39d4579483aff04465ed2c0a9d1aa0e0e7883514b2f109465fdec718ee33ff90e848b0d940001fda7d220ebf3b62807456ffd
6
+ metadata.gz: 7a95480617954616ad22b04ca1254d8345801cdd7a23f49e85707060b60117fe5c13a2e0e4b868c2af80944a1fb333f245cbac8c590c2bf91ddcc152b701d0d1
7
+ data.tar.gz: e07bf6dccc2cf46d70a3cecf30bf0fe3534c724ca866656612be9224940ea9bac00c58ed74fa1c4d17d2197de6c127b6cabd094302d946b9de473898622e0b4b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.682
1
+ 3.0.684
@@ -191,13 +191,13 @@ module TencentCloud
191
191
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
192
192
  end
193
193
 
194
- # 此接口(CreateConvertTaskApi)用来将word、excel、图片、txt类型文件转换为PDF文件。<br />
194
+ # 此接口(CreateConvertTaskApi)用来将word、excel、html、图片、txt类型文件转换为PDF文件。<br />
195
195
  # 前提条件:源文件已经通过 <a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/UploadFiles" target="_blank">文件上传接口</a>完成上传,并得到了源文件的资源Id。<br />
196
196
  # 适用场景1:已经上传了一个word文件,希望将该word文件转换成pdf文件后发起合同
197
197
  # 适用场景2:已经上传了一个jpg图片文件,希望将该图片文件转换成pdf文件后发起合同<br />
198
198
  # 转换文件是一个耗时操作,若想查看转换任务是否完成,可以通过<a href="https://qian.tencent.com/developers/companyApis/templatesAndFiles/GetTaskResultApi" target="_blank">查询转换任务状态</a>接口获取任务状态。<br />
199
199
  # 注:
200
- # 1. `支持的文件类型有doc、docx、xls、xlsx、jpg、jpeg、png、bmp、txt`
200
+ # 1. `支持的文件类型有doc、docx、xls、xlsx、html、jpg、jpeg、png、bmp、txt`
201
201
  # 2. `可通过发起合同时设置预览来检查转换文件是否达到预期效果`
202
202
 
203
203
  # @param request: Request instance for CreateConvertTaskApi.
@@ -283,6 +283,32 @@ module TencentCloud
283
283
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
284
284
  end
285
285
 
286
+ # 创建企业扩展服务授权,当前仅支持授权 “企业自动签” 给企业员工。
287
+
288
+ # 注:支持集团代子企业操作,请联系运营开通此功能。
289
+
290
+ # @param request: Request instance for CreateExtendedServiceAuthInfos.
291
+ # @type request: :class:`Tencentcloud::ess::V20201111::CreateExtendedServiceAuthInfosRequest`
292
+ # @rtype: :class:`Tencentcloud::ess::V20201111::CreateExtendedServiceAuthInfosResponse`
293
+ def CreateExtendedServiceAuthInfos(request)
294
+ body = send_request('CreateExtendedServiceAuthInfos', request.serialize)
295
+ response = JSON.parse(body)
296
+ if response['Response'].key?('Error') == false
297
+ model = CreateExtendedServiceAuthInfosResponse.new
298
+ model.deserialize(response['Response'])
299
+ model
300
+ else
301
+ code = response['Response']['Error']['Code']
302
+ message = response['Response']['Error']['Message']
303
+ reqid = response['Response']['RequestId']
304
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
305
+ end
306
+ rescue TencentCloud::Common::TencentCloudSDKException => e
307
+ raise e
308
+ rescue StandardError => e
309
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
310
+ end
311
+
286
312
  # 通过模板创建签署流程<br/>
287
313
  # 适用场景:在标准制式的合同场景中,可通过提前预制好模板文件,每次调用模板文件的id,补充合同内容信息及签署信息生成电子合同。
288
314
 
@@ -1057,6 +1083,32 @@ module TencentCloud
1057
1083
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1058
1084
  end
1059
1085
 
1086
+ # 删除企业扩展服务授权,当前仅支持 “企业自动签” 取消授权。
1087
+
1088
+ # 注:支持集团代子企业操作,请联系运营开通此功能。
1089
+
1090
+ # @param request: Request instance for DeleteExtendedServiceAuthInfos.
1091
+ # @type request: :class:`Tencentcloud::ess::V20201111::DeleteExtendedServiceAuthInfosRequest`
1092
+ # @rtype: :class:`Tencentcloud::ess::V20201111::DeleteExtendedServiceAuthInfosResponse`
1093
+ def DeleteExtendedServiceAuthInfos(request)
1094
+ body = send_request('DeleteExtendedServiceAuthInfos', request.serialize)
1095
+ response = JSON.parse(body)
1096
+ if response['Response'].key?('Error') == false
1097
+ model = DeleteExtendedServiceAuthInfosResponse.new
1098
+ model.deserialize(response['Response'])
1099
+ model
1100
+ else
1101
+ code = response['Response']['Error']['Code']
1102
+ message = response['Response']['Error']['Message']
1103
+ reqid = response['Response']['RequestId']
1104
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1105
+ end
1106
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1107
+ raise e
1108
+ rescue StandardError => e
1109
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1110
+ end
1111
+
1060
1112
  # 此接口(DeleteIntegrationDepartment)用于删除企业的部门信息。
1061
1113
 
1062
1114
  # @param request: Request instance for DeleteIntegrationDepartment.
@@ -782,7 +782,14 @@ module TencentCloud
782
782
  end
783
783
  end
784
784
 
785
- # 模板/流程中控件信息,可以是填充控件或签署控件
785
+ # 此结构体 (Component) 用于描述控件属性。
786
+
787
+ # 在通过文件发起合同时,对应的component有三种定位方式
788
+ # 1. 绝对定位方式
789
+ # 2. 表单域(FIELD)定位方式
790
+ # 3. 关键字(KEYWORD)定位方式,使用关键字定位时,请确保PDF原始文件内是关键字以文字形式保存在PDF文件中,不支持对图片内文字进行关键字查找
791
+ # 可以参考官网说明
792
+ # https://cloud.tencent.com/document/product/1323/78346#component-.E4.B8.89.E7.A7.8D.E5.AE.9A.E4.BD.8D.E6.96.B9.E5.BC.8F.E8.AF.B4.E6.98.8E
786
793
  class Component < TencentCloud::Common::AbstractModel
787
794
  # @param ComponentType: 如果是Component填写控件类型,则可选的字段为:
788
795
  # TEXT - 普通文本控件,输入文本字符串;
@@ -947,9 +954,10 @@ module TencentCloud
947
954
  # 学历控件:
948
955
  # 同单行文本控件约束,填写选择值中的字符串
949
956
  # @type ComponentValue: String
950
- # @param GenerateMode: NORMAL 正常模式,使用坐标制定签署控件位置
951
- # FIELD 表单域,需使用ComponentName指定表单域名称
952
- # KEYWORD 关键字,使用ComponentId指定关键字
957
+ # @param GenerateMode: 控件生成的方式:
958
+ # NORMAL - 普通控件
959
+ # FIELD - 表单域
960
+ # KEYWORD - 关键字(设置关键字时,请确保PDF原始文件内是关键字以文字形式保存在PDF文件中,不支持对图片内文字进行关键字查找)
953
961
  # @type GenerateMode: String
954
962
  # @param ComponentDateFontSize: 日期签署控件的字号,默认为 12
955
963
  # @type ComponentDateFontSize: Integer
@@ -1378,12 +1386,13 @@ module TencentCloud
1378
1386
  # @param NeedPreview: 是否为预览模式,取值如下:
1379
1387
  # <ul><li> **false**:非预览模式(默认),会产生合同流程并返回合同流程编号FlowId。</li>
1380
1388
  # <li> **true**:预览模式,不产生合同流程,不返回合同流程编号FlowId,而是返回预览链接PreviewUrl,有效期为300秒,用于查看真实发起后合同的样子。</li></ul>
1381
- # 注: `当使用的模板中存在动态表格控件时,预览结果中没有动态表格的填写内容`
1389
+ # 注: `当使用的模板中存在动态表格控件时,预览结果中没有动态表格的填写内容,动态表格合成完后会触发文档合成完成的回调通知`
1382
1390
  # @type NeedPreview: Boolean
1383
1391
  # @param PreviewType: 预览模式下产生的预览链接类型
1384
1392
  # <ul><li> **0** :(默认) 文件流 ,点开后后下载预览的合同PDF文件 </li>
1385
- # <li> **1** :H5链接 ,点开后在浏览器中展示合同的样子</li></ul>
1386
- # 注: `此参数在NeedPreview 为true时有效`
1393
+ # <li> **1** :H5链接 ,点开后在浏览器中展示合同的样子。</li></ul>
1394
+ # 注: `1.此参数在NeedPreview 为true时有效`
1395
+ # `2.动态表格控件不支持H5链接方式预览`
1387
1396
  # @type PreviewType: Integer
1388
1397
  # @param Agent: 代理企业和员工的信息。
1389
1398
  # 在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。
@@ -1557,6 +1566,62 @@ module TencentCloud
1557
1566
  end
1558
1567
  end
1559
1568
 
1569
+ # CreateExtendedServiceAuthInfos请求参数结构体
1570
+ class CreateExtendedServiceAuthInfosRequest < TencentCloud::Common::AbstractModel
1571
+ # @param Operator: 执行本接口操作的员工信息。
1572
+ # 注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`
1573
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
1574
+ # @param UserIds: 本企业员工的id,需要已实名,正常在职员工
1575
+ # @type UserIds: Array
1576
+ # @param ExtendServiceType: 要查询的扩展服务类型。
1577
+ # 默认为空,即查询当前支持的所有扩展服务信息。
1578
+ # 若需查询单个扩展服务的开通情况,请传递相应的值,如下所示:
1579
+ # <ul><li>OPEN_SERVER_SIGN:企业自动签</li>
1580
+ # </ul>
1581
+ # @type ExtendServiceType: String
1582
+ # @param Agent: 代理企业和员工的信息。
1583
+ # 在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。
1584
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
1585
+
1586
+ attr_accessor :Operator, :UserIds, :ExtendServiceType, :Agent
1587
+
1588
+ def initialize(operator=nil, userids=nil, extendservicetype=nil, agent=nil)
1589
+ @Operator = operator
1590
+ @UserIds = userids
1591
+ @ExtendServiceType = extendservicetype
1592
+ @Agent = agent
1593
+ end
1594
+
1595
+ def deserialize(params)
1596
+ unless params['Operator'].nil?
1597
+ @Operator = UserInfo.new
1598
+ @Operator.deserialize(params['Operator'])
1599
+ end
1600
+ @UserIds = params['UserIds']
1601
+ @ExtendServiceType = params['ExtendServiceType']
1602
+ unless params['Agent'].nil?
1603
+ @Agent = Agent.new
1604
+ @Agent.deserialize(params['Agent'])
1605
+ end
1606
+ end
1607
+ end
1608
+
1609
+ # CreateExtendedServiceAuthInfos返回参数结构体
1610
+ class CreateExtendedServiceAuthInfosResponse < TencentCloud::Common::AbstractModel
1611
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1612
+ # @type RequestId: String
1613
+
1614
+ attr_accessor :RequestId
1615
+
1616
+ def initialize(requestid=nil)
1617
+ @RequestId = requestid
1618
+ end
1619
+
1620
+ def deserialize(params)
1621
+ @RequestId = params['RequestId']
1622
+ end
1623
+ end
1624
+
1560
1625
  # CreateFlowApprovers请求参数结构体
1561
1626
  class CreateFlowApproversRequest < TencentCloud::Common::AbstractModel
1562
1627
  # @param Operator: 执行本接口操作的员工信息。
@@ -4181,6 +4246,62 @@ module TencentCloud
4181
4246
  end
4182
4247
  end
4183
4248
 
4249
+ # DeleteExtendedServiceAuthInfos请求参数结构体
4250
+ class DeleteExtendedServiceAuthInfosRequest < TencentCloud::Common::AbstractModel
4251
+ # @param Operator: 执行本接口操作的员工信息。
4252
+ # 注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`
4253
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
4254
+ # @param UserIds: 本企业员工的id,需要已实名,正常在职员工
4255
+ # @type UserIds: Array
4256
+ # @param ExtendServiceType: 要查询的扩展服务类型。
4257
+ # 默认为空,即查询当前支持的所有扩展服务信息。
4258
+ # 若需查询单个扩展服务的开通情况,请传递相应的值,如下所示:
4259
+ # <ul><li>OPEN_SERVER_SIGN:企业自动签</li>
4260
+ # </ul>
4261
+ # @type ExtendServiceType: String
4262
+ # @param Agent: 代理企业和员工的信息。
4263
+ # 在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。
4264
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
4265
+
4266
+ attr_accessor :Operator, :UserIds, :ExtendServiceType, :Agent
4267
+
4268
+ def initialize(operator=nil, userids=nil, extendservicetype=nil, agent=nil)
4269
+ @Operator = operator
4270
+ @UserIds = userids
4271
+ @ExtendServiceType = extendservicetype
4272
+ @Agent = agent
4273
+ end
4274
+
4275
+ def deserialize(params)
4276
+ unless params['Operator'].nil?
4277
+ @Operator = UserInfo.new
4278
+ @Operator.deserialize(params['Operator'])
4279
+ end
4280
+ @UserIds = params['UserIds']
4281
+ @ExtendServiceType = params['ExtendServiceType']
4282
+ unless params['Agent'].nil?
4283
+ @Agent = Agent.new
4284
+ @Agent.deserialize(params['Agent'])
4285
+ end
4286
+ end
4287
+ end
4288
+
4289
+ # DeleteExtendedServiceAuthInfos返回参数结构体
4290
+ class DeleteExtendedServiceAuthInfosResponse < TencentCloud::Common::AbstractModel
4291
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4292
+ # @type RequestId: String
4293
+
4294
+ attr_accessor :RequestId
4295
+
4296
+ def initialize(requestid=nil)
4297
+ @RequestId = requestid
4298
+ end
4299
+
4300
+ def deserialize(params)
4301
+ @RequestId = params['RequestId']
4302
+ end
4303
+ end
4304
+
4184
4305
  # DeleteIntegrationDepartment请求参数结构体
4185
4306
  class DeleteIntegrationDepartmentRequest < TencentCloud::Common::AbstractModel
4186
4307
  # @param Operator: 执行本接口操作的员工信息。
@@ -4956,8 +5077,10 @@ module TencentCloud
4956
5077
  # @type Organization: :class:`Tencentcloud::Ess.v20201111.models.OrganizationInfo`
4957
5078
  # @param GenerateSource: 暂未开放
4958
5079
  # @type GenerateSource: Integer
5080
+ # @param WithPreviewUrl: 是否获取模板预览链接
5081
+ # @type WithPreviewUrl: Boolean
4959
5082
 
4960
- attr_accessor :Operator, :Agent, :ContentType, :Filters, :Offset, :Limit, :ApplicationId, :IsChannel, :Organization, :GenerateSource
5083
+ attr_accessor :Operator, :Agent, :ContentType, :Filters, :Offset, :Limit, :ApplicationId, :IsChannel, :Organization, :GenerateSource, :WithPreviewUrl
4961
5084
  extend Gem::Deprecate
4962
5085
  deprecate :IsChannel, :none, 2023, 10
4963
5086
  deprecate :IsChannel=, :none, 2023, 10
@@ -4966,7 +5089,7 @@ module TencentCloud
4966
5089
  deprecate :GenerateSource, :none, 2023, 10
4967
5090
  deprecate :GenerateSource=, :none, 2023, 10
4968
5091
 
4969
- def initialize(operator=nil, agent=nil, contenttype=nil, filters=nil, offset=nil, limit=nil, applicationid=nil, ischannel=nil, organization=nil, generatesource=nil)
5092
+ def initialize(operator=nil, agent=nil, contenttype=nil, filters=nil, offset=nil, limit=nil, applicationid=nil, ischannel=nil, organization=nil, generatesource=nil, withpreviewurl=nil)
4970
5093
  @Operator = operator
4971
5094
  @Agent = agent
4972
5095
  @ContentType = contenttype
@@ -4977,6 +5100,7 @@ module TencentCloud
4977
5100
  @IsChannel = ischannel
4978
5101
  @Organization = organization
4979
5102
  @GenerateSource = generatesource
5103
+ @WithPreviewUrl = withpreviewurl
4980
5104
  end
4981
5105
 
4982
5106
  def deserialize(params)
@@ -5006,6 +5130,7 @@ module TencentCloud
5006
5130
  @Organization.deserialize(params['Organization'])
5007
5131
  end
5008
5132
  @GenerateSource = params['GenerateSource']
5133
+ @WithPreviewUrl = params['WithPreviewUrl']
5009
5134
  end
5010
5135
  end
5011
5136
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ess
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.682
4
+ version: 3.0.684
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-23 00:00:00.000000000 Z
11
+ date: 2023-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common