@dmdata/telegram-json-types 1.0.9-jschema.0 → 1.1.0
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 +44 -3
- package/dist/build.js +22 -11
- package/dist/config.d.ts +2 -1
- package/dist/config.js +3 -2
- package/dist/jschema/earthquake-counts_1.0.0.json +1 -0
- package/dist/jschema/earthquake-explanation_1.0.0.json +1 -0
- package/dist/jschema/earthquake-hypocenter-update_1.0.0.json +1 -0
- package/dist/jschema/earthquake-information_1.0.0.json +1 -0
- package/dist/jschema/earthquake-information_1.1.0.json +1 -0
- package/dist/jschema/earthquake-nankai_1.0.0.json +1 -0
- package/dist/jschema/eew-information_1.0.0.json +1 -0
- package/dist/jschema/tsunami-information_1.0.0.json +1 -0
- package/dist/jschema/volcano-information_1.0.0.json +1 -0
- package/dist/jschema/weather-early_1.0.0.json +1 -0
- package/dist/jschema/weather-impact-society_1.0.0.json +1 -0
- package/dist/jschema/weather-information_1.0.0.json +1 -0
- package/dist/jschema/weather-landslide_1.0.0.json +1 -0
- package/dist/jschema/weather-river-flood_1.0.0.json +1 -0
- package/dist/jschema/weather-tornado_1.0.0.json +1 -0
- package/dist/jschema/weather-typhoon_1.0.0.json +1 -0
- package/dist/jschema/weather-warning_1.0.0.json +1 -0
- package/dist/jschema-load.d.ts +1 -1
- package/dist/jschema-load.js +12 -6
- package/index.d.ts +2 -2
- package/jest.config.ts +202 -0
- package/package.json +29 -21
- package/test/sample-schema-check.test.ts +54 -0
- package/tsconfig.json +28 -15
- package/types/component/code-name.ts +4 -0
- package/types/{schema/component → component}/coordinate.d.ts +2 -2
- package/types/{schema/component → component}/earthquake.d.ts +0 -0
- package/types/{schema/component → component}/unit-value.d.ts +13 -13
- package/types/index.d.ts +35 -4
- package/types/schema/earthquake-counts/1.0.0.d.ts +69 -0
- package/types/schema/earthquake-counts/index.d.ts +7 -0
- package/types/schema/earthquake-explanation/1.0.0.d.ts +57 -0
- package/types/schema/earthquake-explanation/index.d.ts +7 -0
- package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +53 -0
- package/types/schema/earthquake-hypocenter-update/index.d.ts +7 -0
- package/types/schema/earthquake-information/1.0.0.d.ts +159 -0
- package/types/schema/{earthquake-information.d.ts → earthquake-information/1.1.0.d.ts} +206 -181
- package/types/schema/earthquake-information/index.d.ts +9 -0
- package/types/schema/earthquake-nankai/1.0.0.d.ts +86 -0
- package/types/schema/earthquake-nankai/index.d.ts +7 -0
- package/types/schema/{eew-information.d.ts → eew-information/1.0.0.d.ts} +42 -39
- package/types/schema/eew-information/index.d.ts +7 -0
- package/types/schema/{tsunami-information.d.ts → tsunami-information/1.0.0.d.ts} +262 -230
- package/types/schema/tsunami-information/index.d.ts +7 -0
- package/types/schema/volcano-information/1.0.0.d.ts +450 -0
- package/types/schema/volcano-information/index.d.ts +7 -0
- package/types/schema/weather-early/1.0.0.d.ts +135 -0
- package/types/schema/weather-early/index.d.ts +7 -0
- package/types/schema/weather-impact-society/1.0.0.d.ts +140 -0
- package/types/schema/weather-impact-society/index.d.ts +7 -0
- package/types/schema/weather-information/1.0.0.d.ts +30 -0
- package/types/schema/weather-information/index.d.ts +7 -0
- package/types/schema/weather-landslide/1.0.0.d.ts +51 -0
- package/types/schema/weather-landslide/index.d.ts +7 -0
- package/types/schema/weather-river-flood/1.0.0.d.ts +188 -0
- package/types/schema/weather-river-flood/index.d.ts +7 -0
- package/types/schema/weather-tornado/1.0.0.d.ts +51 -0
- package/types/schema/weather-tornado/index.d.ts +7 -0
- package/types/schema/{weather-typhoon.d.ts → weather-typhoon/1.0.0.d.ts} +26 -13
- package/types/schema/weather-typhoon/index.d.ts +7 -0
- package/types/schema/weather-warning/1.0.0.d.ts +212 -0
- package/types/schema/weather-warning/index.d.ts +7 -0
- package/dist/jschema/earthquake-information.json +0 -1778
- package/dist/jschema/eew-information.json +0 -2742
- package/dist/jschema/tsunami-information.json +0 -3891
- package/dist/jschema/weather-typhoon.json +0 -4969
- package/jschema/build.ts +0 -56
- package/jschema/config.ts +0 -4
- package/jschema/jschema-load.ts +0 -26
- package/tsconfig.jschema.json +0 -16
|
@@ -1,181 +1,206 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export namespace EarthquakeInformation {
|
|
7
|
-
export interface Schema {
|
|
8
|
-
type: 'earthquake-information';
|
|
9
|
-
version: '1.1.0';
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type IntensityClass = '1' | '2' | '3' | '4' | '5-' | '5+' | '6-' | '6+' | '7';
|
|
13
|
-
export type LpgmIntensityClass = '0' | '1' | '2' | '3' | '4';
|
|
14
|
-
export type LpgmCategory = '1' | '2' | '3' | '4';
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
text?: string;
|
|
104
|
-
comments:
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface
|
|
108
|
-
earthquake: Earthquake;
|
|
109
|
-
intensity?:
|
|
110
|
-
text?: string;
|
|
111
|
-
comments: Comment;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
eventId: string;
|
|
131
|
-
serialNo: null;
|
|
132
|
-
|
|
133
|
-
body: PublicBodyVXSE51;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface PublicVXSE52 extends TelegramJSONMain {
|
|
137
|
-
_schema: Schema;
|
|
138
|
-
type: '震源に関する情報';
|
|
139
|
-
title: '震源に関する情報';
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
infoType: '発表' | '訂正';
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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';
|
|
5
|
+
|
|
6
|
+
export namespace EarthquakeInformation {
|
|
7
|
+
export interface Schema {
|
|
8
|
+
type: 'earthquake-information';
|
|
9
|
+
version: '1.1.0';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type IntensityClass = '1' | '2' | '3' | '4' | '5-' | '5+' | '6-' | '6+' | '7';
|
|
13
|
+
export type LpgmIntensityClass = '0' | '1' | '2' | '3' | '4';
|
|
14
|
+
export type LpgmCategory = '1' | '2' | '3' | '4';
|
|
15
|
+
|
|
16
|
+
export interface IntensityMaxInt extends CodeName {
|
|
17
|
+
maxInt: IntensityClass;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IntensityMaxIntOnRevise extends CodeName {
|
|
21
|
+
maxInt?: IntensityClass;
|
|
22
|
+
revise?: '上方修正' | '追加';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IntensityCity extends CodeName {
|
|
26
|
+
maxInt?: IntensityClass;
|
|
27
|
+
revise?: '上方修正' | '追加';
|
|
28
|
+
condition?: '震度5弱以上未入電';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface IntensityStation extends CodeName {
|
|
32
|
+
int: IntensityClass | '!5-';
|
|
33
|
+
revise?: '上方修正' | '追加';
|
|
34
|
+
condition?: '震度5弱以上未入電';
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type IntensityLpgmMaxInt = IntensityMaxIntOnRevise & {
|
|
38
|
+
maxLpgmInt: LpgmIntensityClass;
|
|
39
|
+
};
|
|
40
|
+
export type IntensityLpgmStationPrePeriod = {
|
|
41
|
+
periodicBand: UnitValueNotNull<never, '秒台'>;
|
|
42
|
+
lpgmInt: LpgmIntensityClass;
|
|
43
|
+
sva: UnitValueNotNull<never, 'cm/s'>;
|
|
44
|
+
};
|
|
45
|
+
export type IntensityLpgmStation = IntensityStation & {
|
|
46
|
+
lpgmInt: LpgmIntensityClass;
|
|
47
|
+
sva: UnitValueNotNull<never, 'cm/s'>;
|
|
48
|
+
prePeriods: IntensityLpgmStationPrePeriod[];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type Comment = {
|
|
52
|
+
free?: string;
|
|
53
|
+
forecast?: {
|
|
54
|
+
text: string;
|
|
55
|
+
codes: string[];
|
|
56
|
+
};
|
|
57
|
+
var?: {
|
|
58
|
+
text: string;
|
|
59
|
+
codes: string[];
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
export interface IntensityVXSE51 {
|
|
65
|
+
maxInt: IntensityClass;
|
|
66
|
+
prefectures: IntensityMaxInt[];
|
|
67
|
+
regions: IntensityMaxInt[];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface IntensityVXSE53 {
|
|
71
|
+
maxInt: IntensityClass;
|
|
72
|
+
prefectures: IntensityMaxIntOnRevise[];
|
|
73
|
+
regions: IntensityMaxIntOnRevise[];
|
|
74
|
+
cities: IntensityCity[];
|
|
75
|
+
stations: IntensityStation[];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface IntensityVXSE62 {
|
|
79
|
+
maxInt: IntensityClass;
|
|
80
|
+
maxLpgmInt: LpgmIntensityClass;
|
|
81
|
+
lpgmCategory: LpgmCategory;
|
|
82
|
+
prefectures: IntensityLpgmMaxInt[];
|
|
83
|
+
regions: IntensityLpgmMaxInt[];
|
|
84
|
+
stations: IntensityLpgmStation[];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
export interface PublicBodyVXSE51 {
|
|
89
|
+
intensity: IntensityVXSE51;
|
|
90
|
+
text?: string;
|
|
91
|
+
comments: Omit<Comment, 'var'>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface PublicBodyVXSE52 {
|
|
95
|
+
earthquake: Earthquake;
|
|
96
|
+
text?: string;
|
|
97
|
+
comments: Omit<Comment, 'var'>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface PublicBodyVXSE53 {
|
|
101
|
+
earthquake: Earthquake;
|
|
102
|
+
intensity?: IntensityVXSE53;
|
|
103
|
+
text?: string;
|
|
104
|
+
comments: Comment;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface PublicBodyVXSE62 {
|
|
108
|
+
earthquake: Earthquake;
|
|
109
|
+
intensity?: IntensityVXSE62;
|
|
110
|
+
text?: string;
|
|
111
|
+
comments: Comment;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface PublicBodyVXZSE40 {
|
|
115
|
+
text: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface CancelBody {
|
|
119
|
+
text: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface PublicVXSE51 extends TelegramJSONMain {
|
|
123
|
+
_schema: Schema;
|
|
124
|
+
type: '震度速報';
|
|
125
|
+
title: '震度速報';
|
|
126
|
+
infoType: '発表' | '訂正';
|
|
127
|
+
targetDateTimeDubious: never;
|
|
128
|
+
targetDuration: never;
|
|
129
|
+
validDateTime: never;
|
|
130
|
+
eventId: string;
|
|
131
|
+
serialNo: null;
|
|
132
|
+
infoKind: '震度速報';
|
|
133
|
+
body: PublicBodyVXSE51;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface PublicVXSE52 extends TelegramJSONMain {
|
|
137
|
+
_schema: Schema;
|
|
138
|
+
type: '震源に関する情報';
|
|
139
|
+
title: '震源に関する情報';
|
|
140
|
+
infoType: '発表' | '訂正';
|
|
141
|
+
targetDateTimeDubious: never;
|
|
142
|
+
targetDuration: never;
|
|
143
|
+
validDateTime: never;
|
|
144
|
+
eventId: string;
|
|
145
|
+
serialNo: null;
|
|
146
|
+
infoKind: '震源速報';
|
|
147
|
+
body: PublicBodyVXSE52;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface PublicVXSE53 extends TelegramJSONMain {
|
|
151
|
+
_schema: Schema;
|
|
152
|
+
type: '震源・震度に関する情報';
|
|
153
|
+
title: '震源・震度情報' | '遠地地震に関する情報';
|
|
154
|
+
infoType: '発表' | '訂正';
|
|
155
|
+
targetDateTimeDubious: never;
|
|
156
|
+
targetDuration: never;
|
|
157
|
+
validDateTime: never;
|
|
158
|
+
eventId: string;
|
|
159
|
+
serialNo: string;
|
|
160
|
+
infoKind: '地震情報';
|
|
161
|
+
body: PublicBodyVXSE53;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface PublicVXSE62 extends TelegramJSONMain {
|
|
165
|
+
_schema: Schema;
|
|
166
|
+
type: '長周期地震動に関する観測情報';
|
|
167
|
+
title: '長周期地震動に関する観測情報';
|
|
168
|
+
infoType: '発表' | '訂正';
|
|
169
|
+
targetDateTimeDubious: never;
|
|
170
|
+
targetDuration: never;
|
|
171
|
+
validDateTime: never;
|
|
172
|
+
eventId: string;
|
|
173
|
+
serialNo: string;
|
|
174
|
+
infoKind: '長周期地震動に関する観測情報';
|
|
175
|
+
body: PublicBodyVXSE62;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface PublicVZSE40 extends TelegramJSONMain {
|
|
179
|
+
_schema: Schema;
|
|
180
|
+
type: '地震・津波に関するお知らせ';
|
|
181
|
+
title: '地震・津波に関するお知らせ';
|
|
182
|
+
infoType: '発表' | '訂正';
|
|
183
|
+
targetDateTimeDubious: never;
|
|
184
|
+
targetDuration: never;
|
|
185
|
+
validDateTime: never;
|
|
186
|
+
eventId: string;
|
|
187
|
+
serialNo: null;
|
|
188
|
+
infoKind: '地震・津波に関するお知らせ';
|
|
189
|
+
body: PublicBodyVXZSE40;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface Cancel extends TelegramJSONMain {
|
|
193
|
+
_schema: Schema;
|
|
194
|
+
type: '震度速報' | '震源に関する情報' | '震源・震度に関する情報' | '長周期地震動に関する観測情報' | '地震・津波に関するお知らせ';
|
|
195
|
+
title: '震度速報' | '震源に関する情報' | '震源・震度情報' | '遠地地震に関する情報' | '長周期地震動に関する観測情報' | '地震・津波に関するお知らせ';
|
|
196
|
+
infoType: '取消';
|
|
197
|
+
targetDateTimeDubious: never;
|
|
198
|
+
targetDuration: never;
|
|
199
|
+
validDateTime: never;
|
|
200
|
+
eventId: string;
|
|
201
|
+
infoKind: '震度速報' | '震源速報' | '地震情報' | '長周期地震動に関する観測情報' | '地震・津波に関するお知らせ';
|
|
202
|
+
body: CancelBody;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type Main = (PublicVXSE51 | PublicVXSE52 | PublicVXSE53 | PublicVXSE62 | PublicVZSE40) | Cancel;
|
|
206
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { TelegramJSONMain } from '@t/main';
|
|
2
|
+
import { CodeName } from '@t/component/code-name';
|
|
3
|
+
|
|
4
|
+
export namespace EarthquakeNankai {
|
|
5
|
+
export interface Schema {
|
|
6
|
+
type: 'earthquake-nankai';
|
|
7
|
+
version: '1.0.0';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface EarthquakeInfoKind extends CodeName{
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface EarthquakeInfo {
|
|
14
|
+
kind?: EarthquakeInfoKind;
|
|
15
|
+
text: string;
|
|
16
|
+
appendix?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
export interface PublicBody {
|
|
21
|
+
earthquakeInfo?: EarthquakeInfo;
|
|
22
|
+
nextAdvisory?: string;
|
|
23
|
+
text?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CancelBody {
|
|
27
|
+
text: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface PublicVYSE50 extends TelegramJSONMain {
|
|
31
|
+
_schema: Schema;
|
|
32
|
+
type: '南海トラフ地震臨時情報';
|
|
33
|
+
title: string;
|
|
34
|
+
infoType: '発表' | '訂正';
|
|
35
|
+
targetDateTimeDubious: never;
|
|
36
|
+
targetDuration: never;
|
|
37
|
+
validDateTime: never;
|
|
38
|
+
eventId: string;
|
|
39
|
+
serialNo: null;
|
|
40
|
+
infoKind: '南海トラフ地震に関連する情報';
|
|
41
|
+
body: PublicBody;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface PublicVYSE51 extends TelegramJSONMain {
|
|
45
|
+
_schema: Schema;
|
|
46
|
+
type: '南海トラフ地震関連解説情報';
|
|
47
|
+
title: string;
|
|
48
|
+
infoType: '発表' | '訂正';
|
|
49
|
+
targetDateTimeDubious: never;
|
|
50
|
+
targetDuration: never;
|
|
51
|
+
validDateTime: never;
|
|
52
|
+
eventId: string;
|
|
53
|
+
serialNo: string;
|
|
54
|
+
infoKind: '南海トラフ地震に関連する情報';
|
|
55
|
+
body: PublicBody;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface PublicVYSE52 extends TelegramJSONMain {
|
|
59
|
+
_schema: Schema;
|
|
60
|
+
type: '南海トラフ地震関連解説情報';
|
|
61
|
+
title: string;
|
|
62
|
+
infoType: '発表' | '訂正';
|
|
63
|
+
targetDateTimeDubious: never;
|
|
64
|
+
targetDuration: never;
|
|
65
|
+
validDateTime: never;
|
|
66
|
+
eventId: string;
|
|
67
|
+
serialNo: null;
|
|
68
|
+
infoKind: '南海トラフ地震に関連する情報';
|
|
69
|
+
body: PublicBody;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface Cancel extends TelegramJSONMain {
|
|
73
|
+
_schema: Schema;
|
|
74
|
+
type: '南海トラフ地震臨時情報' | '南海トラフ地震関連解説情報';
|
|
75
|
+
title: string;
|
|
76
|
+
infoType: '取消';
|
|
77
|
+
targetDateTimeDubious: never;
|
|
78
|
+
targetDuration: never;
|
|
79
|
+
validDateTime: never;
|
|
80
|
+
eventId: string;
|
|
81
|
+
infoKind: '南海トラフ地震に関連する情報';
|
|
82
|
+
body: CancelBody;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type Main = PublicVYSE50 | PublicVYSE51 | PublicVYSE52 | Cancel;
|
|
86
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { TelegramJSONMain } from '
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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';
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
export namespace EewInformation {
|
|
@@ -12,24 +13,18 @@ export namespace EewInformation {
|
|
|
12
13
|
export type IntensityClass = '0' | '1' | '2' | '3' | '4' | '5-' | '5+' | '6-' | '6+' | '7';
|
|
13
14
|
export type LpgmIntensityClass = '0' | '1' | '2' | '3' | '4';
|
|
14
15
|
|
|
15
|
-
export interface
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
name: string;
|
|
21
|
-
};
|
|
16
|
+
export interface WarningAreaKindLastKind extends CodeName {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface WarningAreaKind extends CodeName {
|
|
20
|
+
lastKind: WarningAreaKindLastKind;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
export interface WarningArea {
|
|
25
|
-
code: string;
|
|
26
|
-
name: string;
|
|
23
|
+
export interface WarningArea extends CodeName {
|
|
27
24
|
kind: WarningAreaKind;
|
|
28
25
|
}
|
|
29
26
|
|
|
30
|
-
export interface EarthquakeHypocenterReduce {
|
|
31
|
-
code: string;
|
|
32
|
-
name: string;
|
|
27
|
+
export interface EarthquakeHypocenterReduce extends CodeName {
|
|
33
28
|
}
|
|
34
29
|
|
|
35
30
|
export interface EarthquakeHypocenterAccuracy {
|
|
@@ -42,9 +37,7 @@ export namespace EewInformation {
|
|
|
42
37
|
numberOfMagnitudeCalculation: '0' | '1' | '2' | '3' | '4' | '5';
|
|
43
38
|
}
|
|
44
39
|
|
|
45
|
-
export interface EarthquakeHypocenter {
|
|
46
|
-
code: string;
|
|
47
|
-
name: string;
|
|
40
|
+
export interface EarthquakeHypocenter extends CodeName {
|
|
48
41
|
coordinate: Coordinate<'日本測地系'>;
|
|
49
42
|
depth: UnitValueNotNull<'深さ', 'km'>;
|
|
50
43
|
reduce: EarthquakeHypocenterReduce;
|
|
@@ -83,12 +76,13 @@ export namespace EewInformation {
|
|
|
83
76
|
maxIntChangeReason: '0' | '1' | '2' | '3' | '4' | '9';
|
|
84
77
|
}
|
|
85
78
|
|
|
86
|
-
export interface
|
|
87
|
-
|
|
88
|
-
|
|
79
|
+
export interface IntensityRegionKind extends CodeName {
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface IntensityRegion extends CodeName {
|
|
89
83
|
forecastMaxInt: IntensityForecastMaxInt;
|
|
90
84
|
forecastLpgmMaxInt?: IntensityForecastLpgmMaxInt;
|
|
91
|
-
kind:
|
|
85
|
+
kind: IntensityRegionKind;
|
|
92
86
|
}
|
|
93
87
|
|
|
94
88
|
|
|
@@ -119,12 +113,12 @@ export namespace EewInformation {
|
|
|
119
113
|
comments: Comment;
|
|
120
114
|
}
|
|
121
115
|
|
|
122
|
-
export interface
|
|
116
|
+
export interface PublicTestingBody {
|
|
123
117
|
isLastInfo: false;
|
|
124
118
|
text: string;
|
|
125
119
|
}
|
|
126
120
|
|
|
127
|
-
export interface
|
|
121
|
+
export interface CancelBody {
|
|
128
122
|
isLastInfo: true;
|
|
129
123
|
text: string;
|
|
130
124
|
}
|
|
@@ -133,35 +127,44 @@ export namespace EewInformation {
|
|
|
133
127
|
_schema: Schema;
|
|
134
128
|
type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)';
|
|
135
129
|
title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)';
|
|
136
|
-
|
|
130
|
+
infoType: '発表' | '訂正';
|
|
131
|
+
targetDateTimeDubious: never;
|
|
132
|
+
targetDuration: never;
|
|
133
|
+
validDateTime: never;
|
|
137
134
|
eventId: string;
|
|
138
135
|
serialNo: string;
|
|
139
|
-
|
|
136
|
+
infoKind: '緊急地震速報';
|
|
140
137
|
body: PublicCommonBody;
|
|
141
138
|
}
|
|
142
139
|
|
|
143
140
|
export interface PublicTesting extends TelegramJSONMain {
|
|
144
141
|
_schema: Schema;
|
|
145
|
-
type: '
|
|
146
|
-
title: '
|
|
147
|
-
|
|
142
|
+
type: '緊急地震速報配信テスト';
|
|
143
|
+
title: '緊急地震速報配信テスト';
|
|
144
|
+
infoType: '発表' | '訂正';
|
|
145
|
+
targetDateTimeDubious: never;
|
|
146
|
+
targetDuration: never;
|
|
147
|
+
validDateTime: never;
|
|
148
148
|
eventId: string;
|
|
149
149
|
serialNo: string;
|
|
150
|
-
|
|
151
|
-
body:
|
|
150
|
+
infoKind: '緊急地震速報';
|
|
151
|
+
body: PublicTestingBody;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
export interface
|
|
154
|
+
export interface Cancel extends TelegramJSONMain {
|
|
155
155
|
_schema: Schema;
|
|
156
|
-
type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | '
|
|
157
|
-
title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | '
|
|
158
|
-
|
|
156
|
+
type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | '緊急地震速報配信テスト';
|
|
157
|
+
title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | '緊急地震速報配信テスト';
|
|
158
|
+
infoType: '取消';
|
|
159
|
+
targetDateTimeDubious: never;
|
|
160
|
+
targetDuration: never;
|
|
161
|
+
validDateTime: never;
|
|
159
162
|
eventId: string;
|
|
160
163
|
serialNo: string;
|
|
161
|
-
|
|
162
|
-
body:
|
|
164
|
+
infoKind: '緊急地震速報';
|
|
165
|
+
body: CancelBody;
|
|
163
166
|
}
|
|
164
167
|
|
|
165
|
-
export type Main = PublicCommon | PublicTesting |
|
|
168
|
+
export type Main = PublicCommon | PublicTesting | Cancel;
|
|
166
169
|
|
|
167
170
|
}
|