@qandq/cloud-gcs-core 1.2.54-cloud-752-6 → 1.2.55-CLOUD-745-2
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/index.d.ts +4 -1
- package/dist/models/AircraftInfo.d.ts +1 -1
- package/dist/models/PersistentData.d.ts +14 -0
- package/dist/plugin-contract/interfaces/IPluginApi.d.ts +3 -0
- package/dist/plugin-contract/system-api/aircraft-api/IAircraftApi.d.ts +1 -1
- package/dist/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +7 -1
- package/src/models/AircraftInfo.ts +1 -1
- package/src/models/PersistentData.ts +17 -0
- package/src/plugin-contract/interfaces/IPluginApi.ts +3 -0
- package/src/plugin-contract/system-api/aircraft-api/IAircraftApi.ts +4 -1
- package/src/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.ts +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ import { IUnitsApi } from "./plugin-contract/system-api/units-api/IUnitsApi";
|
|
|
13
13
|
import { IAircraftApi } from "./plugin-contract/system-api/aircraft-api/IAircraftApi";
|
|
14
14
|
import { IUserApi } from "./plugin-contract/system-api/user-api/IUserApi";
|
|
15
15
|
import { IHandOverApi } from "./plugin-contract/system-api/handover-api/IHandOverApi";
|
|
16
|
+
import { PersistentKey } from "./models/PersistentData";
|
|
17
|
+
import { PersistentValue } from "./models/PersistentData";
|
|
18
|
+
import { PersistentResponse } from "./models/PersistentData";
|
|
16
19
|
import { PluginCallback } from "./models/PluginCallback";
|
|
17
20
|
import { PluginCommandResponseData } from "./models/PluginCommandResponseData";
|
|
18
21
|
import { CommandSourceEnum } from "./models/enums/CommandSourceEnum";
|
|
@@ -94,5 +97,5 @@ import { TelemetryHeader } from "./models/TelemetryHeader";
|
|
|
94
97
|
import { FlightEventMessage } from "./models/FlightEventMessage";
|
|
95
98
|
import { FlightEventMessageInput } from "./models/FlightEventMessageInput";
|
|
96
99
|
import { FlightEventTarget } from "./models/FlightEventTarget";
|
|
97
|
-
export type { IPlugin, IPluginApi, IPluginEventManager, IPluginServiceManager, IPluginUIManager, IEventListener, ISystemApi, IAircraftLocationApi, ISelectedAircraftApi, ITelemetryApi, IDataAnalyzeApi, IUnitsApi, IUserApi, IHandOverApi, IAircraftApi, AircraftInfo, AircraftLocation, AircraftTelemetry, AircraftWarningStatuses, AirInfo, AttitudeInfo, BatteryInfo, ClimbInfo, CommandInfo, Coordinates2D, EngineInfo, HeadingInfo, IndexedWaypoint, PluginService, MenuItem, PluginEventArgs, PluginEventCallback, PluginServiceInformation, SpeedInfo, StatusInfo, Waypoint, User, AircraftPlugin, AircraftPilotageStatus, AircraftState, AircraftStatusTopicMessage, PilotUserHealth, GCSController, UserStatusTopicSubscriptionMessage, HandOverResponseData, HandOverCommandData, AircraftIdentifier, GPSInfo, PluginTelemetryData, VtolControlInfo, VtolQuadInfo, LinkHealthStatus, AircraftMission, GeoFence, FailSafe, NavigationCommandParam, FailSafeAction, Coordinates, FlightIdentifier, PluginCallback, PluginCommandResponseData, UserStatus, ICurrentUser, UIPluginCommand, IFlightEventApi, IMissionApi, IUserAuth, Mission, PilotUserStatus, TelemetryHeader, FlightEventMessage, FlightEventMessageInput };
|
|
100
|
+
export type { IPlugin, IPluginApi, IPluginEventManager, IPluginServiceManager, IPluginUIManager, IEventListener, ISystemApi, IAircraftLocationApi, ISelectedAircraftApi, ITelemetryApi, IDataAnalyzeApi, IUnitsApi, IUserApi, IHandOverApi, IAircraftApi, AircraftInfo, AircraftLocation, AircraftTelemetry, AircraftWarningStatuses, AirInfo, AttitudeInfo, BatteryInfo, ClimbInfo, CommandInfo, Coordinates2D, EngineInfo, HeadingInfo, IndexedWaypoint, PluginService, MenuItem, PluginEventArgs, PluginEventCallback, PluginServiceInformation, SpeedInfo, StatusInfo, Waypoint, User, AircraftPlugin, AircraftPilotageStatus, AircraftState, AircraftStatusTopicMessage, PilotUserHealth, GCSController, UserStatusTopicSubscriptionMessage, HandOverResponseData, HandOverCommandData, AircraftIdentifier, GPSInfo, PluginTelemetryData, VtolControlInfo, VtolQuadInfo, LinkHealthStatus, AircraftMission, GeoFence, FailSafe, NavigationCommandParam, FailSafeAction, Coordinates, FlightIdentifier, PluginCallback, PluginCommandResponseData, UserStatus, ICurrentUser, UIPluginCommand, IFlightEventApi, IMissionApi, IUserAuth, Mission, PilotUserStatus, TelemetryHeader, FlightEventMessage, FlightEventMessageInput, PersistentKey, PersistentValue, PersistentResponse, };
|
|
98
101
|
export { SensorStatus, CommandTypeEnum, CommandSourceEnum, GPSCorrectionStatusEnum, UnitTypeEnum, GPSFixStatusEnum, PayloadRetractStatusEnum, TravelStatusEnum, UnitSystemEnum, WarningStatusEnum, PilotageStateEnum, UserTypeEnum, AircraftHealthEnum, HandOverCommandType, IndicatorStatusEnum, LogLevel, FailSafeTypeEnum, PluginNames, PluginServiceNames, PilotageStatus, PluginData, ClientType, IPluginDataAnalysis, FlightEventTarget };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PersistentKey {
|
|
2
|
+
key: string;
|
|
3
|
+
aircraftId?: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PersistentValue {
|
|
7
|
+
value: any;
|
|
8
|
+
}
|
|
9
|
+
export interface PersistentResponse {
|
|
10
|
+
key: string;
|
|
11
|
+
aircraftId?: string;
|
|
12
|
+
userId?: string;
|
|
13
|
+
value: any;
|
|
14
|
+
}
|
|
@@ -3,10 +3,13 @@ import { IPluginUIManager } from "./IPluginUIManager";
|
|
|
3
3
|
import { IPluginEventManager } from "./IPluginEventManager";
|
|
4
4
|
import { IPluginServiceManager } from "./IPluginServiceManager";
|
|
5
5
|
import { IEventListener } from "./IEventListener";
|
|
6
|
+
import { PersistentKey, PersistentResponse, PersistentValue } from "../../models/PersistentData";
|
|
6
7
|
export interface IPluginApi {
|
|
7
8
|
systemApi: ISystemApi;
|
|
8
9
|
pluginUIManager: IPluginUIManager;
|
|
9
10
|
pluginEventManager: IPluginEventManager;
|
|
10
11
|
pluginServiceManager: IPluginServiceManager;
|
|
11
12
|
eventListener: IEventListener;
|
|
13
|
+
save: (key: PersistentKey, data: PersistentValue) => Promise<void>;
|
|
14
|
+
get: (key: PersistentKey) => Promise<PersistentResponse[]>;
|
|
12
15
|
}
|
|
@@ -55,7 +55,7 @@ export interface IAircraftApi {
|
|
|
55
55
|
/**
|
|
56
56
|
* Returns the aircraft configuration information.
|
|
57
57
|
*/
|
|
58
|
-
getAircraftConfiguration(identifier: AircraftIdentifier):
|
|
58
|
+
getAircraftConfiguration(identifier: AircraftIdentifier): any;
|
|
59
59
|
getAircraftInfo(identifier: AircraftIdentifier): AircraftInfo;
|
|
60
60
|
getAircraftVideoStreamUrl(identifier: AircraftIdentifier, streamName: string): string;
|
|
61
61
|
/**
|
|
@@ -22,10 +22,10 @@ export interface ISelectedAircraftApi {
|
|
|
22
22
|
* Returns the 3D model address of the selected aircraft.
|
|
23
23
|
*/
|
|
24
24
|
getAircraft3dModel(): string;
|
|
25
|
+
getAircraftConfiguration(): any;
|
|
25
26
|
/**
|
|
26
27
|
* Returns the configuration settings of the selected aircraft.
|
|
27
28
|
*/
|
|
28
|
-
getAircraftConfiguration(): Map<string, any> | null;
|
|
29
29
|
getAircraftInfo(): AircraftInfo;
|
|
30
30
|
getAircraftVideoStreamUrl(streamName: string): string;
|
|
31
31
|
/**
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -14,6 +14,9 @@ import {IUnitsApi} from "./plugin-contract/system-api/units-api/IUnitsApi";
|
|
|
14
14
|
import {IAircraftApi} from "./plugin-contract/system-api/aircraft-api/IAircraftApi";
|
|
15
15
|
import {IUserApi} from "./plugin-contract/system-api/user-api/IUserApi";
|
|
16
16
|
import {IHandOverApi} from "./plugin-contract/system-api/handover-api/IHandOverApi";
|
|
17
|
+
import {PersistentKey} from "./models/PersistentData";
|
|
18
|
+
import {PersistentValue} from "./models/PersistentData";
|
|
19
|
+
import {PersistentResponse} from "./models/PersistentData";
|
|
17
20
|
|
|
18
21
|
import {PluginCallback} from "./models/PluginCallback";
|
|
19
22
|
import {PluginCommandResponseData} from "./models/PluginCommandResponseData";
|
|
@@ -173,7 +176,10 @@ export type {
|
|
|
173
176
|
PilotUserStatus,
|
|
174
177
|
TelemetryHeader,
|
|
175
178
|
FlightEventMessage,
|
|
176
|
-
FlightEventMessageInput
|
|
179
|
+
FlightEventMessageInput,
|
|
180
|
+
PersistentKey,
|
|
181
|
+
PersistentValue,
|
|
182
|
+
PersistentResponse,
|
|
177
183
|
};
|
|
178
184
|
|
|
179
185
|
export {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
export interface PersistentKey {
|
|
3
|
+
key: string;
|
|
4
|
+
aircraftId?: string; // Optional, used for aircraft-specific data
|
|
5
|
+
userId?: string; // Optional, used for user-specific data
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface PersistentValue {
|
|
9
|
+
value: any;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface PersistentResponse{
|
|
13
|
+
key: string;
|
|
14
|
+
aircraftId?: string;
|
|
15
|
+
userId?: string;
|
|
16
|
+
value: any;
|
|
17
|
+
}
|
|
@@ -3,6 +3,7 @@ import {IPluginUIManager} from "./IPluginUIManager";
|
|
|
3
3
|
import {IPluginEventManager} from "./IPluginEventManager";
|
|
4
4
|
import {IPluginServiceManager} from "./IPluginServiceManager";
|
|
5
5
|
import {IEventListener} from "./IEventListener";
|
|
6
|
+
import {PersistentKey, PersistentResponse, PersistentValue} from "../../models/PersistentData";
|
|
6
7
|
|
|
7
8
|
export interface IPluginApi {
|
|
8
9
|
systemApi: ISystemApi;
|
|
@@ -10,4 +11,6 @@ export interface IPluginApi {
|
|
|
10
11
|
pluginEventManager: IPluginEventManager;
|
|
11
12
|
pluginServiceManager: IPluginServiceManager;
|
|
12
13
|
eventListener: IEventListener;
|
|
14
|
+
save: (key: PersistentKey, data: PersistentValue) => Promise<void>;
|
|
15
|
+
get: (key: PersistentKey) => Promise<PersistentResponse[]>;
|
|
13
16
|
}
|
|
@@ -67,7 +67,10 @@ export interface IAircraftApi {
|
|
|
67
67
|
/**
|
|
68
68
|
* Returns the aircraft configuration information.
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
|
|
71
|
+
// Deprecated: getAircraftConfiguration is obsolete.
|
|
72
|
+
// Please use getAircraftInfo instead to retrieve aircraft info and configurations.
|
|
73
|
+
getAircraftConfiguration(identifier: AircraftIdentifier): any;
|
|
71
74
|
getAircraftInfo(identifier: AircraftIdentifier): AircraftInfo;
|
|
72
75
|
getAircraftVideoStreamUrl(identifier: AircraftIdentifier, streamName: string): string
|
|
73
76
|
|
|
@@ -27,10 +27,13 @@ export interface ISelectedAircraftApi {
|
|
|
27
27
|
*/
|
|
28
28
|
getAircraft3dModel(): string;
|
|
29
29
|
|
|
30
|
+
// Deprecated: getAircraftConfiguration is obsolete.
|
|
31
|
+
// Please use getAircraftInfo instead to retrieve aircraft info and configurations.
|
|
32
|
+
getAircraftConfiguration(): any;
|
|
33
|
+
|
|
30
34
|
/**
|
|
31
35
|
* Returns the configuration settings of the selected aircraft.
|
|
32
36
|
*/
|
|
33
|
-
getAircraftConfiguration(): Map<string, any> | null;
|
|
34
37
|
getAircraftInfo(): AircraftInfo;
|
|
35
38
|
getAircraftVideoStreamUrl(streamName: string): string
|
|
36
39
|
|