Fix/update gql after server changes (#469)
* [Codegen] Update files * Update "AboutServer" * Cache "WebUIUpdateInfo"
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { FieldPolicy, FieldReadFunction, TypePolicies, TypePolicy } from '@apollo/client/cache';
|
||||
import { GetChaptersQuery } from "@/lib/graphql/generated/graphql.ts";
|
||||
export type AboutPayloadKeySpecifier = ('buildTime' | 'buildType' | 'discord' | 'github' | 'name' | 'revision' | 'version' | AboutPayloadKeySpecifier)[];
|
||||
export type AboutPayloadFieldPolicy = {
|
||||
export type AboutServerPayloadKeySpecifier = ('buildTime' | 'buildType' | 'discord' | 'github' | 'name' | 'revision' | 'version' | AboutServerPayloadKeySpecifier)[];
|
||||
export type AboutServerPayloadFieldPolicy = {
|
||||
buildTime?: FieldPolicy<any> | FieldReadFunction<any>,
|
||||
buildType?: FieldPolicy<any> | FieldReadFunction<any>,
|
||||
discord?: FieldPolicy<any> | FieldReadFunction<any>,
|
||||
@@ -490,7 +490,7 @@ export type PartialSettingsTypeFieldPolicy = {
|
||||
webUIInterface?: FieldPolicy<any> | FieldReadFunction<any>,
|
||||
webUIUpdateCheckInterval?: FieldPolicy<any> | FieldReadFunction<any>
|
||||
};
|
||||
export type QueryKeySpecifier = ('about' | 'categories' | 'category' | 'chapter' | 'chapters' | 'checkForServerUpdates' | 'checkForWebUIUpdate' | 'downloadStatus' | 'extension' | 'extensions' | 'getWebUIUpdateStatus' | 'lastUpdateTimestamp' | 'manga' | 'mangas' | 'meta' | 'metas' | 'restoreStatus' | 'settings' | 'source' | 'sources' | 'updateStatus' | 'validateBackup' | QueryKeySpecifier)[];
|
||||
export type QueryKeySpecifier = ('aboutServer' | 'aboutWebUI' | 'categories' | 'category' | 'chapter' | 'chapters' | 'checkForServerUpdates' | 'checkForWebUIUpdate' | 'downloadStatus' | 'extension' | 'extensions' | 'getWebUIUpdateStatus' | 'lastUpdateTimestamp' | 'manga' | 'mangas' | 'meta' | 'metas' | 'restoreStatus' | 'settings' | 'source' | 'sources' | 'updateStatus' | 'validateBackup' | QueryKeySpecifier)[];
|
||||
export type QueryFieldPolicy = {
|
||||
about?: FieldPolicy<any> | FieldReadFunction<any>,
|
||||
categories?: FieldPolicy<any> | FieldReadFunction<any>,
|
||||
@@ -832,9 +832,9 @@ export type WebUIUpdateStatusFieldPolicy = {
|
||||
state?: FieldPolicy<any> | FieldReadFunction<any>
|
||||
};
|
||||
export type StrictTypedTypePolicies = {
|
||||
AboutPayload?: Omit<TypePolicy, "fields" | "keyFields"> & {
|
||||
keyFields?: false | AboutPayloadKeySpecifier | (() => undefined | AboutPayloadKeySpecifier),
|
||||
fields?: AboutPayloadFieldPolicy,
|
||||
AboutServerPayload?: Omit<TypePolicy, "fields" | "keyFields"> & {
|
||||
keyFields?: false | AboutServerPayloadKeySpecifier | (() => undefined | AboutServerPayloadKeySpecifier),
|
||||
fields?: AboutServerPayloadFieldPolicy,
|
||||
},
|
||||
BackupRestoreStatus?: Omit<TypePolicy, "fields" | "keyFields"> & {
|
||||
keyFields?: false | BackupRestoreStatusKeySpecifier | (() => undefined | BackupRestoreStatusKeySpecifier),
|
||||
|
||||
@@ -17,8 +17,8 @@ export type Scalars = {
|
||||
Upload: { input: any; output: any; }
|
||||
};
|
||||
|
||||
export type AboutPayload = {
|
||||
__typename?: 'AboutPayload';
|
||||
export type AboutServerPayload = {
|
||||
__typename?: 'AboutServerPayload';
|
||||
buildTime: Scalars['LongString']['output'];
|
||||
buildType: Scalars['String']['output'];
|
||||
discord: Scalars['String']['output'];
|
||||
@@ -1293,7 +1293,8 @@ export type Preference = CheckBoxPreference | EditTextPreference | ListPreferenc
|
||||
|
||||
export type Query = {
|
||||
__typename?: 'Query';
|
||||
about: AboutPayload;
|
||||
aboutServer: AboutServerPayload;
|
||||
aboutWebUI: WebUiUpdateInfo;
|
||||
categories: CategoryNodeList;
|
||||
category: CategoryType;
|
||||
chapter: ChapterType;
|
||||
@@ -2578,7 +2579,7 @@ export type GetMangasQuery = { __typename?: 'Query', mangas: { __typename?: 'Man
|
||||
export type GetAboutQueryVariables = Exact<{ [key: string]: never; }>;
|
||||
|
||||
|
||||
export type GetAboutQuery = { __typename?: 'Query', about: { __typename?: 'AboutPayload', buildTime: any, buildType: string, discord: string, github: string, name: string, revision: string, version: string } };
|
||||
export type GetAboutQuery = { __typename?: 'Query', aboutServer: { __typename?: 'AboutServerPayload', buildTime: any, buildType: string, discord: string, github: string, name: string, revision: string, version: string } };
|
||||
|
||||
export type CheckForServerUpdatesQueryVariables = Exact<{ [key: string]: never; }>;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import { WEBUI_UPDATE_INFO, WEBUI_UPDATE_STATUS } from '@/lib/graphql/Fragments'
|
||||
|
||||
export const GET_ABOUT = gql`
|
||||
query GET_ABOUT {
|
||||
about {
|
||||
aboutServer {
|
||||
buildTime
|
||||
buildType
|
||||
discord
|
||||
|
||||
Reference in New Issue
Block a user