Do Pagination missing sortBy and sortDirection parameters

This commit is contained in:
voltsrage
2026-06-27 16:14:52 +08:00
parent 299e6e1453
commit 1c7e7fee7d
19 changed files with 2082 additions and 102 deletions
@@ -1,4 +1,4 @@
public enum BatchStatus { Uploaded, InEntry, PendingVerification, Rejected, Verified, AwaitingClinicalApproval, Approved, Promoted }
public enum BatchStatus { Uploaded, InEntry, PendingVerification, Rejected, Verified, AwaitingClinicalApproval, Approved, Promoted, Cancelled }
public static class BatchStatusExtensions
{
@@ -12,6 +12,7 @@ public static class BatchStatusExtensions
BatchStatus.AwaitingClinicalApproval => "AWAITING_CLINICAL_APPROVAL",
BatchStatus.Approved => "APPROVED",
BatchStatus.Promoted => "PROMOTED",
BatchStatus.Cancelled => "CANCELLED",
_ => throw new ArgumentOutOfRangeException(nameof(s))
};
@@ -25,6 +26,7 @@ public static class BatchStatusExtensions
"AWAITING_CLINICAL_APPROVAL" => BatchStatus.AwaitingClinicalApproval,
"APPROVED" => BatchStatus.Approved,
"PROMOTED" => BatchStatus.Promoted,
"CANCELLED" => BatchStatus.Cancelled,
_ => throw new ArgumentOutOfRangeException(nameof(v), $"Unknown batch status: '{v}'")
};
}
@@ -19,7 +19,8 @@ public enum DigitizationEventType
PromotionRetryFailed,
PromotionRetryExhausted,
PromotionFailed,
DocumentAccessed
DocumentAccessed,
Cancelled
}
public static class DigitizationEventTypeExtensions
@@ -46,6 +47,7 @@ public static class DigitizationEventTypeExtensions
DigitizationEventType.PromotionRetryExhausted => "promotion_retry_exhausted",
DigitizationEventType.PromotionFailed => "promotion_failed",
DigitizationEventType.DocumentAccessed => "document_accessed",
DigitizationEventType.Cancelled => "cancelled",
_ => throw new ArgumentOutOfRangeException(nameof(t))
};
@@ -71,6 +73,7 @@ public static class DigitizationEventTypeExtensions
"promotion_retry_exhausted" => DigitizationEventType.PromotionRetryExhausted,
"promotion_failed" => DigitizationEventType.PromotionFailed,
"document_accessed" => DigitizationEventType.DocumentAccessed,
"cancelled" => DigitizationEventType.Cancelled,
_ => throw new ArgumentOutOfRangeException(nameof(v), $"Unknown digitization event type: '{v}'")
};
}