-
Notifications
You must be signed in to change notification settings - Fork 1
/
plain.ts
86 lines (73 loc) · 2.25 KB
/
plain.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
import type {AggregatorType, DimensionType} from "./enums";
export interface Annotations {
[key: string]: string | undefined;
}
export interface IAnnotated {
readonly annotations: Annotations;
}
export interface IFullNamed extends INamed {
readonly caption?: string;
readonly fullName?: string;
}
export interface INamed {
readonly name: string;
}
export interface ISerializable {
readonly uri: string;
}
export interface PlainCube extends IAnnotated, INamed, ISerializable {
readonly _type: "cube";
readonly caption?: string;
readonly dimensions: PlainDimension[];
readonly measures: PlainMeasure[];
readonly namedsets: PlainNamedSet[];
}
export interface PlainDimension extends IAnnotated, IFullNamed, ISerializable {
readonly _type: "dimension";
readonly cube: string;
readonly defaultHierarchy: string;
readonly dimensionType: DimensionType;
readonly hierarchies: PlainHierarchy[];
}
export interface PlainHierarchy extends IAnnotated, IFullNamed, ISerializable {
readonly _type: "hierarchy";
readonly cube: string;
readonly dimension: string;
readonly levels: PlainLevel[];
}
export interface PlainLevel extends IAnnotated, IFullNamed, ISerializable {
readonly _type: "level";
readonly cube: string;
readonly depth: number;
readonly dimension: string;
readonly hierarchy: string;
readonly properties: PlainProperty[];
readonly uniqueName?: string;
}
export interface PlainMeasure extends IAnnotated, IFullNamed, ISerializable {
readonly _type: "measure";
readonly aggregatorType: AggregatorType;
readonly cube: string;
}
export interface PlainMember extends IFullNamed, ISerializable {
readonly _type: "member";
readonly ancestors: PlainMember[];
readonly children: PlainMember[];
readonly depth?: number;
readonly key: string | number;
readonly level: string;
readonly numChildren?: number;
readonly parentName?: string;
}
export interface PlainNamedSet extends IAnnotated, INamed, ISerializable {
readonly _type: "namedset";
readonly cube: string;
readonly dimension: string;
readonly hierarchy: string;
readonly level: string;
}
export interface PlainProperty extends IAnnotated, INamed, ISerializable {
readonly _type: "property";
readonly captionSet?: string;
readonly uniqueName?: string;
}