feat: Route to update the privacy settings

This commit is contained in:
Davidson Gomes
2023-06-11 11:38:26 -03:00
parent 55e36f24a5
commit ab28b4c0c5
6 changed files with 88 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
import { WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from "@evolution/base";
export class OnWhatsAppDto {
constructor(
public readonly jid: string,
@@ -47,6 +49,19 @@ export class ArchiveChatDto {
archive: boolean;
}
class PrivacySetting {
readreceipts: WAReadReceiptsValue;
profile: WAPrivacyValue;
status: WAPrivacyValue;
online: WAPrivacyOnlineValue;
last: WAPrivacyValue;
groupadd: WAPrivacyValue;
}
export class PrivacySettingDto {
privacySettings: PrivacySetting;
}
export class DeleteMessage {
id: string;
fromMe: boolean;