@qandq/cloud-gcs-core 1.2.8 → 1.2.10

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.
@@ -0,0 +1,9 @@
1
+ export interface AircraftPlugin {
2
+ description: string;
3
+ dllFileUrl: string | null;
4
+ isBackgroundPlugin: boolean;
5
+ jsFileUrl: string;
6
+ libraryName: string;
7
+ name: string;
8
+ version: string;
9
+ }
@@ -2,8 +2,8 @@ import { LogLevel } from "../index";
2
2
  export declare class MessageLog {
3
3
  source: string;
4
4
  time: string;
5
- msg: string;
6
- logLevel: LogLevel;
5
+ message: string;
6
+ level: LogLevel;
7
7
  data: any | null;
8
8
  timestamp: number;
9
9
  constructor(source: string, msg: string, logLevel: LogLevel, data: any | null);
@@ -4,6 +4,7 @@ import { LinkHealthStatus } from "../../../models/LinkHealthStatus";
4
4
  import { AircraftConfiguration } from "../../../models/AircraftConfiguration";
5
5
  import { CommandTypeEnum } from "../../../models/enums/CommandTypeEnum";
6
6
  import { LogLevel } from "../../../models/enums/LogLevel";
7
+ import { AircraftPlugin } from "../../../models/AircraftPlugin";
7
8
  export interface IAircraftApi {
8
9
  isBeingControlled: (identifier: AircraftIdentifier) => boolean;
9
10
  isBeingObserved: (identifier: AircraftIdentifier) => boolean;
@@ -20,4 +21,5 @@ export interface IAircraftApi {
20
21
  getAircraftConfiguration(identifier: AircraftIdentifier): AircraftConfiguration | null;
21
22
  sendAircraftFlightLog(aircraftIdentifier: AircraftIdentifier, data: object, level: LogLevel, message: string): void;
22
23
  isSimulator: (aircraftIdentifier: AircraftIdentifier) => boolean;
24
+ getAircraftPlugins: (aircraftIdentifier: AircraftIdentifier) => AircraftPlugin[];
23
25
  }
@@ -5,6 +5,7 @@ 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";
8
9
  export interface ISelectedAircraftApi {
9
10
  isBeingControlled: () => boolean | null;
10
11
  getAircraftIdentifier: () => AircraftIdentifier | null;
@@ -19,4 +20,5 @@ export interface ISelectedAircraftApi {
19
20
  isPluginSupported: () => boolean;
20
21
  getPluginConfig: () => any;
21
22
  sendAircraftFlightLog(data: object, level: LogLevel, message: string): void;
23
+ getAircraftPlugins: () => AircraftPlugin[];
22
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qandq/cloud-gcs-core",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -0,0 +1,10 @@
1
+ export interface AircraftPlugin {
2
+ description: string;
3
+ dllFileUrl: string | null;
4
+ isBackgroundPlugin: boolean;
5
+ jsFileUrl: string;
6
+ libraryName: string;
7
+ name: string;
8
+ version: string;
9
+ }
10
+
@@ -3,8 +3,8 @@ import {LogLevel} from "../index";
3
3
  export class MessageLog {
4
4
  source: string;
5
5
  time: string;
6
- msg: string;
7
- logLevel: LogLevel;
6
+ message: string;
7
+ level: LogLevel;
8
8
  data: any | null;
9
9
  timestamp: number;
10
10
 
@@ -12,8 +12,8 @@ export class MessageLog {
12
12
  this.timestamp = new Date().getTime()
13
13
  this.time = new Date().toLocaleTimeString('en-US', {hour: '2-digit', minute: '2-digit', second: '2-digit'});
14
14
  this.source = source;
15
- this.msg = msg;
16
- this.logLevel = logLevel;
15
+ this.message = msg;
16
+ this.level = logLevel;
17
17
  this.data = data
18
18
  }
19
19
  }
@@ -4,6 +4,7 @@ import {LinkHealthStatus} from "../../../models/LinkHealthStatus";
4
4
  import {AircraftConfiguration} from "../../../models/AircraftConfiguration";
5
5
  import {CommandTypeEnum} from "../../../models/enums/CommandTypeEnum";
6
6
  import { LogLevel } from "../../../models/enums/LogLevel";
7
+ import { AircraftPlugin } from "../../../models/AircraftPlugin";
7
8
 
8
9
  export interface IAircraftApi {
9
10
  isBeingControlled: (identifier: AircraftIdentifier) => boolean;
@@ -26,4 +27,6 @@ export interface IAircraftApi {
26
27
  message: string
27
28
  ): void;
28
29
  isSimulator: (aircraftIdentifier: AircraftIdentifier) => boolean;
30
+
31
+ getAircraftPlugins: (aircraftIdentifier: AircraftIdentifier) => AircraftPlugin[];
29
32
  }
@@ -5,6 +5,7 @@ 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";
8
9
 
9
10
  export interface ISelectedAircraftApi {
10
11
  isBeingControlled: () => boolean | null;
@@ -21,4 +22,5 @@ export interface ISelectedAircraftApi {
21
22
 
22
23
  getPluginConfig: () => any;
23
24
  sendAircraftFlightLog(data: object, level: LogLevel, message: string): void;
25
+ getAircraftPlugins: () => AircraftPlugin[];
24
26
  }