| | | 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 the <c>ScopeAdmin</c> owners of a scope, with pagination and optional |
| | | 9 | | /// filtering (UC-07, FR-PE-04). <see cref="ScopeId" /> comes from the route; |
| | | 10 | | /// <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the |
| | | 11 | | /// authenticated caller and are never taken from the request. All three are |
| | | 12 | | /// <c>[JsonIgnore]</c>, which <c>ServerPopulatedBindingMetadataProvider</c> turns into |
| | | 13 | | /// "not bindable", so they never reach the public contract. |
| | | 14 | | /// </summary> |
| | | 15 | | public class ListScopeOwnersQuery : BaseQuery, IActorScoped |
| | | 16 | | { |
| | | 17 | | /// <summary>Public identifier of the scope whose owners are listed (assigned from the route).</summary> |
| | | 18 | | [JsonIgnore] |
| | 37 | 19 | | public Guid ScopeId { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary>Optional case-insensitive substring filter on the owner's name.</summary> |
| | 37 | 22 | | public string? Name { get; set; } |
| | | 23 | | |
| | | 24 | | /// <summary>Optional case-insensitive substring filter on the owner's email.</summary> |
| | 35 | 25 | | public string? Email { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary>When <c>true</c>, logically deleted owners are included in the results (FR-PE-08).</summary> |
| | 16 | 28 | | public bool IncludeDeleted { get; set; } |
| | | 29 | | |
| | | 30 | | [JsonIgnore] |
| | 50 | 31 | | public Guid ActingPersonId { get; set; } |
| | | 32 | | |
| | | 33 | | [JsonIgnore] |
| | 50 | 34 | | public int ActingRole { get; set; } |
| | | 35 | | } |