Skip to content

Commit

Permalink
Merge branch 'master' into airing-schedule-screen
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangvu12 authored Nov 21, 2023
2 parents 8a33c19 + 1d5d489 commit 677e213
Show file tree
Hide file tree
Showing 10 changed files with 1,267 additions and 870 deletions.
32 changes: 16 additions & 16 deletions src/gql/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
* Therefore it is highly recommended to use the babel or swc plugin for production.
*/
const documents = {
'\n query WatchedList($id_in: [Int], $perPage: Int = 10, $page: Int = 1) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n total\n perPage\n currentPage\n lastPage\n hasNextPage\n }\n\n media(id_in: $id_in) {\n id\n ...WatchCard\n ...CardMedia\n }\n }\n }\n':
types.WatchedListDocument,
'\n query AuthWatchedList(\n $userId: Int\n $userName: String\n $status_in: [MediaListStatus]\n $type: MediaType\n $sort: [MediaListSort]\n $perPage: Int = 10\n $page: Int = 1\n ) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n total\n perPage\n currentPage\n lastPage\n hasNextPage\n }\n\n mediaList(\n userId: $userId\n userName: $userName\n status_in: $status_in\n type: $type\n sort: $sort\n ) {\n progress\n media {\n id\n ...WatchCard\n ...CardMedia\n }\n }\n }\n }\n':
types.AuthWatchedListDocument,
'\n query Viewer {\n Viewer {\n name\n avatar {\n medium\n }\n id\n }\n }\n':
types.ViewerDocument,
'\n mutation SaveMediaListEntry(\n $id: Int\n $mediaId: Int\n $status: MediaListStatus\n $score: Float\n $scoreRaw: Int\n $progress: Int\n $progressVolumes: Int\n $repeat: Int\n $priority: Int\n $private: Boolean\n $notes: String\n $hiddenFromStatusLists: Boolean\n $customLists: [String]\n $advancedScores: [Float]\n $startedAt: FuzzyDateInput\n $completedAt: FuzzyDateInput\n ) {\n SaveMediaListEntry(\n id: $id\n mediaId: $mediaId\n status: $status\n score: $score\n scoreRaw: $scoreRaw\n progress: $progress\n progressVolumes: $progressVolumes\n repeat: $repeat\n priority: $priority\n private: $private\n notes: $notes\n hiddenFromStatusLists: $hiddenFromStatusLists\n customLists: $customLists\n advancedScores: $advancedScores\n startedAt: $startedAt\n completedAt: $completedAt\n ) {\n progress\n score(format: POINT_10_DECIMAL)\n status\n }\n }\n':
Expand All @@ -27,10 +31,6 @@ const documents = {
types.UpcomingNextSeasonDocument,
'\n fragment WatchCard on Media {\n id\n title {\n userPreferred\n }\n coverImage {\n large\n }\n bannerImage\n ...MediaUnitStatsMedia\n }\n':
types.WatchCardFragmentDoc,
'\n query WatchedList($id_in: [Int]) {\n Page(page: 1, perPage: 10) {\n media(id_in: $id_in) {\n id\n ...WatchCard\n }\n }\n }\n':
types.WatchedListDocument,
'\n query AuthWatchedList(\n $userId: Int\n $userName: String\n $status_in: [MediaListStatus]\n $type: MediaType\n $sort: [MediaListSort]\n ) {\n Page(page: 1, perPage: 10) {\n mediaList(\n userId: $userId\n userName: $userName\n status_in: $status_in\n type: $type\n sort: $sort\n ) {\n progress\n media {\n id\n ...WatchCard\n }\n }\n }\n }\n':
types.AuthWatchedListDocument,
'\n fragment DetailsHeaderMedia on Media {\n title {\n userPreferred\n }\n bannerImage\n genres\n favourites\n averageScore\n seasonYear\n nextAiringEpisode {\n airingAt\n episode\n }\n coverImage {\n large\n }\n }\n':
types.DetailsHeaderMediaFragmentDoc,
'\n query InfoDetailsScreen($id: Int) {\n Media(id: $id) {\n title {\n userPreferred\n }\n ...DetailsHeaderMedia\n ...InfoScreenMedia\n ...EpisodeContainer\n }\n }\n':
Expand Down Expand Up @@ -95,6 +95,18 @@ const documents = {
*/
export function graphql(source: string): unknown;

/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: '\n query WatchedList($id_in: [Int], $perPage: Int = 10, $page: Int = 1) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n total\n perPage\n currentPage\n lastPage\n hasNextPage\n }\n\n media(id_in: $id_in) {\n id\n ...WatchCard\n ...CardMedia\n }\n }\n }\n'
): (typeof documents)['\n query WatchedList($id_in: [Int], $perPage: Int = 10, $page: Int = 1) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n total\n perPage\n currentPage\n lastPage\n hasNextPage\n }\n\n media(id_in: $id_in) {\n id\n ...WatchCard\n ...CardMedia\n }\n }\n }\n'];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: '\n query AuthWatchedList(\n $userId: Int\n $userName: String\n $status_in: [MediaListStatus]\n $type: MediaType\n $sort: [MediaListSort]\n $perPage: Int = 10\n $page: Int = 1\n ) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n total\n perPage\n currentPage\n lastPage\n hasNextPage\n }\n\n mediaList(\n userId: $userId\n userName: $userName\n status_in: $status_in\n type: $type\n sort: $sort\n ) {\n progress\n media {\n id\n ...WatchCard\n ...CardMedia\n }\n }\n }\n }\n'
): (typeof documents)['\n query AuthWatchedList(\n $userId: Int\n $userName: String\n $status_in: [MediaListStatus]\n $type: MediaType\n $sort: [MediaListSort]\n $perPage: Int = 10\n $page: Int = 1\n ) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n total\n perPage\n currentPage\n lastPage\n hasNextPage\n }\n\n mediaList(\n userId: $userId\n userName: $userName\n status_in: $status_in\n type: $type\n sort: $sort\n ) {\n progress\n media {\n id\n ...WatchCard\n ...CardMedia\n }\n }\n }\n }\n'];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
Expand Down Expand Up @@ -137,18 +149,6 @@ export function graphql(
export function graphql(
source: '\n fragment WatchCard on Media {\n id\n title {\n userPreferred\n }\n coverImage {\n large\n }\n bannerImage\n ...MediaUnitStatsMedia\n }\n'
): (typeof documents)['\n fragment WatchCard on Media {\n id\n title {\n userPreferred\n }\n coverImage {\n large\n }\n bannerImage\n ...MediaUnitStatsMedia\n }\n'];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: '\n query WatchedList($id_in: [Int]) {\n Page(page: 1, perPage: 10) {\n media(id_in: $id_in) {\n id\n ...WatchCard\n }\n }\n }\n'
): (typeof documents)['\n query WatchedList($id_in: [Int]) {\n Page(page: 1, perPage: 10) {\n media(id_in: $id_in) {\n id\n ...WatchCard\n }\n }\n }\n'];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: '\n query AuthWatchedList(\n $userId: Int\n $userName: String\n $status_in: [MediaListStatus]\n $type: MediaType\n $sort: [MediaListSort]\n ) {\n Page(page: 1, perPage: 10) {\n mediaList(\n userId: $userId\n userName: $userName\n status_in: $status_in\n type: $type\n sort: $sort\n ) {\n progress\n media {\n id\n ...WatchCard\n }\n }\n }\n }\n'
): (typeof documents)['\n query AuthWatchedList(\n $userId: Int\n $userName: String\n $status_in: [MediaListStatus]\n $type: MediaType\n $sort: [MediaListSort]\n ) {\n Page(page: 1, perPage: 10) {\n mediaList(\n userId: $userId\n userName: $userName\n status_in: $status_in\n type: $type\n sort: $sort\n ) {\n progress\n media {\n id\n ...WatchCard\n }\n }\n }\n }\n'];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
Expand Down
Loading

0 comments on commit 677e213

Please sign in to comment.