@opengeoweb/space-weather 13.0.0
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.
- package/README.md +43 -0
- package/index.d.ts +1 -0
- package/index.esm.js +8391 -0
- package/package.json +38 -0
- package/src/index.d.ts +10 -0
- package/src/lib/components/Bulletin/Bulletin.d.ts +10 -0
- package/src/lib/components/Bulletin/Bulletin.noNewBulletins.stories.d.ts +8 -0
- package/src/lib/components/Bulletin/Bulletin.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/Bulletin.stories.d.ts +8 -0
- package/src/lib/components/Bulletin/BulletinControls.d.ts +6 -0
- package/src/lib/components/Bulletin/BulletinControls.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/BulletinHistoryDialog.d.ts +7 -0
- package/src/lib/components/Bulletin/BulletinHistoryDialog.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/BulletinHistoryDialog.stories.d.ts +7 -0
- package/src/lib/components/Bulletin/BulletinHistoryList.d.ts +8 -0
- package/src/lib/components/Bulletin/BulletinHistoryList.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/BulletinTabs.d.ts +11 -0
- package/src/lib/components/Bulletin/BulletinTabs.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/BulletinViewer.d.ts +8 -0
- package/src/lib/components/Bulletin/BulletinViewer.spec.d.ts +1 -0
- package/src/lib/components/Bulletin/index.d.ts +4 -0
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +15 -0
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +1 -0
- package/src/lib/components/ComponentsLookUp/index.d.ts +1 -0
- package/src/lib/components/ContentDialog/ContentDialog.d.ts +12 -0
- package/src/lib/components/ContentDialog/ContentDialog.spec.d.ts +1 -0
- package/src/lib/components/ContentDialog/ContentDialog.stories.d.ts +12 -0
- package/src/lib/components/ContentDialog/index.d.ts +1 -0
- package/src/lib/components/Layout/Layout.d.ts +18 -0
- package/src/lib/components/Layout/Layout.spec.d.ts +1 -0
- package/src/lib/components/Layout/index.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/CategoryLabelStatusTag.d.ts +7 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/DataSourceStatusTag.d.ts +7 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/EditFormFields.styles.d.ts +15 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/EventLevel.d.ts +3 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/GScaleStatusTag.d.ts +8 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/PeakFlux.d.ts +3 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/PeakFlux.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/StartTimeEndTime.d.ts +10 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/StartTimeEndTime.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/SuddenImpulse.d.ts +3 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/SuddenImpulse.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/Threshold.d.ts +7 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/XrayClassPeakClass.d.ts +8 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/XrayClassPeakClass.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/index.d.ts +9 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/validations.d.ts +5 -0
- package/src/lib/components/LifeCycleDialog/EditFormFields/validations.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/FormWrapper.d.ts +9 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleActions.d.ts +7 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleActions.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleColumn.d.ts +10 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleColumn.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDialog.d.ts +12 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDialog.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDialog.stories.d.ts +34 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDisplay.d.ts +11 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleDisplay.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEdit.d.ts +19 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEdit.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEdit.unregister.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEditOptions.d.ts +8 -0
- package/src/lib/components/LifeCycleDialog/LifeCycleEditOptions.spec.d.ts +1 -0
- package/src/lib/components/LifeCycleDialog/index.d.ts +5 -0
- package/src/lib/components/LifeCycleDialog/utils.d.ts +10 -0
- package/src/lib/components/LifeCycleDialog/utils.spec.d.ts +1 -0
- package/src/lib/components/NotificationTrigger/NotificationTrigger.d.ts +3 -0
- package/src/lib/components/NotificationTrigger/NotificationTrigger.spec.d.ts +1 -0
- package/src/lib/components/NotificationTrigger/NotificationTrigger.stories.d.ts +7 -0
- package/src/lib/components/NotificationTrigger/NotificationTriggerContext.d.ts +14 -0
- package/src/lib/components/NotificationTrigger/NotificationTriggerContext.spec.d.ts +1 -0
- package/src/lib/components/NotificationTrigger/index.d.ts +2 -0
- package/src/lib/components/Notifications/NotificationList.d.ts +13 -0
- package/src/lib/components/Notifications/NotificationList.spec.d.ts +1 -0
- package/src/lib/components/Notifications/NotificationRow.d.ts +8 -0
- package/src/lib/components/Notifications/NotificationRow.spec.d.ts +7 -0
- package/src/lib/components/Notifications/NotificationRow.stories.d.ts +8 -0
- package/src/lib/components/Notifications/NotificationTabs.d.ts +9 -0
- package/src/lib/components/Notifications/NotificationTabs.spec.d.ts +1 -0
- package/src/lib/components/Notifications/Notifications.d.ts +10 -0
- package/src/lib/components/Notifications/Notifications.spec.d.ts +1 -0
- package/src/lib/components/Notifications/Notifications.stories.d.ts +15 -0
- package/src/lib/components/Notifications/index.d.ts +3 -0
- package/src/lib/components/Notifications/utils.d.ts +2 -0
- package/src/lib/components/Notifications/utils.spec.d.ts +1 -0
- package/src/lib/components/Providers/Providers.d.ts +4 -0
- package/src/lib/components/Providers/index.d.ts +1 -0
- package/src/lib/components/TimeSeries/GraphErrors.d.ts +12 -0
- package/src/lib/components/TimeSeries/Graphs.d.ts +12 -0
- package/src/lib/components/TimeSeries/Graphs.spec.d.ts +1 -0
- package/src/lib/components/TimeSeries/Graphs.stories.d.ts +10 -0
- package/src/lib/components/TimeSeries/TimeSeries.d.ts +3 -0
- package/src/lib/components/TimeSeries/TimeSeries.spec.d.ts +1 -0
- package/src/lib/components/TimeSeries/TimeSeries.stories.d.ts +9 -0
- package/src/lib/components/TimeSeries/TimeSeries.utils.d.ts +4 -0
- package/src/lib/components/TimeSeries/TimeSeries.utils.spec.d.ts +1 -0
- package/src/lib/components/TimeSeries/TimeSeriesHeader.d.ts +3 -0
- package/src/lib/components/TimeSeries/createChartSeriesData.d.ts +4 -0
- package/src/lib/components/TimeSeries/createChartSeriesData.spec.d.ts +1 -0
- package/src/lib/components/TimeSeries/index.d.ts +1 -0
- package/src/lib/components/TimeSeries/styles.d.ts +14 -0
- package/src/lib/components/TimeSeries/types.d.ts +34 -0
- package/src/lib/components/TimeSeries/utils.d.ts +22 -0
- package/src/lib/components/TimeSeries/utils.spec.d.ts +1 -0
- package/src/lib/demo.stories.d.ts +5 -0
- package/src/lib/types.d.ts +207 -0
- package/src/lib/utils/DummyData.d.ts +367 -0
- package/src/lib/utils/defaultTimeRange.d.ts +4 -0
- package/src/lib/utils/fakedata.d.ts +21 -0
- package/src/lib/utils/i18n.d.ts +7 -0
- package/src/lib/utils/spaceweather-api/api.d.ts +16 -0
- package/src/lib/utils/spaceweather-api/fakeApi.d.ts +8 -0
- package/src/lib/utils/spaceweather-api/hooks.d.ts +38 -0
- package/src/lib/utils/storybookUtils.d.ts +2 -0
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { GraphItem } from '../components/TimeSeries/types';
|
|
2
|
+
export declare const solarWindSpeedDummyData: {
|
|
3
|
+
parameter: string;
|
|
4
|
+
stream: string;
|
|
5
|
+
unit: string;
|
|
6
|
+
data: {
|
|
7
|
+
timestamp: string;
|
|
8
|
+
value: number;
|
|
9
|
+
source: string;
|
|
10
|
+
}[];
|
|
11
|
+
};
|
|
12
|
+
export declare const solarWindSpeedDummyDataFixedDates: {
|
|
13
|
+
parameter: string;
|
|
14
|
+
stream: string;
|
|
15
|
+
unit: string;
|
|
16
|
+
data: {
|
|
17
|
+
timestamp: string;
|
|
18
|
+
value: number;
|
|
19
|
+
source: string;
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
export declare const solarWindPressureDummyData: {
|
|
23
|
+
parameter: string;
|
|
24
|
+
stream: string;
|
|
25
|
+
unit: string;
|
|
26
|
+
data: {
|
|
27
|
+
timestamp: string;
|
|
28
|
+
value: number;
|
|
29
|
+
source: string;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
export declare const solarWindPressureDummyDataFixedDates: {
|
|
33
|
+
parameter: string;
|
|
34
|
+
stream: string;
|
|
35
|
+
unit: string;
|
|
36
|
+
data: {
|
|
37
|
+
timestamp: string;
|
|
38
|
+
value: number;
|
|
39
|
+
source: string;
|
|
40
|
+
}[];
|
|
41
|
+
};
|
|
42
|
+
export declare const solarWindDensityDummyData: {
|
|
43
|
+
parameter: string;
|
|
44
|
+
stream: string;
|
|
45
|
+
unit: string;
|
|
46
|
+
data: {
|
|
47
|
+
timestamp: string;
|
|
48
|
+
value: number;
|
|
49
|
+
source: string;
|
|
50
|
+
}[];
|
|
51
|
+
};
|
|
52
|
+
export declare const solarWindDensityDummyDataFixedDates: {
|
|
53
|
+
parameter: string;
|
|
54
|
+
stream: string;
|
|
55
|
+
unit: string;
|
|
56
|
+
data: {
|
|
57
|
+
timestamp: string;
|
|
58
|
+
value: number;
|
|
59
|
+
source: string;
|
|
60
|
+
}[];
|
|
61
|
+
};
|
|
62
|
+
export declare const kpIndexDummyData: {
|
|
63
|
+
parameter: string;
|
|
64
|
+
stream: string;
|
|
65
|
+
unit: string;
|
|
66
|
+
data: {
|
|
67
|
+
timestamp: string;
|
|
68
|
+
value: number;
|
|
69
|
+
source: string;
|
|
70
|
+
}[];
|
|
71
|
+
};
|
|
72
|
+
export declare const kpIndexDummyDataFixedDates: {
|
|
73
|
+
parameter: string;
|
|
74
|
+
stream: string;
|
|
75
|
+
unit: string;
|
|
76
|
+
data: {
|
|
77
|
+
timestamp: string;
|
|
78
|
+
value: number;
|
|
79
|
+
source: string;
|
|
80
|
+
}[];
|
|
81
|
+
};
|
|
82
|
+
export declare const kpIndexForecastDummyData: {
|
|
83
|
+
parameter: string;
|
|
84
|
+
stream: string;
|
|
85
|
+
unit: string;
|
|
86
|
+
data: {
|
|
87
|
+
timestamp: string;
|
|
88
|
+
value: number;
|
|
89
|
+
source: string;
|
|
90
|
+
}[];
|
|
91
|
+
};
|
|
92
|
+
export declare const kpIndexForecastDummyDataFixedDates: {
|
|
93
|
+
parameter: string;
|
|
94
|
+
stream: string;
|
|
95
|
+
unit: string;
|
|
96
|
+
data: {
|
|
97
|
+
timestamp: string;
|
|
98
|
+
value: number;
|
|
99
|
+
source: string;
|
|
100
|
+
}[];
|
|
101
|
+
};
|
|
102
|
+
export declare const xRayFluxDummyData: {
|
|
103
|
+
parameter: string;
|
|
104
|
+
stream: string;
|
|
105
|
+
unit: string;
|
|
106
|
+
data: {
|
|
107
|
+
timestamp: string;
|
|
108
|
+
value: number;
|
|
109
|
+
source: string;
|
|
110
|
+
}[];
|
|
111
|
+
};
|
|
112
|
+
export declare const xRayFluxDummyDataFixedDates: {
|
|
113
|
+
parameter: string;
|
|
114
|
+
stream: string;
|
|
115
|
+
unit: string;
|
|
116
|
+
data: {
|
|
117
|
+
timestamp: string;
|
|
118
|
+
value: number;
|
|
119
|
+
source: string;
|
|
120
|
+
}[];
|
|
121
|
+
};
|
|
122
|
+
export declare const interplanetaryMagneticFieldBt: {
|
|
123
|
+
parameter: string;
|
|
124
|
+
stream: string;
|
|
125
|
+
unit: string;
|
|
126
|
+
data: {
|
|
127
|
+
timestamp: string;
|
|
128
|
+
value: number;
|
|
129
|
+
source: string;
|
|
130
|
+
}[];
|
|
131
|
+
};
|
|
132
|
+
export declare const interplanetaryMagneticFieldBz: {
|
|
133
|
+
parameter: string;
|
|
134
|
+
stream: string;
|
|
135
|
+
unit: string;
|
|
136
|
+
data: {
|
|
137
|
+
timestamp: string;
|
|
138
|
+
value: number;
|
|
139
|
+
source: string;
|
|
140
|
+
}[];
|
|
141
|
+
};
|
|
142
|
+
export declare const xrayWithSeries: GraphItem;
|
|
143
|
+
export declare const xrayWithSeriesFixedDates: {
|
|
144
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
145
|
+
id: string;
|
|
146
|
+
params: import("../types").TimeseriesParams[];
|
|
147
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
148
|
+
title: string;
|
|
149
|
+
yMinValue: number;
|
|
150
|
+
yMaxValue: number;
|
|
151
|
+
threshold?: {
|
|
152
|
+
title: string;
|
|
153
|
+
value: number | string;
|
|
154
|
+
color?: string;
|
|
155
|
+
}[];
|
|
156
|
+
columns: string[] | string[][];
|
|
157
|
+
tickValues?: (value: number) => number | string;
|
|
158
|
+
end?: string;
|
|
159
|
+
};
|
|
160
|
+
export declare const windPressureWithSeries: GraphItem;
|
|
161
|
+
export declare const windPressureWithSeriesFixedDates: {
|
|
162
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
163
|
+
id: string;
|
|
164
|
+
params: import("../types").TimeseriesParams[];
|
|
165
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
166
|
+
title: string;
|
|
167
|
+
yMinValue: number;
|
|
168
|
+
yMaxValue: number;
|
|
169
|
+
threshold?: {
|
|
170
|
+
title: string;
|
|
171
|
+
value: number | string;
|
|
172
|
+
color?: string;
|
|
173
|
+
}[];
|
|
174
|
+
columns: string[] | string[][];
|
|
175
|
+
tickValues?: (value: number) => number | string;
|
|
176
|
+
end?: string;
|
|
177
|
+
};
|
|
178
|
+
export declare const barGraphWithSeries: {
|
|
179
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
180
|
+
id: string;
|
|
181
|
+
params: import("../types").TimeseriesParams[];
|
|
182
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
183
|
+
title: string;
|
|
184
|
+
yMinValue: number;
|
|
185
|
+
yMaxValue: number;
|
|
186
|
+
threshold?: {
|
|
187
|
+
title: string;
|
|
188
|
+
value: number | string;
|
|
189
|
+
color?: string;
|
|
190
|
+
}[];
|
|
191
|
+
columns: string[] | string[][];
|
|
192
|
+
tickValues?: (value: number) => number | string;
|
|
193
|
+
end?: string;
|
|
194
|
+
};
|
|
195
|
+
export declare const barGraphWithSeriesFixedDates: {
|
|
196
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
197
|
+
id: string;
|
|
198
|
+
params: import("../types").TimeseriesParams[];
|
|
199
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
200
|
+
title: string;
|
|
201
|
+
yMinValue: number;
|
|
202
|
+
yMaxValue: number;
|
|
203
|
+
threshold?: {
|
|
204
|
+
title: string;
|
|
205
|
+
value: number | string;
|
|
206
|
+
color?: string;
|
|
207
|
+
}[];
|
|
208
|
+
columns: string[] | string[][];
|
|
209
|
+
tickValues?: (value: number) => number | string;
|
|
210
|
+
end?: string;
|
|
211
|
+
};
|
|
212
|
+
export declare const areaGraphWithSeries: {
|
|
213
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
214
|
+
id: string;
|
|
215
|
+
params: import("../types").TimeseriesParams[];
|
|
216
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
217
|
+
title: string;
|
|
218
|
+
yMinValue: number;
|
|
219
|
+
yMaxValue: number;
|
|
220
|
+
threshold?: {
|
|
221
|
+
title: string;
|
|
222
|
+
value: number | string;
|
|
223
|
+
color?: string;
|
|
224
|
+
}[];
|
|
225
|
+
columns: string[] | string[][];
|
|
226
|
+
tickValues?: (value: number) => number | string;
|
|
227
|
+
end?: string;
|
|
228
|
+
};
|
|
229
|
+
export declare const areaGraphWithSeriesFixedDates: {
|
|
230
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
231
|
+
id: string;
|
|
232
|
+
params: import("../types").TimeseriesParams[];
|
|
233
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
234
|
+
title: string;
|
|
235
|
+
yMinValue: number;
|
|
236
|
+
yMaxValue: number;
|
|
237
|
+
threshold?: {
|
|
238
|
+
title: string;
|
|
239
|
+
value: number | string;
|
|
240
|
+
color?: string;
|
|
241
|
+
}[];
|
|
242
|
+
columns: string[] | string[][];
|
|
243
|
+
tickValues?: (value: number) => number | string;
|
|
244
|
+
end?: string;
|
|
245
|
+
};
|
|
246
|
+
export declare const logGraphWithSeries: {
|
|
247
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
248
|
+
id: string;
|
|
249
|
+
params: import("../types").TimeseriesParams[];
|
|
250
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
251
|
+
title: string;
|
|
252
|
+
yMinValue: number;
|
|
253
|
+
yMaxValue: number;
|
|
254
|
+
threshold?: {
|
|
255
|
+
title: string;
|
|
256
|
+
value: number | string;
|
|
257
|
+
color?: string;
|
|
258
|
+
}[];
|
|
259
|
+
columns: string[] | string[][];
|
|
260
|
+
tickValues?: (value: number) => number | string;
|
|
261
|
+
end?: string;
|
|
262
|
+
};
|
|
263
|
+
export declare const windDensityWithSeries: {
|
|
264
|
+
tickValues: undefined;
|
|
265
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
266
|
+
id: string;
|
|
267
|
+
params: import("../types").TimeseriesParams[];
|
|
268
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
269
|
+
title: string;
|
|
270
|
+
yMinValue: number;
|
|
271
|
+
yMaxValue: number;
|
|
272
|
+
threshold?: {
|
|
273
|
+
title: string;
|
|
274
|
+
value: number | string;
|
|
275
|
+
color?: string;
|
|
276
|
+
}[];
|
|
277
|
+
columns: string[] | string[][];
|
|
278
|
+
end?: string;
|
|
279
|
+
};
|
|
280
|
+
export declare const windDensityWithSeriesFixedDates: {
|
|
281
|
+
tickValues: undefined;
|
|
282
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
283
|
+
id: string;
|
|
284
|
+
params: import("../types").TimeseriesParams[];
|
|
285
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
286
|
+
title: string;
|
|
287
|
+
yMinValue: number;
|
|
288
|
+
yMaxValue: number;
|
|
289
|
+
threshold?: {
|
|
290
|
+
title: string;
|
|
291
|
+
value: number | string;
|
|
292
|
+
color?: string;
|
|
293
|
+
}[];
|
|
294
|
+
columns: string[] | string[][];
|
|
295
|
+
end?: string;
|
|
296
|
+
};
|
|
297
|
+
export declare const logGraphWithSeriesFixedDates: {
|
|
298
|
+
id: string;
|
|
299
|
+
params: import("../types").TimeseriesParams[];
|
|
300
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
301
|
+
title: string;
|
|
302
|
+
yMinValue: number;
|
|
303
|
+
yMaxValue: number;
|
|
304
|
+
threshold?: {
|
|
305
|
+
title: string;
|
|
306
|
+
value: number | string;
|
|
307
|
+
color?: string;
|
|
308
|
+
}[];
|
|
309
|
+
columns: string[] | string[][];
|
|
310
|
+
tickValues?: (value: number) => number | string;
|
|
311
|
+
end?: string;
|
|
312
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
313
|
+
};
|
|
314
|
+
export declare const bandGraphWithSeries: {
|
|
315
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
316
|
+
id: string;
|
|
317
|
+
params: import("../types").TimeseriesParams[];
|
|
318
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
319
|
+
title: string;
|
|
320
|
+
yMinValue: number;
|
|
321
|
+
yMaxValue: number;
|
|
322
|
+
threshold?: {
|
|
323
|
+
title: string;
|
|
324
|
+
value: number | string;
|
|
325
|
+
color?: string;
|
|
326
|
+
}[];
|
|
327
|
+
columns: string[] | string[][];
|
|
328
|
+
tickValues?: (value: number) => number | string;
|
|
329
|
+
end?: string;
|
|
330
|
+
};
|
|
331
|
+
export declare const interplanetaryMagneticFieldBtFixedDates: {
|
|
332
|
+
parameter: string;
|
|
333
|
+
stream: string;
|
|
334
|
+
unit: string;
|
|
335
|
+
data: {
|
|
336
|
+
timestamp: string;
|
|
337
|
+
value: number;
|
|
338
|
+
source: string;
|
|
339
|
+
}[];
|
|
340
|
+
};
|
|
341
|
+
export declare const interplanetaryMagneticFieldBzFixedDates: {
|
|
342
|
+
parameter: string;
|
|
343
|
+
stream: string;
|
|
344
|
+
unit: string;
|
|
345
|
+
data: {
|
|
346
|
+
timestamp: string;
|
|
347
|
+
value: number;
|
|
348
|
+
source: string;
|
|
349
|
+
}[];
|
|
350
|
+
};
|
|
351
|
+
export declare const bandGraphWithSeriesFixedDates: {
|
|
352
|
+
series: import("../components/TimeSeries/types").Dataset[];
|
|
353
|
+
id: string;
|
|
354
|
+
params: import("../types").TimeseriesParams[];
|
|
355
|
+
graphType: "LOG" | "BAR" | "BAND" | "AREA";
|
|
356
|
+
title: string;
|
|
357
|
+
yMinValue: number;
|
|
358
|
+
yMaxValue: number;
|
|
359
|
+
threshold?: {
|
|
360
|
+
title: string;
|
|
361
|
+
value: number | string;
|
|
362
|
+
color?: string;
|
|
363
|
+
}[];
|
|
364
|
+
columns: string[] | string[][];
|
|
365
|
+
tickValues?: (value: number) => number | string;
|
|
366
|
+
end?: string;
|
|
367
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Bulletin, SWEvent } from '../types';
|
|
2
|
+
export declare const fakeEventList: SWEvent[];
|
|
3
|
+
export declare const fakeEventListFixedDates: SWEvent[];
|
|
4
|
+
export declare const fakeBulletins: Bulletin[];
|
|
5
|
+
export declare const mockEventUnacknowledgedExternal: SWEvent;
|
|
6
|
+
export declare const mockEventAcknowledgedExternal: SWEvent;
|
|
7
|
+
export declare const mockEvent: SWEvent;
|
|
8
|
+
export declare const mockEventMissingData: SWEvent;
|
|
9
|
+
export declare const mockEventWarning: SWEvent;
|
|
10
|
+
export declare const mockDraftEvent: SWEvent;
|
|
11
|
+
export declare const mockEventInternal: SWEvent;
|
|
12
|
+
export declare const mockBulletin: Bulletin;
|
|
13
|
+
export declare const mockEventAcknowledgedExternalDraft: SWEvent;
|
|
14
|
+
export declare const mockBulletinHistory: {
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
error: null;
|
|
17
|
+
fetchApiData: () => Promise<void>;
|
|
18
|
+
result: Bulletin[];
|
|
19
|
+
};
|
|
20
|
+
export declare const mockEventExternalWithEmptyInternalNotifications: SWEvent;
|
|
21
|
+
export declare const mockEventExternalMultipleNotificationsWithoutInternalProvider: SWEvent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import { UseTranslationResponse } from 'react-i18next';
|
|
3
|
+
export declare const SPACE_WEATHER_NAMESPACE = "spaceweather";
|
|
4
|
+
export declare const initSpaceweatherI18n: () => void;
|
|
5
|
+
export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
6
|
+
export declare const useSpaceweatherTranslation: () => UseTranslationResponse<typeof SPACE_WEATHER_NAMESPACE, typeof i18n>;
|
|
7
|
+
export { i18n };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Credentials } from '@opengeoweb/authentication';
|
|
2
|
+
import { Bulletin, DiscardDraftNotification, EventCategoryParams, StreamResponse, SWEvent, SWNotification, TimeseriesParams, TimeseriesResponseData } from '../../types';
|
|
3
|
+
export declare const getBulletinHistoryList: (auth: Credentials) => Promise<Bulletin[]>;
|
|
4
|
+
export declare const getBulletin: (auth: Credentials) => Promise<Bulletin>;
|
|
5
|
+
export declare const getEventList: (auth: Credentials, params: EventCategoryParams) => Promise<SWEvent[]>;
|
|
6
|
+
export declare const getEvent: (auth: Credentials, eventid: string) => Promise<SWEvent>;
|
|
7
|
+
export declare const getNewNotifications: (auth: Credentials) => Promise<SWEvent[]>;
|
|
8
|
+
export declare const postNotification: (auth: Credentials, data: SWNotification) => Promise<void>;
|
|
9
|
+
export declare const postDiscardDraftNotification: (auth: Credentials, data: DiscardDraftNotification) => Promise<void>;
|
|
10
|
+
export declare const postSetAcknowledged: (auth: Credentials, eventid: string) => Promise<void>;
|
|
11
|
+
export declare const postPopulateTemplateContent: (auth: Credentials, data: SWNotification) => Promise<{
|
|
12
|
+
title: string;
|
|
13
|
+
message: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const getStreams: (auth: Credentials) => Promise<StreamResponse[]>;
|
|
16
|
+
export declare const getTimeSeries: (auth: Credentials, data: TimeseriesParams) => Promise<TimeseriesResponseData>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TimeseriesResponseData } from '../../types';
|
|
2
|
+
export declare const MOCK_USERNAME = "user.name";
|
|
3
|
+
export declare const getDummyTimeSerie: (stream: string, parameter: string) => TimeseriesResponseData;
|
|
4
|
+
export declare const bulletinEndpoints: import("msw").HttpHandler[];
|
|
5
|
+
export declare const notificationEndpoints: import("msw").HttpHandler[];
|
|
6
|
+
export declare const fixedNotificationDateEndpoint: import("msw").HttpHandler[];
|
|
7
|
+
export declare const timeseriesEndpoints: import("msw").HttpHandler[];
|
|
8
|
+
export declare const requestHandlers: import("msw").HttpHandler[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { FieldValues, UseFormSetValue } from 'react-hook-form';
|
|
3
|
+
import { Bulletin, DiscardDraftNotification, EventCategoryParams, StreamResponse, SWEvent, SWNotification, TimeseriesParams, TimeseriesResponseData } from '../../types';
|
|
4
|
+
export declare const useBulletin: () => UseQueryResult<Bulletin>;
|
|
5
|
+
export declare const useBulletinHistory: () => UseQueryResult<Bulletin[]>;
|
|
6
|
+
export declare const useEventList: (params: EventCategoryParams) => UseQueryResult<SWEvent[]>;
|
|
7
|
+
export declare const useEvent: (eventid: string) => UseQueryResult<SWEvent>;
|
|
8
|
+
export declare const useNewNotifications: () => UseQueryResult<SWEvent[]>;
|
|
9
|
+
type PostReturnType<T> = UseMutationResult<void, Error, T>;
|
|
10
|
+
interface BasePostNotificationProps {
|
|
11
|
+
setError: (value: string) => void;
|
|
12
|
+
}
|
|
13
|
+
interface PostNotificationProps extends BasePostNotificationProps {
|
|
14
|
+
data: SWNotification;
|
|
15
|
+
toggleDialogOpen: (formSaved?: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const usePostNotification: () => PostReturnType<PostNotificationProps>;
|
|
18
|
+
interface PostDiscardDraftNotificationProps extends BasePostNotificationProps {
|
|
19
|
+
data: DiscardDraftNotification;
|
|
20
|
+
toggleDialogOpen: (formSaved?: boolean) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const useDiscardDraftNotification: () => PostReturnType<PostDiscardDraftNotificationProps>;
|
|
23
|
+
interface PostSetAcknowledgedProps {
|
|
24
|
+
data: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const useSetAcknowledged: () => PostReturnType<PostSetAcknowledgedProps>;
|
|
27
|
+
interface PostPopulateTemplateContentProps extends BasePostNotificationProps {
|
|
28
|
+
data: SWNotification;
|
|
29
|
+
setValue: UseFormSetValue<FieldValues>;
|
|
30
|
+
}
|
|
31
|
+
type UsePopulateReturnType<T> = UseMutationResult<{
|
|
32
|
+
title: string;
|
|
33
|
+
message: string;
|
|
34
|
+
}, Error, T>;
|
|
35
|
+
export declare const usePopulateTemplateContent: () => UsePopulateReturnType<PostPopulateTemplateContentProps>;
|
|
36
|
+
export declare const useGetStreams: (isDisabled?: boolean) => UseQueryResult<StreamResponse[]>;
|
|
37
|
+
export declare const useGetTimeSeries: (options: TimeseriesParams[]) => UseQueryResult<TimeseriesResponseData>[];
|
|
38
|
+
export {};
|