@pipedream/microsoft_outlook 1.7.1 → 1.7.3
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/actions/add-label-to-email/add-label-to-email.mjs +6 -1
- package/actions/approve-workflow/approve-workflow.mjs +6 -1
- package/actions/create-contact/create-contact.mjs +6 -1
- package/actions/create-draft-email/create-draft-email.mjs +6 -1
- package/actions/download-attachment/download-attachment.mjs +6 -1
- package/actions/find-contacts/find-contacts.mjs +6 -1
- package/actions/find-email/find-email.mjs +37 -11
- package/actions/find-shared-folder-email/find-shared-folder-email.mjs +6 -1
- package/actions/list-contacts/list-contacts.mjs +6 -1
- package/actions/list-folders/list-folders.mjs +6 -1
- package/actions/list-labels/list-labels.mjs +6 -1
- package/actions/move-email-to-folder/move-email-to-folder.mjs +6 -1
- package/actions/remove-label-from-email/remove-label-from-email.mjs +6 -1
- package/actions/reply-to-email/reply-to-email.mjs +6 -1
- package/actions/send-email/send-email.mjs +6 -1
- package/actions/update-contact/update-contact.mjs +6 -1
- package/microsoft_outlook.app.mjs +1 -1
- package/package.json +1 -1
- package/sources/common/common-new-email.mjs +1 -1
- package/sources/new-attachment-received/new-attachment-received.mjs +1 -18
- package/sources/new-contact/new-contact.mjs +1 -1
- package/sources/new-email/new-email.mjs +1 -1
- package/sources/new-email-in-shared-folder/new-email-in-shared-folder.mjs +1 -1
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
key: "microsoft_outlook-add-label-to-email",
|
|
6
6
|
name: "Add Label to Email",
|
|
7
7
|
description: "Adds a label/category to an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-update)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.12",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: true,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
microsoftOutlook,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "microsoft_outlook-approve-workflow",
|
|
5
5
|
name: "Approve Workflow",
|
|
6
6
|
description: "Suspend the workflow until approved by email. [See the documentation](https://pipedream.com/docs/code/nodejs/rerun#flowsuspend)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.10",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
microsoftOutlook,
|
|
@@ -3,7 +3,12 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-create-contact",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.19",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
},
|
|
7
12
|
name: "Create Contact",
|
|
8
13
|
description: "Add a contact to the root Contacts folder, [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)",
|
|
9
14
|
props: {
|
|
@@ -4,7 +4,12 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
4
4
|
export default {
|
|
5
5
|
type: "action",
|
|
6
6
|
key: "microsoft_outlook-create-draft-email",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.19",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
name: "Create Draft Email",
|
|
9
14
|
description: "Create a draft email, [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-post-messages)",
|
|
10
15
|
props: {
|
|
@@ -6,7 +6,12 @@ export default {
|
|
|
6
6
|
key: "microsoft_outlook-download-attachment",
|
|
7
7
|
name: "Download Attachment",
|
|
8
8
|
description: "Downloads an attachment to the /tmp directory. [See the documentation](https://learn.microsoft.com/en-us/graph/api/attachment-get?view=graph-rest-1.0&tabs=http)",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.7",
|
|
10
|
+
annotations: {
|
|
11
|
+
destructiveHint: false,
|
|
12
|
+
openWorldHint: true,
|
|
13
|
+
readOnlyHint: true,
|
|
14
|
+
},
|
|
10
15
|
type: "action",
|
|
11
16
|
props: {
|
|
12
17
|
microsoftOutlook,
|
|
@@ -3,7 +3,12 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-find-contacts",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.19",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: true,
|
|
11
|
+
},
|
|
7
12
|
name: "Find Contacts",
|
|
8
13
|
description: "Finds contacts with the given search string. [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-list-contacts)",
|
|
9
14
|
props: {
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "microsoft_outlook-find-email",
|
|
5
5
|
name: "Find Email",
|
|
6
6
|
description: "Search for an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/user-list-messages)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.13",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
microsoftOutlook,
|
|
@@ -38,23 +43,44 @@ export default {
|
|
|
38
43
|
],
|
|
39
44
|
},
|
|
40
45
|
},
|
|
46
|
+
methods: {
|
|
47
|
+
ensureQuotes(str) {
|
|
48
|
+
str = str.trim();
|
|
49
|
+
str = str.replace(/^['"]?/, "").replace(/['"]?$/, "");
|
|
50
|
+
return `"${str}"`;
|
|
51
|
+
},
|
|
52
|
+
},
|
|
41
53
|
async run({ $ }) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
54
|
+
let emails = [];
|
|
55
|
+
|
|
56
|
+
if (!this.search) {
|
|
57
|
+
const items = this.microsoftOutlook.paginate({
|
|
58
|
+
fn: this.microsoftOutlook.listMessages,
|
|
59
|
+
args: {
|
|
60
|
+
$,
|
|
61
|
+
params: {
|
|
62
|
+
"$filter": this.filter,
|
|
63
|
+
"$orderby": this.orderBy,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
max: this.maxResults,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
for await (const item of items) {
|
|
70
|
+
emails.push(item);
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
const { value } = await this.microsoftOutlook.listMessages({
|
|
45
74
|
$,
|
|
46
75
|
params: {
|
|
47
|
-
"$search": this.search,
|
|
48
76
|
"$filter": this.filter,
|
|
49
77
|
"$orderby": this.orderBy,
|
|
78
|
+
"$search": this.ensureQuotes(this.search),
|
|
79
|
+
"$top": this.maxResults,
|
|
50
80
|
},
|
|
51
|
-
}
|
|
52
|
-
max: this.maxResults,
|
|
53
|
-
});
|
|
81
|
+
});
|
|
54
82
|
|
|
55
|
-
|
|
56
|
-
for await (const item of items) {
|
|
57
|
-
emails.push(item);
|
|
83
|
+
emails = value;
|
|
58
84
|
}
|
|
59
85
|
|
|
60
86
|
$.export("$summary", `Successfully retrieved ${emails.length} message${emails.length != 1
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "microsoft_outlook-find-shared-folder-email",
|
|
5
5
|
name: "Find Shared Folder Email",
|
|
6
6
|
description: "Search for an email in a shared folder in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/user-list-messages)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.4",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
microsoftOutlook,
|
|
@@ -3,7 +3,12 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-list-contacts",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.19",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: true,
|
|
11
|
+
},
|
|
7
12
|
name: "List Contacts",
|
|
8
13
|
description: "Get a contact collection from the default contacts folder, [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-list-contacts)",
|
|
9
14
|
props: {
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "microsoft_outlook-list-folders",
|
|
5
5
|
name: "List Folders",
|
|
6
6
|
description: "Retrieves a list of all folders in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/user-list-mailfolders)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.10",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
microsoftOutlook,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "microsoft_outlook-list-labels",
|
|
5
5
|
name: "List Labels",
|
|
6
6
|
description: "Get all the labels/categories that have been defined for a user. [See the documentation](https://learn.microsoft.com/en-us/graph/api/outlookuser-list-mastercategories)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.12",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
microsoftOutlook,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "microsoft_outlook-move-email-to-folder",
|
|
5
5
|
name: "Move Email to Folder",
|
|
6
6
|
description: "Moves an email to the specified folder in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-move)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.10",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
microsoftOutlook,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "microsoft_outlook-remove-label-from-email",
|
|
5
5
|
name: "Remove Label from Email",
|
|
6
6
|
description: "Removes a label/category from an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-update)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.12",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
microsoftOutlook,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "microsoft_outlook-reply-to-email",
|
|
5
5
|
name: "Reply to Email",
|
|
6
6
|
description: "Reply to an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-reply)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.9",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
microsoftOutlook,
|
|
@@ -4,7 +4,12 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
4
4
|
export default {
|
|
5
5
|
type: "action",
|
|
6
6
|
key: "microsoft_outlook-send-email",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.20",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
name: "Send Email",
|
|
9
14
|
description: "Send an email to one or multiple recipients, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-sendmail)",
|
|
10
15
|
props: {
|
|
@@ -3,7 +3,12 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-update-contact",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.19",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: true,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
},
|
|
7
12
|
name: "Update Contact",
|
|
8
13
|
description: "Update an existing contact, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)",
|
|
9
14
|
props: {
|
|
@@ -238,7 +238,7 @@ export default {
|
|
|
238
238
|
search: {
|
|
239
239
|
type: "string",
|
|
240
240
|
label: "Search",
|
|
241
|
-
description: "Search for an email in Microsoft Outlook. Can search for specific message properties such as
|
|
241
|
+
description: "Search for an email in Microsoft Outlook. Can search for specific message properties such as `\"to:example@example.com\"` or `\"subject:example\"`. If the property is excluded, the search targets the default propertes `from`, `subject`, and `body`. For example, `\"pizza\"` will search for messages with the word `pizza` in the subject, body, or from address, but `\"to:example@example.com\"` will only search for messages to `example@example.com`.",
|
|
242
242
|
optional: true,
|
|
243
243
|
},
|
|
244
244
|
filter: {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "microsoft_outlook-new-attachment-received",
|
|
7
7
|
name: "New Attachment Received (Instant)",
|
|
8
8
|
description: "Emit new event when a new email containing one or more attachments arrives in a specified Microsoft Outlook folder.",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
@@ -52,23 +52,6 @@ export default {
|
|
|
52
52
|
}
|
|
53
53
|
return attachments;
|
|
54
54
|
},
|
|
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
|
-
},
|
|
72
55
|
async stashAttachment(item) {
|
|
73
56
|
const messageAttachment = await this.microsoftOutlook.getAttachment({
|
|
74
57
|
messageId: item.messageId,
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
key: "microsoft_outlook-new-email",
|
|
8
8
|
name: "New Email Event (Instant)",
|
|
9
9
|
description: "Emit new event when an email is received in specified folders.",
|
|
10
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.5",
|
|
11
11
|
type: "source",
|
|
12
12
|
dedupe: "unique",
|
|
13
13
|
methods: {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "microsoft_outlook-new-email-in-shared-folder",
|
|
7
7
|
name: "New Email in Shared Folder Event",
|
|
8
8
|
description: "Emit new event when an email is received in specified shared folders.",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|