- 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
28 lines
768 B
C#
28 lines
768 B
C#
using EnvelopeGenerator.Application.Common.Query;
|
|
using EnvelopeGenerator.Domain.Constants;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace EnvelopeGenerator.Application.Histories.Queries;
|
|
|
|
//TODO: Add sender query
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public record HistoryQueryBase
|
|
{
|
|
/// <summary>
|
|
/// Die eindeutige Kennung des Umschlags.
|
|
/// </summary>
|
|
[Obsolete("Use Envelope property")]
|
|
public int? EnvelopeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Der Include des Umschlags, der abgefragt werden soll. Kann optional angegeben werden, um die Ergebnisse zu filtern.
|
|
/// </summary>
|
|
public EnvelopeStatus? Status { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public EnvelopeQueryBase? Envelope { get; set; }
|
|
} |