From a09e54cd0fc2e145f0adaeaa68bea5fd454d1948 Mon Sep 17 00:00:00 2001 From: Jordan Shatford Date: Wed, 21 Feb 2024 09:53:43 +1100 Subject: [PATCH] chore(client): use fork of openapi-typescript-codegen This is more up to date. Signed-off-by: Jordan Shatford --- apps/api/openapi.json | 6 ++-- packages/client/package.json | 2 +- .../generated/services/DownloadsService.ts | 2 +- .../src/generated/services/SessionService.ts | 2 +- pnpm-lock.yaml | 28 +++++++++---------- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/apps/api/openapi.json b/apps/api/openapi.json index 502d17d5..3f75aa22 100644 --- a/apps/api/openapi.json +++ b/apps/api/openapi.json @@ -1,14 +1,14 @@ { "openapi": "3.1.0", "info": { - "title": "youtube-downloader-api", + "title": "@yd/api", "summary": "API to search and download YouTube videos in various formats.", "contact": { - "name": "Jordan Shatford", + "name": "GitHub", "url": "https://github.com/jordanshatford/youtube-downloader" }, "license": { - "name": "MIT License", + "name": "MIT", "url": "https://github.com/jordanshatford/youtube-downloader/blob/main/LICENSE" }, "version": "1.0.0" diff --git a/packages/client/package.json b/packages/client/package.json index 47ca2fca..24a552cd 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -12,8 +12,8 @@ "format": "prettier --write ." }, "devDependencies": { + "@nicolas-chaulet/openapi-typescript-codegen": "^0.27.9", "@yd/config": "workspace:*", - "openapi-typescript-codegen": "^0.27.0", "typescript": "^5.3.3" } } diff --git a/packages/client/src/generated/services/DownloadsService.ts b/packages/client/src/generated/services/DownloadsService.ts index 74f84e77..180d49d0 100644 --- a/packages/client/src/generated/services/DownloadsService.ts +++ b/packages/client/src/generated/services/DownloadsService.ts @@ -102,7 +102,7 @@ export class DownloadsService { /** * Delete Download * @param downloadId - * @returns void + * @returns void Successful Response * @throws ApiError */ public static deleteDownload( diff --git a/packages/client/src/generated/services/SessionService.ts b/packages/client/src/generated/services/SessionService.ts index b8ee992f..1f53c7ef 100644 --- a/packages/client/src/generated/services/SessionService.ts +++ b/packages/client/src/generated/services/SessionService.ts @@ -20,7 +20,7 @@ export class SessionService { } /** * Delete Session - * @returns void + * @returns void Successful Response * @throws ApiError */ public static deleteSession(): CancelablePromise { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8c7ab06b..39d6eb1f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -129,12 +129,12 @@ importers: packages/client: devDependencies: + '@nicolas-chaulet/openapi-typescript-codegen': + specifier: ^0.27.9 + version: 0.27.9 '@yd/config': specifier: workspace:* version: link:../config - openapi-typescript-codegen: - specifier: ^0.27.0 - version: 0.27.0 typescript: specifier: ^5.3.3 version: 5.3.3 @@ -994,6 +994,17 @@ packages: read-yaml-file: 1.1.0 dev: true + /@nicolas-chaulet/openapi-typescript-codegen@0.27.9: + resolution: {integrity: sha512-uH9D0VVIgWK9d8EaVwoOqwdoqLX026oTwkqwNnITjpCj7rnCLlHQ3KOKpiDro12zzkp6KQG/DHNVhcJhi2qHiA==} + hasBin: true + dependencies: + '@apidevtools/json-schema-ref-parser': 10.1.0 + camelcase: 6.3.0 + commander: 11.1.0 + fs-extra: 11.2.0 + handlebars: 4.7.8 + dev: true + /@nodelib/fs.scandir@2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -4764,17 +4775,6 @@ packages: is-wsl: 2.2.0 dev: true - /openapi-typescript-codegen@0.27.0: - resolution: {integrity: sha512-QyQEod/vuel3zfnTRC3GgmYsqLPSBzB2OL4ojMYjO9hJmfYW02T+7tbQWEnuqWdhh2KSOBf3L8h59vLStr6vwA==} - hasBin: true - dependencies: - '@apidevtools/json-schema-ref-parser': 10.1.0 - camelcase: 6.3.0 - commander: 11.1.0 - fs-extra: 11.2.0 - handlebars: 4.7.8 - dev: true - /optionator@0.9.3: resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} engines: {node: '>= 0.8.0'}