@dmdata/telegram-json-types 1.2.0 → 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 (52) 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/dist/jschema-load.js +3 -36
  7. package/index.d.ts +2 -2
  8. package/package.json +30 -32
  9. package/test/sample-schema-check.test.ts +68 -68
  10. package/tsconfig.json +25 -25
  11. package/types/component/coordinate.d.ts +27 -27
  12. package/types/component/earthquake.d.ts +77 -77
  13. package/types/component/index.d.ts +17 -17
  14. package/types/component/unit-value.d.ts +13 -13
  15. package/types/component/util.d.ts +20 -20
  16. package/types/index.d.ts +84 -84
  17. package/types/schema/earthquake-counts/1.0.0.d.ts +69 -69
  18. package/types/schema/earthquake-explanation/1.0.0.d.ts +57 -57
  19. package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +53 -53
  20. package/types/schema/earthquake-information/1.0.0.d.ts +158 -158
  21. package/types/schema/earthquake-information/1.1.0.d.ts +224 -224
  22. package/types/schema/earthquake-information/index.d.ts +9 -9
  23. package/types/schema/earthquake-nankai/1.0.0.d.ts +101 -101
  24. package/types/schema/eew-information/1.0.0.d.ts +221 -221
  25. package/types/schema/eew-information/index.d.ts +7 -7
  26. package/types/schema/forecast-2week-temperature/1.0.0.d.ts +110 -110
  27. package/types/schema/forecast-prefecture/1.0.0.d.ts +537 -537
  28. package/types/schema/forecast-season/1.0.0.d.ts +169 -169
  29. package/types/schema/forecast-warning-possibility/1.0.0.d.ts +388 -388
  30. package/types/schema/forecast-warning-possibility/1.1.0.d.ts +129 -129
  31. package/types/schema/forecast-warning-possibility/index.d.ts +9 -9
  32. package/types/schema/forecast-weathermap/1.0.0.d.ts +206 -194
  33. package/types/schema/tsunami-information/1.0.0.d.ts +261 -261
  34. package/types/schema/tsunami-information/1.1.0.d.ts +298 -298
  35. package/types/schema/tsunami-information/index.d.ts +9 -9
  36. package/types/schema/volcano-information/1.0.0.d.ts +450 -450
  37. package/types/schema/weather-commentary/1.0.0.d.ts +984 -984
  38. package/types/schema/weather-commentary/index.d.ts +7 -7
  39. package/types/schema/weather-early/1.0.0.d.ts +111 -111
  40. package/types/schema/weather-impact-society/1.0.0.d.ts +143 -143
  41. package/types/schema/weather-impact-society/1.0.1.d.ts +118 -118
  42. package/types/schema/weather-information/1.0.0.d.ts +67 -67
  43. package/types/schema/weather-landslide/1.0.0.d.ts +51 -51
  44. package/types/schema/weather-river-flood/1.0.0.d.ts +192 -192
  45. package/types/schema/weather-tornado/1.0.0.d.ts +55 -55
  46. package/types/schema/weather-typhoon/1.0.0.d.ts +146 -146
  47. package/types/schema/weather-typhoon/index.d.ts +7 -7
  48. package/types/schema/weather-warning/1.0.0.d.ts +213 -213
  49. package/types/schema/weather-warning/1.1.0.d.ts +469 -469
  50. package/types/schema/weather-warning/index.d.ts +9 -9
  51. package/types/schema/weather-warning-timeseries/1.0.0.d.ts +357 -385
  52. package/types/schema/weather-warning-timeseries/index.d.ts +7 -7
@@ -1,192 +1,192 @@
1
- import { TelegramJSONMain } from '../../main';
2
- import { Components } from '../../component';
3
-
4
- export namespace WeatherRiverFlood {
5
- export interface Schema {
6
- type: 'weather-river-flood';
7
- version: '1.0.0';
8
- }
9
-
10
- export interface TargetKind extends Components.CodeName {
11
- condition: string;
12
- }
13
-
14
- export interface Target extends Components.CodeName {
15
- kind: TargetKind;
16
- }
17
-
18
- export interface MainTextRiver extends Components.CodeName {
19
- }
20
-
21
- export interface MainTextStation extends Components.CodeName {
22
- location: string;
23
- }
24
-
25
- export interface MainText {
26
- text: string | null;
27
- rivers: MainTextRiver[];
28
- stations: MainTextStation[];
29
- }
30
-
31
- export interface SuppositionKind extends Components.CodeName {
32
- }
33
-
34
- export interface SuppositionDistrictPrefecture {
35
- code: string | null;
36
- name: string | null;
37
- }
38
-
39
- export interface SuppositionDistrictCity {
40
- code: string | null;
41
- name: string | null;
42
- }
43
-
44
- export interface SuppositionDistrict {
45
- code?: string;
46
- name: string;
47
- prefecture: SuppositionDistrictPrefecture;
48
- city: SuppositionDistrictCity;
49
- district: string | null;
50
- }
51
-
52
- export interface Supposition {
53
- type: '浸水想定地区' | '浸水想定地区(氾濫発生情報)';
54
- description: string;
55
- kind: SuppositionKind;
56
- districts: SuppositionDistrict[];
57
- }
58
-
59
- export interface RainfallTimeSeriesTimeDefine {
60
- timeId: string;
61
- dateTime: string;
62
- duration: string;
63
- name: string;
64
- }
65
-
66
- export interface RainfallTimeSeriesItemForecast {
67
- refId: string;
68
- unit: string;
69
- value: string | null;
70
- }
71
-
72
- export interface RainfallTimeSeriesItem {
73
- name: string;
74
- forecasts: RainfallTimeSeriesItemForecast [];
75
- }
76
-
77
- export interface RainfallTimeSeries {
78
- timeDefines: RainfallTimeSeriesTimeDefine[];
79
- items: RainfallTimeSeriesItem[];
80
- }
81
-
82
- export interface Rainfall {
83
- dateTime: string;
84
- text: string;
85
- timeSeries: RainfallTimeSeries[];
86
- }
87
-
88
- export interface WaterLevelTimeSeriesTimeDefine {
89
- timeId: string;
90
- dateTime: string;
91
- name: string;
92
- }
93
-
94
- export interface WaterLevelTimeSeriesItemForecast {
95
- refId: string;
96
- unit: string;
97
- value: string | null;
98
- level: string | null;
99
- condition?: string;
100
- }
101
-
102
- export interface WaterLevelTimeSeriesItem extends Components.CodeName {
103
- location: string;
104
- type: '水位' | '流量';
105
- forecasts: WaterLevelTimeSeriesItemForecast [];
106
- }
107
-
108
- export interface WaterLevelTimeSeries {
109
- timeDefines: WaterLevelTimeSeriesTimeDefine[];
110
- items: WaterLevelTimeSeriesItem[];
111
- }
112
-
113
- export interface WaterLevel {
114
- timeSeries: WaterLevelTimeSeries[];
115
- }
116
-
117
- export interface FloodedWaterAssumptionsAttainmentTime {
118
- value: string;
119
- dubious: '頃';
120
- }
121
-
122
- export interface FloodedWaterAssumptionsAttainmentDeepestTime {
123
- value: string;
124
- dubious: '頃';
125
- }
126
-
127
- export interface FloodedWaterAssumptionsFloodDepth {
128
- from: string | null;
129
- to: string | null;
130
- }
131
-
132
- export interface FloodedWaterAssumptions {
133
- district: string | null;
134
- attainmentTime: FloodedWaterAssumptionsAttainmentTime;
135
- attainmentDeepestTime: FloodedWaterAssumptionsAttainmentDeepestTime;
136
- floodDepth: FloodedWaterAssumptionsFloodDepth;
137
- }
138
-
139
- export interface FloodedWater extends Components.CodeName {
140
- dateTime: string;
141
- text: string;
142
- assumptions: FloodedWaterAssumptions[];
143
- }
144
-
145
- export interface Office extends Components.CodeName {
146
- type: '水位関係' | '気象関係';
147
- contact: string;
148
- url: string;
149
- }
150
-
151
- export interface ReferenceCriterion {
152
- type: string;
153
- unit: string;
154
- value: string | null;
155
- condition: '有効' | '無効';
156
- }
157
-
158
- export interface Reference extends Components.CodeName {
159
- location: string;
160
- district: string | null;
161
- sections: string[];
162
- criteria: ReferenceCriterion[];
163
- }
164
-
165
- export interface PublicBody {
166
- notice?: string;
167
- target: Target;
168
- mainTexts?: MainText[];
169
- supposition?: Supposition;
170
- rainfall?: Rainfall;
171
- waterLevel?: WaterLevel;
172
- floodedWaters?: FloodedWater[];
173
- offices?: Office[];
174
- reference?: Reference[];
175
- }
176
-
177
- export interface Public extends TelegramJSONMain {
178
- _schema: Schema;
179
- type: '指定河川洪水予報';
180
- title: string;
181
- infoType: '発表' | '訂正' | '取消';
182
- targetDateTimeDubious?: never;
183
- targetDuration?: never;
184
- validDateTime?: never;
185
- eventId: string;
186
- serialNo: string;
187
- infoKind: '指定河川洪水予報';
188
- body: PublicBody;
189
- }
190
-
191
- export type Main = Public;
192
- }
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
+
4
+ export namespace WeatherRiverFlood {
5
+ export interface Schema {
6
+ type: 'weather-river-flood';
7
+ version: '1.0.0';
8
+ }
9
+
10
+ export interface TargetKind extends Components.CodeName {
11
+ condition: string;
12
+ }
13
+
14
+ export interface Target extends Components.CodeName {
15
+ kind: TargetKind;
16
+ }
17
+
18
+ export interface MainTextRiver extends Components.CodeName {
19
+ }
20
+
21
+ export interface MainTextStation extends Components.CodeName {
22
+ location: string;
23
+ }
24
+
25
+ export interface MainText {
26
+ text: string | null;
27
+ rivers: MainTextRiver[];
28
+ stations: MainTextStation[];
29
+ }
30
+
31
+ export interface SuppositionKind extends Components.CodeName {
32
+ }
33
+
34
+ export interface SuppositionDistrictPrefecture {
35
+ code: string | null;
36
+ name: string | null;
37
+ }
38
+
39
+ export interface SuppositionDistrictCity {
40
+ code: string | null;
41
+ name: string | null;
42
+ }
43
+
44
+ export interface SuppositionDistrict {
45
+ code?: string;
46
+ name: string;
47
+ prefecture: SuppositionDistrictPrefecture;
48
+ city: SuppositionDistrictCity;
49
+ district: string | null;
50
+ }
51
+
52
+ export interface Supposition {
53
+ type: '浸水想定地区' | '浸水想定地区(氾濫発生情報)';
54
+ description: string;
55
+ kind: SuppositionKind;
56
+ districts: SuppositionDistrict[];
57
+ }
58
+
59
+ export interface RainfallTimeSeriesTimeDefine {
60
+ timeId: string;
61
+ dateTime: string;
62
+ duration: string;
63
+ name: string;
64
+ }
65
+
66
+ export interface RainfallTimeSeriesItemForecast {
67
+ refId: string;
68
+ unit: string;
69
+ value: string | null;
70
+ }
71
+
72
+ export interface RainfallTimeSeriesItem {
73
+ name: string;
74
+ forecasts: RainfallTimeSeriesItemForecast [];
75
+ }
76
+
77
+ export interface RainfallTimeSeries {
78
+ timeDefines: RainfallTimeSeriesTimeDefine[];
79
+ items: RainfallTimeSeriesItem[];
80
+ }
81
+
82
+ export interface Rainfall {
83
+ dateTime: string;
84
+ text: string;
85
+ timeSeries: RainfallTimeSeries[];
86
+ }
87
+
88
+ export interface WaterLevelTimeSeriesTimeDefine {
89
+ timeId: string;
90
+ dateTime: string;
91
+ name: string;
92
+ }
93
+
94
+ export interface WaterLevelTimeSeriesItemForecast {
95
+ refId: string;
96
+ unit: string;
97
+ value: string | null;
98
+ level: string | null;
99
+ condition?: string;
100
+ }
101
+
102
+ export interface WaterLevelTimeSeriesItem extends Components.CodeName {
103
+ location: string;
104
+ type: '水位' | '流量';
105
+ forecasts: WaterLevelTimeSeriesItemForecast [];
106
+ }
107
+
108
+ export interface WaterLevelTimeSeries {
109
+ timeDefines: WaterLevelTimeSeriesTimeDefine[];
110
+ items: WaterLevelTimeSeriesItem[];
111
+ }
112
+
113
+ export interface WaterLevel {
114
+ timeSeries: WaterLevelTimeSeries[];
115
+ }
116
+
117
+ export interface FloodedWaterAssumptionsAttainmentTime {
118
+ value: string;
119
+ dubious: '頃';
120
+ }
121
+
122
+ export interface FloodedWaterAssumptionsAttainmentDeepestTime {
123
+ value: string;
124
+ dubious: '頃';
125
+ }
126
+
127
+ export interface FloodedWaterAssumptionsFloodDepth {
128
+ from: string | null;
129
+ to: string | null;
130
+ }
131
+
132
+ export interface FloodedWaterAssumptions {
133
+ district: string | null;
134
+ attainmentTime: FloodedWaterAssumptionsAttainmentTime;
135
+ attainmentDeepestTime: FloodedWaterAssumptionsAttainmentDeepestTime;
136
+ floodDepth: FloodedWaterAssumptionsFloodDepth;
137
+ }
138
+
139
+ export interface FloodedWater extends Components.CodeName {
140
+ dateTime: string;
141
+ text: string;
142
+ assumptions: FloodedWaterAssumptions[];
143
+ }
144
+
145
+ export interface Office extends Components.CodeName {
146
+ type: '水位関係' | '気象関係';
147
+ contact: string;
148
+ url: string;
149
+ }
150
+
151
+ export interface ReferenceCriterion {
152
+ type: string;
153
+ unit: string;
154
+ value: string | null;
155
+ condition: '有効' | '無効';
156
+ }
157
+
158
+ export interface Reference extends Components.CodeName {
159
+ location: string;
160
+ district: string | null;
161
+ sections: string[];
162
+ criteria: ReferenceCriterion[];
163
+ }
164
+
165
+ export interface PublicBody {
166
+ notice?: string;
167
+ target: Target;
168
+ mainTexts?: MainText[];
169
+ supposition?: Supposition;
170
+ rainfall?: Rainfall;
171
+ waterLevel?: WaterLevel;
172
+ floodedWaters?: FloodedWater[];
173
+ offices?: Office[];
174
+ reference?: Reference[];
175
+ }
176
+
177
+ export interface Public extends TelegramJSONMain {
178
+ _schema: Schema;
179
+ type: '指定河川洪水予報';
180
+ title: string;
181
+ infoType: '発表' | '訂正' | '取消';
182
+ targetDateTimeDubious?: never;
183
+ targetDuration?: never;
184
+ validDateTime?: never;
185
+ eventId: string;
186
+ serialNo: string;
187
+ infoKind: '指定河川洪水予報';
188
+ body: PublicBody;
189
+ }
190
+
191
+ export type Main = Public;
192
+ }
@@ -1,55 +1,55 @@
1
- import { TelegramJSONMain } from '../../main';
2
- import { Components } from '../../component';
3
-
4
- export namespace WeatherTornado {
5
- export interface Schema {
6
- type: 'weather-tornado';
7
- version: '1.0.0';
8
- }
9
-
10
- export interface Witness extends Components.CodeName {
11
- }
12
-
13
- export interface TargetKind extends Components.CodeName {
14
- code: '1' | '0';
15
- name: '竜巻注意情報' | 'なし';
16
- status: '発表' | 'なし';
17
- }
18
-
19
- export interface Target extends Components.CodeName {
20
- kinds: [TargetKind];
21
- }
22
-
23
- export interface Region extends Target {
24
- }
25
-
26
- export interface Area extends Target {
27
- }
28
-
29
- export interface City extends Target {
30
- }
31
-
32
- export interface PublicBody {
33
- witnesses?: Witness[];
34
- targets: Target[];
35
- regions: Region[];
36
- areas: Area[];
37
- cities: City[];
38
- }
39
-
40
- export interface PublicEvent extends TelegramJSONMain {
41
- _schema: Schema;
42
- type: '竜巻注意情報(目撃情報付き)';
43
- title: string;
44
- infoType: '発表' | '訂正';
45
- targetDateTimeDubious?: never;
46
- targetDuration?: never;
47
- validDateTime: string;
48
- eventId: null;
49
- serialNo: string;
50
- infoKind: '竜巻注意情報';
51
- body: PublicBody;
52
- }
53
-
54
- export type Main = PublicEvent;
55
- }
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
+
4
+ export namespace WeatherTornado {
5
+ export interface Schema {
6
+ type: 'weather-tornado';
7
+ version: '1.0.0';
8
+ }
9
+
10
+ export interface Witness extends Components.CodeName {
11
+ }
12
+
13
+ export interface TargetKind extends Components.CodeName {
14
+ code: '1' | '0';
15
+ name: '竜巻注意情報' | 'なし';
16
+ status: '発表' | 'なし';
17
+ }
18
+
19
+ export interface Target extends Components.CodeName {
20
+ kinds: [TargetKind];
21
+ }
22
+
23
+ export interface Region extends Target {
24
+ }
25
+
26
+ export interface Area extends Target {
27
+ }
28
+
29
+ export interface City extends Target {
30
+ }
31
+
32
+ export interface PublicBody {
33
+ witnesses?: Witness[];
34
+ targets: Target[];
35
+ regions: Region[];
36
+ areas: Area[];
37
+ cities: City[];
38
+ }
39
+
40
+ export interface PublicEvent extends TelegramJSONMain {
41
+ _schema: Schema;
42
+ type: '竜巻注意情報(目撃情報付き)';
43
+ title: string;
44
+ infoType: '発表' | '訂正';
45
+ targetDateTimeDubious?: never;
46
+ targetDuration?: never;
47
+ validDateTime: string;
48
+ eventId: null;
49
+ serialNo: string;
50
+ infoKind: '竜巻注意情報';
51
+ body: PublicBody;
52
+ }
53
+
54
+ export type Main = PublicEvent;
55
+ }