@dmdata/telegram-json-types 1.1.1 → 1.1.5
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/dist/jschema/earthquake-information_1.0.0.json +1 -1
- package/dist/jschema/earthquake-information_1.1.0.json +1 -1
- package/dist/jschema/eew-information_1.0.0.json +1 -1
- 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 -33
- 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 +2 -0
- 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 +13 -14
- package/types/schema/earthquake-information/1.1.0.d.ts +18 -20
- package/types/schema/earthquake-nankai/1.0.0.d.ts +3 -3
- package/types/schema/eew-information/1.0.0.d.ts +34 -17
- 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,6 +1,5 @@
|
|
|
1
|
-
import { TelegramJSONMain } from '
|
|
2
|
-
import {
|
|
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,28 +9,28 @@ 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弱以上未入電';
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
export
|
|
33
|
+
export interface Comments {
|
|
35
34
|
free?: string;
|
|
36
35
|
forecast?: {
|
|
37
36
|
text: string;
|
|
@@ -41,7 +40,7 @@ export namespace EarthquakeInformation {
|
|
|
41
40
|
text: string;
|
|
42
41
|
codes: string[];
|
|
43
42
|
};
|
|
44
|
-
}
|
|
43
|
+
}
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
export interface IntensityVXSE51 {
|
|
@@ -62,20 +61,20 @@ export namespace EarthquakeInformation {
|
|
|
62
61
|
export interface PublicBodyVXSE51 {
|
|
63
62
|
intensity: IntensityVXSE51;
|
|
64
63
|
text?: string;
|
|
65
|
-
comments: Omit<
|
|
64
|
+
comments: Omit<Comments, 'var'>;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
export interface PublicBodyVXSE52 {
|
|
69
|
-
earthquake: Earthquake;
|
|
68
|
+
earthquake: Components.Earthquake;
|
|
70
69
|
text?: string;
|
|
71
|
-
comments: Omit<
|
|
70
|
+
comments: Omit<Comments, '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
|
-
comments:
|
|
77
|
+
comments: Comments;
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
export interface PublicBodyVXZSE40 {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { TelegramJSONMain } from '
|
|
2
|
-
import {
|
|
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
|
|
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<
|
|
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<
|
|
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:
|
|
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:
|
|
109
|
+
comments: Comments;
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
export interface PublicBodyVXZSE40 {
|
|
@@ -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 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 '
|
|
2
|
-
import {
|
|
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,69 @@ 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
|
|
88
101
|
|
|
89
102
|
export interface Intensity {
|
|
90
103
|
forecastMaxInt: IntensityForecastMaxInt;
|
|
91
104
|
forecastLpgmMaxInt?: IntensityForecastLpgmMaxInt;
|
|
92
105
|
appendix?: IntensityAppendix;
|
|
93
|
-
regions:
|
|
106
|
+
regions: IntensityRegionItem[];
|
|
94
107
|
}
|
|
95
108
|
|
|
96
109
|
|
|
97
|
-
export
|
|
110
|
+
export interface Comments {
|
|
98
111
|
free?: string;
|
|
99
112
|
warning?: {
|
|
100
113
|
text: string;
|
|
101
114
|
codes: string[];
|
|
102
115
|
};
|
|
103
|
-
}
|
|
116
|
+
}
|
|
104
117
|
|
|
105
118
|
export interface PublicCommonBody {
|
|
106
119
|
isLastInfo: boolean;
|
|
120
|
+
isCanceled: boolean;
|
|
121
|
+
isWarning: boolean;
|
|
107
122
|
zones?: WarningArea[];
|
|
108
123
|
prefectures?: WarningArea[];
|
|
109
124
|
regions?: WarningArea[];
|
|
110
125
|
earthquake: Earthquake;
|
|
111
126
|
intensity?: Intensity;
|
|
112
127
|
text?: string;
|
|
113
|
-
comments:
|
|
128
|
+
comments: Comments;
|
|
114
129
|
}
|
|
115
130
|
|
|
116
131
|
export interface PublicTestingBody {
|
|
117
132
|
isLastInfo: false;
|
|
133
|
+
isCanceled: false;
|
|
118
134
|
text: string;
|
|
119
135
|
}
|
|
120
136
|
|
|
121
137
|
export interface CancelBody {
|
|
122
138
|
isLastInfo: true;
|
|
139
|
+
isCanceled: true;
|
|
123
140
|
text: string;
|
|
124
141
|
}
|
|
125
142
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TelegramJSONMain } from '
|
|
2
|
-
import {
|
|
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;
|
|
@@ -68,7 +67,7 @@ export namespace TsunamiInformation {
|
|
|
68
67
|
|
|
69
68
|
export type TsunamiObservationStationFirstHeight = ({
|
|
70
69
|
arrivalTime: string;
|
|
71
|
-
initial
|
|
70
|
+
initial?: '押し' | '引き';
|
|
72
71
|
condition: never;
|
|
73
72
|
} | {
|
|
74
73
|
arrivalTime: never;
|
|
@@ -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 '
|
|
2
|
-
import {
|
|
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 {
|
|
@@ -129,7 +129,7 @@ export namespace VolcanoInformation {
|
|
|
129
129
|
unit: 'm';
|
|
130
130
|
} & ({
|
|
131
131
|
value: string;
|
|
132
|
-
condition?:
|
|
132
|
+
condition?: string;
|
|
133
133
|
} | {
|
|
134
134
|
value: null;
|
|
135
135
|
condition?: '噴煙なし' | '不明';
|
|
@@ -140,7 +140,7 @@ export namespace VolcanoInformation {
|
|
|
140
140
|
unit: 'ft';
|
|
141
141
|
} & ({
|
|
142
142
|
value: string;
|
|
143
|
-
condition?:
|
|
143
|
+
condition?: string;
|
|
144
144
|
} | {
|
|
145
145
|
value: null;
|
|
146
146
|
condition?: '噴煙なし' | '不明';
|
|
@@ -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 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 '
|
|
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
|
}
|