oex2003/evolution-api
0
1import {2 proto,3 WAPresence,4 WAPrivacyGroupAddValue,5 WAPrivacyOnlineValue,6 WAPrivacyValue,7 WAReadReceiptsValue,8} from 'baileys';9 10export class OnWhatsAppDto {11 constructor(12 public readonly jid: string,13 public readonly exists: boolean,14 public readonly number: string,15 public readonly name?: string,16 public readonly lid?: string,17 ) {}18}19 20export class getBase64FromMediaMessageDto {21 message: proto.WebMessageInfo;22 convertToMp4?: boolean;23}24 25export class WhatsAppNumberDto {26 numbers: string[];27}28 29export class NumberDto {30 number: string;31}32 33export class NumberBusiness {34 wid?: string;35 jid?: string;36 exists?: boolean;37 isBusiness: boolean;38 name?: string;39 message?: string;40 description?: string;41 email?: string;42 websites?: string[];43 website?: string[];44 address?: string;45 about?: string;46 vertical?: string;47 profilehandle?: string;48}49 50export class ProfileNameDto {51 name: string;52}53 54export class ProfileStatusDto {55 status: string;56}57 58export class ProfilePictureDto {59 number?: string;60 // url or base6461 picture?: string;62}63 64class Key {65 id: string;66 fromMe: boolean;67 remoteJid: string;68}69export class ReadMessageDto {70 readMessages: Key[];71}72 73export class LastMessage {74 key: Key;75 messageTimestamp?: number;76}77 78export class ArchiveChatDto {79 lastMessage?: LastMessage;80 chat?: string;81 archive: boolean;82}83 84export class MarkChatUnreadDto {85 lastMessage?: LastMessage;86 chat?: string;87}88 89export class PrivacySettingDto {90 readreceipts: WAReadReceiptsValue;91 profile: WAPrivacyValue;92 status: WAPrivacyValue;93 online: WAPrivacyOnlineValue;94 last: WAPrivacyValue;95 groupadd: WAPrivacyGroupAddValue;96}97 98export class DeleteMessage {99 id: string;100 fromMe: boolean;101 remoteJid: string;102 participant?: string;103}104export class Options {105 delay?: number;106 presence?: WAPresence;107}108class OptionsMessage {109 options: Options;110}111export class Metadata extends OptionsMessage {112 number: string;113}114 115export class SendPresenceDto extends Metadata {116 presence: WAPresence;117 delay: number;118}119 120export class UpdateMessageDto extends Metadata {121 number: string;122 key: proto.IMessageKey;123 text: string;124}125 126export class BlockUserDto {127 number: string;128 status: 'block' | 'unblock';129}130 