@dmdata/telegram-json-types 1.1.13 → 1.1.15
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/build.d.ts +1 -1
- package/dist/build.js +72 -68
- package/dist/config.d.ts +3 -3
- package/dist/config.js +7 -7
- package/dist/jschema/earthquake-counts_1.0.0.json +1 -1
- package/dist/jschema/earthquake-explanation_1.0.0.json +1 -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/eew-information_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/volcano-information_1.0.0.json +1 -1
- package/dist/jschema/weather-early_1.0.0.json +1 -1
- package/dist/jschema/weather-impact-society_1.0.0.json +1 -1
- package/dist/jschema/weather-impact-society_1.0.1.json +1 -0
- package/dist/jschema/weather-information_1.0.0.json +1 -1
- package/dist/jschema/weather-landslide_1.0.0.json +1 -1
- package/dist/jschema/weather-river-flood_1.0.0.json +1 -1
- package/dist/jschema/weather-tornado_1.0.0.json +1 -1
- package/dist/jschema/weather-typhoon_1.0.0.json +1 -1
- package/dist/jschema/weather-warning_1.0.0.json +1 -1
- package/dist/jschema-load.d.ts +1 -1
- package/dist/jschema-load.js +48 -44
- package/package.json +11 -12
- package/test/sample-schema-check.test.ts +23 -14
- package/types/component/coordinate.d.ts +6 -6
- package/types/component/earthquake.d.ts +4 -4
- package/types/component/unit-value.d.ts +2 -2
- package/types/index.d.ts +18 -2
- package/types/schema/earthquake-counts/1.0.0.d.ts +6 -6
- package/types/schema/earthquake-explanation/1.0.0.d.ts +6 -6
- package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +6 -6
- package/types/schema/earthquake-information/1.0.0.d.ts +17 -17
- package/types/schema/earthquake-information/1.1.0.d.ts +43 -26
- package/types/schema/earthquake-nankai/1.0.0.d.ts +12 -12
- package/types/schema/eew-information/1.0.0.d.ts +16 -16
- 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.0.0.d.ts +26 -26
- package/types/schema/volcano-information/1.0.0.d.ts +25 -25
- package/types/schema/weather-early/1.0.0.d.ts +0 -25
- package/types/schema/weather-impact-society/1.0.0.d.ts +7 -5
- 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 +43 -6
- package/types/schema/weather-landslide/1.0.0.d.ts +3 -3
- package/types/schema/weather-river-flood/1.0.0.d.ts +3 -3
- package/types/schema/weather-tornado/1.0.0.d.ts +2 -2
- package/types/schema/weather-typhoon/1.0.0.d.ts +3 -3
- package/types/schema/weather-warning/1.0.0.d.ts +11 -11
|
@@ -32,9 +32,9 @@ export namespace EarthquakeNankai {
|
|
|
32
32
|
type: '南海トラフ地震臨時情報';
|
|
33
33
|
title: string;
|
|
34
34
|
infoType: '発表' | '訂正';
|
|
35
|
-
targetDateTimeDubious
|
|
36
|
-
targetDuration
|
|
37
|
-
validDateTime
|
|
35
|
+
targetDateTimeDubious?: never;
|
|
36
|
+
targetDuration?: never;
|
|
37
|
+
validDateTime?: never;
|
|
38
38
|
eventId: string;
|
|
39
39
|
serialNo: null;
|
|
40
40
|
infoKind: '南海トラフ地震に関連する情報';
|
|
@@ -46,9 +46,9 @@ export namespace EarthquakeNankai {
|
|
|
46
46
|
type: '南海トラフ地震関連解説情報';
|
|
47
47
|
title: string;
|
|
48
48
|
infoType: '発表' | '訂正';
|
|
49
|
-
targetDateTimeDubious
|
|
50
|
-
targetDuration
|
|
51
|
-
validDateTime
|
|
49
|
+
targetDateTimeDubious?: never;
|
|
50
|
+
targetDuration?: never;
|
|
51
|
+
validDateTime?: never;
|
|
52
52
|
eventId: string;
|
|
53
53
|
serialNo: string;
|
|
54
54
|
infoKind: '南海トラフ地震に関連する情報';
|
|
@@ -60,9 +60,9 @@ export namespace EarthquakeNankai {
|
|
|
60
60
|
type: '南海トラフ地震関連解説情報';
|
|
61
61
|
title: string;
|
|
62
62
|
infoType: '発表' | '訂正';
|
|
63
|
-
targetDateTimeDubious
|
|
64
|
-
targetDuration
|
|
65
|
-
validDateTime
|
|
63
|
+
targetDateTimeDubious?: never;
|
|
64
|
+
targetDuration?: never;
|
|
65
|
+
validDateTime?: never;
|
|
66
66
|
eventId: string;
|
|
67
67
|
serialNo: null;
|
|
68
68
|
infoKind: '南海トラフ地震に関連する情報';
|
|
@@ -74,9 +74,9 @@ export namespace EarthquakeNankai {
|
|
|
74
74
|
type: '南海トラフ地震臨時情報' | '南海トラフ地震関連解説情報';
|
|
75
75
|
title: string;
|
|
76
76
|
infoType: '取消';
|
|
77
|
-
targetDateTimeDubious
|
|
78
|
-
targetDuration
|
|
79
|
-
validDateTime
|
|
77
|
+
targetDateTimeDubious?: never;
|
|
78
|
+
targetDuration?: never;
|
|
79
|
+
validDateTime?: never;
|
|
80
80
|
eventId: string;
|
|
81
81
|
infoKind: '南海トラフ地震に関連する情報';
|
|
82
82
|
body: CancelBody;
|
|
@@ -89,11 +89,11 @@ export namespace EewInformation {
|
|
|
89
89
|
|
|
90
90
|
export interface IntensityRegionReached extends IntensityRegion {
|
|
91
91
|
condition: '既に主要動到達と推測';
|
|
92
|
-
arrivalTime
|
|
92
|
+
arrivalTime?: never;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export interface IntensityRegionUnReached extends IntensityRegion {
|
|
96
|
-
condition
|
|
96
|
+
condition?: never;
|
|
97
97
|
arrivalTime: string;
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -128,7 +128,7 @@ export namespace EewInformation {
|
|
|
128
128
|
|
|
129
129
|
export interface PublicCommonBody {
|
|
130
130
|
isLastInfo: boolean;
|
|
131
|
-
isCanceled:
|
|
131
|
+
isCanceled: false;
|
|
132
132
|
isWarning: boolean;
|
|
133
133
|
zones?: WarningArea[];
|
|
134
134
|
prefectures?: WarningArea[];
|
|
@@ -141,7 +141,7 @@ export namespace EewInformation {
|
|
|
141
141
|
|
|
142
142
|
export interface PublicRealtimeBody {
|
|
143
143
|
isLastInfo: boolean;
|
|
144
|
-
isCanceled:
|
|
144
|
+
isCanceled: false;
|
|
145
145
|
earthquake: Earthquake;
|
|
146
146
|
intensity?: IntensityRealtime;
|
|
147
147
|
text?: string;
|
|
@@ -164,9 +164,9 @@ export namespace EewInformation {
|
|
|
164
164
|
type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)';
|
|
165
165
|
title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)';
|
|
166
166
|
infoType: '発表' | '訂正';
|
|
167
|
-
targetDateTimeDubious
|
|
168
|
-
targetDuration
|
|
169
|
-
validDateTime
|
|
167
|
+
targetDateTimeDubious?: never;
|
|
168
|
+
targetDuration?: never;
|
|
169
|
+
validDateTime?: never;
|
|
170
170
|
eventId: string;
|
|
171
171
|
serialNo: string;
|
|
172
172
|
infoKind: '緊急地震速報';
|
|
@@ -178,9 +178,9 @@ export namespace EewInformation {
|
|
|
178
178
|
type: 'リアルタイム震度';
|
|
179
179
|
title: 'リアルタイム震度';
|
|
180
180
|
infoType: '発表' | '訂正';
|
|
181
|
-
targetDateTimeDubious
|
|
182
|
-
targetDuration
|
|
183
|
-
validDateTime
|
|
181
|
+
targetDateTimeDubious?: never;
|
|
182
|
+
targetDuration?: never;
|
|
183
|
+
validDateTime?: never;
|
|
184
184
|
eventId: string;
|
|
185
185
|
serialNo: string;
|
|
186
186
|
infoKind: '緊急地震速報';
|
|
@@ -193,9 +193,9 @@ export namespace EewInformation {
|
|
|
193
193
|
type: '緊急地震速報配信テスト';
|
|
194
194
|
title: '緊急地震速報配信テスト';
|
|
195
195
|
infoType: '発表' | '訂正';
|
|
196
|
-
targetDateTimeDubious
|
|
197
|
-
targetDuration
|
|
198
|
-
validDateTime
|
|
196
|
+
targetDateTimeDubious?: never;
|
|
197
|
+
targetDuration?: never;
|
|
198
|
+
validDateTime?: never;
|
|
199
199
|
eventId: string;
|
|
200
200
|
serialNo: string;
|
|
201
201
|
infoKind: '緊急地震速報';
|
|
@@ -207,9 +207,9 @@ export namespace EewInformation {
|
|
|
207
207
|
type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | 'リアルタイム震度' | '緊急地震速報配信テスト';
|
|
208
208
|
title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | 'リアルタイム震度' | '緊急地震速報配信テスト';
|
|
209
209
|
infoType: '取消';
|
|
210
|
-
targetDateTimeDubious
|
|
211
|
-
targetDuration
|
|
212
|
-
validDateTime
|
|
210
|
+
targetDateTimeDubious?: never;
|
|
211
|
+
targetDuration?: never;
|
|
212
|
+
validDateTime?: never;
|
|
213
213
|
eventId: string;
|
|
214
214
|
serialNo: string;
|
|
215
215
|
infoKind: '緊急地震速報';
|
|
@@ -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
|
+
}
|