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