fix(jellyfinapi): use external api class for jellyfin api requests (#762)

* refactor(jellyfinapi): use the external api class for jellyfin api requests

refactors jellyfin api requests to be handled by the external api
to be consistent with how other external api requests are made

related #728, related #387

* style: prettier formatted

* refactor(jellyfinapi): rename device in auth header as jellyseerr

* refactor(error): rename api error code generic to unknown

* refactor(errorcodes): consistent casing of error code enums
This commit is contained in:
Fallenbagel
2024-05-25 15:44:36 +05:00
committed by GitHub
parent 4ef5a3c7c5
commit 650c339d74
2 changed files with 68 additions and 52 deletions

View File

@@ -1,5 +1,7 @@
export enum ApiErrorCode {
InvalidUrl = 'INVALID_URL',
InvalidCredentials = 'INVALID_CREDENTIALS',
InvalidAuthToken = 'INVALID_AUTH_TOKEN',
NotAdmin = 'NOT_ADMIN',
Unknown = 'UNKNOWN',
}