@qwanyx/stack 0.2.18 → 0.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/MailClient.d.ts +4 -2
- package/dist/index.cjs.js +18 -18
- package/dist/index.esm.js +634 -632
- package/package.json +1 -1
|
@@ -59,15 +59,17 @@ export declare class MailClient {
|
|
|
59
59
|
/**
|
|
60
60
|
* Move emails to trash (soft delete)
|
|
61
61
|
* Tries multiple folder names for Gmail locales
|
|
62
|
+
* @param sourceFolder - The folder where the emails currently are (default: INBOX)
|
|
62
63
|
*/
|
|
63
|
-
trashEmails(accountId: string, uids: number[]): Promise<{
|
|
64
|
+
trashEmails(accountId: string, uids: number[], sourceFolder?: string): Promise<{
|
|
64
65
|
success: boolean;
|
|
65
66
|
moved: number;
|
|
66
67
|
}>;
|
|
67
68
|
/**
|
|
68
69
|
* Archive emails (remove from inbox, keep in All Mail)
|
|
70
|
+
* @param sourceFolder - The folder where the emails currently are (default: INBOX)
|
|
69
71
|
*/
|
|
70
|
-
archiveEmails(accountId: string, uids: number[]): Promise<{
|
|
72
|
+
archiveEmails(accountId: string, uids: number[], sourceFolder?: string): Promise<{
|
|
71
73
|
success: boolean;
|
|
72
74
|
archived: number;
|
|
73
75
|
}>;
|