add content_not_fetched state for items saved without content fetched

This commit is contained in:
Hongbo Wu 2023-12-18 17:15:21 +08:00
parent a2a7725047
commit 6f1ef075c6
6 changed files with 20 additions and 0 deletions

View file

@ -24,6 +24,7 @@ export enum LibraryItemState {
Succeeded = 'SUCCEEDED',
Deleted = 'DELETED',
Archived = 'ARCHIVED',
ContentNotFetched = 'CONTENT_NOT_FETCHED',
}
export enum ContentReaderType {

View file

@ -191,6 +191,7 @@ export type ArticleSavingRequestResult = ArticleSavingRequestError | ArticleSavi
export enum ArticleSavingRequestStatus {
Archived = 'ARCHIVED',
ContentNotFetched = 'CONTENT_NOT_FETCHED',
Deleted = 'DELETED',
Failed = 'FAILED',
Processing = 'PROCESSING',

View file

@ -155,6 +155,7 @@ union ArticleSavingRequestResult = ArticleSavingRequestError | ArticleSavingRequ
enum ArticleSavingRequestStatus {
ARCHIVED
CONTENT_NOT_FETCHED
DELETED
FAILED
PROCESSING

View file

@ -1111,6 +1111,7 @@ const schema = gql`
FAILED
DELETED
ARCHIVED
CONTENT_NOT_FETCHED
}
type ArticleSavingRequest {

View file

@ -0,0 +1,9 @@
-- Type: DO
-- Name: add_content_not_fetched_to_library_item_state
-- Description: Add CONTENT_NOT_FETCHED to the library_item_state enum
BEGIN;
ALTER TYPE library_item_state ADD VALUE IF NOT EXISTS 'CONTENT_NOT_FETCHED';
COMMIT;

View file

@ -0,0 +1,7 @@
-- Type: UNDO
-- Name: add_content_not_fetched_to_library_item_state
-- Description: Add CONTENT_NOT_FETCHED to the library_item_state enum
BEGIN;
COMMIT;