tencentcloud-sdk-nodejs 4.0.1019 → 4.0.1021
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 +108 -0
- package/SERVICE_CHANGELOG.md +105 -106
- package/package.json +1 -1
- package/products.md +10 -10
- package/src/common/sdk_version.ts +1 -1
- package/src/services/ccc/v20200210/ccc_client.ts +30 -15
- package/src/services/ccc/v20200210/ccc_models.ts +925 -803
- package/src/services/cfw/v20190904/cfw_client.ts +0 -14
- package/src/services/cfw/v20190904/cfw_models.ts +0 -24
- package/src/services/faceid/v20180301/faceid_models.ts +1 -1
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +2 -1
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +1 -1
- 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/teo/v20220901/teo_client.ts +2 -2
- 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/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/cfw/v20190904/cfw_client.d.ts +1 -7
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +0 -8
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +0 -22
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +1 -1
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +2 -1
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.js +2 -1
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +1 -1
- 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/teo/v20220901/teo_client.d.ts +2 -2
- package/tencentcloud/services/teo/v20220901/teo_client.js +2 -2
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +147 -58
- package/test/ccc.v20200210.test.js +12 -2
- package/test/cfw.v20190904.test.js +0 -10
- package/test/ocr.v20181119.test.js +34 -14
|
@@ -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
|