mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 13:03:12 +00:00
Harden contextual search on the weekly board and expose paginated cross-week GET /board/search with date presets, FE filter params, SQL indexes, and unit tests.
27 lines
823 B
C#
27 lines
823 B
C#
using Data.SeaHavenIndustries.Enums;
|
|
using SeaHaven.DataServices.Interfaces;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public record WorkOrderAdvancedSearchQuery(
|
|
string? Search,
|
|
DateOnly DateFrom,
|
|
DateOnly DateTo,
|
|
IReadOnlyList<string>? Sites,
|
|
IReadOnlyList<WorkOrderType>? Types,
|
|
IReadOnlyList<string>? Dispatchers,
|
|
IReadOnlyList<LifecycleStatus>? Statuses,
|
|
IReadOnlyList<string>? PmTypes,
|
|
IReadOnlyList<int>? VendorIds,
|
|
IReadOnlyList<DocStatus>? DocStatuses,
|
|
bool MyWorkOrders,
|
|
string? CurrentUserId,
|
|
int Page,
|
|
int PageSize,
|
|
string SortBy,
|
|
string SortDir);
|
|
|
|
public record WorkOrderAdvancedSearchResult(
|
|
IReadOnlyList<WorkOrderBoardRawRow> Rows,
|
|
int TotalCount);
|
|
}
|