mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-01 19:13:13 +00:00
* feat(vendors): add directory filters and details API * fix(vendors): preserve omitted status * fix(vendors): align facet filtering * fix(vendors): address directory review findings
27 lines
1 KiB
C#
27 lines
1 KiB
C#
using Data.SeaHavenIndustries;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public interface IVendorDataService
|
|
{
|
|
Task<Vendor?> GetByIdAsync(int id);
|
|
Task<Vendor?> GetByIdWithDetailsAsync(int id);
|
|
Task<IEnumerable<Vendor>> GetAllAsync();
|
|
Task<(IEnumerable<Vendor> Items, int TotalCount)> GetPagedAsync(
|
|
int page,
|
|
int pageSize,
|
|
string? search = null,
|
|
bool? isActive = true,
|
|
IReadOnlyCollection<string>? companies = null,
|
|
IReadOnlyCollection<string>? trades = null,
|
|
IReadOnlyCollection<string>? locations = null,
|
|
IReadOnlyCollection<string>? jobBuckets = null);
|
|
Task<Vendor> AddAsync(Vendor vendor);
|
|
Task UpdateAsync(Vendor vendor);
|
|
Task DeleteAsync(int id);
|
|
Task<bool> ExistsAsync(int id);
|
|
Task<VendorAccessToken?> GetActiveTokenAsync(int vendorId);
|
|
Task<VendorAccessToken?> GetTokenByStringAsync(string token);
|
|
Task<int> CountAsync();
|
|
}
|
|
}
|