| | | 1 | | using ArturRios.Mediator.Command; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Command.Output; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Result of <see cref="Input.AnonymiseExpiredDeletionsCommand" />: how many identities the run |
| | | 7 | | /// anonymised. Zero is an ordinary successful run. |
| | | 8 | | /// </summary> |
| | | 9 | | public class AnonymiseExpiredDeletionsCommandOutput : CommandOutput |
| | | 10 | | { |
| | | 11 | | /// <summary>Persons anonymised.</summary> |
| | 43 | 12 | | public int PersonsAnonymised { get; set; } |
| | | 13 | | |
| | | 14 | | /// <summary>Google Users anonymised.</summary> |
| | 37 | 15 | | public int GoogleUsersAnonymised { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary>Dependent rows removed alongside them — tokens and two-factor configurations.</summary> |
| | 28 | 18 | | public int DependentsRemoved { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// Public identifiers of the identities this run anonymised — the erasure ledger (NFR-25). |
| | | 22 | | /// </summary> |
| | | 23 | | /// <remarks> |
| | | 24 | | /// Logged by the scheduled service so the list survives outside the database, which is what |
| | | 25 | | /// makes a restore reconcilable: a backup taken before an erasure request reinstates the |
| | | 26 | | /// person with no trace of the request, and nothing inside the database then knows to act. |
| | | 27 | | /// These identifiers are safe to keep and to ship off the host precisely because the |
| | | 28 | | /// identities they name have been anonymised — a <c>PublicId</c> that resolves to nobody is |
| | | 29 | | /// not personal data. |
| | | 30 | | /// </remarks> |
| | 54 | 31 | | public IEnumerable<Guid> AnonymisedIds { get; set; } = []; |
| | | 32 | | |
| | | 33 | | /// <summary>Identities anonymised across both tables.</summary> |
| | 9 | 34 | | public int TotalAnonymised => PersonsAnonymised + GoogleUsersAnonymised; |
| | | 35 | | } |