Skip to content

Commit

Permalink
fix: The remove word has been replaced with delete
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-pareek committed Oct 5, 2024
1 parent db23710 commit 392e18c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/apis/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -79,7 +81,7 @@ export interface UserInviteListResponse extends APIResponseType {
data?: UserInviteGetResponse[]
}

export interface UserInviteRemoveParams {
export interface UserInviteDeleteParams {
inviteId?: string,
}

Expand Down Expand Up @@ -147,7 +149,7 @@ export interface WorkspacesUpdateResponse extends APIResponseType {
object?: string,
}

export interface WorkspacesRemoveParams{
export interface WorkspacesDeleteParams{
workspaceId?: string;
name?: string;
}
Expand Down Expand Up @@ -190,7 +192,7 @@ export interface WorkspaceMemberListResponse extends APIResponseType {
data?: WorkspaceMemberGetResponse[]
}

export interface WorkspaceMemberRemoveParams{
export interface WorkspaceMemberDeleteParams{
workspaceId?: string,
userId?: string,
}
Expand Down Expand Up @@ -277,8 +279,8 @@ export class Users extends ApiResource {
return response;
}

remove(
_body: UsersGetParams,
delete(
_body: UsersDeleteParams,
params?: ApiClientInterface,
opts?: RequestOptions
): APIPromise<any> {
Expand Down Expand Up @@ -338,7 +340,7 @@ export class Invites extends ApiResource {
}

delete(
_body: UserInviteRemoveParams,
_body: UserInviteDeleteParams,
params?: ApiClientInterface,
opts?: RequestOptions
): APIPromise<any> {
Expand Down Expand Up @@ -416,7 +418,7 @@ export class Workspaces extends ApiResource {
}

delete(
_body: WorkspacesRemoveParams,
_body: WorkspacesDeleteParams,
params?: ApiClientInterface,
opts?: RequestOptions
): APIPromise<any> {
Expand Down Expand Up @@ -475,8 +477,8 @@ export class Member extends ApiResource {
return response;
}

remove(
_body: WorkspaceMemberRemoveParams,
delete(
_body: WorkspaceMemberDeleteParams,
params?: ApiClientInterface,
opts?: RequestOptions
): APIPromise<any> {
Expand Down

0 comments on commit 392e18c

Please sign in to comment.