@dmdata/telegram-json-types 1.1.3 → 1.1.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmdata/telegram-json-types",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "scripts": {
5
5
  "build:jschema": "npx tsc --project jschema/tsconfig.json",
6
6
  "build:dist-jschema": "node ./dist/build.js",
package/tsconfig.json CHANGED
@@ -10,12 +10,7 @@
10
10
  "forceConsistentCasingInFileNames": true,
11
11
  "strict": true,
12
12
  "esModuleInterop": true,
13
- "baseUrl": "./",
14
- "paths": {
15
- "@t/*": [
16
- "./types/*"
17
- ]
18
- }
13
+ "baseUrl": "./"
19
14
  },
20
15
  "include": [
21
16
  "types/**/*",
File without changes
@@ -0,0 +1,14 @@
1
+ import { CodeName } from './code-name';
2
+ import { Coordinate } from './coordinate';
3
+ import { Earthquake } from './earthquake';
4
+ import { UnitValue, UnitValueNotNull } from './unit-value';
5
+
6
+ export namespace Components {
7
+ export {
8
+ CodeName,
9
+ Coordinate,
10
+ Earthquake,
11
+ UnitValue,
12
+ UnitValueNotNull
13
+ };
14
+ }
package/types/index.d.ts CHANGED
@@ -15,6 +15,7 @@ import * as WeatherTyphoon from './schema/weather-typhoon';
15
15
  import * as WeatherLandslide from './schema/weather-landslide';
16
16
  import * as WeatherRiverFlood from './schema/weather-river-flood';
17
17
  import { TelegramJSONMain } from './main';
18
+ import { Components } from './component';
18
19
 
19
20
  type All =
20
21
  EarthquakeInformation.v1_0_0.Main |
@@ -53,5 +54,6 @@ export {
53
54
  WeatherLandslide,
54
55
  WeatherRiverFlood,
55
56
  TelegramJSONMain,
57
+ Components,
56
58
  All
57
59
  };
@@ -1,4 +1,4 @@
1
- import { TelegramJSONMain } from '@t/main';
1
+ import { TelegramJSONMain } from '../../main';
2
2
 
3
3
  export namespace EarthquakeCounts {
4
4
  export interface Schema {
@@ -1,4 +1,4 @@
1
- import { TelegramJSONMain } from '@t/main';
1
+ import { TelegramJSONMain } from '../../main';
2
2
 
3
3
  export namespace EarthquakeExplanation {
4
4
  export interface Schema {
@@ -1,5 +1,5 @@
1
- import { TelegramJSONMain } from '@t/main';
2
- import { Earthquake } from '@t/component/earthquake';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Earthquake } from '../../component/earthquake';
3
3
 
4
4
  export namespace EarthquakeHypocenterUpdate {
5
5
  export interface Schema {
@@ -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
  export namespace EarthquakeInformation {
6
5
  export interface Schema {
@@ -10,22 +9,22 @@ export namespace EarthquakeInformation {
10
9
 
11
10
  export type IntensityClass = '1' | '2' | '3' | '4' | '5-' | '5+' | '6-' | '6+' | '7';
12
11
 
13
- export interface IntensityMaxInt extends CodeName {
12
+ export interface IntensityMaxInt extends Components.CodeName {
14
13
  maxInt: IntensityClass;
15
14
  }
16
15
 
17
- export interface IntensityMaxIntOnRevise extends CodeName {
16
+ export interface IntensityMaxIntOnRevise extends Components.CodeName {
18
17
  maxInt?: IntensityClass;
19
18
  revise?: '上方修正' | '追加';
20
19
  }
21
20
 
22
- export interface IntensityCity extends CodeName {
21
+ export interface IntensityCity extends Components.CodeName {
23
22
  maxInt?: IntensityClass;
24
23
  revise?: '上方修正' | '追加';
25
24
  condition?: '震度5弱以上未入電';
26
25
  }
27
26
 
28
- export interface IntensityStation extends CodeName {
27
+ export interface IntensityStation extends Components.CodeName {
29
28
  int: IntensityClass | '!5-';
30
29
  revise?: '上方修正' | '追加';
31
30
  condition?: '震度5弱以上未入電';
@@ -66,13 +65,13 @@ export namespace EarthquakeInformation {
66
65
  }
67
66
 
68
67
  export interface PublicBodyVXSE52 {
69
- earthquake: Earthquake;
68
+ earthquake: Components.Earthquake;
70
69
  text?: string;
71
70
  comments: Omit<Comment, 'var'>;
72
71
  }
73
72
 
74
73
  export interface PublicBodyVXSE53 {
75
- earthquake: Earthquake;
74
+ earthquake: Components.Earthquake;
76
75
  intensity?: IntensityVXSE53;
77
76
  text?: string;
78
77
  comments: Comment;
@@ -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,13 +36,13 @@ 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
 
@@ -92,20 +90,20 @@ export namespace EarthquakeInformation {
92
90
  }
93
91
 
94
92
  export interface PublicBodyVXSE52 {
95
- earthquake: Earthquake;
93
+ earthquake: Components.Earthquake;
96
94
  text?: string;
97
95
  comments: Omit<Comment, '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
102
  comments: Comment;
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
109
  comments: Comment;
@@ -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,10 +74,10 @@ 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;
85
83
  kind: IntensityRegionKind;
@@ -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
 
@@ -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 WeatherWarning {
5
5
  export interface Schema {
@@ -13,26 +13,26 @@ export namespace WeatherWarning {
13
13
  precision: string;
14
14
  }
15
15
 
16
- export interface KindNextKind extends CodeName {
16
+ export interface KindNextKind extends Components.CodeName {
17
17
  condition?: '土砂災害' | '浸水害' | '土砂災害、浸水害';
18
18
  dateTime: KindNextKindDateTime;
19
19
  }
20
20
 
21
21
 
22
- export interface Kind extends CodeName {
22
+ export interface Kind extends Components.CodeName {
23
23
  status: '発表' | '継続' | '特別警報から警報' | '特別警報から注意報' | '警報から注意報' | '解除';
24
24
  condition?: '土砂災害' | '浸水害' | '土砂災害、浸水害';
25
25
  attentions?: string[];
26
26
  additions?: string[];
27
- lastKind?: CodeName;
27
+ lastKind?: Components.CodeName;
28
28
  nextKinds?: KindNextKind[];
29
29
  }
30
30
 
31
- export interface KindVPOA50 extends CodeName {
31
+ export interface KindVPOA50 extends Components.CodeName {
32
32
  status: '発表' | 'なし';
33
33
  }
34
34
 
35
- export interface PrefectureBase extends CodeName {
35
+ export interface PrefectureBase extends Components.CodeName {
36
36
  kinds: Kind[];
37
37
  changeStatus: '警報・注意報種別に変化有' | '警報・注意報種別に変化無、量的予想事項等に変化有' | '変化無';
38
38
  fullStatus: '全域' | '一部';
@@ -40,7 +40,7 @@ export namespace WeatherWarning {
40
40
  condition: never;
41
41
  }
42
42
 
43
- export interface PrefectureNone extends CodeName {
43
+ export interface PrefectureNone extends Components.CodeName {
44
44
  kinds: {}[];
45
45
  changeStatus: never;
46
46
  fullStatus: never;
@@ -50,7 +50,7 @@ export namespace WeatherWarning {
50
50
 
51
51
  export type Prefecture = PrefectureBase | PrefectureNone;
52
52
 
53
- export interface PrefectureVPOA50 extends CodeName {
53
+ export interface PrefectureVPOA50 extends Components.CodeName {
54
54
  kinds: [KindVPOA50];
55
55
  }
56
56
 
@@ -65,7 +65,7 @@ export namespace WeatherWarning {
65
65
  name: string;
66
66
  }
67
67
 
68
- export interface TimeSeriesItemKindRiskDegreeLocalSignificance extends CodeName {
68
+ export interface TimeSeriesItemKindRiskDegreeLocalSignificance extends Components.CodeName {
69
69
  refId: string;
70
70
  }
71
71
 
@@ -74,7 +74,7 @@ export namespace WeatherWarning {
74
74
  term: string;
75
75
  }
76
76
 
77
- export interface TimeSeriesItemKindRiskDegreeLocalFuture extends CodeName {
77
+ export interface TimeSeriesItemKindRiskDegreeLocalFuture extends Components.CodeName {
78
78
  sentence: string;
79
79
  }
80
80
 
@@ -152,12 +152,12 @@ export namespace WeatherWarning {
152
152
  TimeSeriesItemKindQuantitativeTimeline
153
153
  | TimeSeriesItemKindQuantitativeWhole;
154
154
 
155
- export interface TimeSeriesItemKind extends CodeName {
155
+ export interface TimeSeriesItemKind extends Components.CodeName {
156
156
  riskDegrees: TimeSeriesItemKindRiskDegree[];
157
157
  quantitative?: TimeSeriesItemKindQuantitative[];
158
158
  }
159
159
 
160
- export interface TimeSeriesItem extends CodeName {
160
+ export interface TimeSeriesItem extends Components.CodeName {
161
161
  kinds: TimeSeriesItemKind[];
162
162
  }
163
163