UNPKG

reduct-js

Version:

ReductStore Client SDK for Javascript/NodeJS/Typescript

63 lines (62 loc) 1.44 kB
import { LifecycleMode } from "./LifecycleMode"; import { LifecycleType } from "./LifecycleType"; import { LifecycleSettings, OriginalLifecycleSettings } from "./LifecycleSettings"; /** * Original lifecycle info. */ export declare class OriginalLifecycleInfo { name: string; mode: LifecycleMode; is_provisioned: boolean; is_running: boolean; type: LifecycleType; last_run?: string; } /** * Lifecycle info. */ export declare class LifecycleInfo { /** * Lifecycle policy name. */ readonly name: string; /** * Lifecycle mode. */ readonly mode: LifecycleMode; /** * Lifecycle action type. */ readonly type: LifecycleType; /** * Last lifecycle run time. */ readonly lastRun?: Date; /** * Lifecycle policy is provisioned. */ readonly isProvisioned: boolean; /** * Lifecycle worker is running. */ readonly isRunning: boolean; static parse(data: OriginalLifecycleInfo): LifecycleInfo; } /** * Lifecycle full info. */ export declare class FullLifecycleInfo { /** * Lifecycle info. */ readonly info: LifecycleInfo; /** * Lifecycle settings. */ readonly settings: LifecycleSettings; static parse(data: FullLifecycleInfoResponse): FullLifecycleInfo; } export interface FullLifecycleInfoResponse { info: OriginalLifecycleInfo; settings: OriginalLifecycleSettings; }