2026-07-08 14:58:59 -03:00
|
|
|
using Data.SeaHavenIndustries.Enums;
|
|
|
|
|
using SeaHaven.DataServices.Interfaces;
|
|
|
|
|
|
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public record WorkOrderAdvancedSearchQuery(
|
|
|
|
|
string? Search,
|
|
|
|
|
DateOnly DateFrom,
|
|
|
|
|
DateOnly DateTo,
|
2026-09-15 16:46:40 -03:00
|
|
|
bool UnscheduledOnly,
|
2026-07-08 14:58:59 -03:00
|
|
|
IReadOnlyList<string>? Sites,
|
2026-09-16 21:27:05 -03:00
|
|
|
IReadOnlyList<string>? Regions,
|
2026-07-08 14:58:59 -03:00
|
|
|
IReadOnlyList<WorkOrderType>? Types,
|
2026-07-24 18:12:03 -03:00
|
|
|
bool Overdue,
|
2026-07-08 14:58:59 -03:00
|
|
|
IReadOnlyList<string>? Dispatchers,
|
|
|
|
|
IReadOnlyList<LifecycleStatus>? Statuses,
|
|
|
|
|
IReadOnlyList<string>? PmTypes,
|
|
|
|
|
IReadOnlyList<int>? VendorIds,
|
|
|
|
|
IReadOnlyList<DocStatus>? DocStatuses,
|
2026-08-13 16:34:21 -03:00
|
|
|
IReadOnlyList<int>? Severities,
|
|
|
|
|
bool Rescheduled,
|
|
|
|
|
bool CarriedOver,
|
|
|
|
|
bool AddOn,
|
2026-08-24 15:14:31 -03:00
|
|
|
bool AvetaOnly,
|
2026-08-13 16:34:21 -03:00
|
|
|
IReadOnlyList<string>? FlagColors,
|
|
|
|
|
bool InternalOnly,
|
|
|
|
|
bool HasUplift,
|
|
|
|
|
IReadOnlyList<string>? UpliftStatuses,
|
2026-07-08 14:58:59 -03:00
|
|
|
bool MyWorkOrders,
|
|
|
|
|
string? CurrentUserId,
|
|
|
|
|
int Page,
|
|
|
|
|
int PageSize,
|
|
|
|
|
string SortBy,
|
2026-08-11 10:45:37 -03:00
|
|
|
string SortDir,
|
2026-09-24 20:51:44 -03:00
|
|
|
int? AccountId = null,
|
2026-09-25 10:56:47 -03:00
|
|
|
bool IncludeDateless = false,
|
|
|
|
|
IReadOnlyList<int>? Ids = null);
|
2026-07-08 14:58:59 -03:00
|
|
|
|
|
|
|
|
public record WorkOrderAdvancedSearchResult(
|
|
|
|
|
IReadOnlyList<WorkOrderBoardRawRow> Rows,
|
|
|
|
|
int TotalCount);
|
|
|
|
|
}
|