@opengeoweb/warnings 14.4.0 → 14.5.1
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/index.esm.js +7699 -7110
- package/package.json +12 -12
- package/src/index.d.ts +1 -1
- package/src/lib/Warnings.stories.d.ts +1 -10
- package/src/lib/api/api-utils.d.ts +1 -1
- package/src/lib/api/aviation-api/api.d.ts +3 -3
- package/src/lib/api/aviation-api/hooks.d.ts +1 -1
- package/src/lib/api/aviation-api/queryOptions.d.ts +2 -2
- package/src/lib/api/warning-api/api.d.ts +4 -4
- package/src/lib/api/warning-api/hooks.d.ts +5 -5
- package/src/lib/components/AreaObjectLoader/AreaObjectFilter.d.ts +1 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +6 -6
- package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +5 -4
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +4 -4
- package/src/lib/components/DrawingTool/DrawingToolConnect.d.ts +3 -3
- package/src/lib/components/DrawingTool/DrawingToolDialog.d.ts +3 -3
- package/src/lib/components/DrawingTool/DrawingToolMapButtonConnect.d.ts +2 -2
- package/src/lib/components/DrawingTool/useObjectDrawDialogAction.d.ts +3 -3
- package/src/lib/components/DrawingToolForm/DrawingToolForm.d.ts +4 -4
- package/src/lib/components/DrawingToolForm/DrawingToolFormConnect.d.ts +1 -1
- package/src/lib/components/DrawingToolForm/DrawingToolFormContents.d.ts +3 -3
- package/src/lib/components/FilterList/ExpandableFilterChip.stories.d.ts +4 -3
- package/src/lib/components/FilterList/filter-styles.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/AreaList/AreaList.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/AssignedAreas/AssignedAreas.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsAvatar.d.ts +2 -2
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.d.ts +2 -2
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsForm.stories.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/MaritimeWarningsFormConnect.stories.d.ts +2 -2
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningList.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/WarningList/WarningListSelect.d.ts +2 -2
- package/src/lib/components/MaritimeWarningsForm/testUtils.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/useConfirmDeleteDialog.d.ts +2 -2
- package/src/lib/components/MaritimeWarningsForm/useFilterChipSelect.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/useMaritimeWarningsFormState.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/utils.d.ts +2 -2
- package/src/lib/components/ObjectManager/ConfirmDeleteDialog.d.ts +1 -1
- package/src/lib/components/ObjectManager/ObjectManager.d.ts +4 -4
- package/src/lib/components/ObjectManager/ObjectManager.stories.d.ts +1 -1
- package/src/lib/components/ObjectManager/ObjectManagerConnect.d.ts +1 -1
- package/src/lib/components/ObjectManager/ObjectManagerMapButtonConnect.d.ts +1 -1
- package/src/lib/components/ObjectManager/Objects.d.ts +2 -2
- package/src/lib/components/Providers/Providers.d.ts +3 -3
- package/src/lib/components/PublicWarningList/ConfirmWarningDialog.d.ts +1 -1
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.d.ts +1 -1
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.stories.d.ts +1 -1
- package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +1 -1
- package/src/lib/components/PublicWarningList/WarningListHeaderContent.d.ts +1 -1
- package/src/lib/components/PublicWarningList/WarningListItem.d.ts +3 -3
- package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +4 -3
- package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +2 -2
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +2 -2
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +2 -2
- package/src/lib/components/PublicWarningsForm/ProbabilityField/ProbabilityField.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +9 -9
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +4 -4
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.stories.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnectErrors.stories.d.ts +9 -1
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +2 -2
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +2 -2
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +5 -5
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +4 -3
- package/src/lib/components/PublicWarningsFormDialog/WarningsAvatar.d.ts +2 -2
- package/src/lib/components/WarningsMapView/WarningsMapView.d.ts +3 -3
- package/src/lib/store/publicWarningForm/listener.d.ts +1 -1
- package/src/lib/store/publicWarningForm/reducer.d.ts +5 -5
- package/src/lib/store/publicWarningForm/selectors.d.ts +2 -2
- package/src/lib/store/publicWarningForm/types.d.ts +1 -1
- package/src/lib/store/publicWarnings/listener.d.ts +1 -1
- package/src/lib/store/publicWarnings/reducer.d.ts +4 -4
- package/src/lib/store/publicWarnings/selectors.d.ts +3 -3
- package/src/lib/store/publicWarnings/types.d.ts +3 -3
- package/src/lib/store/store.d.ts +4 -4
- package/src/lib/store/types.d.ts +4 -4
- package/src/lib/store/warningsDrawings/reducer.d.ts +2 -2
- package/src/lib/store/warningsDrawings/selectors.d.ts +2 -2
- package/src/lib/store/warningsDrawings/types.d.ts +1 -1
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +1 -1
- package/src/lib/storybookUtils/storyComponents.d.ts +0 -2
- package/src/lib/storybookUtils/testUtils.d.ts +2 -2
- package/src/lib/utils/fakeApi/index.d.ts +3 -3
- package/src/lib/utils/fakeSigmetAirmet.d.ts +1 -1
- package/src/lib/utils/i18n.d.ts +1 -1
- package/src/lib/utils/sig-airmet-util.d.ts +5 -3
- package/src/lib/utils/warningUtils.d.ts +4 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { FormError } from '../../store/publicWarningForm/reducer';
|
|
7
|
-
import { Area, PublicWarningDetail, WarningType } from '../../store/publicWarningForm/types';
|
|
8
|
-
import { BaseDrawingListItem, DrawingListItem } from '../../store/warningsDrawings/types';
|
|
9
|
-
import { WarningLevel } from './LevelField';
|
|
1
|
+
import type { FeatureCollection, GeoJsonProperties, Geometry } from 'geojson';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { AirmetFromBackend, SigmetFromBackend } from '@opengeoweb/api';
|
|
4
|
+
import type { AviationProduct, FormMode, ProductStatus } from '@opengeoweb/sigmet-airmet';
|
|
5
|
+
import type { MapPreset } from '@opengeoweb/store';
|
|
6
|
+
import type { FormError } from '../../store/publicWarningForm/reducer';
|
|
7
|
+
import type { Area, PublicWarningDetail, WarningType } from '../../store/publicWarningForm/types';
|
|
8
|
+
import type { BaseDrawingListItem, DrawingListItem } from '../../store/warningsDrawings/types';
|
|
9
|
+
import type { WarningLevel } from './LevelField';
|
|
10
10
|
export declare const useScrollTopOnError: (error: FormError) => React.RefObject<HTMLDivElement>;
|
|
11
11
|
export declare const getEmptyPublicWarning: () => PublicWarningDetail;
|
|
12
12
|
export declare const getFormData: (publicWarningsDetails: PublicWarningDetail | undefined, object?: DrawingListItem) => FormData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AviationProduct, FormMode } from '@opengeoweb/sigmet-airmet';
|
|
3
|
-
import { MapPreset } from '@opengeoweb/store';
|
|
4
|
-
import { WarningType } from '../../store/publicWarningForm/types';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AviationProduct, FormMode } from '@opengeoweb/sigmet-airmet';
|
|
3
|
+
import type { MapPreset } from '@opengeoweb/store';
|
|
4
|
+
import type { WarningType } from '../../store/publicWarningForm/types';
|
|
5
5
|
export interface PublicWarningsFormConnectProps {
|
|
6
6
|
editor?: string;
|
|
7
7
|
selectedAviationProduct?: AviationProduct & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
4
|
tags: string[];
|
|
@@ -14,3 +14,11 @@ export declare const SaveAndPublishError: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
export declare const SigmetPublishConflict409: {
|
|
18
|
+
(): React.ReactElement;
|
|
19
|
+
parameters: {
|
|
20
|
+
msw: {
|
|
21
|
+
handlers: import("msw").HttpHandler[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export declare const VALID_FROM_MAX_HOURS_AFTER_CURRENT = 192;
|
|
4
4
|
export declare const VALID_UNTIL_DEFAULT_OFFSET = 6;
|
|
5
5
|
export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export declare const VALID_UNTIL_MAX_HOURS_AFTER_CURRENT = 192;
|
|
4
4
|
export declare const VALID_UNTIL_MIN_HOURS_AFTER_VALID_FROM = 1;
|
|
5
5
|
export declare const isValueBeforeCurrentTime: (value: string, t: TFunction) => boolean | string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
|
|
3
|
-
import { AviationProduct } from '@opengeoweb/sigmet-airmet';
|
|
4
|
-
import { uiTypes } from '@opengeoweb/store';
|
|
5
|
-
import { WarningType } from '../../store/publicWarningForm/types';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
|
|
3
|
+
import type { AviationProduct } from '@opengeoweb/sigmet-airmet';
|
|
4
|
+
import type { uiTypes } from '@opengeoweb/store';
|
|
5
|
+
import type { WarningType } from '../../store/publicWarningForm/types';
|
|
6
6
|
export interface PublicWarningsFormDialogProps {
|
|
7
7
|
bounds?: string;
|
|
8
8
|
onClose: () => void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { ConfirmationOptions, Position } from '@opengeoweb/shared';
|
|
4
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
5
|
+
import type { MapPreset } from '@opengeoweb/store';
|
|
5
6
|
export declare const warningFormConfirmationOptions: (t: TFunction) => ConfirmationOptions;
|
|
6
7
|
export declare const isAlreadyEdited: (publicWarningEditor: string | undefined, username: string | undefined) => boolean;
|
|
7
8
|
export declare const PublicWarningsFormDialogConnect: React.FC<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { MapPreset } from '@opengeoweb/store';
|
|
1
|
+
import type { FeatureCollection } from 'geojson';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { MapPreset } from '@opengeoweb/store';
|
|
4
4
|
interface WarningsMapViewProps {
|
|
5
5
|
geojsonFeature?: FeatureCollection | undefined;
|
|
6
6
|
defaultMapPreset?: MapPreset;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WarningModuleStore } from '../types';
|
|
1
|
+
import type { WarningModuleStore } from '../types';
|
|
2
2
|
export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AlertColor } from '@mui/material';
|
|
2
|
-
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import type { AlertColor } from '@mui/material';
|
|
2
|
+
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
+
import type { Area, Warning, WarningType } from './types';
|
|
4
|
+
import type { WarningLevel } from '../../components/PublicWarningsForm/LevelField';
|
|
5
|
+
import type { DrawingListItem } from '../warningsDrawings/types';
|
|
6
6
|
export type FormAction = '' | 'saving' | 'publishing' | 'readonly' | 'edit' | 'amending' | 'cancel';
|
|
7
7
|
export interface FormError {
|
|
8
8
|
severity?: AlertColor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WarningModuleStore } from '../types';
|
|
2
|
-
import { WarningFormState } from './reducer';
|
|
1
|
+
import type { WarningModuleStore } from '../types';
|
|
2
|
+
import type { WarningFormState } from './reducer';
|
|
3
3
|
export declare const selectPublicWarningState: (store: WarningModuleStore) => WarningFormState;
|
|
4
4
|
export declare const getPublicWarningObject: ((state: WarningModuleStore) => import("../warningsDrawings/types").DrawingListItem | undefined) & {
|
|
5
5
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Airmet, CancelAirmet, CancelSigmet, ProductStatus, Sigmet } from '@opengeoweb/api';
|
|
1
|
+
import type { Airmet, CancelAirmet, CancelSigmet, ProductStatus, Sigmet } from '@opengeoweb/api';
|
|
2
2
|
export interface Area {
|
|
3
3
|
objectName: string;
|
|
4
4
|
geoJSON: GeoJSON.FeatureCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WarningModuleStore } from '../types';
|
|
1
|
+
import type { WarningModuleStore } from '../types';
|
|
2
2
|
export declare const getLastUpdatedTimeFormatted: () => string;
|
|
3
3
|
export declare const publicWarningsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { PublicWarningsState } from './types';
|
|
3
|
+
import type { FilterState } from '../../components/FilterList/filter-hooks';
|
|
4
|
+
import type { Warning } from '../publicWarningForm/types';
|
|
5
5
|
export declare const publicWarningsAdapter: import("@reduxjs/toolkit").EntityAdapter<Warning, string>;
|
|
6
6
|
export declare const initialState: PublicWarningsState;
|
|
7
7
|
export declare const publicWarningsReducer: import("redux").Reducer<PublicWarningsState>, publicWarningActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PublicWarningsState } from './types';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { PublicWarningsState } from './types';
|
|
2
|
+
import type { FilterState } from '../../components/FilterList/filter-hooks';
|
|
3
|
+
import type { WarningModuleStore } from '../types';
|
|
4
4
|
export declare const getPublicWarningsStore: (store: WarningModuleStore) => PublicWarningsState;
|
|
5
5
|
export declare const selectAllPublicWarnings: (state: WarningModuleStore) => import("../publicWarningForm/types").Warning[];
|
|
6
6
|
export declare const isPublicWarningsLoading: ((state: WarningModuleStore) => boolean) & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
import type { FilterState } from '../../components/FilterList/filter-hooks';
|
|
3
|
+
import type { Warning } from '../publicWarningForm/types';
|
|
4
4
|
export interface FilterTranslation {
|
|
5
5
|
translationKey: string;
|
|
6
6
|
key: string;
|
package/src/lib/store/store.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { WarningModuleStore } from './types';
|
|
1
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
2
|
+
import type { SnackbarModuleStore } from '@opengeoweb/snackbar';
|
|
3
|
+
import type { DrawtoolModuleStore, UIModuleState, WebMapStateModuleState } from '@opengeoweb/store';
|
|
4
|
+
import type { WarningModuleStore } from './types';
|
|
5
5
|
export declare const warningsReducersMap: {
|
|
6
6
|
webmap: import("redux").Reducer<import("dist/libs/store/src/store/map/types").WebMapState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").WebMapState>;
|
|
7
7
|
layers: import("redux").Reducer<import("dist/libs/store/src/store/map/types").LayerState, import("redux").UnknownAction, import("dist/libs/store/src/store/map/types").LayerState>;
|
package/src/lib/store/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CoreAppStore } from '@opengeoweb/store';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { CoreAppStore } from '@opengeoweb/store';
|
|
2
|
+
import type { WarningFormState } from './publicWarningForm/reducer';
|
|
3
|
+
import type { PublicWarningsState } from './publicWarnings/types';
|
|
4
|
+
import type { DrawState } from './warningsDrawings/types';
|
|
5
5
|
export interface WarningModuleStore extends CoreAppStore {
|
|
6
6
|
drawings?: DrawState;
|
|
7
7
|
publicWarningForm?: WarningFormState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
|
|
1
|
+
import type { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
+
import type { DrawItem, DrawState, SetDrawValuesPayload, SubmitDrawValuesPayload } from './types';
|
|
3
3
|
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawItem, string>;
|
|
4
4
|
export declare const initialState: DrawState;
|
|
5
5
|
export declare const warningsDrawingsReducer: import("redux").Reducer<DrawState>, warningsDrawingsActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DrawState } from './types';
|
|
2
|
-
import { WarningModuleStore } from '../types';
|
|
1
|
+
import type { DrawState } from './types';
|
|
2
|
+
import type { WarningModuleStore } from '../types';
|
|
3
3
|
export declare const getDrawStore: (store: WarningModuleStore) => DrawState;
|
|
4
4
|
export declare const selectDrawByInstanceId: (state: WarningModuleStore, id: string) => {
|
|
5
5
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Airmet, CancelAirmet, CancelSigmet, Sigmet } from '@opengeoweb/sigmet-airmet';
|
|
2
|
-
import { PublicWarning } from '../store/publicWarningForm/types';
|
|
1
|
+
import type { Airmet, CancelAirmet, CancelSigmet, Sigmet } from '@opengeoweb/sigmet-airmet';
|
|
2
|
+
import type { PublicWarning } from '../store/publicWarningForm/types';
|
|
3
3
|
export declare const testGeoJSON: GeoJSON.FeatureCollection;
|
|
4
4
|
export declare function fakeErrorRequest<ReturnType>(error: string): Promise<ReturnType>;
|
|
5
5
|
export declare const fakePostError = "2 validation errors for Request\nbody -> warningDetail -> phenomenon\n value is not a valid enumeration member; permitted: 'wind', 'fog', 'thunderstorm', 'snowIce', 'rain', 'highTemp', 'funnelCloud', 'lowTemp', 'coastalEvent' (type=type_error.enum; enum_values=[<PhenomenonEnum.WIND: 'wind'>, <PhenomenonEnum.FOG: 'fog'>, <PhenomenonEnum.THUNDERSTORM: 'thunderstorm'>, <PhenomenonEnum.SNOW_ICE: 'snowIce'>, <PhenomenonEnum.RAIN: 'rain'>, <PhenomenonEnum.HIGH_TEMP: 'highTemp'>, <PhenomenonEnum.FUNNEL_CLD: 'funnelCloud'>, <PhenomenonEnum.LOW_TEMP: 'lowTemp'>, <PhenomenonEnum.COASTAL_EVENT: 'coastalEvent'>])\nbody -> warningDetail -> level\n value is not a valid enumeration member; permitted: 'moderate', 'severe', 'extreme' (type=type_error.enum; enum_values=[<LevelEnum.MODERATE: 'moderate'>, <LevelEnum.SEVERE: 'severe'>, <LevelEnum.EXTREME: 'extreme'>])";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RequestHandler } from 'msw';
|
|
2
|
-
import { SigmetFromBackend } from '@opengeoweb/api';
|
|
3
|
-
import type { DrawingFromBE, DrawingListItem } from '../../store/warningsDrawings/types';
|
|
1
|
+
import type { RequestHandler } from 'msw';
|
|
2
|
+
import type { SigmetFromBackend } from '@opengeoweb/api';
|
|
4
3
|
import type { AirmetWarning, MaritimeWarning, PublicWarning, SigmetWarning, Warning } from '../../store/publicWarningForm/types';
|
|
4
|
+
import type { DrawingFromBE, DrawingListItem } from '../../store/warningsDrawings/types';
|
|
5
5
|
export declare const newSigmet: SigmetFromBackend;
|
|
6
6
|
declare const drawingList: DrawingListItem[];
|
|
7
7
|
declare const drawingsListFullContent: DrawingFromBE[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SigmetFromBackend, AirmetFromBackend } from '@opengeoweb/api';
|
|
1
|
+
import type { SigmetFromBackend, AirmetFromBackend } from '@opengeoweb/api';
|
|
2
2
|
export declare const fakeSigmetInWarningList: SigmetFromBackend[];
|
|
3
3
|
export declare const fakeAirmetInWarningList: AirmetFromBackend[];
|
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
|
-
import { UseTranslationResponse } from 'react-i18next';
|
|
2
|
+
import type { UseTranslationResponse } from 'react-i18next';
|
|
3
3
|
export declare const WARN_NAMESPACE = "warn";
|
|
4
4
|
export declare const initWarnI18n: () => void;
|
|
5
5
|
export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { AirmetFromBackend, CancelAirmet, CancelSigmet,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { AirmetFromBackend, CancelAirmet, CancelSigmet, SigmetFromBackend } from '@opengeoweb/api';
|
|
2
|
+
import { ProductStatus } from '@opengeoweb/api';
|
|
3
|
+
import type { AviationProduct, ProductConfig } from '@opengeoweb/sigmet-airmet';
|
|
4
|
+
import type { Warning, AviationWarningDetails, AirmetWarning, SigmetWarning } from '../store/publicWarningForm/types';
|
|
5
|
+
import { PublicWarningStatus } from '../store/publicWarningForm/types';
|
|
4
6
|
export declare function isCancelAirmet(warningDetail: AviationWarningDetails): warningDetail is CancelAirmet;
|
|
5
7
|
export declare function isCancelSigmet(warningDetail: AviationWarningDetails): warningDetail is CancelSigmet;
|
|
6
8
|
export declare const flattenPublicWarning: (publicWarning: Warning) => Partial<AviationWarningDetails>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import type { PickedFilterState, OptionKey } from '../components/FilterList/filter-hooks';
|
|
3
|
+
import { PublicWarningStatus } from '../store/publicWarningForm/types';
|
|
4
|
+
import type { Warning } from '../store/publicWarningForm/types';
|
|
4
5
|
export declare const ERROR_NOT_FOUND = "Request failed with status code 400";
|
|
5
6
|
export declare const MOCK_USERNAME = "user.name";
|
|
6
7
|
interface OverflowCheckResult {
|