mirror of
https://github.com/jellyfin/jellyfin-sdk-typescript.git
synced 2024-11-27 00:01:19 +00:00
Update api helper functions for added/removed apis in 10.9.0
This commit is contained in:
parent
a147769697
commit
f0ffcd9a5d
@ -5,12 +5,12 @@
|
||||
*/
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
import { getActivityLogApi, getApiKeyApi, getArtistsApi, getAudioApi, getBrandingApi, getChannelsApi, getClientLogApi, getCollectionApi, getConfigurationApi, getDashboardApi, getDevicesApi, getDisplayPreferencesApi, getDlnaApi, getDlnaServerApi, getDynamicHlsApi, getEnvironmentApi, getFilterApi, getGenresApi, getHlsSegmentApi, getImageApi, getImageByNameApi, getInstantMixApi, getItemLookupApi, getItemRefreshApi, getItemUpdateApi, getItemsApi, getLibraryApi, getLibraryStructureApi, getLiveTvApi, getLocalizationApi, getMediaInfoApi, getMoviesApi, getMusicGenresApi, getNotificationsApi, getPackageApi, getPersonsApi, getPlaylistsApi, getPlaystateApi, getPluginsApi, getQuickConnectApi, getRemoteImageApi, getScheduledTasksApi, getSearchApi, getSessionApi, getStartupApi, getStudiosApi, getSubtitleApi, getSuggestionsApi, getSyncPlayApi, getSystemApi, getTimeSyncApi, getTmdbApi, getTrailersApi, getTvShowsApi, getUniversalAudioApi, getUserApi, getUserLibraryApi, getUserViewsApi, getVideoAttachmentsApi, getVideosApi, getYearsApi } from '..';
|
||||
import { getActivityLogApi, getApiKeyApi, getArtistsApi, getAudioApi, getBrandingApi, getChannelsApi, getClientLogApi, getCollectionApi, getConfigurationApi, getDashboardApi, getDevicesApi, getDisplayPreferencesApi, getDynamicHlsApi, getEnvironmentApi, getFilterApi, getGenresApi, getHlsSegmentApi, getImageApi, getInstantMixApi, getItemLookupApi, getItemRefreshApi, getItemUpdateApi, getItemsApi, getLibraryApi, getLibraryStructureApi, getLiveTvApi, getLocalizationApi, getLyricsApi, getMediaInfoApi, getMoviesApi, getMusicGenresApi, getPackageApi, getPersonsApi, getPlaylistsApi, getPlaystateApi, getPluginsApi, getQuickConnectApi, getRemoteImageApi, getScheduledTasksApi, getSearchApi, getSessionApi, getStartupApi, getStudiosApi, getSubtitleApi, getSuggestionsApi, getSyncPlayApi, getSystemApi, getTimeSyncApi, getTmdbApi, getTrailersApi, getTrickplayApi, getTvShowsApi, getUniversalAudioApi, getUserApi, getUserLibraryApi, getUserViewsApi, getVideoAttachmentsApi, getVideosApi, getYearsApi } from '..';
|
||||
|
||||
import { SERVER_URL, TEST_CLIENT, TEST_DEVICE } from '../../../__helpers__/common';
|
||||
|
||||
import { Api } from '../../../api';
|
||||
import { ActivityLogApi, ApiKeyApi, ArtistsApi, AudioApi, BrandingApi, ChannelsApi, ClientLogApi, CollectionApi, ConfigurationApi, DashboardApi, DevicesApi, DisplayPreferencesApi, DlnaApi, DlnaServerApi, DynamicHlsApi, EnvironmentApi, FilterApi, GenresApi, HlsSegmentApi, ImageApi, ImageByNameApi, InstantMixApi, ItemLookupApi, ItemRefreshApi, ItemsApi, ItemUpdateApi, LibraryApi, LibraryStructureApi, LiveTvApi, LocalizationApi, MediaInfoApi, MoviesApi, MusicGenresApi, NotificationsApi, PackageApi, PersonsApi, PlaylistsApi, PlaystateApi, PluginsApi, QuickConnectApi, RemoteImageApi, ScheduledTasksApi, SearchApi, SessionApi, StartupApi, StudiosApi, SubtitleApi, SuggestionsApi, SyncPlayApi, SystemApi, TimeSyncApi, TmdbApi, TrailersApi, TvShowsApi, UniversalAudioApi, UserApi, UserLibraryApi, UserViewsApi, VideoAttachmentsApi, VideosApi, YearsApi } from '../../../generated-client/api';
|
||||
import { ActivityLogApi, ApiKeyApi, ArtistsApi, AudioApi, BrandingApi, ChannelsApi, ClientLogApi, CollectionApi, ConfigurationApi, DashboardApi, DevicesApi, DisplayPreferencesApi, DynamicHlsApi, EnvironmentApi, FilterApi, GenresApi, HlsSegmentApi, ImageApi, InstantMixApi, ItemLookupApi, ItemRefreshApi, ItemsApi, ItemUpdateApi, LibraryApi, LibraryStructureApi, LiveTvApi, LocalizationApi, LyricsApi, MediaInfoApi, MoviesApi, MusicGenresApi, PackageApi, PersonsApi, PlaylistsApi, PlaystateApi, PluginsApi, QuickConnectApi, RemoteImageApi, ScheduledTasksApi, SearchApi, SessionApi, StartupApi, StudiosApi, SubtitleApi, SuggestionsApi, SyncPlayApi, SystemApi, TimeSyncApi, TmdbApi, TrailersApi, TrickplayApi, TvShowsApi, UniversalAudioApi, UserApi, UserLibraryApi, UserViewsApi, VideoAttachmentsApi, VideosApi, YearsApi } from '../../../generated-client/api';
|
||||
|
||||
/**
|
||||
* Api helper function tests.
|
||||
@ -33,15 +33,12 @@ describe('Api Utilities', () => {
|
||||
expect(getDashboardApi(api)).toBeInstanceOf(DashboardApi);
|
||||
expect(getDevicesApi(api)).toBeInstanceOf(DevicesApi);
|
||||
expect(getDisplayPreferencesApi(api)).toBeInstanceOf(DisplayPreferencesApi);
|
||||
expect(getDlnaApi(api)).toBeInstanceOf(DlnaApi);
|
||||
expect(getDlnaServerApi(api)).toBeInstanceOf(DlnaServerApi);
|
||||
expect(getDynamicHlsApi(api)).toBeInstanceOf(DynamicHlsApi);
|
||||
expect(getEnvironmentApi(api)).toBeInstanceOf(EnvironmentApi);
|
||||
expect(getFilterApi(api)).toBeInstanceOf(FilterApi);
|
||||
expect(getGenresApi(api)).toBeInstanceOf(GenresApi);
|
||||
expect(getHlsSegmentApi(api)).toBeInstanceOf(HlsSegmentApi);
|
||||
expect(getImageApi(api)).toBeInstanceOf(ImageApi);
|
||||
expect(getImageByNameApi(api)).toBeInstanceOf(ImageByNameApi);
|
||||
expect(getInstantMixApi(api)).toBeInstanceOf(InstantMixApi);
|
||||
expect(getItemLookupApi(api)).toBeInstanceOf(ItemLookupApi);
|
||||
expect(getItemRefreshApi(api)).toBeInstanceOf(ItemRefreshApi);
|
||||
@ -51,10 +48,10 @@ describe('Api Utilities', () => {
|
||||
expect(getLibraryStructureApi(api)).toBeInstanceOf(LibraryStructureApi);
|
||||
expect(getLiveTvApi(api)).toBeInstanceOf(LiveTvApi);
|
||||
expect(getLocalizationApi(api)).toBeInstanceOf(LocalizationApi);
|
||||
expect(getLyricsApi(api)).toBeInstanceOf(LyricsApi);
|
||||
expect(getMediaInfoApi(api)).toBeInstanceOf(MediaInfoApi);
|
||||
expect(getMoviesApi(api)).toBeInstanceOf(MoviesApi);
|
||||
expect(getMusicGenresApi(api)).toBeInstanceOf(MusicGenresApi);
|
||||
expect(getNotificationsApi(api)).toBeInstanceOf(NotificationsApi);
|
||||
expect(getPackageApi(api)).toBeInstanceOf(PackageApi);
|
||||
expect(getPersonsApi(api)).toBeInstanceOf(PersonsApi);
|
||||
expect(getPlaylistsApi(api)).toBeInstanceOf(PlaylistsApi);
|
||||
@ -74,6 +71,7 @@ describe('Api Utilities', () => {
|
||||
expect(getTimeSyncApi(api)).toBeInstanceOf(TimeSyncApi);
|
||||
expect(getTmdbApi(api)).toBeInstanceOf(TmdbApi);
|
||||
expect(getTrailersApi(api)).toBeInstanceOf(TrailersApi);
|
||||
expect(getTrickplayApi(api)).toBeInstanceOf(TrickplayApi);
|
||||
expect(getTvShowsApi(api)).toBeInstanceOf(TvShowsApi);
|
||||
expect(getUniversalAudioApi(api)).toBeInstanceOf(UniversalAudioApi);
|
||||
expect(getUserApi(api)).toBeInstanceOf(UserApi);
|
||||
|
@ -1,12 +0,0 @@
|
||||
/**
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import type { Api } from '../../api';
|
||||
import { ImageByNameApi } from '../../generated-client/api/image-by-name-api';
|
||||
|
||||
export function getImageByNameApi(api: Api): ImageByNameApi {
|
||||
return new ImageByNameApi(api.configuration, undefined, api.axiosInstance);
|
||||
}
|
@ -16,15 +16,12 @@ export * from './configuration-api';
|
||||
export * from './dashboard-api';
|
||||
export * from './devices-api';
|
||||
export * from './display-preferences-api';
|
||||
export * from './dlna-api';
|
||||
export * from './dlna-server-api';
|
||||
export * from './dynamic-hls-api';
|
||||
export * from './environment-api';
|
||||
export * from './filter-api';
|
||||
export * from './genres-api';
|
||||
export * from './hls-segment-api';
|
||||
export * from './image-api';
|
||||
export * from './image-by-name-api';
|
||||
export * from './instant-mix-api';
|
||||
export * from './item-lookup-api';
|
||||
export * from './item-refresh-api';
|
||||
@ -34,10 +31,10 @@ export * from './library-api';
|
||||
export * from './library-structure-api';
|
||||
export * from './live-tv-api';
|
||||
export * from './localization-api';
|
||||
export * from './lyrics-api';
|
||||
export * from './media-info-api';
|
||||
export * from './movies-api';
|
||||
export * from './music-genres-api';
|
||||
export * from './notifications-api';
|
||||
export * from './package-api';
|
||||
export * from './persons-api';
|
||||
export * from './playlists-api';
|
||||
@ -57,6 +54,7 @@ export * from './system-api';
|
||||
export * from './time-sync-api';
|
||||
export * from './tmdb-api';
|
||||
export * from './trailers-api';
|
||||
export * from './trickplay-api';
|
||||
export * from './tv-shows-api';
|
||||
export * from './universal-audio-api';
|
||||
export * from './user-api';
|
||||
|
@ -5,8 +5,8 @@
|
||||
*/
|
||||
|
||||
import type { Api } from '../../api';
|
||||
import { DlnaApi } from '../../generated-client/api/dlna-api';
|
||||
import { LyricsApi } from '../../generated-client/api/lyrics-api';
|
||||
|
||||
export function getDlnaApi(api: Api): DlnaApi {
|
||||
return new DlnaApi(api.configuration, undefined, api.axiosInstance);
|
||||
export function getLyricsApi(api: Api): LyricsApi {
|
||||
return new LyricsApi(api.configuration, undefined, api.axiosInstance);
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
/**
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import type { Api } from '../../api';
|
||||
import { NotificationsApi } from '../../generated-client/api/notifications-api';
|
||||
|
||||
export function getNotificationsApi(api: Api): NotificationsApi {
|
||||
return new NotificationsApi(api.configuration, undefined, api.axiosInstance);
|
||||
}
|
@ -5,8 +5,8 @@
|
||||
*/
|
||||
|
||||
import type { Api } from '../../api';
|
||||
import { DlnaServerApi } from '../../generated-client/api/dlna-server-api';
|
||||
import { TrickplayApi } from '../../generated-client/api/trickplay-api';
|
||||
|
||||
export function getDlnaServerApi(api: Api): DlnaServerApi {
|
||||
return new DlnaServerApi(api.configuration, undefined, api.axiosInstance);
|
||||
export function getTrickplayApi(api: Api): TrickplayApi {
|
||||
return new TrickplayApi(api.configuration, undefined, api.axiosInstance);
|
||||
}
|
Loading…
Reference in New Issue
Block a user