@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20220919 → 0.0.20220928
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/index.d.ts +52 -2
- package/package.json +1 -1
- package/tests.ts +55 -1
package/index.d.ts
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
5
5
|
// Declan Vong <https://github.com/declanvong>
|
|
6
6
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
-
// TypeScript Version: 2.8
|
|
8
7
|
|
|
9
8
|
// IMPORTANT
|
|
10
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
11
|
// Generated from: https://documentai.googleapis.com/$discovery/rest?version=v1beta3
|
|
13
|
-
// Revision:
|
|
12
|
+
// Revision: 20220928
|
|
14
13
|
|
|
15
14
|
/// <reference types="gapi.client" />
|
|
16
15
|
|
|
@@ -450,6 +449,8 @@ declare namespace gapi.client {
|
|
|
450
449
|
formFields?: GoogleCloudDocumentaiV1beta1DocumentPageFormField[];
|
|
451
450
|
/** Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned. */
|
|
452
451
|
image?: GoogleCloudDocumentaiV1beta1DocumentPageImage;
|
|
452
|
+
/** Image Quality Scores. */
|
|
453
|
+
imageQualityScores?: GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores;
|
|
453
454
|
/** Layout for the page. */
|
|
454
455
|
layout?: GoogleCloudDocumentaiV1beta1DocumentPageLayout;
|
|
455
456
|
/** A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line. */
|
|
@@ -549,6 +550,21 @@ declare namespace gapi.client {
|
|
|
549
550
|
/** Width of the image in pixels. */
|
|
550
551
|
width?: number;
|
|
551
552
|
}
|
|
553
|
+
interface GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores {
|
|
554
|
+
/** A list of detected defects. */
|
|
555
|
+
detectedDefects?: GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect[];
|
|
556
|
+
/** The overall quality score. Range [0, 1] where 1 is perfect quality. */
|
|
557
|
+
qualityScore?: number;
|
|
558
|
+
}
|
|
559
|
+
interface GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect {
|
|
560
|
+
/** Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. */
|
|
561
|
+
confidence?: number;
|
|
562
|
+
/**
|
|
563
|
+
* Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small",
|
|
564
|
+
* "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare"
|
|
565
|
+
*/
|
|
566
|
+
type?: string;
|
|
567
|
+
}
|
|
552
568
|
interface GoogleCloudDocumentaiV1beta1DocumentPageLayout {
|
|
553
569
|
/** The bounding polygon for the Layout. */
|
|
554
570
|
boundingPoly?: GoogleCloudDocumentaiV1beta1BoundingPoly;
|
|
@@ -937,6 +953,8 @@ declare namespace gapi.client {
|
|
|
937
953
|
formFields?: GoogleCloudDocumentaiV1beta2DocumentPageFormField[];
|
|
938
954
|
/** Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned. */
|
|
939
955
|
image?: GoogleCloudDocumentaiV1beta2DocumentPageImage;
|
|
956
|
+
/** Image Quality Scores. */
|
|
957
|
+
imageQualityScores?: GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores;
|
|
940
958
|
/** Layout for the page. */
|
|
941
959
|
layout?: GoogleCloudDocumentaiV1beta2DocumentPageLayout;
|
|
942
960
|
/** A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line. */
|
|
@@ -1036,6 +1054,21 @@ declare namespace gapi.client {
|
|
|
1036
1054
|
/** Width of the image in pixels. */
|
|
1037
1055
|
width?: number;
|
|
1038
1056
|
}
|
|
1057
|
+
interface GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores {
|
|
1058
|
+
/** A list of detected defects. */
|
|
1059
|
+
detectedDefects?: GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect[];
|
|
1060
|
+
/** The overall quality score. Range [0, 1] where 1 is perfect quality. */
|
|
1061
|
+
qualityScore?: number;
|
|
1062
|
+
}
|
|
1063
|
+
interface GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect {
|
|
1064
|
+
/** Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. */
|
|
1065
|
+
confidence?: number;
|
|
1066
|
+
/**
|
|
1067
|
+
* Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small",
|
|
1068
|
+
* "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare"
|
|
1069
|
+
*/
|
|
1070
|
+
type?: string;
|
|
1071
|
+
}
|
|
1039
1072
|
interface GoogleCloudDocumentaiV1beta2DocumentPageLayout {
|
|
1040
1073
|
/** The bounding polygon for the Layout. */
|
|
1041
1074
|
boundingPoly?: GoogleCloudDocumentaiV1beta2BoundingPoly;
|
|
@@ -1529,6 +1562,8 @@ declare namespace gapi.client {
|
|
|
1529
1562
|
formFields?: GoogleCloudDocumentaiV1beta3DocumentPageFormField[];
|
|
1530
1563
|
/** Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned. */
|
|
1531
1564
|
image?: GoogleCloudDocumentaiV1beta3DocumentPageImage;
|
|
1565
|
+
/** Image Quality Scores. */
|
|
1566
|
+
imageQualityScores?: GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores;
|
|
1532
1567
|
/** Layout for the page. */
|
|
1533
1568
|
layout?: GoogleCloudDocumentaiV1beta3DocumentPageLayout;
|
|
1534
1569
|
/** A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line. */
|
|
@@ -1628,6 +1663,21 @@ declare namespace gapi.client {
|
|
|
1628
1663
|
/** Width of the image in pixels. */
|
|
1629
1664
|
width?: number;
|
|
1630
1665
|
}
|
|
1666
|
+
interface GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores {
|
|
1667
|
+
/** A list of detected defects. */
|
|
1668
|
+
detectedDefects?: GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect[];
|
|
1669
|
+
/** The overall quality score. Range [0, 1] where 1 is perfect quality. */
|
|
1670
|
+
qualityScore?: number;
|
|
1671
|
+
}
|
|
1672
|
+
interface GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect {
|
|
1673
|
+
/** Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. */
|
|
1674
|
+
confidence?: number;
|
|
1675
|
+
/**
|
|
1676
|
+
* Name of the defect type. Supported values are "quality/defect_blurry", "quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/defect_text_too_small",
|
|
1677
|
+
* "quality/defect_document_cutoff", "quality/defect_text_cutoff", "quality/defect_glare"
|
|
1678
|
+
*/
|
|
1679
|
+
type?: string;
|
|
1680
|
+
}
|
|
1631
1681
|
interface GoogleCloudDocumentaiV1beta3DocumentPageLayout {
|
|
1632
1682
|
/** The bounding polygon for the Layout. */
|
|
1633
1683
|
boundingPoly?: GoogleCloudDocumentaiV1beta3BoundingPoly;
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20220928
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -455,6 +455,15 @@ gapi.load('client', async () => {
|
|
|
455
455
|
mimeType: "Test string",
|
|
456
456
|
width: 42,
|
|
457
457
|
},
|
|
458
|
+
imageQualityScores: {
|
|
459
|
+
detectedDefects: [
|
|
460
|
+
{
|
|
461
|
+
confidence: 42,
|
|
462
|
+
type: "Test string",
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
qualityScore: 42,
|
|
466
|
+
},
|
|
458
467
|
layout: {
|
|
459
468
|
boundingPoly: {
|
|
460
469
|
normalizedVertices: [
|
|
@@ -1252,6 +1261,15 @@ gapi.load('client', async () => {
|
|
|
1252
1261
|
mimeType: "Test string",
|
|
1253
1262
|
width: 42,
|
|
1254
1263
|
},
|
|
1264
|
+
imageQualityScores: {
|
|
1265
|
+
detectedDefects: [
|
|
1266
|
+
{
|
|
1267
|
+
confidence: 42,
|
|
1268
|
+
type: "Test string",
|
|
1269
|
+
}
|
|
1270
|
+
],
|
|
1271
|
+
qualityScore: 42,
|
|
1272
|
+
},
|
|
1255
1273
|
layout: {
|
|
1256
1274
|
boundingPoly: {
|
|
1257
1275
|
normalizedVertices: [
|
|
@@ -2064,6 +2082,15 @@ gapi.load('client', async () => {
|
|
|
2064
2082
|
mimeType: "Test string",
|
|
2065
2083
|
width: 42,
|
|
2066
2084
|
},
|
|
2085
|
+
imageQualityScores: {
|
|
2086
|
+
detectedDefects: [
|
|
2087
|
+
{
|
|
2088
|
+
confidence: 42,
|
|
2089
|
+
type: "Test string",
|
|
2090
|
+
}
|
|
2091
|
+
],
|
|
2092
|
+
qualityScore: 42,
|
|
2093
|
+
},
|
|
2067
2094
|
layout: {
|
|
2068
2095
|
boundingPoly: {
|
|
2069
2096
|
normalizedVertices: [
|
|
@@ -2912,6 +2939,15 @@ gapi.load('client', async () => {
|
|
|
2912
2939
|
mimeType: "Test string",
|
|
2913
2940
|
width: 42,
|
|
2914
2941
|
},
|
|
2942
|
+
imageQualityScores: {
|
|
2943
|
+
detectedDefects: [
|
|
2944
|
+
{
|
|
2945
|
+
confidence: 42,
|
|
2946
|
+
type: "Test string",
|
|
2947
|
+
}
|
|
2948
|
+
],
|
|
2949
|
+
qualityScore: 42,
|
|
2950
|
+
},
|
|
2915
2951
|
layout: {
|
|
2916
2952
|
boundingPoly: {
|
|
2917
2953
|
normalizedVertices: [
|
|
@@ -3767,6 +3803,15 @@ gapi.load('client', async () => {
|
|
|
3767
3803
|
mimeType: "Test string",
|
|
3768
3804
|
width: 42,
|
|
3769
3805
|
},
|
|
3806
|
+
imageQualityScores: {
|
|
3807
|
+
detectedDefects: [
|
|
3808
|
+
{
|
|
3809
|
+
confidence: 42,
|
|
3810
|
+
type: "Test string",
|
|
3811
|
+
}
|
|
3812
|
+
],
|
|
3813
|
+
qualityScore: 42,
|
|
3814
|
+
},
|
|
3770
3815
|
layout: {
|
|
3771
3816
|
boundingPoly: {
|
|
3772
3817
|
normalizedVertices: [
|
|
@@ -4564,6 +4609,15 @@ gapi.load('client', async () => {
|
|
|
4564
4609
|
mimeType: "Test string",
|
|
4565
4610
|
width: 42,
|
|
4566
4611
|
},
|
|
4612
|
+
imageQualityScores: {
|
|
4613
|
+
detectedDefects: [
|
|
4614
|
+
{
|
|
4615
|
+
confidence: 42,
|
|
4616
|
+
type: "Test string",
|
|
4617
|
+
}
|
|
4618
|
+
],
|
|
4619
|
+
qualityScore: 42,
|
|
4620
|
+
},
|
|
4567
4621
|
layout: {
|
|
4568
4622
|
boundingPoly: {
|
|
4569
4623
|
normalizedVertices: [
|