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.
Files changed (63) hide show
  1. package/CHANGELOG.md +197 -0
  2. package/SERVICE_CHANGELOG.md +271 -408
  3. package/package.json +1 -1
  4. package/products.md +14 -13
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/asr/v20190614/asr_models.ts +2 -0
  7. package/src/services/bi/v20220105/bi_models.ts +18 -18
  8. package/src/services/ccc/v20200210/ccc_client.ts +30 -15
  9. package/src/services/ccc/v20200210/ccc_models.ts +925 -803
  10. package/src/services/cmq/v20190304/cmq_models.ts +48 -48
  11. package/src/services/dbbrain/v20210527/dbbrain_models.ts +4 -0
  12. package/src/services/essbasic/v20210526/essbasic_client.ts +1251 -1234
  13. package/src/services/essbasic/v20210526/essbasic_models.ts +60 -0
  14. package/src/services/faceid/v20180301/faceid_models.ts +1 -1
  15. package/src/services/index.ts +1 -0
  16. package/src/services/ocr/v20181119/ocr_client.ts +67 -34
  17. package/src/services/ocr/v20181119/ocr_models.ts +322 -192
  18. package/src/services/rum/v20210622/rum_models.ts +3 -3
  19. package/src/services/ses/v20201002/ses_models.ts +67 -46
  20. package/src/services/ssl/v20191205/ssl_client.ts +36 -24
  21. package/src/services/ssl/v20191205/ssl_models.ts +25 -0
  22. package/src/services/tccatalog/index.ts +5 -0
  23. package/src/services/tccatalog/v20241024/index.ts +6 -0
  24. package/src/services/tccatalog/v20241024/tccatalog_client.ts +84 -0
  25. package/src/services/tccatalog/v20241024/tccatalog_models.ts +266 -0
  26. package/src/services/trtc/v20190722/trtc_models.ts +148 -59
  27. package/tencentcloud/common/sdk_version.d.ts +1 -1
  28. package/tencentcloud/common/sdk_version.js +1 -1
  29. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +2 -0
  30. package/tencentcloud/services/bi/v20220105/bi_models.d.ts +18 -18
  31. package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +7 -3
  32. package/tencentcloud/services/ccc/v20200210/ccc_client.js +9 -3
  33. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +1755 -1638
  34. package/tencentcloud/services/cmq/v20190304/cmq_models.d.ts +48 -48
  35. package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +4 -0
  36. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +769 -760
  37. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +946 -935
  38. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +58 -0
  39. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +1 -1
  40. package/tencentcloud/services/index.d.ts +1 -0
  41. package/tencentcloud/services/index.js +2 -0
  42. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +25 -11
  43. package/tencentcloud/services/ocr/v20181119/ocr_client.js +32 -14
  44. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +313 -190
  45. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +3 -3
  46. package/tencentcloud/services/ses/v20201002/ses_models.d.ts +67 -46
  47. package/tencentcloud/services/ssl/v20191205/ssl_client.d.ts +13 -9
  48. package/tencentcloud/services/ssl/v20191205/ssl_client.js +18 -12
  49. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +23 -0
  50. package/tencentcloud/services/tccatalog/index.d.ts +6 -0
  51. package/tencentcloud/services/tccatalog/index.js +7 -0
  52. package/tencentcloud/services/tccatalog/v20241024/index.d.ts +6 -0
  53. package/tencentcloud/services/tccatalog/v20241024/index.js +9 -0
  54. package/tencentcloud/services/tccatalog/v20241024/tccatalog_client.d.ts +26 -0
  55. package/tencentcloud/services/tccatalog/v20241024/tccatalog_client.js +55 -0
  56. package/tencentcloud/services/tccatalog/v20241024/tccatalog_models.d.ts +237 -0
  57. package/tencentcloud/services/tccatalog/v20241024/tccatalog_models.js +18 -0
  58. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +147 -58
  59. package/test/ccc.v20200210.test.js +12 -2
  60. package/test/essbasic.v20210526.test.js +176 -166
  61. package/test/ocr.v20181119.test.js +34 -14
  62. package/test/ssl.v20191205.test.js +18 -8
  63. 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.DutyPaidProofOCR", async function () {
221
+ it("ocr.v20181119.RecognizeForeignPermanentResidentIdCard", async function () {
212
222
  try {
213
- const data = await client.DutyPaidProofOCR({})
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.RecognizeForeignPermanentResidentIdCard", async function () {
771
+ it("ocr.v20181119.DutyPaidProofOCR", async function () {
752
772
  try {
753
- const data = await client.RecognizeForeignPermanentResidentIdCard({})
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.UploadRevokeLetter", async function () {
81
+ it("ssl.v20191205.DescribeHostDeployRecord", async function () {
82
82
  try {
83
- const data = await client.UploadRevokeLetter({})
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.DescribeHostDeployRecord", async function () {
411
+ it("ssl.v20191205.CheckCertificateExist", async function () {
402
412
  try {
403
- const data = await client.DescribeHostDeployRecord({})
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.CreateCertificate", async function () {
471
+ it("ssl.v20191205.CreateCertificateByPackage", async function () {
462
472
  try {
463
- const data = await client.CreateCertificate({})
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.CreateCertificateByPackage", async function () {
541
+ it("ssl.v20191205.CreateCertificate", async function () {
532
542
  try {
533
- const data = await client.CreateCertificateByPackage({})
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
+ })