isn/src/isnd/Interfaces/IPackageManager.cs

36 lines
1.5 KiB
C#
Raw Normal View History

2021-08-23 03:21:08 +01:00
using System.Collections.Generic;
2021-09-05 15:44:47 +01:00
using System.Threading.Tasks;
2022-04-09 19:53:26 +01:00
using isn.Abstract;
2021-08-23 03:21:08 +01:00
using isnd.Controllers;
2021-09-05 17:10:50 +01:00
using isnd.Data;
2022-08-20 12:54:24 +01:00
using isnd.Data.Catalog;
2022-07-10 17:05:05 +01:00
using isnd.Data.Packages;
using isnd.Data.Packages.Catalog;
2021-08-23 03:21:08 +01:00
using isnd.Services;
using isnd.ViewModels;
using NuGet.Versioning;
using Unleash;
namespace isnd.Interfaces
{
public interface IPackageManager
{
2022-09-23 20:34:51 +01:00
string CatalogBaseUrl { get; }
2021-09-05 18:55:38 +01:00
AutoCompleteResult AutoComplete(string pkgid, int skip, int take, bool prerelease = false, string packageType = null);
2021-08-29 00:08:34 +01:00
2021-09-05 18:55:38 +01:00
string[] GetVersions(string pkgid, NuGetVersion parsedVersion, bool prerelease = false, string packageType = null, int skip = 0, int take = 25);
2021-08-23 03:21:08 +01:00
IEnumerable<Resource> GetResources(IUnleash unleashĈlient);
2021-08-29 00:51:43 +01:00
void ÛpdateCatalogFor(Commit commit);
2021-09-05 18:55:38 +01:00
Task<PackageDeletionReport> DeletePackageAsync(string pkgid, string version, string type);
2022-09-24 12:32:00 +01:00
Task<PackageDeletionReport> UserAskForPackageDeletionAsync(string userid, string pkgId, string lower, string type);
2021-09-05 17:10:50 +01:00
Task<PackageVersion> GetPackageAsync(string pkgid, string version, string type);
2022-12-17 01:29:22 +00:00
IEnumerable<PackageVersion> GetCatalogLeaf(string pkgId, string version, string pkgType);
2022-09-24 12:32:00 +01:00
IEnumerable<RegistrationLeaf> SearchById(string pkgId, string semver, string pkgType);
2022-09-25 02:24:21 +01:00
RegistrationPageIndex GetCatalogIndex();
2022-10-15 18:26:55 +01:00
RegistrationPageIndex GetPackageRegistrationIndex(RegistrationPageIndexQuery query);
2022-10-17 19:17:04 +01:00
2023-01-29 13:04:50 +00:00
Task<RegistrationPageIndex> SearchPackageAsync(RegistrationPageIndexQuery query);
2021-08-23 03:21:08 +01:00
}
}