@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,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
3
|
+
import NotificationRow from './NotificationRow';
|
|
4
|
+
declare const meta: Meta<typeof NotificationRow>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof NotificationRow>;
|
|
7
|
+
export declare const Component: Story;
|
|
8
|
+
export declare const NotificationRowDummyDemo: () => React.ReactElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SWEvent } from '../../types';
|
|
3
|
+
interface NotificationTabsProps {
|
|
4
|
+
activeTab: string;
|
|
5
|
+
newNotifications: SWEvent[];
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const NotificationTabs: React.FC<NotificationTabsProps>;
|
|
9
|
+
export default NotificationTabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Notifications
|
|
4
|
+
* View incoming notifications and issue new notifications following the notification lifecycle
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ``` <Notifications /> ```
|
|
8
|
+
*/
|
|
9
|
+
declare const Notifications: React.FC;
|
|
10
|
+
export default Notifications;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
3
|
+
import Notifications from './Notifications';
|
|
4
|
+
declare const meta: Meta<typeof Notifications>;
|
|
5
|
+
export default meta;
|
|
6
|
+
export declare const NotificationsDemoDummyActions: () => React.ReactElement;
|
|
7
|
+
type Story = StoryObj<typeof NotificationsListSnapshot>;
|
|
8
|
+
interface ThemeProps {
|
|
9
|
+
width?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const NotificationsListSnapshot: ({ width, }: ThemeProps) => React.ReactElement;
|
|
12
|
+
export declare const NotificationsListSnapshotLight: Story;
|
|
13
|
+
export declare const NotificationsListSnapshotDark: Story;
|
|
14
|
+
export declare const NotificationsListSmallSnapshotLight: Story;
|
|
15
|
+
export declare const NotificationsListSmallSnapshotDark: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Providers';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Parameters } from '../../types';
|
|
3
|
+
interface GraphErrorsProps {
|
|
4
|
+
data: {
|
|
5
|
+
parameters: (Parameters | undefined)[];
|
|
6
|
+
error: string;
|
|
7
|
+
}[];
|
|
8
|
+
graphHeight: number;
|
|
9
|
+
chartHeight: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const GraphErrors: React.FC<GraphErrorsProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { GraphItem } from './types';
|
|
3
|
+
interface GraphsProps {
|
|
4
|
+
data: GraphItem[];
|
|
5
|
+
beginTime: Date;
|
|
6
|
+
endTime: Date;
|
|
7
|
+
graphHeight: number;
|
|
8
|
+
chartHeight: number;
|
|
9
|
+
onUserAction: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Graphs: React.FC<GraphsProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest-canvas-mock';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
3
|
+
import { Graphs } from './Graphs';
|
|
4
|
+
declare const meta: Meta<typeof Graphs>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Graphs>;
|
|
7
|
+
export declare const Component: Story;
|
|
8
|
+
export declare const GraphsDummyData: () => React.ReactElement;
|
|
9
|
+
export declare const GraphsLightTheme: Story;
|
|
10
|
+
export declare const GraphsDarkTheme: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest-canvas-mock';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import TimeSeries from './TimeSeries';
|
|
3
|
+
declare const meta: Meta<typeof TimeSeries>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TimeSeries>;
|
|
6
|
+
export declare const TimeSeriesDummyData: Story;
|
|
7
|
+
export declare const TimeSeriesWithAllErrors: Story;
|
|
8
|
+
export declare const TimeSeriesWithTwoErrors: Story;
|
|
9
|
+
export declare const TimeSeriesLoading: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { StreamResponse } from '../../types';
|
|
2
|
+
export declare const createStreamDict: (streams: StreamResponse[]) => Record<string, StreamResponse>;
|
|
3
|
+
export declare const useUserSleeping: (delay?: number) => [boolean, () => void];
|
|
4
|
+
export declare const getGraphHeightInPx: () => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ChartResponseType, IncomingData, Dataset } from './types';
|
|
2
|
+
export declare const createDataset: (data: IncomingData["data"]) => Dataset;
|
|
3
|
+
export declare const createSeries: (response: ChartResponseType[]) => Dataset[];
|
|
4
|
+
export declare const mirrorSeries: (dataset: Dataset) => Dataset;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TimeSeries } from './TimeSeries';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const curveColors: {
|
|
2
|
+
kpIndex: string;
|
|
3
|
+
kpIndexForecast: string;
|
|
4
|
+
magneticFieldBt: string;
|
|
5
|
+
magneticFieldBz: string;
|
|
6
|
+
lineSolarXray: string;
|
|
7
|
+
lineSolarWindDensity: string;
|
|
8
|
+
lineSolarWindSpeed: string;
|
|
9
|
+
areaSolarWindSpeed: string;
|
|
10
|
+
lineSolarWindPressure: string;
|
|
11
|
+
areaSolarWindPressure: string;
|
|
12
|
+
markLines: string;
|
|
13
|
+
currentTime: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TimeseriesParams } from '../../types';
|
|
2
|
+
export type Dataset = (string | number | undefined)[][];
|
|
3
|
+
export type IncomingData = ChartResponseType['data'];
|
|
4
|
+
type GraphType = 'BAR' | 'BAND' | 'LOG' | 'AREA';
|
|
5
|
+
export interface GraphItem {
|
|
6
|
+
id: string;
|
|
7
|
+
params: TimeseriesParams[];
|
|
8
|
+
graphType: GraphType;
|
|
9
|
+
title: string;
|
|
10
|
+
yMinValue: number;
|
|
11
|
+
yMaxValue: number;
|
|
12
|
+
threshold?: {
|
|
13
|
+
title: string;
|
|
14
|
+
value: number | string;
|
|
15
|
+
color?: string;
|
|
16
|
+
}[];
|
|
17
|
+
columns: string[] | string[][];
|
|
18
|
+
tickValues?: (value: number) => number | string;
|
|
19
|
+
end?: string;
|
|
20
|
+
series: Dataset[];
|
|
21
|
+
}
|
|
22
|
+
export interface ChartResponseType {
|
|
23
|
+
data: {
|
|
24
|
+
data: {
|
|
25
|
+
source?: string;
|
|
26
|
+
timestamp?: string;
|
|
27
|
+
value?: number;
|
|
28
|
+
}[];
|
|
29
|
+
parameter?: string;
|
|
30
|
+
stream?: string;
|
|
31
|
+
unit?: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GridComponentOption, XAXisComponentOption, SeriesOption, YAXisComponentOption, DefaultLabelFormatterCallbackParams, TooltipComponentOption } from 'echarts';
|
|
2
|
+
import { GraphItem } from './types';
|
|
3
|
+
export declare const dateFormat = "MM-dd HH:mm";
|
|
4
|
+
export declare const TITLE_KP_FORECAST = "Kp Index Forecast";
|
|
5
|
+
export declare const TITLE_XRAY = "X-ray Solar Flux (W/m\u00B2)";
|
|
6
|
+
export declare const TTTLE_SOLAR_WIND_DENSITY = "Solar Wind Density (1/cm\u00B3)";
|
|
7
|
+
export declare const TITLE_SOLAR_WIND_SPEED = "Solar Wind Speed (km/s)";
|
|
8
|
+
export declare const TITLE_SOLAR_WIND_PRESSURE = "Solar Wind Pressure (nPa)";
|
|
9
|
+
export declare const CHART_LEFT_MARGIN = 32;
|
|
10
|
+
export declare const CHART_RIGHT_MARGIN = 52;
|
|
11
|
+
export declare const CHART_TOP_MARGIN = 20;
|
|
12
|
+
export declare const PLOT_TOP_MARGIN = 24;
|
|
13
|
+
export declare const CHART_BOTTOM_MARGIN = 48;
|
|
14
|
+
export declare const DATA_ZOOM_LABEL_WIDTH = 76;
|
|
15
|
+
export declare const config: GraphItem[];
|
|
16
|
+
export declare const getGrid: (data: GraphItem[], graphHeight: number) => GridComponentOption[];
|
|
17
|
+
export declare const getCurrentTimeMarkers: (data: GraphItem[]) => SeriesOption[];
|
|
18
|
+
export declare const getXAxis: (data: GraphItem[], beginTime: Date, endTime: Date) => XAXisComponentOption[];
|
|
19
|
+
export declare const getYAxis: (data: GraphItem[]) => YAXisComponentOption[];
|
|
20
|
+
export declare const getSeries: (data: GraphItem[]) => SeriesOption[];
|
|
21
|
+
export declare const getTooltipValue: (date: string, param: DefaultLabelFormatterCallbackParams) => string;
|
|
22
|
+
export declare const getTooltip: () => TooltipComponentOption;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {};
|