UNPKG

lavva.exalushome

Version:

Library implementing communication and abstraction layers for ExalusHome system

66 lines (65 loc) 5.78 kB
import { Status } from "../../DataFrame"; import { IDevice } from "../Devices/IDevice"; import { ResponseResult } from "../FieldChangeResult"; import { ICustomUpdateActions } from "./CustomUpdateActions/ICustomUpdateActions"; import { ControllerUpdatesInfo, ControllerUpdateType, ControllerVersion, DeviceUpdateShortInfo, IDeviceUpdateInfo, UpdateHistory } from "./IUpdateInfo"; import { Update } from "./IUpdatesProvider"; import { BulkUpdateResult, DownloadProgress, IUpdatesService, UpdateAction, UpdateBranch, UpdateErrorCode, UpdateProgress } from './IUpdatesService'; export declare class UpdatesService implements IUpdatesService { static readonly ServiceName: string; private _updateProviders; private _controllerUpdates; private _logger; private _connection; private _appStateService; private _extensionService; private _updateRequestTimeout; private _oldUpdateVersion; private _oldUpdateBuild; private _updateOfflineStageTime; constructor(); IsBranchAndAutomaticUpdatesSettingSupportedAsync(): Promise<boolean>; DownloadControllerUpdateAsync<T extends ICustomUpdateActions>(downloadProgress: DownloadProgress): Promise<Status.OK | ResponseResult<UpdateErrorCode>>; InstallControllerOrRadioUpdateAsync<T extends ICustomUpdateActions>(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, updateGuid: string): Promise<Status.OK | ResponseResult<UpdateErrorCode>>; InstallControllerOrRadioUpdateAsync<T extends ICustomUpdateActions>(updateProgress: UpdateProgress, downloadProgress: DownloadProgress): Promise<Status.OK | ResponseResult<UpdateErrorCode>>; GetAutomaticControllerUpdateDownloadStatusAsync(): Promise<boolean | ResponseResult<UpdateErrorCode>>; GetServiceName(): string; CheckDeviceVersionAsync(deviceGuid: string): Promise<string | ResponseResult<UpdateErrorCode>>; CheckDeviceVersionAsync(device: IDevice): Promise<string | ResponseResult<UpdateErrorCode>>; CheckDeviceUpdateAsync(deviceGuid: string): Promise<IDeviceUpdateInfo | ResponseResult<UpdateErrorCode>>; CheckDeviceUpdateAsync(device: IDevice): Promise<IDeviceUpdateInfo | ResponseResult<UpdateErrorCode>>; CheckDeviceUpdatesBulkAsync(reloadCache?: boolean): Promise<IDeviceUpdateInfo[] | ResponseResult<UpdateErrorCode>>; InstallDeviceUpdateAsync<T extends ICustomUpdateActions>(device: IDevice, updateProgress: UpdateProgress, updateAction?: UpdateAction<T> | undefined, force?: boolean): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; InstallDeviceUpdateAsync<T extends ICustomUpdateActions>(dev: string, updateProgress: UpdateProgress, updateAction?: UpdateAction<T> | undefined, force?: boolean): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; InstallDevicesUpdateBulkAsync<T extends ICustomUpdateActions>(deviceGuids: string[], updateProgress: UpdateProgress, updateAction?: UpdateAction<T>): Promise<BulkUpdateResult | ResponseResult<UpdateErrorCode>>; CheckControllerSoftwareUpdateAvailabilityAsync(): Promise<boolean>; CanCancelFailedControllerUpdateOrGetPendingUpdateProgress(): boolean; CancelFailedControllerUpdateAsync(): Promise<Status.OK | Status.Error | Status.OperationNotPermitted>; CheckControllerPendingUpdateProgressAsync(updateProgress: UpdateProgress, downloadProgess: DownloadProgress): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; CheckDevicesUpdatesAvailabilityAsync(): Promise<DeviceUpdateShortInfo[]>; CheckControllerUpdatesAsync(): Promise<ControllerUpdatesInfo>; CheckControllerVersionAsync(): Promise<ControllerVersion[] | ResponseResult<UpdateErrorCode>>; GetControllerUpdateBranchAsync(): Promise<ResponseResult<UpdateErrorCode> | UpdateBranch>; SetControllerUpdateBranchAsync(updateBranch: UpdateBranch): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; EnableAutomaticControllerUpdateDownloadAsync(): Promise<Status.OK | ResponseResult<UpdateErrorCode>>; DisableAutomaticControllerUpdateDownloadAsync(): Promise<Status.OK | ResponseResult<UpdateErrorCode>>; GetControllerUpdatesHistoryAsync(): Promise<UpdateHistory[] | ResponseResult<UpdateErrorCode>>; InstallControllerUpdateAsync<T extends ICustomUpdateActions>(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, updateGuid: string, downloadOnly: boolean, updateAction?: UpdateAction<T> | undefined): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; InstallControllerUpdateAsync<T extends ICustomUpdateActions>(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, updateAction?: UpdateAction<T> | undefined): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; protected UpdateControllerUsingScriptAsync(update: Update, updateProgress: UpdateProgress): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; private DownloadControllerUpdateNewApiAsync; private InstallUpdateNewApiAsync; protected InstallControllerUpdateUsingApiAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; protected DownloadControllerUpdateUsingApiAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, downloadOnly: boolean): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; protected UpdateControllerUsingApiAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, downloadOnly: boolean): Promise<ResponseResult<UpdateErrorCode> | Status.OK>; private getRuntimeInfoAsync; } /** * @type Class */ export declare class ControllerUpdateNotAvailableInfo { UpdatedResourceName: Map<string, string>; CurrentResourceVersion: string; UpdateType: ControllerUpdateType | null; ResponseResult: ResponseResult<UpdateErrorCode> | null; }