Skip to content

Commit 205a3e1

Browse files
Merge pull request #237 from regulaforensics/stable
Stable -> Develop
2 parents 2a08c47 + 7090f7e commit 205a3e1

File tree

2 files changed

+3
-33
lines changed

2 files changed

+3
-33
lines changed

src/ext/document-reader.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,8 @@ export function requestToBaseRequest(request: ProcessRequestExt): ProcessRequest
200200
});
201201

202202
return {
203-
processParam: request.processParam,
203+
...request,
204204
List: imageList,
205-
systemInfo: request.systemInfo,
206-
passBackObject: request.passBackObject,
207205
};
208206
}
209207

src/ext/process-request-ext.ts

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,15 @@
1-
import { ContainerList, ProcessParams, ProcessSystemInfo } from '../models';
1+
import { ProcessRequest } from '../models';
22
import { ProcessRequestImageWrapper } from './process-request-image-wrapper';
33

44
export type Base64String = string;
55

6-
export interface ProcessRequestExt {
7-
/**
8-
*
9-
* @type {ProcessParams}
10-
* @memberof ProcessRequestExt
11-
*/
12-
processParam: ProcessParams;
13-
6+
export interface ProcessRequestExt extends ProcessRequest {
147
/**
158
*
169
* @type {Array<ProcessRequestImage>}
1710
* @memberof ProcessRequestExt
1811
*/
1912
images: Array<ProcessRequestImageWrapper | ArrayBuffer | Base64String>;
20-
21-
/**
22-
* @type {ContainerList}
23-
* @memberOf ProcessRequestExt
24-
*/
25-
ContainerList: ContainerList;
26-
27-
/**
28-
*
29-
* @type {ProcessParams}
30-
* @memberof ProcessRequestExt
31-
*/
32-
systemInfo?: ProcessSystemInfo;
33-
34-
/**
35-
* Free-form object to be included in response. Must be object, not list or simple value.
36-
* Do not affect document processing. Use it freely to pass your app params. Stored in process logs.
37-
* @type {{ [key: string]: object; }}
38-
* @memberof ProcessRequestExt
39-
*/
40-
passBackObject?: { [key: string]: any };
4113
}
4214

4315
export const instanceOfProcessRequest = (data: any): data is ProcessRequestExt => {

0 commit comments

Comments
 (0)