mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-07 16:19:07 +00:00
32 lines
1.7 KiB
C#
32 lines
1.7 KiB
C#
using SeaHaven.Services.DTOs;
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
{
|
|
public interface IVendorService
|
|
{
|
|
Task<VendorDTO?> GetVendorByIdAsync(int id);
|
|
Task<VendorDTO?> GetVendorByIdWithDetailsAsync(int id);
|
|
Task<IEnumerable<VendorDTO>> GetAllVendorsAsync();
|
|
Task<PagedResult<VendorDTO>> GetVendorsPagedAsync(
|
|
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<VendorDTO> CreateVendorAsync(CreateVendorDTO dto, string userId);
|
|
Task<VendorDTO> UpdateVendorAsync(int id, UpdateVendorDTO dto, string userId);
|
|
Task DeleteVendorAsync(int id, string userId);
|
|
Task<bool> VendorExistsAsync(int id);
|
|
Task<int> GetTotalVendorCountAsync();
|
|
Task<VendorDeactivationImpactDTO> GetDeactivationImpactAsync(int vendorId);
|
|
Task<VendorDTO> UpdateVendorFromWorkOrderAsync(int vendorId, WorkOrderVendorUpdateDTO dto, string userId);
|
|
Task<IEnumerable<VendorDropdownItemDTO>> GetDropdownAsync(string? trade, string? siteZip, CancellationToken cancellationToken);
|
|
Task<VendorFacetsDTO> GetFacetsAsync(bool? isActive, CancellationToken cancellationToken);
|
|
Task<VendorPortalTokenDTO?> GetPortalTokenAsync(int vendorId, CancellationToken cancellationToken);
|
|
Task<VendorPortalTokenDTO?> RotatePortalTokenAsync(int vendorId, CancellationToken cancellationToken);
|
|
Task<bool> RevokePortalTokenAsync(int vendorId, CancellationToken cancellationToken);
|
|
}
|
|
}
|