@maxim_mazurok/gapi.client.documentai-v1 0.0.20220808 → 0.0.20220815

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 (3) hide show
  1. package/index.d.ts +31 -18
  2. package/package.json +1 -1
  3. package/tests.ts +1 -4
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
11
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
12
  // Generated from: https://documentai.googleapis.com/$discovery/rest?version=v1
13
- // Revision: 20220808
13
+ // Revision: 20220815
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -28,11 +28,13 @@ declare namespace gapi.client {
28
28
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
29
29
  /** The list of response details of each document. */
30
30
  individualBatchDeleteStatuses?: GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus[];
31
+ /** Total number of documents deleting from dataset. */
32
+ totalDocumentCount?: number;
31
33
  }
32
34
  interface GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus {
33
35
  /** The document id of the document. */
34
36
  documentId?: GoogleCloudDocumentaiUiv1beta3DocumentId;
35
- /** The status of deleting the document. */
37
+ /** The status of deleting the document in storage. */
36
38
  status?: GoogleRpcStatus;
37
39
  }
38
40
  // tslint:disable-next-line:no-empty-interface
@@ -140,11 +142,19 @@ declare namespace gapi.client {
140
142
  interface GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata {
141
143
  /** The basic metadata of the long running operation. */
142
144
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
145
+ /** Validation statuses of the batch documents import config. */
146
+ importConfigValidationResults?: GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult[];
143
147
  /** The list of response details of each document. */
144
148
  individualImportStatuses?: GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus[];
145
149
  /** Total number of the documents that are qualified for importing. */
146
150
  totalDocumentCount?: number;
147
151
  }
152
+ interface GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult {
153
+ /** The source Cloud Storage URI specified in the import config. */
154
+ inputGcsSource?: string;
155
+ /** The validation status of import config. */
156
+ status?: GoogleRpcStatus;
157
+ }
148
158
  interface GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus {
149
159
  /** The source Cloud Storage URI of the document. */
150
160
  inputGcsSource?: string;
@@ -159,9 +169,27 @@ declare namespace gapi.client {
159
169
  interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata {
160
170
  /** The basic metadata of the long running operation. */
161
171
  commonMetadata?: GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata;
172
+ /** The list of dataset resync statuses. Not checked when `dataset_documents` is specified in ResyncRequest. */
173
+ datasetResyncStatuses?: GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus[];
174
+ /** The list of document resync statuses. The same document could have multiple `individual_document_resync_statuses` if it has multiple inconsistencies. */
175
+ individualDocumentResyncStatuses?: GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus[];
162
176
  /** Returns the newly added document Cloud Storage prefix if the documents are founded in Cloud Storage while not in Document Service storage. */
163
177
  newlyAddedDocuments?: GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument[];
164
178
  }
179
+ interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus {
180
+ /** The type of the inconsistency of the dataset. */
181
+ datasetInconsistencyType?: string;
182
+ /** The status of resyncing the dataset with regards to the detected inconsistency. Empty if `validate_only` is true in the request. */
183
+ status?: GoogleRpcStatus;
184
+ }
185
+ interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus {
186
+ /** The document identifier. */
187
+ documentId?: GoogleCloudDocumentaiUiv1beta3DocumentId;
188
+ /** The type of document inconsistency. */
189
+ documentInconsistencyType?: string;
190
+ /** The status of resyncing the document with regards to the detected inconsistency. Empty if `validate_only` is true in the request. */
191
+ status?: GoogleRpcStatus;
192
+ }
165
193
  interface GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument {
166
194
  /** The prefix of cloud storage, identifies the destination document which should be updated by resync pipeline. */
167
195
  destinationPrefix?: string;
@@ -373,11 +401,6 @@ declare namespace gapi.client {
373
401
  mentionId?: string;
374
402
  /** Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`. If the entity is not present in the document, this field will be empty. */
375
403
  mentionText?: string;
376
- /**
377
- * Optional. This attribute indicates that the processing didn't actually identify this entity, but a confidence score was assigned that represent the potential that this could be a
378
- * false negative. A non-present entity should have an empty mention_text and text_anchor.
379
- */
380
- nonPresent?: boolean;
381
404
  /**
382
405
  * Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only
383
406
  * populated for certain supported document types.
@@ -855,11 +878,6 @@ declare namespace gapi.client {
855
878
  mentionId?: string;
856
879
  /** Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`. If the entity is not present in the document, this field will be empty. */
857
880
  mentionText?: string;
858
- /**
859
- * Optional. This attribute indicates that the processing didn't actually identify this entity, but a confidence score was assigned that represent the potential that this could be a
860
- * false negative. A non-present entity should have an empty mention_text and text_anchor.
861
- */
862
- nonPresent?: boolean;
863
881
  /**
864
882
  * Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only
865
883
  * populated for certain supported document types.
@@ -1489,11 +1507,6 @@ declare namespace gapi.client {
1489
1507
  mentionId?: string;
1490
1508
  /** Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`. If the entity is not present in the document, this field will be empty. */
1491
1509
  mentionText?: string;
1492
- /**
1493
- * Optional. This attribute indicates that the processing didn't actually identify this entity, but a confidence score was assigned that represent the potential that this could be a
1494
- * false negative. A non-present entity should have an empty mention_text and text_anchor.
1495
- */
1496
- nonPresent?: boolean;
1497
1510
  /**
1498
1511
  * Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only
1499
1512
  * populated for certain supported document types.
@@ -1822,7 +1835,7 @@ declare namespace gapi.client {
1822
1835
  enumValues?: GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues;
1823
1836
  /**
1824
1837
  * Name of the type. It must be unique within the schema file and cannot be a 'Common Type'. Besides that we use the following naming conventions: - *use snake_casing* - name matching
1825
- * is case-insensitive - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters [a-z0-9_-]. (For backward compatibility internal infrastructure and
1838
+ * is case-insensitive - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and
1826
1839
  * tooling can handle any ascii character) - The '/' is sometimes used to denote a property of a type. For example line_item/amount. This convention is deprecated, but will still be
1827
1840
  * honored for backward compatibility.
1828
1841
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1",
3
- "version": "0.0.20220808",
3
+ "version": "0.0.20220815",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20220808
6
+ // Revision: 20220815
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -150,7 +150,6 @@ gapi.load('client', async () => {
150
150
  id: "Test string",
151
151
  mentionId: "Test string",
152
152
  mentionText: "Test string",
153
- nonPresent: true,
154
153
  normalizedValue: {
155
154
  addressValue: {
156
155
  addressLines: [
@@ -994,7 +993,6 @@ gapi.load('client', async () => {
994
993
  id: "Test string",
995
994
  mentionId: "Test string",
996
995
  mentionText: "Test string",
997
- nonPresent: true,
998
996
  normalizedValue: {
999
997
  addressValue: {
1000
998
  addressLines: [
@@ -1840,7 +1838,6 @@ gapi.load('client', async () => {
1840
1838
  id: "Test string",
1841
1839
  mentionId: "Test string",
1842
1840
  mentionText: "Test string",
1843
- nonPresent: true,
1844
1841
  normalizedValue: {
1845
1842
  addressValue: {
1846
1843
  addressLines: [