From d18077c00ad118b02bc9171a7179ce7aa0edb378 Mon Sep 17 00:00:00 2001 From: Jordan Shatford Date: Tue, 9 Apr 2024 12:25:15 +1000 Subject: [PATCH] chore(client): generate using latest version Signed-off-by: Jordan Shatford --- apps/api/api.d.ts | 4 -- packages/client/client.d.ts | 4 ++ packages/client/openapi-ts.config.ts | 2 +- packages/client/package.json | 2 +- packages/client/src/generated/models.ts | 55 +++++++++++++++++ packages/client/src/generated/services.ts | 73 ++++++++++------------- pnpm-lock.yaml | 8 +-- 7 files changed, 96 insertions(+), 52 deletions(-) delete mode 100644 apps/api/api.d.ts create mode 100644 packages/client/client.d.ts diff --git a/apps/api/api.d.ts b/apps/api/api.d.ts deleted file mode 100644 index d66f7e89..00000000 --- a/apps/api/api.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module '@yd/api' { - const json: any; - export default json; -} diff --git a/packages/client/client.d.ts b/packages/client/client.d.ts new file mode 100644 index 00000000..ac0d131c --- /dev/null +++ b/packages/client/client.d.ts @@ -0,0 +1,4 @@ +declare module '@yd/api' { + const json: any; + export default json; +} diff --git a/packages/client/openapi-ts.config.ts b/packages/client/openapi-ts.config.ts index d58650f6..dd365584 100644 --- a/packages/client/openapi-ts.config.ts +++ b/packages/client/openapi-ts.config.ts @@ -6,5 +6,5 @@ export default defineConfig({ output: './src/generated', client: 'fetch', enums: 'javascript', - exportSchemas: false + schemas: false }); diff --git a/packages/client/package.json b/packages/client/package.json index 28f3c0ba..5f0d5031 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -13,7 +13,7 @@ "format": "prettier --write ." }, "devDependencies": { - "@hey-api/openapi-ts": "^0.35.0", + "@hey-api/openapi-ts": "^0.36.2", "@yd/api": "workspace:*", "@yd/config": "workspace:*", "prettier": "^3.2.5", diff --git a/packages/client/src/generated/models.ts b/packages/client/src/generated/models.ts index 39131691..7015ee80 100644 --- a/packages/client/src/generated/models.ts +++ b/packages/client/src/generated/models.ts @@ -103,3 +103,58 @@ export const VideoFormatEnum = { MP4: 'mp4', WEBM: 'webm' } as const; + +export type SearchData = { + payloads: { + GetSearch: { + query: string; + }; + GetVideo: { + id: string; + }; + }; + + responses: { + GetSearch: Array