@rossum/api-client 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,25 @@
1
1
  import { ID, Url } from '../../utils/codecUtils';
2
2
  import { Grid } from './grid';
3
+ type ValueContent = Partial<{
4
+ value: string | null;
5
+ normalizedValue: string | null;
6
+ page: number | null;
7
+ position: null | Array<number>;
8
+ rirText: string | null;
9
+ rirRawText: string | null;
10
+ ocrText: string | null;
11
+ ocrRawText: string | null;
12
+ rirPage: number | null;
13
+ rirPosition: Array<number> | null;
14
+ ocrPosition: number[] | null;
15
+ rirConfidence: number | null;
16
+ connectorPosition: null | Array<number>;
17
+ connectorText: string | null;
18
+ }>;
3
19
  export type DatapointData = {
4
20
  id: ID | null;
5
21
  url: Url | null;
6
- content?: {
7
- value: string | null;
8
- normalizedValue: string | null;
9
- page: number | null;
10
- position: null | Array<number>;
11
- rirText: string | null;
12
- rirRawText: string | null;
13
- ocrText?: string | null;
14
- ocrRawText?: string | null;
15
- rirPage: number | null;
16
- rirPosition: Array<number> | null;
17
- ocrPosition?: number[] | null;
18
- rirConfidence: number | null;
19
- connectorPosition?: null | Array<number>;
20
- connectorText?: string | null;
21
- } | null;
22
+ content?: ValueContent | null;
22
23
  category: 'datapoint' | null;
23
24
  schemaId: string | null;
24
25
  validationSources?: Array<string> | null;
@@ -34,22 +35,7 @@ export type TupleData = {
34
35
  export type MultivalueData = {
35
36
  id: ID | null;
36
37
  url: Url | null;
37
- content?: {
38
- value: string | null;
39
- normalizedValue: string | null;
40
- page: number | null;
41
- position: null | Array<number>;
42
- rirText: string | null;
43
- rirRawText: string | null;
44
- ocrText?: string | null;
45
- ocrRawText?: string | null;
46
- rirPage: number | null;
47
- rirPosition: Array<number> | null;
48
- ocrPosition?: number[] | null;
49
- rirConfidence: number | null;
50
- connectorPosition: null | Array<number>;
51
- connectorText: string | null;
52
- } | null;
38
+ content?: ValueContent | null;
53
39
  children: Array<DatapointData> | Array<TupleData> | null;
54
40
  category: 'multivalue' | null;
55
41
  schemaId: string | null;
@@ -82,24 +68,10 @@ export type SuggestedOperations = {
82
68
  op: string;
83
69
  id: string;
84
70
  value: {
85
- content: {
86
- value: string | null;
87
- normalizedValue: string | null;
88
- page: number | null;
89
- position: null | Array<number>;
90
- rirText: string | null;
91
- rirRawText: string | null;
92
- ocrText?: string | null;
93
- ocrRawText?: string | null;
94
- rirPage: number | null;
95
- rirPosition: Array<number> | null;
96
- ocrPosition?: number[] | null;
97
- rirConfidence: number | null;
98
- connectorPosition: null | Array<number>;
99
- connectorText: string | null;
100
- };
71
+ content: ValueContent;
101
72
  hidden?: boolean;
102
73
  options?: Array<Options> | null;
103
74
  validation_sources: Array<string>;
104
75
  };
105
76
  };
77
+ export {};