Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Timing

Implements

Index

Constructors

constructor

Properties

Readonly appletUid

appletUid: ITiming["appletUid"]

Readonly appletVersion

appletVersion: ITiming["appletVersion"]

Readonly configuration

configuration: ITiming["configuration"]

Readonly console

console: IConsole = ['log', 'error', 'warn', 'info', 'debug'].reduce<any>((consoleMemo: IConsole, level: string) => ({...consoleMemo,[level]: {getAll: async (since: Date = this.updatedAt) => {const timingCommands = await this.timingCommandManagement.getList<ConsoleLogged>({deviceUid: this.deviceUid,appletUid: this.appletUid,receivedSince: since.toISOString(),type: ConsoleLogged,});return _.flatMap(timingCommands.filter((timingCommand: TimingCommand<ConsoleLogged>) => timingCommand.commandPayload.level === level),(timingCommand: TimingCommand<ConsoleLogged>) => timingCommand.commandPayload.messages,);},},}),{},)

Readonly createdAt

createdAt: ITiming["createdAt"]

Readonly deviceUid

deviceUid: ITiming["deviceUid"]

Readonly endsAt

endsAt: ITiming["endsAt"]

Readonly finishEvent

finishEvent: ITiming["finishEvent"]

Readonly position

position: ITiming["position"]

Readonly startsAt

startsAt: ITiming["startsAt"]

Private timingCommandManagement

timingCommandManagement: TimingCommandManagement

Private timingManagement

timingManagement: TimingManagement

Readonly uid

uid: ITiming["uid"]

Readonly updatedAt

updatedAt: ITiming["updatedAt"]

Readonly video

video: IVideo = videoStates.reduce<any>((videoMemo: IVideo, state: VideoStateChanged['state']) => ({...videoMemo,[state]: {getAll: async (since: Date = this.updatedAt) => {const videoStateChangedCommands = await this.timingCommandManagement.getList<VideoStateChanged>({deviceUid: this.deviceUid,appletUid: this.appletUid,receivedSince: since.toISOString(),type: VideoStateChanged,});const videosByStateMap = _.groupBy(videoStateChangedCommands,(videoStateChangedCommand: TimingCommand<VideoStateChanged>) => videoStateChangedCommand.commandPayload.state,);const videosOfCurrentState = videosByStateMap[state].map((videoStateChangedCommand: TimingCommand<VideoStateChanged>) => _.pick(videoStateChangedCommand.commandPayload,'uri','x','y','width','height',),);return videosOfCurrentState;},},}),{},)

Methods

delete

  • delete(): Promise<void>
  • Returns Promise<void>

disableMonitoring

  • disableMonitoring(): Promise<void>
  • Returns Promise<void>

enableMonitoring

  • enableMonitoring(): Promise<void>
  • Returns Promise<void>

onLoaded

  • onLoaded(since?: Date): Promise<void>
  • Parameters

    • Default value since: Date = this.updatedAt

    Returns Promise<void>

Object literals

Readonly fileSystem

fileSystem: object

appendFile

  • appendFile(filePath: IFilePath, content: string): Promise<void>
  • Parameters

    • filePath: IFilePath
    • content: string

    Returns Promise<void>

copyFile

  • copyFile(sourceFilePath: IFilePath, destinationFilePath: IFilePath, options: ICopyFileOptions | {}): Promise<void>
  • Parameters

    • sourceFilePath: IFilePath
    • destinationFilePath: IFilePath
    • options: ICopyFileOptions | {}

    Returns Promise<void>

createDirectory

  • createDirectory(directoryPath: IFilePath): Promise<void>
  • Parameters

    • directoryPath: IFilePath

    Returns Promise<void>

deleteFile

  • deleteFile(filePath: IFilePath, recursive: boolean): Promise<void>
  • Parameters

    • filePath: IFilePath
    • recursive: boolean

    Returns Promise<void>

downloadFile

  • downloadFile(filePath: IFilePath, sourceUri: string, headers?: IHeaders): Promise<void>
  • Parameters

    • filePath: IFilePath
    • sourceUri: string
    • Optional headers: IHeaders

    Returns Promise<void>

exists

  • exists(filePath: IFilePath): Promise<boolean>
  • Parameters

    • filePath: IFilePath

    Returns Promise<boolean>

extractFile

  • extractFile(archiveFilePath: IFilePath, destinationDirectionPath: IFilePath, method: string): Promise<void>
  • Parameters

    • archiveFilePath: IFilePath
    • destinationDirectionPath: IFilePath
    • method: string

    Returns Promise<void>

getFile

  • getFile(filePath: IFilePath): Promise<IFileSystemFile | null>
  • Parameters

    • filePath: IFilePath

    Returns Promise<IFileSystemFile | null>

getFileChecksum

  • getFileChecksum(filePath: IFilePath, hashType: string): Promise<string>
  • Parameters

    • filePath: IFilePath
    • hashType: string

    Returns Promise<string>

isDirectory

  • isDirectory(filePath: IFilePath): Promise<boolean>
  • Parameters

    • filePath: IFilePath

    Returns Promise<boolean>

listFiles

  • listFiles(directoryPath: IFilePath): Promise<IFilePath[]>
  • Parameters

    • directoryPath: IFilePath

    Returns Promise<IFilePath[]>

listStorageUnits

  • listStorageUnits(): Promise<IStorageUnit[]>
  • Returns Promise<IStorageUnit[]>

moveFile

  • moveFile(sourceFilePath: IFilePath, destinationFilePath: IFilePath, options: IMoveFileOptions | {}): Promise<void>
  • Parameters

    • sourceFilePath: IFilePath
    • destinationFilePath: IFilePath
    • options: IMoveFileOptions | {}

    Returns Promise<void>

readFile

  • readFile(filePath: IFilePath): Promise<string>
  • Parameters

    • filePath: IFilePath

    Returns Promise<string>

writeFile

  • writeFile(filePath: IFilePath, content: string): Promise<void>
  • Parameters

    • filePath: IFilePath
    • content: string

    Returns Promise<void>

Readonly html

html: object

getDOMDocument

  • getDOMDocument(): Promise<Document>
  • Returns Promise<Document>

Readonly offline

offline: object

cache

cache: object

getChecksumFile

  • getChecksumFile(uid: string, hashType: string): Promise<string>
  • Parameters

    • uid: string
    • hashType: string

    Returns Promise<string>

listFiles

  • listFiles(): Promise<string[]>
  • Returns Promise<string[]>

loadFile

  • loadFile(uid: string): Promise<IFile>
  • Parameters

    • uid: string

    Returns Promise<IFile>

loadOrSaveFile

  • loadOrSaveFile(uid: string, uri: string, headers?: undefined | {}): Promise<IFile>
  • Parameters

    • uid: string
    • uri: string
    • Optional headers: undefined | {}

    Returns Promise<IFile>

validateChecksumFile

  • validateChecksumFile(uid: string, hash: string, hashType: string): Promise<boolean>
  • Parameters

    • uid: string
    • hash: string
    • hashType: string

    Returns Promise<boolean>

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Private property
  • Private method
  • Protected property
  • Static property

Generated using TypeDoc