mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
Automated build 'Merge branch 'main' of https://github.com/LukeHagar/plex-api-spec' typescript-axios sdk: 5159662646
This commit is contained in:
@@ -2601,6 +2601,64 @@ export const LibraryApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: toPathString(localVarUrlObj),
|
||||||
|
axiosOptions: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* This endpoint will return the children of of a library item specified with the ratingKey.
|
||||||
|
* @summary Get Items Children
|
||||||
|
* @param {any} ratingKey the id of the library item to return the children of.
|
||||||
|
* @param {*} [axiosOptions] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getMetadataChildren: async (ratingKey: any, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
// verify required parameter 'ratingKey' is not null or undefined
|
||||||
|
assertParamExists('getMetadataChildren', 'ratingKey', ratingKey)
|
||||||
|
const localVarPath = `/library/metadata/{ratingKey}/children`
|
||||||
|
.replace(`{${"ratingKey"}}`, encodeURIComponent(String(ratingKey)));
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
// authentication ClientIdentifier required
|
||||||
|
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration)
|
||||||
|
|
||||||
|
// authentication Device required
|
||||||
|
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device", configuration)
|
||||||
|
|
||||||
|
// authentication DeviceName required
|
||||||
|
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration)
|
||||||
|
|
||||||
|
// authentication Platform required
|
||||||
|
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Platform", configuration)
|
||||||
|
|
||||||
|
// authentication PlatformVersion required
|
||||||
|
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Platform-Version", configuration)
|
||||||
|
|
||||||
|
// authentication Product required
|
||||||
|
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Product", configuration)
|
||||||
|
|
||||||
|
// authentication Token required
|
||||||
|
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||||
|
|
||||||
|
// authentication Version required
|
||||||
|
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Version", configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
||||||
@@ -2858,6 +2916,17 @@ export const LibraryApiFp = function(configuration?: Configuration) {
|
|||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryItems(sectionId, type, filter, axiosOptions);
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryItems(sectionId, type, filter, axiosOptions);
|
||||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* This endpoint will return the children of of a library item specified with the ratingKey.
|
||||||
|
* @summary Get Items Children
|
||||||
|
* @param {any} ratingKey the id of the library item to return the children of.
|
||||||
|
* @param {*} [axiosOptions] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async getMetadataChildren(ratingKey: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getMetadataChildren(ratingKey, axiosOptions);
|
||||||
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* This endpoint will return the on deck content.
|
* This endpoint will return the on deck content.
|
||||||
* @summary Get On Deck
|
* @summary Get On Deck
|
||||||
@@ -2965,6 +3034,16 @@ export const LibraryApiFactory = function (configuration?: Configuration, basePa
|
|||||||
getLibraryItems(sectionId: any, type?: any, filter?: any, axiosOptions?: any): AxiosPromise<void> {
|
getLibraryItems(sectionId: any, type?: any, filter?: any, axiosOptions?: any): AxiosPromise<void> {
|
||||||
return localVarFp.getLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath));
|
return localVarFp.getLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* This endpoint will return the children of of a library item specified with the ratingKey.
|
||||||
|
* @summary Get Items Children
|
||||||
|
* @param {any} ratingKey the id of the library item to return the children of.
|
||||||
|
* @param {*} [axiosOptions] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getMetadataChildren(ratingKey: any, axiosOptions?: any): AxiosPromise<void> {
|
||||||
|
return localVarFp.getMetadataChildren(ratingKey, axiosOptions).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* This endpoint will return the on deck content.
|
* This endpoint will return the on deck content.
|
||||||
* @summary Get On Deck
|
* @summary Get On Deck
|
||||||
@@ -3115,6 +3194,20 @@ export interface LibraryApiGetLibraryItemsRequest {
|
|||||||
readonly filter?: any
|
readonly filter?: any
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request parameters for getMetadataChildren operation in LibraryApi.
|
||||||
|
* @export
|
||||||
|
* @interface LibraryApiGetMetadataChildrenRequest
|
||||||
|
*/
|
||||||
|
export interface LibraryApiGetMetadataChildrenRequest {
|
||||||
|
/**
|
||||||
|
* the id of the library item to return the children of.
|
||||||
|
* @type {any}
|
||||||
|
* @memberof LibraryApiGetMetadataChildren
|
||||||
|
*/
|
||||||
|
readonly ratingKey: any
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request parameters for refreshLibrary operation in LibraryApi.
|
* Request parameters for refreshLibrary operation in LibraryApi.
|
||||||
* @export
|
* @export
|
||||||
@@ -3207,6 +3300,18 @@ export class LibraryApi extends BaseAPI {
|
|||||||
return LibraryApiFp(this.configuration).getLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath));
|
return LibraryApiFp(this.configuration).getLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This endpoint will return the children of of a library item specified with the ratingKey.
|
||||||
|
* @summary Get Items Children
|
||||||
|
* @param {LibraryApiGetMetadataChildrenRequest} requestParameters Request parameters.
|
||||||
|
* @param {*} [axiosOptions] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof LibraryApi
|
||||||
|
*/
|
||||||
|
public getMetadataChildren(requestParameters: LibraryApiGetMetadataChildrenRequest, axiosOptions?: AxiosRequestConfig) {
|
||||||
|
return LibraryApiFp(this.configuration).getMetadataChildren(requestParameters.ratingKey, axiosOptions).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This endpoint will return the on deck content.
|
* This endpoint will return the on deck content.
|
||||||
* @summary Get On Deck
|
* @summary Get On Deck
|
||||||
|
|||||||
Reference in New Issue
Block a user