From 959a04844414ad8e11c6ca13c44f5daf359f99ba Mon Sep 17 00:00:00 2001 From: csgulati09 Date: Sat, 14 Dec 2024 13:28:24 +0530 Subject: [PATCH] feat: user invite resend --- src/apis/admin.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/apis/admin.ts b/src/apis/admin.ts index 1b05aa7..6a74681 100644 --- a/src/apis/admin.ts +++ b/src/apis/admin.ts @@ -376,6 +376,26 @@ export class Invites extends ApiResource { ); return response; } + + resend( + _body: UserInviteGetParams, + params?: ApiClientInterface, + opts?: RequestOptions + ): APIPromise { + const body = _body; + const inviteId = body.inviteId; + if (params) { + this.client.customHeaders = { + ...this.client.customHeaders, + ...createHeaders({ ...params }), + }; + } + + const response = this.post(`/admin/users/invites/${inviteId}/resend`, { + ...opts, + }); + return response; + } } export class Workspaces extends ApiResource {