program-repository.ts 322 Bytes
export interface ProgramRepository {

    findById(id:string) : Promise<any>;

    findByIds(ids:Array<string>) : Promise<Array<any>>;

    findByType(type:string) : Promise<Array<any>>;

    /**
     * returns true / false depending on if there where any changes to download
     */
    replicate() : Promise<boolean>;

}