Skip to content

Commit eebedd1

Browse files
Microsoft Outlook - reduce deploy emits (#18685)
* remove duplicate code * deploy emits attachments for 5 emails * bump versions
1 parent a7d0f19 commit eebedd1

File tree

4 files changed

+4
-21
lines changed

4 files changed

+4
-21
lines changed

components/microsoft_outlook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/microsoft_outlook",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"description": "Pipedream Microsoft Outlook Components",
55
"main": "microsoft_outlook.app.mjs",
66
"keywords": [

components/microsoft_outlook/sources/common/common-new-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
this.db.set("draftsFolderId", await this.getFolderIdByName("Drafts"));
2020

2121
const events = await this.getSampleEvents({
22-
pageSize: 25,
22+
pageSize: 5,
2323
});
2424
if (!events || events.length == 0) {
2525
return;

components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "microsoft_outlook-new-attachment-received",
77
name: "New Attachment Received (Instant)",
88
description: "Emit new event when a new email containing one or more attachments arrives in a specified Microsoft Outlook folder.",
9-
version: "0.1.1",
9+
version: "0.1.2",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {
@@ -52,23 +52,6 @@ export default {
5252
}
5353
return attachments;
5454
},
55-
async getMessageAttachments(message) {
56-
const { value: attachments } = await this.microsoftOutlook.listAttachments({
57-
messageId: message.id,
58-
});
59-
if (!attachments?.length) {
60-
return [];
61-
}
62-
return attachments.map((attachment) => ({
63-
...attachment,
64-
messageId: message.id,
65-
messageSubject: message.subject,
66-
messageSender: message.sender,
67-
messageReceivedDateTime: message.receivedDateTime,
68-
parentFolderId: message.parentFolderId,
69-
contentBytes: undefined,
70-
}));
71-
},
7255
async stashAttachment(item) {
7356
const messageAttachment = await this.microsoftOutlook.getAttachment({
7457
messageId: item.messageId,

components/microsoft_outlook/sources/new-email/new-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "microsoft_outlook-new-email",
88
name: "New Email Event (Instant)",
99
description: "Emit new event when an email is received in specified folders.",
10-
version: "0.1.3",
10+
version: "0.1.4",
1111
type: "source",
1212
dedupe: "unique",
1313
methods: {

0 commit comments

Comments
 (0)