mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-25 18:08:40 -06:00
Remove unused classes and imports from label dto
This commit is contained in:
parent
e8d32066b4
commit
a2622cb38e
@ -1,14 +1,3 @@
|
|||||||
import { proto, WAPresence, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from '@whiskeysockets/baileys';
|
|
||||||
|
|
||||||
export class OnWhatsAppDto {
|
|
||||||
constructor(
|
|
||||||
public readonly jid: string,
|
|
||||||
public readonly exists: boolean,
|
|
||||||
public readonly number: string,
|
|
||||||
public readonly name?: string,
|
|
||||||
) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class LabelDto {
|
export class LabelDto {
|
||||||
id?: string;
|
id?: string;
|
||||||
name: string;
|
name: string;
|
||||||
@ -21,101 +10,3 @@ export class HandleLabelDto {
|
|||||||
labelId: string;
|
labelId: string;
|
||||||
action: 'add' | 'remove';
|
action: 'add' | 'remove';
|
||||||
}
|
}
|
||||||
|
|
||||||
export class WhatsAppNumberDto {
|
|
||||||
numbers: string[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export class NumberDto {
|
|
||||||
number: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class NumberBusiness {
|
|
||||||
wid?: string;
|
|
||||||
jid?: string;
|
|
||||||
exists?: boolean;
|
|
||||||
isBusiness: boolean;
|
|
||||||
name?: string;
|
|
||||||
message?: string;
|
|
||||||
description?: string;
|
|
||||||
email?: string;
|
|
||||||
website?: string[];
|
|
||||||
address?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ProfileNameDto {
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ProfileStatusDto {
|
|
||||||
status: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ProfilePictureDto {
|
|
||||||
number?: string;
|
|
||||||
// url or base64
|
|
||||||
picture?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
class Key {
|
|
||||||
id: string;
|
|
||||||
fromMe: boolean;
|
|
||||||
remoteJid: string;
|
|
||||||
}
|
|
||||||
export class ReadMessageDto {
|
|
||||||
read_messages: Key[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export class LastMessage {
|
|
||||||
key: Key;
|
|
||||||
messageTimestamp?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ArchiveChatDto {
|
|
||||||
lastMessage?: LastMessage;
|
|
||||||
chat?: string;
|
|
||||||
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;
|
|
||||||
remoteJid: string;
|
|
||||||
participant?: string;
|
|
||||||
}
|
|
||||||
export class Options {
|
|
||||||
delay?: number;
|
|
||||||
presence?: WAPresence;
|
|
||||||
}
|
|
||||||
class OptionsMessage {
|
|
||||||
options: Options;
|
|
||||||
}
|
|
||||||
export class Metadata extends OptionsMessage {
|
|
||||||
number: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class SendPresenceDto extends Metadata {
|
|
||||||
options: {
|
|
||||||
presence: WAPresence;
|
|
||||||
delay: number;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export class UpdateMessageDto extends Metadata {
|
|
||||||
number: string;
|
|
||||||
key: proto.IMessageKey;
|
|
||||||
text: string;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user