@opengeoweb/warnings 9.36.0 → 9.37.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/index.esm.js
CHANGED
|
@@ -6931,204 +6931,6 @@ var warningListJSON = [
|
|
|
6931
6931
|
}
|
|
6932
6932
|
];
|
|
6933
6933
|
|
|
6934
|
-
var sigmetListJSON = [
|
|
6935
|
-
{
|
|
6936
|
-
id: "57eaf6c8-a247-11ef-ac05-12e0cc025418",
|
|
6937
|
-
lastUpdatedTime: "2024-11-14T05:14:37",
|
|
6938
|
-
productStatus: "DRAFT",
|
|
6939
|
-
warningDetail: {
|
|
6940
|
-
areas: [
|
|
6941
|
-
{
|
|
6942
|
-
geoJSON: {
|
|
6943
|
-
features: [
|
|
6944
|
-
{
|
|
6945
|
-
geometry: {
|
|
6946
|
-
type: "Polygon",
|
|
6947
|
-
coordinates: [
|
|
6948
|
-
[
|
|
6949
|
-
[
|
|
6950
|
-
10,
|
|
6951
|
-
20
|
|
6952
|
-
],
|
|
6953
|
-
[
|
|
6954
|
-
15,
|
|
6955
|
-
25
|
|
6956
|
-
],
|
|
6957
|
-
[
|
|
6958
|
-
20,
|
|
6959
|
-
20
|
|
6960
|
-
],
|
|
6961
|
-
[
|
|
6962
|
-
10,
|
|
6963
|
-
20
|
|
6964
|
-
]
|
|
6965
|
-
]
|
|
6966
|
-
]
|
|
6967
|
-
},
|
|
6968
|
-
properties: {
|
|
6969
|
-
selectionType: "fir",
|
|
6970
|
-
stroke: "#0075a9",
|
|
6971
|
-
"stroke-width": 1.5,
|
|
6972
|
-
"stroke-opacity": 1,
|
|
6973
|
-
fill: "#0075a9",
|
|
6974
|
-
"fill-opacity": 0.4
|
|
6975
|
-
},
|
|
6976
|
-
type: "Feature"
|
|
6977
|
-
}
|
|
6978
|
-
],
|
|
6979
|
-
type: "FeatureCollection"
|
|
6980
|
-
},
|
|
6981
|
-
objectName: "ENOB"
|
|
6982
|
-
}
|
|
6983
|
-
],
|
|
6984
|
-
descriptionOriginal: "",
|
|
6985
|
-
descriptionTranslation: "",
|
|
6986
|
-
firName: "BODOE OCEANIC FIR",
|
|
6987
|
-
incident: "-1",
|
|
6988
|
-
level: "SIG",
|
|
6989
|
-
phenomenon: "EMBD_TSGR",
|
|
6990
|
-
probability: "0",
|
|
6991
|
-
validFrom: "2024-11-14T05:30:14Z",
|
|
6992
|
-
validUntil: "2024-11-14T07:30:14Z"
|
|
6993
|
-
}
|
|
6994
|
-
},
|
|
6995
|
-
{
|
|
6996
|
-
id: "fc4c0002-8d32-11ef-888b-ee87a1644661",
|
|
6997
|
-
lastUpdatedTime: "2024-11-14T05:14:06",
|
|
6998
|
-
productStatus: "EXPIRED",
|
|
6999
|
-
warningDetail: {
|
|
7000
|
-
areas: [
|
|
7001
|
-
{
|
|
7002
|
-
geoJSON: null,
|
|
7003
|
-
objectName: "EFIN"
|
|
7004
|
-
}
|
|
7005
|
-
],
|
|
7006
|
-
descriptionOriginal: "",
|
|
7007
|
-
descriptionTranslation: "",
|
|
7008
|
-
firName: "HELSINKI FIR",
|
|
7009
|
-
incident: "T01",
|
|
7010
|
-
level: "SIG",
|
|
7011
|
-
phenomenon: "OBSC_TS",
|
|
7012
|
-
probability: "0",
|
|
7013
|
-
validFrom: "2024-11-13T05:30:14Z",
|
|
7014
|
-
validUntil: "2024-11-13T07:30:14Z"
|
|
7015
|
-
}
|
|
7016
|
-
},
|
|
7017
|
-
{
|
|
7018
|
-
id: "fe4a14bc-8a90-11ef-9090-6c08d8abf452",
|
|
7019
|
-
lastUpdatedTime: "2024-10-08T08:10:30",
|
|
7020
|
-
productStatus: "PUBLISHED",
|
|
7021
|
-
warningDetail: {
|
|
7022
|
-
areas: [
|
|
7023
|
-
{
|
|
7024
|
-
geoJSON: null,
|
|
7025
|
-
objectName: "EHAA"
|
|
7026
|
-
}
|
|
7027
|
-
],
|
|
7028
|
-
descriptionOriginal: "",
|
|
7029
|
-
descriptionTranslation: "",
|
|
7030
|
-
firName: "AMSTERDAM FIR",
|
|
7031
|
-
incident: "Z01",
|
|
7032
|
-
level: "SIG",
|
|
7033
|
-
phenomenon: "SEV_ICE",
|
|
7034
|
-
probability: "0",
|
|
7035
|
-
validFrom: "2024-10-08T05:30:14Z",
|
|
7036
|
-
validUntil: "2024-10-08T09:30:14Z"
|
|
7037
|
-
}
|
|
7038
|
-
}
|
|
7039
|
-
];
|
|
7040
|
-
|
|
7041
|
-
var airmetListJSON = [
|
|
7042
|
-
{
|
|
7043
|
-
id: "02d3727a-b190-11ef-ba31-067f7750936d",
|
|
7044
|
-
lastUpdatedTime: "2024-12-03T16:02:35",
|
|
7045
|
-
productStatus: "DRAFT",
|
|
7046
|
-
warningDetail: {
|
|
7047
|
-
areas: [
|
|
7048
|
-
{
|
|
7049
|
-
geoJSON: null,
|
|
7050
|
-
objectName: "EHAA"
|
|
7051
|
-
}
|
|
7052
|
-
],
|
|
7053
|
-
descriptionOriginal: "",
|
|
7054
|
-
descriptionTranslation: "",
|
|
7055
|
-
firName: "AMSTERDAM FIR",
|
|
7056
|
-
incident: "-1",
|
|
7057
|
-
level: "AIR",
|
|
7058
|
-
phenomenon: "SFC_WIND",
|
|
7059
|
-
probability: "0",
|
|
7060
|
-
validFrom: "2024-12-03T17:00:09Z",
|
|
7061
|
-
validUntil: "2024-12-03T21:00:09Z"
|
|
7062
|
-
}
|
|
7063
|
-
},
|
|
7064
|
-
{
|
|
7065
|
-
id: "1a868884-9076-11ef-8e82-5a063b90cdf6",
|
|
7066
|
-
lastUpdatedTime: "2024-10-22T13:03:56",
|
|
7067
|
-
productStatus: "DRAFT",
|
|
7068
|
-
warningDetail: {
|
|
7069
|
-
areas: [
|
|
7070
|
-
{
|
|
7071
|
-
geoJSON: null,
|
|
7072
|
-
objectName: "EHAA"
|
|
7073
|
-
}
|
|
7074
|
-
],
|
|
7075
|
-
descriptionOriginal: "",
|
|
7076
|
-
descriptionTranslation: "",
|
|
7077
|
-
firName: "AMSTERDAM FIR",
|
|
7078
|
-
incident: "-1",
|
|
7079
|
-
level: "AIR",
|
|
7080
|
-
phenomenon: "MOD_TURB",
|
|
7081
|
-
probability: "0",
|
|
7082
|
-
validFrom: "2024-10-22T15:00:09Z",
|
|
7083
|
-
validUntil: "2024-10-22T18:00:09Z"
|
|
7084
|
-
}
|
|
7085
|
-
},
|
|
7086
|
-
{
|
|
7087
|
-
id: "4ac7fc94-c670-11ee-8ace-92491e683685",
|
|
7088
|
-
lastUpdatedTime: "2024-02-08T12:26:31.803468",
|
|
7089
|
-
productStatus: "EXPIRED",
|
|
7090
|
-
warningDetail: {
|
|
7091
|
-
areas: [
|
|
7092
|
-
{
|
|
7093
|
-
geoJSON: null,
|
|
7094
|
-
objectName: "ENOR"
|
|
7095
|
-
}
|
|
7096
|
-
],
|
|
7097
|
-
descriptionOriginal: "",
|
|
7098
|
-
descriptionTranslation: "",
|
|
7099
|
-
firName: "POLARIS FIR",
|
|
7100
|
-
incident: "T01",
|
|
7101
|
-
level: "AIR",
|
|
7102
|
-
phenomenon: "OBSC_TS",
|
|
7103
|
-
probability: "0",
|
|
7104
|
-
validFrom: "2024-02-08T09:00:09Z",
|
|
7105
|
-
validUntil: "2024-02-08T11:00:09Z"
|
|
7106
|
-
}
|
|
7107
|
-
},
|
|
7108
|
-
{
|
|
7109
|
-
id: "9dbcd4c6-c4c0-11ee-a0e9-9e39e246af14",
|
|
7110
|
-
lastUpdatedTime: "2024-02-06T07:15:18.166785",
|
|
7111
|
-
productStatus: "PUBLISHED",
|
|
7112
|
-
warningDetail: {
|
|
7113
|
-
areas: [
|
|
7114
|
-
{
|
|
7115
|
-
geoJSON: null,
|
|
7116
|
-
objectName: "EHAA"
|
|
7117
|
-
}
|
|
7118
|
-
],
|
|
7119
|
-
descriptionOriginal: "",
|
|
7120
|
-
descriptionTranslation: "",
|
|
7121
|
-
firName: "AMSTERDAM FIR",
|
|
7122
|
-
incident: "Z01",
|
|
7123
|
-
level: "AIR",
|
|
7124
|
-
phenomenon: "SEV_ICE",
|
|
7125
|
-
probability: "0",
|
|
7126
|
-
validFrom: "2024-02-06T08:00:09Z",
|
|
7127
|
-
validUntil: "2024-02-06T12:00:09Z"
|
|
7128
|
-
}
|
|
7129
|
-
}
|
|
7130
|
-
];
|
|
7131
|
-
|
|
7132
6934
|
/* *
|
|
7133
6935
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7134
6936
|
* you may not use this file except in compliance with the License.
|
|
@@ -7152,8 +6954,6 @@ var warningList = warningListJSON;
|
|
|
7152
6954
|
warningList.filter(function (warning) {
|
|
7153
6955
|
return warning.status !== 'EXPIRED' && warning.status !== 'WITHDRAWN';
|
|
7154
6956
|
}).length;
|
|
7155
|
-
var sigmetList = sigmetListJSON;
|
|
7156
|
-
var airmetList = airmetListJSON;
|
|
7157
6957
|
var areaKeywordList = ['North Sea districts', 'Coastal Districts', 'KNMI Specific', 'Objects', 'Baltic areas', 'NL', 'FI', 'METNorway Specific', 'Provinces', 'FIR', 'Countries'];
|
|
7158
6958
|
|
|
7159
6959
|
/* *
|
|
@@ -7254,7 +7054,7 @@ var getApiRoutes = function getApiRoutes(axiosInstance) {
|
|
|
7254
7054
|
getWarnings: function getWarnings() {
|
|
7255
7055
|
return axiosInstance.get("/warnings/").then(function () {
|
|
7256
7056
|
return {
|
|
7257
|
-
data: warningList
|
|
7057
|
+
data: warningList
|
|
7258
7058
|
};
|
|
7259
7059
|
});
|
|
7260
7060
|
},
|
|
@@ -13647,6 +13447,7 @@ drawingsListener.startListening({
|
|
|
13647
13447
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
13648
13448
|
* */
|
|
13649
13449
|
var drawingModuleConfig = {
|
|
13450
|
+
// TODO: remove id in https://gitlab.com/opengeoweb/opengeoweb/-/issues/5561
|
|
13650
13451
|
id: 'drawing-module',
|
|
13651
13452
|
reducersMap: {
|
|
13652
13453
|
drawings: reducer$2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/warnings",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.37.0",
|
|
4
4
|
"description": "GeoWeb warinings library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"@opengeoweb/sigmet-airmet": "*",
|
|
30
30
|
"react-i18next": "^15.1.1",
|
|
31
31
|
"i18next": "^23.11.5",
|
|
32
|
-
"@mui/material": "^6.1.1"
|
|
32
|
+
"@mui/material": "^6.1.1",
|
|
33
|
+
"msw": "^1.3.3"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
36
|
"react": "18",
|
|
@@ -3,7 +3,6 @@ import { AirmetConfig, AirmetFromBackend, SigmetConfig, SigmetFromBackend } from
|
|
|
3
3
|
import { AviationProduct } from '@opengeoweb/sigmet-airmet';
|
|
4
4
|
export declare const getAirmetList: (auth: Credentials) => Promise<AirmetFromBackend[]>;
|
|
5
5
|
export declare const getSigmetList: (auth: Credentials) => Promise<SigmetFromBackend[]>;
|
|
6
|
-
export declare const getlocalProductConfig: <T extends SigmetConfig | AirmetConfig>(configUrl: string) => Promise<T>;
|
|
7
6
|
export declare const getAirmetConfig: (auth: Credentials) => Promise<AirmetConfig>;
|
|
8
7
|
export declare const getSigmetConfig: (auth: Credentials) => Promise<SigmetConfig>;
|
|
9
8
|
export declare const getAirmetTAC: (auth: Credentials, product: AviationProduct) => Promise<{
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const fakeSigmetTAC = "EHAA SIGMET 1 VALID 121249/121449 EHDB- EHAA AMSTERDAM FIR FRQ TS OBS ENTIRE FIR FL010 STNR WKN";
|
|
2
|
+
export declare const fakeAirmetTAC = "EHAA AIRMET -1 VALID 310700/311100 EHDB- EHAA AMSTERDAM FIR ISOL CB OBS ENTIRE FIR FL020 STNR NC";
|
|
3
|
+
export declare const aviationEndpoints: import("msw").RestHandler<import("msw").MockedRequest<import("msw").DefaultBodyType>>[];
|