@maxim_mazurok/gapi.client.documentai-v1beta3 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 -7
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=v1beta3
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;
@@ -343,11 +371,6 @@ declare namespace gapi.client {
343
371
  mentionId?: string;
344
372
  /** 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. */
345
373
  mentionText?: string;
346
- /**
347
- * 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
348
- * false negative. A non-present entity should have an empty mention_text and text_anchor.
349
- */
350
- nonPresent?: boolean;
351
374
  /**
352
375
  * 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
353
376
  * populated for certain supported document types.
@@ -825,11 +848,6 @@ declare namespace gapi.client {
825
848
  mentionId?: string;
826
849
  /** 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. */
827
850
  mentionText?: string;
828
- /**
829
- * 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
830
- * false negative. A non-present entity should have an empty mention_text and text_anchor.
831
- */
832
- nonPresent?: boolean;
833
851
  /**
834
852
  * 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
835
853
  * populated for certain supported document types.
@@ -1418,11 +1436,6 @@ declare namespace gapi.client {
1418
1436
  mentionId?: string;
1419
1437
  /** 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. */
1420
1438
  mentionText?: string;
1421
- /**
1422
- * 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
1423
- * false negative. A non-present entity should have an empty mention_text and text_anchor.
1424
- */
1425
- nonPresent?: boolean;
1426
1439
  /**
1427
1440
  * 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
1428
1441
  * populated for certain supported document types.
@@ -1751,7 +1764,7 @@ declare namespace gapi.client {
1751
1764
  enumValues?: GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues;
1752
1765
  /**
1753
1766
  * 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
1754
- * is case-insensitive - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters [a-z0-9_-]. (For backward compatibility internal infrastructure and
1767
+ * is case-insensitive - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and
1755
1768
  * 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
1756
1769
  * honored for backward compatibility.
1757
1770
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.0.20220808",
3
+ "version": "0.0.20220815",
4
4
  "description": "TypeScript typings for Cloud Document AI API v1beta3",
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 */
@@ -151,7 +151,6 @@ gapi.load('client', async () => {
151
151
  id: "Test string",
152
152
  mentionId: "Test string",
153
153
  mentionText: "Test string",
154
- nonPresent: true,
155
154
  normalizedValue: {
156
155
  addressValue: {
157
156
  addressLines: [
@@ -948,7 +947,6 @@ gapi.load('client', async () => {
948
947
  id: "Test string",
949
948
  mentionId: "Test string",
950
949
  mentionText: "Test string",
951
- nonPresent: true,
952
950
  normalizedValue: {
953
951
  addressValue: {
954
952
  addressLines: [
@@ -1760,7 +1758,6 @@ gapi.load('client', async () => {
1760
1758
  id: "Test string",
1761
1759
  mentionId: "Test string",
1762
1760
  mentionText: "Test string",
1763
- nonPresent: true,
1764
1761
  normalizedValue: {
1765
1762
  addressValue: {
1766
1763
  addressLines: [
@@ -2588,7 +2585,6 @@ gapi.load('client', async () => {
2588
2585
  id: "Test string",
2589
2586
  mentionId: "Test string",
2590
2587
  mentionText: "Test string",
2591
- nonPresent: true,
2592
2588
  normalizedValue: {
2593
2589
  addressValue: {
2594
2590
  addressLines: [
@@ -3442,7 +3438,6 @@ gapi.load('client', async () => {
3442
3438
  id: "Test string",
3443
3439
  mentionId: "Test string",
3444
3440
  mentionText: "Test string",
3445
- nonPresent: true,
3446
3441
  normalizedValue: {
3447
3442
  addressValue: {
3448
3443
  addressLines: [
@@ -4239,7 +4234,6 @@ gapi.load('client', async () => {
4239
4234
  id: "Test string",
4240
4235
  mentionId: "Test string",
4241
4236
  mentionText: "Test string",
4242
- nonPresent: true,
4243
4237
  normalizedValue: {
4244
4238
  addressValue: {
4245
4239
  addressLines: [