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 * Get Image
* Gets a result * Gets an image
* @returns any Successful Response * @returns any Successful Response
* @throws ApiError * @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 * Get Thumbnail
* Gets a thumbnail * Gets a thumbnail
@ -51,24 +83,24 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static getThumbnail({ public static getThumbnail({
imageType, thumbnailType,
imageName, 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> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_type}/thumbnails/{image_name}', url: '/api/v1/images/{thumbnail_type}/thumbnails/{thumbnail_name}',
path: { path: {
'image_type': imageType, 'thumbnail_type': thumbnailType,
'image_name': imageName, 'thumbnail_name': thumbnailName,
}, },
errors: { errors: {
422: `Validation Error`, 422: `Validation Error`,