UNPKG

@jellyfin/sdk

Version:
260 lines (259 loc) • 12 kB
/** * 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/. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { BaseItemDto } from '../models'; import type { BaseItemDtoQueryResult } from '../models'; import type { BaseItemKind } from '../models'; import type { ImageType } from '../models'; import type { ItemFields } from '../models'; import type { ItemSortBy } from '../models'; import type { MediaType } from '../models'; import type { SortOrder } from '../models'; /** * YearsApi - axios parameter creator * @export */ export declare const YearsApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Gets a year. * @param {number} year The year. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getYear: (year: number, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @summary Get years. * @param {number} [startIndex] Skips over a given number of items within the results. Use for paging. * @param {number} [limit] Optional. The maximum number of records to return. * @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending. * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. * @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited. * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be included based on item type. This allows multiple, comma delimited. * @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited. * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. * @param {boolean} [enableUserData] Optional. Include user data. * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output. * @param {string} [userId] User Id. * @param {boolean} [recursive] Search recursively. * @param {boolean} [enableImages] Optional. Include image information in output. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getYears: (startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; }; /** * YearsApi - functional programming interface * @export */ export declare const YearsApiFp: (configuration?: Configuration) => { /** * * @summary Gets a year. * @param {number} year The year. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getYear(year: number, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDto>>; /** * * @summary Get years. * @param {number} [startIndex] Skips over a given number of items within the results. Use for paging. * @param {number} [limit] Optional. The maximum number of records to return. * @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending. * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. * @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited. * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be included based on item type. This allows multiple, comma delimited. * @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited. * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. * @param {boolean} [enableUserData] Optional. Include user data. * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output. * @param {string} [userId] User Id. * @param {boolean} [recursive] Search recursively. * @param {boolean} [enableImages] Optional. Include image information in output. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getYears(startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>; }; /** * YearsApi - factory interface * @export */ export declare const YearsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary Gets a year. * @param {YearsApiGetYearRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getYear(requestParameters: YearsApiGetYearRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDto>; /** * * @summary Get years. * @param {YearsApiGetYearsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getYears(requestParameters?: YearsApiGetYearsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDtoQueryResult>; }; /** * Request parameters for getYear operation in YearsApi. * @export * @interface YearsApiGetYearRequest */ export interface YearsApiGetYearRequest { /** * The year. * @type {number} * @memberof YearsApiGetYear */ readonly year: number; /** * Optional. Filter by user id, and attach user data. * @type {string} * @memberof YearsApiGetYear */ readonly userId?: string; } /** * Request parameters for getYears operation in YearsApi. * @export * @interface YearsApiGetYearsRequest */ export interface YearsApiGetYearsRequest { /** * Skips over a given number of items within the results. Use for paging. * @type {number} * @memberof YearsApiGetYears */ readonly startIndex?: number; /** * Optional. The maximum number of records to return. * @type {number} * @memberof YearsApiGetYears */ readonly limit?: number; /** * Sort Order - Ascending,Descending. * @type {Array<SortOrder>} * @memberof YearsApiGetYears */ readonly sortOrder?: Array<SortOrder>; /** * Specify this to localize the search to a specific item or folder. Omit to use the root. * @type {string} * @memberof YearsApiGetYears */ readonly parentId?: string; /** * Optional. Specify additional fields of information to return in the output. * @type {Array<ItemFields>} * @memberof YearsApiGetYears */ readonly fields?: Array<ItemFields>; /** * Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited. * @type {Array<BaseItemKind>} * @memberof YearsApiGetYears */ readonly excludeItemTypes?: Array<BaseItemKind>; /** * Optional. If specified, results will be included based on item type. This allows multiple, comma delimited. * @type {Array<BaseItemKind>} * @memberof YearsApiGetYears */ readonly includeItemTypes?: Array<BaseItemKind>; /** * Optional. Filter by MediaType. Allows multiple, comma delimited. * @type {Array<MediaType>} * @memberof YearsApiGetYears */ readonly mediaTypes?: Array<MediaType>; /** * Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. * @type {Array<ItemSortBy>} * @memberof YearsApiGetYears */ readonly sortBy?: Array<ItemSortBy>; /** * Optional. Include user data. * @type {boolean} * @memberof YearsApiGetYears */ readonly enableUserData?: boolean; /** * Optional. The max number of images to return, per image type. * @type {number} * @memberof YearsApiGetYears */ readonly imageTypeLimit?: number; /** * Optional. The image types to include in the output. * @type {Array<ImageType>} * @memberof YearsApiGetYears */ readonly enableImageTypes?: Array<ImageType>; /** * User Id. * @type {string} * @memberof YearsApiGetYears */ readonly userId?: string; /** * Search recursively. * @type {boolean} * @memberof YearsApiGetYears */ readonly recursive?: boolean; /** * Optional. Include image information in output. * @type {boolean} * @memberof YearsApiGetYears */ readonly enableImages?: boolean; } /** * YearsApi - object-oriented interface * @export * @class YearsApi * @extends {BaseAPI} */ export declare class YearsApi extends BaseAPI { /** * * @summary Gets a year. * @param {YearsApiGetYearRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YearsApi */ getYear(requestParameters: YearsApiGetYearRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDto, any>>; /** * * @summary Get years. * @param {YearsApiGetYearsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YearsApi */ getYears(requestParameters?: YearsApiGetYearsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any>>; }