mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
PATCH /api/vendor-company-roster/{companyId} inserts the submitted
technicians and optionally updates company fields. Technicians absent
from the payload are never removed or deactivated, so the Add Vendor
flow can no longer soft-delete an existing roster via the full-snapshot
PUT. Stale rowVersion still 409s; unknown company 404s. POST (create)
and PUT (reconcile) behaviour is unchanged.
30 lines
882 B
C#
30 lines
882 B
C#
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,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<VendorRosterDTO> ReconcileRosterAsync(
|
|
int companyId,
|
|
ReconcileVendorRosterDTO dto,
|
|
string userId,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<VendorRosterDTO> AddTechniciansAsync(
|
|
int companyId,
|
|
AddTechniciansVendorRosterDTO dto,
|
|
string userId,
|
|
CancellationToken cancellationToken);
|
|
}
|
|
}
|