@bobfrankston/mailx-types 0.1.15 → 0.1.17

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.
Files changed (2) hide show
  1. package/mailx-api.d.ts +5 -0
  2. package/package.json +1 -1
package/mailx-api.d.ts CHANGED
@@ -51,6 +51,10 @@ export interface MailxApi {
51
51
  contentType: string;
52
52
  filename: string;
53
53
  }>;
54
+ openAttachment(accountId: string, uid: number, attachmentId: number, folderId?: number): Promise<{
55
+ ok: boolean;
56
+ path: string;
57
+ }>;
54
58
  updateFlags(accountId: string, uid: number, flags: string[]): Promise<void>;
55
59
  deleteMessage(accountId: string, uid: number): Promise<void>;
56
60
  deleteMessages(accountId: string, uids: number[]): Promise<void>;
@@ -158,6 +162,7 @@ export interface MailxApi {
158
162
  }>;
159
163
  getUserDict(): Promise<string[]>;
160
164
  addUserDictWord(word: string): Promise<string[]>;
165
+ addUserDictWords(words: string[]): Promise<string[]>;
161
166
  removeUserDictWord(word: string): Promise<string[]>;
162
167
  getSettings(): any | Promise<any>;
163
168
  saveSettingsData(settings: any): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-types",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",