import { IConfiguration } from "../entities/Configuration" ; import { IEntrypoint } from "../entities/Entrypoint" ; export default interface IEntrypointsStorage { findOne ( id ) : Promise < IEntrypoint | null > ; findOneByUrlMatcher ( urlMatcher ) : Promise < IEntrypoint | null > ; findManyByAppId ( appId ) : Promise < IEntrypoint [ ] > ; findManyByUrlMatcherHostname ( urlMatcherHostname ) : Promise < IEntrypoint [ ] > ; oneExistsWithUrlMatcher ( urlMatcher ) : Promise < boolean > ; anyExistsWithAppId ( appId ) : Promise < boolean > ; anyExistsWithBundleIdIn ( bundleIds ) : Promise < boolean > ; createOne ( entrypoint ) : Promise < IEntrypoint > ; updateOne ( id , patch ) : Promise < IEntrypoint > ; deleteOne ( id ) : Promise < void > ; }