-
Notifications
You must be signed in to change notification settings - Fork 0
/
vizbuilder.d.ts
143 lines (107 loc) · 2.62 KB
/
vizbuilder.d.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
enum FilterOperatorNumber {
EQUAL = 1,
LOWER = 2,
LOWEREQUAL = 3,
HIGHER = 4,
HIGHEREQUAL = 5,
NOTEQUAL = 6
}
enum FilterOperatorText {
EQUAL = 1,
NOTEQUAL = 6,
CONTAINS = 8
}
interface ChartType {
key: string;
name: string;
nllabel: string;
icon: string;
}
interface Filter {
key: string;
property: Level | Measure;
operator: FilterOperatorNumber | FilterOperatorText;
value: number | string | Array<Member>;
}
interface Selectable {
name: string;
value: any;
disabled?: boolean;
}
declare class DataStructure implements Selectable {
source: any;
key: string;
readonly fullName: string;
readonly name: string;
readonly value: any;
}
declare class Measure extends DataStructure {
source: MondrianMeasure;
key: string;
kind: string;
type: AggregatorType;
constructor(item: MondrianMeasure);
readonly fullName: string;
readonly name: string;
readonly value: Measure;
}
declare class Level extends DataStructure {
source: MondrianLevel;
key: string;
kind: string;
private _publicName: string;
constructor(item: MondrianLevel);
readonly fullName: string;
readonly name: string;
readonly value: Level;
readonly levelName: string;
readonly hierarchyName: string;
readonly dimensionName: string;
readonly dimensionType: DimensionType;
}
declare class Hierarchy extends DataStructure {
source: MondrianHierarchy;
key: string;
kind: string;
private _levels: Array<Level>;
constructor(item: MondrianHierarchy);
readonly fullName: string;
readonly name: string;
readonly value: Hierarchy;
readonly levels: Array<Level>;
}
declare class Dimension extends DataStructure {
source: MondrianDimension;
key: string;
kind: string;
private _hierarchies: Array<Hierarchy>;
constructor(item: MondrianDimension);
readonly fullName: string;
readonly name: string;
readonly value: Dimension;
readonly type: DimensionType;
readonly hierarchies: Array<Hierarchy>;
readonly levels: Array<Level>;
getLevelHierarchy(): Array<Selectable>;
}
declare class Cube extends DataStructure {
source: MondrianCube;
key: string;
kind: string;
private _dimensions: Array<Dimension>;
private _levels: Array<Level>;
private _measures: Array<Measure>;
constructor(item: MondrianCube);
readonly fullName: string;
readonly name: string;
readonly value: Cube;
readonly query: MondrianQuery;
readonly measures: Array<Measure>;
readonly dimensions: Array<Dimension>;
readonly stdDimensions: Array<Dimension>;
readonly timeDimensions: Array<Dimension>;
readonly levels: Array<Level>;
readonly stdLevels: Array<Level>;
readonly timeLevels: Array<Level>;
getLevelHierarchy(): Array<Selectable>;
}