@dmdata/telegram-json-types 1.0.7 → 1.0.9-jschema.2

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