Repository URL to install this package:
import { BundlesService, BundleStatus } from '@wa-motif-open-api/web-content-service';
import { NGXLogger } from 'ngx-logger';
import { Observable } from "rxjs";
export declare enum UpdatePollerEventStatus {
Complete = "Complete",
Stopped = "Stopped",
Error = "Error"
}
export interface UpdatePollerEvent {
source: UpdatePoller;
status: UpdatePollerEventStatus;
bundleStatus: BundleStatus;
}
export declare class UpdatePoller {
readonly bundleName: string;
readonly bundleVersion: string;
private webContentService;
private logger;
private _userData;
private _bundleStatus;
private _interval;
private _pollCount;
private _pollTime;
private _currentPollCount;
constructor(bundleName: string, bundleVersion: string, webContentService: BundlesService, logger: NGXLogger);
start(pollcount: number, polltime: number, userData: any): Observable<UpdatePollerEvent>;
stop(): void;
readonly userData: any;
readonly pollCount: number;
readonly pollTime: number;
readonly currentPollCount: number;
}