From 49d4d3ce97d3c2a15a3dc6f5fe786ddbae2cb445 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 19 Apr 2022 15:49:50 +0800 Subject: [PATCH] fix: add missing resent invite api Signed-off-by: Wing-Kam Wong --- packages/nocodb-sdk/src/lib/Api.ts | 23 +++++++++++++++ scripts/sdk/swagger.json | 47 +++++++++++++++++++++++++++++- 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index ebd9e89a0d..a8dbeb7f4f 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -1063,6 +1063,29 @@ export class Api< format: 'json', ...params, }), + + /** + * @description Resend Invitation to a specific user + * + * @tags Auth + * @name ProjectUserResendInvite + * @request POST:/api/v1/db/meta/projects/{projectId}/users/{userId}/resend-invite + * @response `200` `any` OK + */ + projectUserResendInvite: ( + projectId: string, + userId: string, + data: any, + params: RequestParams = {} + ) => + this.request({ + path: `/api/v1/db/meta/projects/${projectId}/users/${userId}/resend-invite`, + method: 'POST', + body: data, + type: ContentType.Json, + format: 'json', + ...params, + }), }; project = { /** diff --git a/scripts/sdk/swagger.json b/scripts/sdk/swagger.json index 42971ea634..d63ba0e38d 100644 --- a/scripts/sdk/swagger.json +++ b/scripts/sdk/swagger.json @@ -4821,6 +4821,51 @@ } ] } + }, + "/api/v1/db/meta/projects/{projectId}/users/{userId}/resend-invite": { + "parameters": [ + { + "schema": { + "type": "string" + }, + "name": "projectId", + "in": "path", + "required": true + }, + { + "schema": { + "type": "string" + }, + "name": "userId", + "in": "path", + "required": true + } + ], + "post": { + "summary": "", + "operationId": "auth-project-user-resend-invite", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": {} + } + } + } + }, + "tags": [ + "Auth" + ], + "description": "Resend Invitation to a specific user", + "requestBody": { + "content": { + "application/json": { + "schema": {} + } + } + } + } } }, "components": { @@ -7718,4 +7763,4 @@ } } } -} +} \ No newline at end of file