Initial import

This commit is contained in:
Stein Helge Riise
2025-11-17 08:32:46 +01:00
commit ede31fbb7e
129 changed files with 9514 additions and 0 deletions
@@ -0,0 +1,33 @@
namespace MinAttest.Contracts.Attests;
public record AttestSummary(
Guid Id,
string Employer,
string Title,
DateOnly From,
DateOnly To,
bool Verified
);
public record AttestDetails(
Guid Id,
string Employer,
string Title,
DateOnly From,
DateOnly To,
string Summary,
bool Verified
);
public record CompleteUploadRequest(
Guid PersonId,
Guid? EmployerId,
string Title,
DateOnly From,
DateOnly To,
string? Summary,
string BlobPath,
string? BlobHash,
string? ContentBase64,
string? ContentType
);
@@ -0,0 +1,14 @@
namespace MinAttest.Contracts.Attests;
public record EmployerAttestUploadRequest(
Guid PersonId,
string Title,
DateOnly From,
DateOnly To,
string? Summary,
string BlobPath,
string? BlobHash,
string? ContentBase64,
string? ContentType
);
@@ -0,0 +1,13 @@
namespace MinAttest.Contracts.Attests;
public record PersonAttestUploadRequest(
string Title,
DateOnly From,
DateOnly To,
string? Summary,
string BlobPath,
string? BlobHash,
string? ContentBase64,
string? ContentType
);
@@ -0,0 +1,18 @@
namespace MinAttest.Contracts.Employers;
public record EmployerUserUpsertRequest(
string ExternalObjectId,
string Email,
string? Name,
string Role
);
public record EmployerUserResponse(
Guid Id,
Guid EmployerId,
string ExternalObjectId,
string Email,
string? Name,
string Role
);
@@ -0,0 +1,12 @@
namespace MinAttest.Contracts.Employers;
public record EmployerUpsertRequest(
string OrgNumber,
string Name
);
public record EmployerResponse(
Guid Id,
string OrgNumber,
string Name
);
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>
@@ -0,0 +1,17 @@
namespace MinAttest.Contracts.Persons;
using MinAttest.Contracts.Attests;
public record PersonUpsertRequest(
string NationalIdHash,
string? Email,
string? Phone
);
public record PersonResponse(
Guid Id,
string NationalIdHash,
string? Email,
string? Phone,
IReadOnlyList<AttestSummary> Attests
);
@@ -0,0 +1,5 @@
namespace MinAttest.Contracts.ShareLinks;
public record CreateShareLinkRequest(TimeSpan? ExpiresIn, bool? OneTime);
public record ShareLinkResponse(Guid ShareId, string Code, Uri Url, DateTimeOffset ExpiresAt, bool OneTime);