tencentcloud-sdk-nodejs-intl-en 3.0.1089 → 3.0.1091
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.
- package/package.json +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cvm/v20170312/models.js +38 -11
- package/tencentcloud/dcdb/v20180411/dcdb_client.js +25 -12
- package/tencentcloud/dcdb/v20180411/models.js +135 -0
- package/tencentcloud/ocr/v20181119/models.js +213 -61
- package/tencentcloud/ocr/v20181119/ocr_client.js +16 -1
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1091";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -1071,15 +1071,15 @@ class SystemDisk extends AbstractModel {
|
|
|
1071
1071
|
super();
|
|
1072
1072
|
|
|
1073
1073
|
/**
|
|
1074
|
-
* System disk type. For the restrictions on the system disk type, refer to [Storage Overview]
|
|
1074
|
+
* System disk type. For the restrictions on the system disk type, refer to [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Value values:<br>
|
|
1075
1075
|
<li>LOCAL_BASIC: Local Disk</li>
|
|
1076
|
-
<li>LOCAL_SSD: Local SSD
|
|
1077
|
-
<li>CLOUD_BASIC:
|
|
1076
|
+
<li>LOCAL_SSD: Local SSD</li>
|
|
1077
|
+
<li>CLOUD_BASIC: Basic Cloud Disk</li>
|
|
1078
1078
|
<li>CLOUD_SSD: Cloud SSD</li>
|
|
1079
|
-
<li>CLOUD_PREMIUM: Premium
|
|
1079
|
+
<li>CLOUD_PREMIUM: Premium Disk</li>
|
|
1080
1080
|
<li>CLOUD_BSSD: Balanced SSD</li>
|
|
1081
1081
|
<li>CLOUD_HSSD: Enhanced SSD</li>
|
|
1082
|
-
<li>CLOUD_TSSD:
|
|
1082
|
+
<li>CLOUD_TSSD: Tremendous SSD</li><br>
|
|
1083
1083
|
Default value: Current disk types with inventory available.
|
|
1084
1084
|
* @type {string || null}
|
|
1085
1085
|
*/
|
|
@@ -4500,23 +4500,24 @@ class DataDisk extends AbstractModel {
|
|
|
4500
4500
|
this.DiskSize = null;
|
|
4501
4501
|
|
|
4502
4502
|
/**
|
|
4503
|
-
* Data disk type. For the detailed restrictions on the data disk type, refer to [Storage Overview]
|
|
4503
|
+
* Data disk type. For the detailed restrictions on the data disk type, refer to [Storage Overview](https://cloud.tencent.com/document/product/213/4952). Valid values: <br /><li>LOCAL_BASIC: Local Disk <br /><li>LOCAL_SSD: Local SSD <br /><li>LOCAL_NVME: Local NVMe Disk, which is strongly related with InstanceType and can not be specified <br /><li>LOCAL_PRO: Local HDD, which is strongly related with InstanceType and can not be specified <br /><li>CLOUD_BASIC: Basic Cloud Disk <br /><li>CLOUD_PREMIUM: Premium Disk <br /><li>CLOUD_SSD: Cloud SSD <br /><li>CLOUD_HSSD: Enhanced SSD <br /><li>CLOUD_TSSD: Tremendous SSD <br /><li>CLOUD_BSSD: Balanced SSD <br /><br />Default value: LOCAL_BASIC. <br /><br />This parameter is invalid for the `ResizeInstanceDisk` API.</li></li></li> </li> </li></li></li></li></li></li>
|
|
4504
4504
|
* @type {string || null}
|
|
4505
4505
|
*/
|
|
4506
4506
|
this.DiskType = null;
|
|
4507
4507
|
|
|
4508
4508
|
/**
|
|
4509
|
-
* Data disk ID. Note that it
|
|
4509
|
+
* Data disk ID. Note that it's not available for `LOCAL_BASIC` and `LOCAL_SSD` disks.
|
|
4510
4510
|
It is only used as a response parameter for APIs such as `DescribeInstances`, and cannot be used as a request parameter for APIs such as `RunInstances`.
|
|
4511
4511
|
* @type {string || null}
|
|
4512
4512
|
*/
|
|
4513
4513
|
this.DiskId = null;
|
|
4514
4514
|
|
|
4515
4515
|
/**
|
|
4516
|
-
* Whether the data disk is
|
|
4517
|
-
|
|
4516
|
+
* Whether the data disk is terminated with the Cloud Virtual Machine (CVM). Valid values:
|
|
4517
|
+
|
|
4518
|
+
<li>true: Terminate the data disk when the CVM is terminated. Only the pay-as-you-go cloud disk billed by hour is supported.</li>
|
|
4518
4519
|
<li>
|
|
4519
|
-
false: Retain the data disk when the CVM is
|
|
4520
|
+
false: Retain the data disk when the CVM is terminated.<br />
|
|
4520
4521
|
Default value: true.<br />
|
|
4521
4522
|
This parameter is currently only used for the `RunInstances` API.
|
|
4522
4523
|
</li>
|
|
@@ -4546,7 +4547,7 @@ Note: This field may return null, indicating that no valid value is found.
|
|
|
4546
4547
|
this.Encrypt = null;
|
|
4547
4548
|
|
|
4548
4549
|
/**
|
|
4549
|
-
* ID of the custom CMK in the format of UUID or
|
|
4550
|
+
* ID of the custom CMK in the format of UUID or "kms-abcd1234". This parameter is used to encrypt cloud disks.
|
|
4550
4551
|
|
|
4551
4552
|
Currently, this parameter is only used in the `RunInstances` API.
|
|
4552
4553
|
Note: this field may return null, indicating that no valid values can be obtained.
|
|
@@ -6516,6 +6517,29 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
6516
6517
|
*/
|
|
6517
6518
|
this.Externals = null;
|
|
6518
6519
|
|
|
6520
|
+
/**
|
|
6521
|
+
* Timer ID.
|
|
6522
|
+
* @type {string || null}
|
|
6523
|
+
*/
|
|
6524
|
+
this.ActionTimerId = null;
|
|
6525
|
+
|
|
6526
|
+
/**
|
|
6527
|
+
* Timer status. Valid values:
|
|
6528
|
+
|
|
6529
|
+
UNDO: Not triggered.
|
|
6530
|
+
DOING: Triggering.
|
|
6531
|
+
DONE: Triggered already.
|
|
6532
|
+
|
|
6533
|
+
* @type {string || null}
|
|
6534
|
+
*/
|
|
6535
|
+
this.Status = null;
|
|
6536
|
+
|
|
6537
|
+
/**
|
|
6538
|
+
* Instance ID corresponding to a timer.
|
|
6539
|
+
* @type {string || null}
|
|
6540
|
+
*/
|
|
6541
|
+
this.InstanceId = null;
|
|
6542
|
+
|
|
6519
6543
|
}
|
|
6520
6544
|
|
|
6521
6545
|
/**
|
|
@@ -6533,6 +6557,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
6533
6557
|
obj.deserialize(params.Externals)
|
|
6534
6558
|
this.Externals = obj;
|
|
6535
6559
|
}
|
|
6560
|
+
this.ActionTimerId = 'ActionTimerId' in params ? params.ActionTimerId : null;
|
|
6561
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
6562
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
6536
6563
|
|
|
6537
6564
|
}
|
|
6538
6565
|
}
|
|
@@ -40,6 +40,7 @@ const DescribeProjectSecurityGroupsRequest = models.DescribeProjectSecurityGroup
|
|
|
40
40
|
const DescribeDBSlowLogsRequest = models.DescribeDBSlowLogsRequest;
|
|
41
41
|
const CreateAccountRequest = models.CreateAccountRequest;
|
|
42
42
|
const UpgradeDedicatedDCDBInstanceResponse = models.UpgradeDedicatedDCDBInstanceResponse;
|
|
43
|
+
const CreateOnlineDDLJobResponse = models.CreateOnlineDDLJobResponse;
|
|
43
44
|
const DescribeDBParametersResponse = models.DescribeDBParametersResponse;
|
|
44
45
|
const DescribeBackupFilesRequest = models.DescribeBackupFilesRequest;
|
|
45
46
|
const IsolateHourDCDBInstanceRequest = models.IsolateHourDCDBInstanceRequest;
|
|
@@ -130,6 +131,7 @@ const CloseDBExtranetAccessResponse = models.CloseDBExtranetAccessResponse;
|
|
|
130
131
|
const ModifyAccountDescriptionRequest = models.ModifyAccountDescriptionRequest;
|
|
131
132
|
const KillSessionResponse = models.KillSessionResponse;
|
|
132
133
|
const SlowLogData = models.SlowLogData;
|
|
134
|
+
const CreateOnlineDDLJobRequest = models.CreateOnlineDDLJobRequest;
|
|
133
135
|
const DescribeDatabasesResponse = models.DescribeDatabasesResponse;
|
|
134
136
|
const ViewPrivileges = models.ViewPrivileges;
|
|
135
137
|
const DescribeOrdersRequest = models.DescribeOrdersRequest;
|
|
@@ -423,14 +425,14 @@ Note: accounts with the same username but different hosts are different accounts
|
|
|
423
425
|
}
|
|
424
426
|
|
|
425
427
|
/**
|
|
426
|
-
* This API is used to
|
|
427
|
-
* @param {
|
|
428
|
-
* @param {function(string,
|
|
428
|
+
* This API is used to get the details of a TDSQL instance.
|
|
429
|
+
* @param {DescribeDCDBInstanceDetailRequest} req
|
|
430
|
+
* @param {function(string, DescribeDCDBInstanceDetailResponse):void} cb
|
|
429
431
|
* @public
|
|
430
432
|
*/
|
|
431
|
-
|
|
432
|
-
let resp = new
|
|
433
|
-
this.request("
|
|
433
|
+
DescribeDCDBInstanceDetail(req, cb) {
|
|
434
|
+
let resp = new DescribeDCDBInstanceDetailResponse();
|
|
435
|
+
this.request("DescribeDCDBInstanceDetail", req, resp, cb);
|
|
434
436
|
}
|
|
435
437
|
|
|
436
438
|
/**
|
|
@@ -754,6 +756,17 @@ Note: Accounts with the same username but different hosts are different accounts
|
|
|
754
756
|
this.request("DescribeDBSecurityGroups", req, resp, cb);
|
|
755
757
|
}
|
|
756
758
|
|
|
759
|
+
/**
|
|
760
|
+
* This API is used to modify instance VIP.
|
|
761
|
+
* @param {ModifyInstanceVipRequest} req
|
|
762
|
+
* @param {function(string, ModifyInstanceVipResponse):void} cb
|
|
763
|
+
* @public
|
|
764
|
+
*/
|
|
765
|
+
ModifyInstanceVip(req, cb) {
|
|
766
|
+
let resp = new ModifyInstanceVipResponse();
|
|
767
|
+
this.request("ModifyInstanceVip", req, resp, cb);
|
|
768
|
+
}
|
|
769
|
+
|
|
757
770
|
/**
|
|
758
771
|
* This API is used to query the table information of a TencentDB instance.
|
|
759
772
|
* @param {DescribeDatabaseTableRequest} req
|
|
@@ -799,14 +812,14 @@ Note: Accounts with the same username but different hosts are different accounts
|
|
|
799
812
|
}
|
|
800
813
|
|
|
801
814
|
/**
|
|
802
|
-
* This API is used to
|
|
803
|
-
* @param {
|
|
804
|
-
* @param {function(string,
|
|
815
|
+
* This API is used to create an online DDL job.
|
|
816
|
+
* @param {CreateOnlineDDLJobRequest} req
|
|
817
|
+
* @param {function(string, CreateOnlineDDLJobResponse):void} cb
|
|
805
818
|
* @public
|
|
806
819
|
*/
|
|
807
|
-
|
|
808
|
-
let resp = new
|
|
809
|
-
this.request("
|
|
820
|
+
CreateOnlineDDLJob(req, cb) {
|
|
821
|
+
let resp = new CreateOnlineDDLJobResponse();
|
|
822
|
+
this.request("CreateOnlineDDLJob", req, resp, cb);
|
|
810
823
|
}
|
|
811
824
|
|
|
812
825
|
/**
|
|
@@ -1160,6 +1160,41 @@ class UpgradeDedicatedDCDBInstanceResponse extends AbstractModel {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
}
|
|
1162
1162
|
|
|
1163
|
+
/**
|
|
1164
|
+
* CreateOnlineDDLJob response structure.
|
|
1165
|
+
* @class
|
|
1166
|
+
*/
|
|
1167
|
+
class CreateOnlineDDLJobResponse extends AbstractModel {
|
|
1168
|
+
constructor(){
|
|
1169
|
+
super();
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* Online DDL task ID
|
|
1173
|
+
* @type {number || null}
|
|
1174
|
+
*/
|
|
1175
|
+
this.FlowId = null;
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1179
|
+
* @type {string || null}
|
|
1180
|
+
*/
|
|
1181
|
+
this.RequestId = null;
|
|
1182
|
+
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* @private
|
|
1187
|
+
*/
|
|
1188
|
+
deserialize(params) {
|
|
1189
|
+
if (!params) {
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1192
|
+
this.FlowId = 'FlowId' in params ? params.FlowId : null;
|
|
1193
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
1194
|
+
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1163
1198
|
/**
|
|
1164
1199
|
* DescribeDBParameters response structure.
|
|
1165
1200
|
* @class
|
|
@@ -6827,6 +6862,104 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
6827
6862
|
}
|
|
6828
6863
|
}
|
|
6829
6864
|
|
|
6865
|
+
/**
|
|
6866
|
+
* CreateOnlineDDLJob request structure.
|
|
6867
|
+
* @class
|
|
6868
|
+
*/
|
|
6869
|
+
class CreateOnlineDDLJobRequest extends AbstractModel {
|
|
6870
|
+
constructor(){
|
|
6871
|
+
super();
|
|
6872
|
+
|
|
6873
|
+
/**
|
|
6874
|
+
* Instance ID
|
|
6875
|
+
* @type {string || null}
|
|
6876
|
+
*/
|
|
6877
|
+
this.InstanceId = null;
|
|
6878
|
+
|
|
6879
|
+
/**
|
|
6880
|
+
* Specifies the DDL statement to be executed. Common online DDL refer to this API documentation example section.
|
|
6881
|
+
* @type {string || null}
|
|
6882
|
+
*/
|
|
6883
|
+
this.Alter = null;
|
|
6884
|
+
|
|
6885
|
+
/**
|
|
6886
|
+
* Specifies the database to be modified.
|
|
6887
|
+
* @type {string || null}
|
|
6888
|
+
*/
|
|
6889
|
+
this.DbName = null;
|
|
6890
|
+
|
|
6891
|
+
/**
|
|
6892
|
+
* Specifies the table to be modified.
|
|
6893
|
+
* @type {string || null}
|
|
6894
|
+
*/
|
|
6895
|
+
this.Table = null;
|
|
6896
|
+
|
|
6897
|
+
/**
|
|
6898
|
+
* Specifies the account to execute DDL. Ensure the account has ALTER, CREATE, INSERT, UPDATE, DROP, DELETE, INDEX, CREATE TEMPORARY TABLES, LOCK TABLES, TRIGGER, REPLICATION CLIENT, REPLICATION SLAVE permissions. If not specified, the system account will be used by default.
|
|
6899
|
+
* @type {string || null}
|
|
6900
|
+
*/
|
|
6901
|
+
this.User = null;
|
|
6902
|
+
|
|
6903
|
+
/**
|
|
6904
|
+
* Specifies the password for the account.
|
|
6905
|
+
* @type {string || null}
|
|
6906
|
+
*/
|
|
6907
|
+
this.Password = null;
|
|
6908
|
+
|
|
6909
|
+
/**
|
|
6910
|
+
* Indicates that DDL will terminate if the number of running threads exceeds this value. Default is 58 if not specified.
|
|
6911
|
+
* @type {number || null}
|
|
6912
|
+
*/
|
|
6913
|
+
this.CriticalLoad = null;
|
|
6914
|
+
|
|
6915
|
+
/**
|
|
6916
|
+
* Specifies whether to check auto-increment fields. If set to 1, modification of auto-increment fields is not allowed; if set to 0 or left empty, no check is performed.
|
|
6917
|
+
* @type {number || null}
|
|
6918
|
+
*/
|
|
6919
|
+
this.CheckAutoInc = null;
|
|
6920
|
+
|
|
6921
|
+
/**
|
|
6922
|
+
* Allowed primary-secondary delay time (in seconds). If set to 0 or left empty, do not check delay.
|
|
6923
|
+
* @type {number || null}
|
|
6924
|
+
*/
|
|
6925
|
+
this.MaxDelay = null;
|
|
6926
|
+
|
|
6927
|
+
/**
|
|
6928
|
+
* Indicates whether to use pt-osc tool for DDL.
|
|
6929
|
+
* @type {number || null}
|
|
6930
|
+
*/
|
|
6931
|
+
this.UsePt = null;
|
|
6932
|
+
|
|
6933
|
+
/**
|
|
6934
|
+
* Start Execution Time
|
|
6935
|
+
* @type {string || null}
|
|
6936
|
+
*/
|
|
6937
|
+
this.StartTime = null;
|
|
6938
|
+
|
|
6939
|
+
}
|
|
6940
|
+
|
|
6941
|
+
/**
|
|
6942
|
+
* @private
|
|
6943
|
+
*/
|
|
6944
|
+
deserialize(params) {
|
|
6945
|
+
if (!params) {
|
|
6946
|
+
return;
|
|
6947
|
+
}
|
|
6948
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
6949
|
+
this.Alter = 'Alter' in params ? params.Alter : null;
|
|
6950
|
+
this.DbName = 'DbName' in params ? params.DbName : null;
|
|
6951
|
+
this.Table = 'Table' in params ? params.Table : null;
|
|
6952
|
+
this.User = 'User' in params ? params.User : null;
|
|
6953
|
+
this.Password = 'Password' in params ? params.Password : null;
|
|
6954
|
+
this.CriticalLoad = 'CriticalLoad' in params ? params.CriticalLoad : null;
|
|
6955
|
+
this.CheckAutoInc = 'CheckAutoInc' in params ? params.CheckAutoInc : null;
|
|
6956
|
+
this.MaxDelay = 'MaxDelay' in params ? params.MaxDelay : null;
|
|
6957
|
+
this.UsePt = 'UsePt' in params ? params.UsePt : null;
|
|
6958
|
+
this.StartTime = 'StartTime' in params ? params.StartTime : null;
|
|
6959
|
+
|
|
6960
|
+
}
|
|
6961
|
+
}
|
|
6962
|
+
|
|
6830
6963
|
/**
|
|
6831
6964
|
* DescribeDatabases response structure.
|
|
6832
6965
|
* @class
|
|
@@ -9083,6 +9216,7 @@ module.exports = {
|
|
|
9083
9216
|
DescribeDBSlowLogsRequest: DescribeDBSlowLogsRequest,
|
|
9084
9217
|
CreateAccountRequest: CreateAccountRequest,
|
|
9085
9218
|
UpgradeDedicatedDCDBInstanceResponse: UpgradeDedicatedDCDBInstanceResponse,
|
|
9219
|
+
CreateOnlineDDLJobResponse: CreateOnlineDDLJobResponse,
|
|
9086
9220
|
DescribeDBParametersResponse: DescribeDBParametersResponse,
|
|
9087
9221
|
DescribeBackupFilesRequest: DescribeBackupFilesRequest,
|
|
9088
9222
|
IsolateHourDCDBInstanceRequest: IsolateHourDCDBInstanceRequest,
|
|
@@ -9173,6 +9307,7 @@ module.exports = {
|
|
|
9173
9307
|
ModifyAccountDescriptionRequest: ModifyAccountDescriptionRequest,
|
|
9174
9308
|
KillSessionResponse: KillSessionResponse,
|
|
9175
9309
|
SlowLogData: SlowLogData,
|
|
9310
|
+
CreateOnlineDDLJobRequest: CreateOnlineDDLJobRequest,
|
|
9176
9311
|
DescribeDatabasesResponse: DescribeDatabasesResponse,
|
|
9177
9312
|
ViewPrivileges: ViewPrivileges,
|
|
9178
9313
|
DescribeOrdersRequest: DescribeOrdersRequest,
|
|
@@ -1310,56 +1310,69 @@ class OtherInvoiceItem extends AbstractModel {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
1312
|
/**
|
|
1313
|
-
*
|
|
1313
|
+
* SmartStructuralPro request structure.
|
|
1314
1314
|
* @class
|
|
1315
1315
|
*/
|
|
1316
|
-
class
|
|
1316
|
+
class SmartStructuralProRequest extends AbstractModel {
|
|
1317
1317
|
constructor(){
|
|
1318
1318
|
super();
|
|
1319
1319
|
|
|
1320
1320
|
/**
|
|
1321
|
-
*
|
|
1321
|
+
* The URL of the image.
|
|
1322
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
1323
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
1324
|
+
We recommend that you store the image in Tencent Cloud for higher download speed and stability.
|
|
1325
|
+
The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
1322
1326
|
* @type {string || null}
|
|
1323
1327
|
*/
|
|
1324
|
-
this.
|
|
1328
|
+
this.ImageUrl = null;
|
|
1325
1329
|
|
|
1326
1330
|
/**
|
|
1327
|
-
*
|
|
1328
|
-
|
|
1331
|
+
* The Base64-encoded value of the image.
|
|
1332
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
1333
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
1334
|
+
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
|
|
1335
|
+
* @type {string || null}
|
|
1329
1336
|
*/
|
|
1330
|
-
this.
|
|
1337
|
+
this.ImageBase64 = null;
|
|
1331
1338
|
|
|
1332
1339
|
/**
|
|
1333
|
-
*
|
|
1334
|
-
|
|
1335
|
-
* @type {Array.<Coord> || null}
|
|
1340
|
+
* The number of the PDF page that needs to be recognized. Only one single PDF page can be recognized. This parameter is valid if the uploaded file is a PDF `. Default value: `1`.
|
|
1341
|
+
* @type {number || null}
|
|
1336
1342
|
*/
|
|
1337
|
-
this.
|
|
1343
|
+
this.PdfPageNumber = null;
|
|
1338
1344
|
|
|
1339
1345
|
/**
|
|
1340
|
-
*
|
|
1341
|
-
|
|
1342
|
-
|
|
1346
|
+
* The names of the fields you want to return for the structured information recognition.
|
|
1347
|
+
For example, if you want to return only the recognition result of the "Name" and "Gender" fields, set this parameter as follows:
|
|
1348
|
+
ItemNames=["Name","Gender"]
|
|
1349
|
+
* @type {Array.<string> || null}
|
|
1343
1350
|
*/
|
|
1344
|
-
this.
|
|
1351
|
+
this.ItemNames = null;
|
|
1345
1352
|
|
|
1346
1353
|
/**
|
|
1347
|
-
*
|
|
1348
|
-
* @type {
|
|
1354
|
+
* Whether to enable recognition of all fields.
|
|
1355
|
+
* @type {boolean || null}
|
|
1349
1356
|
*/
|
|
1350
|
-
this.
|
|
1357
|
+
this.ReturnFullText = null;
|
|
1351
1358
|
|
|
1352
1359
|
/**
|
|
1353
|
-
*
|
|
1354
|
-
|
|
1360
|
+
* Configuration ID support: General
|
|
1361
|
+
-- General scenarios; InvoiceEng
|
|
1362
|
+
-- Ocean bill of lading, international invoice template;
|
|
1363
|
+
-- Ocean shipment order template; WayBillEng
|
|
1364
|
+
-- CustomsDeclaration
|
|
1365
|
+
-- WeightNote
|
|
1366
|
+
-- MedicalMeter
|
|
1367
|
+
* @type {string || null}
|
|
1355
1368
|
*/
|
|
1356
|
-
this.
|
|
1369
|
+
this.ConfigId = null;
|
|
1357
1370
|
|
|
1358
1371
|
/**
|
|
1359
|
-
*
|
|
1360
|
-
* @type {
|
|
1372
|
+
* Enable recognition of coordinate values in full-text fields
|
|
1373
|
+
* @type {boolean || null}
|
|
1361
1374
|
*/
|
|
1362
|
-
this.
|
|
1375
|
+
this.EnableCoord = null;
|
|
1363
1376
|
|
|
1364
1377
|
}
|
|
1365
1378
|
|
|
@@ -1370,42 +1383,13 @@ The paragraph information `Parag` returned by the `GeneralBasicOcr` API contains
|
|
|
1370
1383
|
if (!params) {
|
|
1371
1384
|
return;
|
|
1372
1385
|
}
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
obj.deserialize(params.Polygon[z]);
|
|
1381
|
-
this.Polygon.push(obj);
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
this.AdvancedInfo = 'AdvancedInfo' in params ? params.AdvancedInfo : null;
|
|
1385
|
-
|
|
1386
|
-
if (params.ItemPolygon) {
|
|
1387
|
-
let obj = new ItemCoord();
|
|
1388
|
-
obj.deserialize(params.ItemPolygon)
|
|
1389
|
-
this.ItemPolygon = obj;
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
if (params.Words) {
|
|
1393
|
-
this.Words = new Array();
|
|
1394
|
-
for (let z in params.Words) {
|
|
1395
|
-
let obj = new DetectedWords();
|
|
1396
|
-
obj.deserialize(params.Words[z]);
|
|
1397
|
-
this.Words.push(obj);
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
if (params.WordCoordPoint) {
|
|
1402
|
-
this.WordCoordPoint = new Array();
|
|
1403
|
-
for (let z in params.WordCoordPoint) {
|
|
1404
|
-
let obj = new DetectedWordCoordPoint();
|
|
1405
|
-
obj.deserialize(params.WordCoordPoint[z]);
|
|
1406
|
-
this.WordCoordPoint.push(obj);
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1386
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
1387
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
1388
|
+
this.PdfPageNumber = 'PdfPageNumber' in params ? params.PdfPageNumber : null;
|
|
1389
|
+
this.ItemNames = 'ItemNames' in params ? params.ItemNames : null;
|
|
1390
|
+
this.ReturnFullText = 'ReturnFullText' in params ? params.ReturnFullText : null;
|
|
1391
|
+
this.ConfigId = 'ConfigId' in params ? params.ConfigId : null;
|
|
1392
|
+
this.EnableCoord = 'EnableCoord' in params ? params.EnableCoord : null;
|
|
1409
1393
|
|
|
1410
1394
|
}
|
|
1411
1395
|
}
|
|
@@ -1564,6 +1548,107 @@ The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
|
1564
1548
|
}
|
|
1565
1549
|
}
|
|
1566
1550
|
|
|
1551
|
+
/**
|
|
1552
|
+
* OCR result.
|
|
1553
|
+
* @class
|
|
1554
|
+
*/
|
|
1555
|
+
class TextDetection extends AbstractModel {
|
|
1556
|
+
constructor(){
|
|
1557
|
+
super();
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* Recognized text line content.
|
|
1561
|
+
* @type {string || null}
|
|
1562
|
+
*/
|
|
1563
|
+
this.DetectedText = null;
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* Confidence. Value range: 0–100.
|
|
1567
|
+
* @type {number || null}
|
|
1568
|
+
*/
|
|
1569
|
+
this.Confidence = null;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Text line coordinates, which are represented as 4 vertex coordinates.
|
|
1573
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
1574
|
+
* @type {Array.<Coord> || null}
|
|
1575
|
+
*/
|
|
1576
|
+
this.Polygon = null;
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Extended field.
|
|
1580
|
+
The paragraph information `Parag` returned by the `GeneralBasicOcr` API contains `ParagNo`.
|
|
1581
|
+
* @type {string || null}
|
|
1582
|
+
*/
|
|
1583
|
+
this.AdvancedInfo = null;
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* Pixel coordinates of the text line in the image after rotation correction, which is in the format of `(X-coordinate of top-left point, Y-coordinate of top-left point, width, height)`.
|
|
1587
|
+
* @type {ItemCoord || null}
|
|
1588
|
+
*/
|
|
1589
|
+
this.ItemPolygon = null;
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* Information about a character, including the character itself and its confidence. Supported APIs: `GeneralBasicOCR`, `GeneralAccurateOCR`
|
|
1593
|
+
* @type {Array.<DetectedWords> || null}
|
|
1594
|
+
*/
|
|
1595
|
+
this.Words = null;
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* Coordinates of a word’s four corners on the input image. Supported APIs: `GeneralBasicOCR`, `GeneralAccurateOCR`
|
|
1599
|
+
* @type {Array.<DetectedWordCoordPoint> || null}
|
|
1600
|
+
*/
|
|
1601
|
+
this.WordCoordPoint = null;
|
|
1602
|
+
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* @private
|
|
1607
|
+
*/
|
|
1608
|
+
deserialize(params) {
|
|
1609
|
+
if (!params) {
|
|
1610
|
+
return;
|
|
1611
|
+
}
|
|
1612
|
+
this.DetectedText = 'DetectedText' in params ? params.DetectedText : null;
|
|
1613
|
+
this.Confidence = 'Confidence' in params ? params.Confidence : null;
|
|
1614
|
+
|
|
1615
|
+
if (params.Polygon) {
|
|
1616
|
+
this.Polygon = new Array();
|
|
1617
|
+
for (let z in params.Polygon) {
|
|
1618
|
+
let obj = new Coord();
|
|
1619
|
+
obj.deserialize(params.Polygon[z]);
|
|
1620
|
+
this.Polygon.push(obj);
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
this.AdvancedInfo = 'AdvancedInfo' in params ? params.AdvancedInfo : null;
|
|
1624
|
+
|
|
1625
|
+
if (params.ItemPolygon) {
|
|
1626
|
+
let obj = new ItemCoord();
|
|
1627
|
+
obj.deserialize(params.ItemPolygon)
|
|
1628
|
+
this.ItemPolygon = obj;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
if (params.Words) {
|
|
1632
|
+
this.Words = new Array();
|
|
1633
|
+
for (let z in params.Words) {
|
|
1634
|
+
let obj = new DetectedWords();
|
|
1635
|
+
obj.deserialize(params.Words[z]);
|
|
1636
|
+
this.Words.push(obj);
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
if (params.WordCoordPoint) {
|
|
1641
|
+
this.WordCoordPoint = new Array();
|
|
1642
|
+
for (let z in params.WordCoordPoint) {
|
|
1643
|
+
let obj = new DetectedWordCoordPoint();
|
|
1644
|
+
obj.deserialize(params.WordCoordPoint[z]);
|
|
1645
|
+
this.WordCoordPoint.push(obj);
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1567
1652
|
/**
|
|
1568
1653
|
* RecognizePhilippinesTinIDOCR response structure.
|
|
1569
1654
|
* @class
|
|
@@ -9099,6 +9184,71 @@ class TollInvoice extends AbstractModel {
|
|
|
9099
9184
|
}
|
|
9100
9185
|
}
|
|
9101
9186
|
|
|
9187
|
+
/**
|
|
9188
|
+
* SmartStructuralPro response structure.
|
|
9189
|
+
* @class
|
|
9190
|
+
*/
|
|
9191
|
+
class SmartStructuralProResponse extends AbstractModel {
|
|
9192
|
+
constructor(){
|
|
9193
|
+
super();
|
|
9194
|
+
|
|
9195
|
+
/**
|
|
9196
|
+
* The rotation angle (degrees) of the text on the image. 0: The text is horizontal. Positive value: The text is rotated clockwise. Negative value: The text is rotated counterclockwise.
|
|
9197
|
+
* @type {number || null}
|
|
9198
|
+
*/
|
|
9199
|
+
this.Angle = null;
|
|
9200
|
+
|
|
9201
|
+
/**
|
|
9202
|
+
* The structural information (key-value).
|
|
9203
|
+
* @type {Array.<GroupInfo> || null}
|
|
9204
|
+
*/
|
|
9205
|
+
this.StructuralList = null;
|
|
9206
|
+
|
|
9207
|
+
/**
|
|
9208
|
+
* The recognized text information.
|
|
9209
|
+
* @type {Array.<WordItem> || null}
|
|
9210
|
+
*/
|
|
9211
|
+
this.WordList = null;
|
|
9212
|
+
|
|
9213
|
+
/**
|
|
9214
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
9215
|
+
* @type {string || null}
|
|
9216
|
+
*/
|
|
9217
|
+
this.RequestId = null;
|
|
9218
|
+
|
|
9219
|
+
}
|
|
9220
|
+
|
|
9221
|
+
/**
|
|
9222
|
+
* @private
|
|
9223
|
+
*/
|
|
9224
|
+
deserialize(params) {
|
|
9225
|
+
if (!params) {
|
|
9226
|
+
return;
|
|
9227
|
+
}
|
|
9228
|
+
this.Angle = 'Angle' in params ? params.Angle : null;
|
|
9229
|
+
|
|
9230
|
+
if (params.StructuralList) {
|
|
9231
|
+
this.StructuralList = new Array();
|
|
9232
|
+
for (let z in params.StructuralList) {
|
|
9233
|
+
let obj = new GroupInfo();
|
|
9234
|
+
obj.deserialize(params.StructuralList[z]);
|
|
9235
|
+
this.StructuralList.push(obj);
|
|
9236
|
+
}
|
|
9237
|
+
}
|
|
9238
|
+
|
|
9239
|
+
if (params.WordList) {
|
|
9240
|
+
this.WordList = new Array();
|
|
9241
|
+
for (let z in params.WordList) {
|
|
9242
|
+
let obj = new WordItem();
|
|
9243
|
+
obj.deserialize(params.WordList[z]);
|
|
9244
|
+
this.WordList.push(obj);
|
|
9245
|
+
}
|
|
9246
|
+
}
|
|
9247
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
9248
|
+
|
|
9249
|
+
}
|
|
9250
|
+
}
|
|
9251
|
+
|
|
9102
9252
|
/**
|
|
9103
9253
|
* TableOCR response structure.
|
|
9104
9254
|
* @class
|
|
@@ -9685,9 +9835,10 @@ module.exports = {
|
|
|
9685
9835
|
RecognizePhilippinesVoteIDOCRRequest: RecognizePhilippinesVoteIDOCRRequest,
|
|
9686
9836
|
RecognizeKoreanDrivingLicenseOCRRequest: RecognizeKoreanDrivingLicenseOCRRequest,
|
|
9687
9837
|
OtherInvoiceItem: OtherInvoiceItem,
|
|
9688
|
-
|
|
9838
|
+
SmartStructuralProRequest: SmartStructuralProRequest,
|
|
9689
9839
|
VatInvoiceItemInfo: VatInvoiceItemInfo,
|
|
9690
9840
|
MainlandPermitOCRRequest: MainlandPermitOCRRequest,
|
|
9841
|
+
TextDetection: TextDetection,
|
|
9691
9842
|
RecognizePhilippinesTinIDOCRResponse: RecognizePhilippinesTinIDOCRResponse,
|
|
9692
9843
|
DetectedWords: DetectedWords,
|
|
9693
9844
|
TableCellInfo: TableCellInfo,
|
|
@@ -9760,6 +9911,7 @@ module.exports = {
|
|
|
9760
9911
|
MainlandPermitOCRResponse: MainlandPermitOCRResponse,
|
|
9761
9912
|
NonTaxItem: NonTaxItem,
|
|
9762
9913
|
TollInvoice: TollInvoice,
|
|
9914
|
+
SmartStructuralProResponse: SmartStructuralProResponse,
|
|
9763
9915
|
TableOCRResponse: TableOCRResponse,
|
|
9764
9916
|
DetectedWordCoordPoint: DetectedWordCoordPoint,
|
|
9765
9917
|
RecognizeKoreanIDCardOCRRequest: RecognizeKoreanIDCardOCRRequest,
|
|
@@ -36,9 +36,10 @@ const SealInfo = models.SealInfo;
|
|
|
36
36
|
const RecognizePhilippinesVoteIDOCRRequest = models.RecognizePhilippinesVoteIDOCRRequest;
|
|
37
37
|
const RecognizeKoreanDrivingLicenseOCRRequest = models.RecognizeKoreanDrivingLicenseOCRRequest;
|
|
38
38
|
const OtherInvoiceItem = models.OtherInvoiceItem;
|
|
39
|
-
const
|
|
39
|
+
const SmartStructuralProRequest = models.SmartStructuralProRequest;
|
|
40
40
|
const VatInvoiceItemInfo = models.VatInvoiceItemInfo;
|
|
41
41
|
const MainlandPermitOCRRequest = models.MainlandPermitOCRRequest;
|
|
42
|
+
const TextDetection = models.TextDetection;
|
|
42
43
|
const RecognizePhilippinesTinIDOCRResponse = models.RecognizePhilippinesTinIDOCRResponse;
|
|
43
44
|
const DetectedWords = models.DetectedWords;
|
|
44
45
|
const TableCellInfo = models.TableCellInfo;
|
|
@@ -111,6 +112,7 @@ const RecognizeMainlandIDCardOCRResponse = models.RecognizeMainlandIDCardOCRResp
|
|
|
111
112
|
const MainlandPermitOCRResponse = models.MainlandPermitOCRResponse;
|
|
112
113
|
const NonTaxItem = models.NonTaxItem;
|
|
113
114
|
const TollInvoice = models.TollInvoice;
|
|
115
|
+
const SmartStructuralProResponse = models.SmartStructuralProResponse;
|
|
114
116
|
const TableOCRResponse = models.TableOCRResponse;
|
|
115
117
|
const DetectedWordCoordPoint = models.DetectedWordCoordPoint;
|
|
116
118
|
const RecognizeKoreanIDCardOCRRequest = models.RecognizeKoreanIDCardOCRRequest;
|
|
@@ -498,6 +500,19 @@ A maximum of 20 requests can be initiated per second for this API.
|
|
|
498
500
|
this.request("RecognizePhilippinesDrivingLicenseOCR", req, resp, cb);
|
|
499
501
|
}
|
|
500
502
|
|
|
503
|
+
/**
|
|
504
|
+
* This API is used to recognize fields from cards, documents, bills, forms, contracts, and other structured information. It is flexible and efficient to use, without any configuration required. This API is suitable for recognizing structured information.
|
|
505
|
+
|
|
506
|
+
A maximum of 10 requests can be initiated per second for this API.
|
|
507
|
+
* @param {SmartStructuralProRequest} req
|
|
508
|
+
* @param {function(string, SmartStructuralProResponse):void} cb
|
|
509
|
+
* @public
|
|
510
|
+
*/
|
|
511
|
+
SmartStructuralPro(req, cb) {
|
|
512
|
+
let resp = new SmartStructuralProResponse();
|
|
513
|
+
this.request("SmartStructuralPro", req, resp, cb);
|
|
514
|
+
}
|
|
515
|
+
|
|
501
516
|
/**
|
|
502
517
|
* This API is used to recognize an Indonesian identity card.
|
|
503
518
|
|