-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoutput.ts
44 lines (38 loc) · 995 Bytes
/
output.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { ParsingError } from "./parsingError";
export type Settings = {
tolerance: number;
stringCaseSensitive: boolean;
leafNodesOnly: boolean;
attributesCaseSensitive: boolean;
displayUnits: string;
displayUnitsPrecision: number | string;
dbIds: number[];
modelBrowserExcludeRoot: boolean;
modelName: string;
}
export type ComputeSettings = {
attributesCaseSensitive: boolean;
displayUnits: string;
displayUnitsPrecision: number | string;
}
export type QueryResults = {
dbIds: number[];
columns: string[];
rows: QuryResultRow[];
error: ParsingError | Error | null;
}
export type QuryResultRow = {
dbIds: number[];
values: {
[key: string]: string | number | undefined
}
}
export type ExpressionComputeResults = {
result: number | string | undefined;
error: ParsingError | Error | null;
}
export type UserQueryOptions = {
lmvQuery: string;
nodes: number[];
lmvQueryOptions: Settings;
}