@dmdata/telegram-json-types 1.1.13 → 1.1.14

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 (45) hide show
  1. package/dist/build.d.ts +1 -1
  2. package/dist/build.js +72 -68
  3. package/dist/config.d.ts +3 -3
  4. package/dist/config.js +7 -7
  5. package/dist/jschema/earthquake-counts_1.0.0.json +1 -1
  6. package/dist/jschema/earthquake-explanation_1.0.0.json +1 -1
  7. package/dist/jschema/earthquake-hypocenter-update_1.0.0.json +1 -1
  8. package/dist/jschema/earthquake-information_1.0.0.json +1 -1
  9. package/dist/jschema/earthquake-information_1.1.0.json +1 -1
  10. package/dist/jschema/earthquake-nankai_1.0.0.json +1 -1
  11. package/dist/jschema/eew-information_1.0.0.json +1 -1
  12. package/dist/jschema/tsunami-information_1.0.0.json +1 -1
  13. package/dist/jschema/volcano-information_1.0.0.json +1 -1
  14. package/dist/jschema/weather-early_1.0.0.json +1 -1
  15. package/dist/jschema/weather-impact-society_1.0.0.json +1 -1
  16. package/dist/jschema/weather-information_1.0.0.json +1 -1
  17. package/dist/jschema/weather-landslide_1.0.0.json +1 -1
  18. package/dist/jschema/weather-river-flood_1.0.0.json +1 -1
  19. package/dist/jschema/weather-tornado_1.0.0.json +1 -1
  20. package/dist/jschema/weather-typhoon_1.0.0.json +1 -1
  21. package/dist/jschema/weather-warning_1.0.0.json +1 -1
  22. package/dist/jschema-load.d.ts +1 -1
  23. package/dist/jschema-load.js +48 -44
  24. package/package.json +12 -11
  25. package/test/sample-schema-check.test.ts +0 -1
  26. package/types/component/coordinate.d.ts +6 -6
  27. package/types/component/earthquake.d.ts +4 -4
  28. package/types/component/unit-value.d.ts +2 -2
  29. package/types/schema/earthquake-counts/1.0.0.d.ts +6 -6
  30. package/types/schema/earthquake-explanation/1.0.0.d.ts +6 -6
  31. package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +6 -6
  32. package/types/schema/earthquake-information/1.0.0.d.ts +17 -17
  33. package/types/schema/earthquake-information/1.1.0.d.ts +43 -26
  34. package/types/schema/earthquake-nankai/1.0.0.d.ts +12 -12
  35. package/types/schema/eew-information/1.0.0.d.ts +16 -16
  36. package/types/schema/tsunami-information/1.0.0.d.ts +26 -26
  37. package/types/schema/volcano-information/1.0.0.d.ts +25 -25
  38. package/types/schema/weather-early/1.0.0.d.ts +0 -25
  39. package/types/schema/weather-impact-society/1.0.0.d.ts +7 -5
  40. package/types/schema/weather-information/1.0.0.d.ts +4 -4
  41. package/types/schema/weather-landslide/1.0.0.d.ts +3 -3
  42. package/types/schema/weather-river-flood/1.0.0.d.ts +3 -3
  43. package/types/schema/weather-tornado/1.0.0.d.ts +2 -2
  44. package/types/schema/weather-typhoon/1.0.0.d.ts +3 -3
  45. package/types/schema/weather-warning/1.0.0.d.ts +11 -11
@@ -19,7 +19,7 @@ export namespace TsunamiInformation {
19
19
  arrivalTime: string;
20
20
  condition?: 'ただちに津波来襲と予測';
21
21
  } | {
22
- arrivalTime: never;
22
+ arrivalTime?: never;
23
23
  condition: '津波到達中と推測' | '第1波の到達を確認';
24
24
  }) &
25
25
  {
@@ -32,10 +32,10 @@ export namespace TsunamiInformation {
32
32
  } & ({
33
33
  value: string;
34
34
  over?: true;
35
- condition: never;
35
+ condition?: never;
36
36
  } | {
37
37
  value: null;
38
- over: never;
38
+ over?: never;
39
39
  condition?: '巨大' | '高い';
40
40
  });
41
41
 
@@ -58,7 +58,7 @@ export namespace TsunamiInformation {
58
58
  }
59
59
 
60
60
  export interface TsunamiForecastVXSE41 extends TsunamiForecast {
61
- stations: never;
61
+ stations?: never;
62
62
  }
63
63
 
64
64
  export interface TsunamiForecastVXSE51 extends TsunamiForecast {
@@ -68,10 +68,10 @@ export namespace TsunamiInformation {
68
68
  export type TsunamiObservationStationFirstHeight = ({
69
69
  arrivalTime: string;
70
70
  initial?: '押し' | '引き';
71
- condition: never;
71
+ condition?: never;
72
72
  } | {
73
- arrivalTime: never;
74
- initial: never;
73
+ arrivalTime?: never;
74
+ initial?: never;
75
75
  condition: '第1波識別不能';
76
76
  }) & {
77
77
  revise?: '追加' | '更新';
@@ -92,11 +92,11 @@ export namespace TsunamiInformation {
92
92
  condition?: '重要';
93
93
  } | {
94
94
  dateTime: string;
95
- height: never;
95
+ height?: never;
96
96
  condition: '微弱';
97
97
  } | {
98
- dateTime: never;
99
- height: never;
98
+ dateTime?: never;
99
+ height?: never;
100
100
  condition: '観測中';
101
101
  }) &
102
102
  {
@@ -139,8 +139,8 @@ export namespace TsunamiInformation {
139
139
  height: TsunamiEstimationMaxHeightValue;
140
140
  condition?: '重要';
141
141
  } | {
142
- dateTime: never;
143
- height: never;
142
+ dateTime?: never;
143
+ height?: never;
144
144
  condition: '推定中';
145
145
  }) &
146
146
  {
@@ -205,8 +205,8 @@ export namespace TsunamiInformation {
205
205
  type: '津波警報・注意報・予報a';
206
206
  title: string;
207
207
  infoType: '発表' | '訂正';
208
- targetDateTimeDubious: never;
209
- targetDuration: never;
208
+ targetDateTimeDubious?: never;
209
+ targetDuration?: never;
210
210
  validDateTime?: string;
211
211
  eventId: string;
212
212
  serialNo: null;
@@ -217,14 +217,14 @@ export namespace TsunamiInformation {
217
217
  export interface PublicVTSE51 extends TelegramJSONMain {
218
218
  _schema: Schema;
219
219
  type: '津波情報a';
220
- title: '各地の満潮時刻・津波到達予想時刻に関する情報' | '津波観測に関する情報';
220
+ title: '各地の満潮時刻・津波到達予想時刻に関する情報' | '津波観測に関する情報';
221
221
  infoType: '発表' | '訂正';
222
- targetDateTimeDubious: never;
223
- targetDuration: never;
224
- validDateTime: never;
222
+ targetDateTimeDubious?: never;
223
+ targetDuration?: never;
224
+ validDateTime?: never;
225
225
  eventId: string;
226
226
  serialNo: string;
227
- infoKind:'津波情報';
227
+ infoKind: '津波情報';
228
228
  body: PublicBodyVTSE51;
229
229
  }
230
230
 
@@ -234,9 +234,9 @@ export namespace TsunamiInformation {
234
234
  type: '沖合の津波観測に関する情報';
235
235
  title: '沖合の津波観測に関する情報';
236
236
  infoType: '発表' | '訂正';
237
- targetDateTimeDubious: never;
238
- targetDuration: never;
239
- validDateTime: never;
237
+ targetDateTimeDubious?: never;
238
+ targetDuration?: never;
239
+ validDateTime?: never;
240
240
  eventId: string;
241
241
  serialNo: string;
242
242
  infoKind: '津波情報';
@@ -248,11 +248,11 @@ export namespace TsunamiInformation {
248
248
  export interface Cancel extends TelegramJSONMain {
249
249
  type: '津波警報・注意報・予報a' | '津波情報a' | '各地の満潮時刻・津波到達予想時刻に関する情報' | '津波観測に関する情報';
250
250
  infoType: '取消';
251
- targetDateTimeDubious: never;
252
- targetDuration: never;
253
- validDateTime: never;
251
+ targetDateTimeDubious?: never;
252
+ targetDuration?: never;
253
+ validDateTime?: never;
254
254
  eventId: string;
255
- infoKind: '津波警報・注意報・予報'| '津波情報';
255
+ infoKind: '津波警報・注意報・予報' | '津波情報';
256
256
  body: CancelBody;
257
257
  }
258
258
 
@@ -45,7 +45,7 @@ export namespace VolcanoInformation {
45
45
  }
46
46
 
47
47
  export interface TargetEWF extends Target {
48
- crater: never;
48
+ crater?: never;
49
49
  kind: TargetKindEWF;
50
50
  }
51
51
 
@@ -151,7 +151,7 @@ export namespace VolcanoInformation {
151
151
  unit: '漢字';
152
152
  } & ({
153
153
  value: Direction8 | '直上' | '流向不明';
154
- condition: never;
154
+ condition?: never;
155
155
  } | {
156
156
  value: null;
157
157
  condition: '噴煙なし';
@@ -301,9 +301,9 @@ export namespace VolcanoInformation {
301
301
  type: '噴火警報・予報';
302
302
  title: string;
303
303
  infoType: '発表' | '訂正';
304
- targetDateTimeDubious: never;
305
- targetDuration: never;
306
- validDateTime: never;
304
+ targetDateTimeDubious?: never;
305
+ targetDuration?: never;
306
+ validDateTime?: never;
307
307
  eventId: string;
308
308
  serialNo: null;
309
309
  infoKind: '噴火警報・予報';
@@ -315,9 +315,9 @@ export namespace VolcanoInformation {
315
315
  type: '火山の状況に関する解説情報';
316
316
  title: string;
317
317
  infoType: '発表' | '訂正';
318
- targetDateTimeDubious: never;
319
- targetDuration: never;
320
- validDateTime: never;
318
+ targetDateTimeDubious?: never;
319
+ targetDuration?: never;
320
+ validDateTime?: never;
321
321
  eventId: string;
322
322
  serialNo: string;
323
323
  infoKind: '火山の状況に関する解説情報';
@@ -331,8 +331,8 @@ export namespace VolcanoInformation {
331
331
  infoType: '発表' | '訂正';
332
332
  targetDateTime: string | null;
333
333
  targetDateTimeDubious?: '年頃' | '月頃' | '日頃' | '時頃' | '分頃' | '秒頃' | '頃';
334
- targetDuration: never;
335
- validDateTime: never;
334
+ targetDuration?: never;
335
+ validDateTime?: never;
336
336
  eventId: string;
337
337
  serialNo: string;
338
338
  infoKind: '噴火に関する火山観測報';
@@ -344,8 +344,8 @@ export namespace VolcanoInformation {
344
344
  type: '降灰予報(定時)';
345
345
  title: string;
346
346
  infoType: '発表' | '訂正';
347
- targetDateTimeDubious: never;
348
- targetDuration: never;
347
+ targetDateTimeDubious?: never;
348
+ targetDuration?: never;
349
349
  validDateTime: string;
350
350
  eventId: string;
351
351
  serialNo: string;
@@ -358,8 +358,8 @@ export namespace VolcanoInformation {
358
358
  type: '降灰予報(速報)';
359
359
  title: string;
360
360
  infoType: '発表' | '訂正';
361
- targetDateTimeDubious: never;
362
- targetDuration: never;
361
+ targetDateTimeDubious?: never;
362
+ targetDuration?: never;
363
363
  validDateTime: string;
364
364
  eventId: string;
365
365
  serialNo: string;
@@ -372,8 +372,8 @@ export namespace VolcanoInformation {
372
372
  type: '降灰予報(詳細)';
373
373
  title: string;
374
374
  infoType: '発表' | '訂正';
375
- targetDateTimeDubious: never;
376
- targetDuration: never;
375
+ targetDateTimeDubious?: never;
376
+ targetDuration?: never;
377
377
  validDateTime: string;
378
378
  eventId: string;
379
379
  serialNo: string;
@@ -387,8 +387,8 @@ export namespace VolcanoInformation {
387
387
  title: string;
388
388
  infoType: '発表' | '訂正';
389
389
  targetDateTimeDubious?: '年頃' | '月頃' | '日頃' | '時頃' | '分頃' | '秒頃' | '頃';
390
- targetDuration: never;
391
- validDateTime: never;
390
+ targetDuration?: never;
391
+ validDateTime?: never;
392
392
  eventId: string;
393
393
  serialNo: null;
394
394
  infoKind: '噴火速報';
@@ -400,9 +400,9 @@ export namespace VolcanoInformation {
400
400
  type: '火山現象に関する海上警報・海上予報';
401
401
  title: string;
402
402
  infoType: '発表' | '訂正';
403
- targetDateTimeDubious: never;
404
- targetDuration: never;
405
- validDateTime: never;
403
+ targetDateTimeDubious?: never;
404
+ targetDuration?: never;
405
+ validDateTime?: never;
406
406
  eventId: string;
407
407
  serialNo: null;
408
408
  infoKind: '火山現象に関する海上警報・海上予報';
@@ -414,9 +414,9 @@ export namespace VolcanoInformation {
414
414
  type: '火山に関するお知らせ';
415
415
  title: string;
416
416
  infoType: '発表' | '訂正';
417
- targetDateTimeDubious: never;
418
- targetDuration: never;
419
- validDateTime: never;
417
+ targetDateTimeDubious?: never;
418
+ targetDuration?: never;
419
+ validDateTime?: never;
420
420
  eventId: string;
421
421
  serialNo: null;
422
422
  infoKind: '火山に関するお知らせ';
@@ -429,7 +429,7 @@ export namespace VolcanoInformation {
429
429
  title: string;
430
430
  infoType: '取消';
431
431
  targetDateTimeDubious?: '年頃' | '月頃' | '日頃' | '時頃' | '分頃' | '秒頃' | '頃';
432
- targetDuration: never;
432
+ targetDuration?: never;
433
433
  validDateTime?: string;
434
434
  eventId: string;
435
435
  infoKind: '噴火警報・予報' | '火山の状況に関する解説情報' | '噴火に関する火山観測報' | '降灰予報' | '噴火速報' | '火山現象に関する海上警報・海上予報' | '火山に関するお知らせ';
@@ -23,36 +23,11 @@ export namespace WeatherEarly {
23
23
  export interface MainTextZone extends Components.CodeName {
24
24
  }
25
25
 
26
-
27
26
  export interface MainText {
28
27
  text: string;
29
28
  zones: MainTextZone[];
30
29
  }
31
30
 
32
- export interface StatisticPeriodDateTime {
33
- value: string;
34
- validFormat?: string;
35
- }
36
-
37
- export interface StatisticPeriod {
38
- dateTime: StatisticPeriodDateTime;
39
- duration: string;
40
- name: string;
41
- }
42
-
43
- export interface StatisticStationObservedValue {
44
- type: string;
45
- unit: string;
46
- value: string | null;
47
- condition?: string;
48
- }
49
-
50
- export interface StatisticStation extends Components.CodeName {
51
- type: '天候の状況(速報値)';
52
- observedValues: StatisticStationObservedValue[];
53
- }
54
-
55
-
56
31
  export interface EarlyBaseZone extends Components.CodeName {
57
32
  }
58
33
 
@@ -111,9 +111,9 @@ export namespace WeatherImpactSociety {
111
111
  type: '全般天候情報' | '地方天候情報' | '府県天候情報';
112
112
  title: string;
113
113
  infoType: '発表' | '訂正' | '取消';
114
- targetDateTimeDubious: never;
115
- targetDuration: never;
116
- validDateTime: string;
114
+ targetDateTimeDubious?: never;
115
+ targetDuration?: never;
116
+ validDateTime?: string;
117
117
  eventId: string;
118
118
  serialNo: string;
119
119
  infoKind: '天候情報';
@@ -122,17 +122,19 @@ export namespace WeatherImpactSociety {
122
122
 
123
123
  export interface PublicZone extends Public {
124
124
  type: '全般天候情報' | '地方天候情報';
125
+ validDateTime: string;
125
126
  body: PublicBodyZone;
126
127
  }
127
128
 
128
129
  export interface PublicPrefecture extends Public {
129
130
  type: '府県天候情報';
131
+ validDateTime: string;
130
132
  body: PublicBodyPrefecture;
131
133
  }
132
134
 
133
- export interface PublicZoneSeason extends PublicZone {
135
+ export interface PublicZoneSeason extends Public {
134
136
  type: '地方天候情報';
135
- validDateTime: never;
137
+ validDateTime?: never;
136
138
  body: PublicBodyZoneSeason;
137
139
  }
138
140
 
@@ -7,7 +7,7 @@ export namespace WeatherInformation {
7
7
  }
8
8
 
9
9
  export interface PublicBody {
10
- target: never;
10
+ target?: never;
11
11
  notice: string | null;
12
12
  comment: string;
13
13
  }
@@ -17,9 +17,9 @@ export namespace WeatherInformation {
17
17
  type: '全般台風情報' | '全般台風情報(定型)' | '全般台風情報(詳細)' | '全般スモッグ気象情報' | 'スモッグ気象情報' | '地方高温注意情報' | '府県高温注意情報' | '熱中症警戒アラート' | '全般潮位情報' | '地方潮位情報' | '府県潮位情報' | '全般気象情報' | '地方気象情報' | '府県気象情報';
18
18
  title: string;
19
19
  infoType: '発表' | '訂正' | '取消';
20
- targetDateTimeDubious: never;
21
- targetDuration: never;
22
- validDateTime: never;
20
+ targetDateTimeDubious?: never;
21
+ targetDuration?: never;
22
+ validDateTime?: never;
23
23
  eventId: string;
24
24
  serialNo: string | null;
25
25
  infoKind: '同一現象用平文情報';
@@ -38,9 +38,9 @@ export namespace WeatherLandslide {
38
38
  type: '土砂災害警戒情報';
39
39
  title: string;
40
40
  infoType: '発表';
41
- targetDateTimeDubious: never;
42
- targetDuration: never;
43
- validDateTime: never;
41
+ targetDateTimeDubious?: never;
42
+ targetDuration?: never;
43
+ validDateTime?: never;
44
44
  eventId: string;
45
45
  serialNo: string;
46
46
  infoKind: '土砂災害警戒情報';
@@ -179,9 +179,9 @@ export namespace WeatherRiverFlood {
179
179
  type: '指定河川洪水予報';
180
180
  title: string;
181
181
  infoType: '発表' | '訂正' | '取消';
182
- targetDateTimeDubious: never;
183
- targetDuration: never;
184
- validDateTime: never;
182
+ targetDateTimeDubious?: never;
183
+ targetDuration?: never;
184
+ validDateTime?: never;
185
185
  eventId: string;
186
186
  serialNo: string;
187
187
  infoKind: '指定河川洪水予報';
@@ -38,8 +38,8 @@ export namespace WeatherTornado {
38
38
  type: '竜巻注意情報(目撃情報付き)';
39
39
  title: string;
40
40
  infoType: '発表' | '訂正';
41
- targetDateTimeDubious: never;
42
- targetDuration: never;
41
+ targetDateTimeDubious?: never;
42
+ targetDuration?: never;
43
43
  validDateTime: string;
44
44
  eventId: null;
45
45
  serialNo: string;
@@ -34,7 +34,7 @@ export namespace WeatherTyphoon {
34
34
  unit: 'km/h';
35
35
  } & ({
36
36
  value: string;
37
- condition: never;
37
+ condition?: never;
38
38
  } | {
39
39
  value: null;
40
40
  condition: 'ゆっくり' | 'ほとんど停滞';
@@ -118,9 +118,9 @@ export namespace WeatherTyphoon {
118
118
  _schema: Schema;
119
119
  type: '台風解析・予報情報(5日予報)(H30)' | '台風解析・予報情報(5日予報)' | '台風解析・予報情報(3日予報)';
120
120
  title: '台風解析・予報情報';
121
- targetDateTimeDubious: never;
121
+ targetDateTimeDubious?: never;
122
122
  targetDuration: string;
123
- validDateTime: never;
123
+ validDateTime?: never;
124
124
  infoKind: '台風解析・予報情報(5日予報)' | '台風解析・予報情報(3日予報)';
125
125
  eventId: string;
126
126
  serialNo: string;
@@ -37,14 +37,14 @@ export namespace WeatherWarning {
37
37
  changeStatus: '警報・注意報種別に変化有' | '警報・注意報種別に変化無、量的予想事項等に変化有' | '変化無';
38
38
  fullStatus: '全域' | '一部';
39
39
  editingMark: boolean;
40
- condition: never;
40
+ condition?: never;
41
41
  }
42
42
 
43
43
  export interface PrefectureNone extends Components.CodeName {
44
- kinds: {}[];
45
- changeStatus: never;
46
- fullStatus: never;
47
- editingMark: never;
44
+ kinds: [];
45
+ changeStatus?: never;
46
+ fullStatus?: never;
47
+ editingMark?: never;
48
48
  condition: '発表警報・注意報はなし';
49
49
  }
50
50
 
@@ -185,9 +185,9 @@ export namespace WeatherWarning {
185
185
  type: '気象警報・注意報(H27)';
186
186
  title: string;
187
187
  infoType: '発表' | '訂正';
188
- targetDateTimeDubious: never;
189
- targetDuration: never;
190
- validDateTime: never;
188
+ targetDateTimeDubious?: never;
189
+ targetDuration?: never;
190
+ validDateTime?: never;
191
191
  eventId: null;
192
192
  serialNo: null;
193
193
  infoKind: '気象警報・注意報';
@@ -199,9 +199,9 @@ export namespace WeatherWarning {
199
199
  type: '記録的短時間大雨情報';
200
200
  title: string;
201
201
  infoType: '発表' | '訂正' | '取消';
202
- targetDateTimeDubious: never;
203
- targetDuration: never;
204
- validDateTime: never;
202
+ targetDateTimeDubious?: never;
203
+ targetDuration?: never;
204
+ validDateTime?: never;
205
205
  eventId: string;
206
206
  serialNo: string;
207
207
  infoKind: '記録的短時間大雨情報';