Skip to content

Commit 1d663ae

Browse files
authored
add setConfigurations methods (#98)
1 parent 4a3f489 commit 1d663ae

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/api/process-api.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,8 @@ export class ProcessApi extends BaseAPI {
150150
public apiProcess(processRequest: ProcessRequest, xRequestID?: string, options?: any) {
151151
return ProcessApiFp(this.configuration).apiProcess(processRequest, xRequestID, options).then((request) => request(this.axios, this.basePath));
152152
}
153+
154+
public setConfiguration(configuration: Configuration): void {
155+
this.configuration = configuration;
156+
}
153157
}

src/ext/document-reader.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export class DocumentReaderApi {
3535
.then((axiosResult) => axiosResult.data);
3636
}
3737

38+
setConfiguration(configuration: Configuration): void {
39+
this.processApi.setConfiguration(configuration);
40+
}
41+
3842
/**
3943
*
4044
* @summary Process list of documents images and return extracted data

0 commit comments

Comments
 (0)