@qandq/cloud-gcs-core 1.2.7 → 1.2.9

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.
@@ -4,4 +4,5 @@ export interface AircraftConfiguration {
4
4
  hasParachute: boolean;
5
5
  hasVTol: boolean;
6
6
  aircraftType: string;
7
+ videoStreamUrl: string;
7
8
  }
@@ -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);
@@ -3,6 +3,7 @@ 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";
6
7
  export interface IAircraftApi {
7
8
  isBeingControlled: (identifier: AircraftIdentifier) => boolean;
8
9
  isBeingObserved: (identifier: AircraftIdentifier) => boolean;
@@ -17,4 +18,6 @@ export interface IAircraftApi {
17
18
  executeCommand(identifier: AircraftIdentifier, command: CommandTypeEnum, data: any): void;
18
19
  getAircraftLinkHealthStatus(aircraftIdentifier: AircraftIdentifier): LinkHealthStatus | undefined;
19
20
  getAircraftConfiguration(identifier: AircraftIdentifier): AircraftConfiguration | null;
21
+ sendAircraftFlightLog(aircraftIdentifier: AircraftIdentifier, data: object, level: LogLevel, message: string): void;
22
+ isSimulator: (aircraftIdentifier: AircraftIdentifier) => boolean;
20
23
  }
@@ -4,6 +4,7 @@ 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";
7
8
  export interface ISelectedAircraftApi {
8
9
  isBeingControlled: () => boolean | null;
9
10
  getAircraftIdentifier: () => AircraftIdentifier | null;
@@ -17,4 +18,5 @@ export interface ISelectedAircraftApi {
17
18
  executeCommand(command: CommandTypeEnum, data: any): void;
18
19
  isPluginSupported: () => boolean;
19
20
  getPluginConfig: () => any;
21
+ sendAircraftFlightLog(data: object, level: LogLevel, message: string): void;
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qandq/cloud-gcs-core",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -4,4 +4,5 @@ export interface AircraftConfiguration {
4
4
  hasParachute: boolean;
5
5
  hasVTol: boolean;
6
6
  aircraftType: string;
7
+ videoStreamUrl: string;
7
8
  }
@@ -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
  }
@@ -3,6 +3,7 @@ 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";
6
7
 
7
8
  export interface IAircraftApi {
8
9
  isBeingControlled: (identifier: AircraftIdentifier) => boolean;
@@ -18,4 +19,11 @@ export interface IAircraftApi {
18
19
  executeCommand(identifier: AircraftIdentifier, command: CommandTypeEnum, data: any): void;
19
20
  getAircraftLinkHealthStatus(aircraftIdentifier: AircraftIdentifier): LinkHealthStatus | undefined;
20
21
  getAircraftConfiguration(identifier: AircraftIdentifier): AircraftConfiguration | null;
22
+ sendAircraftFlightLog(
23
+ aircraftIdentifier: AircraftIdentifier,
24
+ data: object,
25
+ level: LogLevel,
26
+ message: string
27
+ ): void;
28
+ isSimulator: (aircraftIdentifier: AircraftIdentifier) => boolean;
21
29
  }
@@ -4,6 +4,7 @@ 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";
7
8
 
8
9
  export interface ISelectedAircraftApi {
9
10
  isBeingControlled: () => boolean | null;
@@ -19,4 +20,5 @@ export interface ISelectedAircraftApi {
19
20
  isPluginSupported: () => boolean;
20
21
 
21
22
  getPluginConfig: () => any;
23
+ sendAircraftFlightLog(data: object, level: LogLevel, message: string): void;
22
24
  }