@dmdata/telegram-json-types 1.0.9-jschema.1 → 1.1.1

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