@dmdata/telegram-json-types 1.1.0 → 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/README.md +6 -4
- package/dist/jschema/tsunami-information_1.0.0.json +1 -1
- package/dist/jschema/volcano-information_1.0.0.json +1 -1
- package/dist/jschema/weather-river-flood_1.0.0.json +1 -1
- package/dist/jschema/weather-typhoon_1.0.0.json +1 -1
- package/package.json +33 -29
- package/tsconfig.json +1 -6
- package/types/component/{code-name.ts → code-name.d.ts} +0 -0
- package/types/component/index.d.ts +14 -0
- package/types/index.d.ts +25 -1
- package/types/schema/earthquake-counts/1.0.0.d.ts +1 -1
- package/types/schema/earthquake-explanation/1.0.0.d.ts +1 -1
- package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +2 -2
- package/types/schema/earthquake-information/1.0.0.d.ts +8 -9
- package/types/schema/earthquake-information/1.1.0.d.ts +12 -14
- package/types/schema/earthquake-nankai/1.0.0.d.ts +3 -3
- package/types/schema/earthquake-nankai/index.d.ts +1 -1
- package/types/schema/eew-information/1.0.0.d.ts +11 -13
- package/types/schema/tsunami-information/1.0.0.d.ts +12 -13
- package/types/schema/volcano-information/1.0.0.d.ts +5 -5
- package/types/schema/weather-early/1.0.0.d.ts +6 -6
- package/types/schema/weather-impact-society/1.0.0.d.ts +7 -7
- package/types/schema/weather-information/1.0.0.d.ts +1 -1
- package/types/schema/weather-landslide/1.0.0.d.ts +5 -5
- package/types/schema/weather-river-flood/1.0.0.d.ts +22 -18
- package/types/schema/weather-tornado/1.0.0.d.ts +5 -5
- package/types/schema/weather-typhoon/1.0.0.d.ts +12 -13
- package/types/schema/weather-warning/1.0.0.d.ts +13 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TelegramJSONMain } from '
|
|
2
|
-
import {
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { TelegramJSONMain } from '
|
|
2
|
-
import {
|
|
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 '
|
|
2
|
-
import {
|
|
1
|
+
import { TelegramJSONMain } from '../../main';
|
|
2
|
+
import { Components } from '../../component';
|
|
3
3
|
|
|
4
4
|
export namespace WeatherRiverFlood {
|
|
5
5
|
export interface Schema {
|
|
@@ -7,34 +7,38 @@ 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
|
|
|
25
25
|
export interface MainText {
|
|
26
|
-
text: string;
|
|
26
|
+
text: string | null;
|
|
27
27
|
rivers: MainTextRiver[];
|
|
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
|
-
export interface SuppositionDistrictPrefecture
|
|
34
|
+
export interface SuppositionDistrictPrefecture {
|
|
35
|
+
code: string | null;
|
|
36
|
+
name: string | null;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
export interface SuppositionDistrictCity
|
|
39
|
+
export interface SuppositionDistrictCity {
|
|
40
|
+
code: string | null;
|
|
41
|
+
name: string | null;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
export interface SuppositionDistrict {
|
|
@@ -42,7 +46,7 @@ export namespace WeatherRiverFlood {
|
|
|
42
46
|
name: string;
|
|
43
47
|
prefecture: SuppositionDistrictPrefecture;
|
|
44
48
|
city: SuppositionDistrictCity;
|
|
45
|
-
district: string;
|
|
49
|
+
district: string | null;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
export interface Supposition {
|
|
@@ -95,9 +99,9 @@ export namespace WeatherRiverFlood {
|
|
|
95
99
|
condition?: string;
|
|
96
100
|
}
|
|
97
101
|
|
|
98
|
-
export interface WaterLevelTimeSeriesItem extends CodeName {
|
|
102
|
+
export interface WaterLevelTimeSeriesItem extends Components.CodeName {
|
|
99
103
|
location: string;
|
|
100
|
-
type: '水位' | '
|
|
104
|
+
type: '水位' | '流量';
|
|
101
105
|
forecasts: WaterLevelTimeSeriesItemForecast [];
|
|
102
106
|
}
|
|
103
107
|
|
|
@@ -126,19 +130,19 @@ export namespace WeatherRiverFlood {
|
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
export interface FloodedWaterAssumptions {
|
|
129
|
-
district: string;
|
|
133
|
+
district: string | null;
|
|
130
134
|
attainmentTime: FloodedWaterAssumptionsAttainmentTime;
|
|
131
135
|
attainmentDeepestTime: FloodedWaterAssumptionsAttainmentDeepestTime;
|
|
132
136
|
floodDepth: FloodedWaterAssumptionsFloodDepth;
|
|
133
137
|
}
|
|
134
138
|
|
|
135
|
-
export interface FloodedWater extends CodeName {
|
|
139
|
+
export interface FloodedWater extends Components.CodeName {
|
|
136
140
|
dateTime: string;
|
|
137
141
|
text: string;
|
|
138
142
|
assumptions: FloodedWaterAssumptions[];
|
|
139
143
|
}
|
|
140
144
|
|
|
141
|
-
export interface Office extends CodeName {
|
|
145
|
+
export interface Office extends Components.CodeName {
|
|
142
146
|
type: '水位関係' | '気象関係';
|
|
143
147
|
contact: string;
|
|
144
148
|
url: string;
|
|
@@ -151,9 +155,9 @@ export namespace WeatherRiverFlood {
|
|
|
151
155
|
condition: '有効' | '無効';
|
|
152
156
|
}
|
|
153
157
|
|
|
154
|
-
export interface Reference extends CodeName {
|
|
158
|
+
export interface Reference extends Components.CodeName {
|
|
155
159
|
location: string;
|
|
156
|
-
district: string;
|
|
160
|
+
district: string | null;
|
|
157
161
|
sections: string[];
|
|
158
162
|
criteria: ReferenceCriterion[];
|
|
159
163
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TelegramJSONMain } from '
|
|
2
|
-
import {
|
|
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 '
|
|
2
|
-
import {
|
|
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,9 +61,9 @@ export namespace WeatherTyphoon {
|
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
export interface RealStateWind {
|
|
65
|
-
average: UnitValueNotNull<'最大風速', 'm/s', '中心付近' | '中心付近を除く' | 'なし' | never>;
|
|
66
|
-
instantaneous: UnitValueNotNull<'最大瞬間風速', 'm/s'>;
|
|
67
|
-
area
|
|
64
|
+
average: Components.UnitValueNotNull<'最大風速', 'm/s', '中心付近' | '中心付近を除く' | 'なし' | never>;
|
|
65
|
+
instantaneous: Components.UnitValueNotNull<'最大瞬間風速', 'm/s'>;
|
|
66
|
+
area?: RealStateWindArea;
|
|
68
67
|
}
|
|
69
68
|
|
|
70
69
|
export interface ForecastWindArea {
|
|
@@ -72,9 +71,9 @@ export namespace WeatherTyphoon {
|
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
export interface ForecastWind {
|
|
75
|
-
average: UnitValueNotNull<'最大風速', 'm/s', '中心付近' | '中心付近を除く' | 'なし' | never>;
|
|
76
|
-
instantaneous: UnitValueNotNull<'最大瞬間風速', 'm/s'>;
|
|
77
|
-
area
|
|
74
|
+
average: Components.UnitValueNotNull<'最大風速', 'm/s', '中心付近' | '中心付近を除く' | 'なし' | never>;
|
|
75
|
+
instantaneous: Components.UnitValueNotNull<'最大瞬間風速', 'm/s'>;
|
|
76
|
+
area?: ForecastWindArea;
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
export interface RealState {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TelegramJSONMain } from '
|
|
2
|
-
import {
|
|
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
|
|