From e8d3a077652b3f14fa46313575e8291407ff449e Mon Sep 17 00:00:00 2001 From: choucw045 Date: Wed, 8 Jan 2025 12:39:52 +0800 Subject: [PATCH] generateTypeScript --- .../services/RestNotebookControllerService.ts | 24 +++++++++---------- .../RestObsidianImportControllerService.ts | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/frontend/src/generated/backend/services/RestNotebookControllerService.ts b/frontend/src/generated/backend/services/RestNotebookControllerService.ts index 79efa95de..9f897859a 100644 --- a/frontend/src/generated/backend/services/RestNotebookControllerService.ts +++ b/frontend/src/generated/backend/services/RestNotebookControllerService.ts @@ -173,15 +173,15 @@ export class RestNotebookControllerService { } /** * @param notebook - * @returns Note OK + * @returns string OK * @throws ApiError */ - public getNotes( + public downloadNotebookForObsidian( notebook: number, - ): CancelablePromise> { + ): CancelablePromise { return this.httpRequest.request({ method: 'GET', - url: '/api/notebooks/{notebook}/notes', + url: '/api/notebooks/{notebook}/obsidian', path: { 'notebook': notebook, }, @@ -192,15 +192,15 @@ export class RestNotebookControllerService { } /** * @param notebook - * @returns BareNote OK + * @returns Note OK * @throws ApiError */ - public downloadNotebookDump( + public getNotes( notebook: number, - ): CancelablePromise> { + ): CancelablePromise> { return this.httpRequest.request({ method: 'GET', - url: '/api/notebooks/{notebook}/dump', + url: '/api/notebooks/{notebook}/notes', path: { 'notebook': notebook, }, @@ -211,15 +211,15 @@ export class RestNotebookControllerService { } /** * @param notebook - * @returns string OK + * @returns BareNote OK * @throws ApiError */ - public downloadForObsidian( + public downloadNotebookDump( notebook: number, - ): CancelablePromise { + ): CancelablePromise> { return this.httpRequest.request({ method: 'GET', - url: '/api/notebooks/{notebook}/download-zip', + url: '/api/notebooks/{notebook}/dump', path: { 'notebook': notebook, }, diff --git a/frontend/src/generated/backend/services/RestObsidianImportControllerService.ts b/frontend/src/generated/backend/services/RestObsidianImportControllerService.ts index 8cb9bb4d7..be9e2fdf2 100644 --- a/frontend/src/generated/backend/services/RestObsidianImportControllerService.ts +++ b/frontend/src/generated/backend/services/RestObsidianImportControllerService.ts @@ -25,8 +25,8 @@ export class RestObsidianImportControllerService { path: { 'parentNoteId': parentNoteId, }, - formData: requestBody, - mediaType: 'multipart/form-data', + body: requestBody, + mediaType: 'application/json', errors: { 500: `Internal Server Error`, },