@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.
Files changed (51) hide show
  1. package/.github/workflows/release.yml +33 -0
  2. package/LICENSE +21 -21
  3. package/README.md +79 -79
  4. package/dist/jschema/forecast-weathermap_1.0.0.json +1 -1
  5. package/dist/jschema/weather-warning-timeseries_1.0.0.json +1 -1
  6. package/index.d.ts +2 -2
  7. package/package.json +30 -32
  8. package/test/sample-schema-check.test.ts +68 -68
  9. package/tsconfig.json +25 -25
  10. package/types/component/coordinate.d.ts +27 -27
  11. package/types/component/earthquake.d.ts +77 -77
  12. package/types/component/index.d.ts +17 -17
  13. package/types/component/unit-value.d.ts +13 -13
  14. package/types/component/util.d.ts +20 -20
  15. package/types/index.d.ts +84 -84
  16. package/types/schema/earthquake-counts/1.0.0.d.ts +69 -69
  17. package/types/schema/earthquake-explanation/1.0.0.d.ts +57 -57
  18. package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +53 -53
  19. package/types/schema/earthquake-information/1.0.0.d.ts +158 -158
  20. package/types/schema/earthquake-information/1.1.0.d.ts +224 -224
  21. package/types/schema/earthquake-information/index.d.ts +9 -9
  22. package/types/schema/earthquake-nankai/1.0.0.d.ts +101 -101
  23. package/types/schema/eew-information/1.0.0.d.ts +221 -221
  24. package/types/schema/eew-information/index.d.ts +7 -7
  25. package/types/schema/forecast-2week-temperature/1.0.0.d.ts +110 -110
  26. package/types/schema/forecast-prefecture/1.0.0.d.ts +537 -537
  27. package/types/schema/forecast-season/1.0.0.d.ts +169 -169
  28. package/types/schema/forecast-warning-possibility/1.0.0.d.ts +388 -388
  29. package/types/schema/forecast-warning-possibility/1.1.0.d.ts +129 -129
  30. package/types/schema/forecast-warning-possibility/index.d.ts +9 -9
  31. package/types/schema/forecast-weathermap/1.0.0.d.ts +206 -194
  32. package/types/schema/tsunami-information/1.0.0.d.ts +261 -261
  33. package/types/schema/tsunami-information/1.1.0.d.ts +298 -298
  34. package/types/schema/tsunami-information/index.d.ts +9 -9
  35. package/types/schema/volcano-information/1.0.0.d.ts +450 -450
  36. package/types/schema/weather-commentary/1.0.0.d.ts +984 -984
  37. package/types/schema/weather-commentary/index.d.ts +7 -7
  38. package/types/schema/weather-early/1.0.0.d.ts +111 -111
  39. package/types/schema/weather-impact-society/1.0.0.d.ts +143 -143
  40. package/types/schema/weather-impact-society/1.0.1.d.ts +118 -118
  41. package/types/schema/weather-information/1.0.0.d.ts +67 -67
  42. package/types/schema/weather-landslide/1.0.0.d.ts +51 -51
  43. package/types/schema/weather-river-flood/1.0.0.d.ts +192 -192
  44. package/types/schema/weather-tornado/1.0.0.d.ts +55 -55
  45. package/types/schema/weather-typhoon/1.0.0.d.ts +146 -146
  46. package/types/schema/weather-typhoon/index.d.ts +7 -7
  47. package/types/schema/weather-warning/1.0.0.d.ts +213 -213
  48. package/types/schema/weather-warning/1.1.0.d.ts +469 -469
  49. package/types/schema/weather-warning/index.d.ts +9 -9
  50. package/types/schema/weather-warning-timeseries/1.0.0.d.ts +357 -385
  51. package/types/schema/weather-warning-timeseries/index.d.ts +7 -7
@@ -1,213 +1,213 @@
1
- import { TelegramJSONMain } from '../../main';
2
- import { Components } from '../../component';
3
-
4
- export namespace WeatherWarning {
5
- export interface Schema {
6
- type: 'weather-warning';
7
- version: '1.0.0';
8
- }
9
-
10
- export interface KindNextKindDateTime {
11
- value: string;
12
- validFormat: string;
13
- precision: string;
14
- }
15
-
16
- export interface KindNextKind extends Components.CodeName {
17
- condition?: '土砂災害' | '浸水害' | '土砂災害、浸水害';
18
- dateTime: KindNextKindDateTime;
19
- sentence?: string;
20
- }
21
-
22
-
23
- export interface Kind extends Components.CodeName {
24
- status: '発表' | '継続' | '特別警報から警報' | '特別警報から注意報' | '警報から注意報' | '解除';
25
- condition?: '土砂災害' | '浸水害' | '土砂災害、浸水害';
26
- attentions?: string[];
27
- additions?: string[];
28
- lastKind?: Components.CodeName;
29
- nextKinds?: KindNextKind[];
30
- }
31
-
32
- export interface KindVPOA50 extends Components.CodeName {
33
- status: '発表' | 'なし';
34
- }
35
-
36
- export interface PrefectureBase extends Components.CodeName {
37
- kinds: Kind[];
38
- changeStatus: '警報・注意報種別に変化有' | '警報・注意報種別に変化無、量的予想事項等に変化有' | '変化無';
39
- fullStatus: '全域' | '一部';
40
- editingMark: boolean;
41
- condition?: never;
42
- }
43
-
44
- export interface PrefectureNone extends Components.CodeName {
45
- kinds: [];
46
- changeStatus?: never;
47
- fullStatus?: never;
48
- editingMark?: never;
49
- condition: '発表警報・注意報はなし';
50
- }
51
-
52
- export type Prefecture = PrefectureBase | PrefectureNone;
53
-
54
- export interface PrefectureVPOA50 extends Components.CodeName {
55
- kinds: [KindVPOA50];
56
- }
57
-
58
- export type Region = Prefecture;
59
- export type Area = Prefecture;
60
- export type City = Omit<PrefectureBase, 'fullStatus' | 'editingMark'> | PrefectureNone;
61
-
62
- export interface TimeSeriesTimeDefine {
63
- timeId: string;
64
- dateTime: string;
65
- duration: string;
66
- name: string;
67
- }
68
-
69
- export interface TimeSeriesItemKindRiskDegreeLocalSignificance extends Components.CodeName {
70
- refId: string;
71
- }
72
-
73
- export interface TimeSeriesItemKindRiskDegreeLocalPeakTime {
74
- date?: string;
75
- term: string;
76
- }
77
-
78
- export interface TimeSeriesItemKindRiskDegreeLocalFuture extends Components.CodeName {
79
- sentence: string;
80
- }
81
-
82
- export interface TimeSeriesItemKindRiskDegreeLocal {
83
- name: string | null;
84
- significances: TimeSeriesItemKindRiskDegreeLocalSignificance[];
85
- peakTime?: TimeSeriesItemKindRiskDegreeLocalPeakTime;
86
- attentions?: string[];
87
- additions?: string[];
88
- future?: TimeSeriesItemKindRiskDegreeLocalFuture;
89
- }
90
-
91
- export interface TimeSeriesItemKindRiskDegree {
92
- type: string;
93
- locals: TimeSeriesItemKindRiskDegreeLocal[];
94
- }
95
-
96
- export interface TimeSeriesItemKindQuantitativeTimelineLocalForecastValue {
97
- refId: string;
98
- unit: string;
99
- value: string | null;
100
- condition?: string;
101
- }
102
-
103
- export interface TimeSeriesItemKindQuantitativeTimelineLocalForecastNotValue {
104
- refId: string;
105
- unit: string;
106
- value: null;
107
- condition?: '値なし';
108
- }
109
-
110
- export type TimeSeriesItemKindQuantitativeTimelineLocalForecast =
111
- TimeSeriesItemKindQuantitativeTimelineLocalForecastValue
112
- | TimeSeriesItemKindQuantitativeTimelineLocalForecastNotValue
113
-
114
- export interface TimeSeriesItemKindQuantitativeTimelineLocal {
115
- name: string | null;
116
- forecasts: TimeSeriesItemKindQuantitativeTimelineLocalForecast [];
117
- }
118
-
119
- export interface TimeSeriesItemKindQuantitativeWholeLocalForecastValue {
120
- unit: string;
121
- value: string;
122
- condition?: string;
123
- }
124
-
125
- export interface TimeSeriesItemKindQuantitativeWholeLocalForecastNotValue {
126
- unit: string;
127
- value: null;
128
- condition: '値なし';
129
- }
130
-
131
- export type TimeSeriesItemKindQuantitativeWholeLocalForecast =
132
- TimeSeriesItemKindQuantitativeWholeLocalForecastValue
133
- | TimeSeriesItemKindQuantitativeWholeLocalForecastNotValue;
134
-
135
- export interface TimeSeriesItemKindQuantitativeWholeLocal {
136
- name: string | null;
137
- forecast: TimeSeriesItemKindQuantitativeWholeLocalForecast;
138
- }
139
-
140
- export interface TimeSeriesItemKindQuantitativeTimeline {
141
- type: string;
142
- forecastType: 'timeline';
143
- locals: TimeSeriesItemKindQuantitativeTimelineLocal [];
144
- }
145
-
146
- export interface TimeSeriesItemKindQuantitativeWhole {
147
- type: string;
148
- forecastType: 'whole';
149
- locals: TimeSeriesItemKindQuantitativeWholeLocal[];
150
- }
151
-
152
- export type TimeSeriesItemKindQuantitative =
153
- TimeSeriesItemKindQuantitativeTimeline
154
- | TimeSeriesItemKindQuantitativeWhole;
155
-
156
- export interface TimeSeriesItemKind extends Components.CodeName {
157
- riskDegrees: TimeSeriesItemKindRiskDegree[];
158
- quantitative?: TimeSeriesItemKindQuantitative[];
159
- }
160
-
161
- export interface TimeSeriesItem extends Components.CodeName {
162
- kinds: TimeSeriesItemKind[];
163
- }
164
-
165
- export interface TimeSeries {
166
- timeDefines: TimeSeriesTimeDefine[];
167
- items: TimeSeriesItem[];
168
- }
169
-
170
- export interface PublicBodyVPWW54 {
171
- notice?: string;
172
- prefectures: Prefecture[];
173
- regions: Region[];
174
- areas: Area[];
175
- cities: City[];
176
- timeSeries?: [TimeSeries] | [TimeSeries, TimeSeries];
177
- }
178
-
179
- export interface PublicBodyVPOA50 {
180
- notice?: string;
181
- prefectures: PrefectureVPOA50[];
182
- }
183
-
184
- export interface PublicVPWW54 extends TelegramJSONMain {
185
- _schema: Schema;
186
- type: '気象警報・注意報(H27)';
187
- title: string;
188
- infoType: '発表' | '訂正';
189
- targetDateTimeDubious?: never;
190
- targetDuration?: never;
191
- validDateTime?: never;
192
- eventId: null;
193
- serialNo: null;
194
- infoKind: '気象警報・注意報';
195
- body: PublicBodyVPWW54;
196
- }
197
-
198
- export interface PublicVPOA50 extends TelegramJSONMain {
199
- _schema: Schema;
200
- type: '記録的短時間大雨情報';
201
- title: string;
202
- infoType: '発表' | '訂正' | '取消';
203
- targetDateTimeDubious?: never;
204
- targetDuration?: never;
205
- validDateTime?: never;
206
- eventId: string;
207
- serialNo: string;
208
- infoKind: '記録的短時間大雨情報';
209
- body: PublicBodyVPOA50;
210
- }
211
-
212
- export type Main = PublicVPWW54 | PublicVPOA50;
213
- }
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
+
4
+ export namespace WeatherWarning {
5
+ export interface Schema {
6
+ type: 'weather-warning';
7
+ version: '1.0.0';
8
+ }
9
+
10
+ export interface KindNextKindDateTime {
11
+ value: string;
12
+ validFormat: string;
13
+ precision: string;
14
+ }
15
+
16
+ export interface KindNextKind extends Components.CodeName {
17
+ condition?: '土砂災害' | '浸水害' | '土砂災害、浸水害';
18
+ dateTime: KindNextKindDateTime;
19
+ sentence?: string;
20
+ }
21
+
22
+
23
+ export interface Kind extends Components.CodeName {
24
+ status: '発表' | '継続' | '特別警報から警報' | '特別警報から注意報' | '警報から注意報' | '解除';
25
+ condition?: '土砂災害' | '浸水害' | '土砂災害、浸水害';
26
+ attentions?: string[];
27
+ additions?: string[];
28
+ lastKind?: Components.CodeName;
29
+ nextKinds?: KindNextKind[];
30
+ }
31
+
32
+ export interface KindVPOA50 extends Components.CodeName {
33
+ status: '発表' | 'なし';
34
+ }
35
+
36
+ export interface PrefectureBase extends Components.CodeName {
37
+ kinds: Kind[];
38
+ changeStatus: '警報・注意報種別に変化有' | '警報・注意報種別に変化無、量的予想事項等に変化有' | '変化無';
39
+ fullStatus: '全域' | '一部';
40
+ editingMark: boolean;
41
+ condition?: never;
42
+ }
43
+
44
+ export interface PrefectureNone extends Components.CodeName {
45
+ kinds: [];
46
+ changeStatus?: never;
47
+ fullStatus?: never;
48
+ editingMark?: never;
49
+ condition: '発表警報・注意報はなし';
50
+ }
51
+
52
+ export type Prefecture = PrefectureBase | PrefectureNone;
53
+
54
+ export interface PrefectureVPOA50 extends Components.CodeName {
55
+ kinds: [KindVPOA50];
56
+ }
57
+
58
+ export type Region = Prefecture;
59
+ export type Area = Prefecture;
60
+ export type City = Omit<PrefectureBase, 'fullStatus' | 'editingMark'> | PrefectureNone;
61
+
62
+ export interface TimeSeriesTimeDefine {
63
+ timeId: string;
64
+ dateTime: string;
65
+ duration: string;
66
+ name: string;
67
+ }
68
+
69
+ export interface TimeSeriesItemKindRiskDegreeLocalSignificance extends Components.CodeName {
70
+ refId: string;
71
+ }
72
+
73
+ export interface TimeSeriesItemKindRiskDegreeLocalPeakTime {
74
+ date?: string;
75
+ term: string;
76
+ }
77
+
78
+ export interface TimeSeriesItemKindRiskDegreeLocalFuture extends Components.CodeName {
79
+ sentence: string;
80
+ }
81
+
82
+ export interface TimeSeriesItemKindRiskDegreeLocal {
83
+ name: string | null;
84
+ significances: TimeSeriesItemKindRiskDegreeLocalSignificance[];
85
+ peakTime?: TimeSeriesItemKindRiskDegreeLocalPeakTime;
86
+ attentions?: string[];
87
+ additions?: string[];
88
+ future?: TimeSeriesItemKindRiskDegreeLocalFuture;
89
+ }
90
+
91
+ export interface TimeSeriesItemKindRiskDegree {
92
+ type: string;
93
+ locals: TimeSeriesItemKindRiskDegreeLocal[];
94
+ }
95
+
96
+ export interface TimeSeriesItemKindQuantitativeTimelineLocalForecastValue {
97
+ refId: string;
98
+ unit: string;
99
+ value: string | null;
100
+ condition?: string;
101
+ }
102
+
103
+ export interface TimeSeriesItemKindQuantitativeTimelineLocalForecastNotValue {
104
+ refId: string;
105
+ unit: string;
106
+ value: null;
107
+ condition?: '値なし';
108
+ }
109
+
110
+ export type TimeSeriesItemKindQuantitativeTimelineLocalForecast =
111
+ TimeSeriesItemKindQuantitativeTimelineLocalForecastValue
112
+ | TimeSeriesItemKindQuantitativeTimelineLocalForecastNotValue
113
+
114
+ export interface TimeSeriesItemKindQuantitativeTimelineLocal {
115
+ name: string | null;
116
+ forecasts: TimeSeriesItemKindQuantitativeTimelineLocalForecast [];
117
+ }
118
+
119
+ export interface TimeSeriesItemKindQuantitativeWholeLocalForecastValue {
120
+ unit: string;
121
+ value: string;
122
+ condition?: string;
123
+ }
124
+
125
+ export interface TimeSeriesItemKindQuantitativeWholeLocalForecastNotValue {
126
+ unit: string;
127
+ value: null;
128
+ condition: '値なし';
129
+ }
130
+
131
+ export type TimeSeriesItemKindQuantitativeWholeLocalForecast =
132
+ TimeSeriesItemKindQuantitativeWholeLocalForecastValue
133
+ | TimeSeriesItemKindQuantitativeWholeLocalForecastNotValue;
134
+
135
+ export interface TimeSeriesItemKindQuantitativeWholeLocal {
136
+ name: string | null;
137
+ forecast: TimeSeriesItemKindQuantitativeWholeLocalForecast;
138
+ }
139
+
140
+ export interface TimeSeriesItemKindQuantitativeTimeline {
141
+ type: string;
142
+ forecastType: 'timeline';
143
+ locals: TimeSeriesItemKindQuantitativeTimelineLocal [];
144
+ }
145
+
146
+ export interface TimeSeriesItemKindQuantitativeWhole {
147
+ type: string;
148
+ forecastType: 'whole';
149
+ locals: TimeSeriesItemKindQuantitativeWholeLocal[];
150
+ }
151
+
152
+ export type TimeSeriesItemKindQuantitative =
153
+ TimeSeriesItemKindQuantitativeTimeline
154
+ | TimeSeriesItemKindQuantitativeWhole;
155
+
156
+ export interface TimeSeriesItemKind extends Components.CodeName {
157
+ riskDegrees: TimeSeriesItemKindRiskDegree[];
158
+ quantitative?: TimeSeriesItemKindQuantitative[];
159
+ }
160
+
161
+ export interface TimeSeriesItem extends Components.CodeName {
162
+ kinds: TimeSeriesItemKind[];
163
+ }
164
+
165
+ export interface TimeSeries {
166
+ timeDefines: TimeSeriesTimeDefine[];
167
+ items: TimeSeriesItem[];
168
+ }
169
+
170
+ export interface PublicBodyVPWW54 {
171
+ notice?: string;
172
+ prefectures: Prefecture[];
173
+ regions: Region[];
174
+ areas: Area[];
175
+ cities: City[];
176
+ timeSeries?: [TimeSeries] | [TimeSeries, TimeSeries];
177
+ }
178
+
179
+ export interface PublicBodyVPOA50 {
180
+ notice?: string;
181
+ prefectures: PrefectureVPOA50[];
182
+ }
183
+
184
+ export interface PublicVPWW54 extends TelegramJSONMain {
185
+ _schema: Schema;
186
+ type: '気象警報・注意報(H27)';
187
+ title: string;
188
+ infoType: '発表' | '訂正';
189
+ targetDateTimeDubious?: never;
190
+ targetDuration?: never;
191
+ validDateTime?: never;
192
+ eventId: null;
193
+ serialNo: null;
194
+ infoKind: '気象警報・注意報';
195
+ body: PublicBodyVPWW54;
196
+ }
197
+
198
+ export interface PublicVPOA50 extends TelegramJSONMain {
199
+ _schema: Schema;
200
+ type: '記録的短時間大雨情報';
201
+ title: string;
202
+ infoType: '発表' | '訂正' | '取消';
203
+ targetDateTimeDubious?: never;
204
+ targetDuration?: never;
205
+ validDateTime?: never;
206
+ eventId: string;
207
+ serialNo: string;
208
+ infoKind: '記録的短時間大雨情報';
209
+ body: PublicBodyVPOA50;
210
+ }
211
+
212
+ export type Main = PublicVPWW54 | PublicVPOA50;
213
+ }