mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 06:03:12 +00:00
Seed an organization-wide Area catalogue (East, Central, West, California) with stable ids, add a nullable AreaId to VendorCompany, allow only Admins to change it through the roster endpoints, expose areas facet metadata and an areas[n] company-directory filter with the __unassigned__ sentinel.
34 lines
1,020 B
C#
34 lines
1,020 B
C#
using System.Security.Claims;
|
|
using SeaHaven.Services.DTOs;
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
{
|
|
public interface IVendorCompanyRosterService
|
|
{
|
|
Task<VendorRosterDTO?> GetRosterAsync(
|
|
int? vendorId,
|
|
int? companyId,
|
|
string userId,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<VendorRosterDTO> CreateRosterAsync(
|
|
CreateVendorRosterDTO dto,
|
|
string userId,
|
|
ClaimsPrincipal caller,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<VendorRosterDTO> ReconcileRosterAsync(
|
|
int companyId,
|
|
ReconcileVendorRosterDTO dto,
|
|
string userId,
|
|
ClaimsPrincipal caller,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<VendorRosterDTO> AddTechniciansAsync(
|
|
int companyId,
|
|
AddTechniciansVendorRosterDTO dto,
|
|
string userId,
|
|
ClaimsPrincipal caller,
|
|
CancellationToken cancellationToken);
|
|
}
|
|
}
|