| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | using ArturRios.Heimdall.Shared.Security; |
| | | 3 | | using ArturRios.Mediator.Query; |
| | | 4 | | |
| | | 5 | | namespace ArturRios.Heimdall.Query.Input; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Request to list scopes with pagination and optional filtering (UC-02 read b, FR-SC-03). Page |
| | | 9 | | /// number and size are inherited from <see cref="BaseQuery" />. |
| | | 10 | | /// <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the |
| | | 11 | | /// authenticated caller and are never taken from the request; both are <c>[JsonIgnore]</c>, |
| | | 12 | | /// which <c>ServerPopulatedBindingMetadataProvider</c> turns into "not bindable", so they never |
| | | 13 | | /// reach the public contract. |
| | | 14 | | /// </summary> |
| | | 15 | | public class ListScopesQuery : BaseQuery, IActorScoped |
| | | 16 | | { |
| | | 17 | | /// <summary>Optional case-insensitive substring filter on the scope name.</summary> |
| | 39 | 18 | | public string? Name { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary>When <c>true</c>, logically deleted scopes are included in the results (FR-SC-07).</summary> |
| | 14 | 21 | | public bool IncludeDeleted { get; set; } |
| | | 22 | | |
| | | 23 | | [JsonIgnore] |
| | 23 | 24 | | public Guid ActingPersonId { get; set; } |
| | | 25 | | |
| | | 26 | | [JsonIgnore] |
| | 29 | 27 | | public int ActingRole { get; set; } |
| | | 28 | | } |