@opengeoweb/cap 9.28.1 → 9.29.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 (71) hide show
  1. package/index.esm.js +162 -159
  2. package/package.json +1 -1
  3. package/src/index.d.ts +4 -4
  4. package/src/lib/CapDemo.stories.d.ts +7 -7
  5. package/src/lib/components/CapMapAndList.integration.spec.d.ts +1 -1
  6. package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +34 -34
  7. package/src/lib/components/ComponentsLookUp/componentsLookUp.spec.d.ts +1 -1
  8. package/src/lib/components/ComponentsLookUp/index.d.ts +1 -1
  9. package/src/lib/components/GanttChart/Gantt.d.ts +40 -40
  10. package/src/lib/components/GanttChart/GanttModule.d.ts +7 -7
  11. package/src/lib/components/GanttChart/GanttModule.spec.d.ts +1 -1
  12. package/src/lib/components/GanttChart/GanttModule.stories.d.ts +6 -6
  13. package/src/lib/components/GanttChart/GanttReactWrapper.d.ts +37 -37
  14. package/src/lib/components/GanttChart/GanttWrapper.d.ts +9 -9
  15. package/src/lib/components/GanttChart/GanttWrapper.spec.d.ts +1 -1
  16. package/src/lib/components/GanttChart/GanttWrapper.stories.d.ts +8 -8
  17. package/src/lib/components/GanttChart/Task.d.ts +29 -29
  18. package/src/lib/components/GanttChart/ViewMode.d.ts +9 -9
  19. package/src/lib/components/GanttChart/mockTasks.d.ts +2 -2
  20. package/src/lib/components/GanttChart/utils.d.ts +5 -5
  21. package/src/lib/components/GanttChart/utils.spec.d.ts +1 -1
  22. package/src/lib/components/MapViewCap/MapViewCapConnect.d.ts +18 -18
  23. package/src/lib/components/MapViewCap/MapViewCapConnect.spec.d.ts +1 -1
  24. package/src/lib/components/MapViewCap/MapViewCapConnect.stories.d.ts +6 -6
  25. package/src/lib/components/MapViewCap/MapViewCapConnectWrapper.d.ts +17 -17
  26. package/src/lib/components/MapViewCap/MapViewCapConnectWrapper.spec.d.ts +1 -1
  27. package/src/lib/components/MapViewCap/index.d.ts +1 -1
  28. package/src/lib/components/Providers/Providers.d.ts +32 -32
  29. package/src/lib/components/Providers/index.d.ts +1 -1
  30. package/src/lib/components/WarningListCap/WarningListCap.d.ts +8 -8
  31. package/src/lib/components/WarningListCap/WarningListCap.spec.d.ts +1 -1
  32. package/src/lib/components/WarningListCap/WarningListCap.stories.d.ts +6 -6
  33. package/src/lib/components/WarningListCap/WarningListCapConnect.d.ts +7 -7
  34. package/src/lib/components/WarningListCap/WarningListCapConnectWrapper.d.ts +6 -6
  35. package/src/lib/components/WarningListCap/WarningListCapConnectWrapper.spec.d.ts +1 -1
  36. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCap.d.ts +7 -7
  37. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCap.spec.d.ts +1 -1
  38. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCap.stories.d.ts +6 -6
  39. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCapConnect.d.ts +8 -8
  40. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCapConnect.spec.d.ts +1 -1
  41. package/src/lib/components/WarningListCap/index.d.ts +1 -1
  42. package/src/lib/components/WarningListCap/types.d.ts +47 -47
  43. package/src/lib/components/types.d.ts +72 -72
  44. package/src/lib/index.d.ts +4 -4
  45. package/src/lib/store/config.d.ts +6 -6
  46. package/src/lib/store/index.d.ts +3 -3
  47. package/src/lib/store/mockStore.d.ts +21 -21
  48. package/src/lib/store/reducer.d.ts +13 -13
  49. package/src/lib/store/reducer.spec.d.ts +1 -1
  50. package/src/lib/store/selector.spec.d.ts +1 -1
  51. package/src/lib/store/selectors.d.ts +15 -15
  52. package/src/lib/store/types.d.ts +42 -42
  53. package/src/lib/store.d.ts +4 -4
  54. package/src/lib/utils/addColors.d.ts +2 -2
  55. package/src/lib/utils/addColors.spec.d.ts +1 -1
  56. package/src/lib/utils/addFeedAddressToCustomGeoJsonFeature.d.ts +2 -2
  57. package/src/lib/utils/addFeedAddressToCustomGeoJsonFeature.spec.d.ts +1 -1
  58. package/src/lib/utils/api.d.ts +20 -20
  59. package/src/lib/utils/api.spec.d.ts +1 -1
  60. package/src/lib/utils/fakeApi.d.ts +2 -2
  61. package/src/lib/utils/fakeApi.spec.d.ts +1 -1
  62. package/src/lib/utils/findEventIndexInLanguage.d.ts +10 -10
  63. package/src/lib/utils/findEventIndexInLanguage.spec.d.ts +1 -1
  64. package/src/lib/utils/highlightGeoJson.d.ts +3 -3
  65. package/src/lib/utils/highlightGeoJson.spec.d.ts +1 -1
  66. package/src/lib/utils/i18n.d.ts +5 -5
  67. package/src/lib/utils/mockAlert.d.ts +19 -19
  68. package/src/lib/utils/mockCapData.d.ts +6 -6
  69. package/src/lib/utils/mockGeoJson.d.ts +4 -4
  70. package/src/lib/utils/mockGeoJsonMultipleFeatures.d.ts +3 -3
  71. package/src/lib/utils/store.d.ts +2 -2
@@ -1,37 +1,37 @@
1
- import React from 'react';
2
- import { Task } from './Task';
3
- import { ViewMode } from './ViewMode';
4
- export declare const renderDate: (date: Date) => string;
5
- export declare const renderTime: (date: Date) => string;
6
- interface GanttReactWrapperProps {
7
- tasks: Task[];
8
- viewMode?: ViewMode;
9
- onTasksChange?: (tasks: Task[]) => void;
10
- onClick?: (task: Task) => void;
11
- onDateChange?: (task: Task, start: Date, end: Date) => void;
12
- onProgressChange?: (task: Task, progress: number) => void;
13
- onViewChange?: (mode: ViewMode) => void;
14
- }
15
- interface FrappeGanttState {
16
- viewMode: ViewMode;
17
- tasks: Task[];
18
- }
19
- export declare class GanttReactWrapper extends React.Component<GanttReactWrapperProps, FrappeGanttState> {
20
- private _target;
21
- private _svg;
22
- private _gantt;
23
- static defaultProps: {
24
- viewMode: ViewMode;
25
- onTasksChange: () => void;
26
- onClick: () => void;
27
- onDateChange: () => void;
28
- onProgressChange: () => void;
29
- onViewChange: () => void;
30
- };
31
- constructor(props: GanttReactWrapperProps);
32
- static getDerivedStateFromProps(nextProps: GanttReactWrapperProps): FrappeGanttState;
33
- componentDidMount(): void;
34
- componentDidUpdate(): void;
35
- render(): React.ReactElement;
36
- }
37
- export {};
1
+ import React from 'react';
2
+ import { Task } from './Task';
3
+ import { ViewMode } from './ViewMode';
4
+ export declare const renderDate: (date: Date) => string;
5
+ export declare const renderTime: (date: Date) => string;
6
+ interface GanttReactWrapperProps {
7
+ tasks: Task[];
8
+ viewMode?: ViewMode;
9
+ onTasksChange?: (tasks: Task[]) => void;
10
+ onClick?: (task: Task) => void;
11
+ onDateChange?: (task: Task, start: Date, end: Date) => void;
12
+ onProgressChange?: (task: Task, progress: number) => void;
13
+ onViewChange?: (mode: ViewMode) => void;
14
+ }
15
+ interface FrappeGanttState {
16
+ viewMode: ViewMode;
17
+ tasks: Task[];
18
+ }
19
+ export declare class GanttReactWrapper extends React.Component<GanttReactWrapperProps, FrappeGanttState> {
20
+ private _target;
21
+ private _svg;
22
+ private _gantt;
23
+ static defaultProps: {
24
+ viewMode: ViewMode;
25
+ onTasksChange: () => void;
26
+ onClick: () => void;
27
+ onDateChange: () => void;
28
+ onProgressChange: () => void;
29
+ onViewChange: () => void;
30
+ };
31
+ constructor(props: GanttReactWrapperProps);
32
+ static getDerivedStateFromProps(nextProps: GanttReactWrapperProps): FrappeGanttState;
33
+ componentDidMount(): void;
34
+ componentDidUpdate(): void;
35
+ render(): React.ReactElement;
36
+ }
37
+ export {};
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import { Task } from './Task';
3
- import { ViewMode } from './ViewMode';
4
- interface GantWrapperProps {
5
- tasks: Task[];
6
- defaultViewMode?: ViewMode;
7
- }
8
- declare const GantWrapper: React.FC<GantWrapperProps>;
9
- export default GantWrapper;
1
+ import React from 'react';
2
+ import { Task } from './Task';
3
+ import { ViewMode } from './ViewMode';
4
+ interface GantWrapperProps {
5
+ tasks: Task[];
6
+ defaultViewMode?: ViewMode;
7
+ }
8
+ declare const GantWrapper: React.FC<GantWrapperProps>;
9
+ export default GantWrapper;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const GanttDemo: () => React.ReactElement;
7
- export declare const GanttDemoDark: () => React.ReactElement;
8
- export declare const GanttDemoEmptyList: () => React.ReactElement;
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const GanttDemo: () => React.ReactElement;
7
+ export declare const GanttDemoDark: () => React.ReactElement;
8
+ export declare const GanttDemoEmptyList: () => React.ReactElement;
@@ -1,29 +1,29 @@
1
- export declare class Task {
2
- private _dependencies;
3
- id: string;
4
- name: string;
5
- start: string;
6
- end: string;
7
- _end: Date;
8
- _start: Date;
9
- severity: 'Minor' | 'Moderate' | 'Severe' | 'Extreme';
10
- title: string;
11
- description: string;
12
- author: string;
13
- area: string;
14
- phenomenon: string;
15
- constructor(options?: Partial<Task>);
16
- /**
17
- * Progress in percentage
18
- */
19
- private _progress;
20
- get progress(): number;
21
- set progress(value: number);
22
- /**
23
- * A css custom class for the task chart bar
24
- */
25
- custom_class?: string;
26
- setDependencies(value: string | string[]): void;
27
- set dependencies(value: string[] | string);
28
- get dependencies(): string[] | string;
29
- }
1
+ export declare class Task {
2
+ private _dependencies;
3
+ id: string;
4
+ name: string;
5
+ start: string;
6
+ end: string;
7
+ _end: Date;
8
+ _start: Date;
9
+ severity: 'Minor' | 'Moderate' | 'Severe' | 'Extreme';
10
+ title: string;
11
+ description: string;
12
+ author: string;
13
+ area: string;
14
+ phenomenon: string;
15
+ constructor(options?: Partial<Task>);
16
+ /**
17
+ * Progress in percentage
18
+ */
19
+ private _progress;
20
+ get progress(): number;
21
+ set progress(value: number);
22
+ /**
23
+ * A css custom class for the task chart bar
24
+ */
25
+ custom_class?: string;
26
+ setDependencies(value: string | string[]): void;
27
+ set dependencies(value: string[] | string);
28
+ get dependencies(): string[] | string;
29
+ }
@@ -1,9 +1,9 @@
1
- export declare enum ViewMode {
2
- Hour = "Hour",
3
- QuarterDay = "Quarter Day",
4
- HalfDay = "Half Day",
5
- Day = "Day",
6
- Week = "Week",
7
- Month = "Month",
8
- Year = "Year"
9
- }
1
+ export declare enum ViewMode {
2
+ Hour = "Hour",
3
+ QuarterDay = "Quarter Day",
4
+ HalfDay = "Half Day",
5
+ Day = "Day",
6
+ Week = "Week",
7
+ Month = "Month",
8
+ Year = "Year"
9
+ }
@@ -1,2 +1,2 @@
1
- import { Task } from './Task';
2
- export declare const tasks: Task[];
1
+ import { Task } from './Task';
2
+ export declare const tasks: Task[];
@@ -1,5 +1,5 @@
1
- import { CustomFeature } from '../types';
2
- import { Task } from './Task';
3
- export declare const convertSeverityToColorClass: (severity: Task['severity']) => string;
4
- export declare const getEndDateFromHeadline: (headline: string) => Date;
5
- export declare const convertFeaturesToTasks: (features: CustomFeature[]) => Task[];
1
+ import { CustomFeature } from '../types';
2
+ import { Task } from './Task';
3
+ export declare const convertSeverityToColorClass: (severity: Task['severity']) => string;
4
+ export declare const getEndDateFromHeadline: (headline: string) => Date;
5
+ export declare const convertFeaturesToTasks: (features: CustomFeature[]) => Task[];
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,18 +1,18 @@
1
- import React from 'react';
2
- import { InitialMapProps } from '@opengeoweb/core';
3
- import { CapPresets } from '../types';
4
- interface MapViewCapConnectProps {
5
- id?: string;
6
- title?: string;
7
- bbox?: {
8
- left: number;
9
- bottom: number;
10
- right: number;
11
- top: number;
12
- };
13
- srs?: string;
14
- capWarningPresets?: CapPresets;
15
- layers?: InitialMapProps['mapPreset']['layers'];
16
- }
17
- export declare const MapViewCapConnect: React.FC<MapViewCapConnectProps>;
18
- export {};
1
+ import React from 'react';
2
+ import { InitialMapProps } from '@opengeoweb/core';
3
+ import { CapPresets } from '../types';
4
+ interface MapViewCapConnectProps {
5
+ id?: string;
6
+ title?: string;
7
+ bbox?: {
8
+ left: number;
9
+ bottom: number;
10
+ right: number;
11
+ top: number;
12
+ };
13
+ srs?: string;
14
+ capWarningPresets?: CapPresets;
15
+ layers?: InitialMapProps['mapPreset']['layers'];
16
+ }
17
+ export declare const MapViewCapConnect: React.FC<MapViewCapConnectProps>;
18
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const MapViewCapConnectDemo: React.FC;
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const MapViewCapConnectDemo: React.FC;
@@ -1,17 +1,17 @@
1
- import React from 'react';
2
- import { InitialMapProps } from '@opengeoweb/core';
3
- interface MapViewCapConnectWrapperProps {
4
- id?: string;
5
- title?: string;
6
- bbox?: {
7
- left: number;
8
- bottom: number;
9
- right: number;
10
- top: number;
11
- };
12
- srs?: string;
13
- productConfigKey?: string;
14
- layers?: InitialMapProps['mapPreset']['layers'];
15
- }
16
- export declare const MapViewCapConnectWrapper: React.FC<MapViewCapConnectWrapperProps>;
17
- export {};
1
+ import React from 'react';
2
+ import { InitialMapProps } from '@opengeoweb/core';
3
+ interface MapViewCapConnectWrapperProps {
4
+ id?: string;
5
+ title?: string;
6
+ bbox?: {
7
+ left: number;
8
+ bottom: number;
9
+ right: number;
10
+ top: number;
11
+ };
12
+ srs?: string;
13
+ productConfigKey?: string;
14
+ layers?: InitialMapProps['mapPreset']['layers'];
15
+ }
16
+ export declare const MapViewCapConnectWrapper: React.FC<MapViewCapConnectWrapperProps>;
17
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export * from './MapViewCapConnect';
1
+ export * from './MapViewCapConnect';
@@ -1,32 +1,32 @@
1
- import React from 'react';
2
- import { Store } from '@reduxjs/toolkit';
3
- import { ThemeProviderProps } from '@opengeoweb/theme';
4
- import { Theme } from '@mui/material';
5
- import i18n from 'i18next';
6
- export declare const CapThemeWrapper: React.FC<ThemeProviderProps>;
7
- interface CapApiProviderProps {
8
- children: React.ReactNode;
9
- createApi?: () => void;
10
- }
11
- interface CapThemeStoreProviderProps {
12
- children?: React.ReactNode;
13
- theme?: Theme;
14
- store: Store;
15
- i18nInstance?: typeof i18n;
16
- }
17
- interface CapTranslationsWrapperProps {
18
- children?: React.ReactNode;
19
- i18nInstance?: typeof i18n;
20
- }
21
- /**
22
- * A Provider component which returns the Api Provider for the Cap library
23
- * @param children
24
- * @returns
25
- */
26
- export declare const CapApiProvider: React.FC<CapApiProviderProps>;
27
- export interface CapStoreProviderProps extends ThemeProviderProps {
28
- store: Store;
29
- }
30
- export declare const CapThemeStoreProvider: React.FC<CapThemeStoreProviderProps>;
31
- export declare const CapI18nProvider: React.FC<CapTranslationsWrapperProps>;
32
- export {};
1
+ import React from 'react';
2
+ import { Store } from '@reduxjs/toolkit';
3
+ import { ThemeProviderProps } from '@opengeoweb/theme';
4
+ import { Theme } from '@mui/material';
5
+ import i18n from 'i18next';
6
+ export declare const CapThemeWrapper: React.FC<ThemeProviderProps>;
7
+ interface CapApiProviderProps {
8
+ children: React.ReactNode;
9
+ createApi?: () => void;
10
+ }
11
+ interface CapThemeStoreProviderProps {
12
+ children?: React.ReactNode;
13
+ theme?: Theme;
14
+ store: Store;
15
+ i18nInstance?: typeof i18n;
16
+ }
17
+ interface CapTranslationsWrapperProps {
18
+ children?: React.ReactNode;
19
+ i18nInstance?: typeof i18n;
20
+ }
21
+ /**
22
+ * A Provider component which returns the Api Provider for the Cap library
23
+ * @param children
24
+ * @returns
25
+ */
26
+ export declare const CapApiProvider: React.FC<CapApiProviderProps>;
27
+ export interface CapStoreProviderProps extends ThemeProviderProps {
28
+ store: Store;
29
+ }
30
+ export declare const CapThemeStoreProvider: React.FC<CapThemeStoreProviderProps>;
31
+ export declare const CapI18nProvider: React.FC<CapTranslationsWrapperProps>;
32
+ export {};
@@ -1 +1 @@
1
- export * from './Providers';
1
+ export * from './Providers';
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- import { CapPresets } from '../types';
3
- interface WarningListCapProps {
4
- capWarningPresets?: CapPresets;
5
- alertIds: string[];
6
- }
7
- export declare const WarningListCap: React.FC<WarningListCapProps>;
8
- export {};
1
+ import React from 'react';
2
+ import { CapPresets } from '../types';
3
+ interface WarningListCapProps {
4
+ capWarningPresets?: CapPresets;
5
+ alertIds: string[];
6
+ }
7
+ export declare const WarningListCap: React.FC<WarningListCapProps>;
8
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const WarningListCapDemo: React.FC;
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const WarningListCapDemo: React.FC;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import { CapPresets } from '../types';
3
- interface WarningListCapConnectProps {
4
- capWarningPresets: CapPresets;
5
- }
6
- export declare const WarningListCapConnect: React.FC<WarningListCapConnectProps>;
7
- export {};
1
+ import React from 'react';
2
+ import { CapPresets } from '../types';
3
+ interface WarningListCapConnectProps {
4
+ capWarningPresets: CapPresets;
5
+ }
6
+ export declare const WarningListCapConnect: React.FC<WarningListCapConnectProps>;
7
+ export {};
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- interface WarningListCapConnectWrapperProps {
3
- productConfigKey: string;
4
- }
5
- export declare const WarningListCapConnectWrapper: React.FC<WarningListCapConnectWrapperProps>;
6
- export {};
1
+ import React from 'react';
2
+ interface WarningListCapConnectWrapperProps {
3
+ productConfigKey: string;
4
+ }
5
+ export declare const WarningListCapConnectWrapper: React.FC<WarningListCapConnectWrapperProps>;
6
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- export interface WarningListRowCapProps {
3
- event: string;
4
- severity: string;
5
- expires: string;
6
- }
7
- export declare const WarningListRowCap: React.FC<WarningListRowCapProps>;
1
+ import React from 'react';
2
+ export interface WarningListRowCapProps {
3
+ event: string;
4
+ severity: string;
5
+ expires: string;
6
+ }
7
+ export declare const WarningListRowCap: React.FC<WarningListRowCapProps>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const WarningListRowCapDemo: React.FC;
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const WarningListRowCapDemo: React.FC;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- import { CapPresets } from '../../types';
3
- interface WarningListRowCapConnectProps {
4
- alertId: string;
5
- capWarningPresets: CapPresets;
6
- }
7
- export declare const WarningListRowCapConnect: React.FC<WarningListRowCapConnectProps>;
8
- export {};
1
+ import React from 'react';
2
+ import { CapPresets } from '../../types';
3
+ interface WarningListRowCapConnectProps {
4
+ alertId: string;
5
+ capWarningPresets: CapPresets;
6
+ }
7
+ export declare const WarningListRowCapConnect: React.FC<WarningListRowCapConnectProps>;
8
+ export {};
@@ -1 +1 @@
1
- export * from './WarningListCap';
1
+ export * from './WarningListCap';
@@ -1,47 +1,47 @@
1
- export interface CapData {
2
- alert: {
3
- identifier: string;
4
- feedAddress: string;
5
- sent: string;
6
- status: string;
7
- msgType: string;
8
- scope: string;
9
- code: string[];
10
- references: string;
11
- info: Info[];
12
- };
13
- }
14
- interface Info {
15
- language: string;
16
- category: string;
17
- event: string;
18
- urgency: string;
19
- severity: string;
20
- certainty: string;
21
- eventCode: {
22
- valueName: string;
23
- value: string;
24
- };
25
- onset: string;
26
- expires: string;
27
- senderName: string;
28
- headline: string;
29
- description: string;
30
- web: string;
31
- contact: string;
32
- parameter: Parameter[];
33
- area: Area | Area[];
34
- }
35
- interface Parameter {
36
- valueName: string;
37
- value: number | string;
38
- }
39
- interface Area {
40
- areaDesc: string;
41
- polygon: string | string[];
42
- geocode: {
43
- valueName: string;
44
- value: string | number;
45
- };
46
- }
47
- export {};
1
+ export interface CapData {
2
+ alert: {
3
+ identifier: string;
4
+ feedAddress: string;
5
+ sent: string;
6
+ status: string;
7
+ msgType: string;
8
+ scope: string;
9
+ code: string[];
10
+ references: string;
11
+ info: Info[];
12
+ };
13
+ }
14
+ interface Info {
15
+ language: string;
16
+ category: string;
17
+ event: string;
18
+ urgency: string;
19
+ severity: string;
20
+ certainty: string;
21
+ eventCode: {
22
+ valueName: string;
23
+ value: string;
24
+ };
25
+ onset: string;
26
+ expires: string;
27
+ senderName: string;
28
+ headline: string;
29
+ description: string;
30
+ web: string;
31
+ contact: string;
32
+ parameter: Parameter[];
33
+ area: Area | Area[];
34
+ }
35
+ interface Parameter {
36
+ valueName: string;
37
+ value: number | string;
38
+ }
39
+ interface Area {
40
+ areaDesc: string;
41
+ polygon: string | string[];
42
+ geocode: {
43
+ valueName: string;
44
+ value: string | number;
45
+ };
46
+ }
47
+ export {};