@dmdata/telegram-json-types 1.2.1 → 1.2.3
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/.github/workflows/release.yml +33 -0
- package/LICENSE +21 -21
- package/README.md +79 -79
- package/dist/jschema/forecast-weathermap_1.0.0.json +1 -1
- package/dist/jschema/weather-warning-timeseries_1.0.0.json +1 -1
- package/index.d.ts +2 -2
- package/package.json +30 -32
- package/test/sample-schema-check.test.ts +68 -68
- package/tsconfig.json +25 -25
- package/types/component/coordinate.d.ts +27 -27
- package/types/component/earthquake.d.ts +77 -77
- package/types/component/index.d.ts +17 -17
- package/types/component/unit-value.d.ts +13 -13
- package/types/component/util.d.ts +20 -20
- package/types/index.d.ts +84 -84
- package/types/schema/earthquake-counts/1.0.0.d.ts +69 -69
- package/types/schema/earthquake-explanation/1.0.0.d.ts +57 -57
- package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +53 -53
- package/types/schema/earthquake-information/1.0.0.d.ts +158 -158
- package/types/schema/earthquake-information/1.1.0.d.ts +224 -224
- package/types/schema/earthquake-information/index.d.ts +9 -9
- package/types/schema/earthquake-nankai/1.0.0.d.ts +101 -101
- package/types/schema/eew-information/1.0.0.d.ts +221 -221
- package/types/schema/eew-information/index.d.ts +7 -7
- package/types/schema/forecast-2week-temperature/1.0.0.d.ts +110 -110
- package/types/schema/forecast-prefecture/1.0.0.d.ts +537 -537
- package/types/schema/forecast-season/1.0.0.d.ts +169 -169
- package/types/schema/forecast-warning-possibility/1.0.0.d.ts +388 -388
- package/types/schema/forecast-warning-possibility/1.1.0.d.ts +129 -129
- package/types/schema/forecast-warning-possibility/index.d.ts +9 -9
- package/types/schema/forecast-weathermap/1.0.0.d.ts +206 -194
- package/types/schema/tsunami-information/1.0.0.d.ts +261 -261
- package/types/schema/tsunami-information/1.1.0.d.ts +298 -298
- package/types/schema/tsunami-information/index.d.ts +9 -9
- package/types/schema/volcano-information/1.0.0.d.ts +450 -450
- package/types/schema/weather-commentary/1.0.0.d.ts +984 -984
- package/types/schema/weather-commentary/index.d.ts +7 -7
- package/types/schema/weather-early/1.0.0.d.ts +111 -111
- package/types/schema/weather-impact-society/1.0.0.d.ts +143 -143
- package/types/schema/weather-impact-society/1.0.1.d.ts +118 -118
- package/types/schema/weather-information/1.0.0.d.ts +67 -67
- package/types/schema/weather-landslide/1.0.0.d.ts +51 -51
- package/types/schema/weather-river-flood/1.0.0.d.ts +192 -192
- package/types/schema/weather-tornado/1.0.0.d.ts +55 -55
- package/types/schema/weather-typhoon/1.0.0.d.ts +146 -146
- package/types/schema/weather-typhoon/index.d.ts +7 -7
- package/types/schema/weather-warning/1.0.0.d.ts +213 -213
- package/types/schema/weather-warning/1.1.0.d.ts +469 -469
- package/types/schema/weather-warning/index.d.ts +9 -9
- package/types/schema/weather-warning-timeseries/1.0.0.d.ts +357 -385
- package/types/schema/weather-warning-timeseries/index.d.ts +7 -7
|
@@ -1,169 +1,169 @@
|
|
|
1
|
-
import { TelegramJSONMain } from '../../main';
|
|
2
|
-
import { Components } from '../../component';
|
|
3
|
-
|
|
4
|
-
export namespace ForecastSeason {
|
|
5
|
-
export interface Schema {
|
|
6
|
-
type: 'forecast-season';
|
|
7
|
-
version: '1.0.0';
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface TimeSeriesTimeDefine {
|
|
11
|
-
timeId: string;
|
|
12
|
-
dateTime: string;
|
|
13
|
-
duration: string;
|
|
14
|
-
name: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface SeasonSummarySignificant {
|
|
18
|
-
type: '気温' | '降水量' | '日照時間' | '降雪量';
|
|
19
|
-
value: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface SeasonSummary {
|
|
23
|
-
text?: string;
|
|
24
|
-
significances: SeasonSummarySignificant[];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface SeasonProbability<Type = '気温' | '降水量' | '日照時間' | '降雪量'> {
|
|
28
|
-
type: Type;
|
|
29
|
-
belowNormal: {
|
|
30
|
-
type: `平年より${Type extends '気温' ? '低い' : '少ない'}確率`;
|
|
31
|
-
unit: '%';
|
|
32
|
-
value: string;
|
|
33
|
-
significant?: true;
|
|
34
|
-
};
|
|
35
|
-
norma: {
|
|
36
|
-
type: '平年並みの確率';
|
|
37
|
-
unit: '%';
|
|
38
|
-
value: string;
|
|
39
|
-
significant?: true;
|
|
40
|
-
};
|
|
41
|
-
aboveNormal: {
|
|
42
|
-
type: `平年より${Type extends '気温' ? '高い' : '多い'}確率`;
|
|
43
|
-
unit: '%';
|
|
44
|
-
value: string;
|
|
45
|
-
significant?: true;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface Target extends Components.CodeName {
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface SeasonZone extends Components.CodeName {
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface SeasonItemSummaryKind {
|
|
56
|
-
type: '出現の可能性が最も大きい天候と、特徴のある気温、降水量等の確率';
|
|
57
|
-
summaries: [SeasonSummary] | [];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface SeasonItemSummary {
|
|
61
|
-
kinds: [
|
|
62
|
-
SeasonItemSummaryKind
|
|
63
|
-
];
|
|
64
|
-
zones: [SeasonZone];
|
|
65
|
-
condition?: never;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface SeasonItemSummaryNoElement {
|
|
69
|
-
condition: '要素なし';
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface SeasonItemProbabilityKind {
|
|
73
|
-
type: '地域・期間平均平年偏差各階級の確率';
|
|
74
|
-
probabilities: [SeasonProbability];
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface SeasonItemProbability {
|
|
78
|
-
kinds: [
|
|
79
|
-
SeasonItemProbabilityKind
|
|
80
|
-
];
|
|
81
|
-
zones: [SeasonZone];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface SeasonPeriod {
|
|
85
|
-
dateTime: {
|
|
86
|
-
value: string;
|
|
87
|
-
validFormat: 'yyyy-mm-dd';
|
|
88
|
-
};
|
|
89
|
-
duration: 'P1M' | 'P2M' | 'P3M';
|
|
90
|
-
name: '向こう1か月' | '向こう3か月' | '冬(12月から2月)' | '夏(6月から8月)' |
|
|
91
|
-
'梅雨の時期(6月から7月、沖縄・奄美では5月から6月)' | '梅雨の時期(5月から6月)' |
|
|
92
|
-
'梅雨の時期(九州南部では6月から7月、奄美地方では5月から6月)' | '梅雨の時期(6月から7月)';
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface Season {
|
|
96
|
-
type: '季節予報';
|
|
97
|
-
period: SeasonPeriod;
|
|
98
|
-
items: [SeasonItemSummary | SeasonItemSummaryNoElement, ...SeasonItemProbability[]];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface TimeSeriesZoneItemSummary extends SeasonSummary {
|
|
102
|
-
refId: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface TimeSeriesZoneItemSummaryKind {
|
|
106
|
-
type: '出現の可能性が最も大きい天候と、特徴のある気温、降水量等の確率';
|
|
107
|
-
summaries: TimeSeriesZoneItemSummary[];
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface TimeSeriesZoneItemProbability extends SeasonProbability {
|
|
111
|
-
refId: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface TimeSeriesZoneItemProbabilityKind {
|
|
115
|
-
type: '地域・期間平均平年偏差各階級の確率';
|
|
116
|
-
probabilities: TimeSeriesZoneItemProbability[];
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface TimeSeriesZoneItemKindSummary {
|
|
120
|
-
kinds: [TimeSeriesZoneItemSummaryKind];
|
|
121
|
-
zones: [SeasonZone];
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface TimeSeriesZoneItemKindProbability {
|
|
125
|
-
kinds: [TimeSeriesZoneItemProbabilityKind];
|
|
126
|
-
zones: [SeasonZone];
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface TimeSeriesZone {
|
|
130
|
-
timeDefines: TimeSeriesTimeDefine[];
|
|
131
|
-
items: [TimeSeriesZoneItemKindSummary, ...TimeSeriesZoneItemKindProbability[]];
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export interface NextForecastSchedule {
|
|
135
|
-
type: '1か月予報' | '3か月予報' | '暖候期予報' | '寒候期予報';
|
|
136
|
-
text: string;
|
|
137
|
-
dateTime: string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface ForecastAddition {
|
|
141
|
-
nextForecastSchedules: NextForecastSchedule[];
|
|
142
|
-
scheduleNotice: string | null;
|
|
143
|
-
additionalNotice: string | null;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface PublicBody {
|
|
147
|
-
notice?: string;
|
|
148
|
-
target: Target;
|
|
149
|
-
seasons: Season[];
|
|
150
|
-
timeSeries?: TimeSeriesZone[];
|
|
151
|
-
forecastAddition: ForecastAddition;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface Public extends TelegramJSONMain {
|
|
155
|
-
_schema: Schema;
|
|
156
|
-
type: '全般1か月予報' | '地方1か月予報' | '全般3か月予報' | '地方3か月予報' | '全般暖・寒候期予報' | '地方暖・寒候期予報';
|
|
157
|
-
title: string;
|
|
158
|
-
infoType: '発表' | '訂正' | '遅延';
|
|
159
|
-
targetDateTimeDubious: never;
|
|
160
|
-
targetDuration: string;
|
|
161
|
-
validDateTime: never;
|
|
162
|
-
eventId: null;
|
|
163
|
-
serialNo: null;
|
|
164
|
-
infoKind: '季節予報';
|
|
165
|
-
body: PublicBody;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export type Main = Public;
|
|
169
|
-
}
|
|
1
|
+
import { TelegramJSONMain } from '../../main';
|
|
2
|
+
import { Components } from '../../component';
|
|
3
|
+
|
|
4
|
+
export namespace ForecastSeason {
|
|
5
|
+
export interface Schema {
|
|
6
|
+
type: 'forecast-season';
|
|
7
|
+
version: '1.0.0';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface TimeSeriesTimeDefine {
|
|
11
|
+
timeId: string;
|
|
12
|
+
dateTime: string;
|
|
13
|
+
duration: string;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface SeasonSummarySignificant {
|
|
18
|
+
type: '気温' | '降水量' | '日照時間' | '降雪量';
|
|
19
|
+
value: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface SeasonSummary {
|
|
23
|
+
text?: string;
|
|
24
|
+
significances: SeasonSummarySignificant[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface SeasonProbability<Type = '気温' | '降水量' | '日照時間' | '降雪量'> {
|
|
28
|
+
type: Type;
|
|
29
|
+
belowNormal: {
|
|
30
|
+
type: `平年より${Type extends '気温' ? '低い' : '少ない'}確率`;
|
|
31
|
+
unit: '%';
|
|
32
|
+
value: string;
|
|
33
|
+
significant?: true;
|
|
34
|
+
};
|
|
35
|
+
norma: {
|
|
36
|
+
type: '平年並みの確率';
|
|
37
|
+
unit: '%';
|
|
38
|
+
value: string;
|
|
39
|
+
significant?: true;
|
|
40
|
+
};
|
|
41
|
+
aboveNormal: {
|
|
42
|
+
type: `平年より${Type extends '気温' ? '高い' : '多い'}確率`;
|
|
43
|
+
unit: '%';
|
|
44
|
+
value: string;
|
|
45
|
+
significant?: true;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface Target extends Components.CodeName {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface SeasonZone extends Components.CodeName {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface SeasonItemSummaryKind {
|
|
56
|
+
type: '出現の可能性が最も大きい天候と、特徴のある気温、降水量等の確率';
|
|
57
|
+
summaries: [SeasonSummary] | [];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface SeasonItemSummary {
|
|
61
|
+
kinds: [
|
|
62
|
+
SeasonItemSummaryKind
|
|
63
|
+
];
|
|
64
|
+
zones: [SeasonZone];
|
|
65
|
+
condition?: never;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface SeasonItemSummaryNoElement {
|
|
69
|
+
condition: '要素なし';
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface SeasonItemProbabilityKind {
|
|
73
|
+
type: '地域・期間平均平年偏差各階級の確率';
|
|
74
|
+
probabilities: [SeasonProbability];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface SeasonItemProbability {
|
|
78
|
+
kinds: [
|
|
79
|
+
SeasonItemProbabilityKind
|
|
80
|
+
];
|
|
81
|
+
zones: [SeasonZone];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface SeasonPeriod {
|
|
85
|
+
dateTime: {
|
|
86
|
+
value: string;
|
|
87
|
+
validFormat: 'yyyy-mm-dd';
|
|
88
|
+
};
|
|
89
|
+
duration: 'P1M' | 'P2M' | 'P3M';
|
|
90
|
+
name: '向こう1か月' | '向こう3か月' | '冬(12月から2月)' | '夏(6月から8月)' |
|
|
91
|
+
'梅雨の時期(6月から7月、沖縄・奄美では5月から6月)' | '梅雨の時期(5月から6月)' |
|
|
92
|
+
'梅雨の時期(九州南部では6月から7月、奄美地方では5月から6月)' | '梅雨の時期(6月から7月)';
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface Season {
|
|
96
|
+
type: '季節予報';
|
|
97
|
+
period: SeasonPeriod;
|
|
98
|
+
items: [SeasonItemSummary | SeasonItemSummaryNoElement, ...SeasonItemProbability[]];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface TimeSeriesZoneItemSummary extends SeasonSummary {
|
|
102
|
+
refId: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface TimeSeriesZoneItemSummaryKind {
|
|
106
|
+
type: '出現の可能性が最も大きい天候と、特徴のある気温、降水量等の確率';
|
|
107
|
+
summaries: TimeSeriesZoneItemSummary[];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface TimeSeriesZoneItemProbability extends SeasonProbability {
|
|
111
|
+
refId: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface TimeSeriesZoneItemProbabilityKind {
|
|
115
|
+
type: '地域・期間平均平年偏差各階級の確率';
|
|
116
|
+
probabilities: TimeSeriesZoneItemProbability[];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface TimeSeriesZoneItemKindSummary {
|
|
120
|
+
kinds: [TimeSeriesZoneItemSummaryKind];
|
|
121
|
+
zones: [SeasonZone];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface TimeSeriesZoneItemKindProbability {
|
|
125
|
+
kinds: [TimeSeriesZoneItemProbabilityKind];
|
|
126
|
+
zones: [SeasonZone];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface TimeSeriesZone {
|
|
130
|
+
timeDefines: TimeSeriesTimeDefine[];
|
|
131
|
+
items: [TimeSeriesZoneItemKindSummary, ...TimeSeriesZoneItemKindProbability[]];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface NextForecastSchedule {
|
|
135
|
+
type: '1か月予報' | '3か月予報' | '暖候期予報' | '寒候期予報';
|
|
136
|
+
text: string;
|
|
137
|
+
dateTime: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface ForecastAddition {
|
|
141
|
+
nextForecastSchedules: NextForecastSchedule[];
|
|
142
|
+
scheduleNotice: string | null;
|
|
143
|
+
additionalNotice: string | null;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface PublicBody {
|
|
147
|
+
notice?: string;
|
|
148
|
+
target: Target;
|
|
149
|
+
seasons: Season[];
|
|
150
|
+
timeSeries?: TimeSeriesZone[];
|
|
151
|
+
forecastAddition: ForecastAddition;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface Public extends TelegramJSONMain {
|
|
155
|
+
_schema: Schema;
|
|
156
|
+
type: '全般1か月予報' | '地方1か月予報' | '全般3か月予報' | '地方3か月予報' | '全般暖・寒候期予報' | '地方暖・寒候期予報';
|
|
157
|
+
title: string;
|
|
158
|
+
infoType: '発表' | '訂正' | '遅延';
|
|
159
|
+
targetDateTimeDubious: never;
|
|
160
|
+
targetDuration: string;
|
|
161
|
+
validDateTime: never;
|
|
162
|
+
eventId: null;
|
|
163
|
+
serialNo: null;
|
|
164
|
+
infoKind: '季節予報';
|
|
165
|
+
body: PublicBody;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type Main = Public;
|
|
169
|
+
}
|