From 392e18cfd241ed12a648253b27431122626c9be4 Mon Sep 17 00:00:00 2001 From: shivam-pareek Date: Sat, 5 Oct 2024 19:30:14 +0530 Subject: [PATCH] fix: The remove word has been replaced with delete --- src/apis/admin.ts | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/apis/admin.ts b/src/apis/admin.ts index bb640b2..054ee4b 100644 --- a/src/apis/admin.ts +++ b/src/apis/admin.ts @@ -36,7 +36,9 @@ export interface UsersUpdateParams{ userId?: string, role?: "admin" | "member" | any, } - +export interface UsersDeleteParams{ + userId?: string; +} export interface UserInviteParams{ email?: string, role?: string, @@ -79,7 +81,7 @@ export interface UserInviteListResponse extends APIResponseType { data?: UserInviteGetResponse[] } -export interface UserInviteRemoveParams { +export interface UserInviteDeleteParams { inviteId?: string, } @@ -147,7 +149,7 @@ export interface WorkspacesUpdateResponse extends APIResponseType { object?: string, } -export interface WorkspacesRemoveParams{ +export interface WorkspacesDeleteParams{ workspaceId?: string; name?: string; } @@ -190,7 +192,7 @@ export interface WorkspaceMemberListResponse extends APIResponseType { data?: WorkspaceMemberGetResponse[] } -export interface WorkspaceMemberRemoveParams{ +export interface WorkspaceMemberDeleteParams{ workspaceId?: string, userId?: string, } @@ -277,8 +279,8 @@ export class Users extends ApiResource { return response; } - remove( - _body: UsersGetParams, + delete( + _body: UsersDeleteParams, params?: ApiClientInterface, opts?: RequestOptions ): APIPromise { @@ -338,7 +340,7 @@ export class Invites extends ApiResource { } delete( - _body: UserInviteRemoveParams, + _body: UserInviteDeleteParams, params?: ApiClientInterface, opts?: RequestOptions ): APIPromise { @@ -416,7 +418,7 @@ export class Workspaces extends ApiResource { } delete( - _body: WorkspacesRemoveParams, + _body: WorkspacesDeleteParams, params?: ApiClientInterface, opts?: RequestOptions ): APIPromise { @@ -475,8 +477,8 @@ export class Member extends ApiResource { return response; } - remove( - _body: WorkspaceMemberRemoveParams, + delete( + _body: WorkspaceMemberDeleteParams, params?: ApiClientInterface, opts?: RequestOptions ): APIPromise {