Do Pagination missing sortBy and sortDirection parameters
This commit is contained in:
@@ -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}'")
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user