First successfull build
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Models
|
||||
{
|
||||
public class AccessCodeModel
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,13 @@
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Models
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Hält den aktuellen Authentifizierungs-Zustand im Client.
|
||||
/// Wird vom ApiAuthStateProvider gesetzt und von Komponenten gelesen.
|
||||
/// </summary>
|
||||
public class AuthState
|
||||
{
|
||||
public class AuthState
|
||||
{
|
||||
}
|
||||
}
|
||||
public bool IsAuthenticated { get; set; }
|
||||
public string? Role { get; set; }
|
||||
public string? EnvelopeUuid { get; set; }
|
||||
public string? ReceiverEmail { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Client-seitiges DTO für Dokument-Daten.
|
||||
/// </summary>
|
||||
public record DocumentModel
|
||||
{
|
||||
public int Id { get; init; }
|
||||
public int EnvelopeId { get; init; }
|
||||
public DateTime AddedWhen { get; init; }
|
||||
public byte[]? ByteData { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Client-seitiges DTO für Umschlag-Daten.
|
||||
/// Muss nur die JSON-Properties matchen, die die API zurückgibt
|
||||
/// und die der Client tatsächlich braucht.
|
||||
///
|
||||
/// WARUM eigene DTOs statt die aus EnvelopeGenerator.Application?
|
||||
/// - Application hat Server-Abhängigkeiten (SqlClient, JwtBearer, EF Core)
|
||||
/// - Diese Pakete existieren nicht für browser-wasm → Build-Fehler
|
||||
/// - Der Client braucht nur eine Teilmenge der Felder
|
||||
/// - Eigene DTOs machen den Client unabhängig vom Server
|
||||
/// </summary>
|
||||
public record EnvelopeModel
|
||||
{
|
||||
public int Id { get; init; }
|
||||
public string Uuid { get; init; } = string.Empty;
|
||||
public string Title { get; init; } = string.Empty;
|
||||
public string Message { get; init; } = string.Empty;
|
||||
public bool UseAccessCode { get; init; }
|
||||
public bool TFAEnabled { get; init; }
|
||||
public bool ReadOnly { get; init; }
|
||||
public string Language { get; init; } = "de-DE";
|
||||
public DateTime AddedWhen { get; init; }
|
||||
public UserModel? User { get; init; }
|
||||
public IEnumerable<DocumentModel>? Documents { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Client-seitiges DTO für die Envelope-Receiver-Zuordnung.
|
||||
/// </summary>
|
||||
public record EnvelopeReceiverModel
|
||||
{
|
||||
public EnvelopeModel? Envelope { get; init; }
|
||||
public ReceiverModel? Receiver { get; init; }
|
||||
public int EnvelopeId { get; init; }
|
||||
public int ReceiverId { get; init; }
|
||||
public int Sequence { get; init; }
|
||||
public string? Name { get; init; }
|
||||
public bool HasPhoneNumber { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Client-seitiges DTO für Empfänger-Daten.
|
||||
/// </summary>
|
||||
public record ReceiverModel
|
||||
{
|
||||
public int Id { get; init; }
|
||||
public string EmailAddress { get; init; } = string.Empty;
|
||||
public string Signature { get; init; } = string.Empty;
|
||||
public DateTime AddedWhen { get; init; }
|
||||
public DateTime? TfaRegDeadline { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Client-seitiges DTO für Benutzer-Daten (Absender).
|
||||
/// </summary>
|
||||
public record UserModel
|
||||
{
|
||||
public string? Email { get; init; }
|
||||
public string? DisplayName { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user