@qandq/cloud-gcs-core 1.2.41 → 1.2.42
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.
- package/dist/plugin-contract/interfaces/IEventListener.d.ts +1 -0
- package/dist/plugin-contract/system-api/aircraft-api/IAircraftApi.d.ts +3 -3
- package/dist/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.d.ts +1 -3
- package/package.json +1 -1
- package/src/plugin-contract/interfaces/IEventListener.ts +8 -6
- package/src/plugin-contract/system-api/aircraft-api/IAircraftApi.ts +4 -10
- package/src/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.ts +1 -4
|
@@ -17,12 +17,12 @@ export interface IAircraftApi {
|
|
|
17
17
|
subscribeToAircraftStatuses: (initiate: boolean) => void;
|
|
18
18
|
changeActiveAircraft: (aircraftId: number) => void;
|
|
19
19
|
postAirText: (identifier: AircraftIdentifier, data: any) => void;
|
|
20
|
-
sendPluginCommand: (identifier: AircraftIdentifier, command: string, data: any) => void;
|
|
21
20
|
sendPluginCommandWithResponse(identifier: AircraftIdentifier, input: PluginData): Promise<PluginCommandResponseData | null>;
|
|
21
|
+
sendPluginCommand: (identifier: AircraftIdentifier, command: string, data: any) => void;
|
|
22
22
|
executeCommand(identifier: AircraftIdentifier, command: CommandTypeEnum, data: any): void;
|
|
23
23
|
getAircraftLinkHealthStatus(aircraftIdentifier: AircraftIdentifier): LinkHealthStatus | undefined;
|
|
24
24
|
getAircraftConfiguration(identifier: AircraftIdentifier): AircraftConfiguration | null;
|
|
25
|
-
sendAircraftFlightLog(aircraftIdentifier: AircraftIdentifier, data: object, level: LogLevel, message: string): void;
|
|
25
|
+
sendAircraftFlightLog(aircraftIdentifier: AircraftIdentifier, data: object, level: LogLevel, message: string, details: string): void;
|
|
26
26
|
isSimulator: (aircraftIdentifier: AircraftIdentifier) => boolean;
|
|
27
|
-
getAircraftPlugins
|
|
27
|
+
getAircraftPlugins(aircraftIdentifier: AircraftIdentifier): AircraftPlugin[];
|
|
28
28
|
}
|
|
@@ -5,7 +5,6 @@ import { AircraftIdentifier } from "../../../models/AircraftIdentifier";
|
|
|
5
5
|
import { CommandTypeEnum } from "../../../models/enums/CommandTypeEnum";
|
|
6
6
|
import { PluginData } from "../../../models/PluginData";
|
|
7
7
|
import { LogLevel } from "../../../models/enums/LogLevel";
|
|
8
|
-
import { AircraftPlugin } from "../../../models/AircraftPlugin";
|
|
9
8
|
export interface ISelectedAircraftApi {
|
|
10
9
|
isBeingControlled: () => boolean | null;
|
|
11
10
|
getAircraftIdentifier: () => AircraftIdentifier | null;
|
|
@@ -19,6 +18,5 @@ export interface ISelectedAircraftApi {
|
|
|
19
18
|
executeCommand(command: CommandTypeEnum, data: any): void;
|
|
20
19
|
isPluginSupported: () => boolean;
|
|
21
20
|
getPluginConfig: () => any;
|
|
22
|
-
sendAircraftFlightLog(data: object, level: LogLevel, message: string): void;
|
|
23
|
-
getAircraftPlugins: () => AircraftPlugin[];
|
|
21
|
+
sendAircraftFlightLog(data: object, level: LogLevel, message: string, details: string): void;
|
|
24
22
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {PluginCallback} from "../../models/PluginCallback";
|
|
2
2
|
|
|
3
3
|
export interface IEventListener {
|
|
4
|
-
onOnlineUsersCode(callback: any): void
|
|
5
|
-
onLogout(callback: PluginCallback): void
|
|
4
|
+
onOnlineUsersCode(callback: any): void;
|
|
5
|
+
onLogout(callback: PluginCallback): void;
|
|
6
6
|
onAircraftPilotChanged(callback: any): void;
|
|
7
7
|
onReceivedHandOverCommand(callback: any): void;
|
|
8
8
|
onReceivedHandOverResponse(callback: any): void;
|
|
@@ -20,10 +20,10 @@ export interface IEventListener {
|
|
|
20
20
|
onTelemetryDataChanged(callback: any): void;
|
|
21
21
|
onAircraftLocationChanged(callback: any): void;
|
|
22
22
|
onAircraftRemoved(callback: any): void;
|
|
23
|
-
onUnitTypeChanged(callback: any): void
|
|
23
|
+
onUnitTypeChanged(callback: any): void;
|
|
24
24
|
|
|
25
|
-
removeOnlineUsersCode(callback: any): void
|
|
26
|
-
removeLogout(callback: PluginCallback): void
|
|
25
|
+
removeOnlineUsersCode(callback: any): void;
|
|
26
|
+
removeLogout(callback: PluginCallback): void;
|
|
27
27
|
removeAircraftPilotChanged(callback: any): void;
|
|
28
28
|
removeReceivedHandOverCommand(callback: any): void;
|
|
29
29
|
removeReceivedHandOverResponse(callback: any): void;
|
|
@@ -47,5 +47,7 @@ export interface IEventListener {
|
|
|
47
47
|
onAircraftPilotageStatusChanged(callback: any): void;
|
|
48
48
|
removeAircraftPilotageStatusChanged(callback: any): void;
|
|
49
49
|
removeHandoverPilotMessage(callback: any): void;
|
|
50
|
-
removeUnitTypeChanged(callback: any): void
|
|
50
|
+
removeUnitTypeChanged(callback: any): void;
|
|
51
|
+
|
|
52
|
+
getLogoutCallbacks(): PluginCallback[];
|
|
51
53
|
}
|
|
@@ -14,22 +14,16 @@ export interface IAircraftApi {
|
|
|
14
14
|
getObservingAircraft: () => AircraftIdentifier[];
|
|
15
15
|
getControllingAircraft: () => AircraftIdentifier[];
|
|
16
16
|
getAircraft3dModel: (aircraftId: number) => string;
|
|
17
|
-
setPilotageStatuses: (AircraftPilotageStatuses: AircraftPilotageStatus[]) => void
|
|
17
|
+
setPilotageStatuses: (AircraftPilotageStatuses: AircraftPilotageStatus[]) => void
|
|
18
18
|
subscribeToAircraftStatuses: (initiate: boolean) => void;
|
|
19
19
|
changeActiveAircraft: (aircraftId: number) => void;
|
|
20
20
|
postAirText: (identifier: AircraftIdentifier, data: any) => void;
|
|
21
|
-
sendPluginCommand: (identifier: AircraftIdentifier, command: string, data: any) => void;
|
|
22
21
|
sendPluginCommandWithResponse(identifier: AircraftIdentifier, input: PluginData): Promise<PluginCommandResponseData | null>
|
|
22
|
+
sendPluginCommand: (identifier: AircraftIdentifier, command: string, data: any) => void;
|
|
23
23
|
executeCommand(identifier: AircraftIdentifier, command: CommandTypeEnum, data: any): void;
|
|
24
24
|
getAircraftLinkHealthStatus(aircraftIdentifier: AircraftIdentifier): LinkHealthStatus | undefined;
|
|
25
25
|
getAircraftConfiguration(identifier: AircraftIdentifier): AircraftConfiguration | null;
|
|
26
|
-
sendAircraftFlightLog(
|
|
27
|
-
aircraftIdentifier: AircraftIdentifier,
|
|
28
|
-
data: object,
|
|
29
|
-
level: LogLevel,
|
|
30
|
-
message: string
|
|
31
|
-
): void;
|
|
26
|
+
sendAircraftFlightLog(aircraftIdentifier: AircraftIdentifier, data: object, level: LogLevel, message: string, details: string): void;
|
|
32
27
|
isSimulator: (aircraftIdentifier: AircraftIdentifier) => boolean;
|
|
33
|
-
|
|
34
|
-
getAircraftPlugins: (aircraftIdentifier: AircraftIdentifier) => AircraftPlugin[];
|
|
28
|
+
getAircraftPlugins(aircraftIdentifier: AircraftIdentifier): AircraftPlugin[];
|
|
35
29
|
}
|
|
@@ -5,7 +5,6 @@ import {AircraftIdentifier} from "../../../models/AircraftIdentifier";
|
|
|
5
5
|
import {CommandTypeEnum} from "../../../models/enums/CommandTypeEnum";
|
|
6
6
|
import {PluginData} from "../../../models/PluginData";
|
|
7
7
|
import { LogLevel } from "../../../models/enums/LogLevel";
|
|
8
|
-
import { AircraftPlugin } from "../../../models/AircraftPlugin";
|
|
9
8
|
|
|
10
9
|
export interface ISelectedAircraftApi {
|
|
11
10
|
isBeingControlled: () => boolean | null;
|
|
@@ -19,8 +18,6 @@ export interface ISelectedAircraftApi {
|
|
|
19
18
|
sendPluginCommand: (data: PluginData) => void;
|
|
20
19
|
executeCommand(command: CommandTypeEnum, data: any): void;
|
|
21
20
|
isPluginSupported: () => boolean;
|
|
22
|
-
|
|
23
21
|
getPluginConfig: () => any;
|
|
24
|
-
sendAircraftFlightLog(data: object, level: LogLevel, message: string): void;
|
|
25
|
-
getAircraftPlugins: () => AircraftPlugin[];
|
|
22
|
+
sendAircraftFlightLog(data: object, level: LogLevel, message: string, details:string): void;
|
|
26
23
|
}
|