Skip to content

Commit 079cbdb

Browse files
authored
V1.11.0 (#33)
* added POST /documents/{documentId}/actions * Added POST /documents/{documentId}/action * Added GET/PATCH /configuration * added GET/POST/DELETE /configs/apiKeys
1 parent 494cfc9 commit 079cbdb

18 files changed

Lines changed: 1223 additions & 26 deletions

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.stacks'
10-
version = '1.10.0'
10+
version = '1.11.0'
1111

1212
sourceCompatibility = JavaVersion.VERSION_11
1313
targetCompatibility = JavaVersion.VERSION_11
@@ -80,8 +80,8 @@ publishing {
8080
username project.repoUser
8181
password project.repoPassword
8282
}
83-
//url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
84-
url "https://oss.sonatype.org/content/repositories/snapshots/"
83+
url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
84+
//url "https://oss.sonatype.org/content/repositories/snapshots/"
8585
}
8686
}
8787
}

src/main/java/com/formkiq/stacks/client/FormKiqClient.java

Lines changed: 84 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
import com.formkiq.stacks.client.models.AddDocusignResponse;
1919
import com.formkiq.stacks.client.models.AddTagSchemaResponse;
2020
import com.formkiq.stacks.client.models.AddWebhookResponse;
21+
import com.formkiq.stacks.client.models.ApiKey;
22+
import com.formkiq.stacks.client.models.ApiKeys;
23+
import com.formkiq.stacks.client.models.Configuration;
2124
import com.formkiq.stacks.client.models.Document;
2225
import com.formkiq.stacks.client.models.DocumentActions;
2326
import com.formkiq.stacks.client.models.DocumentFulltext;
@@ -37,6 +40,8 @@
3740
import com.formkiq.stacks.client.models.Version;
3841
import com.formkiq.stacks.client.models.WebhookTags;
3942
import com.formkiq.stacks.client.models.Webhooks;
43+
import com.formkiq.stacks.client.requests.AddApiKeyRequest;
44+
import com.formkiq.stacks.client.requests.AddDocumentActionRequest;
4045
import com.formkiq.stacks.client.requests.AddDocumentOcrRequest;
4146
import com.formkiq.stacks.client.requests.AddDocumentRequest;
4247
import com.formkiq.stacks.client.requests.AddDocumentTagRequest;
@@ -45,6 +50,7 @@
4550
import com.formkiq.stacks.client.requests.AddTagSchemaRequest;
4651
import com.formkiq.stacks.client.requests.AddWebhookRequest;
4752
import com.formkiq.stacks.client.requests.AddWebhookTagRequest;
53+
import com.formkiq.stacks.client.requests.DeleteApiKeyRequest;
4854
import com.formkiq.stacks.client.requests.DeleteDocumentFulltextRequest;
4955
import com.formkiq.stacks.client.requests.DeleteDocumentOcrRequest;
5056
import com.formkiq.stacks.client.requests.DeleteDocumentRequest;
@@ -78,6 +84,7 @@
7884
import com.formkiq.stacks.client.requests.SetDocumentOcrRequest;
7985
import com.formkiq.stacks.client.requests.SetDocumentVersionRequest;
8086
import com.formkiq.stacks.client.requests.SetDocusignConfigRequest;
87+
import com.formkiq.stacks.client.requests.UpdateConfigurationRequest;
8188
import com.formkiq.stacks.client.requests.UpdateDocumentFulltextRequest;
8289
import com.formkiq.stacks.client.requests.UpdateDocumentRequest;
8390
import com.formkiq.stacks.client.requests.UpdateDocumentTagKeyRequest;
@@ -88,6 +95,17 @@
8895
*/
8996
public interface FormKiqClient {
9097

98+
/**
99+
* POST /configs/apiKey.
100+
*
101+
* @param request {@link AddApiKeyRequest}
102+
* @return {@link ApiKey}
103+
*
104+
* @throws IOException IOException
105+
* @throws InterruptedException InterruptedException
106+
*/
107+
ApiKey addApiKey(AddApiKeyRequest request) throws IOException, InterruptedException;
108+
91109
/**
92110
* POST(Add) /documents.
93111
*
@@ -99,6 +117,16 @@ public interface FormKiqClient {
99117
AddDocumentResponse addDocument(AddDocumentRequest request)
100118
throws IOException, InterruptedException;
101119

120+
/**
121+
* POST /documents/{documentId}/action.
122+
*
123+
* @param request {@link AddDocumentActionRequest}
124+
*
125+
* @throws IOException IOException
126+
* @throws InterruptedException InterruptedException
127+
*/
128+
void addDocumentAction(AddDocumentActionRequest request) throws IOException, InterruptedException;
129+
102130
/**
103131
* POST /documents/{documentId}/ocr.
104132
*
@@ -171,6 +199,17 @@ AddTagSchemaResponse addTagSchema(AddTagSchemaRequest request)
171199
*/
172200
boolean addWebhookTag(AddWebhookTagRequest request) throws IOException, InterruptedException;
173201

202+
/**
203+
* DELETE /configs/apiKey.
204+
*
205+
* @param request {@link DeleteApiKeyRequest}
206+
* @return boolean - Whether the document was successfully deleted
207+
*
208+
* @throws IOException IOException
209+
* @throws InterruptedException InterruptedException
210+
*/
211+
boolean deleteApiKey(DeleteApiKeyRequest request) throws IOException, InterruptedException;
212+
174213
/**
175214
* DELETE /documents/{documentId}.
176215
*
@@ -207,15 +246,16 @@ boolean deleteDocumentOcr(DeleteDocumentOcrRequest request)
207246
throws IOException, InterruptedException;
208247

209248
/**
210-
* DELETE /indices/{indexType}/{indexKey}.
249+
* DELETE /documents/{documentId}/tags/{tagKey}.
211250
*
212-
* @param request {@link DeleteIndicesRequest}
213-
* @return boolean - Whether the Indices was successfully deleted
251+
* @param request {@link DeleteDocumentTagRequest}
252+
* @return {@link HttpResponse} {@link String}
214253
*
215-
* @throws IOException IOException
216254
* @throws InterruptedException InterruptedException
255+
* @throws IOException IOException
217256
*/
218-
boolean deleteIndices(DeleteIndicesRequest request) throws IOException, InterruptedException;
257+
boolean deleteDocumentTag(DeleteDocumentTagRequest request)
258+
throws IOException, InterruptedException;
219259

220260
/**
221261
* DELETE /documents/{documentId}/versions/{versionKey}.
@@ -230,28 +270,27 @@ boolean deleteDocumentVersion(DeleteDocumentVersionRequest request)
230270
throws IOException, InterruptedException;
231271

232272
/**
233-
* DELETE /documents/{documentId}/tags/{tagKey}.
273+
* DELETE /documents/{documentId}/fulltext/tags.
234274
*
235-
* @param request {@link DeleteDocumentTagRequest}
236-
* @return {@link HttpResponse} {@link String}
275+
* @param request {@link DeleteFulltextTagsRequest}
276+
* @return boolean - Whether the document fulltext tags was successfully deleted
237277
*
238-
* @throws InterruptedException InterruptedException
239278
* @throws IOException IOException
279+
* @throws InterruptedException InterruptedException
240280
*/
241-
boolean deleteDocumentTag(DeleteDocumentTagRequest request)
281+
boolean deleteFulltextTags(DeleteFulltextTagsRequest request)
242282
throws IOException, InterruptedException;
243283

244284
/**
245-
* DELETE /documents/{documentId}/fulltext/tags.
285+
* DELETE /indices/{indexType}/{indexKey}.
246286
*
247-
* @param request {@link DeleteFulltextTagsRequest}
248-
* @return boolean - Whether the document fulltext tags was successfully deleted
287+
* @param request {@link DeleteIndicesRequest}
288+
* @return boolean - Whether the Indices was successfully deleted
249289
*
250290
* @throws IOException IOException
251291
* @throws InterruptedException InterruptedException
252292
*/
253-
boolean deleteFulltextTags(DeleteFulltextTagsRequest request)
254-
throws IOException, InterruptedException;
293+
boolean deleteIndices(DeleteIndicesRequest request) throws IOException, InterruptedException;
255294

256295
/**
257296
* DELETE /tagSchemas/{tagSchemaId}.
@@ -275,6 +314,24 @@ boolean deleteFulltextTags(DeleteFulltextTagsRequest request)
275314
*/
276315
boolean deleteWebhook(DeleteWebhookRequest request) throws IOException, InterruptedException;
277316

317+
/**
318+
* GET /configs/apiKey.
319+
*
320+
* @return {@link HttpResponse}
321+
* @throws IOException IOException
322+
* @throws InterruptedException InterruptedException
323+
*/
324+
ApiKeys getApiKeys() throws IOException, InterruptedException;
325+
326+
/**
327+
* GET /configuration.
328+
*
329+
* @return {@link HttpResponse}
330+
* @throws IOException IOException
331+
* @throws InterruptedException InterruptedException
332+
*/
333+
Configuration getConfiguration() throws IOException, InterruptedException;
334+
278335
/**
279336
* GET /documents/{documentId}.
280337
*
@@ -469,7 +526,6 @@ TagSchemaSummaries getTagSchemas(GetTagSchemasRequest request)
469526
WebhookTags getWebhookTags(GetWebhookTagsRequest request)
470527
throws IOException, InterruptedException;
471528

472-
473529
/**
474530
* POST /queryFulltext.
475531
*
@@ -480,6 +536,7 @@ WebhookTags getWebhookTags(GetWebhookTagsRequest request)
480536
*/
481537
String queryFulltext(QueryFulltextRequest request) throws IOException, InterruptedException;
482538

539+
483540
/**
484541
* POST /search.
485542
*
@@ -501,7 +558,6 @@ WebhookTags getWebhookTags(GetWebhookTagsRequest request)
501558
FulltextDocuments searchFulltext(SearchFulltextRequest request)
502559
throws IOException, InterruptedException;
503560

504-
505561
/**
506562
* PUT /documents/{documentId}/antivirus.
507563
*
@@ -512,6 +568,7 @@ FulltextDocuments searchFulltext(SearchFulltextRequest request)
512568
void setDocumentAntivirus(SetDocumentAntivirusRequest request)
513569
throws IOException, InterruptedException;
514570

571+
515572
/**
516573
* PUT /documents/{documentId}/fulltext.
517574
*
@@ -550,6 +607,16 @@ void setDocumentVersion(SetDocumentVersionRequest request)
550607
*/
551608
void setDocusignConfig(SetDocusignConfigRequest request) throws IOException, InterruptedException;
552609

610+
/**
611+
* PATCH(Update) /configuration.
612+
*
613+
* @param request {@link UpdateConfigurationRequest}
614+
* @throws IOException IOException
615+
* @throws InterruptedException InterruptedException
616+
*/
617+
void updateConfiguration(UpdateConfigurationRequest request)
618+
throws IOException, InterruptedException;
619+
553620
/**
554621
* PATCH(Update) /documents/{documentId}.
555622
*

0 commit comments

Comments
 (0)