using System.Collections.Generic; using System.Threading.Tasks; using isn.Abstract; using isnd.Controllers; using isnd.Data; using isnd.Data.Catalog; using isnd.Data.Packages; using isnd.Data.Packages.Catalog; using isnd.Services; using isnd.ViewModels; using NuGet.Versioning; using Unleash; namespace isnd.Interfaces { public interface IPackageManager { string CatalogBaseUrl { get; } AutoCompleteResult AutoComplete(string pkgid, int skip, int take, bool prerelease = false, string packageType = null); string[] GetVersions(string pkgid, NuGetVersion parsedVersion, bool prerelease = false, string packageType = null, int skip = 0, int take = 25); IEnumerable GetResources(IUnleash unleashĈlient); Task ÛpdateCatalogForAsync(Commit commit); Task DeletePackageAsync(string pkgid, string version, string type); Task UserAskForPackageDeletionAsync(string userid, string pkgId, string lower, string type); Task GetPackageAsync(string pkgid, string version, string type); Task GetCatalogEntryAsync(string pkgId, string version, string pkgType); IEnumerable SearchCatalogEntriesById(string pkgId, string semver, string pkgType); Task GetCatalogIndexAsync(); Task GetPackageRegistrationIndexAsync(PackageRegistrationQuery query); Task SearchPackageAsync(PackageRegistrationQuery query); } }