@maxim_mazurok/gapi.client.documentai-v1beta3 0.0.20230814 → 0.0.20230822

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 +23 -1
  2. package/package.json +1 -1
  3. package/tests.ts +197 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://documentai.googleapis.com/$discovery/rest?version=v1beta3
12
- // Revision: 20230814
12
+ // Revision: 20230822
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -3079,6 +3079,11 @@ declare namespace gapi.client {
3079
3079
  processorTypes?:
3080
3080
  GoogleCloudDocumentaiV1beta3ProcessorType[];
3081
3081
  }
3082
+ interface GoogleCloudDocumentaiV1beta3FieldExtractionMetadata {
3083
+ /** Summary options config. */
3084
+ summaryOptions?:
3085
+ GoogleCloudDocumentaiV1beta3SummaryOptions;
3086
+ }
3082
3087
  interface GoogleCloudDocumentaiV1beta3GcsDocument {
3083
3088
  /** The Cloud Storage object uri. */
3084
3089
  gcsUri?:
@@ -3277,6 +3282,12 @@ declare namespace gapi.client {
3277
3282
  /** Only applicable to `OCR_PROCESSOR`. Returns error if set on other processor types. */
3278
3283
  ocrConfig?:
3279
3284
  GoogleCloudDocumentaiV1beta3OcrConfig;
3285
+ /**
3286
+ * Optional. Override the schema of the ProcessorVersion. Will return an Invalid Argument error if this field is set when the underlying ProcessorVersion doesn't support schema
3287
+ * override.
3288
+ */
3289
+ schemaOverride?:
3290
+ GoogleCloudDocumentaiV1beta3DocumentSchema;
3280
3291
  }
3281
3292
  interface GoogleCloudDocumentaiV1beta3Processor {
3282
3293
  /** The time the processor was created. */
@@ -3424,6 +3435,9 @@ declare namespace gapi.client {
3424
3435
  GoogleCloudDocumentaiV1beta3HumanReviewStatus;
3425
3436
  }
3426
3437
  interface GoogleCloudDocumentaiV1beta3PropertyMetadata {
3438
+ /** Field extraction metadata on the property. */
3439
+ fieldExtractionMetadata?:
3440
+ GoogleCloudDocumentaiV1beta3FieldExtractionMetadata;
3427
3441
  /** Whether the property should be considered as "inactive". */
3428
3442
  inactive?:
3429
3443
  boolean;
@@ -3517,6 +3531,14 @@ declare namespace gapi.client {
3517
3531
  // tslint:disable-next-line:no-empty-interface
3518
3532
  interface GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse {
3519
3533
  }
3534
+ interface GoogleCloudDocumentaiV1beta3SummaryOptions {
3535
+ /** What format the summary should be in. */
3536
+ format?:
3537
+ string;
3538
+ /** How long the summary should be. */
3539
+ length?:
3540
+ string;
3541
+ }
3520
3542
  interface GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata {
3521
3543
  /** The basic metadata of the long-running operation. */
3522
3544
  commonMetadata?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.documentai-v1beta3",
3
- "version": "0.0.20230814",
3
+ "version": "0.0.20230822",
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: 20230814
6
+ // Revision: 20230822
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -115,6 +115,49 @@ gapi.load('client', async () => {
115
115
  ],
116
116
  },
117
117
  },
118
+ schemaOverride: {
119
+ description: "Test string",
120
+ displayName: "Test string",
121
+ entityTypes: [
122
+ {
123
+ baseTypes: [
124
+ "Test string"
125
+ ],
126
+ displayName: "Test string",
127
+ entityTypeMetadata: {
128
+ inactive: true,
129
+ },
130
+ enumValues: {
131
+ values: [
132
+ "Test string"
133
+ ],
134
+ },
135
+ name: "Test string",
136
+ properties: [
137
+ {
138
+ name: "Test string",
139
+ occurrenceType: "Test string",
140
+ propertyMetadata: {
141
+ fieldExtractionMetadata: {
142
+ summaryOptions: {
143
+ format: "Test string",
144
+ length: "Test string",
145
+ },
146
+ },
147
+ inactive: true,
148
+ },
149
+ valueType: "Test string",
150
+ }
151
+ ],
152
+ }
153
+ ],
154
+ metadata: {
155
+ documentAllowMultipleLabels: true,
156
+ documentSplitter: true,
157
+ prefixedNamingOnProperties: true,
158
+ skipNamingValidation: true,
159
+ },
160
+ },
118
161
  },
119
162
  skipHumanReview: true,
120
163
  });
@@ -1873,6 +1916,49 @@ gapi.load('client', async () => {
1873
1916
  ],
1874
1917
  },
1875
1918
  },
1919
+ schemaOverride: {
1920
+ description: "Test string",
1921
+ displayName: "Test string",
1922
+ entityTypes: [
1923
+ {
1924
+ baseTypes: [
1925
+ "Test string"
1926
+ ],
1927
+ displayName: "Test string",
1928
+ entityTypeMetadata: {
1929
+ inactive: true,
1930
+ },
1931
+ enumValues: {
1932
+ values: [
1933
+ "Test string"
1934
+ ],
1935
+ },
1936
+ name: "Test string",
1937
+ properties: [
1938
+ {
1939
+ name: "Test string",
1940
+ occurrenceType: "Test string",
1941
+ propertyMetadata: {
1942
+ fieldExtractionMetadata: {
1943
+ summaryOptions: {
1944
+ format: "Test string",
1945
+ length: "Test string",
1946
+ },
1947
+ },
1948
+ inactive: true,
1949
+ },
1950
+ valueType: "Test string",
1951
+ }
1952
+ ],
1953
+ }
1954
+ ],
1955
+ metadata: {
1956
+ documentAllowMultipleLabels: true,
1957
+ documentSplitter: true,
1958
+ prefixedNamingOnProperties: true,
1959
+ skipNamingValidation: true,
1960
+ },
1961
+ },
1876
1962
  },
1877
1963
  rawDocument: {
1878
1964
  content: "Test string",
@@ -2006,6 +2092,12 @@ gapi.load('client', async () => {
2006
2092
  name: "Test string",
2007
2093
  occurrenceType: "Test string",
2008
2094
  propertyMetadata: {
2095
+ fieldExtractionMetadata: {
2096
+ summaryOptions: {
2097
+ format: "Test string",
2098
+ length: "Test string",
2099
+ },
2100
+ },
2009
2101
  inactive: true,
2010
2102
  },
2011
2103
  valueType: "Test string",
@@ -2893,6 +2985,12 @@ gapi.load('client', async () => {
2893
2985
  name: "Test string",
2894
2986
  occurrenceType: "Test string",
2895
2987
  propertyMetadata: {
2988
+ fieldExtractionMetadata: {
2989
+ summaryOptions: {
2990
+ format: "Test string",
2991
+ length: "Test string",
2992
+ },
2993
+ },
2896
2994
  inactive: true,
2897
2995
  },
2898
2996
  valueType: "Test string",
@@ -3805,6 +3903,49 @@ gapi.load('client', async () => {
3805
3903
  ],
3806
3904
  },
3807
3905
  },
3906
+ schemaOverride: {
3907
+ description: "Test string",
3908
+ displayName: "Test string",
3909
+ entityTypes: [
3910
+ {
3911
+ baseTypes: [
3912
+ "Test string"
3913
+ ],
3914
+ displayName: "Test string",
3915
+ entityTypeMetadata: {
3916
+ inactive: true,
3917
+ },
3918
+ enumValues: {
3919
+ values: [
3920
+ "Test string"
3921
+ ],
3922
+ },
3923
+ name: "Test string",
3924
+ properties: [
3925
+ {
3926
+ name: "Test string",
3927
+ occurrenceType: "Test string",
3928
+ propertyMetadata: {
3929
+ fieldExtractionMetadata: {
3930
+ summaryOptions: {
3931
+ format: "Test string",
3932
+ length: "Test string",
3933
+ },
3934
+ },
3935
+ inactive: true,
3936
+ },
3937
+ valueType: "Test string",
3938
+ }
3939
+ ],
3940
+ }
3941
+ ],
3942
+ metadata: {
3943
+ documentAllowMultipleLabels: true,
3944
+ documentSplitter: true,
3945
+ prefixedNamingOnProperties: true,
3946
+ skipNamingValidation: true,
3947
+ },
3948
+ },
3808
3949
  },
3809
3950
  skipHumanReview: true,
3810
3951
  });
@@ -5567,6 +5708,49 @@ gapi.load('client', async () => {
5567
5708
  ],
5568
5709
  },
5569
5710
  },
5711
+ schemaOverride: {
5712
+ description: "Test string",
5713
+ displayName: "Test string",
5714
+ entityTypes: [
5715
+ {
5716
+ baseTypes: [
5717
+ "Test string"
5718
+ ],
5719
+ displayName: "Test string",
5720
+ entityTypeMetadata: {
5721
+ inactive: true,
5722
+ },
5723
+ enumValues: {
5724
+ values: [
5725
+ "Test string"
5726
+ ],
5727
+ },
5728
+ name: "Test string",
5729
+ properties: [
5730
+ {
5731
+ name: "Test string",
5732
+ occurrenceType: "Test string",
5733
+ propertyMetadata: {
5734
+ fieldExtractionMetadata: {
5735
+ summaryOptions: {
5736
+ format: "Test string",
5737
+ length: "Test string",
5738
+ },
5739
+ },
5740
+ inactive: true,
5741
+ },
5742
+ valueType: "Test string",
5743
+ }
5744
+ ],
5745
+ }
5746
+ ],
5747
+ metadata: {
5748
+ documentAllowMultipleLabels: true,
5749
+ documentSplitter: true,
5750
+ prefixedNamingOnProperties: true,
5751
+ skipNamingValidation: true,
5752
+ },
5753
+ },
5570
5754
  },
5571
5755
  rawDocument: {
5572
5756
  content: "Test string",
@@ -5606,6 +5790,12 @@ gapi.load('client', async () => {
5606
5790
  name: "Test string",
5607
5791
  occurrenceType: "Test string",
5608
5792
  propertyMetadata: {
5793
+ fieldExtractionMetadata: {
5794
+ summaryOptions: {
5795
+ format: "Test string",
5796
+ length: "Test string",
5797
+ },
5798
+ },
5609
5799
  inactive: true,
5610
5800
  },
5611
5801
  valueType: "Test string",
@@ -5678,6 +5868,12 @@ gapi.load('client', async () => {
5678
5868
  name: "Test string",
5679
5869
  occurrenceType: "Test string",
5680
5870
  propertyMetadata: {
5871
+ fieldExtractionMetadata: {
5872
+ summaryOptions: {
5873
+ format: "Test string",
5874
+ length: "Test string",
5875
+ },
5876
+ },
5681
5877
  inactive: true,
5682
5878
  },
5683
5879
  valueType: "Test string",