Skip to content

Commit

Permalink
Merge pull request #832 from jellyfin/openapi-update-0
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill authored Nov 17, 2024
2 parents 8f77002 + a8118a0 commit 173a477
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
4 changes: 2 additions & 2 deletions openapi.json
Git LFS file not shown
23 changes: 18 additions & 5 deletions src/generated-client/api/item-refresh-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ export const ItemRefreshApiAxiosParamCreator = function (configuration?: Configu
* @param {MetadataRefreshMode} [imageRefreshMode] (Optional) Specifies the image refresh mode.
* @param {boolean} [replaceAllMetadata] (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh.
* @param {boolean} [replaceAllImages] (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh.
* @param {boolean} [regenerateTrickplay] (Optional) Determines if trickplay images should be replaced. Only applicable if mode is FullRefresh.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
refreshItem: async (itemId: string, metadataRefreshMode?: MetadataRefreshMode, imageRefreshMode?: MetadataRefreshMode, replaceAllMetadata?: boolean, replaceAllImages?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
refreshItem: async (itemId: string, metadataRefreshMode?: MetadataRefreshMode, imageRefreshMode?: MetadataRefreshMode, replaceAllMetadata?: boolean, replaceAllImages?: boolean, regenerateTrickplay?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'itemId' is not null or undefined
assertParamExists('refreshItem', 'itemId', itemId)
const localVarPath = `/Items/{itemId}/Refresh`
Expand Down Expand Up @@ -76,6 +77,10 @@ export const ItemRefreshApiAxiosParamCreator = function (configuration?: Configu
localVarQueryParameter['replaceAllImages'] = replaceAllImages;
}

if (regenerateTrickplay !== undefined) {
localVarQueryParameter['regenerateTrickplay'] = regenerateTrickplay;
}



setSearchParams(localVarUrlObj, localVarQueryParameter);
Expand Down Expand Up @@ -105,11 +110,12 @@ export const ItemRefreshApiFp = function(configuration?: Configuration) {
* @param {MetadataRefreshMode} [imageRefreshMode] (Optional) Specifies the image refresh mode.
* @param {boolean} [replaceAllMetadata] (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh.
* @param {boolean} [replaceAllImages] (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh.
* @param {boolean} [regenerateTrickplay] (Optional) Determines if trickplay images should be replaced. Only applicable if mode is FullRefresh.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async refreshItem(itemId: string, metadataRefreshMode?: MetadataRefreshMode, imageRefreshMode?: MetadataRefreshMode, replaceAllMetadata?: boolean, replaceAllImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshItem(itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, options);
async refreshItem(itemId: string, metadataRefreshMode?: MetadataRefreshMode, imageRefreshMode?: MetadataRefreshMode, replaceAllMetadata?: boolean, replaceAllImages?: boolean, regenerateTrickplay?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshItem(itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, regenerateTrickplay, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['ItemRefreshApi.refreshItem']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
Expand All @@ -132,7 +138,7 @@ export const ItemRefreshApiFactory = function (configuration?: Configuration, ba
* @throws {RequiredError}
*/
refreshItem(requestParameters: ItemRefreshApiRefreshItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, options).then((request) => request(axios, basePath));
return localVarFp.refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, requestParameters.regenerateTrickplay, options).then((request) => request(axios, basePath));
},
};
};
Expand Down Expand Up @@ -177,6 +183,13 @@ export interface ItemRefreshApiRefreshItemRequest {
* @memberof ItemRefreshApiRefreshItem
*/
readonly replaceAllImages?: boolean

/**
* (Optional) Determines if trickplay images should be replaced. Only applicable if mode is FullRefresh.
* @type {boolean}
* @memberof ItemRefreshApiRefreshItem
*/
readonly regenerateTrickplay?: boolean
}

/**
Expand All @@ -195,7 +208,7 @@ export class ItemRefreshApi extends BaseAPI {
* @memberof ItemRefreshApi
*/
public refreshItem(requestParameters: ItemRefreshApiRefreshItemRequest, options?: RawAxiosRequestConfig) {
return ItemRefreshApiFp(this.configuration).refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, options).then((request) => request(this.axios, this.basePath));
return ItemRefreshApiFp(this.configuration).refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, requestParameters.regenerateTrickplay, options).then((request) => request(this.axios, this.basePath));
}
}

2 changes: 1 addition & 1 deletion src/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/** The current API version of the generated client. */
export const API_VERSION = '10.10.1';
export const API_VERSION = '10.10.2';

/** The minimum supported server version. */
export const MINIMUM_VERSION = '10.9.0';

0 comments on commit 173a477

Please sign in to comment.