Sube carpetas API, API.Tests, Application y Domain del Backend

This commit is contained in:
FrancoRu
2026-09-18 13:35:59 -03:00
parent bbb09554bb
commit 2eb4eeef03
572 changed files with 56405 additions and 0 deletions
@@ -0,0 +1,27 @@
using Application.DTOs.Abstract.Request;
using Application.Utils.Constants.Pagination;
using Domain.Enums;
namespace Application.DTOs.AuditLogs.Request;
/// <summary>
/// Filtering and pagination for the audit-trail listing, defaulting to newest-first.
/// </summary>
public class AuditLogFilteredRequest : PaginatedFilterRequest
{
public AuditLogFilteredRequest()
{
Order = SortOrder.Descending;
}
/// <summary>
/// Optional filter by the actor who performed the action.
/// </summary>
public string? Actor { get; set; }
/// <summary>
/// Optional filter by the action type.
/// </summary>
public AuditAction? Action { get; set; }
}
@@ -0,0 +1,46 @@
using Application.DTOs.Abstract.Response;
using System;
namespace Application.DTOs.AuditLogs.Response;
/// <summary>
/// Audit-trail entry as returned by the listing endpoint.
/// </summary>
public class AuditLogResponse : BaseEntityResponse
{
/// <summary>
/// The sensitive action that was performed, as the enum name.
/// </summary>
public required string Action { get; set; }
/// <summary>
/// Who performed the action, as an email address or "System".
/// </summary>
public required string Actor { get; set; }
/// <summary>
/// The kind of entity targeted, when applicable.
/// </summary>
public string? TargetType { get; set; }
/// <summary>
/// Identifier of the targeted entity, when applicable.
/// </summary>
public string? TargetId { get; set; }
/// <summary>
/// Null when there is no single named target or the entry predates this field.
/// </summary>
public string? TargetName { get; set; }
/// <summary>
/// Free-form human-readable context.
/// </summary>
public string? Detail { get; set; }
/// <summary>
/// When the action happened, in UTC.
/// </summary>
public required DateTime Timestamp { get; set; }
}