@qandq/cloud-gcs-core 1.2.65-2-1180 → 1.2.65-3-1180
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 +2 -2
- package/dist/plugin-contract/system-api/ISystemApi.d.ts +2 -2
- package/dist/plugin-contract/system-api/provider-api/IProviderApi.d.ts +14 -12
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/plugin-contract/system-api/ISystemApi.ts +2 -2
- package/src/plugin-contract/system-api/provider-api/IProviderApi.ts +15 -12
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ import { UIPluginCommand } from "./models/UIPluginCommand";
|
|
|
91
91
|
import { IFlightEventApi } from "./plugin-contract/system-api/IFlightEventApi";
|
|
92
92
|
import { IInboundStreamerApi } from "./plugin-contract/system-api/inbound-streamer-api/IInboundStreamerApi";
|
|
93
93
|
import { InboundStreamerDevice } from "./models/InboundStreamerDevice";
|
|
94
|
-
import {
|
|
94
|
+
import { IServiceTopicApi } from "./plugin-contract/system-api/provider-api/IProviderApi";
|
|
95
95
|
import { IMissionApi } from "./plugin-contract/system-api/IMissionApi";
|
|
96
96
|
import { IUserAuth } from "./models/user/IUser";
|
|
97
97
|
import { Mission } from "./models/Mission";
|
|
@@ -101,5 +101,5 @@ import { FlightEventMessage } from "./models/FlightEventMessage";
|
|
|
101
101
|
import { FlightEventMessageInput } from "./models/FlightEventMessageInput";
|
|
102
102
|
import { FlightEventTarget } from "./models/FlightEventTarget";
|
|
103
103
|
import { GuidanceType } from "./models/enums/GuidanceType";
|
|
104
|
-
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, IInboundStreamerApi, InboundStreamerDevice,
|
|
104
|
+
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, IInboundStreamerApi, InboundStreamerDevice, IServiceTopicApi, IMissionApi, IUserAuth, Mission, PilotUserStatus, TelemetryHeader, FlightEventMessage, FlightEventMessageInput, PersistentKey, PersistentValue, PersistentResponse, };
|
|
105
105
|
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, GuidanceType };
|
|
@@ -8,7 +8,7 @@ import { IHandOverApi } from "./handover-api/IHandOverApi";
|
|
|
8
8
|
import { IFlightEventApi } from "./IFlightEventApi";
|
|
9
9
|
import { IMissionApi } from "./IMissionApi";
|
|
10
10
|
import { IInboundStreamerApi } from "./inbound-streamer-api/IInboundStreamerApi";
|
|
11
|
-
import {
|
|
11
|
+
import { IServiceTopicApi } from "./provider-api/IProviderApi";
|
|
12
12
|
export interface ISystemApi {
|
|
13
13
|
aircraftLocationApi: IAircraftLocationApi;
|
|
14
14
|
selectedAircraftApi: ISelectedAircraftApi;
|
|
@@ -21,5 +21,5 @@ export interface ISystemApi {
|
|
|
21
21
|
getOrganizationName: () => string;
|
|
22
22
|
flightEventApi: IFlightEventApi;
|
|
23
23
|
inboundStreamerApi: IInboundStreamerApi;
|
|
24
|
-
|
|
24
|
+
serviceTopicApi: IServiceTopicApi;
|
|
25
25
|
}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface IServiceTopicApi {
|
|
2
2
|
/**
|
|
3
|
-
* Scans
|
|
4
|
-
* under the pattern `
|
|
3
|
+
* Scans service topics for 5 seconds and returns all unique topic names discovered
|
|
4
|
+
* under the pattern `tenantCode/S/aircraftName/+/ST`.
|
|
5
5
|
* If called again while a scan is already in progress, returns the same in-flight promise
|
|
6
6
|
* without starting a new scan.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
getServiceTopics(aircraftName: string): Promise<string[]>;
|
|
9
9
|
/**
|
|
10
|
-
* Scans all
|
|
11
|
-
* under the pattern `
|
|
10
|
+
* Scans all service topics for 5 seconds and returns all unique topic names discovered
|
|
11
|
+
* under the pattern `tenantCode/S/+/+/ST`, regardless of aircraft.
|
|
12
12
|
* If called again while a scan is already in progress, returns the same in-flight promise
|
|
13
13
|
* without starting a new scan.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
getAllServiceTopics(): Promise<string[]>;
|
|
16
16
|
/**
|
|
17
|
-
* Subscribes to the given
|
|
18
|
-
*
|
|
19
|
-
* in-flight promise without starting a new subscription.
|
|
20
|
-
* Resolves with null if no payload was received within the 5 second window.
|
|
17
|
+
* Subscribes to the given service topic and calls `callback` every time a new message arrives.
|
|
18
|
+
* Returns a subscription ID that can be passed to `unsubscribeServiceTopic` to stop listening.
|
|
21
19
|
*/
|
|
22
|
-
|
|
20
|
+
subscribeServiceTopic(topic: string, callback: (payload: any) => void): string;
|
|
21
|
+
/**
|
|
22
|
+
* Unsubscribes a previously created service topic subscription by its subscription ID.
|
|
23
|
+
*/
|
|
24
|
+
unsubscribeServiceTopic(subscriptionId: string): void;
|
|
23
25
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -97,7 +97,7 @@ import {UIPluginCommand} from "./models/UIPluginCommand";
|
|
|
97
97
|
import {IFlightEventApi} from "./plugin-contract/system-api/IFlightEventApi";
|
|
98
98
|
import {IInboundStreamerApi} from "./plugin-contract/system-api/inbound-streamer-api/IInboundStreamerApi";
|
|
99
99
|
import {InboundStreamerDevice} from "./models/InboundStreamerDevice";
|
|
100
|
-
import {
|
|
100
|
+
import {IServiceTopicApi} from "./plugin-contract/system-api/provider-api/IProviderApi";
|
|
101
101
|
import {IMissionApi} from "./plugin-contract/system-api/IMissionApi";
|
|
102
102
|
import {IUserAuth} from "./models/user/IUser";
|
|
103
103
|
import {Mission} from "./models/Mission";
|
|
@@ -176,7 +176,7 @@ export type {
|
|
|
176
176
|
IFlightEventApi,
|
|
177
177
|
IInboundStreamerApi,
|
|
178
178
|
InboundStreamerDevice,
|
|
179
|
-
|
|
179
|
+
IServiceTopicApi,
|
|
180
180
|
IMissionApi,
|
|
181
181
|
IUserAuth,
|
|
182
182
|
Mission,
|
|
@@ -8,7 +8,7 @@ import {IHandOverApi} from "./handover-api/IHandOverApi";
|
|
|
8
8
|
import {IFlightEventApi} from "./IFlightEventApi";
|
|
9
9
|
import {IMissionApi} from "./IMissionApi";
|
|
10
10
|
import {IInboundStreamerApi} from "./inbound-streamer-api/IInboundStreamerApi";
|
|
11
|
-
import {
|
|
11
|
+
import {IServiceTopicApi} from "./provider-api/IProviderApi";
|
|
12
12
|
|
|
13
13
|
export interface ISystemApi {
|
|
14
14
|
aircraftLocationApi: IAircraftLocationApi;
|
|
@@ -22,5 +22,5 @@ export interface ISystemApi {
|
|
|
22
22
|
getOrganizationName: () => string;
|
|
23
23
|
flightEventApi: IFlightEventApi;
|
|
24
24
|
inboundStreamerApi: IInboundStreamerApi;
|
|
25
|
-
|
|
25
|
+
serviceTopicApi: IServiceTopicApi;
|
|
26
26
|
}
|
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface IServiceTopicApi {
|
|
2
2
|
/**
|
|
3
|
-
* Scans
|
|
4
|
-
* under the pattern `
|
|
3
|
+
* Scans service topics for 5 seconds and returns all unique topic names discovered
|
|
4
|
+
* under the pattern `tenantCode/S/aircraftName/+/ST`.
|
|
5
5
|
* If called again while a scan is already in progress, returns the same in-flight promise
|
|
6
6
|
* without starting a new scan.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
getServiceTopics(aircraftName: string): Promise<string[]>;
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Scans all
|
|
12
|
-
* under the pattern `
|
|
11
|
+
* Scans all service topics for 5 seconds and returns all unique topic names discovered
|
|
12
|
+
* under the pattern `tenantCode/S/+/+/ST`, regardless of aircraft.
|
|
13
13
|
* If called again while a scan is already in progress, returns the same in-flight promise
|
|
14
14
|
* without starting a new scan.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
getAllServiceTopics(): Promise<string[]>;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Subscribes to the given
|
|
20
|
-
*
|
|
21
|
-
* in-flight promise without starting a new subscription.
|
|
22
|
-
* Resolves with null if no payload was received within the 5 second window.
|
|
19
|
+
* Subscribes to the given service topic and calls `callback` every time a new message arrives.
|
|
20
|
+
* Returns a subscription ID that can be passed to `unsubscribeServiceTopic` to stop listening.
|
|
23
21
|
*/
|
|
24
|
-
|
|
22
|
+
subscribeServiceTopic(topic: string, callback: (payload: any) => void): string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Unsubscribes a previously created service topic subscription by its subscription ID.
|
|
26
|
+
*/
|
|
27
|
+
unsubscribeServiceTopic(subscriptionId: string): void;
|
|
25
28
|
}
|