@jellyfin/sdk
Version:
A TypeScript SDK for Jellyfin.
52 lines (49 loc) • 1.25 kB
JavaScript
import globalAxios from 'axios';
/* tslint:disable */
/* eslint-disable */
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit the class manually.
*
* Jellyfin API
*
* 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/.
*/
const BASE_PATH = "http://localhost".replace(/\/+$/, "");
/**
*
* @export
* @class BaseAPI
*/
class BaseAPI {
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
var _a;
this.basePath = basePath;
this.axios = axios;
if (configuration) {
this.configuration = configuration;
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
}
}
}
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
class RequiredError extends Error {
constructor(field, msg) {
super(msg);
this.field = field;
this.name = "RequiredError";
}
}
/**
*
* @export
*/
const operationServerMap = {};
export { BASE_PATH, BaseAPI, RequiredError, operationServerMap };