UNPKG

@darlean/core

Version:

Darlean core functionality for creating applications that define, expose and host actors

33 lines (32 loc) 2.09 kB
import { CustomPersistable, IMigrationState, IMultiChunkTableSearchRequest, IPersistable, IPersistence, IPersistenceQueryOptions, IPersistenceQueryResult, ITablePersistence, ITableSearchItem, ITableSearchRequest, ITableSearchResponse } from '@darlean/base'; import { IMigrationController } from './migrationcontroller'; export declare class MigrationPersistable<T extends IMigrationState> extends CustomPersistable<T> implements IPersistable<T> { private superPersistable; private controller; private checked; constructor(superPersistable: IPersistable<T>, controller: IMigrationController<T>); protected _load(): Promise<{ value: T | undefined; version: string | undefined; }>; protected _persist(value: T | undefined): Promise<void>; } export declare class MigrationPersistence<T extends IMigrationState> implements IPersistence<T> { private superPersistence; private controller; constructor(superPersistence: IPersistence<T>, controller: IMigrationController<T>); query(options: IPersistenceQueryOptions): Promise<IPersistenceQueryResult<T>>; persistable(partitionKey: string[] | undefined, sortKey: string[] | undefined, value: T | undefined): IPersistable<T>; load(partitionKey?: string[], sortKey?: string[]): Promise<IPersistable<T>>; sub(partitionKey?: string[]): IPersistence<T>; } export declare class MigrationTablePersistence<T extends IMigrationState> implements ITablePersistence<T> { private superPersistence; private controller; constructor(superPersistence: ITablePersistence<T>, controller: IMigrationController<T>); search(options: ITableSearchRequest): Promise<ITableSearchResponse>; searchChunks(options: ITableSearchRequest & IMultiChunkTableSearchRequest): AsyncGenerator<ITableSearchResponse, void>; searchItems(options: ITableSearchRequest & IMultiChunkTableSearchRequest): AsyncGenerator<ITableSearchItem, void>; persistable(key: string[], value: T | undefined): IPersistable<T>; load(key: string[]): Promise<IPersistable<T>>; }