Skip to content

Commit

Permalink
sh run.sh gen_api run
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Nov 17, 2023
1 parent 15906ae commit 11b9faf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions frontend/src/openapi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type { OpenAPIConfig } from './core/OpenAPI';
export type { HTTPValidationError } from './models/HTTPValidationError';
export type { ProteinEntry } from './models/ProteinEntry';
export type { UploadBody } from './models/UploadBody';
export { UploadError } from './models/UploadError';
export type { ValidationError } from './models/ValidationError';

export { DefaultService } from './services/DefaultService';
1 change: 0 additions & 1 deletion frontend/src/openapi/models/ProteinEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
export type ProteinEntry = {
name: string;
id: string;
filePDBAlphaFold: string;
length: number;
mass: number;
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/openapi/models/UploadBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* eslint-disable */

export type UploadBody = {
name: string;
pdbFileBase64: string;
pdbFileName: string;
};

11 changes: 11 additions & 0 deletions frontend/src/openapi/models/UploadError.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export enum UploadError {
NAME_NOT_UNIQUE = 'NAME_NOT_UNIQUE',
PARSE_ERROR = 'PARSE_ERROR',
WRITE_ERROR = 'WRITE_ERROR',
QUERY_ERROR = 'QUERY_ERROR',
}
3 changes: 2 additions & 1 deletion frontend/src/openapi/services/DefaultService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/* eslint-disable */
import type { ProteinEntry } from '../models/ProteinEntry';
import type { UploadBody } from '../models/UploadBody';
import type { UploadError } from '../models/UploadError';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
Expand Down Expand Up @@ -56,7 +57,7 @@ export class DefaultService {
*/
public static uploadProteinEntry(
requestBody: UploadBody,
): CancelablePromise<any> {
): CancelablePromise<(UploadError | null)> {
return __request(OpenAPI, {
method: 'POST',
url: '/protein-upload',
Expand Down

0 comments on commit 11b9faf

Please sign in to comment.