@dmdata/telegram-json-types 1.2.1 → 1.2.3

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 (51) hide show
  1. package/.github/workflows/release.yml +33 -0
  2. package/LICENSE +21 -21
  3. package/README.md +79 -79
  4. package/dist/jschema/forecast-weathermap_1.0.0.json +1 -1
  5. package/dist/jschema/weather-warning-timeseries_1.0.0.json +1 -1
  6. package/index.d.ts +2 -2
  7. package/package.json +30 -32
  8. package/test/sample-schema-check.test.ts +68 -68
  9. package/tsconfig.json +25 -25
  10. package/types/component/coordinate.d.ts +27 -27
  11. package/types/component/earthquake.d.ts +77 -77
  12. package/types/component/index.d.ts +17 -17
  13. package/types/component/unit-value.d.ts +13 -13
  14. package/types/component/util.d.ts +20 -20
  15. package/types/index.d.ts +84 -84
  16. package/types/schema/earthquake-counts/1.0.0.d.ts +69 -69
  17. package/types/schema/earthquake-explanation/1.0.0.d.ts +57 -57
  18. package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +53 -53
  19. package/types/schema/earthquake-information/1.0.0.d.ts +158 -158
  20. package/types/schema/earthquake-information/1.1.0.d.ts +224 -224
  21. package/types/schema/earthquake-information/index.d.ts +9 -9
  22. package/types/schema/earthquake-nankai/1.0.0.d.ts +101 -101
  23. package/types/schema/eew-information/1.0.0.d.ts +221 -221
  24. package/types/schema/eew-information/index.d.ts +7 -7
  25. package/types/schema/forecast-2week-temperature/1.0.0.d.ts +110 -110
  26. package/types/schema/forecast-prefecture/1.0.0.d.ts +537 -537
  27. package/types/schema/forecast-season/1.0.0.d.ts +169 -169
  28. package/types/schema/forecast-warning-possibility/1.0.0.d.ts +388 -388
  29. package/types/schema/forecast-warning-possibility/1.1.0.d.ts +129 -129
  30. package/types/schema/forecast-warning-possibility/index.d.ts +9 -9
  31. package/types/schema/forecast-weathermap/1.0.0.d.ts +206 -194
  32. package/types/schema/tsunami-information/1.0.0.d.ts +261 -261
  33. package/types/schema/tsunami-information/1.1.0.d.ts +298 -298
  34. package/types/schema/tsunami-information/index.d.ts +9 -9
  35. package/types/schema/volcano-information/1.0.0.d.ts +450 -450
  36. package/types/schema/weather-commentary/1.0.0.d.ts +984 -984
  37. package/types/schema/weather-commentary/index.d.ts +7 -7
  38. package/types/schema/weather-early/1.0.0.d.ts +111 -111
  39. package/types/schema/weather-impact-society/1.0.0.d.ts +143 -143
  40. package/types/schema/weather-impact-society/1.0.1.d.ts +118 -118
  41. package/types/schema/weather-information/1.0.0.d.ts +67 -67
  42. package/types/schema/weather-landslide/1.0.0.d.ts +51 -51
  43. package/types/schema/weather-river-flood/1.0.0.d.ts +192 -192
  44. package/types/schema/weather-tornado/1.0.0.d.ts +55 -55
  45. package/types/schema/weather-typhoon/1.0.0.d.ts +146 -146
  46. package/types/schema/weather-typhoon/index.d.ts +7 -7
  47. package/types/schema/weather-warning/1.0.0.d.ts +213 -213
  48. package/types/schema/weather-warning/1.1.0.d.ts +469 -469
  49. package/types/schema/weather-warning/index.d.ts +9 -9
  50. package/types/schema/weather-warning-timeseries/1.0.0.d.ts +357 -385
  51. package/types/schema/weather-warning-timeseries/index.d.ts +7 -7
@@ -1,57 +1,57 @@
1
- import { TelegramJSONMain } from '../../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
- }
1
+ import { TelegramJSONMain } from '../../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
+ }
@@ -1,53 +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
- }
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
+ }
@@ -1,158 +1,158 @@
1
- import { TelegramJSONMain } from '../../main';
2
- import { Components } from '../../component/';
3
-
4
- export namespace EarthquakeInformation {
5
- export interface Schema {
6
- type: 'earthquake-information';
7
- version: '1.0.0';
8
- }
9
-
10
- export type IntensityClass = '1' | '2' | '3' | '4' | '5-' | '5+' | '6-' | '6+' | '7';
11
-
12
- export interface IntensityMaxInt extends Components.CodeName {
13
- maxInt: IntensityClass;
14
- }
15
-
16
- export interface IntensityMaxIntOnRevise extends Components.CodeName {
17
- maxInt?: IntensityClass;
18
- revise?: '上方修正' | '追加';
19
- }
20
-
21
- export interface IntensityCity extends Components.CodeName {
22
- maxInt?: IntensityClass;
23
- revise?: '上方修正' | '追加';
24
- condition?: '震度5弱以上未入電';
25
- }
26
-
27
- export interface IntensityStation extends Components.CodeName {
28
- int: IntensityClass | '!5-';
29
- revise?: '上方修正' | '追加';
30
- condition?: '震度5弱以上未入電';
31
- }
32
-
33
- export interface Comments {
34
- free?: string;
35
- forecast?: {
36
- text: string;
37
- codes: string[];
38
- };
39
- var?: {
40
- text: string;
41
- codes: string[];
42
- };
43
- }
44
-
45
-
46
- export interface IntensityVXSE51 {
47
- maxInt: IntensityClass;
48
- prefectures: IntensityMaxInt[];
49
- regions: IntensityMaxInt[];
50
- }
51
-
52
- export interface IntensityVXSE53 {
53
- maxInt: IntensityClass;
54
- prefectures: IntensityMaxIntOnRevise[];
55
- regions: IntensityMaxIntOnRevise[];
56
- cities: IntensityCity[];
57
- stations: IntensityStation[];
58
- }
59
-
60
-
61
- export interface PublicBodyVXSE51 {
62
- intensity: IntensityVXSE51;
63
- text?: string;
64
- comments: Omit<Comments, 'var'>;
65
- }
66
-
67
- export interface PublicBodyVXSE52 {
68
- earthquake: Components.Earthquake;
69
- text?: string;
70
- comments: Omit<Comments, 'var'>;
71
- }
72
-
73
- export interface PublicBodyVXSE53 {
74
- earthquake: Components.Earthquake;
75
- intensity?: IntensityVXSE53;
76
- text?: string;
77
- comments: Comments;
78
- }
79
-
80
- export interface PublicBodyVZSE40 {
81
- text: string;
82
- }
83
-
84
- export interface CancelBody {
85
- text: string;
86
- }
87
-
88
- export interface PublicVXSE51 extends TelegramJSONMain {
89
- _schema: Schema;
90
- type: '震度速報';
91
- title: '震度速報';
92
- infoType: '発表' | '訂正';
93
- targetDateTimeDubious?: never;
94
- targetDuration?: never;
95
- validDateTime?: never;
96
- eventId: string;
97
- serialNo: null;
98
- infoKind: '震度速報';
99
- body: PublicBodyVXSE51;
100
- }
101
-
102
- export interface PublicVXSE52 extends TelegramJSONMain {
103
- _schema: Schema;
104
- type: '震源に関する情報';
105
- title: '震源に関する情報';
106
- infoType: '発表' | '訂正';
107
- targetDateTimeDubious?: never;
108
- targetDuration?: never;
109
- validDateTime?: never;
110
- eventId: string;
111
- serialNo: null;
112
- infoKind: '震源速報';
113
- body: PublicBodyVXSE52;
114
- }
115
-
116
- export interface PublicVXSE53 extends TelegramJSONMain {
117
- _schema: Schema;
118
- type: '震源・震度に関する情報';
119
- title: '震源・震度情報' | '遠地地震に関する情報';
120
- infoType: '発表' | '訂正';
121
- targetDateTimeDubious?: never;
122
- targetDuration?: never;
123
- validDateTime?: never;
124
- eventId: string;
125
- serialNo: string;
126
- infoKind: '地震情報';
127
- body: PublicBodyVXSE53;
128
- }
129
-
130
- export interface PublicVZSE40 extends TelegramJSONMain {
131
- _schema: Schema;
132
- type: '地震・津波に関するお知らせ';
133
- title: '地震・津波に関するお知らせ';
134
- infoType: '発表' | '訂正';
135
- targetDateTimeDubious?: never;
136
- targetDuration?: never;
137
- validDateTime?: never;
138
- eventId: string;
139
- serialNo: null;
140
- infoKind: '地震・津波に関するお知らせ';
141
- body: PublicBodyVZSE40;
142
- }
143
-
144
- export interface Cancel extends TelegramJSONMain {
145
- _schema: Schema;
146
- type: '震度速報' | '震源に関する情報' | '震源・震度に関する情報' | '地震・津波に関するお知らせ';
147
- title: '震度速報' | '震源に関する情報' | '震源・震度情報' | '遠地地震に関する情報' | '地震・津波に関するお知らせ';
148
- infoType: '取消';
149
- targetDateTimeDubious?: never;
150
- targetDuration?: never;
151
- validDateTime?: never;
152
- eventId: string;
153
- infoKind: '震度速報' | '震源速報' | '地震情報' | '地震・津波に関するお知らせ';
154
- body: CancelBody;
155
- }
156
-
157
- export type Main = (PublicVXSE51 | PublicVXSE52 | PublicVXSE53 | PublicVZSE40) | Cancel;
158
- }
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component/';
3
+
4
+ export namespace EarthquakeInformation {
5
+ export interface Schema {
6
+ type: 'earthquake-information';
7
+ version: '1.0.0';
8
+ }
9
+
10
+ export type IntensityClass = '1' | '2' | '3' | '4' | '5-' | '5+' | '6-' | '6+' | '7';
11
+
12
+ export interface IntensityMaxInt extends Components.CodeName {
13
+ maxInt: IntensityClass;
14
+ }
15
+
16
+ export interface IntensityMaxIntOnRevise extends Components.CodeName {
17
+ maxInt?: IntensityClass;
18
+ revise?: '上方修正' | '追加';
19
+ }
20
+
21
+ export interface IntensityCity extends Components.CodeName {
22
+ maxInt?: IntensityClass;
23
+ revise?: '上方修正' | '追加';
24
+ condition?: '震度5弱以上未入電';
25
+ }
26
+
27
+ export interface IntensityStation extends Components.CodeName {
28
+ int: IntensityClass | '!5-';
29
+ revise?: '上方修正' | '追加';
30
+ condition?: '震度5弱以上未入電';
31
+ }
32
+
33
+ export interface Comments {
34
+ free?: string;
35
+ forecast?: {
36
+ text: string;
37
+ codes: string[];
38
+ };
39
+ var?: {
40
+ text: string;
41
+ codes: string[];
42
+ };
43
+ }
44
+
45
+
46
+ export interface IntensityVXSE51 {
47
+ maxInt: IntensityClass;
48
+ prefectures: IntensityMaxInt[];
49
+ regions: IntensityMaxInt[];
50
+ }
51
+
52
+ export interface IntensityVXSE53 {
53
+ maxInt: IntensityClass;
54
+ prefectures: IntensityMaxIntOnRevise[];
55
+ regions: IntensityMaxIntOnRevise[];
56
+ cities: IntensityCity[];
57
+ stations: IntensityStation[];
58
+ }
59
+
60
+
61
+ export interface PublicBodyVXSE51 {
62
+ intensity: IntensityVXSE51;
63
+ text?: string;
64
+ comments: Omit<Comments, 'var'>;
65
+ }
66
+
67
+ export interface PublicBodyVXSE52 {
68
+ earthquake: Components.Earthquake;
69
+ text?: string;
70
+ comments: Omit<Comments, 'var'>;
71
+ }
72
+
73
+ export interface PublicBodyVXSE53 {
74
+ earthquake: Components.Earthquake;
75
+ intensity?: IntensityVXSE53;
76
+ text?: string;
77
+ comments: Comments;
78
+ }
79
+
80
+ export interface PublicBodyVZSE40 {
81
+ text: string;
82
+ }
83
+
84
+ export interface CancelBody {
85
+ text: string;
86
+ }
87
+
88
+ export interface PublicVXSE51 extends TelegramJSONMain {
89
+ _schema: Schema;
90
+ type: '震度速報';
91
+ title: '震度速報';
92
+ infoType: '発表' | '訂正';
93
+ targetDateTimeDubious?: never;
94
+ targetDuration?: never;
95
+ validDateTime?: never;
96
+ eventId: string;
97
+ serialNo: null;
98
+ infoKind: '震度速報';
99
+ body: PublicBodyVXSE51;
100
+ }
101
+
102
+ export interface PublicVXSE52 extends TelegramJSONMain {
103
+ _schema: Schema;
104
+ type: '震源に関する情報';
105
+ title: '震源に関する情報';
106
+ infoType: '発表' | '訂正';
107
+ targetDateTimeDubious?: never;
108
+ targetDuration?: never;
109
+ validDateTime?: never;
110
+ eventId: string;
111
+ serialNo: null;
112
+ infoKind: '震源速報';
113
+ body: PublicBodyVXSE52;
114
+ }
115
+
116
+ export interface PublicVXSE53 extends TelegramJSONMain {
117
+ _schema: Schema;
118
+ type: '震源・震度に関する情報';
119
+ title: '震源・震度情報' | '遠地地震に関する情報';
120
+ infoType: '発表' | '訂正';
121
+ targetDateTimeDubious?: never;
122
+ targetDuration?: never;
123
+ validDateTime?: never;
124
+ eventId: string;
125
+ serialNo: string;
126
+ infoKind: '地震情報';
127
+ body: PublicBodyVXSE53;
128
+ }
129
+
130
+ export interface PublicVZSE40 extends TelegramJSONMain {
131
+ _schema: Schema;
132
+ type: '地震・津波に関するお知らせ';
133
+ title: '地震・津波に関するお知らせ';
134
+ infoType: '発表' | '訂正';
135
+ targetDateTimeDubious?: never;
136
+ targetDuration?: never;
137
+ validDateTime?: never;
138
+ eventId: string;
139
+ serialNo: null;
140
+ infoKind: '地震・津波に関するお知らせ';
141
+ body: PublicBodyVZSE40;
142
+ }
143
+
144
+ export interface Cancel extends TelegramJSONMain {
145
+ _schema: Schema;
146
+ type: '震度速報' | '震源に関する情報' | '震源・震度に関する情報' | '地震・津波に関するお知らせ';
147
+ title: '震度速報' | '震源に関する情報' | '震源・震度情報' | '遠地地震に関する情報' | '地震・津波に関するお知らせ';
148
+ infoType: '取消';
149
+ targetDateTimeDubious?: never;
150
+ targetDuration?: never;
151
+ validDateTime?: never;
152
+ eventId: string;
153
+ infoKind: '震度速報' | '震源速報' | '地震情報' | '地震・津波に関するお知らせ';
154
+ body: CancelBody;
155
+ }
156
+
157
+ export type Main = (PublicVXSE51 | PublicVXSE52 | PublicVXSE53 | PublicVZSE40) | Cancel;
158
+ }