diff --git a/src/renderer/api/features.types.ts b/src/renderer/api/features-types.ts similarity index 100% rename from src/renderer/api/features.types.ts rename to src/renderer/api/features-types.ts diff --git a/src/renderer/api/jellyfin/jellyfin-controller.ts b/src/renderer/api/jellyfin/jellyfin-controller.ts index 808bd715..8adcd3df 100644 --- a/src/renderer/api/jellyfin/jellyfin-controller.ts +++ b/src/renderer/api/jellyfin/jellyfin-controller.ts @@ -61,7 +61,7 @@ import packageJson from '../../../../package.json'; import { z } from 'zod'; import { JFSongListSort, JFSortOrder } from '/@/renderer/api/jellyfin.types'; import isElectron from 'is-electron'; -import { ServerFeatures } from '/@/renderer/api/features.types'; +import { ServerFeatures } from '/@/renderer/api/features-types'; const formatCommaDelimitedString = (value: string[]) => { return value.join(','); diff --git a/src/renderer/api/navidrome/navidrome-controller.ts b/src/renderer/api/navidrome/navidrome-controller.ts index f19aa025..dd18d523 100644 --- a/src/renderer/api/navidrome/navidrome-controller.ts +++ b/src/renderer/api/navidrome/navidrome-controller.ts @@ -49,7 +49,7 @@ import { ServerInfoArgs, } from '../types'; import { hasFeature } from '/@/renderer/api/utils'; -import { ServerFeature, ServerFeatures } from '/@/renderer/api/features.types'; +import { ServerFeature, ServerFeatures } from '/@/renderer/api/features-types'; import { SubsonicExtensions } from '/@/renderer/api/subsonic/subsonic-types'; const authenticate = async ( diff --git a/src/renderer/api/subsonic/subsonic-controller.ts b/src/renderer/api/subsonic/subsonic-controller.ts index d87f0393..c968c200 100644 --- a/src/renderer/api/subsonic/subsonic-controller.ts +++ b/src/renderer/api/subsonic/subsonic-controller.ts @@ -29,7 +29,7 @@ import { Song, } from '/@/renderer/api/types'; import { randomString } from '/@/renderer/utils'; -import { ServerFeatures } from '/@/renderer/api/features.types'; +import { ServerFeatures } from '/@/renderer/api/features-types'; const authenticate = async ( url: string, diff --git a/src/renderer/api/types.ts b/src/renderer/api/types.ts index f3e637a2..d6d3d957 100644 --- a/src/renderer/api/types.ts +++ b/src/renderer/api/types.ts @@ -1,4 +1,5 @@ import { z } from 'zod'; +import { ServerFeatures } from './features-types'; import { jfType } from './jellyfin/jellyfin-types'; import { JFSortOrder, @@ -20,7 +21,6 @@ import { NDUserListSort, NDGenreListSort, } from './navidrome.types'; -import { ServerFeatures } from '/@/renderer/api/features.types'; export enum LibraryItem { ALBUM = 'album', diff --git a/src/renderer/api/utils.ts b/src/renderer/api/utils.ts index 4b19f54a..8f10c869 100644 --- a/src/renderer/api/utils.ts +++ b/src/renderer/api/utils.ts @@ -3,7 +3,7 @@ import { z } from 'zod'; import { toast } from '/@/renderer/components'; import { useAuthStore } from '/@/renderer/store'; import { ServerListItem } from '/@/renderer/api/types'; -import { ServerFeature } from '/@/renderer/api/features.types'; +import { ServerFeature } from '/@/renderer/api/features-types'; // Since ts-rest client returns a strict response type, we need to add the headers to the body object export const resultWithHeaders = (itemSchema: ItemType) => { diff --git a/src/renderer/features/lyrics/queries/lyric-query.ts b/src/renderer/features/lyrics/queries/lyric-query.ts index 4fa09c0c..c8511dba 100644 --- a/src/renderer/features/lyrics/queries/lyric-query.ts +++ b/src/renderer/features/lyrics/queries/lyric-query.ts @@ -15,7 +15,7 @@ import { queryKeys } from '/@/renderer/api/query-keys'; import { api } from '/@/renderer/api'; import isElectron from 'is-electron'; import { hasFeature } from '/@/renderer/api/utils'; -import { ServerFeature } from '/@/renderer/api/features.types'; +import { ServerFeature } from '/@/renderer/api/features-types'; const lyricsIpc = isElectron() ? window.electron.lyrics : null; diff --git a/src/renderer/features/playlists/components/create-playlist-form.tsx b/src/renderer/features/playlists/components/create-playlist-form.tsx index 6e720a6b..ef5a116d 100644 --- a/src/renderer/features/playlists/components/create-playlist-form.tsx +++ b/src/renderer/features/playlists/components/create-playlist-form.tsx @@ -12,7 +12,7 @@ import { convertQueryGroupToNDQuery } from '/@/renderer/features/playlists/utils import { useCurrentServer } from '/@/renderer/store'; import { useTranslation } from 'react-i18next'; import { hasFeature } from '/@/renderer/api/utils'; -import { ServerFeature } from '/@/renderer/api/features.types'; +import { ServerFeature } from '/@/renderer/api/features-types'; interface CreatePlaylistFormProps { onCancel: () => void;