isn/src/isnd/Interfaces/IPackageManager.cs

77 lines
2.3 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;
2026-07-05 17:22:57 +01:00
using Isn.Abstract;
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;
2021-08-23 03:21:08 +01:00
using isnd.Services;
using isnd.ViewModels;
using NuGet.Versioning;
namespace isnd.Interfaces
{
2026-07-05 17:22:57 +01:00
/**
* IPackageManager
*/
2021-08-23 03:21:08 +01:00
public interface IPackageManager
{
2026-07-05 17:22:57 +01:00
/**
* CatalogBaseUrl
*/
2022-09-23 20:34:51 +01:00
string CatalogBaseUrl { get; }
2026-07-05 17:22:57 +01:00
/**
* AutoComplete generation
*/
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
2026-07-05 17:22:57 +01:00
/**
* GetVersions
*/
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);
2026-07-05 17:22:57 +01:00
/**
* GetResources
*/
2026-07-05 17:54:36 +01:00
IEnumerable<Resource> GetResources();
2026-07-05 17:22:57 +01:00
/**
* UpdateCatalogForAsync
*/
Task<RegistrationPageIndex> UpdateCatalogForAsync(Commit commit);
/**
* DeletePackageAsync
*/
2021-09-05 18:55:38 +01:00
Task<PackageDeletionReport> DeletePackageAsync(string pkgid, string version, string type);
2026-07-05 17:22:57 +01:00
/**
* UserAskForPackageDeletionAsync
*/
2022-09-24 12:32:00 +01:00
Task<PackageDeletionReport> UserAskForPackageDeletionAsync(string userid, string pkgId, string lower, string type);
2026-07-05 17:22:57 +01:00
/**
* GetPackageAsync
*/
2021-09-05 17:10:50 +01:00
Task<PackageVersion> GetPackageAsync(string pkgid, string version, string type);
2026-07-05 17:22:57 +01:00
/**
* GetCatalogEntryAsync
*/
2023-03-18 12:50:31 +00:00
Task<CatalogEntry> GetCatalogEntryAsync(string pkgId, string version, string pkgType);
2026-07-05 17:22:57 +01:00
/**
* SearchCatalogEntriesById
*/
2023-03-18 12:50:31 +00:00
IEnumerable<CatalogEntry> SearchCatalogEntriesById(string pkgId, string semver, string pkgType);
2022-09-25 02:24:21 +01:00
2026-07-05 17:22:57 +01:00
/**
* GetCatalogIndexAsync
*/
2023-02-06 21:43:18 +00:00
Task<RegistrationPageIndex> GetCatalogIndexAsync();
2026-07-05 17:22:57 +01:00
/**
* GetPackageRegistrationIndexAsync
*/
2023-02-06 21:43:18 +00:00
Task<RegistrationPageIndex> GetPackageRegistrationIndexAsync(RegistrationPageIndexQuery query);
2026-07-05 17:22:57 +01:00
/**
* SearchPackageAsync
*/
2023-01-29 13:04:50 +00:00
Task<RegistrationPageIndex> SearchPackageAsync(RegistrationPageIndexQuery query);
2021-08-23 03:21:08 +01:00
}
}