metar-taf-parser 0.0.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 (38) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +48 -0
  3. package/dist/lib/command/common.d.ts +54 -0
  4. package/dist/lib/command/common.js +239 -0
  5. package/dist/lib/command/metar.d.ts +26 -0
  6. package/dist/lib/command/metar.js +134 -0
  7. package/dist/lib/command/remark.d.ts +199 -0
  8. package/dist/lib/command/remark.js +789 -0
  9. package/dist/lib/commons/converter.d.ts +6 -0
  10. package/dist/lib/commons/converter.js +57 -0
  11. package/dist/lib/commons/errors.d.ts +15 -0
  12. package/dist/lib/commons/errors.js +34 -0
  13. package/dist/lib/commons/i18n.d.ts +3 -0
  14. package/dist/lib/commons/i18n.js +16 -0
  15. package/dist/lib/helpers/helpers.d.ts +5 -0
  16. package/dist/lib/helpers/helpers.js +28 -0
  17. package/dist/lib/index.d.ts +1 -0
  18. package/dist/lib/index.js +3 -0
  19. package/dist/lib/locale/en.json +396 -0
  20. package/dist/lib/model/enum.d.ts +122 -0
  21. package/dist/lib/model/enum.js +132 -0
  22. package/dist/lib/model/model.d.ts +114 -0
  23. package/dist/lib/model/model.js +9 -0
  24. package/dist/lib/parser/parser.d.ts +26 -0
  25. package/dist/lib/parser/parser.js +198 -0
  26. package/dist/tests/command/common.test.d.ts +1 -0
  27. package/dist/tests/command/common.test.js +102 -0
  28. package/dist/tests/command/metar.test.d.ts +1 -0
  29. package/dist/tests/command/metar.test.js +52 -0
  30. package/dist/tests/command/remark.test.d.ts +1 -0
  31. package/dist/tests/command/remark.test.js +689 -0
  32. package/dist/tests/common/converter.test.d.ts +1 -0
  33. package/dist/tests/common/converter.test.js +78 -0
  34. package/dist/tests/helpers/helpers.test.d.ts +1 -0
  35. package/dist/tests/helpers/helpers.test.js +17 -0
  36. package/dist/tests/parser/parser.test.d.ts +1 -0
  37. package/dist/tests/parser/parser.test.js +96 -0
  38. package/package.json +42 -0
@@ -0,0 +1,199 @@
1
+ export declare abstract class Command {
2
+ abstract canParse(code: string): boolean;
3
+ abstract execute(code: string, remark: string[]): [string, string[]];
4
+ }
5
+ export declare class CeilingHeightCommand extends Command {
6
+ #private;
7
+ canParse(code: string): boolean;
8
+ execute(code: string, remark: string[]): [string, string[]];
9
+ }
10
+ export declare class CeilingSecondLocationCommand extends Command {
11
+ #private;
12
+ canParse(code: string): boolean;
13
+ execute(code: string, remark: string[]): [string, string[]];
14
+ }
15
+ export declare class HailSizeCommand extends Command {
16
+ #private;
17
+ canParse(code: string): boolean;
18
+ execute(code: string, remark: string[]): [string, string[]];
19
+ }
20
+ export declare class HourlyMaximumMinimumTemperatureCommand extends Command {
21
+ #private;
22
+ canParse(code: string): boolean;
23
+ execute(code: string, remark: string[]): [string, string[]];
24
+ }
25
+ export declare class HourlyMaximumTemperatureCommand extends Command {
26
+ #private;
27
+ canParse(code: string): boolean;
28
+ execute(code: string, remark: string[]): [string, string[]];
29
+ }
30
+ export declare class HourlyMinimumTemperatureCommand extends Command {
31
+ #private;
32
+ canParse(code: string): boolean;
33
+ execute(code: string, remark: string[]): [string, string[]];
34
+ }
35
+ export declare class HourlyPrecipitationAmountCommand extends Command {
36
+ #private;
37
+ canParse(code: string): boolean;
38
+ execute(code: string, remark: string[]): [string, string[]];
39
+ }
40
+ export declare class HourlyPressureCommand extends Command {
41
+ #private;
42
+ canParse(code: string): boolean;
43
+ execute(code: string, remark: string[]): [string, string[]];
44
+ }
45
+ export declare class HourlyTemperatureDewPointCommand extends Command {
46
+ #private;
47
+ canParse(code: string): boolean;
48
+ execute(code: string, remark: string[]): [string, string[]];
49
+ }
50
+ export declare class IceAccretionCommand extends Command {
51
+ #private;
52
+ canParse(code: string): boolean;
53
+ execute(code: string, remark: string[]): [string, string[]];
54
+ }
55
+ export declare class ObscurationCommand extends Command {
56
+ #private;
57
+ canParse(code: string): boolean;
58
+ execute(code: string, remark: string[]): [string, string[]];
59
+ }
60
+ export declare class PrecipitationAmount24HourCommand extends Command {
61
+ #private;
62
+ canParse(code: string): boolean;
63
+ execute(code: string, remark: string[]): [string, string[]];
64
+ }
65
+ export declare class PrecipitationAmount36HourCommand extends Command {
66
+ #private;
67
+ canParse(code: string): boolean;
68
+ execute(code: string, remark: string[]): [string, string[]];
69
+ }
70
+ export declare class PrecipitationBegEndCommand extends Command {
71
+ #private;
72
+ canParse(code: string): boolean;
73
+ execute(code: string, remark: string[]): [string, string[]];
74
+ }
75
+ export declare class PrevailingVisibilityCommand extends Command {
76
+ #private;
77
+ canParse(code: string): boolean;
78
+ execute(code: string, remark: string[]): [string, string[]];
79
+ }
80
+ export declare class SeaLevelPressureCommand extends Command {
81
+ #private;
82
+ canParse(code: string): boolean;
83
+ execute(code: string, remark: string[]): [string, string[]];
84
+ }
85
+ export declare class SecondLocationVisibilityCommand extends Command {
86
+ #private;
87
+ canParse(code: string): boolean;
88
+ execute(code: string, remark: string[]): [string, string[]];
89
+ }
90
+ export declare class SectorVisibilityCommand extends Command {
91
+ #private;
92
+ canParse(code: string): boolean;
93
+ execute(code: string, remark: string[]): [string, string[]];
94
+ }
95
+ export declare class SmallHailSizeCommand extends Command {
96
+ #private;
97
+ canParse(code: string): boolean;
98
+ execute(code: string, remark: string[]): [string, string[]];
99
+ }
100
+ export declare class SnowDepthCommand extends Command {
101
+ #private;
102
+ canParse(code: string): boolean;
103
+ execute(code: string, remark: string[]): [string, string[]];
104
+ }
105
+ export declare class SnowIncreaseCommand extends Command {
106
+ #private;
107
+ canParse(code: string): boolean;
108
+ execute(code: string, remark: string[]): [string, string[]];
109
+ }
110
+ export declare class SnowPelletsCommand extends Command {
111
+ #private;
112
+ canParse(code: string): boolean;
113
+ execute(code: string, remark: string[]): [string, string[]];
114
+ }
115
+ export declare class SunshineDurationCommand extends Command {
116
+ #private;
117
+ canParse(code: string): boolean;
118
+ execute(code: string, remark: string[]): [string, string[]];
119
+ }
120
+ export declare class SurfaceVisibilityCommand extends Command {
121
+ #private;
122
+ canParse(code: string): boolean;
123
+ execute(code: string, remark: string[]): [string, string[]];
124
+ }
125
+ export declare class ThunderStormLocationCommand extends Command {
126
+ #private;
127
+ canParse(code: string): boolean;
128
+ execute(code: string, remark: string[]): [string, string[]];
129
+ }
130
+ export declare class ThunderStormLocationMovingCommand extends Command {
131
+ #private;
132
+ canParse(code: string): boolean;
133
+ execute(code: string, remark: string[]): [string, string[]];
134
+ }
135
+ export declare class TornadicActivityBegCommand extends Command {
136
+ #private;
137
+ canParse(code: string): boolean;
138
+ execute(code: string, remark: string[]): [string, string[]];
139
+ }
140
+ export declare class TornadicActivityBegEndCommand extends Command {
141
+ #private;
142
+ canParse(code: string): boolean;
143
+ execute(code: string, remark: string[]): [string, string[]];
144
+ }
145
+ export declare class TornadicActivityEndCommand extends Command {
146
+ #private;
147
+ canParse(code: string): boolean;
148
+ execute(code: string, remark: string[]): [string, string[]];
149
+ }
150
+ export declare class TowerVisibilityCommand extends Command {
151
+ #private;
152
+ canParse(code: string): boolean;
153
+ execute(code: string, remark: string[]): [string, string[]];
154
+ }
155
+ export declare class VariableSkyCommand extends Command {
156
+ #private;
157
+ canParse(code: string): boolean;
158
+ execute(code: string, remark: string[]): [string, string[]];
159
+ }
160
+ export declare class VariableSkyHeightCommand extends Command {
161
+ #private;
162
+ canParse(code: string): boolean;
163
+ execute(code: string, remark: string[]): [string, string[]];
164
+ }
165
+ export declare class VirgaDirectionCommand extends Command {
166
+ #private;
167
+ canParse(code: string): boolean;
168
+ execute(code: string, remark: string[]): [string, string[]];
169
+ }
170
+ export declare class WaterEquivalentSnowCommand extends Command {
171
+ #private;
172
+ canParse(code: string): boolean;
173
+ execute(code: string, remark: string[]): [string, string[]];
174
+ }
175
+ export declare class WindPeakCommand extends Command {
176
+ #private;
177
+ canParse(code: string): boolean;
178
+ execute(code: string, remark: string[]): [string, string[]];
179
+ }
180
+ export declare class WindShiftCommand extends Command {
181
+ #private;
182
+ canParse(code: string): boolean;
183
+ execute(code: string, remark: string[]): [string, string[]];
184
+ }
185
+ export declare class WindShiftFropaCommand extends Command {
186
+ #private;
187
+ canParse(code: string): boolean;
188
+ execute(code: string, remark: string[]): [string, string[]];
189
+ }
190
+ export declare class DefaultCommand extends Command {
191
+ canParse(): boolean;
192
+ execute(code: string, remark: string[]): [string, string[]];
193
+ }
194
+ export declare class RemarkCommandSupplier {
195
+ defaultCommand: Command;
196
+ commandList: Command[];
197
+ constructor();
198
+ get(code: string): Command;
199
+ }