chore(ui): regenerate api client

This commit is contained in:
psychedelicious 2023-04-03 18:56:59 +10:00
parent 5a9157e628
commit 7ff50796e5
3 changed files with 36 additions and 2 deletions

View File

@ -9,10 +9,10 @@ export type ImageField = {
/**
* The type of the image
*/
image_type?: string;
image_type: string;
/**
* The name of the image
*/
image_name?: string;
image_name: string;
};

View File

@ -7,10 +7,12 @@ export const $ImageField = {
image_type: {
type: 'string',
description: `The type of the image`,
isRequired: true,
},
image_name: {
type: 'string',
description: `The name of the image`,
isRequired: true,
},
},
} as const;

View File

@ -42,6 +42,38 @@ export class ImagesService {
});
}
/**
* Get Thumbnail
* Gets a thumbnail
* @returns any Successful Response
* @throws ApiError
*/
public static getThumbnail({
imageType,
imageName,
}: {
/**
* The type of image to get
*/
imageType: ImageType,
/**
* The name of the image to get
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/{image_type}/thumbnails/{image_name}',
path: {
'image_type': imageType,
'image_name': imageName,
},
errors: {
422: `Validation Error`,
},
});
}
/**
* Upload Image
* @returns any Successful Response