@skyvexsoftware/stratos-sdk 0.19.0 → 0.20.0
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.
|
@@ -2,9 +2,10 @@ import type { PluginFileAttachment } from "../types/context";
|
|
|
2
2
|
/**
|
|
3
3
|
* Mark a file on disk for attachment to the PIREP.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* This only records the path. It doesn't open or read the file, so it never
|
|
6
|
+
* throws and never slows the handler. Stratos reads the file later, when the
|
|
7
|
+
* PIREP is sent, streaming it from disk. A file that can't be read at that
|
|
8
|
+
* point is skipped with the reason recorded, and the flight still files.
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mark a file on disk for attachment to the PIREP.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* This only records the path. It doesn't open or read the file, so it never
|
|
5
|
+
* throws and never slows the handler. Stratos reads the file later, when the
|
|
6
|
+
* PIREP is sent, streaming it from disk. A file that can't be read at that
|
|
7
|
+
* point is skipped with the reason recorded, and the flight still files.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```ts
|
|
@@ -157,6 +157,33 @@ export type FlightData = {
|
|
|
157
157
|
unlimitedFuel?: boolean;
|
|
158
158
|
/** Detent index of the flap handle. MSFS: FLAPS HANDLE INDEX. X-Plane: derived from flaprqst × acf_flap_detents. */
|
|
159
159
|
flapsHandleIndex?: number;
|
|
160
|
+
/** Beacon light on. */
|
|
161
|
+
lightBeacon?: boolean;
|
|
162
|
+
/** Strobe lights on. */
|
|
163
|
+
lightStrobe?: boolean;
|
|
164
|
+
/** Navigation (position) lights on. */
|
|
165
|
+
lightNav?: boolean;
|
|
166
|
+
/** Logo lights on. MSFS/P3D/FSX only (X-Plane aircraft wire logo to aircraft-specific generic lights). */
|
|
167
|
+
lightLogo?: boolean;
|
|
168
|
+
/** Wing inspection lights on. MSFS/P3D/FSX only (see `lightLogo`). */
|
|
169
|
+
lightWing?: boolean;
|
|
170
|
+
/** Any landing light on (including a nose light in its take-off position on some aircraft). */
|
|
171
|
+
lightLanding?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Any taxi light on. Some aircraft also report runway turnoff lights here.
|
|
174
|
+
* MSFS/P3D/FSX only: X-Plane's taxi switch DataRef doesn't follow the switch
|
|
175
|
+
* on many airliners (default XP11 737, XP12 A330).
|
|
176
|
+
*/
|
|
177
|
+
lightTaxi?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Landing light circuits 1-3 (`LIGHT LANDING:n`), MSFS 2020/2024 only. On
|
|
180
|
+
* the default airliners and the Fenix A320, 1 = nose, 2 = left, 3 = right;
|
|
181
|
+
* single-light GA aircraft use 1 only; some add-ons (PMDG) set all three
|
|
182
|
+
* together. Undefined on P3D, FSX and X-Plane.
|
|
183
|
+
*/
|
|
184
|
+
lightLanding1?: boolean;
|
|
185
|
+
lightLanding2?: boolean;
|
|
186
|
+
lightLanding3?: boolean;
|
|
160
187
|
transponderFreq: string;
|
|
161
188
|
com1Freq: string;
|
|
162
189
|
com2Freq: string;
|
package/dist/types/context.d.ts
CHANGED
|
@@ -170,8 +170,12 @@ export type PluginFlightAccessor = {
|
|
|
170
170
|
* nothing.
|
|
171
171
|
*
|
|
172
172
|
* Handlers are fail-open: a throw, a rejection, a timeout (3s), a
|
|
173
|
-
* non-object return, or
|
|
174
|
-
* the PIREP is submitted regardless.
|
|
173
|
+
* non-object return, or returned data over the size cap omits this plugin's
|
|
174
|
+
* key and the PIREP is submitted regardless. The cap is 256 KB per plugin
|
|
175
|
+
* and 512 KB across all plugins, measured on the returned JSON. Files
|
|
176
|
+
* attached with `attachFile()` do not count towards it; each is only a
|
|
177
|
+
* short reference in the JSON and is sent as its own part, with no size
|
|
178
|
+
* limit.
|
|
175
179
|
*
|
|
176
180
|
* Handlers run only for `completed`, `diverted` and `crashed` flights, never
|
|
177
181
|
* for cancelled ones, and only when an airline is bound. If the airline
|