117 lines
3.4 KiB
TypeScript
117 lines
3.4 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Jellyfin API
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 10.8.9
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
|
|
import * as runtime from '../runtime';
|
|
import type {
|
|
BrandingOptions,
|
|
} from '../models';
|
|
import {
|
|
BrandingOptionsFromJSON,
|
|
BrandingOptionsToJSON,
|
|
} from '../models';
|
|
|
|
/**
|
|
*
|
|
*/
|
|
export class BrandingApi extends runtime.BaseAPI {
|
|
|
|
/**
|
|
* Gets branding css.
|
|
*/
|
|
async getBrandingCssRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
const queryParameters: any = {};
|
|
|
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
|
|
const response = await this.request({
|
|
path: `/Branding/Css`,
|
|
method: 'GET',
|
|
headers: headerParameters,
|
|
query: queryParameters,
|
|
}, initOverrides);
|
|
|
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
return new runtime.JSONApiResponse<string>(response);
|
|
} else {
|
|
return new runtime.TextApiResponse(response) as any;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Gets branding css.
|
|
*/
|
|
async getBrandingCss(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
const response = await this.getBrandingCssRaw(initOverrides);
|
|
return await response.value();
|
|
}
|
|
|
|
/**
|
|
* Gets branding css.
|
|
*/
|
|
async getBrandingCss2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
const queryParameters: any = {};
|
|
|
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
|
|
const response = await this.request({
|
|
path: `/Branding/Css.css`,
|
|
method: 'GET',
|
|
headers: headerParameters,
|
|
query: queryParameters,
|
|
}, initOverrides);
|
|
|
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
return new runtime.JSONApiResponse<string>(response);
|
|
} else {
|
|
return new runtime.TextApiResponse(response) as any;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Gets branding css.
|
|
*/
|
|
async getBrandingCss2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
const response = await this.getBrandingCss2Raw(initOverrides);
|
|
return await response.value();
|
|
}
|
|
|
|
/**
|
|
* Gets branding configuration.
|
|
*/
|
|
async getBrandingOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandingOptions>> {
|
|
const queryParameters: any = {};
|
|
|
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
|
|
const response = await this.request({
|
|
path: `/Branding/Configuration`,
|
|
method: 'GET',
|
|
headers: headerParameters,
|
|
query: queryParameters,
|
|
}, initOverrides);
|
|
|
|
return new runtime.JSONApiResponse(response, (jsonValue) => BrandingOptionsFromJSON(jsonValue));
|
|
}
|
|
|
|
/**
|
|
* Gets branding configuration.
|
|
*/
|
|
async getBrandingOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandingOptions> {
|
|
const response = await this.getBrandingOptionsRaw(initOverrides);
|
|
return await response.value();
|
|
}
|
|
|
|
}
|