@fboes/aerofly-custom-missions 1.2.2 → 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 (46) hide show
  1. package/.eslintrc.json +24 -0
  2. package/CHANGELOG.md +4 -0
  3. package/dist/dto/AeroflyConfigFileSet.js +43 -0
  4. package/dist/dto/AeroflyLocalizedText.js +40 -0
  5. package/dist/dto/AeroflyMission.js +171 -0
  6. package/dist/dto/AeroflyMissionCheckpoint.js +121 -0
  7. package/dist/dto/AeroflyMissionConditions.js +122 -0
  8. package/dist/dto/AeroflyMissionConditionsCloud.js +80 -0
  9. package/dist/dto/AeroflyMissionTargetPlane.js +30 -0
  10. package/dist/dto/AeroflyMissionsList.js +28 -0
  11. package/dist/index.js +7 -634
  12. package/dist/index.test.js +12 -5
  13. package/package.json +9 -10
  14. package/src/dto/AeroflyConfigFileSet.ts +35 -0
  15. package/src/dto/AeroflyLocalizedText.ts +69 -0
  16. package/src/dto/AeroflyMission.ts +377 -0
  17. package/src/dto/AeroflyMissionCheckpoint.ts +235 -0
  18. package/src/dto/AeroflyMissionConditions.ts +196 -0
  19. package/src/dto/AeroflyMissionConditionsCloud.ts +100 -0
  20. package/src/dto/AeroflyMissionTargetPlane.ts +56 -0
  21. package/src/dto/AeroflyMissionsList.ts +36 -0
  22. package/src/index.test.ts +8 -10
  23. package/src/index.ts +7 -1099
  24. package/types/AeroflyMissionCheckpoint.d.ts +140 -0
  25. package/types/AeroflyMissionTargetPlane.d.ts +40 -0
  26. package/types/dto/AeroflyConfigFileSet.d.ts +10 -0
  27. package/types/dto/AeroflyConfigFileSet.d.ts.map +1 -0
  28. package/types/dto/AeroflyLocalizedText.d.ts +54 -0
  29. package/types/dto/AeroflyLocalizedText.d.ts.map +1 -0
  30. package/types/dto/AeroflyMission.d.ts +208 -0
  31. package/types/dto/AeroflyMission.d.ts.map +1 -0
  32. package/types/dto/AeroflyMissionCheckpoint.d.ts +152 -0
  33. package/types/dto/AeroflyMissionCheckpoint.d.ts.map +1 -0
  34. package/types/dto/AeroflyMissionConditions.d.ts +116 -0
  35. package/types/dto/AeroflyMissionConditions.d.ts.map +1 -0
  36. package/types/dto/AeroflyMissionConditionsCloud.d.ts +51 -0
  37. package/types/dto/AeroflyMissionConditionsCloud.d.ts.map +1 -0
  38. package/types/dto/AeroflyMissionTargetPlane.d.ts +40 -0
  39. package/types/dto/AeroflyMissionTargetPlane.d.ts.map +1 -0
  40. package/types/dto/AeroflyMissionsList.d.ts +24 -0
  41. package/types/dto/AeroflyMissionsList.d.ts.map +1 -0
  42. package/types/dto/basicTypes.d.ts +1 -0
  43. package/types/index.d.ts +8 -586
  44. package/types/index.d.ts.map +1 -1
  45. package/types/index.test.d.ts +1 -1
  46. package/eslint.config.js +0 -29
package/types/index.d.ts CHANGED
@@ -1,586 +1,8 @@
1
- /**
2
- * Represents origin or destination conditions for flight
3
- * @property icao uppercase ICAO airport ID
4
- * @property longitude easting, using the World Geodetic
5
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
6
- * of decimal degrees; -180..180
7
- * @property latitude northing, using the World Geodetic
8
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
9
- * of decimal degrees; -90..90
10
- * @property dir in degree
11
- * @property alt the height in meters above or below the WGS
12
- * 84 reference ellipsoid
13
- */
14
- export type AeroflyMissionPosition = {
15
- icao: string;
16
- longitude: number;
17
- latitude: number;
18
- dir: number;
19
- alt: number;
20
- };
21
- /**
22
- * State of aircraft systems. Configures power settings, flap positions etc
23
- */
24
- export type AeroflyMissionSetting = "cold_and_dark" | "before_start" | "taxi" | "takeoff" | "cruise" | "approach" | "landing" | "winch_launch" | "aerotow" | "pushback";
25
- /**
26
- * Types of checkpoints. Required are usually "origin", "departure_runway" at the start and "destination_runway", "destination" at the end.
27
- */
28
- export type AeroflyMissionCheckpointType = "origin" | "departure_runway" | "departure" | "waypoint" | "arrival" | "approach" | "destination_runway" | "destination";
29
- /**
30
- * Data for the aircraft to use on this mission
31
- * @property name lowercase Aerofly aircraft ID
32
- * @property icao ICAO aircraft code
33
- * @property livery (not used yet)
34
- */
35
- export type AeroflyMissionAircraft = {
36
- name: string;
37
- icao: string;
38
- livery: string;
39
- };
40
- /**
41
- * Weather data for wind
42
- * @property direction in degree
43
- * @property speed in kts
44
- * @property gusts in kts
45
- */
46
- export type AeroflyMissionConditionsWind = {
47
- direction: number;
48
- speed: number;
49
- gusts: number;
50
- };
51
- /**
52
- * Cloud coverage codes
53
- */
54
- export type AeroflyMissionConditionsCloudCoverCode = "CLR" | "FEW" | "SCT" | "BKN" | "OVC";
55
- export declare class AeroflyConfigFileSet {
56
- #private;
57
- elements: string[];
58
- constructor(indent: number, type: string, name: string, value?: string);
59
- get indent(): string;
60
- push(type: string, name: string, value: string | number | string[] | number[] | boolean, comment?: string): this;
61
- pushRaw(s: string): this;
62
- toString(): string;
63
- }
64
- /**
65
- * @class
66
- * A list of flight plans.
67
- *
68
- * The purpose of this class is to collect data needed for Aerofly FS4's
69
- * `custom_missions_user.tmc` flight plan file format, and export the structure
70
- * for this file via the `toString()` method.
71
- */
72
- export declare class AeroflyMissionsList {
73
- /**
74
- * @property {AeroflyMission[]} missions in this mission list
75
- */
76
- missions: AeroflyMission[];
77
- /**
78
- * @param {AeroflyMission[]} missions in this mission list
79
- */
80
- constructor(missions?: AeroflyMission[]);
81
- /**
82
- * @returns {string} to use in Aerofly FS4's `custom_missions_user.tmc`
83
- */
84
- toString(): string;
85
- }
86
- /**
87
- * @class
88
- * A single flighplan, containing aircraft and weather data as well.
89
- *
90
- * The purpose of this class is to collect data needed for Aerofly FS4's
91
- * `custom_missions_user.tmc` flight plan file format, and export the structure
92
- * for this file via the `toString()` method.
93
- */
94
- export declare class AeroflyMission {
95
- /**
96
- * @property {?string} tutorialName will create a link to a tutorial page at https://www.aerofly.com/aircraft-tutorials/
97
- */
98
- tutorialName: string | null;
99
- /**
100
- * @property {string} title of this flight plan
101
- */
102
- title: string;
103
- /**
104
- * @property {string} description text, mission briefing, etc
105
- */
106
- description: string;
107
- /**
108
- * @property {AeroflyLocalizedText[]} localizedTexts for title and description
109
- */
110
- localizedTexts: AeroflyLocalizedText[];
111
- /**
112
- * @property {string[]} tags
113
- */
114
- tags: string[];
115
- /**
116
- * @property {?boolean} isFeatured makes this mission pop up in "Challenges"
117
- */
118
- isFeatured: boolean | null;
119
- /**
120
- * @property {?number} difficulty values between 0.00 and 2.00 have been encountered, but they seem to be without limit
121
- */
122
- difficulty: number | null;
123
- /**
124
- * @property {"cold_and_dark"|"before_start"|"taxi"|"takeoff"|"cruise"|"approach"|"landing"|"winch_launch"|"aerotow"|"pushback"} flightSetting of aircraft, like "taxi", "cruise"
125
- */
126
- flightSetting: AeroflyMissionSetting;
127
- /**
128
- * @property {object} aircraft for this mission
129
- */
130
- aircraft: AeroflyMissionAircraft;
131
- /**
132
- * @property {string} callsign of aircraft, uppercased
133
- */
134
- callsign: string;
135
- /**
136
- * @property {object} origin position of aircraft, as well as name of starting airport. Position does not have match airport.
137
- */
138
- origin: AeroflyMissionPosition;
139
- /**
140
- * @property {object} destination position of aircraft, as well as name of destination airport. Position does not have match airport.
141
- */
142
- destination: AeroflyMissionPosition;
143
- /**
144
- * @property {?number} distance in meters
145
- */
146
- distance: number | null;
147
- /**
148
- * @property {?number} duration in seconds
149
- */
150
- duration: number | null;
151
- /**
152
- * @property {?boolean} isScheduled marks this flight as "Scheduled flight".
153
- */
154
- isScheduled: boolean | null;
155
- /**
156
- * @property {?AeroflyMissionTargetPlane} finish as finish condition
157
- */
158
- finish: AeroflyMissionTargetPlane | null;
159
- /**
160
- * @property {AeroflyMissionConditions} conditions like time and weather for mission
161
- */
162
- conditions: AeroflyMissionConditions;
163
- /**
164
- * @property {AeroflyMissionConditions} checkpoints form the actual flight plan
165
- */
166
- checkpoints: AeroflyMissionCheckpoint[];
167
- /**
168
- * @param {string} title of this flight plan
169
- * @param {object} [additionalAttributes] allows to set additional attributes on creation
170
- * @param {string} [additionalAttributes.description] text, mission briefing, etc
171
- * @param {AeroflyLocalizedText[]} [additionalAttributes.localizedTexts] translations for title and description
172
- * @param {?string} [additionalAttributes.tutorialName] will create a link to a tutorial page at https://www.aerofly.com/aircraft-tutorials/
173
- * @param {string[]} [additionalAttributes.tags]
174
- * @param {?boolean} [additionalAttributes.isFeatured] makes this mission pop up in "Challenges"
175
- * @param {?number} [additionalAttributes.difficulty] values between 0.00 and 2.00 have been encountered, but they seem to be without limit
176
- * @param {"cold_and_dark"|"before_start"|"taxi"|"takeoff"|"cruise"|"approach"|"landing"|"winch_launch"|"aerotow"|"pushback"} [additionalAttributes.flightSetting] of aircraft, like "taxi", "cruise"
177
- * @param {{name:string,livery:string,icao:string}} [additionalAttributes.aircraft] for this mission
178
- * @param {string} [additionalAttributes.callsign] of aircraft, uppercased
179
- * @param {object} [additionalAttributes.origin] position of aircraft, as well as name of starting airport. Position does not have match airport.
180
- * @param {object} [additionalAttributes.destination] position of aircraft, as well as name of destination airport. Position does not have match airport.
181
- * @param {?number} [additionalAttributes.distance] in meters
182
- * @param {?number} [additionalAttributes.duration] in seconds
183
- * @param {?boolean} [additionalAttributes.isScheduled] marks this flight as "Scheduled flight".
184
- * @param {?AeroflyMissionTargetPlane} [additionalAttributes.finish] as finish condition
185
- * @param {AeroflyMissionConditions} [additionalAttributes.conditions] like time and weather for mission
186
- * @param {AeroflyMissionCheckpoint[]} [additionalAttributes.checkpoints] form the actual flight plan
187
- */
188
- constructor(title: string, { tutorialName, description, localizedTexts, tags, isFeatured, difficulty, flightSetting, aircraft, callsign, origin, destination, distance, duration, isScheduled, finish, conditions, checkpoints, }?: {
189
- tutorialName?: string | null;
190
- description?: string;
191
- localizedTexts?: AeroflyLocalizedText[];
192
- tags?: string[];
193
- isFeatured?: boolean | null;
194
- difficulty?: number | null;
195
- flightSetting?: AeroflyMissionSetting;
196
- aircraft?: AeroflyMissionAircraft;
197
- callsign?: string;
198
- origin?: AeroflyMissionPosition;
199
- destination?: AeroflyMissionPosition;
200
- distance?: number | null;
201
- duration?: number | null;
202
- isScheduled?: boolean | null;
203
- finish?: AeroflyMissionTargetPlane | null;
204
- conditions?: AeroflyMissionConditions;
205
- checkpoints?: AeroflyMissionCheckpoint[];
206
- });
207
- /**
208
- * @returns {string} indexed checkpoints
209
- */
210
- getCheckpointsString(): string;
211
- /**
212
- * @returns {string} indexed checkpoints
213
- */
214
- getLocalizedTextsString(): string;
215
- /**
216
- * @throws {Error} on missing waypoints
217
- * @returns {string} to use in Aerofly FS4's `custom_missions_user.tmc`
218
- */
219
- toString(): string;
220
- }
221
- /**
222
- * @class
223
- * Time and weather data for the given flight plan
224
- *
225
- * The purpose of this class is to collect data needed for Aerofly FS4's
226
- * `custom_missions_user.tmc` flight plan file format, and export the structure
227
- * for this file via the `toString()` method.
228
- */
229
- export declare class AeroflyMissionConditions {
230
- /**
231
- * @property {Date} time of flight plan. Relevant is the UTC part, so
232
- * consider setting this date in UTC.
233
- */
234
- time: Date;
235
- /**
236
- * @property {object} wind state
237
- */
238
- wind: AeroflyMissionConditionsWind;
239
- /**
240
- * @property {number} 0..1, percentage
241
- */
242
- turbulenceStrength: number;
243
- /**
244
- * @property {number} 0..1, percentage
245
- */
246
- thermalStrength: number;
247
- /**
248
- * @property {number} visibility in meters
249
- */
250
- visibility: number;
251
- /**
252
- * @property {AeroflyMissionConditionsCloud[]} clouds for the whole flight
253
- */
254
- clouds: AeroflyMissionConditionsCloud[];
255
- /**
256
- * @param {object} additionalAttributes allows to set additional attributes on creation
257
- * @param {Date} [additionalAttributes.time] of flight plan. Relevant is the UTC part, so
258
- * consider setting this date in UTC.
259
- * @param {{direction: number, speed: number, gusts: number}} [additionalAttributes.wind] state
260
- * @param {number} [additionalAttributes.turbulenceStrength] 0..1, percentage
261
- * @param {number} [additionalAttributes.thermalStrength] 0..1, percentage
262
- * @param {number} [additionalAttributes.visibility] in meters
263
- * @param {?number} [additionalAttributes.visibility_sm] in statute miles, will overwrite visibility
264
- * @param {?number} [additionalAttributes.temperature] in °C, will overwrite thermalStrength
265
- * @param {AeroflyMissionConditionsCloud[]} [additionalAttributes.clouds] for the whole flight
266
- */
267
- constructor({ time, wind, turbulenceStrength, thermalStrength, visibility, visibility_sm, temperature, clouds, }?: {
268
- time?: Date;
269
- wind?: {
270
- direction: number;
271
- speed: number;
272
- gusts: number;
273
- };
274
- turbulenceStrength?: number;
275
- thermalStrength?: number;
276
- visibility?: number;
277
- visibility_sm?: number | null;
278
- temperature?: number | null;
279
- clouds?: AeroflyMissionConditionsCloud[];
280
- });
281
- /**
282
- * @returns {number} the Aerofly value for UTC hours + minutes/60 + seconds/3600. Ignores milliseconds ;)
283
- */
284
- get time_hours(): number;
285
- /**
286
- * @returns {string} Time representation like "20:15:00"
287
- */
288
- get time_presentational(): string;
289
- /**
290
- * @param {number} visibility_sm `this.visibility` in statute miles instead of meters
291
- */
292
- set visibility_sm(visibility_sm: number);
293
- /**
294
- * @returns {number} `this.visibility` in statute miles instead of meters
295
- */
296
- get visibility_sm(): number;
297
- /**
298
- * Will set `this.thermalStrength`
299
- * @param {number} temperature in °C
300
- */
301
- set temperature(temperature: number);
302
- /**
303
- * @returns {number} in °C
304
- */
305
- get temperature(): number;
306
- /**
307
- * @returns {string}
308
- */
309
- getCloudsString(): string;
310
- /**
311
- * @returns {string} to use in Aerofly FS4's `custom_missions_user.tmc`
312
- */
313
- toString(): string;
314
- }
315
- /**
316
- * @class
317
- * A cloud layer for the current flight plan's weather data
318
- *
319
- * The purpose of this class is to collect data needed for Aerofly FS4's
320
- * `custom_missions_user.tmc` flight plan file format, and export the structure
321
- * for this file via the `toString()` method.
322
- */
323
- export declare class AeroflyMissionConditionsCloud {
324
- /**
325
- * @property {number} cover 0..1, percentage
326
- */
327
- cover: number;
328
- /**
329
- * @property {number} base altitude in meters AGL
330
- */
331
- base: number;
332
- /**
333
- * @param {number} cover 0..1, percentage
334
- * @param {number} base altitude in meters AGL
335
- */
336
- constructor(cover: number, base: number);
337
- /**
338
- * @param {number} cover 0..1, percentage
339
- * @param {number} base_feet altitude, but in feet AGL instead of meters AGL
340
- * @returns {AeroflyMissionConditionsCloud}
341
- */
342
- static createInFeet(cover: number, base_feet: number): AeroflyMissionConditionsCloud;
343
- /**
344
- * @param {number} base_feet `this.base` in feet instead of meters
345
- */
346
- set base_feet(base_feet: number);
347
- /**
348
- * @returns {number} `this.base` in feet instead of meters
349
- */
350
- get base_feet(): number;
351
- /**
352
- * @returns {string} Cloud coverage as text representation like "OVC" for `this.cover`
353
- */
354
- get cover_code(): AeroflyMissionConditionsCloudCoverCode;
355
- /**
356
- * @param {number} index if used in an array will se the array index
357
- * @returns {string} to use in Aerofly FS4's `custom_missions_user.tmc`
358
- */
359
- toString(index?: number): string;
360
- }
361
- /**
362
- * @class
363
- * A single way point for the given flight plan
364
- *
365
- * The purpose of this class is to collect data needed for Aerofly FS4's
366
- * `custom_missions_user.tmc` flight plan file format, and export the structure
367
- * for this file via the `toString()` method.
368
- */
369
- export declare class AeroflyMissionCheckpoint {
370
- /**
371
- * @property {"origin"|"departure_runway"|"departure"|"waypoint"|"arrival"|"approach"|"destination_runway"|"destination"} type of checkpoint, like "departure_runway"
372
- */
373
- type: AeroflyMissionCheckpointType;
374
- /**
375
- * @property {string} name ICAO code for airport, runway designator, navaid
376
- * designator, fix name, or custom name
377
- */
378
- name: string;
379
- /**
380
- * @property {number} longitude easting, using the World Geodetic
381
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
382
- * of decimal degrees; -180..180
383
- */
384
- longitude: number;
385
- /**
386
- * @property {number} latitude northing, using the World Geodetic
387
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
388
- * of decimal degrees; -90..90
389
- */
390
- latitude: number;
391
- /**
392
- * @property {number} altitude The height in meters above or below the WGS
393
- * 84 reference ellipsoid
394
- */
395
- altitude: number;
396
- /**
397
- * @property {?boolean} altitudeConstraint The altitude given in `altitude`
398
- * will be interpreted as mandatory flight plan altitude instead of
399
- * suggestion.
400
- */
401
- altitudeConstraint: boolean | null;
402
- /**
403
- * @property {?number} direction of runway, in degree
404
- */
405
- direction: number | null;
406
- /**
407
- * @property {?number} slope of runway
408
- */
409
- slope: number | null;
410
- /**
411
- * @property {?number} length of runway, in meters
412
- */
413
- length: number | null;
414
- /**
415
- * @property {?number} frequency of runways or navigational aids, in Hz; multiply by 1000 for kHz, 1_000_000 for MHz
416
- */
417
- frequency: number | null;
418
- /**
419
- * @property {?boolean} flyOver if waypoint is meant to be flown over
420
- */
421
- flyOver: boolean | null;
422
- /**
423
- * @param {string} name ICAO code for airport, runway designator, navaid
424
- * designator, fix name, or custom name
425
- * @param {"origin"|"departure_runway"|"departure"|"waypoint"|"arrival"|"approach"|"destination_runway"|"destination"} type Type of checkpoint, like "departure_runway"
426
- * @param {number} longitude easting, using the World Geodetic
427
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
428
- * of decimal degrees; -180..180
429
- * @param {number} latitude northing, using the World Geodetic
430
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
431
- * of decimal degrees; -90..90
432
- * @param {object} additionalAttributes allows to set additional attributes on creation
433
- * @param {number} [additionalAttributes.altitude] The height in meters above or below the WGS
434
- * 84 reference ellipsoid
435
- * @param {?number} [additionalAttributes.altitude_feet] The height in feet above or below the WGS
436
- * 84 reference ellipsoid. Will overwrite altitude
437
- * @param {number} [additionalAttributes.altitudeConstraint] The altitude given in `altitude`
438
- * will be interpreted as mandatory flight plan altitude instead of
439
- * suggestion.
440
- * @param {boolean} [additionalAttributes.direction] of runway, in degree
441
- * @param {?number} [additionalAttributes.slope] of runway
442
- * @param {?number} [additionalAttributes.length] of runway, in meters
443
- * @param {?number} [additionalAttributes.length_feet] of runway, in feet. Will overwrite length
444
- * @param {?number} [additionalAttributes.frequency] of runways or navigational aids, in Hz; multiply by 1000 for kHz, 1_000_000 for MHz
445
- * @param {?boolean} [additionalAttributes.flyOver] if waypoint is meant to be flown over
446
- */
447
- constructor(name: string, type: AeroflyMissionCheckpointType, longitude: number, latitude: number, { altitude, altitude_feet, altitudeConstraint, direction, slope, length, length_feet, frequency, flyOver, }?: {
448
- altitude?: number;
449
- altitude_feet?: number | null;
450
- altitudeConstraint?: boolean | null;
451
- direction?: number | null;
452
- slope?: number | null;
453
- length?: number | null;
454
- length_feet?: number | null;
455
- frequency?: number | null;
456
- flyOver?: boolean | null;
457
- });
458
- /**
459
- * @param {number} altitude_feet
460
- */
461
- set altitude_feet(altitude_feet: number);
462
- /**
463
- * @returns {number} altitude_feet
464
- */
465
- get altitude_feet(): number;
466
- /**
467
- * @param {number} length_feet
468
- */
469
- set length_feet(length_feet: number);
470
- /**
471
- * @returns {number} length_feet
472
- */
473
- get length_feet(): number;
474
- /**
475
- * @returns {string}
476
- */
477
- get frequency_string(): string;
478
- /**
479
- * @param {number} index if used in an array will se the array index
480
- * @returns {string} to use in Aerofly FS4's `custom_missions_user.tmc`
481
- */
482
- toString(index?: number): string;
483
- }
484
- /**
485
- * @class
486
- * A translation for the mission title and description.
487
- */
488
- export declare class AeroflyLocalizedText {
489
- /**
490
- * @property {string} language ISO 639-1 like
491
- * - br
492
- * - cn
493
- * - de
494
- * - es
495
- * - fr
496
- * - id
497
- * - it
498
- * - jp
499
- * - kr
500
- * - pl
501
- * - sv
502
- * - tr
503
- */
504
- language: string;
505
- /**
506
- * @property {string} title of this flight plan
507
- */
508
- title: string;
509
- /**
510
- * @property {string} description text, mission briefing, etc
511
- */
512
- description: string;
513
- /**
514
- * @param {string} language ISO 639-1 like
515
- * - br
516
- * - cn
517
- * - de
518
- * - es
519
- * - fr
520
- * - id
521
- * - it
522
- * - jp
523
- * - kr
524
- * - pl
525
- * - sv
526
- * - tr
527
- * @param {string} title of this flight plan
528
- * @param {string} description text, mission briefing, etc
529
- */
530
- constructor(language: string, title: string, description: string);
531
- /**
532
- * @param {number} index if used in an array will se the array index
533
- * @returns {string} to use in Aerofly FS4's `custom_missions_user.tmc`
534
- */
535
- toString(index?: number): string;
536
- }
537
- /**
538
- * @class
539
- * A target plane which the aircraft needs to cross.
540
- */
541
- export declare class AeroflyMissionTargetPlane {
542
- /**
543
- * @property {number} longitude easting, using the World Geodetic
544
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
545
- * of decimal degrees; -180..180
546
- */
547
- longitude: number;
548
- /**
549
- * @property {number} latitude northing, using the World Geodetic
550
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
551
- * of decimal degrees; -90..90
552
- */
553
- latitude: number;
554
- /**
555
- * @property {number} dir in degree
556
- */
557
- dir: number;
558
- /**
559
- * @property {string} name of property
560
- */
561
- name: string;
562
- /**
563
- *
564
- * @param {number} longitude easting, using the World Geodetic
565
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
566
- * of decimal degrees; -180..180
567
- * @param {number}latitude northing, using the World Geodetic
568
- * System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units
569
- * of decimal degrees; -90..90
570
- * @param {number} dir in degree
571
- * @param {string} name of property
572
- */
573
- constructor(longitude: number, latitude: number, dir: number, name?: string);
574
- toString(): string;
575
- }
576
- declare const _default: {
577
- AeroflyMissionsList: typeof AeroflyMissionsList;
578
- AeroflyMission: typeof AeroflyMission;
579
- AeroflyMissionConditions: typeof AeroflyMissionConditions;
580
- AeroflyMissionConditionsCloud: typeof AeroflyMissionConditionsCloud;
581
- AeroflyMissionCheckpoint: typeof AeroflyMissionCheckpoint;
582
- AeroflyLocalizedText: typeof AeroflyLocalizedText;
583
- AeroflyMissionTargetPlane: typeof AeroflyMissionTargetPlane;
584
- };
585
- export default _default;
586
- //# sourceMappingURL=index.d.ts.map
1
+ export { AeroflyLocalizedText } from "./dto/AeroflyLocalizedText.js";
2
+ export { AeroflyMission } from "./dto/AeroflyMission.js";
3
+ export { AeroflyMissionCheckpoint } from "./dto/AeroflyMissionCheckpoint.js";
4
+ export { AeroflyMissionConditions } from "./dto/AeroflyMissionConditions.js";
5
+ export { AeroflyMissionConditionsCloud } from "./dto/AeroflyMissionConditionsCloud.js";
6
+ export { AeroflyMissionsList } from "./dto/AeroflyMissionsList.js";
7
+ export { AeroflyMissionTargetPlane } from "./dto/AeroflyMissionTargetPlane.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC3B,eAAe,GACf,cAAc,GACd,MAAM,GACN,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,cAAc,GACd,SAAS,GACT,UAAU,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAClC,QAAQ,GACR,kBAAkB,GAClB,WAAW,GACX,UAAU,GACV,SAAS,GACT,UAAU,GACV,oBAAoB,GACpB,aAAa,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3F,qBAAa,oBAAoB;;IAE7B,QAAQ,EAAE,MAAM,EAAE,CAAC;gBAEP,MAAM,EAAE,MAAM,EAAE,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AE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;;;;;;;OAgBG;gBACS,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAMhE;;;OAGG;IACH,QAAQ,CAAC,KAAK,GAAE,MAAU,GAAG,MAAM;CAOtC;AAED;;;GAGG;AACH,qBAAa,yBAAyB;IAClC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;;;OAUG;gBACS,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAiB;IAOrF,QAAQ,IAAI,MAAM;CAMrB;;;;;;;;;;AAED,wBAQE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=index.test.d.ts.map
2
+ //# sourceMappingURL=index.test.d.ts.map
package/eslint.config.js DELETED
@@ -1,29 +0,0 @@
1
- import globals from "globals";
2
- import pluginJs from "@eslint/js";
3
- import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
4
- import jsdoc from "eslint-plugin-jsdoc";
5
-
6
- export default [
7
- {
8
- languageOptions: {
9
- globals: {
10
- ...globals.browser,
11
- ...globals.node,
12
- },
13
- },
14
- },
15
- pluginJs.configs.recommended,
16
- eslintPluginPrettierRecommended,
17
- jsdoc.configs["flat/recommended"],
18
- {
19
- files: ["**/*.js"],
20
- plugins: {
21
- jsdoc,
22
- },
23
- rules: {
24
- "jsdoc/require-description": 0,
25
- "jsdoc/require-param-description": 0,
26
- "jsdoc/require-returns-description": 0,
27
- },
28
- },
29
- ];