@dmdata/telegram-json-types 1.0.9-jschema.0 → 1.0.9-jschema.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 (32) hide show
  1. package/README.md +31 -2
  2. package/dist/build.js +17 -11
  3. package/dist/jschema/earthquake-information_1.0.0.json +1 -0
  4. package/dist/jschema/earthquake-information_1.1.0.json +1 -0
  5. package/dist/jschema/eew-information_1.0.0.json +1 -0
  6. package/dist/jschema/tsunami-information_1.0.0.json +1 -0
  7. package/dist/jschema/weather-typhoon_1.0.0.json +1 -0
  8. package/dist/jschema-load.d.ts +1 -1
  9. package/dist/jschema-load.js +12 -6
  10. package/index.d.ts +2 -2
  11. package/package.json +3 -3
  12. package/types/{schema/component → component}/coordinate.d.ts +0 -0
  13. package/types/{schema/component → component}/earthquake.d.ts +0 -0
  14. package/types/{schema/component → component}/unit-value.d.ts +0 -0
  15. package/types/index.d.ts +11 -4
  16. package/types/schema/earthquake-information/1.0.0.d.ts +135 -0
  17. package/types/schema/{earthquake-information.d.ts → earthquake-information/1.1.0.d.ts} +179 -181
  18. package/types/schema/earthquake-information/index.d.ts +11 -0
  19. package/types/schema/{eew-information.d.ts → eew-information/1.0.0.d.ts} +3 -3
  20. package/types/schema/eew-information/index.d.ts +9 -0
  21. package/types/schema/{tsunami-information.d.ts → tsunami-information/1.0.0.d.ts} +230 -230
  22. package/types/schema/tsunami-information/index.d.ts +9 -0
  23. package/types/schema/{weather-typhoon.d.ts → weather-typhoon/1.0.0.d.ts} +3 -3
  24. package/types/schema/weather-typhoon/index.d.ts +9 -0
  25. package/dist/jschema/earthquake-information.json +0 -1778
  26. package/dist/jschema/eew-information.json +0 -2742
  27. package/dist/jschema/tsunami-information.json +0 -3891
  28. package/dist/jschema/weather-typhoon.json +0 -4969
  29. package/jschema/build.ts +0 -56
  30. package/jschema/config.ts +0 -4
  31. package/jschema/jschema-load.ts +0 -26
  32. package/tsconfig.jschema.json +0 -16
@@ -1,181 +1,179 @@
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 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 type IntensityMaxInt = {
17
- name: string;
18
- code: string;
19
- maxInt: IntensityClass;
20
- };
21
- export type IntensityMaxIntOnRevise = {
22
- name: string;
23
- code: string;
24
- maxInt?: IntensityClass;
25
- revise?: '上方修正' | '追加';
26
- }
27
-
28
- export type IntensityCity = {
29
- name: string;
30
- code: string;
31
- maxInt?: IntensityClass;
32
- revise?: '上方修正' | '追加';
33
- condition?: '震度5弱以上未入電';
34
- };
35
-
36
- export type IntensityStation = {
37
- name: string;
38
- code: string;
39
- int: IntensityClass | '!5-';
40
- revise?: '上方修正' | '追加';
41
- condition?: '震度5弱以上未入電';
42
- };
43
-
44
- export type IntensityLpgmMaxInt = IntensityMaxIntOnRevise & {
45
- maxLpgmInt: LpgmIntensityClass;
46
- };
47
- export type IntensityLpgmStationPrePeriod = {
48
- periodicBand: UnitValueNotNull<never, '秒台'>;
49
- lpgmInt: LpgmIntensityClass;
50
- sva: UnitValueNotNull<never, 'cm/s'>;
51
- };
52
- export type IntensityLpgmStation = IntensityStation & {
53
- lpgmInt: LpgmIntensityClass;
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: IntensityClass;
73
- prefectures: IntensityMaxInt[];
74
- regions: IntensityMaxInt[];
75
- };
76
-
77
- export type IntensityVXSE53 = {
78
- maxInt: IntensityClass;
79
- prefectures: IntensityMaxIntOnRevise[];
80
- regions: IntensityMaxIntOnRevise[];
81
- cities: IntensityCity[];
82
- stations: IntensityStation[];
83
- };
84
-
85
- export type IntensityVXSE62 = {
86
- maxInt: IntensityClass;
87
- maxLpgmInt: LpgmIntensityClass;
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
- _schema: Schema;
171
- type: '震度速報' | '震源に関する情報' | '震源・震度に関する情報' | '長周期地震動に関する観測情報';
172
- title: '震度速報' | '震源に関する情報' | '震源・震度情報' | '遠地地震に関する情報' | '長周期地震動に関する観測情報';
173
- infoKind: '震度速報';
174
- eventId: string;
175
- infoType: '取消';
176
- body: ChancelBody;
177
- }
178
-
179
- export type Main = (PublicVXSE51 | PublicVXSE52 | PublicVXSE53 | PublicVXSE62) | Channel;
180
-
181
- }
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 ChancelBody {
121
+ text: string;
122
+ }
123
+
124
+ export interface PublicVXSE51 extends TelegramJSONMain {
125
+ _schema: Schema;
126
+ type: '震度速報';
127
+ title: '震度速報';
128
+ infoKind: '震度速報';
129
+ eventId: string;
130
+ serialNo: null;
131
+ infoType: '発表' | '訂正';
132
+ body: PublicBodyVXSE51;
133
+ }
134
+
135
+ export interface PublicVXSE52 extends TelegramJSONMain {
136
+ _schema: Schema;
137
+ type: '震源に関する情報';
138
+ title: '震源に関する情報';
139
+ infoKind: '震源速報';
140
+ eventId: string;
141
+ serialNo: null;
142
+ infoType: '発表' | '訂正';
143
+ body: PublicBodyVXSE52;
144
+ }
145
+
146
+ export interface PublicVXSE53 extends TelegramJSONMain {
147
+ _schema: Schema;
148
+ type: '震源・震度に関する情報';
149
+ title: '震源・震度情報' | '遠地地震に関する情報';
150
+ infoKind: '地震情報';
151
+ eventId: string;
152
+ serialNo: string;
153
+ infoType: '発表' | '訂正';
154
+ body: PublicBodyVXSE53;
155
+ }
156
+
157
+ export interface PublicVXSE62 extends TelegramJSONMain {
158
+ _schema: Schema;
159
+ type: '長周期地震動に関する観測情報';
160
+ title: '長周期地震動に関する観測情報';
161
+ infoKind: '長周期地震動に関する観測情報';
162
+ eventId: string;
163
+ serialNo: string;
164
+ infoType: '発表' | '訂正';
165
+ body: PublicBodyVXSE62;
166
+ }
167
+
168
+ export interface Channel extends TelegramJSONMain {
169
+ _schema: Schema;
170
+ type: '震度速報' | '震源に関する情報' | '震源・震度に関する情報' | '長周期地震動に関する観測情報';
171
+ title: '震度速報' | '震源に関する情報' | '震源・震度情報' | '遠地地震に関する情報' | '長周期地震動に関する観測情報';
172
+ infoKind: '震度速報';
173
+ eventId: string;
174
+ infoType: '取消';
175
+ body: ChancelBody;
176
+ }
177
+
178
+ export type Main = (PublicVXSE51 | PublicVXSE52 | PublicVXSE53 | PublicVXSE62) | Channel;
179
+ }
@@ -0,0 +1,11 @@
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
+ };
10
+
11
+ export default v1_1_0;
@@ -1,6 +1,6 @@
1
- import { TelegramJSONMain } from '../main';
2
- import { Coordinate } from './component/coordinate';
3
- import { UnitValueNotNull } from './component/unit-value';
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Coordinate } from '../../component/coordinate';
3
+ import { UnitValueNotNull } from '../../component/unit-value';
4
4
 
5
5
 
6
6
  export namespace EewInformation {
@@ -0,0 +1,9 @@
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
+ };
8
+
9
+ export default v1_0_0;