@dmdata/telegram-json-types 1.1.14 → 1.1.16
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 +6 -1
- package/dist/jschema/earthquake-hypocenter-update_1.0.0.json +1 -1
- package/dist/jschema/earthquake-information_1.0.0.json +1 -1
- package/dist/jschema/earthquake-information_1.1.0.json +1 -1
- package/dist/jschema/earthquake-nankai_1.0.0.json +1 -1
- package/dist/jschema/forecast-2week-temperature_1.0.0.json +1 -0
- package/dist/jschema/forecast-prefecture_1.0.0.json +1 -0
- package/dist/jschema/forecast-season_1.0.0.json +1 -0
- package/dist/jschema/forecast-warning-possibility_1.0.0.json +1 -0
- package/dist/jschema/forecast-weathermap_1.0.0.json +1 -0
- package/dist/jschema/tsunami-information_1.0.0.json +1 -1
- package/dist/jschema/tsunami-information_1.1.0.json +1 -0
- package/dist/jschema/weather-impact-society_1.0.1.json +1 -0
- package/dist/jschema/weather-information_1.0.0.json +1 -1
- package/package.json +2 -4
- package/test/sample-schema-check.test.ts +23 -13
- package/types/component/earthquake.d.ts +1 -1
- package/types/index.d.ts +19 -2
- package/types/schema/earthquake-nankai/1.0.0.d.ts +18 -3
- package/types/schema/forecast-2week-temperature/1.0.0.d.ts +110 -0
- package/types/schema/forecast-2week-temperature/index.d.ts +7 -0
- package/types/schema/forecast-prefecture/1.0.0.d.ts +526 -0
- package/types/schema/forecast-prefecture/index.d.ts +7 -0
- package/types/schema/forecast-season/1.0.0.d.ts +169 -0
- package/types/schema/forecast-season/index.d.ts +7 -0
- package/types/schema/forecast-warning-possibility/1.0.0.d.ts +382 -0
- package/types/schema/forecast-warning-possibility/index.d.ts +7 -0
- package/types/schema/forecast-weathermap/1.0.0.d.ts +194 -0
- package/types/schema/forecast-weathermap/index.d.ts +7 -0
- package/types/schema/tsunami-information/1.1.0.d.ts +298 -0
- package/types/schema/tsunami-information/index.d.ts +3 -1
- package/types/schema/weather-impact-society/1.0.1.d.ts +117 -0
- package/types/schema/weather-impact-society/index.d.ts +3 -1
- package/types/schema/weather-information/1.0.0.d.ts +39 -2
|
@@ -66,7 +66,7 @@ interface Hypocenter {
|
|
|
66
66
|
direction: string;
|
|
67
67
|
distance: Omit<UnitValueNotNull<never, 'km'>, 'type' | 'condition'>;
|
|
68
68
|
};
|
|
69
|
-
source?: 'PTWC' | 'USGS' | 'WCATWC';
|
|
69
|
+
source?: 'PTWC' | 'NTWC' | 'USGS' | 'SCSTAC' | 'CATAC' | 'WCATWC';
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export interface Earthquake {
|
package/types/index.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ import * as WeatherTornado from './schema/weather-tornado';
|
|
|
14
14
|
import * as WeatherTyphoon from './schema/weather-typhoon';
|
|
15
15
|
import * as WeatherLandslide from './schema/weather-landslide';
|
|
16
16
|
import * as WeatherRiverFlood from './schema/weather-river-flood';
|
|
17
|
+
import * as ForecastPrefecture from './schema/forecast-prefecture';
|
|
18
|
+
import * as ForecastWarningPossibility from './schema/forecast-warning-possibility';
|
|
19
|
+
import * as ForecastSeason from './schema/forecast-season';
|
|
20
|
+
import * as Forecast2weekTemperature from './schema/forecast-2week-temperature';
|
|
21
|
+
import * as ForecastWeathermap from './schema/forecast-weathermap';
|
|
22
|
+
|
|
17
23
|
import { TelegramJSONMain } from './main';
|
|
18
24
|
import { Components } from './component';
|
|
19
25
|
|
|
@@ -26,15 +32,21 @@ type All =
|
|
|
26
32
|
EarthquakeNankai.v1_0_0.Main |
|
|
27
33
|
EewInformation.v1_0_0.Main |
|
|
28
34
|
TsunamiInformation.v1_0_0.Main |
|
|
35
|
+
TsunamiInformation.v1_1_0.Main |
|
|
29
36
|
VolcanoInformation.v1_0_0.Main |
|
|
30
37
|
WeatherInformation.v1_0_0.Main |
|
|
31
|
-
WeatherImpactSociety.
|
|
38
|
+
WeatherImpactSociety.v1_0_1.Main |
|
|
32
39
|
WeatherEarly.v1_0_0.Main |
|
|
33
40
|
WeatherWarning.v1_0_0.Main |
|
|
34
41
|
WeatherTornado.v1_0_0.Main |
|
|
35
42
|
WeatherTyphoon.v1_0_0.Main |
|
|
36
43
|
WeatherLandslide.v1_0_0.Main |
|
|
37
|
-
WeatherRiverFlood.v1_0_0.Main
|
|
44
|
+
WeatherRiverFlood.v1_0_0.Main |
|
|
45
|
+
ForecastPrefecture.v1_0_0.Main |
|
|
46
|
+
ForecastWarningPossibility.v1_0_0.Main |
|
|
47
|
+
ForecastSeason.v1_0_0.Main |
|
|
48
|
+
Forecast2weekTemperature.v1_0_0.Main |
|
|
49
|
+
ForecastWeathermap.v1_0_0.Main;
|
|
38
50
|
|
|
39
51
|
export {
|
|
40
52
|
EarthquakeInformation,
|
|
@@ -53,6 +65,11 @@ export {
|
|
|
53
65
|
WeatherTyphoon,
|
|
54
66
|
WeatherLandslide,
|
|
55
67
|
WeatherRiverFlood,
|
|
68
|
+
ForecastPrefecture,
|
|
69
|
+
ForecastWarningPossibility,
|
|
70
|
+
ForecastSeason,
|
|
71
|
+
Forecast2weekTemperature,
|
|
72
|
+
ForecastWeathermap,
|
|
56
73
|
TelegramJSONMain,
|
|
57
74
|
Components,
|
|
58
75
|
All
|
|
@@ -69,18 +69,33 @@ export namespace EarthquakeNankai {
|
|
|
69
69
|
body: PublicBody;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
export interface PublicVYSE60 extends TelegramJSONMain {
|
|
73
|
+
_schema: Schema;
|
|
74
|
+
type: '北海道・三陸沖後発地震注意情報';
|
|
75
|
+
title: string;
|
|
76
|
+
infoType: '発表' | '訂正';
|
|
77
|
+
targetDateTimeDubious?: never;
|
|
78
|
+
targetDuration?: never;
|
|
79
|
+
validDateTime?: never;
|
|
80
|
+
eventId: string;
|
|
81
|
+
serialNo: null;
|
|
82
|
+
infoKind: '北海道・三陸沖後発地震注意情報';
|
|
83
|
+
body: PublicBody;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
72
87
|
export interface Cancel extends TelegramJSONMain {
|
|
73
88
|
_schema: Schema;
|
|
74
|
-
type: '南海トラフ地震臨時情報' | '南海トラフ地震関連解説情報';
|
|
89
|
+
type: '南海トラフ地震臨時情報' | '南海トラフ地震関連解説情報' | '北海道・三陸沖後発地震注意情報';
|
|
75
90
|
title: string;
|
|
76
91
|
infoType: '取消';
|
|
77
92
|
targetDateTimeDubious?: never;
|
|
78
93
|
targetDuration?: never;
|
|
79
94
|
validDateTime?: never;
|
|
80
95
|
eventId: string;
|
|
81
|
-
infoKind: '南海トラフ地震に関連する情報';
|
|
96
|
+
infoKind: '南海トラフ地震に関連する情報' | '北海道・三陸沖後発地震注意情報';
|
|
82
97
|
body: CancelBody;
|
|
83
98
|
}
|
|
84
99
|
|
|
85
|
-
export type Main = PublicVYSE50 | PublicVYSE51 | PublicVYSE52 | Cancel;
|
|
100
|
+
export type Main = PublicVYSE50 | PublicVYSE51 | PublicVYSE52 | PublicVYSE60 | Cancel;
|
|
86
101
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { TelegramJSONMain } from '../../main';
|
|
2
|
+
import { Components } from '../../component';
|
|
3
|
+
|
|
4
|
+
export namespace Forecast2weekTemperature {
|
|
5
|
+
export interface Schema {
|
|
6
|
+
type: 'forecast-2week-temperature';
|
|
7
|
+
version: '1.0.0';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface TemperatureComparison {
|
|
11
|
+
type: '最高気温の前後2日5日間平均値の階級' | '最低気温の前後2日5日間平均値の階級' | '前後2日の5日間平均・地域平均気温階級';
|
|
12
|
+
value: '-3' | '-2' | '-1' | '0' | '1' | '2' | '3';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface TimeSeriesTimeDefine {
|
|
16
|
+
timeId: string;
|
|
17
|
+
dateTime: string;
|
|
18
|
+
duration: string;
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface TimeSeriesZoneItemTemperature {
|
|
23
|
+
refId: string;
|
|
24
|
+
type: '地域平均気温';
|
|
25
|
+
comparison: TemperatureComparison;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface TimeSeriesZoneItemKind {
|
|
29
|
+
type: '地域平均気温';
|
|
30
|
+
average: TimeSeriesZoneItemTemperature[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export interface TimeSeriesZoneItem extends Components.CodeName {
|
|
35
|
+
kinds: [
|
|
36
|
+
TimeSeriesZoneItemKind
|
|
37
|
+
];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface TimeSeriesZone {
|
|
41
|
+
timeDefines: TimeSeriesTimeDefine[];
|
|
42
|
+
items: TimeSeriesZoneItem[];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface Zone {
|
|
46
|
+
timeSeries: [
|
|
47
|
+
TimeSeriesZone
|
|
48
|
+
];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface TimeSeriesStationItemAverageTemperature<Type extends '最高気温' | '最低気温'> {
|
|
52
|
+
refId: string;
|
|
53
|
+
type: `${Type}の前後2日5日間平均値`;
|
|
54
|
+
unit: '度';
|
|
55
|
+
value: string;
|
|
56
|
+
range: {
|
|
57
|
+
type: `${Type}の前後2日5日間平均値の予測範囲`;
|
|
58
|
+
unit: '度';
|
|
59
|
+
from: string;
|
|
60
|
+
to: string;
|
|
61
|
+
};
|
|
62
|
+
comparison: TemperatureComparison;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface TimeSeriesStationItemKind {
|
|
66
|
+
type: '最低・最高平均気温';
|
|
67
|
+
averageMaximums: TimeSeriesStationItemAverageTemperature<'最高気温'>[];
|
|
68
|
+
averageMinimums: TimeSeriesStationItemAverageTemperature<'最低気温'>[];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
export interface TimeSeriesStationItem extends Components.CodeName {
|
|
73
|
+
kinds: [
|
|
74
|
+
TimeSeriesStationItemKind
|
|
75
|
+
];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface TimeSeriesStation {
|
|
79
|
+
timeDefines: TimeSeriesTimeDefine[];
|
|
80
|
+
items: TimeSeriesStationItem[];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface Station {
|
|
84
|
+
timeSeries: [
|
|
85
|
+
TimeSeriesStation
|
|
86
|
+
];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface PublicBody {
|
|
90
|
+
zone: Zone;
|
|
91
|
+
station: Station;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
export interface Public extends TelegramJSONMain {
|
|
96
|
+
_schema: Schema;
|
|
97
|
+
type: '地方季節予報(2週間気温予報)';
|
|
98
|
+
title: '2週間気温予報';
|
|
99
|
+
infoType: '発表' | '訂正' | '遅延';
|
|
100
|
+
targetDateTimeDubious: never;
|
|
101
|
+
targetDuration: 'P5D';
|
|
102
|
+
validDateTime: never;
|
|
103
|
+
eventId: null;
|
|
104
|
+
serialNo: null;
|
|
105
|
+
infoKind: '2週間気温予報';
|
|
106
|
+
body: PublicBody;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type Main = Public;
|
|
110
|
+
}
|