From 5b1c449bbef50f37d59bd9a95101dee6887951d2 Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Tue, 2 Feb 2021 15:42:57 +0100 Subject: [PATCH] Add missing options to gdpr --- src/client.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index 5dfcd318c..806a8d82f 100644 --- a/src/client.ts +++ b/src/client.ts @@ -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 & { @@ -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 & { @@ -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 }>( this.baseURL + `/users/${userID}/deactivate`, {