[FA-misc] Saga seems to work, fixed a UserNovelDataService bug
All checks were successful
CI / build-backend (pull_request) Successful in 2m26s
CI / build-frontend (pull_request) Successful in 1m7s

This commit is contained in:
gamer147
2026-01-28 12:11:06 -05:00
parent 579e05b853
commit ec967770d3
34 changed files with 1341 additions and 97 deletions

View File

@@ -0,0 +1,10 @@
namespace FictionArchive.Service.Shared.Contracts.Events;
public interface IChapterPullCompleted
{
Guid ImportId { get; }
uint ChapterId { get; }
int ImagesQueued { get; }
}
public record ChapterPullCompleted(Guid ImportId, uint ChapterId, int ImagesQueued) : IChapterPullCompleted;

View File

@@ -2,7 +2,10 @@ namespace FictionArchive.Service.Shared.Contracts.Events;
public interface IChapterPullRequested
{
Guid ImportId { get; }
uint NovelId { get; }
uint VolumeId { get; }
uint ChapterOrder { get; }
}
public record ChapterPullRequested(Guid ImportId, uint NovelId, uint VolumeId, uint ChapterOrder) : IChapterPullRequested;

View File

@@ -2,7 +2,10 @@ namespace FictionArchive.Service.Shared.Contracts.Events;
public interface IFileUploadRequestCreated
{
Guid? ImportId { get; }
Guid RequestId { get; }
string FilePath { get; }
byte[] FileData { get; }
}
public record FileUploadRequestCreated(Guid? ImportId, Guid RequestId, string FilePath, byte[] FileData) : IFileUploadRequestCreated;

View File

@@ -4,8 +4,11 @@ namespace FictionArchive.Service.Shared.Contracts.Events;
public interface IFileUploadRequestStatusUpdate
{
Guid? ImportId { get; }
Guid RequestId { get; }
RequestStatus Status { get; }
string? FileAccessUrl { get; }
string? ErrorMessage { get; }
}
public record FileUploadRequestStatusUpdate(Guid? ImportId, Guid RequestId, RequestStatus Status, string? FileAccessUrl, string? ErrorMessage) : IFileUploadRequestStatusUpdate;

View File

@@ -0,0 +1,11 @@
namespace FictionArchive.Service.Shared.Contracts.Events;
public interface INovelImportCompleted
{
Guid ImportId { get; }
uint? NovelId { get; }
bool Success { get; }
string? ErrorMessage { get; }
}
public record NovelImportCompleted(Guid ImportId, uint? NovelId, bool Success, string? ErrorMessage) : INovelImportCompleted;

View File

@@ -0,0 +1,9 @@
namespace FictionArchive.Service.Shared.Contracts.Events;
public interface INovelImportRequested
{
Guid ImportId { get; }
string NovelUrl { get; }
}
public record NovelImportRequested(Guid ImportId, string NovelUrl) : INovelImportRequested;

View File

@@ -0,0 +1,10 @@
namespace FictionArchive.Service.Shared.Contracts.Events;
public interface INovelMetadataImported
{
Guid ImportId { get; }
uint NovelId { get; }
int ChaptersPendingPull { get; }
}
public record NovelMetadataImported(Guid ImportId, uint NovelId, int ChaptersPendingPull) : INovelMetadataImported;

View File

@@ -1,6 +0,0 @@
namespace FictionArchive.Service.Shared.Contracts.Events;
public interface INovelUpdateRequested
{
string NovelUrl { get; }
}