Skip to content

Commit

Permalink
Add missing options to gdpr (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas authored Feb 2, 2021
1 parent e5012c3 commit c0d5752
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,11 @@ export class StreamChat<

async deleteUser(
userID: string,
params?: { hard_delete?: boolean; mark_messages_deleted?: boolean },
params?: {
delete_conversation_channels?: boolean;
hard_delete?: boolean;
mark_messages_deleted?: boolean;
},
) {
return await this.delete<
APIResponse & {
Expand All @@ -1875,7 +1879,7 @@ export class StreamChat<

async reactivateUser(
userID: string,
options?: { name?: string; restore_messages?: boolean },
options?: { created_by_id?: string; name?: string; restore_messages?: boolean },
) {
return await this.post<
APIResponse & {
Expand All @@ -1886,7 +1890,10 @@ export class StreamChat<
});
}

async deactivateUser(userID: string, options?: { mark_messages_deleted?: boolean }) {
async deactivateUser(
userID: string,
options?: { created_by_id?: string; mark_messages_deleted?: boolean },
) {
return await this.post<APIResponse & { user: UserResponse<UserType> }>(
this.baseURL + `/users/${userID}/deactivate`,
{
Expand Down

0 comments on commit c0d5752

Please sign in to comment.