Update dependency "@graphql-codegen"
This commit is contained in:
@@ -6,12 +6,8 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import type {
|
||||
TrackerType,
|
||||
TrackRecordSearchFieldsFragment,
|
||||
TrackRecordType,
|
||||
TrackSearchType,
|
||||
} from '@/lib/graphql/generated/graphql.ts';
|
||||
import type { TrackerType, TrackRecordType, TrackSearchType } from '@/lib/graphql/generated/graphql-base.types.ts';
|
||||
import type { TrackRecordSearchFieldsFragment } from '@/lib/graphql/generated/graphql.ts';
|
||||
|
||||
export type MetadataTrackingSettings = {
|
||||
updateProgressAfterReading: boolean;
|
||||
|
||||
@@ -17,10 +17,10 @@ import { Trackers } from '@/features/tracker/services/Trackers.ts';
|
||||
import { TrackerCard, TrackerMode } from '@/features/tracker/components/cards/TrackerCard.tsx';
|
||||
import { makeToast } from '@/base/utils/Toast.ts';
|
||||
import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts';
|
||||
import type { GetMangaTrackRecordsQuery, GetTrackersBindQuery, MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import type { GetMangaTrackRecordsQuery, GetTrackersBindQuery } from '@/lib/graphql/generated/graphql.ts';
|
||||
import { GET_TRACKERS_BIND } from '@/lib/graphql/tracker/TrackerQuery.ts';
|
||||
import { GET_MANGA_TRACK_RECORDS } from '@/lib/graphql/manga/MangaQuery.ts';
|
||||
import type { MangaIdInfo } from '@/features/manga/Manga.types.ts';
|
||||
import type { MangaIdInfo, MangaTitleInfo } from '@/features/manga/Manga.types.ts';
|
||||
import { AppRoutes } from '@/base/AppRoute.constants.ts';
|
||||
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
|
||||
import { EmptyView } from '@/base/components/feedback/EmptyView.tsx';
|
||||
@@ -38,7 +38,7 @@ const getTrackerMode = (id: number, trackersInUse: number[], searchModeForTracke
|
||||
return TrackerMode.UNTRACKED;
|
||||
};
|
||||
|
||||
export const TrackManga = ({ manga }: { manga: MangaIdInfo & Pick<MangaType, 'title'> }) => {
|
||||
export const TrackManga = ({ manga }: { manga: MangaIdInfo & MangaTitleInfo }) => {
|
||||
const { t } = useLingui();
|
||||
const navigate = useNavigate();
|
||||
|
||||
|
||||
@@ -31,8 +31,7 @@ import { TrackerMangaCard } from '@/features/tracker/components/cards/TrackerMan
|
||||
import { DIALOG_PADDING } from '@/features/tracker/Tracker.constants.ts';
|
||||
import { useGetOptionForDirection } from '@/features/theme/services/ThemeCreator.ts';
|
||||
import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts';
|
||||
import type { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import type { MangaIdInfo } from '@/features/manga/Manga.types.ts';
|
||||
import type { MangaIdInfo, MangaTitleInfo } from '@/features/manga/Manga.types.ts';
|
||||
|
||||
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
|
||||
import { applyStyles } from '@/base/utils/ApplyStyles.ts';
|
||||
@@ -119,7 +118,7 @@ export const TrackerSearch = ({
|
||||
trackedId,
|
||||
trackedTitle,
|
||||
}: {
|
||||
manga: MangaIdInfo & Pick<MangaType, 'title'>;
|
||||
manga: MangaIdInfo & MangaTitleInfo;
|
||||
tracker: TTrackerBind;
|
||||
closeSearchMode: () => void;
|
||||
trackedId?: string;
|
||||
|
||||
@@ -41,7 +41,7 @@ import { TypographyMaxLines } from '@/base/components/texts/TypographyMaxLines.t
|
||||
import type { SelectSettingValue } from '@/base/components/settings/SelectSetting.tsx';
|
||||
import { SelectSetting } from '@/base/components/settings/SelectSetting.tsx';
|
||||
import { CheckboxInput } from '@/base/components/inputs/CheckboxInput.tsx';
|
||||
import type { TrackRecordType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import type { TrackRecordType } from '@/lib/graphql/generated/graphql-base.types.ts';
|
||||
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
|
||||
import type { TTrackerBind, TTrackRecordBind } from '@/features/tracker/Tracker.types.ts';
|
||||
import { AvatarSpinner } from '@/base/components/AvatarSpinner.tsx';
|
||||
@@ -317,6 +317,7 @@ export const TrackerActiveCard = ({
|
||||
type="ListPreference"
|
||||
entryValues={tracker.statuses.map((status) => `${status.value}`)}
|
||||
ListPreferenceCurrentValue={`${trackRecord.status}`}
|
||||
ListPreferenceDefault={null}
|
||||
updateValue={(_, status) => updateTrackerBind({ status: Number(status) })}
|
||||
summary="%s"
|
||||
/>
|
||||
|
||||
@@ -9,9 +9,8 @@
|
||||
import { TrackerUntrackedCard } from '@/features/tracker/components/cards/TrackerUntrackedCard.tsx';
|
||||
import { TrackerSearch } from '@/features/tracker/components/TrackerSearch.tsx';
|
||||
import { TrackerActiveCard } from '@/features/tracker/components/cards/TrackerActiveCard.tsx';
|
||||
import type { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
|
||||
import type { MangaIdInfo } from '@/features/manga/Manga.types.ts';
|
||||
import type { MangaIdInfo, MangaTitleInfo } from '@/features/manga/Manga.types.ts';
|
||||
import type { TTrackerBind, TTrackRecordBind } from '@/features/tracker/Tracker.types.ts';
|
||||
|
||||
export enum TrackerMode {
|
||||
@@ -28,7 +27,7 @@ export const TrackerCard = ({
|
||||
setSearchMode,
|
||||
}: {
|
||||
tracker: TTrackerBind;
|
||||
manga: MangaIdInfo & Pick<MangaType, 'title'>;
|
||||
manga: MangaIdInfo & MangaTitleInfo;
|
||||
trackRecord?: TTrackRecordBind;
|
||||
mode: TrackerMode;
|
||||
setSearchMode: (id?: number) => void;
|
||||
|
||||
Reference in New Issue
Block a user