mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add content_not_fetched state for items saved without content fetched
This commit is contained in:
parent
a2a7725047
commit
6f1ef075c6
6 changed files with 20 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ export enum LibraryItemState {
|
|||
Succeeded = 'SUCCEEDED',
|
||||
Deleted = 'DELETED',
|
||||
Archived = 'ARCHIVED',
|
||||
ContentNotFetched = 'CONTENT_NOT_FETCHED',
|
||||
}
|
||||
|
||||
export enum ContentReaderType {
|
||||
|
|
|
|||
|
|
@ -191,6 +191,7 @@ export type ArticleSavingRequestResult = ArticleSavingRequestError | ArticleSavi
|
|||
|
||||
export enum ArticleSavingRequestStatus {
|
||||
Archived = 'ARCHIVED',
|
||||
ContentNotFetched = 'CONTENT_NOT_FETCHED',
|
||||
Deleted = 'DELETED',
|
||||
Failed = 'FAILED',
|
||||
Processing = 'PROCESSING',
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ union ArticleSavingRequestResult = ArticleSavingRequestError | ArticleSavingRequ
|
|||
|
||||
enum ArticleSavingRequestStatus {
|
||||
ARCHIVED
|
||||
CONTENT_NOT_FETCHED
|
||||
DELETED
|
||||
FAILED
|
||||
PROCESSING
|
||||
|
|
|
|||
|
|
@ -1111,6 +1111,7 @@ const schema = gql`
|
|||
FAILED
|
||||
DELETED
|
||||
ARCHIVED
|
||||
CONTENT_NOT_FETCHED
|
||||
}
|
||||
|
||||
type ArticleSavingRequest {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
Loading…
Reference in a new issue