import { IApp } from "../entities/App" ; import { IConfiguration } from "../entities/Configuration" ; export default interface IAppsStorage { findOne ( id ) : Promise < IApp | null > ; findOneByName ( name ) : Promise < IApp | null > ; findMany ( ) : Promise < IApp [ ] > ; oneExistsWithId ( id ) : Promise < boolean > ; oneExistsWithName ( name ) : Promise < boolean > ; createOne ( app ) : Promise < IApp > ; updateOne ( id , patch ) : Promise < IApp > ; deleteOne ( id ) : Promise < void > ; }