[FA-misc] Saga seems to work, fixed a UserNovelDataService bug
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface INovelUpdateRequested
|
||||
{
|
||||
string NovelUrl { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user