@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
@@ -0,0 +1,69 @@
1
+ import { TelegramJSONMain } from '@/types/main';
2
+
3
+ export namespace EarthquakeCounts {
4
+ export interface Schema {
5
+ type: 'earthquake-counts';
6
+ version: '1.0.0';
7
+ }
8
+
9
+ export interface EarthquakeCountTargetTime {
10
+ start: string;
11
+ end: string;
12
+ }
13
+
14
+ export interface EarthquakeCountValues {
15
+ all: string | null;
16
+ felt: string | null;
17
+ }
18
+
19
+ export interface EarthquakeCount {
20
+ type: '1時間地震回数' | '累計地震回数' | '地震回数';
21
+ targetTime: EarthquakeCountTargetTime;
22
+ values: EarthquakeCountValues;
23
+ }
24
+
25
+ export interface Comments {
26
+ free: string;
27
+ }
28
+
29
+ export interface PublicBody {
30
+ earthquakeCounts?: EarthquakeCount;
31
+ nextAdvisory?: string;
32
+ text?: string;
33
+ comments?: Comments;
34
+ }
35
+
36
+ export interface CancelBody {
37
+ text: string;
38
+ }
39
+
40
+ export interface Public extends TelegramJSONMain {
41
+ _schema: Schema;
42
+ type: '地震回数に関する情報';
43
+ title: '地震回数に関する情報';
44
+ infoType: '発表' | '訂正';
45
+ targetDateTimeDubious: never;
46
+ targetDuration: never;
47
+ validDateTime: never;
48
+ eventId: string;
49
+ serialNo: string;
50
+ infoKind: '地震回数情報';
51
+ body: PublicBody;
52
+ }
53
+
54
+ export interface Cancel extends TelegramJSONMain {
55
+ _schema: Schema;
56
+ type: '地震回数に関する情報';
57
+ title: '地震回数に関する情報';
58
+ infoType: '取消';
59
+ targetDateTimeDubious: never;
60
+ targetDuration: never;
61
+ validDateTime: never;
62
+ eventId: string;
63
+ serialNo: string;
64
+ infoKind: '地震回数情報';
65
+ body: CancelBody;
66
+ }
67
+
68
+ export type Main = Public | Cancel;
69
+ }
@@ -0,0 +1,7 @@
1
+ import { EarthquakeCounts 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,57 @@
1
+ import { TelegramJSONMain } from '@/types/main';
2
+
3
+ export namespace EarthquakeExplanation {
4
+ export interface Schema {
5
+ type: 'earthquake-explanation';
6
+ version: '1.0.0';
7
+ }
8
+
9
+ export interface Naming {
10
+ text: string;
11
+ en?: string;
12
+ }
13
+
14
+ export interface Comments {
15
+ free: string;
16
+ }
17
+
18
+ export interface PublicBody {
19
+ naming?: Naming;
20
+ text: string;
21
+ comments?: Comments;
22
+ }
23
+
24
+ export interface CancelBody {
25
+ text: string;
26
+ }
27
+
28
+ export interface Public extends TelegramJSONMain {
29
+ _schema: Schema;
30
+ type: '地震の活動状況等に関する情報';
31
+ title: '地震の活動状況等に関する情報';
32
+ infoType: '発表' | '訂正';
33
+ targetDateTimeDubious: never;
34
+ targetDuration: never;
35
+ validDateTime: never;
36
+ eventId: string;
37
+ serialNo: null;
38
+ infoKind: '地震の活動状況等に関する情報';
39
+ body: PublicBody;
40
+ }
41
+
42
+ export interface Cancel extends TelegramJSONMain {
43
+ _schema: Schema;
44
+ type: '地震の活動状況等に関する情報';
45
+ title: '地震の活動状況等に関する情報';
46
+ infoType: '取消';
47
+ targetDateTimeDubious: never;
48
+ targetDuration: never;
49
+ validDateTime: never;
50
+ eventId: string;
51
+ serialNo: null;
52
+ infoKind: '地震の活動状況等に関する情報';
53
+ body: CancelBody;
54
+ }
55
+
56
+ export type Main = Public | Cancel;
57
+ }
@@ -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,53 @@
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Earthquake } from '../../component/earthquake';
3
+
4
+ export namespace EarthquakeHypocenterUpdate {
5
+ export interface Schema {
6
+ type: 'earthquake-hypocenter-update';
7
+ version: '1.0.0';
8
+ }
9
+
10
+ export interface Comments {
11
+ free: string;
12
+ }
13
+
14
+ export interface PublicBody {
15
+ earthquake: Earthquake;
16
+ text: string;
17
+ comments?: Comments;
18
+ }
19
+
20
+ export interface CancelBody {
21
+ text: string;
22
+ }
23
+
24
+ export interface Public extends TelegramJSONMain {
25
+ _schema: Schema;
26
+ type: '顕著な地震の震源要素更新のお知らせ';
27
+ title: '顕著な地震の震源要素更新のお知らせ';
28
+ infoType: '発表' | '訂正';
29
+ targetDateTimeDubious: never;
30
+ targetDuration: never;
31
+ validDateTime: never;
32
+ eventId: string;
33
+ serialNo: null;
34
+ infoKind: '震源要素更新のお知らせ';
35
+ body: PublicBody;
36
+ }
37
+
38
+ export interface Cancel extends TelegramJSONMain {
39
+ _schema: Schema;
40
+ type: '顕著な地震の震源要素更新のお知らせ';
41
+ title: '顕著な地震の震源要素更新のお知らせ';
42
+ infoType: '取消';
43
+ targetDateTimeDubious: never;
44
+ targetDuration: never;
45
+ validDateTime: never;
46
+ eventId: string;
47
+ serialNo: null;
48
+ infoKind: '震源要素更新のお知らせ';
49
+ body: CancelBody;
50
+ }
51
+
52
+ export type Main = Public | Cancel;
53
+ }
@@ -0,0 +1,7 @@
1
+ import { EarthquakeHypocenterUpdate 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,165 @@
1
+ import { TelegramJSONMain } from '@/types/main';
2
+ import { Earthquake } from '@/types/component/earthquake';
3
+
4
+ export namespace EarthquakeInformation {
5
+ export interface Schema {
6
+ type: 'earthquake-information';
7
+ version: '1.1.0';
8
+ }
9
+
10
+ export type IntensityClass = '1' | '2' | '3' | '4' | '5-' | '5+' | '6-' | '6+' | '7';
11
+
12
+ export type IntensityMaxInt = {
13
+ name: string;
14
+ code: string;
15
+ maxInt: IntensityClass;
16
+ };
17
+ export type IntensityMaxIntOnRevise = {
18
+ name: string;
19
+ code: string;
20
+ maxInt?: IntensityClass;
21
+ revise?: '上方修正' | '追加';
22
+ }
23
+
24
+ export type IntensityCity = {
25
+ name: string;
26
+ code: string;
27
+ maxInt?: IntensityClass;
28
+ revise?: '上方修正' | '追加';
29
+ condition?: '震度5弱以上未入電';
30
+ };
31
+
32
+ export type IntensityStation = {
33
+ name: string;
34
+ code: string;
35
+ int: IntensityClass | '!5-';
36
+ revise?: '上方修正' | '追加';
37
+ condition?: '震度5弱以上未入電';
38
+ };
39
+
40
+ export type Comment = {
41
+ free?: string;
42
+ forecast?: {
43
+ text: string;
44
+ codes: string[];
45
+ };
46
+ var?: {
47
+ text: string;
48
+ codes: string[];
49
+ };
50
+ };
51
+
52
+
53
+ export type IntensityVXSE51 = {
54
+ maxInt: IntensityClass;
55
+ prefectures: IntensityMaxInt[];
56
+ regions: IntensityMaxInt[];
57
+ };
58
+
59
+ export type IntensityVXSE53 = {
60
+ maxInt: IntensityClass;
61
+ prefectures: IntensityMaxIntOnRevise[];
62
+ regions: IntensityMaxIntOnRevise[];
63
+ cities: IntensityCity[];
64
+ stations: IntensityStation[];
65
+ };
66
+
67
+
68
+ export interface PublicBodyVXSE51 {
69
+ intensity: IntensityVXSE51;
70
+ text?: string;
71
+ comments: Omit<Comment, 'var'>;
72
+ }
73
+
74
+ export interface PublicBodyVXSE52 {
75
+ earthquake: Earthquake;
76
+ text?: string;
77
+ comments: Omit<Comment, 'var'>;
78
+ }
79
+
80
+ export interface PublicBodyVXSE53 {
81
+ earthquake: Earthquake;
82
+ intensity?: IntensityVXSE53;
83
+ text?: string;
84
+ comments: Comment;
85
+ }
86
+
87
+ export interface PublicBodyVXZSE40 {
88
+ text: string;
89
+ }
90
+
91
+ export interface CancelBody {
92
+ text: string;
93
+ }
94
+
95
+ export interface PublicVXSE51 extends TelegramJSONMain {
96
+ _schema: Schema;
97
+ type: '震度速報';
98
+ title: '震度速報';
99
+ infoType: '発表' | '訂正';
100
+ targetDateTimeDubious: never;
101
+ targetDuration: never;
102
+ validDateTime: never;
103
+ eventId: string;
104
+ serialNo: null;
105
+ infoKind: '震度速報';
106
+ body: PublicBodyVXSE51;
107
+ }
108
+
109
+ export interface PublicVXSE52 extends TelegramJSONMain {
110
+ _schema: Schema;
111
+ type: '震源に関する情報';
112
+ title: '震源に関する情報';
113
+ infoType: '発表' | '訂正';
114
+ targetDateTimeDubious: never;
115
+ targetDuration: never;
116
+ validDateTime: never;
117
+ eventId: string;
118
+ serialNo: null;
119
+ infoKind: '震源速報';
120
+ body: PublicBodyVXSE52;
121
+ }
122
+
123
+ export interface PublicVXSE53 extends TelegramJSONMain {
124
+ _schema: Schema;
125
+ type: '震源・震度に関する情報';
126
+ title: '震源・震度情報' | '遠地地震に関する情報';
127
+ infoType: '発表' | '訂正';
128
+ targetDateTimeDubious: never;
129
+ targetDuration: never;
130
+ validDateTime: never;
131
+ eventId: string;
132
+ serialNo: string;
133
+ infoKind: '地震情報';
134
+ body: PublicBodyVXSE53;
135
+ }
136
+
137
+ export interface PublicVZSE40 extends TelegramJSONMain {
138
+ _schema: Schema;
139
+ type: '地震・津波に関するお知らせ';
140
+ title: '地震・津波に関するお知らせ';
141
+ infoType: '発表' | '訂正';
142
+ targetDateTimeDubious: never;
143
+ targetDuration: never;
144
+ validDateTime: never;
145
+ eventId: string;
146
+ serialNo: null;
147
+ infoKind: '地震・津波に関するお知らせ';
148
+ body: PublicBodyVXZSE40;
149
+ }
150
+
151
+ export interface Cancel extends TelegramJSONMain {
152
+ _schema: Schema;
153
+ type: '震度速報' | '震源に関する情報' | '震源・震度に関する情報' | '地震・津波に関するお知らせ';
154
+ title: '震度速報' | '震源に関する情報' | '震源・震度情報' | '遠地地震に関する情報' | '地震・津波に関するお知らせ';
155
+ infoType: '取消';
156
+ targetDateTimeDubious: never;
157
+ targetDuration: never;
158
+ validDateTime: never;
159
+ eventId: string;
160
+ infoKind: '震度速報' | '震源速報' | '地震情報' | '地震・津波に関するお知らせ';
161
+ body: CancelBody;
162
+ }
163
+
164
+ export type Main = (PublicVXSE51 | PublicVXSE52 | PublicVXSE53 | PublicVZSE40) | Cancel;
165
+ }