@dmdata/telegram-json-types 1.2.1 → 1.2.4

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 (52) 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-commentary_1.0.0.json +1 -1
  6. package/dist/jschema/weather-warning-timeseries_1.0.0.json +1 -1
  7. package/index.d.ts +2 -2
  8. package/package.json +30 -32
  9. package/test/sample-schema-check.test.ts +68 -68
  10. package/tsconfig.json +25 -25
  11. package/types/component/coordinate.d.ts +27 -27
  12. package/types/component/earthquake.d.ts +77 -77
  13. package/types/component/index.d.ts +17 -17
  14. package/types/component/unit-value.d.ts +13 -13
  15. package/types/component/util.d.ts +20 -20
  16. package/types/index.d.ts +84 -84
  17. package/types/schema/earthquake-counts/1.0.0.d.ts +69 -69
  18. package/types/schema/earthquake-explanation/1.0.0.d.ts +57 -57
  19. package/types/schema/earthquake-hypocenter-update/1.0.0.d.ts +53 -53
  20. package/types/schema/earthquake-information/1.0.0.d.ts +158 -158
  21. package/types/schema/earthquake-information/1.1.0.d.ts +224 -224
  22. package/types/schema/earthquake-information/index.d.ts +9 -9
  23. package/types/schema/earthquake-nankai/1.0.0.d.ts +101 -101
  24. package/types/schema/eew-information/1.0.0.d.ts +221 -221
  25. package/types/schema/eew-information/index.d.ts +7 -7
  26. package/types/schema/forecast-2week-temperature/1.0.0.d.ts +110 -110
  27. package/types/schema/forecast-prefecture/1.0.0.d.ts +537 -537
  28. package/types/schema/forecast-season/1.0.0.d.ts +169 -169
  29. package/types/schema/forecast-warning-possibility/1.0.0.d.ts +388 -388
  30. package/types/schema/forecast-warning-possibility/1.1.0.d.ts +129 -129
  31. package/types/schema/forecast-warning-possibility/index.d.ts +9 -9
  32. package/types/schema/forecast-weathermap/1.0.0.d.ts +206 -194
  33. package/types/schema/tsunami-information/1.0.0.d.ts +261 -261
  34. package/types/schema/tsunami-information/1.1.0.d.ts +298 -298
  35. package/types/schema/tsunami-information/index.d.ts +9 -9
  36. package/types/schema/volcano-information/1.0.0.d.ts +450 -450
  37. package/types/schema/weather-commentary/1.0.0.d.ts +987 -984
  38. package/types/schema/weather-commentary/index.d.ts +7 -7
  39. package/types/schema/weather-early/1.0.0.d.ts +111 -111
  40. package/types/schema/weather-impact-society/1.0.0.d.ts +143 -143
  41. package/types/schema/weather-impact-society/1.0.1.d.ts +118 -118
  42. package/types/schema/weather-information/1.0.0.d.ts +67 -67
  43. package/types/schema/weather-landslide/1.0.0.d.ts +51 -51
  44. package/types/schema/weather-river-flood/1.0.0.d.ts +192 -192
  45. package/types/schema/weather-tornado/1.0.0.d.ts +55 -55
  46. package/types/schema/weather-typhoon/1.0.0.d.ts +146 -146
  47. package/types/schema/weather-typhoon/index.d.ts +7 -7
  48. package/types/schema/weather-warning/1.0.0.d.ts +213 -213
  49. package/types/schema/weather-warning/1.1.0.d.ts +469 -469
  50. package/types/schema/weather-warning/index.d.ts +9 -9
  51. package/types/schema/weather-warning-timeseries/1.0.0.d.ts +358 -385
  52. package/types/schema/weather-warning-timeseries/index.d.ts +7 -7
@@ -1,118 +1,118 @@
1
- import { TelegramJSONMain } from '../../main';
2
- import { Components } from '../../component';
3
-
4
- export namespace WeatherImpactSociety {
5
- export interface Schema {
6
- type: 'weather-impact-society';
7
- version: '1.0.1';
8
- }
9
-
10
- export interface Target extends Components.CodeName {
11
- }
12
-
13
- export interface TargetTimeDateTime {
14
- value: string;
15
- validFormat: string;
16
- }
17
-
18
- export interface TargetTime {
19
- dateTime: TargetTimeDateTime;
20
- duration?: string;
21
- }
22
-
23
- export interface MainTextZone extends Components.CodeName {
24
- }
25
-
26
- export interface MainText {
27
- text: string;
28
- zones: MainTextZone[];
29
- }
30
-
31
- export interface StatisticPeriodDateTime {
32
- value: string;
33
- validFormat?: string;
34
- }
35
-
36
- export interface StatisticPeriod {
37
- dateTime: StatisticPeriodDateTime;
38
- duration: string;
39
- name: string;
40
- }
41
-
42
- export interface StatisticStationObservedValue {
43
- type: string;
44
- unit: string;
45
- value: string | null;
46
- condition?: string;
47
- }
48
-
49
- export interface StatisticStation extends Components.CodeName {
50
- type: '天候の状況(速報値)';
51
- remark?: string;
52
- observedValues: StatisticStationObservedValue[];
53
- }
54
-
55
- export interface Statistic {
56
- type: '気象官署及び特別地域気象観測所' | 'アメダス';
57
- period: StatisticPeriod;
58
- text?: string;
59
- stations: StatisticStation[];
60
- }
61
-
62
- export interface SeasonZoneEventDataDate {
63
- value: string;
64
- dubious: '頃';
65
- }
66
-
67
- export interface SeasonZoneEventData {
68
- date?: SeasonZoneEventDataDate;
69
- normal: SeasonZoneEventDataDate;
70
- lastYear?: SeasonZoneEventDataDate;
71
- remark?: string;
72
- }
73
-
74
- export interface SeasonZone extends Components.CodeName {
75
- type: '梅雨入り' | '梅雨明け';
76
- eventData: SeasonZoneEventData;
77
- }
78
-
79
- export interface Season {
80
- type: '梅雨';
81
- zones: SeasonZone[];
82
- }
83
-
84
- export interface PublicBody {
85
- notice?: string;
86
- target: Target;
87
- targetTime: TargetTime;
88
- mainTexts: MainText [];
89
- statistics?: Statistic[];
90
- comment?: string;
91
- }
92
-
93
- export interface PublicBodySeason extends PublicBody {
94
- season: Season;
95
- }
96
-
97
- export interface Public extends TelegramJSONMain {
98
- _schema: Schema;
99
- type: '全般天候情報' | '地方天候情報';
100
- title: string;
101
- infoType: '発表' | '訂正' | '取消';
102
- targetDateTimeDubious?: never;
103
- targetDuration?: never;
104
- validDateTime?: string;
105
- eventId: string;
106
- serialNo: string;
107
- infoKind: '天候情報';
108
- body: PublicBody;
109
- }
110
-
111
- export interface PublicZoneSeason extends Public {
112
- type: '地方天候情報';
113
- validDateTime?: never;
114
- body: PublicBodySeason;
115
- }
116
-
117
- export type Main = Public | PublicZoneSeason;
118
- }
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
+
4
+ export namespace WeatherImpactSociety {
5
+ export interface Schema {
6
+ type: 'weather-impact-society';
7
+ version: '1.0.1';
8
+ }
9
+
10
+ export interface Target extends Components.CodeName {
11
+ }
12
+
13
+ export interface TargetTimeDateTime {
14
+ value: string;
15
+ validFormat: string;
16
+ }
17
+
18
+ export interface TargetTime {
19
+ dateTime: TargetTimeDateTime;
20
+ duration?: string;
21
+ }
22
+
23
+ export interface MainTextZone extends Components.CodeName {
24
+ }
25
+
26
+ export interface MainText {
27
+ text: string;
28
+ zones: MainTextZone[];
29
+ }
30
+
31
+ export interface StatisticPeriodDateTime {
32
+ value: string;
33
+ validFormat?: string;
34
+ }
35
+
36
+ export interface StatisticPeriod {
37
+ dateTime: StatisticPeriodDateTime;
38
+ duration: string;
39
+ name: string;
40
+ }
41
+
42
+ export interface StatisticStationObservedValue {
43
+ type: string;
44
+ unit: string;
45
+ value: string | null;
46
+ condition?: string;
47
+ }
48
+
49
+ export interface StatisticStation extends Components.CodeName {
50
+ type: '天候の状況(速報値)';
51
+ remark?: string;
52
+ observedValues: StatisticStationObservedValue[];
53
+ }
54
+
55
+ export interface Statistic {
56
+ type: '気象官署及び特別地域気象観測所' | 'アメダス';
57
+ period: StatisticPeriod;
58
+ text?: string;
59
+ stations: StatisticStation[];
60
+ }
61
+
62
+ export interface SeasonZoneEventDataDate {
63
+ value: string;
64
+ dubious: '頃';
65
+ }
66
+
67
+ export interface SeasonZoneEventData {
68
+ date?: SeasonZoneEventDataDate;
69
+ normal: SeasonZoneEventDataDate;
70
+ lastYear?: SeasonZoneEventDataDate;
71
+ remark?: string;
72
+ }
73
+
74
+ export interface SeasonZone extends Components.CodeName {
75
+ type: '梅雨入り' | '梅雨明け';
76
+ eventData: SeasonZoneEventData;
77
+ }
78
+
79
+ export interface Season {
80
+ type: '梅雨';
81
+ zones: SeasonZone[];
82
+ }
83
+
84
+ export interface PublicBody {
85
+ notice?: string;
86
+ target: Target;
87
+ targetTime: TargetTime;
88
+ mainTexts: MainText [];
89
+ statistics?: Statistic[];
90
+ comment?: string;
91
+ }
92
+
93
+ export interface PublicBodySeason extends PublicBody {
94
+ season: Season;
95
+ }
96
+
97
+ export interface Public extends TelegramJSONMain {
98
+ _schema: Schema;
99
+ type: '全般天候情報' | '地方天候情報';
100
+ title: string;
101
+ infoType: '発表' | '訂正' | '取消';
102
+ targetDateTimeDubious?: never;
103
+ targetDuration?: never;
104
+ validDateTime?: string;
105
+ eventId: string;
106
+ serialNo: string;
107
+ infoKind: '天候情報';
108
+ body: PublicBody;
109
+ }
110
+
111
+ export interface PublicZoneSeason extends Public {
112
+ type: '地方天候情報';
113
+ validDateTime?: never;
114
+ body: PublicBodySeason;
115
+ }
116
+
117
+ export type Main = Public | PublicZoneSeason;
118
+ }
@@ -1,67 +1,67 @@
1
- import { TelegramJSONMain } from '../../main';
2
-
3
- export namespace WeatherInformation {
4
- export interface Schema {
5
- type: 'weather-information';
6
- version: '1.0.0';
7
- }
8
-
9
- export interface PublicBody {
10
- target?: never;
11
- notice: string | null;
12
- comment: string;
13
- }
14
-
15
- export interface PublicBodyVPFG50 {
16
- target: {
17
- name: string;
18
- code: string
19
- };
20
- notice: string | null;
21
- comment: string;
22
- }
23
-
24
- export interface Public extends TelegramJSONMain {
25
- _schema: Schema;
26
- type: '全般台風情報' | '全般台風情報(定型)' | '全般台風情報(詳細)' | '全般スモッグ気象情報' | 'スモッグ気象情報' | '地方高温注意情報' | '府県高温注意情報' | '熱中症警戒アラート' | '全般潮位情報' | '地方潮位情報' | '府県潮位情報' | '全般気象情報' | '地方気象情報' | '府県気象情報';
27
- title: string;
28
- infoType: '発表' | '訂正' | '取消';
29
- targetDateTimeDubious?: never;
30
- targetDuration?: never;
31
- validDateTime?: never;
32
- eventId: string;
33
- serialNo: string | null;
34
- infoKind: '同一現象用平文情報';
35
- body: PublicBody;
36
- }
37
-
38
- export interface PublicVPZK70 extends TelegramJSONMain {
39
- _schema: Schema;
40
- type: '全般季節予報(2週間気温予報)';
41
- title: string;
42
- infoType: '発表' | '訂正' | '取消';
43
- targetDateTimeDubious?: never;
44
- targetDuration?: never;
45
- validDateTime?: never;
46
- eventId: null;
47
- serialNo: null;
48
- infoKind: '平文情報';
49
- body: PublicBody;
50
- }
51
-
52
- export interface PublicVPFG50 extends TelegramJSONMain {
53
- _schema: Schema;
54
- type: '府県天気概況';
55
- title: string;
56
- infoType: '発表' | '訂正' | '取消';
57
- targetDateTimeDubious?: never;
58
- targetDuration?: never;
59
- validDateTime?: never;
60
- eventId: null;
61
- serialNo: null;
62
- infoKind: '平文情報';
63
- body: PublicBodyVPFG50;
64
- }
65
-
66
- export type Main = Public | PublicVPZK70 | PublicVPFG50;
67
- }
1
+ import { TelegramJSONMain } from '../../main';
2
+
3
+ export namespace WeatherInformation {
4
+ export interface Schema {
5
+ type: 'weather-information';
6
+ version: '1.0.0';
7
+ }
8
+
9
+ export interface PublicBody {
10
+ target?: never;
11
+ notice: string | null;
12
+ comment: string;
13
+ }
14
+
15
+ export interface PublicBodyVPFG50 {
16
+ target: {
17
+ name: string;
18
+ code: string
19
+ };
20
+ notice: string | null;
21
+ comment: string;
22
+ }
23
+
24
+ export interface Public extends TelegramJSONMain {
25
+ _schema: Schema;
26
+ type: '全般台風情報' | '全般台風情報(定型)' | '全般台風情報(詳細)' | '全般スモッグ気象情報' | 'スモッグ気象情報' | '地方高温注意情報' | '府県高温注意情報' | '熱中症警戒アラート' | '全般潮位情報' | '地方潮位情報' | '府県潮位情報' | '全般気象情報' | '地方気象情報' | '府県気象情報';
27
+ title: string;
28
+ infoType: '発表' | '訂正' | '取消';
29
+ targetDateTimeDubious?: never;
30
+ targetDuration?: never;
31
+ validDateTime?: never;
32
+ eventId: string;
33
+ serialNo: string | null;
34
+ infoKind: '同一現象用平文情報';
35
+ body: PublicBody;
36
+ }
37
+
38
+ export interface PublicVPZK70 extends TelegramJSONMain {
39
+ _schema: Schema;
40
+ type: '全般季節予報(2週間気温予報)';
41
+ title: string;
42
+ infoType: '発表' | '訂正' | '取消';
43
+ targetDateTimeDubious?: never;
44
+ targetDuration?: never;
45
+ validDateTime?: never;
46
+ eventId: null;
47
+ serialNo: null;
48
+ infoKind: '平文情報';
49
+ body: PublicBody;
50
+ }
51
+
52
+ export interface PublicVPFG50 extends TelegramJSONMain {
53
+ _schema: Schema;
54
+ type: '府県天気概況';
55
+ title: string;
56
+ infoType: '発表' | '訂正' | '取消';
57
+ targetDateTimeDubious?: never;
58
+ targetDuration?: never;
59
+ validDateTime?: never;
60
+ eventId: null;
61
+ serialNo: null;
62
+ infoKind: '平文情報';
63
+ body: PublicBodyVPFG50;
64
+ }
65
+
66
+ export type Main = Public | PublicVPZK70 | PublicVPFG50;
67
+ }
@@ -1,51 +1,51 @@
1
- import { TelegramJSONMain } from '../../main';
2
- import { Components } from '../../component';
3
-
4
- export namespace WeatherLandslide {
5
- export interface Schema {
6
- type: 'weather-landslide';
7
- version: '1.0.0';
8
- }
9
-
10
-
11
- export interface Target extends Components.CodeName {
12
- }
13
-
14
- export interface CityKind extends Components.CodeName {
15
- code: '3' | '1' | '0';
16
- name: '警戒' | '解除' | 'なし';
17
- status: '発表' | '継続' | '解除' | 'なし';
18
- }
19
-
20
- export interface City extends Components.CodeName {
21
- kinds: [CityKind];
22
- }
23
-
24
- export interface Office {
25
- type: '都道府県' | '気象庁';
26
- name: string;
27
- contact: string;
28
- }
29
-
30
- export interface PublicBody {
31
- target: Target;
32
- cities: City[];
33
- offices: Office[];
34
- }
35
-
36
- export interface PublicEvent extends TelegramJSONMain {
37
- _schema: Schema;
38
- type: '土砂災害警戒情報';
39
- title: string;
40
- infoType: '発表';
41
- targetDateTimeDubious?: never;
42
- targetDuration?: never;
43
- validDateTime?: never;
44
- eventId: string;
45
- serialNo: string;
46
- infoKind: '土砂災害警戒情報';
47
- body: PublicBody;
48
- }
49
-
50
- export type Main = PublicEvent;
51
- }
1
+ import { TelegramJSONMain } from '../../main';
2
+ import { Components } from '../../component';
3
+
4
+ export namespace WeatherLandslide {
5
+ export interface Schema {
6
+ type: 'weather-landslide';
7
+ version: '1.0.0';
8
+ }
9
+
10
+
11
+ export interface Target extends Components.CodeName {
12
+ }
13
+
14
+ export interface CityKind extends Components.CodeName {
15
+ code: '3' | '1' | '0';
16
+ name: '警戒' | '解除' | 'なし';
17
+ status: '発表' | '継続' | '解除' | 'なし';
18
+ }
19
+
20
+ export interface City extends Components.CodeName {
21
+ kinds: [CityKind];
22
+ }
23
+
24
+ export interface Office {
25
+ type: '都道府県' | '気象庁';
26
+ name: string;
27
+ contact: string;
28
+ }
29
+
30
+ export interface PublicBody {
31
+ target: Target;
32
+ cities: City[];
33
+ offices: Office[];
34
+ }
35
+
36
+ export interface PublicEvent extends TelegramJSONMain {
37
+ _schema: Schema;
38
+ type: '土砂災害警戒情報';
39
+ title: string;
40
+ infoType: '発表';
41
+ targetDateTimeDubious?: never;
42
+ targetDuration?: never;
43
+ validDateTime?: never;
44
+ eventId: string;
45
+ serialNo: string;
46
+ infoKind: '土砂災害警戒情報';
47
+ body: PublicBody;
48
+ }
49
+
50
+ export type Main = PublicEvent;
51
+ }