mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
57 lines
849 B
Python
57 lines
849 B
Python
SEARCH_GQL = """
|
|
query (
|
|
$search: SearchInput
|
|
$limit: Int
|
|
$page: Int
|
|
$translationType: VaildTranslationTypeEnumType
|
|
$countryOrigin: VaildCountryOriginEnumType
|
|
) {
|
|
shows(
|
|
search: $search
|
|
limit: $limit
|
|
page: $page
|
|
translationType: $translationType
|
|
countryOrigin: $countryOrigin
|
|
) {
|
|
pageInfo {
|
|
total
|
|
}
|
|
edges {
|
|
_id
|
|
name
|
|
availableEpisodes
|
|
__typename
|
|
}
|
|
}
|
|
}
|
|
"""
|
|
|
|
|
|
EPISODES_GQL = """\
|
|
query (
|
|
$showId: String!
|
|
$translationType: VaildTranslationTypeEnumType!
|
|
$episodeString: String!
|
|
) {
|
|
episode(
|
|
showId: $showId
|
|
translationType: $translationType
|
|
episodeString: $episodeString
|
|
) {
|
|
episodeString
|
|
sourceUrls
|
|
notes
|
|
}
|
|
}
|
|
"""
|
|
|
|
SHOW_GQL = """
|
|
query ($showId: String!) {
|
|
show(_id: $showId) {
|
|
_id
|
|
name
|
|
availableEpisodesDetail
|
|
}
|
|
}
|
|
"""
|