-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
125 lines (114 loc) · 2.04 KB
/
global.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
type DimensionFilters = {
[key: number]: number[]
}
type Dimension = {
dimensionNameEn: string
dimensionNameFr: string
dimensionPositionId: number
hasUom: boolean
member: DimensionMember[]
}
type DimensionMember = {
classificationCode?: string
classificationTypeCode?: string
geoLevel?: number
memberId: number
memberNameEn: string
memberNameFr?: string
memberUomCode?: number
parentMemberId: number
terminated?: number
vintage?: number
children?: DimensionMember[]
}
type DimensionsDict = {
[key: number]: Dimension
}
type DimensionsByIdDict = {
[key: string]: { [key: string]: DimensionMember }
}
type DataPoint = {
date: string
values: { [key: string]: number }
}
type CubeMetadata = {
archiveStatusCode: string
archiveStatusEn: string
archiveStatusFr: string
cansimId: string
correction?: any
cubeEndDate: string
cubeStartDate: string
cubeTitleEn: string
cubeTitleFr: string
dimension: Dimension[]
footnote: {
footnoteId: number
footnotesEn: string
footnotesFr: string
link: {
dimensionPositionId: number
footnoteId: number
memberId: number
}[]
}[]
frequencyCode: FrequencyCode
nbDatapointsCube: number
nbSeriesCube: number
productId: string
releaseTime: string
responseStatusCode: number
subjectCode: string[]
surveyCode: string[]
}
type RawDataPoint = {
GEO: string
REF_DATE: string
VALUE: string
UOM: string
UOM_ID: string
coords: number[]
COORDINATE: string
}
type ChartType = 'area' | 'line'
type FrequencyCode =
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| 11
| 12
| 13
| 14
| 15
| 16
| 17
| 18
| 19
| 20
| 21
type VectorData = {
coordinate: string
productId: number
responseStatusCode: number
vectorDataPoint: VectorDataPoint[]
vectorId: number
}
type VectorDataPoint = {
refPer: string
refPer2: string
value: number
decimals: number
scalarFactorCode: number
symbolCode: number
statusCode: number
securityLevelCode: number
releaseTime: string
frequencyCode: number
}