|
1 | | -import { ContainerList, ProcessParams, ProcessSystemInfo } from '../models'; |
| 1 | +import { ProcessRequest } from '../models'; |
2 | 2 | import { ProcessRequestImageWrapper } from './process-request-image-wrapper'; |
3 | 3 |
|
4 | 4 | export type Base64String = string; |
5 | 5 |
|
6 | | -export interface ProcessRequestExt { |
7 | | - /** |
8 | | - * |
9 | | - * @type {ProcessParams} |
10 | | - * @memberof ProcessRequestExt |
11 | | - */ |
12 | | - processParam: ProcessParams; |
13 | | - |
| 6 | +export interface ProcessRequestExt extends ProcessRequest { |
14 | 7 | /** |
15 | 8 | * |
16 | 9 | * @type {Array<ProcessRequestImage>} |
17 | 10 | * @memberof ProcessRequestExt |
18 | 11 | */ |
19 | 12 | 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 }; |
41 | 13 | } |
42 | 14 |
|
43 | 15 | export const instanceOfProcessRequest = (data: any): data is ProcessRequestExt => { |
|
0 commit comments