chore(ui): regen api client

This commit is contained in:
psychedelicious 2023-05-22 19:44:49 +10:00 committed by Kent Keirsey
parent c31ff364ab
commit 74292eba28

View File

@ -15,31 +15,31 @@ import { request as __request } from '../core/request';
export class ImagesService { export class ImagesService {
/** /**
* List Image Records * List Images With Metadata
* Gets a list of image records by type and category * Gets a list of images with metadata
* @returns PaginatedResults_ImageDTO_ Successful Response * @returns PaginatedResults_ImageDTO_ Successful Response
* @throws ApiError * @throws ApiError
*/ */
public static listImageRecords({ public static listImagesWithMetadata({
imageType, imageType,
imageCategory, imageCategory,
page, page,
perPage = 10, perPage = 10,
}: { }: {
/** /**
* The type of image records to get * The type of images to list
*/ */
imageType: ImageType, imageType: ImageType,
/** /**
* The kind of image records to get * The kind of images to list
*/ */
imageCategory: ImageCategory, imageCategory: ImageCategory,
/** /**
* The page of image records to get * The page of image metadata to get
*/ */
page?: number, page?: number,
/** /**
* The number of image records per page * The number of image metadata per page
*/ */
perPage?: number, perPage?: number,
}): CancelablePromise<PaginatedResults_ImageDTO_> { }): CancelablePromise<PaginatedResults_ImageDTO_> {
@ -61,7 +61,7 @@ export class ImagesService {
/** /**
* Upload Image * Upload Image
* Uploads an image * Uploads an image
* @returns any The image was uploaded successfully * @returns ImageDTO The image was uploaded successfully
* @throws ApiError * @throws ApiError
*/ */
public static uploadImage({ public static uploadImage({
@ -72,7 +72,7 @@ export class ImagesService {
imageType: ImageType, imageType: ImageType,
formData: Body_upload_image, formData: Body_upload_image,
imageCategory?: ImageCategory, imageCategory?: ImageCategory,
}): CancelablePromise<any> { }): CancelablePromise<ImageDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'POST', method: 'POST',
url: '/api/v1/images/', url: '/api/v1/images/',
@ -119,27 +119,27 @@ export class ImagesService {
} }
/** /**
* Get Image Record * Get Image Metadata
* Gets an image record by id * Gets an image's metadata
* @returns ImageDTO Successful Response * @returns ImageDTO Successful Response
* @throws ApiError * @throws ApiError
*/ */
public static getImageRecord({ public static getImageMetadata({
imageType, imageType,
imageName, imageName,
}: { }: {
/** /**
* The type of the image record to get * The type of image to get
*/ */
imageType: ImageType, imageType: ImageType,
/** /**
* The id of the image record to get * The name of image to get
*/ */
imageName: string, imageName: string,
}): CancelablePromise<ImageDTO> { }): CancelablePromise<ImageDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_type}/{image_name}/record', url: '/api/v1/images/{image_type}/{image_name}/metadata',
path: { path: {
'image_type': imageType, 'image_type': imageType,
'image_name': imageName, 'image_name': imageName,
@ -151,53 +151,54 @@ export class ImagesService {
} }
/** /**
* Get Image * Get Image Full
* Gets an image * Gets a full-resolution image file
* @returns any Successful Response * @returns any Return the full-resolution image
* @throws ApiError * @throws ApiError
*/ */
public static getImage({ public static getImageFull({
imageType, imageType,
imageName, imageName,
}: { }: {
/** /**
* The type of the image to get * The type of full-resolution image file to get
*/ */
imageType: ImageType, imageType: ImageType,
/** /**
* The id of the image to get * The name of full-resolution image file to get
*/ */
imageName: string, imageName: string,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_type}/{image_name}/image', url: '/api/v1/images/{image_type}/{image_name}/full',
path: { path: {
'image_type': imageType, 'image_type': imageType,
'image_name': imageName, 'image_name': imageName,
}, },
errors: { errors: {
404: `Image not found`,
422: `Validation Error`, 422: `Validation Error`,
}, },
}); });
} }
/** /**
* Get Thumbnail * Get Image Thumbnail
* Gets a thumbnail * Gets a thumbnail image file
* @returns any Successful Response * @returns any Return the image thumbnail
* @throws ApiError * @throws ApiError
*/ */
public static getThumbnail({ public static getImageThumbnail({
imageType, imageType,
imageName, imageName,
}: { }: {
/** /**
* The type of the image whose thumbnail to get * The type of thumbnail image file to get
*/ */
imageType: ImageType, imageType: ImageType,
/** /**
* The id of the image whose thumbnail to get * The name of thumbnail image file to get
*/ */
imageName: string, imageName: string,
}): CancelablePromise<any> { }): CancelablePromise<any> {
@ -209,6 +210,7 @@ export class ImagesService {
'image_name': imageName, 'image_name': imageName,
}, },
errors: { errors: {
404: `Image not found`,
422: `Validation Error`, 422: `Validation Error`,
}, },
}); });
@ -229,7 +231,7 @@ export class ImagesService {
*/ */
imageType: ImageType, imageType: ImageType,
/** /**
* The id of the image whose URL to get * The name of the image whose URL to get
*/ */
imageName: string, imageName: string,
}): CancelablePromise<ImageUrlsDTO> { }): CancelablePromise<ImageUrlsDTO> {