chore(ui): regen api client

This commit is contained in:
psychedelicious 2023-04-26 22:15:48 +10:00
parent f34f416bf5
commit 2e54da13d8

View File

@ -14,7 +14,7 @@ export class ImagesService {
/**
* Get Image
* Gets a result
* Gets an image
* @returns any Successful Response
* @throws ApiError
*/
@ -44,6 +44,38 @@ export class ImagesService {
});
}
/**
* Delete Image
* Deletes an image and its thumbnail
* @returns any Successful Response
* @throws ApiError
*/
public static deleteImage({
imageType,
imageName,
}: {
/**
* The type of image to delete
*/
imageType: ImageType,
/**
* The name of the image to delete
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/api/v1/images/{image_type}/{image_name}',
path: {
'image_type': imageType,
'image_name': imageName,
},
errors: {
422: `Validation Error`,
},
});
}
/**
* Get Thumbnail
* Gets a thumbnail
@ -51,24 +83,24 @@ export class ImagesService {
* @throws ApiError
*/
public static getThumbnail({
imageType,
imageName,
thumbnailType,
thumbnailName,
}: {
/**
* The type of image to get
* The type of thumbnail to get
*/
imageType: ImageType,
thumbnailType: ImageType,
/**
* The name of the image to get
* The name of the thumbnail to get
*/
imageName: string,
thumbnailName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/{image_type}/thumbnails/{image_name}',
url: '/api/v1/images/{thumbnail_type}/thumbnails/{thumbnail_name}',
path: {
'image_type': imageType,
'image_name': imageName,
'thumbnail_type': thumbnailType,
'thumbnail_name': thumbnailName,
},
errors: {
422: `Validation Error`,