@dmdata/telegram-json-types 1.1.3 → 1.1.7

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.
@@ -1,7 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { CodeName } from '@t/component/code-name';
3
- import { Earthquake } from '@t/component/earthquake';
4
- import { UnitValueNotNull } from '@t/component/unit-value';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component/';
5
3
 
6
4
  export namespace EarthquakeInformation {
7
5
  export interface Schema {
@@ -13,22 +11,22 @@ export namespace EarthquakeInformation {
13
11
  export type LpgmIntensityClass = '0' | '1' | '2' | '3' | '4';
14
12
  export type LpgmCategory = '1' | '2' | '3' | '4';
15
13
 
16
- export interface IntensityMaxInt extends CodeName {
14
+ export interface IntensityMaxInt extends Components.CodeName {
17
15
  maxInt: IntensityClass;
18
16
  }
19
17
 
20
- export interface IntensityMaxIntOnRevise extends CodeName {
18
+ export interface IntensityMaxIntOnRevise extends Components.CodeName {
21
19
  maxInt?: IntensityClass;
22
20
  revise?: '上方修正' | '追加';
23
21
  }
24
22
 
25
- export interface IntensityCity extends CodeName {
23
+ export interface IntensityCity extends Components.CodeName {
26
24
  maxInt?: IntensityClass;
27
25
  revise?: '上方修正' | '追加';
28
26
  condition?: '震度5弱以上未入電';
29
27
  }
30
28
 
31
- export interface IntensityStation extends CodeName {
29
+ export interface IntensityStation extends Components.CodeName {
32
30
  int: IntensityClass | '!5-';
33
31
  revise?: '上方修正' | '追加';
34
32
  condition?: '震度5弱以上未入電';
@@ -38,17 +36,17 @@ export namespace EarthquakeInformation {
38
36
  maxLpgmInt: LpgmIntensityClass;
39
37
  };
40
38
  export type IntensityLpgmStationPrePeriod = {
41
- periodicBand: UnitValueNotNull<never, '秒台'>;
39
+ periodicBand: Components.UnitValueNotNull<never, '秒台'>;
42
40
  lpgmInt: LpgmIntensityClass;
43
- sva: UnitValueNotNull<never, 'cm/s'>;
41
+ sva: Components.UnitValueNotNull<never, 'cm/s'>;
44
42
  };
45
43
  export type IntensityLpgmStation = IntensityStation & {
46
44
  lpgmInt: LpgmIntensityClass;
47
- sva: UnitValueNotNull<never, 'cm/s'>;
45
+ sva: Components.UnitValueNotNull<never, 'cm/s'>;
48
46
  prePeriods: IntensityLpgmStationPrePeriod[];
49
47
  }
50
48
 
51
- export type Comment = {
49
+ export interface Comments {
52
50
  free?: string;
53
51
  forecast?: {
54
52
  text: string;
@@ -58,7 +56,7 @@ export namespace EarthquakeInformation {
58
56
  text: string;
59
57
  codes: string[];
60
58
  };
61
- };
59
+ }
62
60
 
63
61
 
64
62
  export interface IntensityVXSE51 {
@@ -88,27 +86,27 @@ export namespace EarthquakeInformation {
88
86
  export interface PublicBodyVXSE51 {
89
87
  intensity: IntensityVXSE51;
90
88
  text?: string;
91
- comments: Omit<Comment, 'var'>;
89
+ comments: Omit<Comments, 'var'>;
92
90
  }
93
91
 
94
92
  export interface PublicBodyVXSE52 {
95
- earthquake: Earthquake;
93
+ earthquake: Components.Earthquake;
96
94
  text?: string;
97
- comments: Omit<Comment, 'var'>;
95
+ comments: Omit<Comments, 'var'>;
98
96
  }
99
97
 
100
98
  export interface PublicBodyVXSE53 {
101
- earthquake: Earthquake;
99
+ earthquake: Components.Earthquake;
102
100
  intensity?: IntensityVXSE53;
103
101
  text?: string;
104
- comments: Comment;
102
+ comments: Comments;
105
103
  }
106
104
 
107
105
  export interface PublicBodyVXSE62 {
108
- earthquake: Earthquake;
106
+ earthquake: Components.Earthquake;
109
107
  intensity?: IntensityVXSE62;
110
108
  text?: string;
111
- comments: Comment;
109
+ comments: Comments;
112
110
  }
113
111
 
114
112
  export interface PublicBodyVXZSE40 {
@@ -1,5 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { CodeName } from '@t/component/code-name';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
3
 
4
4
  export namespace EarthquakeNankai {
5
5
  export interface Schema {
@@ -7,7 +7,7 @@ export namespace EarthquakeNankai {
7
7
  version: '1.0.0';
8
8
  }
9
9
 
10
- export interface EarthquakeInfoKind extends CodeName{
10
+ export interface EarthquakeInfoKind extends Components.CodeName {
11
11
  }
12
12
 
13
13
  export interface EarthquakeInfo {
@@ -1,7 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { CodeName } from '@t/component/code-name';
3
- import { Coordinate } from '@t/component/coordinate';
4
- import { UnitValueNotNull } from '@t/component/unit-value';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
5
3
 
6
4
 
7
5
  export namespace EewInformation {
@@ -13,18 +11,18 @@ export namespace EewInformation {
13
11
  export type IntensityClass = '0' | '1' | '2' | '3' | '4' | '5-' | '5+' | '6-' | '6+' | '7';
14
12
  export type LpgmIntensityClass = '0' | '1' | '2' | '3' | '4';
15
13
 
16
- export interface WarningAreaKindLastKind extends CodeName {
14
+ export interface WarningAreaKindLastKind extends Components.CodeName {
17
15
  }
18
16
 
19
- export interface WarningAreaKind extends CodeName {
17
+ export interface WarningAreaKind extends Components.CodeName {
20
18
  lastKind: WarningAreaKindLastKind;
21
19
  }
22
20
 
23
- export interface WarningArea extends CodeName {
21
+ export interface WarningArea extends Components.CodeName {
24
22
  kind: WarningAreaKind;
25
23
  }
26
24
 
27
- export interface EarthquakeHypocenterReduce extends CodeName {
25
+ export interface EarthquakeHypocenterReduce extends Components.CodeName {
28
26
  }
29
27
 
30
28
  export interface EarthquakeHypocenterAccuracy {
@@ -37,9 +35,9 @@ export namespace EewInformation {
37
35
  numberOfMagnitudeCalculation: '0' | '1' | '2' | '3' | '4' | '5';
38
36
  }
39
37
 
40
- export interface EarthquakeHypocenter extends CodeName {
41
- coordinate: Coordinate<'日本測地系'>;
42
- depth: UnitValueNotNull<'深さ', 'km'>;
38
+ export interface EarthquakeHypocenter extends Components.CodeName {
39
+ coordinate: Components.Coordinate<'日本測地系'>;
40
+ depth: Components.UnitValueNotNull<'深さ', 'km'>;
43
41
  reduce: EarthquakeHypocenterReduce;
44
42
  landOrSea?: '内陸' | '海域';
45
43
  accuracy: EarthquakeHypocenterAccuracy;
@@ -76,50 +74,88 @@ export namespace EewInformation {
76
74
  maxIntChangeReason: '0' | '1' | '2' | '3' | '4' | '9';
77
75
  }
78
76
 
79
- export interface IntensityRegionKind extends CodeName {
77
+ export interface IntensityRegionKind extends Components.CodeName {
80
78
  }
81
79
 
82
- export interface IntensityRegion extends CodeName {
80
+ export interface IntensityRegion extends Components.CodeName {
83
81
  forecastMaxInt: IntensityForecastMaxInt;
84
82
  forecastLpgmMaxInt?: IntensityForecastLpgmMaxInt;
83
+ isPlum: boolean;
84
+ isWarning: boolean;
85
85
  kind: IntensityRegionKind;
86
+ condition?: '既に主要動到達と推測';
87
+ arrivalTime?: string;
86
88
  }
87
89
 
90
+ export interface IntensityRegionReached extends IntensityRegion {
91
+ condition: '既に主要動到達と推測';
92
+ arrivalTime: never;
93
+ }
94
+
95
+ export interface IntensityRegionUnReached extends IntensityRegion {
96
+ condition: never;
97
+ arrivalTime: string;
98
+ }
99
+
100
+ export type IntensityRegionItem = IntensityRegionReached | IntensityRegionUnReached
101
+
102
+ export interface IntensityRealtimeStation {
103
+ code: string;
104
+ name: string;
105
+ int: IntensityClass;
106
+ k: string;
107
+ }
88
108
 
89
109
  export interface Intensity {
90
110
  forecastMaxInt: IntensityForecastMaxInt;
91
111
  forecastLpgmMaxInt?: IntensityForecastLpgmMaxInt;
92
112
  appendix?: IntensityAppendix;
93
- regions: IntensityRegion[];
113
+ regions: IntensityRegionItem[];
114
+ }
115
+
116
+ export interface IntensityRealtime {
117
+ stations: IntensityRealtimeStation[];
94
118
  }
95
119
 
96
120
 
97
- export type Comment = {
121
+ export interface Comments {
98
122
  free?: string;
99
123
  warning?: {
100
124
  text: string;
101
125
  codes: string[];
102
126
  };
103
- };
127
+ }
104
128
 
105
129
  export interface PublicCommonBody {
106
130
  isLastInfo: boolean;
131
+ isCanceled: boolean;
132
+ isWarning: boolean;
107
133
  zones?: WarningArea[];
108
134
  prefectures?: WarningArea[];
109
135
  regions?: WarningArea[];
110
136
  earthquake: Earthquake;
111
137
  intensity?: Intensity;
112
138
  text?: string;
113
- comments: Comment;
139
+ comments: Comments;
140
+ }
141
+
142
+ export interface PublicRealtimeBody {
143
+ isLastInfo: boolean;
144
+ isCanceled: boolean;
145
+ earthquake: Earthquake;
146
+ intensity?: IntensityRealtime;
147
+ text?: string;
114
148
  }
115
149
 
116
150
  export interface PublicTestingBody {
117
151
  isLastInfo: false;
152
+ isCanceled: false;
118
153
  text: string;
119
154
  }
120
155
 
121
156
  export interface CancelBody {
122
157
  isLastInfo: true;
158
+ isCanceled: true;
123
159
  text: string;
124
160
  }
125
161
 
@@ -137,6 +173,21 @@ export namespace EewInformation {
137
173
  body: PublicCommonBody;
138
174
  }
139
175
 
176
+ export interface PublicRealtime extends TelegramJSONMain {
177
+ _schema: Schema;
178
+ type: 'リアルタイム震度';
179
+ title: 'リアルタイム震度';
180
+ infoType: '発表' | '訂正';
181
+ targetDateTimeDubious: never;
182
+ targetDuration: never;
183
+ validDateTime: never;
184
+ eventId: string;
185
+ serialNo: string;
186
+ infoKind: '緊急地震速報';
187
+ body: PublicRealtimeBody;
188
+ }
189
+
190
+
140
191
  export interface PublicTesting extends TelegramJSONMain {
141
192
  _schema: Schema;
142
193
  type: '緊急地震速報配信テスト';
@@ -153,8 +204,8 @@ export namespace EewInformation {
153
204
 
154
205
  export interface Cancel extends TelegramJSONMain {
155
206
  _schema: Schema;
156
- type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | '緊急地震速報配信テスト';
157
- title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | '緊急地震速報配信テスト';
207
+ type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | 'リアルタイム震度' | '緊急地震速報配信テスト';
208
+ title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | 'リアルタイム震度' | '緊急地震速報配信テスト';
158
209
  infoType: '取消';
159
210
  targetDateTimeDubious: never;
160
211
  targetDuration: never;
@@ -165,6 +216,6 @@ export namespace EewInformation {
165
216
  body: CancelBody;
166
217
  }
167
218
 
168
- export type Main = PublicCommon | PublicTesting | Cancel;
219
+ export type Main = PublicCommon | PublicRealtime | PublicTesting | Cancel;
169
220
 
170
221
  }
@@ -1,6 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { CodeName } from '@t/component/code-name';
3
- import { Earthquake } from '@t/component/earthquake';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
4
3
 
5
4
 
6
5
  export namespace TsunamiInformation {
@@ -9,10 +8,10 @@ export namespace TsunamiInformation {
9
8
  version: '1.0.0';
10
9
  }
11
10
 
12
- export interface TsunamiForecastKindLastKind extends CodeName {
11
+ export interface TsunamiForecastKindLastKind extends Components.CodeName {
13
12
  }
14
13
 
15
- export interface TsunamiForecastKind extends CodeName {
14
+ export interface TsunamiForecastKind extends Components.CodeName {
16
15
  lastKind: TsunamiForecastKindLastKind;
17
16
  }
18
17
 
@@ -46,12 +45,12 @@ export namespace TsunamiInformation {
46
45
  revise?: '追加' | '更新';
47
46
  }
48
47
 
49
- export interface TsunamiForecastStation extends CodeName {
48
+ export interface TsunamiForecastStation extends Components.CodeName {
50
49
  highTideDateTime: string;
51
50
  firstHeight: TsunamiForecastFirstHeight;
52
51
  }
53
52
 
54
- export interface TsunamiForecast extends CodeName {
53
+ export interface TsunamiForecast extends Components.CodeName {
55
54
  kind: TsunamiForecastKind;
56
55
  firstHeight?: TsunamiForecastFirstHeight;
57
56
  maxHeight?: TsunamiForecastMaxHeight;
@@ -104,7 +103,7 @@ export namespace TsunamiInformation {
104
103
  revise?: '追加' | '更新';
105
104
  }
106
105
 
107
- export interface TsunamiObservationStation extends CodeName {
106
+ export interface TsunamiObservationStation extends Components.CodeName {
108
107
  sensor?: string;
109
108
  firstHeight: TsunamiObservationStationFirstHeight;
110
109
  maxHeight: TsunamiObservationStationMaxHeight;
@@ -148,7 +147,7 @@ export namespace TsunamiInformation {
148
147
  revise?: '追加' | '更新';
149
148
  };
150
149
 
151
- export interface TsunamiEstimation extends CodeName {
150
+ export interface TsunamiEstimation extends Components.CodeName {
152
151
  firstHeight: TsunamiEstimationFirstHeight;
153
152
  maxHeight: TsunamiEstimationMaxHeight;
154
153
  }
@@ -181,21 +180,21 @@ export namespace TsunamiInformation {
181
180
 
182
181
  export interface PublicBodyVTSE41 {
183
182
  tsunami: PublicBodyVTSE41Tsunami;
184
- earthquakes: Earthquake[];
183
+ earthquakes: Components.Earthquake[];
185
184
  text?: string;
186
185
  comments?: Comment;
187
186
  }
188
187
 
189
188
  export interface PublicBodyVTSE51 {
190
189
  tsunami: PublicBodyVTSE51Tsunami;
191
- earthquakes: Earthquake[];
190
+ earthquakes: Components.Earthquake[];
192
191
  text?: string;
193
192
  comments?: Comment;
194
193
  }
195
194
 
196
195
  export interface PublicBodyVTSE52 {
197
196
  tsunami: PublicBodyVTSE52Tsunami;
198
- earthquakes: Earthquake[];
197
+ earthquakes: Components.Earthquake[];
199
198
  text?: string;
200
199
  comments?: Comment;
201
200
  }
@@ -1,5 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { Coordinate } from '@t/component/coordinate';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
3
 
4
4
  export namespace VolcanoInformation {
5
5
  export interface Schema {
@@ -7,7 +7,7 @@ export namespace VolcanoInformation {
7
7
  version: '1.0.0';
8
8
  }
9
9
 
10
- export type VolcanoCoordinate = Required<Coordinate>;
10
+ export type VolcanoCoordinate = Required<Components.Coordinate>;
11
11
  export type Direction8 = '北' | '北東' | '東' | '南東' | '南' | '南西' | '西' | '北西';
12
12
 
13
13
  export interface TargetCrater {
@@ -1,5 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { CodeName } from '@t/component/code-name';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
3
 
4
4
  export namespace WeatherEarly {
5
5
  export interface Schema {
@@ -7,7 +7,7 @@ export namespace WeatherEarly {
7
7
  version: '1.0.0';
8
8
  }
9
9
 
10
- export interface Target extends CodeName {
10
+ export interface Target extends Components.CodeName {
11
11
  }
12
12
 
13
13
  export interface TargetTimeDateTime {
@@ -20,7 +20,7 @@ export namespace WeatherEarly {
20
20
  duration?: string;
21
21
  }
22
22
 
23
- export interface MainTextZone extends CodeName {
23
+ export interface MainTextZone extends Components.CodeName {
24
24
  }
25
25
 
26
26
 
@@ -47,13 +47,13 @@ export namespace WeatherEarly {
47
47
  condition?: string;
48
48
  }
49
49
 
50
- export interface StatisticStation extends CodeName {
50
+ export interface StatisticStation extends Components.CodeName {
51
51
  type: '天候の状況(速報値)';
52
52
  observedValues: StatisticStationObservedValue[];
53
53
  }
54
54
 
55
55
 
56
- export interface EarlyBaseZone extends CodeName {
56
+ export interface EarlyBaseZone extends Components.CodeName {
57
57
  }
58
58
 
59
59
  export interface EarlyBase {
@@ -1,5 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { CodeName } from '@t/component/code-name';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
3
 
4
4
  export namespace WeatherImpactSociety {
5
5
  export interface Schema {
@@ -7,7 +7,7 @@ export namespace WeatherImpactSociety {
7
7
  version: '1.0.0';
8
8
  }
9
9
 
10
- export interface Target extends CodeName {
10
+ export interface Target extends Components.CodeName {
11
11
  }
12
12
 
13
13
  export interface TargetTimeDateTime {
@@ -20,10 +20,10 @@ export namespace WeatherImpactSociety {
20
20
  duration?: string;
21
21
  }
22
22
 
23
- export interface MainTextZone extends CodeName {
23
+ export interface MainTextZone extends Components.CodeName {
24
24
  }
25
25
 
26
- export interface MainTextPrefecture extends CodeName {
26
+ export interface MainTextPrefecture extends Components.CodeName {
27
27
  }
28
28
 
29
29
  export interface MainText {
@@ -50,7 +50,7 @@ export namespace WeatherImpactSociety {
50
50
  condition?: string;
51
51
  }
52
52
 
53
- export interface StatisticStation extends CodeName {
53
+ export interface StatisticStation extends Components.CodeName {
54
54
  type: '天候の状況(速報値)';
55
55
  observedValues: StatisticStationObservedValue[];
56
56
  }
@@ -74,7 +74,7 @@ export namespace WeatherImpactSociety {
74
74
  remark?: string;
75
75
  }
76
76
 
77
- export interface SeasonZone extends CodeName {
77
+ export interface SeasonZone extends Components.CodeName {
78
78
  type: '梅雨入り' | '梅雨明け';
79
79
  eventData: SeasonZoneEventData;
80
80
  }
@@ -1,4 +1,4 @@
1
- import { TelegramJSONMain } from '@t/main';
1
+ import { TelegramJSONMain } from '../../main';
2
2
 
3
3
  export namespace WeatherInformation {
4
4
  export interface Schema {
@@ -1,5 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { CodeName } from '@t/component/code-name';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
3
 
4
4
  export namespace WeatherLandslide {
5
5
  export interface Schema {
@@ -8,16 +8,16 @@ export namespace WeatherLandslide {
8
8
  }
9
9
 
10
10
 
11
- export interface Target extends CodeName {
11
+ export interface Target extends Components.CodeName {
12
12
  }
13
13
 
14
- export interface CityKind extends CodeName {
14
+ export interface CityKind extends Components.CodeName {
15
15
  code: '3' | '1' | '0';
16
16
  name: '警戒' | '解除' | 'なし';
17
17
  status: '発表' | '継続' | '解除' | 'なし';
18
18
  }
19
19
 
20
- export interface City extends CodeName {
20
+ export interface City extends Components.CodeName {
21
21
  kinds: [CityKind];
22
22
  }
23
23
 
@@ -1,5 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { CodeName } from '@t/component/code-name';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
3
 
4
4
  export namespace WeatherRiverFlood {
5
5
  export interface Schema {
@@ -7,18 +7,18 @@ export namespace WeatherRiverFlood {
7
7
  version: '1.0.0';
8
8
  }
9
9
 
10
- export interface TargetKind extends CodeName {
10
+ export interface TargetKind extends Components.CodeName {
11
11
  condition: string;
12
12
  }
13
13
 
14
- export interface Target extends CodeName {
14
+ export interface Target extends Components.CodeName {
15
15
  kind: TargetKind;
16
16
  }
17
17
 
18
- export interface MainTextRiver extends CodeName {
18
+ export interface MainTextRiver extends Components.CodeName {
19
19
  }
20
20
 
21
- export interface MainTextStation extends CodeName {
21
+ export interface MainTextStation extends Components.CodeName {
22
22
  location: string;
23
23
  }
24
24
 
@@ -28,7 +28,7 @@ export namespace WeatherRiverFlood {
28
28
  stations: MainTextStation[];
29
29
  }
30
30
 
31
- export interface SuppositionKind extends CodeName {
31
+ export interface SuppositionKind extends Components.CodeName {
32
32
  }
33
33
 
34
34
  export interface SuppositionDistrictPrefecture {
@@ -99,7 +99,7 @@ export namespace WeatherRiverFlood {
99
99
  condition?: string;
100
100
  }
101
101
 
102
- export interface WaterLevelTimeSeriesItem extends CodeName {
102
+ export interface WaterLevelTimeSeriesItem extends Components.CodeName {
103
103
  location: string;
104
104
  type: '水位' | '流量';
105
105
  forecasts: WaterLevelTimeSeriesItemForecast [];
@@ -136,13 +136,13 @@ export namespace WeatherRiverFlood {
136
136
  floodDepth: FloodedWaterAssumptionsFloodDepth;
137
137
  }
138
138
 
139
- export interface FloodedWater extends CodeName {
139
+ export interface FloodedWater extends Components.CodeName {
140
140
  dateTime: string;
141
141
  text: string;
142
142
  assumptions: FloodedWaterAssumptions[];
143
143
  }
144
144
 
145
- export interface Office extends CodeName {
145
+ export interface Office extends Components.CodeName {
146
146
  type: '水位関係' | '気象関係';
147
147
  contact: string;
148
148
  url: string;
@@ -155,7 +155,7 @@ export namespace WeatherRiverFlood {
155
155
  condition: '有効' | '無効';
156
156
  }
157
157
 
158
- export interface Reference extends CodeName {
158
+ export interface Reference extends Components.CodeName {
159
159
  location: string;
160
160
  district: string | null;
161
161
  sections: string[];
@@ -1,5 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { CodeName } from '@t/component/code-name';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
3
 
4
4
  export namespace WeatherTornado {
5
5
  export interface Schema {
@@ -7,16 +7,16 @@ export namespace WeatherTornado {
7
7
  version: '1.0.0';
8
8
  }
9
9
 
10
- export interface Witness extends CodeName {
10
+ export interface Witness extends Components.CodeName {
11
11
  }
12
12
 
13
- export interface TargetKind extends CodeName {
13
+ export interface TargetKind extends Components.CodeName {
14
14
  code: '1' | '0';
15
15
  name: '竜巻注意情報' | 'なし';
16
16
  status: '発表' | 'なし';
17
17
  }
18
18
 
19
- export interface Target extends CodeName {
19
+ export interface Target extends Components.CodeName {
20
20
  kinds: [TargetKind];
21
21
  }
22
22
 
@@ -1,6 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { Coordinate } from '@t/component/coordinate';
3
- import { UnitValueNotNull } from '@t/component/unit-value';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
4
3
 
5
4
  export namespace WeatherTyphoon {
6
5
  export interface Schema {
@@ -18,7 +17,7 @@ export namespace WeatherTyphoon {
18
17
 
19
18
  export interface Axis {
20
19
  direction: Direction;
21
- radius: UnitValueNotNull;
20
+ radius: Components.UnitValueNotNull;
22
21
  }
23
22
 
24
23
  export interface RealStateClassification {
@@ -42,16 +41,16 @@ export namespace WeatherTyphoon {
42
41
  })
43
42
 
44
43
  export interface RealStateCenter {
45
- coordinate: Coordinate;
44
+ coordinate: Components.Coordinate;
46
45
  location: string | null;
47
46
  direction: Direction;
48
47
  speed: RealStateCenterSpeed;
49
- pressure: UnitValueNotNull<'中心気圧', 'hPa'>;
48
+ pressure: Components.UnitValueNotNull<'中心気圧', 'hPa'>;
50
49
  }
51
50
 
52
51
  export type ForecastCenter = {
53
52
  probabilityCircle: {
54
- basePoint: Coordinate;
53
+ basePoint: Components.Coordinate;
55
54
  axes: Axis[];
56
55
  };
57
56
  } & Omit<RealStateCenter, 'coordinate'>;
@@ -62,8 +61,8 @@ export namespace WeatherTyphoon {
62
61
  }
63
62
 
64
63
  export interface RealStateWind {
65
- average: UnitValueNotNull<'最大風速', 'm/s', '中心付近' | '中心付近を除く' | 'なし' | never>;
66
- instantaneous: UnitValueNotNull<'最大瞬間風速', 'm/s'>;
64
+ average: Components.UnitValueNotNull<'最大風速', 'm/s', '中心付近' | '中心付近を除く' | 'なし' | never>;
65
+ instantaneous: Components.UnitValueNotNull<'最大瞬間風速', 'm/s'>;
67
66
  area?: RealStateWindArea;
68
67
  }
69
68
 
@@ -72,8 +71,8 @@ export namespace WeatherTyphoon {
72
71
  }
73
72
 
74
73
  export interface ForecastWind {
75
- average: UnitValueNotNull<'最大風速', 'm/s', '中心付近' | '中心付近を除く' | 'なし' | never>;
76
- instantaneous: UnitValueNotNull<'最大瞬間風速', 'm/s'>;
74
+ average: Components.UnitValueNotNull<'最大風速', 'm/s', '中心付近' | '中心付近を除く' | 'なし' | never>;
75
+ instantaneous: Components.UnitValueNotNull<'最大瞬間風速', 'm/s'>;
77
76
  area?: ForecastWindArea;
78
77
  }
79
78