UNPKG

reduct-js

Version:

ReductStore Client SDK for Javascript/NodeJS/Typescript

47 lines (46 loc) 1.2 kB
import { LifecycleMode } from "./LifecycleMode"; import { LifecycleType } from "./LifecycleType"; export declare class OriginalLifecycleSettings { type?: LifecycleType; bucket: string; entries: string[]; older_than: string; interval?: string; when?: any; mode?: LifecycleMode; } /** * Lifecycle settings. */ export declare class LifecycleSettings { /** * Lifecycle action type. */ readonly lifecycleType?: LifecycleType; /** * Bucket to apply lifecycle policy. */ readonly bucket: string; /** * List of entries to process. If empty, all matching entries are processed. */ readonly entries: string[]; /** * Maximum record age, e.g. "30d", "24h", or "3600s". */ readonly olderThan: string; /** * Interval between lifecycle runs, e.g. "10m", "1h", or "3600s". */ readonly interval?: string; /** * Conditional query. */ readonly when?: any; /** * Lifecycle mode. */ readonly mode?: LifecycleMode; static parse(data: OriginalLifecycleSettings): LifecycleSettings; static serialize(data: LifecycleSettings): OriginalLifecycleSettings; }