@opengeoweb/space-weather 19.1.0 → 19.2.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.
Files changed (69) hide show
  1. package/dist/README.md +43 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.esm.js +8472 -0
  4. package/dist/src/index.d.ts +10 -0
  5. package/dist/src/lib/components/Bulletin/Bulletin.d.ts +10 -0
  6. package/dist/src/lib/components/Bulletin/BulletinControls.d.ts +6 -0
  7. package/dist/src/lib/components/Bulletin/BulletinHistoryDialog.d.ts +8 -0
  8. package/dist/src/lib/components/Bulletin/BulletinHistoryList.d.ts +8 -0
  9. package/dist/src/lib/components/Bulletin/BulletinTabs.d.ts +11 -0
  10. package/dist/src/lib/components/Bulletin/BulletinViewer.d.ts +9 -0
  11. package/dist/src/lib/components/Bulletin/index.d.ts +4 -0
  12. package/dist/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +15 -0
  13. package/dist/src/lib/components/ComponentsLookUp/index.d.ts +1 -0
  14. package/dist/src/lib/components/ContentDialog/ContentDialog.d.ts +12 -0
  15. package/dist/src/lib/components/ContentDialog/index.d.ts +1 -0
  16. package/dist/src/lib/components/Layout/Layout.d.ts +18 -0
  17. package/dist/src/lib/components/Layout/index.d.ts +1 -0
  18. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/CategoryLabelStatusTag.d.ts +7 -0
  19. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/DataSourceStatusTag.d.ts +7 -0
  20. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/EditFormFields.styles.d.ts +15 -0
  21. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/EventLevel.d.ts +3 -0
  22. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/GScaleStatusTag.d.ts +8 -0
  23. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/PeakFlux.d.ts +3 -0
  24. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/StartTimeEndTime.d.ts +10 -0
  25. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/SuddenImpulse.d.ts +3 -0
  26. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/Threshold.d.ts +7 -0
  27. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/XrayClassPeakClass.d.ts +8 -0
  28. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/index.d.ts +9 -0
  29. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/validations.d.ts +5 -0
  30. package/dist/src/lib/components/LifeCycleDialog/FormWrapper.d.ts +9 -0
  31. package/dist/src/lib/components/LifeCycleDialog/LifeCycleActions.d.ts +7 -0
  32. package/dist/src/lib/components/LifeCycleDialog/LifeCycleColumn.d.ts +10 -0
  33. package/dist/src/lib/components/LifeCycleDialog/LifeCycleDialog.d.ts +13 -0
  34. package/dist/src/lib/components/LifeCycleDialog/LifeCycleDisplay.d.ts +11 -0
  35. package/dist/src/lib/components/LifeCycleDialog/LifeCycleEdit.d.ts +19 -0
  36. package/dist/src/lib/components/LifeCycleDialog/LifeCycleEditOptions.d.ts +8 -0
  37. package/dist/src/lib/components/LifeCycleDialog/index.d.ts +5 -0
  38. package/dist/src/lib/components/LifeCycleDialog/utils.d.ts +10 -0
  39. package/dist/src/lib/components/NotificationTrigger/NotificationTrigger.d.ts +3 -0
  40. package/dist/src/lib/components/NotificationTrigger/NotificationTriggerContext.d.ts +14 -0
  41. package/dist/src/lib/components/NotificationTrigger/index.d.ts +2 -0
  42. package/dist/src/lib/components/Notifications/NotificationList.d.ts +13 -0
  43. package/dist/src/lib/components/Notifications/NotificationRow.d.ts +8 -0
  44. package/dist/src/lib/components/Notifications/NotificationTabs.d.ts +9 -0
  45. package/dist/src/lib/components/Notifications/Notifications.d.ts +10 -0
  46. package/dist/src/lib/components/Notifications/index.d.ts +3 -0
  47. package/dist/src/lib/components/Notifications/utils.d.ts +2 -0
  48. package/dist/src/lib/components/Providers/Providers.d.ts +4 -0
  49. package/dist/src/lib/components/Providers/index.d.ts +1 -0
  50. package/dist/src/lib/components/TimeSeries/GraphErrors.d.ts +12 -0
  51. package/dist/src/lib/components/TimeSeries/Graphs.d.ts +12 -0
  52. package/dist/src/lib/components/TimeSeries/TimeSeries.d.ts +3 -0
  53. package/dist/src/lib/components/TimeSeries/TimeSeries.utils.d.ts +4 -0
  54. package/dist/src/lib/components/TimeSeries/TimeSeriesHeader.d.ts +3 -0
  55. package/dist/src/lib/components/TimeSeries/createChartSeriesData.d.ts +4 -0
  56. package/dist/src/lib/components/TimeSeries/index.d.ts +1 -0
  57. package/dist/src/lib/components/TimeSeries/styles.d.ts +14 -0
  58. package/dist/src/lib/components/TimeSeries/types.d.ts +34 -0
  59. package/dist/src/lib/components/TimeSeries/utils.d.ts +22 -0
  60. package/dist/src/lib/types.d.ts +207 -0
  61. package/dist/src/lib/utils/DummyData.d.ts +367 -0
  62. package/dist/src/lib/utils/defaultTimeRange.d.ts +4 -0
  63. package/dist/src/lib/utils/fakedata.d.ts +21 -0
  64. package/dist/src/lib/utils/i18n.d.ts +7 -0
  65. package/dist/src/lib/utils/spaceweather-api/api.d.ts +16 -0
  66. package/dist/src/lib/utils/spaceweather-api/fakeApi.d.ts +8 -0
  67. package/dist/src/lib/utils/spaceweather-api/hooks.d.ts +38 -0
  68. package/dist/src/lib/utils/storybookUtils.d.ts +2 -0
  69. package/package.json +4 -3
@@ -0,0 +1,207 @@
1
+ export type Streams = 'xray' | 'rtsw_mag' | 'rtsw_wind' | 'kp' | 'kpforecast';
2
+ export type Parameters = 'solar_x_ray_flux_long' | 'solar_x_ray_flux_short' | 'proton_density' | 'bx_gsm' | 'by_gsm' | 'bz_gsm' | 'bt' | 'kp' | 'kpforecast' | 'proton_pressure' | 'proton_speed' | 'proton_temperature';
3
+ export type Source = 'GOES-16' | 'GOES-17' | 'ACE' | 'DSCOVR' | 'GFZ';
4
+ export interface Threshold {
5
+ title: string;
6
+ value: number;
7
+ color?: string;
8
+ }
9
+ export interface DataObject {
10
+ source: string;
11
+ timestamp: string;
12
+ value: number;
13
+ }
14
+ export interface TimeseriesResponseData {
15
+ data: DataObject[];
16
+ parameter: string;
17
+ stream: string;
18
+ unit: string;
19
+ }
20
+ export interface TimeseriesParams {
21
+ stream?: Streams;
22
+ parameter?: Parameters;
23
+ source?: Source;
24
+ time_start?: string;
25
+ time_stop?: string;
26
+ }
27
+ export interface StreamResponse {
28
+ end: string;
29
+ hasactive: boolean;
30
+ params: {
31
+ name: Parameters;
32
+ unit: string;
33
+ }[];
34
+ sources: Source[];
35
+ start: string;
36
+ stream: Streams;
37
+ }
38
+ export declare enum SWErrors {
39
+ USER_CANCELLED = "User Cancelled"
40
+ }
41
+ export declare enum EventCategory {
42
+ XRAY_RADIO_BLACKOUT = "Radio Blackout",
43
+ GEOMAGNETIC = "Geomagnetic",
44
+ PROTON_FLUX = "Proton Flux",
45
+ ELECTRON_FLUX = "Electron Flux"
46
+ }
47
+ export declare enum EventCategoryDetail {
48
+ GEOMAGNETIC_STORM = "Geomagnetic Storm",
49
+ GEOMAGNETIC_SUDDEN_IMPULSE = "Geomagnetic Sudden Impulse",
50
+ KP_INDEX = "Kp Index",
51
+ PROTON_FLUX_100 = "Proton Flux 100MeV",
52
+ PROTON_FLUX_10 = "Proton Flux 10MeV",
53
+ ELECTRON_FLUX_2 = "Electron Flux 2MeV",
54
+ ELECTRON_FLUENCE = "Electron Fluence"
55
+ }
56
+ export declare const EventCategoryDetails: {
57
+ XRAY_RADIO_BLACKOUT: string[];
58
+ GEOMAGNETIC: string[];
59
+ PROTON_FLUX: string[];
60
+ ELECTRON_FLUX: string[];
61
+ };
62
+ interface OriginatorParam {
63
+ originator: string;
64
+ category?: never;
65
+ }
66
+ interface CategoryParam {
67
+ originator?: never;
68
+ category: string;
69
+ }
70
+ export type EventCategoryParams = OriginatorParam | CategoryParam | Record<string, never>;
71
+ export declare enum NotificationLabel {
72
+ ALERT = "Alert",
73
+ WARNING = "Warning"
74
+ }
75
+ export declare const EventLabels: {
76
+ '': string[];
77
+ GEOMAGNETIC_STORM: string[];
78
+ ELECTRON_FLUENCE: string[];
79
+ ELECTRON_FLUX_2: string[];
80
+ GEOMAGNETIC_SUDDEN_IMPULSE: string[];
81
+ KP_INDEX: string[];
82
+ PROTON_FLUX_100: string[];
83
+ PROTON_FLUX_10: string[];
84
+ };
85
+ export declare const ThresholdUnits: {
86
+ XRAY_RADIO_BLACKOUT: string;
87
+ PROTON_FLUX: string;
88
+ ELECTRON_FLUX_2: string;
89
+ ELECTRON_FLUENCE: string;
90
+ };
91
+ export declare const ThresholdValues: {
92
+ XRAY_RADIO_BLACKOUT: number[];
93
+ GEOMAGNETIC: number[];
94
+ PROTON_FLUX: number[];
95
+ };
96
+ export declare const EventLevels: {
97
+ XRAY_RADIO_BLACKOUT: string[];
98
+ GEOMAGNETIC: string[];
99
+ PROTON_FLUX: string[];
100
+ };
101
+ export declare const XrayClasses: string[];
102
+ export type DiscardDraftNotification = {
103
+ notificationid: string;
104
+ eventid: string;
105
+ };
106
+ export interface SWNotification {
107
+ label: string;
108
+ changestateto: string;
109
+ category: string;
110
+ categorydetail: string;
111
+ neweventlevel?: string;
112
+ neweventstart: string;
113
+ neweventend?: string;
114
+ threshold?: number;
115
+ thresholdunit?: string;
116
+ datasource?: string;
117
+ impulsetime?: string;
118
+ initialgscale?: string;
119
+ magnetometerdeflection?: number;
120
+ observedpolaritybz?: number;
121
+ observedsolarwind?: number;
122
+ peakclass?: string;
123
+ peakflux?: number;
124
+ peakfluxtime?: string;
125
+ xrayclass?: string;
126
+ shocktime?: string;
127
+ draft?: boolean;
128
+ message: string;
129
+ title?: string;
130
+ notificationid?: string;
131
+ eventid?: string;
132
+ issuetime?: string;
133
+ originator?: string;
134
+ }
135
+ /**
136
+ * SWEventLifeCycle is to aggregate an SWEvent. Its state is derived inside the backend from 1 or more Notifications.
137
+ * The notifications property will list both notifications -> the issue and the summary.
138
+ */
139
+ export interface SWEventLifeCycle {
140
+ eventid: string;
141
+ firstissuetime?: string;
142
+ lastissuetime?: string;
143
+ state: string;
144
+ label: string;
145
+ owner: string;
146
+ eventstart: string;
147
+ eventend?: string;
148
+ eventlevel?: string;
149
+ canbe?: string[];
150
+ draft?: boolean;
151
+ notifications?: SWNotification[];
152
+ }
153
+ /**
154
+ * Event is a aggregation of lifecycles which belong together, e.g. a KNMI lifecycle which is based on a MetOffice lifecycle. Lifecycles itself are based on several Notifications.
155
+ * Event is used in the Notification List to represent a single list item with both incoming (external provider) lifecycle and outgoing (internal provider) lifecycle.
156
+ */
157
+ export interface SWEvent {
158
+ eventid: string;
159
+ category: string;
160
+ categorydetail: string;
161
+ originator: string;
162
+ notacknowledged?: boolean;
163
+ lifecycles?: {
164
+ externalprovider?: SWEventLifeCycle;
165
+ internalprovider?: SWEventLifeCycle;
166
+ };
167
+ }
168
+ /**
169
+ * Bulletin types
170
+ */
171
+ export interface BulletinProbability {
172
+ day1: number;
173
+ day2: number;
174
+ day3: number;
175
+ day4: number;
176
+ }
177
+ export interface BulletinCategory {
178
+ previously_exceeded: string;
179
+ probabilities: BulletinProbability[];
180
+ simplified_summary: string;
181
+ status: string;
182
+ summary: string;
183
+ timestamp: string;
184
+ type: string;
185
+ }
186
+ export interface BulletinOverview {
187
+ content: string;
188
+ simplified_content: string;
189
+ timestamp: string;
190
+ type: string;
191
+ }
192
+ export interface BulletinMessage {
193
+ categories: BulletinCategory[];
194
+ overview: BulletinOverview;
195
+ status: string;
196
+ }
197
+ export interface Bulletin {
198
+ bulletin_id: string;
199
+ id: string;
200
+ time: number;
201
+ message: BulletinMessage;
202
+ }
203
+ export declare enum BulletinType {
204
+ technical = "TECHNICAL",
205
+ plain = "PLAIN"
206
+ }
207
+ export {};
@@ -0,0 +1,367 @@
1
+ import type { 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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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: "BAR" | "BAND" | "LOG" | "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,4 @@
1
+ export declare const getBeginTime: () => Date;
2
+ export declare const getEndTime: () => Date;
3
+ export declare const beginTime: Date;
4
+ export declare const endTime: Date;
@@ -0,0 +1,21 @@
1
+ import type { 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 type { UseTranslationResponse } from 'react-i18next';
3
+ export declare const SPACE_WEATHER_NAMESPACE = "spaceweather";
4
+ export declare const initSpaceweatherI18n: () => void;
5
+ export declare const translateInTestsAndStories: (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 type { Credentials } from '@opengeoweb/authentication';
2
+ import type { 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 type { 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 type { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
2
+ import type { FieldValues, UseFormSetValue } from 'react-hook-form';
3
+ import type { 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 {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ToggleThemeButton: React.FC;