tencentcloud-sdk-nodejs 4.0.1018 → 4.0.1020
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/CHANGELOG.md +197 -0
- package/SERVICE_CHANGELOG.md +271 -408
- package/package.json +1 -1
- package/products.md +14 -13
- package/src/common/sdk_version.ts +1 -1
- package/src/services/asr/v20190614/asr_models.ts +2 -0
- package/src/services/bi/v20220105/bi_models.ts +18 -18
- package/src/services/ccc/v20200210/ccc_client.ts +30 -15
- package/src/services/ccc/v20200210/ccc_models.ts +925 -803
- package/src/services/cmq/v20190304/cmq_models.ts +48 -48
- package/src/services/dbbrain/v20210527/dbbrain_models.ts +4 -0
- package/src/services/essbasic/v20210526/essbasic_client.ts +1251 -1234
- package/src/services/essbasic/v20210526/essbasic_models.ts +60 -0
- package/src/services/faceid/v20180301/faceid_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/ocr/v20181119/ocr_client.ts +67 -34
- package/src/services/ocr/v20181119/ocr_models.ts +322 -192
- package/src/services/rum/v20210622/rum_models.ts +3 -3
- package/src/services/ses/v20201002/ses_models.ts +67 -46
- package/src/services/ssl/v20191205/ssl_client.ts +36 -24
- package/src/services/ssl/v20191205/ssl_models.ts +25 -0
- package/src/services/tccatalog/index.ts +5 -0
- package/src/services/tccatalog/v20241024/index.ts +6 -0
- package/src/services/tccatalog/v20241024/tccatalog_client.ts +84 -0
- package/src/services/tccatalog/v20241024/tccatalog_models.ts +266 -0
- package/src/services/trtc/v20190722/trtc_models.ts +148 -59
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +2 -0
- package/tencentcloud/services/bi/v20220105/bi_models.d.ts +18 -18
- package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +7 -3
- package/tencentcloud/services/ccc/v20200210/ccc_client.js +9 -3
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +1755 -1638
- package/tencentcloud/services/cmq/v20190304/cmq_models.d.ts +48 -48
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +4 -0
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +769 -760
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +946 -935
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +58 -0
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +25 -11
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +32 -14
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +313 -190
- package/tencentcloud/services/rum/v20210622/rum_models.d.ts +3 -3
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +67 -46
- package/tencentcloud/services/ssl/v20191205/ssl_client.d.ts +13 -9
- package/tencentcloud/services/ssl/v20191205/ssl_client.js +18 -12
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +23 -0
- package/tencentcloud/services/tccatalog/index.d.ts +6 -0
- package/tencentcloud/services/tccatalog/index.js +7 -0
- package/tencentcloud/services/tccatalog/v20241024/index.d.ts +6 -0
- package/tencentcloud/services/tccatalog/v20241024/index.js +9 -0
- package/tencentcloud/services/tccatalog/v20241024/tccatalog_client.d.ts +26 -0
- package/tencentcloud/services/tccatalog/v20241024/tccatalog_client.js +55 -0
- package/tencentcloud/services/tccatalog/v20241024/tccatalog_models.d.ts +237 -0
- package/tencentcloud/services/tccatalog/v20241024/tccatalog_models.js +18 -0
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +147 -58
- package/test/ccc.v20200210.test.js +12 -2
- package/test/essbasic.v20210526.test.js +176 -166
- package/test/ocr.v20181119.test.js +34 -14
- package/test/ssl.v20191205.test.js +18 -8
- package/test/tccatalog.v20241024.test.js +61 -0
|
@@ -18,6 +18,16 @@ const client = new tencentcloud.ocr.v20181119.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("ocr.v20181119.test.js", function () {
|
|
20
20
|
|
|
21
|
+
it("ocr.v20181119.QuestionOCR", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.QuestionOCR({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
21
31
|
it("ocr.v20181119.TextDetect", async function () {
|
|
22
32
|
try {
|
|
23
33
|
const data = await client.TextDetect({})
|
|
@@ -208,9 +218,9 @@ it("ocr.v20181119.RideHailingDriverLicenseOCR", async function () {
|
|
|
208
218
|
}
|
|
209
219
|
})
|
|
210
220
|
|
|
211
|
-
it("ocr.v20181119.
|
|
221
|
+
it("ocr.v20181119.RecognizeForeignPermanentResidentIdCard", async function () {
|
|
212
222
|
try {
|
|
213
|
-
const data = await client.
|
|
223
|
+
const data = await client.RecognizeForeignPermanentResidentIdCard({})
|
|
214
224
|
expect(data).to.be.ok
|
|
215
225
|
} catch(error) {
|
|
216
226
|
expect(error.requestId).to.be.ok
|
|
@@ -318,16 +328,6 @@ it("ocr.v20181119.GetTaskState", async function () {
|
|
|
318
328
|
}
|
|
319
329
|
})
|
|
320
330
|
|
|
321
|
-
it("ocr.v20181119.RecognizeGeneralCardWarn", async function () {
|
|
322
|
-
try {
|
|
323
|
-
const data = await client.RecognizeGeneralCardWarn({})
|
|
324
|
-
expect(data).to.be.ok
|
|
325
|
-
} catch(error) {
|
|
326
|
-
expect(error.requestId).to.be.ok
|
|
327
|
-
expect(error.code).to.be.ok
|
|
328
|
-
}
|
|
329
|
-
})
|
|
330
|
-
|
|
331
331
|
it("ocr.v20181119.GeneralBasicOCR", async function () {
|
|
332
332
|
try {
|
|
333
333
|
const data = await client.GeneralBasicOCR({})
|
|
@@ -608,6 +608,16 @@ it("ocr.v20181119.ClassifyDetectOCR", async function () {
|
|
|
608
608
|
}
|
|
609
609
|
})
|
|
610
610
|
|
|
611
|
+
it("ocr.v20181119.RecognizeFormulaOCR", async function () {
|
|
612
|
+
try {
|
|
613
|
+
const data = await client.RecognizeFormulaOCR({})
|
|
614
|
+
expect(data).to.be.ok
|
|
615
|
+
} catch(error) {
|
|
616
|
+
expect(error.requestId).to.be.ok
|
|
617
|
+
expect(error.code).to.be.ok
|
|
618
|
+
}
|
|
619
|
+
})
|
|
620
|
+
|
|
611
621
|
it("ocr.v20181119.SealOCR", async function () {
|
|
612
622
|
try {
|
|
613
623
|
const data = await client.SealOCR({})
|
|
@@ -708,6 +718,16 @@ it("ocr.v20181119.ImageEnhancement", async function () {
|
|
|
708
718
|
}
|
|
709
719
|
})
|
|
710
720
|
|
|
721
|
+
it("ocr.v20181119.QuestionSplitOCR", async function () {
|
|
722
|
+
try {
|
|
723
|
+
const data = await client.QuestionSplitOCR({})
|
|
724
|
+
expect(data).to.be.ok
|
|
725
|
+
} catch(error) {
|
|
726
|
+
expect(error.requestId).to.be.ok
|
|
727
|
+
expect(error.code).to.be.ok
|
|
728
|
+
}
|
|
729
|
+
})
|
|
730
|
+
|
|
711
731
|
it("ocr.v20181119.MLIDCardOCR", async function () {
|
|
712
732
|
try {
|
|
713
733
|
const data = await client.MLIDCardOCR({})
|
|
@@ -748,9 +768,9 @@ it("ocr.v20181119.VatInvoiceOCR", async function () {
|
|
|
748
768
|
}
|
|
749
769
|
})
|
|
750
770
|
|
|
751
|
-
it("ocr.v20181119.
|
|
771
|
+
it("ocr.v20181119.DutyPaidProofOCR", async function () {
|
|
752
772
|
try {
|
|
753
|
-
const data = await client.
|
|
773
|
+
const data = await client.DutyPaidProofOCR({})
|
|
754
774
|
expect(data).to.be.ok
|
|
755
775
|
} catch(error) {
|
|
756
776
|
expect(error.requestId).to.be.ok
|
|
@@ -78,9 +78,9 @@ it("ssl.v20191205.DescribeHostUpdateRecord", async function () {
|
|
|
78
78
|
}
|
|
79
79
|
})
|
|
80
80
|
|
|
81
|
-
it("ssl.v20191205.
|
|
81
|
+
it("ssl.v20191205.DescribeHostDeployRecord", async function () {
|
|
82
82
|
try {
|
|
83
|
-
const data = await client.
|
|
83
|
+
const data = await client.DescribeHostDeployRecord({})
|
|
84
84
|
expect(data).to.be.ok
|
|
85
85
|
} catch(error) {
|
|
86
86
|
expect(error.requestId).to.be.ok
|
|
@@ -348,6 +348,16 @@ it("ssl.v20191205.DescribeManagerDetail", async function () {
|
|
|
348
348
|
}
|
|
349
349
|
})
|
|
350
350
|
|
|
351
|
+
it("ssl.v20191205.UploadRevokeLetter", async function () {
|
|
352
|
+
try {
|
|
353
|
+
const data = await client.UploadRevokeLetter({})
|
|
354
|
+
expect(data).to.be.ok
|
|
355
|
+
} catch(error) {
|
|
356
|
+
expect(error.requestId).to.be.ok
|
|
357
|
+
expect(error.code).to.be.ok
|
|
358
|
+
}
|
|
359
|
+
})
|
|
360
|
+
|
|
351
361
|
it("ssl.v20191205.DescribeHostDeployRecordDetail", async function () {
|
|
352
362
|
try {
|
|
353
363
|
const data = await client.DescribeHostDeployRecordDetail({})
|
|
@@ -398,9 +408,9 @@ it("ssl.v20191205.CancelAuditCertificate", async function () {
|
|
|
398
408
|
}
|
|
399
409
|
})
|
|
400
410
|
|
|
401
|
-
it("ssl.v20191205.
|
|
411
|
+
it("ssl.v20191205.CheckCertificateExist", async function () {
|
|
402
412
|
try {
|
|
403
|
-
const data = await client.
|
|
413
|
+
const data = await client.CheckCertificateExist({})
|
|
404
414
|
expect(data).to.be.ok
|
|
405
415
|
} catch(error) {
|
|
406
416
|
expect(error.requestId).to.be.ok
|
|
@@ -458,9 +468,9 @@ it("ssl.v20191205.DescribeDeployedResources", async function () {
|
|
|
458
468
|
}
|
|
459
469
|
})
|
|
460
470
|
|
|
461
|
-
it("ssl.v20191205.
|
|
471
|
+
it("ssl.v20191205.CreateCertificateByPackage", async function () {
|
|
462
472
|
try {
|
|
463
|
-
const data = await client.
|
|
473
|
+
const data = await client.CreateCertificateByPackage({})
|
|
464
474
|
expect(data).to.be.ok
|
|
465
475
|
} catch(error) {
|
|
466
476
|
expect(error.requestId).to.be.ok
|
|
@@ -528,9 +538,9 @@ it("ssl.v20191205.DescribeHostApiGatewayInstanceList", async function () {
|
|
|
528
538
|
}
|
|
529
539
|
})
|
|
530
540
|
|
|
531
|
-
it("ssl.v20191205.
|
|
541
|
+
it("ssl.v20191205.CreateCertificate", async function () {
|
|
532
542
|
try {
|
|
533
|
-
const data = await client.
|
|
543
|
+
const data = await client.CreateCertificate({})
|
|
534
544
|
expect(data).to.be.ok
|
|
535
545
|
} catch(error) {
|
|
536
546
|
expect(error.requestId).to.be.ok
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.tccatalog.v20241024.Client({
|
|
5
|
+
credential: {
|
|
6
|
+
secretId: process.env.secretId,
|
|
7
|
+
secretKey: process.env.secretKey,
|
|
8
|
+
},
|
|
9
|
+
region: "ap-shanghai",
|
|
10
|
+
profile: {
|
|
11
|
+
signMethod: "TC3-HMAC-SHA256",
|
|
12
|
+
httpProfile: {
|
|
13
|
+
reqMethod: "POST",
|
|
14
|
+
reqTimeout: 30,
|
|
15
|
+
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
describe("tccatalog.v20241024.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("tccatalog.v20241024.DescribeTccCatalogs", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeTccCatalogs({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("tccatalog.v20241024.DescribeTccCatalog", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DescribeTccCatalog({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("tccatalog.v20241024.BindTccVpcEndPointServiceWhiteList", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.BindTccVpcEndPointServiceWhiteList({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
it("tccatalog.v20241024.AcceptTccVpcEndPointConnect", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.AcceptTccVpcEndPointConnect({})
|
|
54
|
+
expect(data).to.be.ok
|
|
55
|
+
} catch(error) {
|
|
56
|
+
expect(error.requestId).to.be.ok
|
|
57
|
+
expect(error.code).to.be.ok
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
})
|