@dmdata/telegram-json-types 1.1.12 → 1.1.14

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 (45) hide show
  1. package/dist/build.d.ts +1 -1
  2. package/dist/build.js +72 -68
  3. package/dist/config.d.ts +3 -3
  4. package/dist/config.js +7 -7
  5. package/dist/jschema/earthquake-counts_1.0.0.json +1 -1
  6. package/dist/jschema/earthquake-explanation_1.0.0.json +1 -1
  7. package/dist/jschema/earthquake-hypocenter-update_1.0.0.json +1 -1
  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 -1
  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 -1
  14. package/dist/jschema/weather-early_1.0.0.json +1 -1
  15. package/dist/jschema/weather-impact-society_1.0.0.json +1 -1
  16. package/dist/jschema/weather-information_1.0.0.json +1 -1
  17. package/dist/jschema/weather-landslide_1.0.0.json +1 -1
  18. package/dist/jschema/weather-river-flood_1.0.0.json +1 -1
  19. package/dist/jschema/weather-tornado_1.0.0.json +1 -1
  20. package/dist/jschema/weather-typhoon_1.0.0.json +1 -1
  21. package/dist/jschema/weather-warning_1.0.0.json +1 -1
  22. package/dist/jschema-load.d.ts +1 -1
  23. package/dist/jschema-load.js +48 -44
  24. package/package.json +12 -11
  25. package/test/sample-schema-check.test.ts +0 -1
  26. package/types/component/coordinate.d.ts +6 -6
  27. package/types/component/earthquake.d.ts +4 -4
  28. package/types/component/unit-value.d.ts +2 -2
  29. package/types/schema/earthquake-counts/1.0.0.d.ts +6 -6
  30. package/types/schema/earthquake-explanation/1.0.0.d.ts +6 -6
  31. package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +6 -6
  32. package/types/schema/earthquake-information/1.0.0.d.ts +17 -17
  33. package/types/schema/earthquake-information/1.1.0.d.ts +43 -26
  34. package/types/schema/earthquake-nankai/1.0.0.d.ts +12 -12
  35. package/types/schema/eew-information/1.0.0.d.ts +18 -18
  36. package/types/schema/tsunami-information/1.0.0.d.ts +26 -26
  37. package/types/schema/volcano-information/1.0.0.d.ts +25 -25
  38. package/types/schema/weather-early/1.0.0.d.ts +0 -25
  39. package/types/schema/weather-impact-society/1.0.0.d.ts +7 -5
  40. package/types/schema/weather-information/1.0.0.d.ts +4 -4
  41. package/types/schema/weather-landslide/1.0.0.d.ts +3 -3
  42. package/types/schema/weather-river-flood/1.0.0.d.ts +3 -3
  43. package/types/schema/weather-tornado/1.0.0.d.ts +2 -2
  44. package/types/schema/weather-typhoon/1.0.0.d.ts +3 -3
  45. package/types/schema/weather-warning/1.0.0.d.ts +11 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmdata/telegram-json-types",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "scripts": {
5
5
  "build:jschema": "npx tsc --project jschema/tsconfig.json",
6
6
  "build:dist-jschema": "node ./dist/build.js",
@@ -19,15 +19,16 @@
19
19
  "author": "",
20
20
  "license": "MIT",
21
21
  "devDependencies": {
22
- "@types/jest": "^27.4.0",
23
- "@types/node": "^14.18.9",
24
- "@types/node-fetch": "^2.5.12",
25
- "ajv": "^8.9.0",
26
- "jest": "^27.4.7",
27
- "node-fetch": "^2.6.7",
28
- "ts-jest": "^27.1.3",
29
- "ts-node": "^10.4.0",
30
- "typescript": "^4.5.5",
31
- "typescript-json-schema": "^0.53.0"
22
+ "@types/jest": "^29.5.11",
23
+ "@types/node": "^20.11.15",
24
+ "ajv": "^8.12.0",
25
+ "jest": "^29.7.0",
26
+ "ts-jest": "^29.1.2",
27
+ "ts-node": "^10.9.2",
28
+ "typescript": "^5.3.3",
29
+ "typescript-json-schema": "^0.62.0"
30
+ },
31
+ "engines": {
32
+ "node": ">=18"
32
33
  }
33
34
  }
@@ -1,5 +1,4 @@
1
1
  import Ajv from 'ajv';
2
- import fetch from 'node-fetch';
3
2
  import { getJSchema } from '../jschema/jschema-load';
4
3
 
5
4
  const checkSchemaTypes = [
@@ -11,15 +11,15 @@ interface CoordinateNormal<Geo> {
11
11
  value: string;
12
12
  };
13
13
  height?: UnitValueNotNull<'高さ', 'm'>;
14
- condition: never;
15
- geodeticSystem: Geo;
14
+ condition?: never;
15
+ geodeticSystem?: Geo;
16
16
  }
17
17
 
18
18
  interface CoordinateUnknown {
19
- latitude: never;
20
- longitude: never;
21
- height: never;
22
- geodeticSystem: never;
19
+ latitude?: never;
20
+ longitude?: never;
21
+ height?: never;
22
+ geodeticSystem?: never;
23
23
  condition: '不明';
24
24
  }
25
25
 
@@ -5,12 +5,12 @@ interface DepthBase {
5
5
  type: '深さ';
6
6
  unit: 'km';
7
7
  value: string | null;
8
- condition: string | never;
8
+ condition?: string | never;
9
9
  }
10
10
 
11
11
  interface DepthNormal extends DepthBase {
12
12
  value: string;
13
- condition: never;
13
+ condition?: never;
14
14
  }
15
15
 
16
16
  interface DepthShallow extends DepthBase {
@@ -35,12 +35,12 @@ interface MagnitudeBase {
35
35
  type: 'マグニチュード';
36
36
  unit: 'Mj' | 'M';
37
37
  value: string | null;
38
- condition: string | never;
38
+ condition?: string | never;
39
39
  }
40
40
 
41
41
  interface MagnitudeNormal extends MagnitudeBase {
42
42
  value: string;
43
- condition: never;
43
+ condition?: never;
44
44
  }
45
45
 
46
46
  interface MagnitudeUnknown extends MagnitudeBase {
@@ -2,12 +2,12 @@ export type UnitValue<Type = string, Unit = string, Condition = never> = {
2
2
  type: Type;
3
3
  unit: Unit;
4
4
  value: string | null;
5
- condition: Condition
5
+ condition?: Condition;
6
6
  };
7
7
 
8
8
  export type UnitValueNotNull<Type = string, Unit = string, Condition = never> = {
9
9
  type: Type;
10
10
  unit: Unit;
11
11
  value: string;
12
- condition: Condition
12
+ condition?: Condition;
13
13
  };
@@ -42,9 +42,9 @@ export namespace EarthquakeCounts {
42
42
  type: '地震回数に関する情報';
43
43
  title: '地震回数に関する情報';
44
44
  infoType: '発表' | '訂正';
45
- targetDateTimeDubious: never;
46
- targetDuration: never;
47
- validDateTime: never;
45
+ targetDateTimeDubious?: never;
46
+ targetDuration?: never;
47
+ validDateTime?: never;
48
48
  eventId: string;
49
49
  serialNo: string;
50
50
  infoKind: '地震回数情報';
@@ -56,9 +56,9 @@ export namespace EarthquakeCounts {
56
56
  type: '地震回数に関する情報';
57
57
  title: '地震回数に関する情報';
58
58
  infoType: '取消';
59
- targetDateTimeDubious: never;
60
- targetDuration: never;
61
- validDateTime: never;
59
+ targetDateTimeDubious?: never;
60
+ targetDuration?: never;
61
+ validDateTime?: never;
62
62
  eventId: string;
63
63
  serialNo: string;
64
64
  infoKind: '地震回数情報';
@@ -30,9 +30,9 @@ export namespace EarthquakeExplanation {
30
30
  type: '地震の活動状況等に関する情報';
31
31
  title: '地震の活動状況等に関する情報';
32
32
  infoType: '発表' | '訂正';
33
- targetDateTimeDubious: never;
34
- targetDuration: never;
35
- validDateTime: never;
33
+ targetDateTimeDubious?: never;
34
+ targetDuration?: never;
35
+ validDateTime?: never;
36
36
  eventId: string;
37
37
  serialNo: null;
38
38
  infoKind: '地震の活動状況等に関する情報';
@@ -44,9 +44,9 @@ export namespace EarthquakeExplanation {
44
44
  type: '地震の活動状況等に関する情報';
45
45
  title: '地震の活動状況等に関する情報';
46
46
  infoType: '取消';
47
- targetDateTimeDubious: never;
48
- targetDuration: never;
49
- validDateTime: never;
47
+ targetDateTimeDubious?: never;
48
+ targetDuration?: never;
49
+ validDateTime?: never;
50
50
  eventId: string;
51
51
  serialNo: null;
52
52
  infoKind: '地震の活動状況等に関する情報';
@@ -26,9 +26,9 @@ export namespace EarthquakeHypocenterUpdate {
26
26
  type: '顕著な地震の震源要素更新のお知らせ';
27
27
  title: '顕著な地震の震源要素更新のお知らせ';
28
28
  infoType: '発表' | '訂正';
29
- targetDateTimeDubious: never;
30
- targetDuration: never;
31
- validDateTime: never;
29
+ targetDateTimeDubious?: never;
30
+ targetDuration?: never;
31
+ validDateTime?: never;
32
32
  eventId: string;
33
33
  serialNo: null;
34
34
  infoKind: '震源要素更新のお知らせ';
@@ -40,9 +40,9 @@ export namespace EarthquakeHypocenterUpdate {
40
40
  type: '顕著な地震の震源要素更新のお知らせ';
41
41
  title: '顕著な地震の震源要素更新のお知らせ';
42
42
  infoType: '取消';
43
- targetDateTimeDubious: never;
44
- targetDuration: never;
45
- validDateTime: never;
43
+ targetDateTimeDubious?: never;
44
+ targetDuration?: never;
45
+ validDateTime?: never;
46
46
  eventId: string;
47
47
  serialNo: null;
48
48
  infoKind: '震源要素更新のお知らせ';
@@ -77,7 +77,7 @@ export namespace EarthquakeInformation {
77
77
  comments: Comments;
78
78
  }
79
79
 
80
- export interface PublicBodyVXZSE40 {
80
+ export interface PublicBodyVZSE40 {
81
81
  text: string;
82
82
  }
83
83
 
@@ -90,9 +90,9 @@ export namespace EarthquakeInformation {
90
90
  type: '震度速報';
91
91
  title: '震度速報';
92
92
  infoType: '発表' | '訂正';
93
- targetDateTimeDubious: never;
94
- targetDuration: never;
95
- validDateTime: never;
93
+ targetDateTimeDubious?: never;
94
+ targetDuration?: never;
95
+ validDateTime?: never;
96
96
  eventId: string;
97
97
  serialNo: null;
98
98
  infoKind: '震度速報';
@@ -104,9 +104,9 @@ export namespace EarthquakeInformation {
104
104
  type: '震源に関する情報';
105
105
  title: '震源に関する情報';
106
106
  infoType: '発表' | '訂正';
107
- targetDateTimeDubious: never;
108
- targetDuration: never;
109
- validDateTime: never;
107
+ targetDateTimeDubious?: never;
108
+ targetDuration?: never;
109
+ validDateTime?: never;
110
110
  eventId: string;
111
111
  serialNo: null;
112
112
  infoKind: '震源速報';
@@ -118,9 +118,9 @@ export namespace EarthquakeInformation {
118
118
  type: '震源・震度に関する情報';
119
119
  title: '震源・震度情報' | '遠地地震に関する情報';
120
120
  infoType: '発表' | '訂正';
121
- targetDateTimeDubious: never;
122
- targetDuration: never;
123
- validDateTime: never;
121
+ targetDateTimeDubious?: never;
122
+ targetDuration?: never;
123
+ validDateTime?: never;
124
124
  eventId: string;
125
125
  serialNo: string;
126
126
  infoKind: '地震情報';
@@ -132,13 +132,13 @@ export namespace EarthquakeInformation {
132
132
  type: '地震・津波に関するお知らせ';
133
133
  title: '地震・津波に関するお知らせ';
134
134
  infoType: '発表' | '訂正';
135
- targetDateTimeDubious: never;
136
- targetDuration: never;
137
- validDateTime: never;
135
+ targetDateTimeDubious?: never;
136
+ targetDuration?: never;
137
+ validDateTime?: never;
138
138
  eventId: string;
139
139
  serialNo: null;
140
140
  infoKind: '地震・津波に関するお知らせ';
141
- body: PublicBodyVXZSE40;
141
+ body: PublicBodyVZSE40;
142
142
  }
143
143
 
144
144
  export interface Cancel extends TelegramJSONMain {
@@ -146,9 +146,9 @@ export namespace EarthquakeInformation {
146
146
  type: '震度速報' | '震源に関する情報' | '震源・震度に関する情報' | '地震・津波に関するお知らせ';
147
147
  title: '震度速報' | '震源に関する情報' | '震源・震度情報' | '遠地地震に関する情報' | '地震・津波に関するお知らせ';
148
148
  infoType: '取消';
149
- targetDateTimeDubious: never;
150
- targetDuration: never;
151
- validDateTime: never;
149
+ targetDateTimeDubious?: never;
150
+ targetDuration?: never;
151
+ validDateTime?: never;
152
152
  eventId: string;
153
153
  infoKind: '震度速報' | '震源速報' | '地震情報' | '地震・津波に関するお知らせ';
154
154
  body: CancelBody;
@@ -35,17 +35,24 @@ export namespace EarthquakeInformation {
35
35
  export type IntensityLgMaxInt = IntensityMaxIntOnRevise & {
36
36
  maxLgInt: LgIntensityClass;
37
37
  };
38
+
39
+ export interface IntensityPeriodicBand extends Omit<Components.UnitValueNotNull<void, '秒台'>, 'type'> {
40
+ }
41
+
42
+ export interface IntensitySva extends Omit<Components.UnitValueNotNull<void, 'cm/s'>, 'type'> {
43
+ }
44
+
38
45
  export type IntensityLgStationPrePeriod = {
39
- periodicBand: Components.UnitValueNotNull<never, '秒台'>;
46
+ periodicBand: IntensityPeriodicBand;
40
47
  lgInt: LgIntensityClass;
41
- sva: Components.UnitValueNotNull<never, 'cm/s'>;
48
+ sva: IntensitySva;
42
49
  };
43
50
 
44
51
  export interface IntensityLgStation extends Components.CodeName {
45
52
  int?: IntensityClass;
46
53
  revise?: '上方修正' | '下方修正' | '追加';
47
54
  lgInt: LgIntensityClass;
48
- sva: Components.UnitValueNotNull<never, 'cm/s'>;
55
+ sva: IntensitySva;
49
56
  prePeriods: IntensityLgStationPrePeriod[];
50
57
  }
51
58
 
@@ -59,6 +66,16 @@ export namespace EarthquakeInformation {
59
66
  text: string;
60
67
  codes: string[];
61
68
  };
69
+ uri?: string;
70
+ }
71
+
72
+ export interface CommentsVXSE51Or52 extends Comments {
73
+ var?: never;
74
+ uri?: never;
75
+ }
76
+
77
+ export interface CommentsVXSE53 extends Comments {
78
+ uri?: never;
62
79
  }
63
80
 
64
81
 
@@ -89,20 +106,20 @@ export namespace EarthquakeInformation {
89
106
  export interface PublicBodyVXSE51 {
90
107
  intensity: IntensityVXSE51;
91
108
  text?: string;
92
- comments: Omit<Comments, 'var'>;
109
+ comments: CommentsVXSE51Or52;
93
110
  }
94
111
 
95
112
  export interface PublicBodyVXSE52 {
96
113
  earthquake: Components.Earthquake;
97
114
  text?: string;
98
- comments: Omit<Comments, 'var'>;
115
+ comments: CommentsVXSE51Or52;
99
116
  }
100
117
 
101
118
  export interface PublicBodyVXSE53 {
102
119
  earthquake: Components.Earthquake;
103
120
  intensity?: IntensityVXSE53;
104
121
  text?: string;
105
- comments: Comments;
122
+ comments: CommentsVXSE53;
106
123
  }
107
124
 
108
125
  export interface PublicBodyVXSE62 {
@@ -112,7 +129,7 @@ export namespace EarthquakeInformation {
112
129
  comments: Comments;
113
130
  }
114
131
 
115
- export interface PublicBodyVXZSE40 {
132
+ export interface PublicBodyVZSE40 {
116
133
  text: string;
117
134
  }
118
135
 
@@ -125,9 +142,9 @@ export namespace EarthquakeInformation {
125
142
  type: '震度速報';
126
143
  title: '震度速報';
127
144
  infoType: '発表' | '訂正';
128
- targetDateTimeDubious: never;
129
- targetDuration: never;
130
- validDateTime: never;
145
+ targetDateTimeDubious?: never;
146
+ targetDuration?: never;
147
+ validDateTime?: never;
131
148
  eventId: string;
132
149
  serialNo: null;
133
150
  infoKind: '震度速報';
@@ -139,9 +156,9 @@ export namespace EarthquakeInformation {
139
156
  type: '震源に関する情報';
140
157
  title: '震源に関する情報';
141
158
  infoType: '発表' | '訂正';
142
- targetDateTimeDubious: never;
143
- targetDuration: never;
144
- validDateTime: never;
159
+ targetDateTimeDubious?: never;
160
+ targetDuration?: never;
161
+ validDateTime?: never;
145
162
  eventId: string;
146
163
  serialNo: null;
147
164
  infoKind: '震源速報';
@@ -153,9 +170,9 @@ export namespace EarthquakeInformation {
153
170
  type: '震源・震度に関する情報';
154
171
  title: '震源・震度情報' | '遠地地震に関する情報';
155
172
  infoType: '発表' | '訂正';
156
- targetDateTimeDubious: never;
157
- targetDuration: never;
158
- validDateTime: never;
173
+ targetDateTimeDubious?: never;
174
+ targetDuration?: never;
175
+ validDateTime?: never;
159
176
  eventId: string;
160
177
  serialNo: string;
161
178
  infoKind: '地震情報';
@@ -167,9 +184,9 @@ export namespace EarthquakeInformation {
167
184
  type: '長周期地震動に関する観測情報';
168
185
  title: '長周期地震動に関する観測情報';
169
186
  infoType: '発表' | '訂正';
170
- targetDateTimeDubious: never;
171
- targetDuration: never;
172
- validDateTime: never;
187
+ targetDateTimeDubious?: never;
188
+ targetDuration?: never;
189
+ validDateTime?: never;
173
190
  eventId: string;
174
191
  serialNo: string;
175
192
  infoKind: '長周期地震動に関する観測情報';
@@ -181,13 +198,13 @@ export namespace EarthquakeInformation {
181
198
  type: '地震・津波に関するお知らせ';
182
199
  title: '地震・津波に関するお知らせ';
183
200
  infoType: '発表' | '訂正';
184
- targetDateTimeDubious: never;
185
- targetDuration: never;
186
- validDateTime: never;
201
+ targetDateTimeDubious?: never;
202
+ targetDuration?: never;
203
+ validDateTime?: never;
187
204
  eventId: string;
188
205
  serialNo: null;
189
206
  infoKind: '地震・津波に関するお知らせ';
190
- body: PublicBodyVXZSE40;
207
+ body: PublicBodyVZSE40;
191
208
  }
192
209
 
193
210
  export interface Cancel extends TelegramJSONMain {
@@ -195,9 +212,9 @@ export namespace EarthquakeInformation {
195
212
  type: '震度速報' | '震源に関する情報' | '震源・震度に関する情報' | '長周期地震動に関する観測情報' | '地震・津波に関するお知らせ';
196
213
  title: '震度速報' | '震源に関する情報' | '震源・震度情報' | '遠地地震に関する情報' | '長周期地震動に関する観測情報' | '地震・津波に関するお知らせ';
197
214
  infoType: '取消';
198
- targetDateTimeDubious: never;
199
- targetDuration: never;
200
- validDateTime: never;
215
+ targetDateTimeDubious?: never;
216
+ targetDuration?: never;
217
+ validDateTime?: never;
201
218
  eventId: string;
202
219
  infoKind: '震度速報' | '震源速報' | '地震情報' | '長周期地震動に関する観測情報' | '地震・津波に関するお知らせ';
203
220
  body: CancelBody;
@@ -32,9 +32,9 @@ export namespace EarthquakeNankai {
32
32
  type: '南海トラフ地震臨時情報';
33
33
  title: string;
34
34
  infoType: '発表' | '訂正';
35
- targetDateTimeDubious: never;
36
- targetDuration: never;
37
- validDateTime: never;
35
+ targetDateTimeDubious?: never;
36
+ targetDuration?: never;
37
+ validDateTime?: never;
38
38
  eventId: string;
39
39
  serialNo: null;
40
40
  infoKind: '南海トラフ地震に関連する情報';
@@ -46,9 +46,9 @@ export namespace EarthquakeNankai {
46
46
  type: '南海トラフ地震関連解説情報';
47
47
  title: string;
48
48
  infoType: '発表' | '訂正';
49
- targetDateTimeDubious: never;
50
- targetDuration: never;
51
- validDateTime: never;
49
+ targetDateTimeDubious?: never;
50
+ targetDuration?: never;
51
+ validDateTime?: never;
52
52
  eventId: string;
53
53
  serialNo: string;
54
54
  infoKind: '南海トラフ地震に関連する情報';
@@ -60,9 +60,9 @@ export namespace EarthquakeNankai {
60
60
  type: '南海トラフ地震関連解説情報';
61
61
  title: string;
62
62
  infoType: '発表' | '訂正';
63
- targetDateTimeDubious: never;
64
- targetDuration: never;
65
- validDateTime: never;
63
+ targetDateTimeDubious?: never;
64
+ targetDuration?: never;
65
+ validDateTime?: never;
66
66
  eventId: string;
67
67
  serialNo: null;
68
68
  infoKind: '南海トラフ地震に関連する情報';
@@ -74,9 +74,9 @@ export namespace EarthquakeNankai {
74
74
  type: '南海トラフ地震臨時情報' | '南海トラフ地震関連解説情報';
75
75
  title: string;
76
76
  infoType: '取消';
77
- targetDateTimeDubious: never;
78
- targetDuration: never;
79
- validDateTime: never;
77
+ targetDateTimeDubious?: never;
78
+ targetDuration?: never;
79
+ validDateTime?: never;
80
80
  eventId: string;
81
81
  infoKind: '南海トラフ地震に関連する情報';
82
82
  body: CancelBody;
@@ -79,7 +79,7 @@ export namespace EewInformation {
79
79
 
80
80
  export interface IntensityRegion extends Components.CodeName {
81
81
  forecastMaxInt: IntensityForecastMaxInt;
82
- forecastLgMaxInt?: IntensityForecastLgMaxInt;
82
+ forecastMaxLgInt?: IntensityForecastLgMaxInt;
83
83
  isPlum: boolean;
84
84
  isWarning: boolean;
85
85
  kind: IntensityRegionKind;
@@ -89,11 +89,11 @@ export namespace EewInformation {
89
89
 
90
90
  export interface IntensityRegionReached extends IntensityRegion {
91
91
  condition: '既に主要動到達と推測';
92
- arrivalTime: never;
92
+ arrivalTime?: never;
93
93
  }
94
94
 
95
95
  export interface IntensityRegionUnReached extends IntensityRegion {
96
- condition: never;
96
+ condition?: never;
97
97
  arrivalTime: string;
98
98
  }
99
99
 
@@ -108,7 +108,7 @@ export namespace EewInformation {
108
108
 
109
109
  export interface Intensity {
110
110
  forecastMaxInt: IntensityForecastMaxInt;
111
- forecastLgMaxInt?: IntensityForecastLgMaxInt;
111
+ forecastMaxLgInt?: IntensityForecastLgMaxInt;
112
112
  appendix?: IntensityAppendix;
113
113
  regions: IntensityRegionItem[];
114
114
  }
@@ -128,7 +128,7 @@ export namespace EewInformation {
128
128
 
129
129
  export interface PublicCommonBody {
130
130
  isLastInfo: boolean;
131
- isCanceled: boolean;
131
+ isCanceled: false;
132
132
  isWarning: boolean;
133
133
  zones?: WarningArea[];
134
134
  prefectures?: WarningArea[];
@@ -141,7 +141,7 @@ export namespace EewInformation {
141
141
 
142
142
  export interface PublicRealtimeBody {
143
143
  isLastInfo: boolean;
144
- isCanceled: boolean;
144
+ isCanceled: false;
145
145
  earthquake: Earthquake;
146
146
  intensity?: IntensityRealtime;
147
147
  text?: string;
@@ -164,9 +164,9 @@ export namespace EewInformation {
164
164
  type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)';
165
165
  title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)';
166
166
  infoType: '発表' | '訂正';
167
- targetDateTimeDubious: never;
168
- targetDuration: never;
169
- validDateTime: never;
167
+ targetDateTimeDubious?: never;
168
+ targetDuration?: never;
169
+ validDateTime?: never;
170
170
  eventId: string;
171
171
  serialNo: string;
172
172
  infoKind: '緊急地震速報';
@@ -178,9 +178,9 @@ export namespace EewInformation {
178
178
  type: 'リアルタイム震度';
179
179
  title: 'リアルタイム震度';
180
180
  infoType: '発表' | '訂正';
181
- targetDateTimeDubious: never;
182
- targetDuration: never;
183
- validDateTime: never;
181
+ targetDateTimeDubious?: never;
182
+ targetDuration?: never;
183
+ validDateTime?: never;
184
184
  eventId: string;
185
185
  serialNo: string;
186
186
  infoKind: '緊急地震速報';
@@ -193,9 +193,9 @@ export namespace EewInformation {
193
193
  type: '緊急地震速報配信テスト';
194
194
  title: '緊急地震速報配信テスト';
195
195
  infoType: '発表' | '訂正';
196
- targetDateTimeDubious: never;
197
- targetDuration: never;
198
- validDateTime: never;
196
+ targetDateTimeDubious?: never;
197
+ targetDuration?: never;
198
+ validDateTime?: never;
199
199
  eventId: string;
200
200
  serialNo: string;
201
201
  infoKind: '緊急地震速報';
@@ -207,9 +207,9 @@ export namespace EewInformation {
207
207
  type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | 'リアルタイム震度' | '緊急地震速報配信テスト';
208
208
  title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | 'リアルタイム震度' | '緊急地震速報配信テスト';
209
209
  infoType: '取消';
210
- targetDateTimeDubious: never;
211
- targetDuration: never;
212
- validDateTime: never;
210
+ targetDateTimeDubious?: never;
211
+ targetDuration?: never;
212
+ validDateTime?: never;
213
213
  eventId: string;
214
214
  serialNo: string;
215
215
  infoKind: '緊急地震速報';