@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.
Files changed (65) hide show
  1. package/README.md +6 -1
  2. package/dist/build.d.ts +1 -1
  3. package/dist/build.js +72 -68
  4. package/dist/config.d.ts +3 -3
  5. package/dist/config.js +7 -7
  6. package/dist/jschema/earthquake-counts_1.0.0.json +1 -1
  7. package/dist/jschema/earthquake-explanation_1.0.0.json +1 -1
  8. package/dist/jschema/earthquake-hypocenter-update_1.0.0.json +1 -1
  9. package/dist/jschema/earthquake-information_1.0.0.json +1 -1
  10. package/dist/jschema/earthquake-information_1.1.0.json +1 -1
  11. package/dist/jschema/earthquake-nankai_1.0.0.json +1 -1
  12. package/dist/jschema/eew-information_1.0.0.json +1 -1
  13. package/dist/jschema/forecast-2week-temperature_1.0.0.json +1 -0
  14. package/dist/jschema/forecast-prefecture_1.0.0.json +1 -0
  15. package/dist/jschema/forecast-season_1.0.0.json +1 -0
  16. package/dist/jschema/forecast-warning-possibility_1.0.0.json +1 -0
  17. package/dist/jschema/forecast-weathermap_1.0.0.json +1 -0
  18. package/dist/jschema/tsunami-information_1.0.0.json +1 -1
  19. package/dist/jschema/volcano-information_1.0.0.json +1 -1
  20. package/dist/jschema/weather-early_1.0.0.json +1 -1
  21. package/dist/jschema/weather-impact-society_1.0.0.json +1 -1
  22. package/dist/jschema/weather-impact-society_1.0.1.json +1 -0
  23. package/dist/jschema/weather-information_1.0.0.json +1 -1
  24. package/dist/jschema/weather-landslide_1.0.0.json +1 -1
  25. package/dist/jschema/weather-river-flood_1.0.0.json +1 -1
  26. package/dist/jschema/weather-tornado_1.0.0.json +1 -1
  27. package/dist/jschema/weather-typhoon_1.0.0.json +1 -1
  28. package/dist/jschema/weather-warning_1.0.0.json +1 -1
  29. package/dist/jschema-load.d.ts +1 -1
  30. package/dist/jschema-load.js +48 -44
  31. package/package.json +11 -12
  32. package/test/sample-schema-check.test.ts +23 -14
  33. package/types/component/coordinate.d.ts +6 -6
  34. package/types/component/earthquake.d.ts +4 -4
  35. package/types/component/unit-value.d.ts +2 -2
  36. package/types/index.d.ts +18 -2
  37. package/types/schema/earthquake-counts/1.0.0.d.ts +6 -6
  38. package/types/schema/earthquake-explanation/1.0.0.d.ts +6 -6
  39. package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +6 -6
  40. package/types/schema/earthquake-information/1.0.0.d.ts +17 -17
  41. package/types/schema/earthquake-information/1.1.0.d.ts +43 -26
  42. package/types/schema/earthquake-nankai/1.0.0.d.ts +12 -12
  43. package/types/schema/eew-information/1.0.0.d.ts +16 -16
  44. package/types/schema/forecast-2week-temperature/1.0.0.d.ts +110 -0
  45. package/types/schema/forecast-2week-temperature/index.d.ts +7 -0
  46. package/types/schema/forecast-prefecture/1.0.0.d.ts +526 -0
  47. package/types/schema/forecast-prefecture/index.d.ts +7 -0
  48. package/types/schema/forecast-season/1.0.0.d.ts +169 -0
  49. package/types/schema/forecast-season/index.d.ts +7 -0
  50. package/types/schema/forecast-warning-possibility/1.0.0.d.ts +382 -0
  51. package/types/schema/forecast-warning-possibility/index.d.ts +7 -0
  52. package/types/schema/forecast-weathermap/1.0.0.d.ts +194 -0
  53. package/types/schema/forecast-weathermap/index.d.ts +7 -0
  54. package/types/schema/tsunami-information/1.0.0.d.ts +26 -26
  55. package/types/schema/volcano-information/1.0.0.d.ts +25 -25
  56. package/types/schema/weather-early/1.0.0.d.ts +0 -25
  57. package/types/schema/weather-impact-society/1.0.0.d.ts +7 -5
  58. package/types/schema/weather-impact-society/1.0.1.d.ts +117 -0
  59. package/types/schema/weather-impact-society/index.d.ts +3 -1
  60. package/types/schema/weather-information/1.0.0.d.ts +43 -6
  61. package/types/schema/weather-landslide/1.0.0.d.ts +3 -3
  62. package/types/schema/weather-river-flood/1.0.0.d.ts +3 -3
  63. package/types/schema/weather-tornado/1.0.0.d.ts +2 -2
  64. package/types/schema/weather-typhoon/1.0.0.d.ts +3 -3
  65. 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: never;
36
- targetDuration: never;
37
- validDateTime: never;
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: never;
50
- targetDuration: never;
51
- validDateTime: never;
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: never;
64
- targetDuration: never;
65
- validDateTime: never;
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: never;
78
- targetDuration: never;
79
- validDateTime: never;
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: never;
92
+ arrivalTime?: never;
93
93
  }
94
94
 
95
95
  export interface IntensityRegionUnReached extends IntensityRegion {
96
- condition: never;
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: boolean;
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: boolean;
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: never;
168
- targetDuration: never;
169
- validDateTime: never;
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: never;
182
- targetDuration: never;
183
- validDateTime: never;
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: never;
197
- targetDuration: never;
198
- validDateTime: never;
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: never;
211
- targetDuration: never;
212
- validDateTime: never;
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
+ }
@@ -0,0 +1,7 @@
1
+ import { Forecast2weekTemperature as v1_0_0 } from './1.0.0';
2
+
3
+
4
+ export {
5
+ v1_0_0 as Latest,
6
+ v1_0_0
7
+ };