Skip to content

Commit

Permalink
fix(client): generate using legacy fetch
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Shatford <[email protected]>
  • Loading branch information
jordanshatford committed Sep 16, 2024
1 parent 3efbf70 commit 620e96b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 233 deletions.
2 changes: 1 addition & 1 deletion packages/client/openapi-ts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from '@hey-api/openapi-ts';
import input from '@yd/api';

export default defineConfig({
client: 'fetch',
client: 'legacy/fetch',
input,
output: {
format: 'prettier',
Expand Down
232 changes: 0 additions & 232 deletions packages/client/src/generated/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,235 +159,3 @@ export type GetDownloadFileData = {
};

export type GetDownloadFileResponse = Blob | File;

export type $OpenApiTs = {
'/search': {
get: {
req: GetSearchData;
res: {
/**
* Successful Response
*/
200: Array<Video>;
/**
* Forbidden
*/
403: unknown;
/**
* Not Found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
};
};
};
'/search/next': {
get: {
res: {
/**
* Successful Response
*/
200: Array<Video>;
/**
* Forbidden
*/
403: unknown;
/**
* Not Found
*/
404: unknown;
};
};
};
'/search/video': {
get: {
req: GetVideoData;
res: {
/**
* Successful Response
*/
200: Video;
/**
* Forbidden
*/
403: unknown;
/**
* Not Found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
};
};
};
'/session': {
get: {
res: {
/**
* Successful Response
*/
200: Session;
};
};
delete: {
res: {
/**
* Successful Response
*/
204: void;
/**
* Forbidden
*/
403: unknown;
};
};
};
'/session/validate': {
get: {
res: {
/**
* Successful Response
*/
200: Session;
/**
* Forbidden
*/
403: unknown;
};
};
};
'/downloads': {
get: {
res: {
/**
* Successful Response
*/
200: Array<Download>;
/**
* Forbidden
*/
403: unknown;
};
};
put: {
req: PutDownloadsData;
res: {
/**
* Successful Response
*/
200: Download;
/**
* Forbidden
*/
403: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
};
};
post: {
req: PostDownloadsData;
res: {
/**
* Successful Response
*/
201: Download;
/**
* Forbidden
*/
403: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
};
};
};
'/downloads/options': {
get: {
res: {
/**
* Successful Response
*/
200: AvailableDownloadOptions;
/**
* Forbidden
*/
403: unknown;
};
};
};
'/downloads/{download_id}': {
get: {
req: GetDownloadData;
res: {
/**
* Successful Response
*/
200: Download;
/**
* Forbidden
*/
403: unknown;
/**
* Not Found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
};
};
delete: {
req: DeleteDownloadData;
res: {
/**
* Successful Response
*/
204: void;
/**
* Forbidden
*/
403: unknown;
/**
* Not Found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
};
};
};
'/downloads/{download_id}/file': {
get: {
req: GetDownloadFileData;
res: {
/**
* Successful Response
*/
200: Blob | File;
/**
* Forbidden
*/
403: unknown;
/**
* Not Found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
};
};
};
};

0 comments on commit 620e96b

Please sign in to comment.