Skip to content

Commit 1925cc0

Browse files
authored
V1.15.1 (#41)
* added OCR outputType
1 parent 5c5b1fc commit 1925cc0

764 files changed

Lines changed: 1746 additions & 1121 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ docs/ModelCase.md
250250
docs/Nigo.md
251251
docs/NigoStatus.md
252252
docs/OcrEngine.md
253+
docs/OcrKeyValues.md
253254
docs/OcrOutputType.md
254255
docs/OnlyOfficeConfig.md
255256
docs/OnlyOfficeConfigDocument.md
@@ -657,6 +658,7 @@ src/main/java/com/formkiq/client/model/ModelCase.java
657658
src/main/java/com/formkiq/client/model/Nigo.java
658659
src/main/java/com/formkiq/client/model/NigoStatus.java
659660
src/main/java/com/formkiq/client/model/OcrEngine.java
661+
src/main/java/com/formkiq/client/model/OcrKeyValues.java
660662
src/main/java/com/formkiq/client/model/OcrOutputType.java
661663
src/main/java/com/formkiq/client/model/OnlyOfficeConfig.java
662664
src/main/java/com/formkiq/client/model/OnlyOfficeConfigDocument.java
@@ -1022,6 +1024,7 @@ src/test/java/com/formkiq/client/model/ModelCaseTest.java
10221024
src/test/java/com/formkiq/client/model/NigoStatusTest.java
10231025
src/test/java/com/formkiq/client/model/NigoTest.java
10241026
src/test/java/com/formkiq/client/model/OcrEngineTest.java
1027+
src/test/java/com/formkiq/client/model/OcrKeyValuesTest.java
10251028
src/test/java/com/formkiq/client/model/OcrOutputTypeTest.java
10261029
src/test/java/com/formkiq/client/model/OnlyOfficeConfigDocumentTest.java
10271030
src/test/java/com/formkiq/client/model/OnlyOfficeConfigTest.java

api/openapi.yaml

Lines changed: 78 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ info:
2828
name: Apache 2.0
2929
url: https://www.apache.org/licenses/LICENSE-2.0.html
3030
title: FormKiQ API
31-
version: 1.15.0
31+
version: 1.15.1
3232
x-logo:
3333
url: https://docs.formkiq.com/docs/latest/_images/formkiq-logo.png
3434
backgroundColor: '#FFFFFF'
@@ -3514,7 +3514,19 @@ paths:
35143514
schema:
35153515
type: string
35163516
style: simple
3517-
- description: "Whether to return a \"contentUrl\", set value to 'true'"
3517+
- description: Output Format Type
3518+
explode: true
3519+
in: query
3520+
name: outputType
3521+
required: false
3522+
schema:
3523+
enum:
3524+
- TEXT
3525+
- KEY_VALUE
3526+
- CONTENT_URL
3527+
type: string
3528+
style: form
3529+
- description: "Whether to return a \"contentUrl\", set value to 'true' (deprecated)"
35183530
explode: true
35193531
in: query
35203532
name: contentUrl
@@ -3523,7 +3535,7 @@ paths:
35233535
type: string
35243536
style: form
35253537
- description: "Returns raw 'text' of OCR content. e.g. AWS Textract returns\
3526-
\ JSON, setting parameter to 'true' converts JSON to Text"
3538+
\ JSON, setting parameter to 'true' converts JSON to Text (deprecated)"
35273539
explode: true
35283540
in: query
35293541
name: text
@@ -9794,6 +9806,19 @@ components:
97949806
- INACTIVE
97959807
type: string
97969808
style: form
9809+
ocrOutputTypeParam:
9810+
description: Output Format Type
9811+
explode: true
9812+
in: query
9813+
name: outputType
9814+
required: false
9815+
schema:
9816+
enum:
9817+
- TEXT
9818+
- KEY_VALUE
9819+
- CONTENT_URL
9820+
type: string
9821+
style: form
97979822
limitParam:
97989823
description: Limit Results
97999824
explode: true
@@ -9967,7 +9992,7 @@ components:
99679992
type: integer
99689993
style: form
99699994
contentUrlParam:
9970-
description: "Whether to return a \"contentUrl\", set value to 'true'"
9995+
description: "Whether to return a \"contentUrl\", set value to 'true' (deprecated)"
99719996
explode: true
99729997
in: query
99739998
name: contentUrl
@@ -9977,7 +10002,7 @@ components:
997710002
style: form
997810003
textParam:
997910004
description: "Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON,\
9980-
\ setting parameter to 'true' converts JSON to Text"
10005+
\ setting parameter to 'true' converts JSON to Text (deprecated)"
998110006
explode: true
998210007
in: query
998310008
name: text
@@ -11567,6 +11592,7 @@ components:
1156711592
path: path
1156811593
tagSchemaId: tagSchemaId
1156911594
deepLinkPath: deepLinkPath
11595+
documentId: documentId
1157011596
attributes:
1157111597
- numberValues:
1157211598
- 6.027456183070403
@@ -11640,6 +11666,9 @@ components:
1164011666
value: value
1164111667
key: key
1164211668
properties:
11669+
documentId:
11670+
description: "optional Document Identifier, if skipped one will be assigned"
11671+
type: string
1164311672
tagSchemaId:
1164411673
description: Tag Schema Id
1164511674
type: string
@@ -11739,6 +11768,7 @@ components:
1173911768
- values
1174011769
value: value
1174111770
key: key
11771+
documentId: documentId
1174211772
attributes:
1174311773
- numberValues:
1174411774
- 6.027456183070403
@@ -11814,6 +11844,9 @@ components:
1181411844
value: value
1181511845
key: key
1181611846
properties:
11847+
documentId:
11848+
description: "optional Document Identifier, if skipped one will be assigned"
11849+
type: string
1181711850
tagSchemaId:
1181811851
description: Tag Schema Id
1181911852
type: string
@@ -15174,7 +15207,8 @@ components:
1517415207
example:
1517515208
next: next
1517615209
mappings:
15177-
- name: name
15210+
- mappingId: mappingId
15211+
name: name
1517815212
description: description
1517915213
attributes:
1518015214
- labelMatchingType: FUZZY
@@ -15201,7 +15235,8 @@ components:
1520115235
labelTexts:
1520215236
- labelTexts
1520315237
- labelTexts
15204-
- name: name
15238+
- mappingId: mappingId
15239+
name: name
1520515240
description: description
1520615241
attributes:
1520715242
- labelMatchingType: FUZZY
@@ -15240,6 +15275,7 @@ components:
1524015275
GetMappingResponse:
1524115276
example:
1524215277
mapping:
15278+
mappingId: mappingId
1524315279
name: name
1524415280
description: description
1524515281
attributes:
@@ -15273,6 +15309,7 @@ components:
1527315309
type: object
1527415310
Mapping:
1527515311
example:
15312+
mappingId: mappingId
1527615313
name: name
1527715314
description: description
1527815315
attributes:
@@ -15301,6 +15338,9 @@ components:
1530115338
- labelTexts
1530215339
- labelTexts
1530315340
properties:
15341+
mappingId:
15342+
description: Mapping Identifier
15343+
type: string
1530415344
name:
1530515345
description: Name of Mapping
1530615346
type: string
@@ -15373,6 +15413,7 @@ components:
1537315413
description: Attribute Source Type
1537415414
enum:
1537515415
- CONTENT
15416+
- CONTENT_KEY_VALUE
1537615417
- METADATA
1537715418
type: string
1537815419
GetAttributeResponse:
@@ -15779,6 +15820,21 @@ components:
1577915820
description: Action metadata
1578015821
type: object
1578115822
type: object
15823+
OcrKeyValues:
15824+
example:
15825+
values:
15826+
- values
15827+
- values
15828+
key: key
15829+
properties:
15830+
key:
15831+
description: Ocr Key
15832+
type: string
15833+
values:
15834+
items:
15835+
type: string
15836+
type: array
15837+
type: object
1578215838
GetDocumentOcrResponse:
1578315839
example:
1578415840
contentUrls:
@@ -15789,6 +15845,15 @@ components:
1578915845
insertedDate: insertedDate
1579015846
ocrStatus: ocrStatus
1579115847
documentId: documentId
15848+
keyValues:
15849+
- values:
15850+
- values
15851+
- values
15852+
key: key
15853+
- values:
15854+
- values
15855+
- values
15856+
key: key
1579215857
contentType: contentType
1579315858
isBase64: true
1579415859
userId: userId
@@ -15798,6 +15863,11 @@ components:
1579815863
items:
1579915864
type: string
1580015865
type: array
15866+
keyValues:
15867+
description: List of ocr key / values
15868+
items:
15869+
$ref: '#/components/schemas/OcrKeyValues'
15870+
type: array
1580115871
data:
1580215872
description: OCR text result
1580315873
type: string
@@ -17004,7 +17074,7 @@ components:
1700417074
username: username
1700517075
properties:
1700617076
username:
17007-
description: Username of user
17077+
description: Email address of user
1700817078
type: string
1700917079
type: object
1701017080
User:

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = 'com.formkiq'
10-
version = '1.15.1'
10+
version = '1.15.1-SNAPSHOT'
1111

1212
sourceCompatibility = JavaVersion.VERSION_11
1313
targetCompatibility = JavaVersion.VERSION_11
@@ -87,8 +87,8 @@ publishing {
8787
// password project.githubToken
8888
}
8989
// maven central
90-
url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
91-
//url "https://oss.sonatype.org/content/repositories/snapshots/"
90+
//url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
91+
url "https://oss.sonatype.org/content/repositories/snapshots/"
9292

9393
// github packages
9494
//url "https://maven.pkg.github.com/formkiq/formkiq-client-sdk-java"

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.formkiq",
44
name := "client",
5-
version := "1.15.0",
5+
version := "1.15.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/AddDocumentRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10+
|**documentId** | **String** | optional Document Identifier, if skipped one will be assigned | [optional] |
1011
|**tagSchemaId** | **String** | Tag Schema Id | [optional] |
1112
|**path** | **String** | Path or Name of document | [optional] |
1213
|**deepLinkPath** | **String** | Path or Name of deep link | [optional] |

docs/AddDocumentUploadRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10+
|**documentId** | **String** | optional Document Identifier, if skipped one will be assigned | [optional] |
1011
|**tagSchemaId** | **String** | Tag Schema Id | [optional] |
1112
|**path** | **String** | Path or Name of document | [optional] |
1213
|**contentType** | **String** | Document media type | [optional] |

docs/AddUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
|**username** | **String** | Username of user | [optional] |
10+
|**username** | **String** | Email address of user | [optional] |
1111

1212

1313

docs/DocumentOcrApi.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ No authorization required
148148

149149
<a id="getDocumentOcr"></a>
150150
# **getDocumentOcr**
151-
> GetDocumentOcrResponse getDocumentOcr(documentId, siteId, contentUrl, text, shareKey)
151+
> GetDocumentOcrResponse getDocumentOcr(documentId, siteId, outputType, contentUrl, text, shareKey)
152152
153153
Get document ocr content
154154

@@ -174,11 +174,12 @@ public class Example {
174174
DocumentOcrApi apiInstance = new DocumentOcrApi(defaultClient);
175175
String documentId = "documentId_example"; // String | Document Identifier
176176
String siteId = "siteId_example"; // String | Site Identifier
177-
String contentUrl = "contentUrl_example"; // String | Whether to return a \"contentUrl\", set value to 'true'
178-
String text = "text_example"; // String | Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text
177+
String outputType = "TEXT"; // String | Output Format Type
178+
String contentUrl = "contentUrl_example"; // String | Whether to return a \"contentUrl\", set value to 'true' (deprecated)
179+
String text = "text_example"; // String | Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text (deprecated)
179180
String shareKey = "shareKey_example"; // String | Share Identifier
180181
try {
181-
GetDocumentOcrResponse result = apiInstance.getDocumentOcr(documentId, siteId, contentUrl, text, shareKey);
182+
GetDocumentOcrResponse result = apiInstance.getDocumentOcr(documentId, siteId, outputType, contentUrl, text, shareKey);
182183
System.out.println(result);
183184
} catch (ApiException e) {
184185
System.err.println("Exception when calling DocumentOcrApi#getDocumentOcr");
@@ -197,8 +198,9 @@ public class Example {
197198
|------------- | ------------- | ------------- | -------------|
198199
| **documentId** | **String**| Document Identifier | |
199200
| **siteId** | **String**| Site Identifier | [optional] |
200-
| **contentUrl** | **String**| Whether to return a \&quot;contentUrl\&quot;, set value to &#39;true&#39; | [optional] |
201-
| **text** | **String**| Returns raw &#39;text&#39; of OCR content. e.g. AWS Textract returns JSON, setting parameter to &#39;true&#39; converts JSON to Text | [optional] |
201+
| **outputType** | **String**| Output Format Type | [optional] [enum: TEXT, KEY_VALUE, CONTENT_URL] |
202+
| **contentUrl** | **String**| Whether to return a \&quot;contentUrl\&quot;, set value to &#39;true&#39; (deprecated) | [optional] |
203+
| **text** | **String**| Returns raw &#39;text&#39; of OCR content. e.g. AWS Textract returns JSON, setting parameter to &#39;true&#39; converts JSON to Text (deprecated) | [optional] |
202204
| **shareKey** | **String**| Share Identifier | [optional] |
203205

204206
### Return type

docs/GetDocumentOcrResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
1010
|**contentUrls** | **List&lt;String&gt;** | Presigned S3 Urls for the OCR content | [optional] |
11+
|**keyValues** | [**List&lt;OcrKeyValues&gt;**](OcrKeyValues.md) | List of ocr key / values | [optional] |
1112
|**data** | **String** | OCR text result | [optional] |
1213
|**ocrEngine** | **String** | The OCR technique used | [optional] |
1314
|**ocrStatus** | **String** | The status of the OCR request | [optional] |

docs/Mapping.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10+
|**mappingId** | **String** | Mapping Identifier | [optional] |
1011
|**name** | **String** | Name of Mapping | [optional] |
1112
|**description** | **String** | Description of Mapping | [optional] |
1213
|**attributes** | [**List&lt;MappingAttribute&gt;**](MappingAttribute.md) | List of attributes | [optional] |

0 commit comments

Comments
 (0)