Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Recently watched screen #19

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -25,10 +29,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 @@ -93,6 +93,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 @@ -129,18 +141,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