Rename features types file

This commit is contained in:
jeffvli 2024-03-05 14:05:01 -08:00
parent e7b2f30718
commit a9315be259
8 changed files with 7 additions and 7 deletions

View file

@ -61,7 +61,7 @@ import packageJson from '../../../../package.json';
import { z } from 'zod'; import { z } from 'zod';
import { JFSongListSort, JFSortOrder } from '/@/renderer/api/jellyfin.types'; import { JFSongListSort, JFSortOrder } from '/@/renderer/api/jellyfin.types';
import isElectron from 'is-electron'; import isElectron from 'is-electron';
import { ServerFeatures } from '/@/renderer/api/features.types'; import { ServerFeatures } from '/@/renderer/api/features-types';
const formatCommaDelimitedString = (value: string[]) => { const formatCommaDelimitedString = (value: string[]) => {
return value.join(','); return value.join(',');

View file

@ -49,7 +49,7 @@ import {
ServerInfoArgs, ServerInfoArgs,
} from '../types'; } from '../types';
import { hasFeature } from '/@/renderer/api/utils'; 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'; import { SubsonicExtensions } from '/@/renderer/api/subsonic/subsonic-types';
const authenticate = async ( const authenticate = async (

View file

@ -29,7 +29,7 @@ import {
Song, Song,
} from '/@/renderer/api/types'; } from '/@/renderer/api/types';
import { randomString } from '/@/renderer/utils'; import { randomString } from '/@/renderer/utils';
import { ServerFeatures } from '/@/renderer/api/features.types'; import { ServerFeatures } from '/@/renderer/api/features-types';
const authenticate = async ( const authenticate = async (
url: string, url: string,

View file

@ -1,4 +1,5 @@
import { z } from 'zod'; import { z } from 'zod';
import { ServerFeatures } from './features-types';
import { jfType } from './jellyfin/jellyfin-types'; import { jfType } from './jellyfin/jellyfin-types';
import { import {
JFSortOrder, JFSortOrder,
@ -20,7 +21,6 @@ import {
NDUserListSort, NDUserListSort,
NDGenreListSort, NDGenreListSort,
} from './navidrome.types'; } from './navidrome.types';
import { ServerFeatures } from '/@/renderer/api/features.types';
export enum LibraryItem { export enum LibraryItem {
ALBUM = 'album', ALBUM = 'album',

View file

@ -3,7 +3,7 @@ import { z } from 'zod';
import { toast } from '/@/renderer/components'; import { toast } from '/@/renderer/components';
import { useAuthStore } from '/@/renderer/store'; import { useAuthStore } from '/@/renderer/store';
import { ServerListItem } from '/@/renderer/api/types'; 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 // Since ts-rest client returns a strict response type, we need to add the headers to the body object
export const resultWithHeaders = <ItemType extends z.ZodTypeAny>(itemSchema: ItemType) => { export const resultWithHeaders = <ItemType extends z.ZodTypeAny>(itemSchema: ItemType) => {

View file

@ -15,7 +15,7 @@ import { queryKeys } from '/@/renderer/api/query-keys';
import { api } from '/@/renderer/api'; import { api } from '/@/renderer/api';
import isElectron from 'is-electron'; import isElectron from 'is-electron';
import { hasFeature } from '/@/renderer/api/utils'; 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; const lyricsIpc = isElectron() ? window.electron.lyrics : null;

View file

@ -12,7 +12,7 @@ import { convertQueryGroupToNDQuery } from '/@/renderer/features/playlists/utils
import { useCurrentServer } from '/@/renderer/store'; import { useCurrentServer } from '/@/renderer/store';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { hasFeature } from '/@/renderer/api/utils'; import { hasFeature } from '/@/renderer/api/utils';
import { ServerFeature } from '/@/renderer/api/features.types'; import { ServerFeature } from '/@/renderer/api/features-types';
interface CreatePlaylistFormProps { interface CreatePlaylistFormProps {
onCancel: () => void; onCancel: () => void;