feat(history): enhance ReadHistoryQuery to support Envelope object and UUID

- Replace nullable `OnlyLast` with non-nullable default `true`
- Support filtering by Envelope object (Id or Uuid) in addition to deprecated EnvelopeId
- Throw `BadRequestException` if no valid Envelope reference is provided
- Preserve status filtering and ordering for latest history entries
This commit is contained in:
2025-11-14 13:24:02 +01:00
parent e5a061d5b5
commit 00c7fe5316
3 changed files with 17 additions and 5 deletions

View File

@@ -24,5 +24,5 @@ public record HistoryQueryBase
/// <summary>
///
/// </summary>
public EnvelopeQueryBase? Envelope { get; set; }
public EnvelopeQueryBase Envelope { get; set; } = new EnvelopeQueryBase();
}