@qandq/cloud-gcs-core 1.2.45 → 1.2.47-C698
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/README.md +0 -0
- package/dist/cloud-gcs-core.cjs.development.js +1 -24
- package/dist/cloud-gcs-core.cjs.development.js.map +1 -1
- package/dist/cloud-gcs-core.cjs.production.min.js +1 -1
- package/dist/cloud-gcs-core.cjs.production.min.js.map +1 -1
- package/dist/cloud-gcs-core.esm.js +2 -24
- package/dist/cloud-gcs-core.esm.js.map +1 -1
- package/dist/index.d.ts +4 -7
- package/dist/models/FlightEventMessage.d.ts +7 -0
- package/dist/models/enums/CommandTypeEnum.d.ts +0 -1
- package/dist/models/enums/LogLevel.d.ts +1 -0
- package/dist/models/telemetry/Waypoint.d.ts +2 -2
- package/dist/plugin-contract/interfaces/IEventListener.d.ts +76 -4
- package/dist/plugin-contract/interfaces/IPlugin.d.ts +4 -1
- package/dist/plugin-contract/interfaces/IPluginEventManager.d.ts +12 -3
- package/dist/plugin-contract/interfaces/IPluginServiceManager.d.ts +9 -0
- package/dist/plugin-contract/interfaces/IPluginUIManager.d.ts +32 -8
- package/dist/plugin-contract/models/PluginEventCallback.d.ts +1 -1
- package/dist/plugin-contract/system-api/IFlightEventApi.d.ts +4 -0
- package/dist/plugin-contract/system-api/IMissionApi.d.ts +6 -0
- package/dist/plugin-contract/system-api/ISystemApi.d.ts +2 -2
- package/dist/plugin-contract/system-api/aircraft-api/IAircraftApi.d.ts +51 -13
- package/dist/plugin-contract/system-api/aircraft-location-api/IAircraftLocationApi.d.ts +4 -1
- package/dist/plugin-contract/system-api/data-analyze-api/IDataAnalyzeApi.d.ts +4 -1
- package/dist/plugin-contract/system-api/handover-api/IHandOverApi.d.ts +17 -4
- package/dist/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.d.ts +48 -13
- package/dist/plugin-contract/system-api/telemetry-api/ITelemetryApi.d.ts +4 -1
- package/dist/plugin-contract/system-api/units-api/IUnitsApi.d.ts +20 -5
- package/dist/plugin-contract/system-api/user-api/IUserApi.d.ts +7 -1
- package/package.json +7 -2
- package/src/index.ts +5 -11
- package/src/models/FlightEventMessage.ts +15 -0
- package/src/models/enums/CommandTypeEnum.ts +0 -1
- package/src/models/enums/LogLevel.ts +1 -0
- package/src/models/telemetry/Waypoint.ts +2 -2
- package/src/plugin-contract/interfaces/IEventListener.ts +99 -5
- package/src/plugin-contract/interfaces/IPlugin.ts +4 -1
- package/src/plugin-contract/interfaces/IPluginEventManager.ts +15 -3
- package/src/plugin-contract/interfaces/IPluginServiceManager.ts +15 -3
- package/src/plugin-contract/interfaces/IPluginUIManager.ts +36 -8
- package/src/plugin-contract/models/PluginEventCallback.ts +1 -1
- package/src/plugin-contract/system-api/IFlightEventApi.ts +5 -0
- package/src/plugin-contract/system-api/IMissionApi.ts +8 -1
- package/src/plugin-contract/system-api/ISystemApi.ts +2 -2
- package/src/plugin-contract/system-api/aircraft-api/IAircraftApi.ts +65 -14
- package/src/plugin-contract/system-api/aircraft-location-api/IAircraftLocationApi.ts +5 -1
- package/src/plugin-contract/system-api/data-analyze-api/IDataAnalyzeApi.ts +4 -1
- package/src/plugin-contract/system-api/handover-api/IHandOverApi.ts +21 -4
- package/src/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.ts +60 -13
- package/src/plugin-contract/system-api/telemetry-api/ITelemetryApi.ts +5 -1
- package/src/plugin-contract/system-api/units-api/IUnitsApi.ts +24 -5
- package/src/plugin-contract/system-api/user-api/IUserApi.ts +9 -1
- package/dist/models/FlightLogType.d.ts +0 -6
- package/dist/models/MessageLog.d.ts +0 -11
- package/dist/models/PluginLogMessage.d.ts +0 -11
- package/dist/plugin-contract/system-api/IMessageLogger.d.ts +0 -6
- package/src/models/FlightLogType.ts +0 -6
- package/src/models/MessageLog.ts +0 -23
- package/src/models/PluginLogMessage.ts +0 -13
- package/src/plugin-contract/system-api/IMessageLogger.ts +0 -7
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { AircraftMission } from "../../models/AircraftMission";
|
|
2
2
|
import { AircraftIdentifier } from "../../models/AircraftIdentifier";
|
|
3
3
|
export interface IMissionApi {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the mission of the specified aircraft.
|
|
6
|
+
*/
|
|
4
7
|
getMission(identifier: AircraftIdentifier): AircraftMission | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Uploads a mission to the specified aircraft.
|
|
10
|
+
*/
|
|
5
11
|
uploadMission(identifier: AircraftIdentifier, data: AircraftMission): void;
|
|
6
12
|
}
|
|
@@ -5,7 +5,7 @@ import { IUnitsApi } from "./units-api/IUnitsApi";
|
|
|
5
5
|
import { IAircraftApi } from "./aircraft-api/IAircraftApi";
|
|
6
6
|
import { IUserApi } from "./user-api/IUserApi";
|
|
7
7
|
import { IHandOverApi } from "./handover-api/IHandOverApi";
|
|
8
|
-
import {
|
|
8
|
+
import { IFlightEventApi } from "./IFlightEventApi";
|
|
9
9
|
import { IMissionApi } from "./IMissionApi";
|
|
10
10
|
export interface ISystemApi {
|
|
11
11
|
aircraftLocationApi: IAircraftLocationApi;
|
|
@@ -17,5 +17,5 @@ export interface ISystemApi {
|
|
|
17
17
|
userApi: IUserApi;
|
|
18
18
|
handoverApi: IHandOverApi;
|
|
19
19
|
getOrganizationName: () => string;
|
|
20
|
-
|
|
20
|
+
flightEventApi: IFlightEventApi;
|
|
21
21
|
}
|
|
@@ -3,26 +3,64 @@ import { AircraftIdentifier } from "../../../models/AircraftIdentifier";
|
|
|
3
3
|
import { LinkHealthStatus } from "../../../models/LinkHealthStatus";
|
|
4
4
|
import { AircraftConfiguration } from "../../../models/AircraftConfiguration";
|
|
5
5
|
import { CommandTypeEnum } from "../../../models/enums/CommandTypeEnum";
|
|
6
|
-
import { LogLevel } from "../../../models/enums/LogLevel";
|
|
7
6
|
import { AircraftPlugin } from "../../../models/AircraftPlugin";
|
|
8
7
|
import { PluginCommandResponseData } from "../../../models/PluginCommandResponseData";
|
|
9
8
|
import { PluginData } from "../../../models/PluginData";
|
|
10
9
|
export interface IAircraftApi {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Indicates whether the aircraft is being controlled.
|
|
12
|
+
*/
|
|
13
|
+
isBeingControlled(identifier: AircraftIdentifier): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether the aircraft is being observed.
|
|
16
|
+
*/
|
|
17
|
+
isBeingObserved(identifier: AircraftIdentifier): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Returns the list of observed aircraft.
|
|
20
|
+
*/
|
|
21
|
+
getObservingAircraft(): AircraftIdentifier[];
|
|
22
|
+
/**
|
|
23
|
+
* Returns the list of controlled aircraft.
|
|
24
|
+
*/
|
|
25
|
+
getControllingAircraft(): AircraftIdentifier[];
|
|
26
|
+
/**
|
|
27
|
+
* Returns the 3D model file URL of the aircraft.
|
|
28
|
+
*/
|
|
29
|
+
getAircraft3dModel(aircraftId: number): string;
|
|
30
|
+
/**
|
|
31
|
+
* Allows to set pilotage statuses for aircraft, including controlling, observing, or releasing them.
|
|
32
|
+
*/
|
|
33
|
+
setPilotageStatuses(AircraftPilotageStatuses: AircraftPilotageStatus[]): void;
|
|
34
|
+
/**
|
|
35
|
+
* Changes the active selected aircraft.
|
|
36
|
+
*/
|
|
37
|
+
changeActiveAircraft(aircraftId: number): void;
|
|
38
|
+
/**
|
|
39
|
+
* Sends data to the mission controller via Airtext channel.
|
|
40
|
+
*/
|
|
41
|
+
postAirText(identifier: AircraftIdentifier, data: any): void;
|
|
42
|
+
/**
|
|
43
|
+
* Sends a command to a loaded plugin in the mission controller and returns the response for the command.
|
|
44
|
+
*/
|
|
20
45
|
sendPluginCommandWithResponse(identifier: AircraftIdentifier, input: PluginData): Promise<PluginCommandResponseData | null>;
|
|
21
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Executes a command on the aircraft, sending the required parameters in the data object based on the command type.
|
|
48
|
+
*/
|
|
22
49
|
executeCommand(identifier: AircraftIdentifier, command: CommandTypeEnum, data: any): void;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the aircraft link health status information.
|
|
52
|
+
*/
|
|
23
53
|
getAircraftLinkHealthStatus(aircraftIdentifier: AircraftIdentifier): LinkHealthStatus | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Returns the aircraft configuration information.
|
|
56
|
+
*/
|
|
24
57
|
getAircraftConfiguration(identifier: AircraftIdentifier): AircraftConfiguration | null;
|
|
25
|
-
|
|
26
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Returns true if the aircraft is a simulator.
|
|
60
|
+
*/
|
|
61
|
+
isSimulator(aircraftIdentifier: AircraftIdentifier): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Lists the installed plugins in the mission controller.
|
|
64
|
+
*/
|
|
27
65
|
getAircraftPlugins(aircraftIdentifier: AircraftIdentifier): AircraftPlugin[];
|
|
28
66
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AircraftLocation } from "../../../models/AircraftLocation";
|
|
2
2
|
export interface IAircraftLocationApi {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Provides the current location information of the aircraft.
|
|
5
|
+
*/
|
|
6
|
+
getAircraftLocation(aircraftId: number): AircraftLocation | null;
|
|
4
7
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { IPluginDataAnalysis } from '../../../models/data-analysis/IPluginDataAnalysis';
|
|
2
2
|
export interface IDataAnalyzeApi {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
getMessage(aircraftId: number): IPluginDataAnalysis | null;
|
|
4
7
|
}
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { HandOverResponseData } from "../../../models/handover/HandOverResponseData";
|
|
2
2
|
export interface IHandOverApi {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Sends a request for the specified pilot to take control over the actively controlled aircraft.
|
|
5
|
+
* Initiates a request to take control if the selected aircraft is currently controlled by the specified pilot.
|
|
6
|
+
*/
|
|
7
|
+
handOver(aircraftId: number, toUserCode: string): void;
|
|
8
|
+
/**
|
|
9
|
+
* Used to respond to an incoming handover request.
|
|
10
|
+
*/
|
|
11
|
+
sendHandOverResponse(answer: boolean, handOverCommand: HandOverResponseData): void;
|
|
12
|
+
/**
|
|
13
|
+
* Sends a request to the pilot currently controlling the specified aircraft to hand over control to you.
|
|
14
|
+
*/
|
|
15
|
+
requestHandOver(aircraftId: number | undefined): void;
|
|
16
|
+
/**
|
|
17
|
+
* Sends a message to the specified user.
|
|
18
|
+
*/
|
|
19
|
+
sendPilotMessage(toUserCode: string, data: any): void;
|
|
7
20
|
}
|
|
@@ -4,19 +4,54 @@ import { AircraftLocation } from "../../../models/AircraftLocation";
|
|
|
4
4
|
import { AircraftIdentifier } from "../../../models/AircraftIdentifier";
|
|
5
5
|
import { CommandTypeEnum } from "../../../models/enums/CommandTypeEnum";
|
|
6
6
|
import { PluginData } from "../../../models/PluginData";
|
|
7
|
-
import { LogLevel } from "../../../models/enums/LogLevel";
|
|
8
7
|
export interface ISelectedAircraftApi {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Indicates whether the selected aircraft is being controlled.
|
|
10
|
+
*/
|
|
11
|
+
isBeingControlled(): boolean | null;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the identifier of the selected aircraft.
|
|
14
|
+
*/
|
|
15
|
+
getAircraftIdentifier(): AircraftIdentifier | null;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the type of the selected aircraft.
|
|
18
|
+
*/
|
|
19
|
+
getAircraftType(): string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the 3D model address of the selected aircraft.
|
|
22
|
+
*/
|
|
23
|
+
getAircraft3dModel(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Returns the configuration settings of the selected aircraft.
|
|
26
|
+
*/
|
|
27
|
+
getAircraftConfiguration(): AircraftConfiguration | null;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the latest telemetry data of the selected aircraft.
|
|
30
|
+
*/
|
|
31
|
+
getTelemetry(): AircraftTelemetry | null;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the location information of the selected aircraft.
|
|
34
|
+
*/
|
|
35
|
+
getLocation(): AircraftLocation | null;
|
|
36
|
+
/**
|
|
37
|
+
* Sends data to the selected aircraft via Airtext channel.
|
|
38
|
+
*/
|
|
39
|
+
postAirText(data: any): void;
|
|
40
|
+
/**
|
|
41
|
+
* Sends a command to a plugin installed on the selected aircraft.
|
|
42
|
+
*/
|
|
43
|
+
sendPluginCommand(data: PluginData): void;
|
|
44
|
+
/**
|
|
45
|
+
* Sends a command to the selected aircraft.
|
|
46
|
+
*/
|
|
18
47
|
executeCommand(command: CommandTypeEnum, data: any): void;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Indicates whether this plugin is supported on the selected aircraft.
|
|
50
|
+
* Returns false if the plugin is not installed on the aircraft.
|
|
51
|
+
*/
|
|
52
|
+
isPluginSupported(): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the configuration of this plugin on the selected aircraft.
|
|
55
|
+
*/
|
|
56
|
+
getPluginConfig(): any;
|
|
22
57
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AircraftTelemetry } from "../../../models/telemetry/AircraftTelemetry";
|
|
2
2
|
export interface ITelemetryApi {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves the latest telemetry data of the specified aircraft.
|
|
5
|
+
*/
|
|
6
|
+
getTelemetry(aircraftId: number): AircraftTelemetry | null;
|
|
4
7
|
}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { UnitSystemEnum } from "../../../models/enums/UnitSystemEnum";
|
|
2
2
|
import { UnitTypeEnum } from "../../../models/enums/UnitTypeEnum";
|
|
3
3
|
export interface IUnitsApi {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
convertToString(system: UnitSystemEnum, type: UnitTypeEnum, value: number): string;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
convertNumber(system: UnitSystemEnum, type: UnitTypeEnum, value: number): number;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
convertToSI(system: UnitSystemEnum, unit: UnitTypeEnum, value: number): number;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
getUnitText(system: UnitSystemEnum, type: UnitTypeEnum): string;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
getUnitSystem(): UnitSystemEnum;
|
|
9
24
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { User } from "../../../models/user/User";
|
|
2
2
|
import { UserStatus } from "../../../models/UserStatus";
|
|
3
3
|
export interface IUserApi {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Returns information about the current user.
|
|
6
|
+
*/
|
|
7
|
+
getUserInfo(): User;
|
|
8
|
+
/**
|
|
9
|
+
* Lists active users in the system.
|
|
10
|
+
*/
|
|
5
11
|
getActiveUsers(): UserStatus[];
|
|
6
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qandq/cloud-gcs-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.47-C698",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"lint": "tsdx lint",
|
|
19
19
|
"prepare": "tsdx build",
|
|
20
20
|
"size": "size-limit",
|
|
21
|
-
"analyze": "size-limit --why"
|
|
21
|
+
"analyze": "size-limit --why",
|
|
22
|
+
"doc": "typedoc"
|
|
22
23
|
},
|
|
23
24
|
"husky": {
|
|
24
25
|
"hooks": {
|
|
@@ -50,5 +51,9 @@
|
|
|
50
51
|
},
|
|
51
52
|
"directories": {
|
|
52
53
|
"test": "test"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"typedoc": "^0.26.4",
|
|
57
|
+
"typedoc-plugin-markdown": "^4.2.1"
|
|
53
58
|
}
|
|
54
59
|
}
|
package/src/index.ts
CHANGED
|
@@ -79,7 +79,7 @@ import {NavigationCommandParam} from "./models/NavigationCommandParam";
|
|
|
79
79
|
import {FailSafeAction} from "./models/FailSafeAction";
|
|
80
80
|
import {Coordinates} from "./models/telemetry/Coordinates";
|
|
81
81
|
import {CommandTypeEnum} from "./models/enums/CommandTypeEnum";
|
|
82
|
-
import {
|
|
82
|
+
import {FlightEventMessage} from "./models/FlightEventMessage";
|
|
83
83
|
import {SensorStatus} from "./models/enums/SensorStatus"
|
|
84
84
|
import {FailSafeTypeEnum} from "./models/enums/FailSafeTypeEnum";
|
|
85
85
|
import {PluginNames} from "./models/constants/PluginNames";
|
|
@@ -92,12 +92,9 @@ import {AircraftPlugin} from './models/AircraftPlugin';
|
|
|
92
92
|
import {IPluginDataAnalysis} from './models/data-analysis/IPluginDataAnalysis';
|
|
93
93
|
import {IDataAnalyzeApi} from './plugin-contract/system-api/data-analyze-api/IDataAnalyzeApi';
|
|
94
94
|
import {UIPluginCommand} from "./models/UIPluginCommand";
|
|
95
|
-
import {
|
|
96
|
-
import {PluginAircraftLogMessage} from "./models/PluginLogMessage";
|
|
97
|
-
import {IMessageLoggerApi} from "./plugin-contract/system-api/IMessageLogger";
|
|
95
|
+
import {IFlightEventApi} from "./plugin-contract/system-api/IFlightEventApi";
|
|
98
96
|
import {IMissionApi} from "./plugin-contract/system-api/IMissionApi";
|
|
99
97
|
import {IUserAuth} from "./models/user/IUser";
|
|
100
|
-
import {FlightLogType} from "./models/FlightLogType";
|
|
101
98
|
import {Mission} from "./models/Mission";
|
|
102
99
|
import {PilotUserStatus} from "./models/PilotUserStatus";
|
|
103
100
|
import {TelemetryHeader} from "./models/TelemetryHeader";
|
|
@@ -167,14 +164,13 @@ export type {
|
|
|
167
164
|
UserStatus,
|
|
168
165
|
ICurrentUser,
|
|
169
166
|
UIPluginCommand,
|
|
170
|
-
|
|
171
|
-
PluginAircraftLogMessage,
|
|
172
|
-
IMessageLoggerApi,
|
|
167
|
+
IFlightEventApi,
|
|
173
168
|
IMissionApi,
|
|
174
169
|
IUserAuth,
|
|
175
170
|
Mission,
|
|
176
171
|
PilotUserStatus,
|
|
177
|
-
TelemetryHeader
|
|
172
|
+
TelemetryHeader,
|
|
173
|
+
FlightEventMessage
|
|
178
174
|
};
|
|
179
175
|
|
|
180
176
|
export {
|
|
@@ -201,6 +197,4 @@ export {
|
|
|
201
197
|
PluginData,
|
|
202
198
|
ClientType,
|
|
203
199
|
IPluginDataAnalysis,
|
|
204
|
-
FlightLogType,
|
|
205
|
-
MessageLog,
|
|
206
200
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {LogLevel} from "../index";
|
|
2
|
+
|
|
3
|
+
export class FlightEventMessage {
|
|
4
|
+
logLevel: LogLevel;
|
|
5
|
+
message: string;
|
|
6
|
+
data: any;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
public constructor(message: string, logLevel: LogLevel, data: any) {
|
|
10
|
+
this.message = message;
|
|
11
|
+
this.logLevel = logLevel;
|
|
12
|
+
this.data = data;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NavigationCommandParam } from "../NavigationCommandParam";
|
|
2
|
-
import {
|
|
2
|
+
import {CommandTypeEnum} from "../enums/CommandTypeEnum";
|
|
3
3
|
import {Coordinates} from "./Coordinates";
|
|
4
4
|
|
|
5
5
|
export interface Waypoint {
|
|
6
|
-
command:
|
|
6
|
+
command: CommandTypeEnum;
|
|
7
7
|
coordinates: Coordinates;
|
|
8
8
|
parameters?: NavigationCommandParam;
|
|
9
9
|
}
|
|
@@ -1,27 +1,126 @@
|
|
|
1
1
|
import {PluginCallback} from "../../models/PluginCallback";
|
|
2
2
|
|
|
3
3
|
export interface IEventListener {
|
|
4
|
+
/**
|
|
5
|
+
* Triggered when online users' status code is received.
|
|
6
|
+
*/
|
|
4
7
|
onOnlineUsersCode(callback: any): void;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Triggered when logout occurs.
|
|
11
|
+
*/
|
|
5
12
|
onLogout(callback: PluginCallback): void;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Triggered when the pilot of the relevant aircraft changes.
|
|
16
|
+
*/
|
|
6
17
|
onAircraftPilotChanged(callback: any): void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Triggered when a handover request is received.
|
|
21
|
+
*/
|
|
7
22
|
onReceivedHandOverCommand(callback: any): void;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Triggered when a handover response is received.
|
|
26
|
+
*/
|
|
8
27
|
onReceivedHandOverResponse(callback: any): void;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Triggered when a message is received via handover.
|
|
31
|
+
*/
|
|
9
32
|
onReceivedHandoverPilotMessage(callback: any): void;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Triggered when an aircraft status message is received.
|
|
36
|
+
*/
|
|
10
37
|
onAnyAircraftStatusMessageReceived(callback: any): void;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Triggered when IoT connection is lost.
|
|
41
|
+
*/
|
|
11
42
|
onConnectionLoss(callback: any): void;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Triggered when status message is received from active users in the system.
|
|
46
|
+
*/
|
|
12
47
|
onAnyUserStatusMessageReceived(callback: any): void;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Triggered when a summary log is inserted.
|
|
51
|
+
*/
|
|
13
52
|
onInsertSummaryLog(callback: any): void;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Triggered when pilotage status of the active aircraft changes.
|
|
56
|
+
*/
|
|
14
57
|
onActiveAircraftPilotageStateChanged(callback: any): void;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* TODO: not used
|
|
61
|
+
*/
|
|
15
62
|
onFlyByWireControlsChanged(callback: any): void;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* TODO: not used
|
|
66
|
+
*/
|
|
16
67
|
onStatusIndicatorChanged(callback: any): void;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Triggered when the active aircraft changes.
|
|
71
|
+
*/
|
|
17
72
|
onActiveAircraftChanged(callback: any): void;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* TODO: not used
|
|
76
|
+
*/
|
|
18
77
|
onManageAircraftsEvent(callback: any): void;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Triggered when the mission starts.
|
|
81
|
+
*/
|
|
19
82
|
onMissionStarted(callback: any): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Triggered when telemetry data changes.
|
|
86
|
+
*/
|
|
20
87
|
onTelemetryDataChanged(callback: any): void;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Triggered when aircraft location changes.
|
|
91
|
+
*/
|
|
21
92
|
onAircraftLocationChanged(callback: any): void;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* TODO: not used
|
|
96
|
+
*/
|
|
22
97
|
onAircraftRemoved(callback: any): void;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Triggered when unit type changes in the system.
|
|
101
|
+
*/
|
|
23
102
|
onUnitTypeChanged(callback: any): void;
|
|
24
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Triggered when aircraft link health status changes.
|
|
106
|
+
*/
|
|
107
|
+
onAircraftLinkHealthChanged(callback: any): void;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Triggered when mission data is received from the aircraft.
|
|
111
|
+
*/
|
|
112
|
+
onAircraftMissionReceived(callback: any): void;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Triggered when aircraft pilotage status changes.
|
|
116
|
+
*/
|
|
117
|
+
onAircraftPilotageStatusChanged(callback: any): void;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* TODO: remove not used for plugins
|
|
121
|
+
*/
|
|
122
|
+
getLogoutCallbacks(): PluginCallback[];
|
|
123
|
+
|
|
25
124
|
removeOnlineUsersCode(callback: any): void;
|
|
26
125
|
removeLogout(callback: PluginCallback): void;
|
|
27
126
|
removeAircraftPilotChanged(callback: any): void;
|
|
@@ -40,14 +139,9 @@ export interface IEventListener {
|
|
|
40
139
|
removeTelemetryDataChanged(callback: any): void;
|
|
41
140
|
removeAircraftLocationChanged(callback: any): void;
|
|
42
141
|
removeAircraftRemoved(callback: any): void;
|
|
43
|
-
onAircraftLinkHealthChanged(callback: any): void;
|
|
44
142
|
removeAircraftLinkHealthChanged(callback: any): void;
|
|
45
|
-
onAircraftMissionReceived(callback: any): void;
|
|
46
143
|
removeAircraftMissionReceived(callback: any): void;
|
|
47
|
-
onAircraftPilotageStatusChanged(callback: any): void;
|
|
48
144
|
removeAircraftPilotageStatusChanged(callback: any): void;
|
|
49
145
|
removeHandoverPilotMessage(callback: any): void;
|
|
50
146
|
removeUnitTypeChanged(callback: any): void;
|
|
51
|
-
|
|
52
|
-
getLogoutCallbacks(): PluginCallback[];
|
|
53
147
|
}
|
|
@@ -2,7 +2,19 @@ import {PluginEventCallback} from "../models/PluginEventCallback";
|
|
|
2
2
|
import {PluginEventArgs} from "../models/PluginEventArgs";
|
|
3
3
|
|
|
4
4
|
export interface IPluginEventManager {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Allows subscribing to any plugin's event.
|
|
7
|
+
*/
|
|
8
|
+
subscribe(pluginEventCallback: PluginEventCallback): void;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Removes the subscription from a plugin's event.
|
|
12
|
+
*/
|
|
13
|
+
remove(pluginEventCallback: PluginEventCallback): void;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Allows a plugin to publish events to other plugins.
|
|
17
|
+
*/
|
|
18
|
+
publish(eventArgs: PluginEventArgs): void;
|
|
8
19
|
}
|
|
20
|
+
|
|
@@ -3,7 +3,19 @@ import {PluginServiceInformation} from "../models/PluginServiceInformation";
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export interface IPluginServiceManager {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Plugins can share services with other plugins.
|
|
8
|
+
*/
|
|
9
|
+
registerService<T>(pluginService: PluginService<T>): void;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a shared service provided by other plugins.
|
|
13
|
+
*/
|
|
14
|
+
getService<T>(pluginServiceInformation: PluginServiceInformation): PluginService<T>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a shared service provided by other plugins asynchronously.
|
|
18
|
+
*/
|
|
19
|
+
getServiceAsync<T>(pluginServiceInformation: PluginServiceInformation): Promise<PluginService<T>>;
|
|
9
20
|
}
|
|
21
|
+
|
|
@@ -1,15 +1,43 @@
|
|
|
1
1
|
import {MenuItem} from "../../models/MenuItem";
|
|
2
2
|
|
|
3
3
|
export interface IPluginUIManager {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Pluginin ui'daki container'ını verir
|
|
6
|
+
*/
|
|
7
|
+
getRootElement(): HTMLElement;
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* menüye item ekler
|
|
11
|
+
*/
|
|
12
|
+
addMenuItem(item: MenuItem): string;
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
/**
|
|
15
|
+
* ilgili menüye sub-menü ekler
|
|
16
|
+
*/
|
|
17
|
+
addSubMenuItem(menuId: string, items: MenuItem[]): void;
|
|
13
18
|
|
|
14
|
-
|
|
19
|
+
/**
|
|
20
|
+
* menu item'ını kaldırır
|
|
21
|
+
*/
|
|
22
|
+
removeMenuItem(menuId: string): void;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* sub-menüyü temizler
|
|
26
|
+
*/
|
|
27
|
+
clearSubMenuItems(menuId: string): void;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* ilgili menü item'ını disable yapar
|
|
31
|
+
*/
|
|
32
|
+
setDisabledMenuItem(menuId: string, disabled: boolean): void;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* ilgili sub-menü item'ını disable yapar
|
|
36
|
+
*/
|
|
37
|
+
setDisabledSubMenuItem(menuId: string, itemKey: string, disabled: boolean): void;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* bottom stack'i getirir
|
|
41
|
+
*/
|
|
42
|
+
getBottomStack(): Promise<HTMLElement>
|
|
15
43
|
}
|