@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
12 lines (11 loc) • 606 B
TypeScript
import type { IPersistenceRead } from '../../definition/accessors';
import type { RocketChatAssociationRecord } from '../../definition/metadata';
import type { PersistenceBridge } from '../bridges';
export declare class PersistenceRead implements IPersistenceRead {
private persistBridge;
private appId;
constructor(persistBridge: PersistenceBridge, appId: string);
read(id: string): Promise<object>;
readByAssociation(association: RocketChatAssociationRecord): Promise<Array<object>>;
readByAssociations(associations: Array<RocketChatAssociationRecord>): Promise<Array<object>>;
}