| | | 1 | | using ArturRios.Mediator.Command; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Command.Output; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// The person as it stands after a UC-23 promotion — the use case returns the updated person |
| | | 7 | | /// rather than the join rows it moved. Exposes only external-facing identifiers and has no field |
| | | 8 | | /// for <c>PasswordHash</c> or <c>Salt</c>. There is no <c>ScopeId</c> field: a promoted person no |
| | | 9 | | /// longer belongs to any scope as a <c>User</c>, so it would be <c>null</c> on every response — |
| | | 10 | | /// the scope they now own appears in <see cref="OwnedScopeIds" />. |
| | | 11 | | /// </summary> |
| | | 12 | | public class PromoteScopeUserCommandOutput : CommandOutput |
| | | 13 | | { |
| | | 14 | | /// <summary>Public identifier of the promoted person.</summary> |
| | 21 | 15 | | public Guid Id { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary>Full name, unchanged by the promotion.</summary> |
| | 28 | 18 | | public string Name { get; set; } = string.Empty; |
| | | 19 | | |
| | | 20 | | /// <summary>Email address, unchanged by the promotion.</summary> |
| | 28 | 21 | | public string Email { get; set; } = string.Empty; |
| | | 22 | | |
| | | 23 | | /// <summary>Role value after the promotion — always <c>ScopeAdmin</c> (see <c>Roles</c>).</summary> |
| | 17 | 24 | | public int Role { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary>Whether the email is verified; carried over untouched, as UC-23 names no re-verification.</summary> |
| | 15 | 27 | | public bool EmailVerified { get; set; } |
| | | 28 | | |
| | | 29 | | /// <summary>Public identifiers of the scopes the person owns, now including the promoting scope.</summary> |
| | 30 | 30 | | public IEnumerable<Guid> OwnedScopeIds { get; set; } = new List<Guid>(); |
| | | 31 | | |
| | | 32 | | /// <summary>Creation timestamp.</summary> |
| | 16 | 33 | | public DateTime CreatedAt { get; set; } |
| | | 34 | | |
| | | 35 | | /// <summary>Update timestamp, stamped by this operation.</summary> |
| | 16 | 36 | | public DateTime UpdatedAt { get; set; } |
| | | 37 | | } |