Skip to content

Commit a2622cb

Browse files
committed
Remove unused classes and imports from label dto
1 parent e8d3206 commit a2622cb

File tree

1 file changed

+0
-109
lines changed

1 file changed

+0
-109
lines changed

src/whatsapp/dto/label.dto.ts

Lines changed: 0 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
import { proto, WAPresence, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from '@whiskeysockets/baileys';
2-
3-
export class OnWhatsAppDto {
4-
constructor(
5-
public readonly jid: string,
6-
public readonly exists: boolean,
7-
public readonly number: string,
8-
public readonly name?: string,
9-
) {}
10-
}
11-
121
export class LabelDto {
132
id?: string;
143
name: string;
@@ -21,101 +10,3 @@ export class HandleLabelDto {
2110
labelId: string;
2211
action: 'add' | 'remove';
2312
}
24-
25-
export class WhatsAppNumberDto {
26-
numbers: string[];
27-
}
28-
29-
export class NumberDto {
30-
number: string;
31-
}
32-
33-
export 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-
website?: string[];
43-
address?: string;
44-
}
45-
46-
export class ProfileNameDto {
47-
name: string;
48-
}
49-
50-
export class ProfileStatusDto {
51-
status: string;
52-
}
53-
54-
export class ProfilePictureDto {
55-
number?: string;
56-
// url or base64
57-
picture?: string;
58-
}
59-
60-
class Key {
61-
id: string;
62-
fromMe: boolean;
63-
remoteJid: string;
64-
}
65-
export class ReadMessageDto {
66-
read_messages: Key[];
67-
}
68-
69-
export class LastMessage {
70-
key: Key;
71-
messageTimestamp?: number;
72-
}
73-
74-
export class ArchiveChatDto {
75-
lastMessage?: LastMessage;
76-
chat?: string;
77-
archive: boolean;
78-
}
79-
80-
class PrivacySetting {
81-
readreceipts: WAReadReceiptsValue;
82-
profile: WAPrivacyValue;
83-
status: WAPrivacyValue;
84-
online: WAPrivacyOnlineValue;
85-
last: WAPrivacyValue;
86-
groupadd: WAPrivacyValue;
87-
}
88-
89-
export class PrivacySettingDto {
90-
privacySettings: PrivacySetting;
91-
}
92-
93-
export class DeleteMessage {
94-
id: string;
95-
fromMe: boolean;
96-
remoteJid: string;
97-
participant?: string;
98-
}
99-
export class Options {
100-
delay?: number;
101-
presence?: WAPresence;
102-
}
103-
class OptionsMessage {
104-
options: Options;
105-
}
106-
export class Metadata extends OptionsMessage {
107-
number: string;
108-
}
109-
110-
export class SendPresenceDto extends Metadata {
111-
options: {
112-
presence: WAPresence;
113-
delay: number;
114-
};
115-
}
116-
117-
export class UpdateMessageDto extends Metadata {
118-
number: string;
119-
key: proto.IMessageKey;
120-
text: string;
121-
}

0 commit comments

Comments
 (0)