@secrecy/lib 1.11.3 → 1.12.0
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.
|
@@ -39,15 +39,19 @@ export class SecrecyMailClient {
|
|
|
39
39
|
return await this.sendDraft(mail.mailIntegrityId, customMessage);
|
|
40
40
|
}
|
|
41
41
|
async waitingReceivedMails() {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
const waitingReceivedMails = await this.#apiClient.mail.waitingReceived.query({});
|
|
43
|
+
const waitingReceivedMailsWithIds = waitingReceivedMails.map((mail) => ({
|
|
44
|
+
id: Math.random().toString(36).substring(2, 9),
|
|
45
|
+
sender: mail.sender,
|
|
46
|
+
date: mail.date,
|
|
47
|
+
attachmentsCount: mail.attachmentsCount,
|
|
48
|
+
recipients: mail.recipients,
|
|
49
|
+
temporaryRecipients: mail.temporaryRecipients.map(({ email, phone }) => ({
|
|
50
|
+
email: email ?? undefined,
|
|
51
|
+
phone: phone ?? undefined,
|
|
52
|
+
})),
|
|
53
|
+
}));
|
|
54
|
+
return waitingReceivedMailsWithIds;
|
|
51
55
|
}
|
|
52
56
|
async updateDraft(draftId, { body, subject, senderFiles, recipients, replyToId }) {
|
|
53
57
|
const drafts = await this.draftMails();
|
package/dist/types/cache.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const nodesCache: Map<string, InternalNode | InternalNodeFull>;
|
|
|
5
5
|
export declare const usersCache: Map<string, {
|
|
6
6
|
id: string;
|
|
7
7
|
lastname: string;
|
|
8
|
-
firstname: string;
|
|
8
|
+
firstname: string | null;
|
|
9
9
|
avatar: string | null;
|
|
10
10
|
isSearchable: boolean;
|
|
11
11
|
}>;
|