Use new gql sort options
This commit is contained in:
@@ -3218,8 +3218,7 @@ export type GetCategoriesBaseQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<CategoryOrderBy>;
|
order?: InputMaybe<Array<CategoryOrderInput> | CategoryOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3233,8 +3232,7 @@ export type GetCategoriesLibraryQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<CategoryOrderBy>;
|
order?: InputMaybe<Array<CategoryOrderInput> | CategoryOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3248,8 +3246,7 @@ export type GetCategoriesSettingsQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<CategoryOrderBy>;
|
order?: InputMaybe<Array<CategoryOrderInput> | CategoryOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3270,8 +3267,7 @@ export type GetChaptersReaderQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<ChapterOrderBy>;
|
order?: InputMaybe<Array<ChapterOrderInput> | ChapterOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3285,8 +3281,7 @@ export type GetChaptersMangaQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<ChapterOrderBy>;
|
order?: InputMaybe<Array<ChapterOrderInput> | ChapterOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3300,8 +3295,7 @@ export type GetChaptersUpdatesQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<ChapterOrderBy>;
|
order?: InputMaybe<Array<ChapterOrderInput> | ChapterOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3330,8 +3324,7 @@ export type GetExtensionsQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<ExtensionOrderBy>;
|
order?: InputMaybe<Array<ExtensionOrderInput> | ExtensionOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3352,8 +3345,7 @@ export type GetGlobalMetadatasQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<MetaOrderBy>;
|
order?: InputMaybe<Array<MetaOrderInput> | MetaOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3405,8 +3397,7 @@ export type GetMangasBaseQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<MangaOrderBy>;
|
order?: InputMaybe<Array<MangaOrderInput> | MangaOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3420,8 +3411,7 @@ export type GetMangasLibraryQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<MangaOrderBy>;
|
order?: InputMaybe<Array<MangaOrderInput> | MangaOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@@ -3435,8 +3425,7 @@ export type GetMangasDuplicatesQueryVariables = Exact<{
|
|||||||
first?: InputMaybe<Scalars['Int']['input']>;
|
first?: InputMaybe<Scalars['Int']['input']>;
|
||||||
last?: InputMaybe<Scalars['Int']['input']>;
|
last?: InputMaybe<Scalars['Int']['input']>;
|
||||||
offset?: InputMaybe<Scalars['Int']['input']>;
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
||||||
orderBy?: InputMaybe<MangaOrderBy>;
|
order?: InputMaybe<Array<MangaOrderInput> | MangaOrderInput>;
|
||||||
orderByType?: InputMaybe<SortOrder>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,7 @@ export const GET_CATEGORIES_BASE = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: CategoryOrderBy
|
$order: [CategoryOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
categories(
|
categories(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -38,8 +37,7 @@ export const GET_CATEGORIES_BASE = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...CATEGORY_BASE_FIELDS
|
...CATEGORY_BASE_FIELDS
|
||||||
@@ -64,8 +62,7 @@ export const GET_CATEGORIES_LIBRARY = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: CategoryOrderBy
|
$order: [CategoryOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
categories(
|
categories(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -75,8 +72,7 @@ export const GET_CATEGORIES_LIBRARY = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...CATEGORY_LIBRARY_FIELDS
|
...CATEGORY_LIBRARY_FIELDS
|
||||||
@@ -101,8 +97,7 @@ export const GET_CATEGORIES_SETTINGS = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: CategoryOrderBy
|
$order: [CategoryOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
categories(
|
categories(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -112,8 +107,7 @@ export const GET_CATEGORIES_SETTINGS = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...CATEGORY_SETTING_FIELDS
|
...CATEGORY_SETTING_FIELDS
|
||||||
|
|||||||
@@ -28,8 +28,7 @@ export const GET_CHAPTERS_READER = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: ChapterOrderBy
|
$order: [ChapterOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
chapters(
|
chapters(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -39,8 +38,7 @@ export const GET_CHAPTERS_READER = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...CHAPTER_READER_FIELDS
|
...CHAPTER_READER_FIELDS
|
||||||
@@ -66,8 +64,7 @@ export const GET_CHAPTERS_MANGA = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: ChapterOrderBy
|
$order: [ChapterOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
chapters(
|
chapters(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -77,8 +74,7 @@ export const GET_CHAPTERS_MANGA = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...CHAPTER_LIST_FIELDS
|
...CHAPTER_LIST_FIELDS
|
||||||
@@ -104,8 +100,7 @@ export const GET_CHAPTERS_UPDATES = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: ChapterOrderBy
|
$order: [ChapterOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
chapters(
|
chapters(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -115,8 +110,7 @@ export const GET_CHAPTERS_UPDATES = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...CHAPTER_UPDATE_LIST_FIELDS
|
...CHAPTER_UPDATE_LIST_FIELDS
|
||||||
|
|||||||
@@ -23,8 +23,7 @@ export const GET_EXTENSIONS = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: ExtensionOrderBy
|
$order: [ExtensionOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
extensions(
|
extensions(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -34,8 +33,7 @@ export const GET_EXTENSIONS = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...EXTENSION_LIST_FIELDS
|
...EXTENSION_LIST_FIELDS
|
||||||
|
|||||||
@@ -29,8 +29,7 @@ export const GET_GLOBAL_METADATAS = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: MetaOrderBy
|
$order: [MetaOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
metas(
|
metas(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -40,8 +39,7 @@ export const GET_GLOBAL_METADATAS = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...GLOBAL_METADATA
|
...GLOBAL_METADATA
|
||||||
|
|||||||
@@ -127,8 +127,7 @@ export const GET_MANGAS_BASE = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: MangaOrderBy
|
$order: [MangaOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
mangas(
|
mangas(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -138,8 +137,7 @@ export const GET_MANGAS_BASE = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...MANGA_BASE_FIELDS
|
...MANGA_BASE_FIELDS
|
||||||
@@ -165,8 +163,7 @@ export const GET_MANGAS_LIBRARY = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: MangaOrderBy
|
$order: [MangaOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
mangas(
|
mangas(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -176,8 +173,7 @@ export const GET_MANGAS_LIBRARY = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...MANGA_LIBRARY_FIELDS
|
...MANGA_LIBRARY_FIELDS
|
||||||
@@ -203,8 +199,7 @@ export const GET_MANGAS_DUPLICATES = gql`
|
|||||||
$first: Int
|
$first: Int
|
||||||
$last: Int
|
$last: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
$orderBy: MangaOrderBy
|
$order: [MangaOrderInput!]
|
||||||
$orderByType: SortOrder
|
|
||||||
) {
|
) {
|
||||||
mangas(
|
mangas(
|
||||||
after: $after
|
after: $after
|
||||||
@@ -214,8 +209,7 @@ export const GET_MANGAS_DUPLICATES = gql`
|
|||||||
first: $first
|
first: $first
|
||||||
last: $last
|
last: $last
|
||||||
offset: $offset
|
offset: $offset
|
||||||
orderBy: $orderBy
|
order: $order
|
||||||
orderByType: $orderByType
|
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...MANGA_LIBRARY_DUPLICATE_SCREEN_FIELDS
|
...MANGA_LIBRARY_DUPLICATE_SCREEN_FIELDS
|
||||||
|
|||||||
@@ -31,12 +31,13 @@ import { IRestClient, RestClient } from '@/lib/requests/client/RestClient.ts';
|
|||||||
import { GraphQLClient } from '@/lib/requests/client/GraphQLClient.ts';
|
import { GraphQLClient } from '@/lib/requests/client/GraphQLClient.ts';
|
||||||
import {
|
import {
|
||||||
CategoryOrderBy,
|
CategoryOrderBy,
|
||||||
|
ChapterConditionInput,
|
||||||
ChapterOrderBy,
|
ChapterOrderBy,
|
||||||
CheckForServerUpdatesQuery,
|
CheckForServerUpdatesQuery,
|
||||||
CheckForServerUpdatesQueryVariables,
|
CheckForServerUpdatesQueryVariables,
|
||||||
ClearCachedImagesInput,
|
|
||||||
CheckForWebuiUpdateQuery,
|
CheckForWebuiUpdateQuery,
|
||||||
CheckForWebuiUpdateQueryVariables,
|
CheckForWebuiUpdateQueryVariables,
|
||||||
|
ClearCachedImagesInput,
|
||||||
ClearDownloaderMutation,
|
ClearDownloaderMutation,
|
||||||
ClearDownloaderMutationVariables,
|
ClearDownloaderMutationVariables,
|
||||||
ClearServerCacheMutation,
|
ClearServerCacheMutation,
|
||||||
@@ -65,10 +66,18 @@ import {
|
|||||||
FilterChangeInput,
|
FilterChangeInput,
|
||||||
GetAboutQuery,
|
GetAboutQuery,
|
||||||
GetAboutQueryVariables,
|
GetAboutQueryVariables,
|
||||||
|
GetCategoriesSettingsQuery,
|
||||||
|
GetCategoriesSettingsQueryVariables,
|
||||||
GetCategoryMangasQuery,
|
GetCategoryMangasQuery,
|
||||||
GetCategoryMangasQueryVariables,
|
GetCategoryMangasQueryVariables,
|
||||||
GetChapterPagesFetchMutation,
|
GetChapterPagesFetchMutation,
|
||||||
GetChapterPagesFetchMutationVariables,
|
GetChapterPagesFetchMutationVariables,
|
||||||
|
GetChaptersMangaQuery,
|
||||||
|
GetChaptersMangaQueryVariables,
|
||||||
|
GetChaptersUpdatesQuery,
|
||||||
|
GetChaptersUpdatesQueryVariables,
|
||||||
|
GetDownloadStatusQuery,
|
||||||
|
GetDownloadStatusQueryVariables,
|
||||||
GetExtensionsFetchMutation,
|
GetExtensionsFetchMutation,
|
||||||
GetExtensionsFetchMutationVariables,
|
GetExtensionsFetchMutationVariables,
|
||||||
GetExtensionsQuery,
|
GetExtensionsQuery,
|
||||||
@@ -81,17 +90,36 @@ import {
|
|||||||
GetMangaChaptersFetchMutationVariables,
|
GetMangaChaptersFetchMutationVariables,
|
||||||
GetMangaFetchMutation,
|
GetMangaFetchMutation,
|
||||||
GetMangaFetchMutationVariables,
|
GetMangaFetchMutationVariables,
|
||||||
|
GetMangasChapterIdsWithStateQuery,
|
||||||
|
GetMangasChapterIdsWithStateQueryVariables,
|
||||||
|
GetMangasLibraryQuery,
|
||||||
|
GetMangasLibraryQueryVariables,
|
||||||
|
GetMangaToMigrateQuery,
|
||||||
|
GetMangaToMigrateQueryVariables,
|
||||||
|
GetMangaToMigrateToFetchMutation,
|
||||||
|
GetMangaToMigrateToFetchMutationVariables,
|
||||||
|
GetMigratableSourceMangasQuery,
|
||||||
|
GetMigratableSourceMangasQueryVariables,
|
||||||
|
GetMigratableSourcesQuery,
|
||||||
|
GetMigratableSourcesQueryVariables,
|
||||||
GetRestoreStatusQuery,
|
GetRestoreStatusQuery,
|
||||||
GetRestoreStatusQueryVariables,
|
GetRestoreStatusQueryVariables,
|
||||||
GetServerSettingsQuery,
|
GetServerSettingsQuery,
|
||||||
|
GetServerSettingsQueryVariables,
|
||||||
GetSourceMangasFetchMutation,
|
GetSourceMangasFetchMutation,
|
||||||
GetSourceMangasFetchMutationVariables,
|
GetSourceMangasFetchMutationVariables,
|
||||||
|
GetSourcesListQuery,
|
||||||
|
GetSourcesListQueryVariables,
|
||||||
GetUpdateStatusQuery,
|
GetUpdateStatusQuery,
|
||||||
GetUpdateStatusQueryVariables,
|
GetUpdateStatusQueryVariables,
|
||||||
|
GetWebuiUpdateStatusQuery,
|
||||||
|
GetWebuiUpdateStatusQueryVariables,
|
||||||
InstallExternalExtensionMutation,
|
InstallExternalExtensionMutation,
|
||||||
InstallExternalExtensionMutationVariables,
|
InstallExternalExtensionMutationVariables,
|
||||||
ReorderChapterDownloadMutation,
|
ReorderChapterDownloadMutation,
|
||||||
ReorderChapterDownloadMutationVariables,
|
ReorderChapterDownloadMutationVariables,
|
||||||
|
ResetWebuiUpdateStatusMutation,
|
||||||
|
ResetWebuiUpdateStatusMutationVariables,
|
||||||
RestoreBackupMutation,
|
RestoreBackupMutation,
|
||||||
RestoreBackupMutationVariables,
|
RestoreBackupMutationVariables,
|
||||||
SetCategoryMetadataMutation,
|
SetCategoryMetadataMutation,
|
||||||
@@ -102,6 +130,8 @@ import {
|
|||||||
SetGlobalMetadataMutationVariables,
|
SetGlobalMetadataMutationVariables,
|
||||||
SetMangaMetadataMutation,
|
SetMangaMetadataMutation,
|
||||||
SetMangaMetadataMutationVariables,
|
SetMangaMetadataMutationVariables,
|
||||||
|
SetSourceMetadataMutation,
|
||||||
|
SetSourceMetadataMutationVariables,
|
||||||
SortOrder,
|
SortOrder,
|
||||||
SourcePreferenceChangeInput,
|
SourcePreferenceChangeInput,
|
||||||
StartDownloaderMutation,
|
StartDownloaderMutation,
|
||||||
@@ -110,6 +140,22 @@ import {
|
|||||||
StopDownloaderMutationVariables,
|
StopDownloaderMutationVariables,
|
||||||
StopUpdaterMutation,
|
StopUpdaterMutation,
|
||||||
StopUpdaterMutationVariables,
|
StopUpdaterMutationVariables,
|
||||||
|
TrackerBindMutation,
|
||||||
|
TrackerBindMutationVariables,
|
||||||
|
TrackerFetchBindMutation,
|
||||||
|
TrackerFetchBindMutationVariables,
|
||||||
|
TrackerLoginCredentialsMutation,
|
||||||
|
TrackerLoginCredentialsMutationVariables,
|
||||||
|
TrackerLoginOauthMutation,
|
||||||
|
TrackerLoginOauthMutationVariables,
|
||||||
|
TrackerLogoutMutation,
|
||||||
|
TrackerLogoutMutationVariables,
|
||||||
|
TrackerSearchQuery,
|
||||||
|
TrackerSearchQueryVariables,
|
||||||
|
TrackerUnbindMutation,
|
||||||
|
TrackerUnbindMutationVariables,
|
||||||
|
TrackerUpdateBindMutation,
|
||||||
|
TrackerUpdateBindMutationVariables,
|
||||||
UpdateCategoryMangasMutation,
|
UpdateCategoryMangasMutation,
|
||||||
UpdateCategoryMangasMutationVariables,
|
UpdateCategoryMangasMutationVariables,
|
||||||
UpdateCategoryMutation,
|
UpdateCategoryMutation,
|
||||||
@@ -129,72 +175,26 @@ import {
|
|||||||
UpdateLibraryMangasMutationVariables,
|
UpdateLibraryMangasMutationVariables,
|
||||||
UpdateMangaCategoriesMutation,
|
UpdateMangaCategoriesMutation,
|
||||||
UpdateMangaCategoriesMutationVariables,
|
UpdateMangaCategoriesMutationVariables,
|
||||||
|
UpdateMangaCategoriesPatchInput,
|
||||||
UpdateMangaMutation,
|
UpdateMangaMutation,
|
||||||
UpdateMangaMutationVariables,
|
UpdateMangaMutationVariables,
|
||||||
UpdateMangaPatchInput,
|
UpdateMangaPatchInput,
|
||||||
|
UpdateMangasCategoriesMutation,
|
||||||
|
UpdateMangasCategoriesMutationVariables,
|
||||||
|
UpdateMangasMutation,
|
||||||
|
UpdateMangasMutationVariables,
|
||||||
UpdaterSubscription,
|
UpdaterSubscription,
|
||||||
UpdaterSubscriptionVariables,
|
UpdaterSubscriptionVariables,
|
||||||
UpdateServerSettingsMutation,
|
UpdateServerSettingsMutation,
|
||||||
UpdateServerSettingsMutationVariables,
|
UpdateServerSettingsMutationVariables,
|
||||||
UpdateSourcePreferencesMutation,
|
UpdateSourcePreferencesMutation,
|
||||||
UpdateSourcePreferencesMutationVariables,
|
UpdateSourcePreferencesMutationVariables,
|
||||||
|
UpdateTrackInput,
|
||||||
UpdateWebuiMutation,
|
UpdateWebuiMutation,
|
||||||
UpdateWebuiMutationVariables,
|
UpdateWebuiMutationVariables,
|
||||||
ValidateBackupQuery,
|
ValidateBackupQuery,
|
||||||
ValidateBackupQueryVariables,
|
ValidateBackupQueryVariables,
|
||||||
WebuiUpdateSubscription,
|
WebuiUpdateSubscription,
|
||||||
ResetWebuiUpdateStatusMutation,
|
|
||||||
ResetWebuiUpdateStatusMutationVariables,
|
|
||||||
GetDownloadStatusQuery,
|
|
||||||
GetDownloadStatusQueryVariables,
|
|
||||||
GetMangasChapterIdsWithStateQuery,
|
|
||||||
GetMangasChapterIdsWithStateQueryVariables,
|
|
||||||
ChapterConditionInput,
|
|
||||||
UpdateMangasMutation,
|
|
||||||
UpdateMangasMutationVariables,
|
|
||||||
UpdateMangasCategoriesMutation,
|
|
||||||
UpdateMangasCategoriesMutationVariables,
|
|
||||||
UpdateMangaCategoriesPatchInput,
|
|
||||||
GetWebuiUpdateStatusQuery,
|
|
||||||
GetWebuiUpdateStatusQueryVariables,
|
|
||||||
GetMigratableSourcesQuery,
|
|
||||||
GetMigratableSourcesQueryVariables,
|
|
||||||
GetMigratableSourceMangasQuery,
|
|
||||||
GetMigratableSourceMangasQueryVariables,
|
|
||||||
GetMangaToMigrateQuery,
|
|
||||||
GetMangaToMigrateQueryVariables,
|
|
||||||
GetMangaToMigrateToFetchMutation,
|
|
||||||
GetMangaToMigrateToFetchMutationVariables,
|
|
||||||
TrackerLogoutMutation,
|
|
||||||
TrackerLogoutMutationVariables,
|
|
||||||
TrackerLoginOauthMutation,
|
|
||||||
TrackerLoginOauthMutationVariables,
|
|
||||||
TrackerLoginCredentialsMutation,
|
|
||||||
TrackerLoginCredentialsMutationVariables,
|
|
||||||
TrackerSearchQuery,
|
|
||||||
TrackerSearchQueryVariables,
|
|
||||||
TrackerBindMutation,
|
|
||||||
TrackerBindMutationVariables,
|
|
||||||
TrackerUpdateBindMutation,
|
|
||||||
TrackerUpdateBindMutationVariables,
|
|
||||||
UpdateTrackInput,
|
|
||||||
TrackerUnbindMutation,
|
|
||||||
TrackerUnbindMutationVariables,
|
|
||||||
TrackerFetchBindMutation,
|
|
||||||
TrackerFetchBindMutationVariables,
|
|
||||||
GetServerSettingsQueryVariables,
|
|
||||||
SetSourceMetadataMutation,
|
|
||||||
SetSourceMetadataMutationVariables,
|
|
||||||
GetCategoriesSettingsQuery,
|
|
||||||
GetCategoriesSettingsQueryVariables,
|
|
||||||
GetChaptersMangaQuery,
|
|
||||||
GetChaptersMangaQueryVariables,
|
|
||||||
GetChaptersUpdatesQuery,
|
|
||||||
GetChaptersUpdatesQueryVariables,
|
|
||||||
GetSourcesListQuery,
|
|
||||||
GetSourcesListQueryVariables,
|
|
||||||
GetMangasLibraryQuery,
|
|
||||||
GetMangasLibraryQueryVariables,
|
|
||||||
} from '@/lib/graphql/generated/graphql.ts';
|
} from '@/lib/graphql/generated/graphql.ts';
|
||||||
import { GET_GLOBAL_METADATAS } from '@/lib/graphql/queries/GlobalMetadataQuery.ts';
|
import { GET_GLOBAL_METADATAS } from '@/lib/graphql/queries/GlobalMetadataQuery.ts';
|
||||||
import { SET_GLOBAL_METADATA } from '@/lib/graphql/mutations/GlobalMetadataMutation.ts';
|
import { SET_GLOBAL_METADATA } from '@/lib/graphql/mutations/GlobalMetadataMutation.ts';
|
||||||
@@ -2097,7 +2097,7 @@ export class RequestManager {
|
|||||||
GetCategoriesSettingsQueryVariables
|
GetCategoriesSettingsQueryVariables
|
||||||
>({
|
>({
|
||||||
query: GET_CATEGORIES_SETTINGS,
|
query: GET_CATEGORIES_SETTINGS,
|
||||||
variables: { orderBy: CategoryOrderBy.Order },
|
variables: { order: [{ by: CategoryOrderBy.Order }] },
|
||||||
})?.categories.nodes;
|
})?.categories.nodes;
|
||||||
|
|
||||||
if (!variables) {
|
if (!variables) {
|
||||||
@@ -2121,7 +2121,7 @@ export class RequestManager {
|
|||||||
{
|
{
|
||||||
id: cache.identify({ __typename: 'CategoryNodeList' }),
|
id: cache.identify({ __typename: 'CategoryNodeList' }),
|
||||||
query: GET_CATEGORIES_SETTINGS,
|
query: GET_CATEGORIES_SETTINGS,
|
||||||
variables: { orderBy: CategoryOrderBy.Order },
|
variables: { order: [{ by: CategoryOrderBy.Order }] },
|
||||||
},
|
},
|
||||||
(data) => ({
|
(data) => ({
|
||||||
...data!,
|
...data!,
|
||||||
@@ -2409,8 +2409,7 @@ export class RequestManager {
|
|||||||
GET_CHAPTERS_UPDATES,
|
GET_CHAPTERS_UPDATES,
|
||||||
{
|
{
|
||||||
filter: { inLibrary: { equalTo: true } },
|
filter: { inLibrary: { equalTo: true } },
|
||||||
orderBy: ChapterOrderBy.FetchedAt,
|
order: [{ by: ChapterOrderBy.FetchedAt, byType: SortOrder.Desc }],
|
||||||
orderByType: SortOrder.Desc,
|
|
||||||
first: initialPages * PAGE_SIZE + lastOffset,
|
first: initialPages * PAGE_SIZE + lastOffset,
|
||||||
},
|
},
|
||||||
options,
|
options,
|
||||||
|
|||||||
Reference in New Issue
Block a user