replace fetch_content with fetch_content_type as a enum: ALWAYS, NEVER, WHEN_EMPTY

This commit is contained in:
Hongbo Wu
2024-02-23 14:19:22 +08:00
parent 08e4bed146
commit f4b6e470f2
12 changed files with 152 additions and 56 deletions

View File

@ -758,6 +758,12 @@ type FetchContentSuccess {
success: Boolean!
}
enum FetchContentType {
ALWAYS
NEVER
WHEN_EMPTY
}
type Filter {
category: String
createdAt: Date!
@ -2216,6 +2222,7 @@ enum SubscribeErrorCode {
input SubscribeInput {
autoAddToLibrary: Boolean
fetchContent: Boolean
fetchContentType: FetchContentType
folder: String
isPrivate: Boolean
subscriptionType: SubscriptionType
@ -2235,6 +2242,7 @@ type Subscription {
description: String
failedAt: Date
fetchContent: Boolean!
fetchContentType: FetchContentType!
folder: String!
icon: String
id: ID!
@ -2581,6 +2589,7 @@ input UpdateSubscriptionInput {
description: String
failedAt: Date
fetchContent: Boolean
fetchContentType: FetchContentType
folder: String
id: ID!
isPrivate: Boolean