@pipedream/microsoft_outlook 1.3.0 → 1.4.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.
- package/actions/add-label-to-email/add-label-to-email.mjs +1 -1
- package/actions/approve-workflow/approve-workflow.mjs +1 -1
- package/actions/create-contact/create-contact.mjs +1 -1
- package/actions/create-draft-email/create-draft-email.mjs +1 -1
- package/actions/find-contacts/find-contacts.mjs +1 -1
- package/actions/find-email/find-email.mjs +1 -1
- package/actions/list-contacts/list-contacts.mjs +1 -1
- package/actions/list-folders/list-folders.mjs +1 -1
- package/actions/list-labels/list-labels.mjs +1 -1
- package/actions/move-email-to-folder/move-email-to-folder.mjs +1 -1
- package/actions/remove-label-from-email/remove-label-from-email.mjs +1 -1
- package/actions/reply-to-email/reply-to-email.mjs +77 -0
- package/actions/send-email/send-email.mjs +1 -1
- package/actions/update-contact/update-contact.mjs +1 -1
- package/microsoft_outlook.app.mjs +16 -5
- package/package.json +1 -1
- package/sources/new-contact/new-contact.mjs +1 -1
- package/sources/new-email/new-email.mjs +1 -1
|
@@ -5,7 +5,7 @@ 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.4",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
microsoftOutlook,
|
|
@@ -4,7 +4,7 @@ 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.2",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftOutlook,
|
|
@@ -3,7 +3,7 @@ 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.11",
|
|
7
7
|
name: "Create Contact",
|
|
8
8
|
description: "Add a contact to the root Contacts folder, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)",
|
|
9
9
|
props: {
|
|
@@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-create-draft-email",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.11",
|
|
7
7
|
name: "Create Draft Email",
|
|
8
8
|
description: "Create a draft email, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-messages)",
|
|
9
9
|
props: {
|
|
@@ -3,7 +3,7 @@ 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.11",
|
|
7
7
|
name: "Find Contacts",
|
|
8
8
|
description: "Finds contacts with given search string",
|
|
9
9
|
props: {
|
|
@@ -4,7 +4,7 @@ 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.2",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftOutlook,
|
|
@@ -3,7 +3,7 @@ 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.11",
|
|
7
7
|
name: "List Contacts",
|
|
8
8
|
description: "Get a contact collection from the default contacts folder, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-list-contacts)",
|
|
9
9
|
props: {
|
|
@@ -4,7 +4,7 @@ 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.2",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftOutlook,
|
|
@@ -4,7 +4,7 @@ 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.4",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftOutlook,
|
|
@@ -4,7 +4,7 @@ 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.2",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftOutlook,
|
|
@@ -4,7 +4,7 @@ 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.4",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftOutlook,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "microsoft_outlook-reply-to-email",
|
|
5
|
+
name: "Reply to Email",
|
|
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.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
props: {
|
|
10
|
+
microsoftOutlook,
|
|
11
|
+
messageId: {
|
|
12
|
+
propDefinition: [
|
|
13
|
+
microsoftOutlook,
|
|
14
|
+
"messageId",
|
|
15
|
+
],
|
|
16
|
+
description: "The identifier of the message to reply to",
|
|
17
|
+
},
|
|
18
|
+
recipients: {
|
|
19
|
+
propDefinition: [
|
|
20
|
+
microsoftOutlook,
|
|
21
|
+
"recipients",
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
ccRecipients: {
|
|
25
|
+
propDefinition: [
|
|
26
|
+
microsoftOutlook,
|
|
27
|
+
"ccRecipients",
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
bccRecipients: {
|
|
31
|
+
propDefinition: [
|
|
32
|
+
microsoftOutlook,
|
|
33
|
+
"bccRecipients",
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
subject: {
|
|
37
|
+
propDefinition: [
|
|
38
|
+
microsoftOutlook,
|
|
39
|
+
"subject",
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
comment: {
|
|
43
|
+
propDefinition: [
|
|
44
|
+
microsoftOutlook,
|
|
45
|
+
"content",
|
|
46
|
+
],
|
|
47
|
+
description: "Content of the reply in text format",
|
|
48
|
+
},
|
|
49
|
+
files: {
|
|
50
|
+
propDefinition: [
|
|
51
|
+
microsoftOutlook,
|
|
52
|
+
"files",
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
expand: {
|
|
56
|
+
propDefinition: [
|
|
57
|
+
microsoftOutlook,
|
|
58
|
+
"expand",
|
|
59
|
+
],
|
|
60
|
+
description: "Additional email details, [See object definition](https://docs.microsoft.com/en-us/graph/api/resources/message)",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
async run({ $ }) {
|
|
64
|
+
await this.microsoftOutlook.replyToEmail({
|
|
65
|
+
$,
|
|
66
|
+
messageId: this.messageId,
|
|
67
|
+
data: {
|
|
68
|
+
comment: this.comment,
|
|
69
|
+
message: {
|
|
70
|
+
...this.microsoftOutlook.prepareMessageBody(this),
|
|
71
|
+
...this.expand,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
$.export("$summary", "Email has been replied to.");
|
|
76
|
+
},
|
|
77
|
+
};
|
|
@@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-send-email",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.12",
|
|
7
7
|
name: "Send Email",
|
|
8
8
|
description: "Send an email to one or multiple recipients, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-sendmail)",
|
|
9
9
|
props: {
|
|
@@ -3,7 +3,7 @@ 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.11",
|
|
7
7
|
name: "Update Contact",
|
|
8
8
|
description: "Add a contact to the root Contacts folder, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)",
|
|
9
9
|
props: {
|
|
@@ -255,14 +255,16 @@ export default {
|
|
|
255
255
|
}
|
|
256
256
|
const message = {
|
|
257
257
|
subject: self.subject,
|
|
258
|
-
body: {
|
|
259
|
-
content: self.content,
|
|
260
|
-
contentType: self.contentType,
|
|
261
|
-
},
|
|
262
|
-
toRecipients,
|
|
263
258
|
attachments,
|
|
264
259
|
};
|
|
265
260
|
|
|
261
|
+
if (self.content) {
|
|
262
|
+
message.body = {
|
|
263
|
+
content: self.content,
|
|
264
|
+
contentType: self.contentType,
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
if (toRecipients.length > 0) message.toRecipients = toRecipients;
|
|
266
268
|
if (ccRecipients.length > 0) message.ccRecipients = ccRecipients;
|
|
267
269
|
if (bccRecipients.length > 0) message.bccRecipients = bccRecipients;
|
|
268
270
|
|
|
@@ -275,6 +277,15 @@ export default {
|
|
|
275
277
|
...args,
|
|
276
278
|
});
|
|
277
279
|
},
|
|
280
|
+
async replyToEmail({
|
|
281
|
+
messageId, ...args
|
|
282
|
+
}) {
|
|
283
|
+
return await this._makeRequest({
|
|
284
|
+
method: "POST",
|
|
285
|
+
path: `/me/messages/${messageId}/reply`,
|
|
286
|
+
...args,
|
|
287
|
+
});
|
|
288
|
+
},
|
|
278
289
|
async createDraft({ ...args } = {}) {
|
|
279
290
|
return await this._makeRequest({
|
|
280
291
|
method: "POST",
|
package/package.json
CHANGED
|
@@ -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.0.
|
|
10
|
+
version: "0.0.15",
|
|
11
11
|
type: "source",
|
|
12
12
|
dedupe: "unique",
|
|
13
13
|
props: {
|