Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/devin/devin.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import microsoftOutlook from "../../microsoft_outlook.app.mjs";
import { ConfigurationError } from "@pipedream/platform";
import microsoftOutlook from "../../microsoft_outlook.app.mjs";

export default {
key: "microsoft_outlook-add-label-to-email",
name: "Add Label to Email",
description: "Adds a label/category to an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-update)",
version: "0.0.8",
version: "0.0.9",
type: "action",
props: {
microsoftOutlook,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "microsoft_outlook-approve-workflow",
name: "Approve Workflow",
description: "Suspend the workflow until approved by email. [See the documentation](https://pipedream.com/docs/code/nodejs/rerun#flowsuspend)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
microsoftOutlook,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
export default {
type: "action",
key: "microsoft_outlook-create-contact",
version: "0.0.15",
version: "0.0.16",
name: "Create Contact",
description: "Add a contact to the root Contacts folder, [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)",
props: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import microsoftOutlook from "../../microsoft_outlook.app.mjs";
import { parseObject } from "../../common/utils.mjs";
import microsoftOutlook from "../../microsoft_outlook.app.mjs";

export default {
type: "action",
key: "microsoft_outlook-create-draft-email",
version: "0.0.15",
version: "0.0.16",
name: "Create Draft Email",
description: "Create a draft email, [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-post-messages)",
props: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import microsoftOutlook from "../../microsoft_outlook.app.mjs";
import fs from "fs";
import mime from "mime-types";
import microsoftOutlook from "../../microsoft_outlook.app.mjs";

export default {
key: "microsoft_outlook-download-attachment",
name: "Download Attachment",
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)",
version: "0.0.3",
version: "0.0.4",
type: "action",
props: {
microsoftOutlook,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
export default {
type: "action",
key: "microsoft_outlook-find-contacts",
version: "0.0.15",
version: "0.0.16",
name: "Find Contacts",
description: "Finds contacts with the given search string. [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-list-contacts)",
props: {
Expand Down
25 changes: 16 additions & 9 deletions components/microsoft_outlook/actions/find-email/find-email.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,32 @@
key: "microsoft_outlook-find-email",
name: "Find Email",
description: "Search for an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/user-list-messages)",
version: "0.0.9",
version: "0.0.10",
type: "action",
props: {
microsoftOutlook,
info: {

Check warning on line 11 in components/microsoft_outlook/actions/find-email/find-email.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 11 in components/microsoft_outlook/actions/find-email/find-email.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "When you specify `$filter`, the service infers a sort order for the results. If you use both `$orderby` and `$filter` to get messages, because the server always infers a sort order for the results of a `$filter`, you must [specify properties in certain ways](https://learn.microsoft.com/en-us/graph/api/user-list-messages#using-filter-and-orderby-in-the-same-query).",
},
search: {
propDefinition: [
microsoftOutlook,
"search",
],
},
filter: {
type: "string",
label: "Filter",
description: "Filters results. For example, `contains(subject, 'meet for lunch?')` will include messages whose subject contains ‘meet for lunch?’. [See documentation](https://learn.microsoft.com/en-us/graph/filter-query-parameter) for the full list of operations.",
optional: true,
propDefinition: [
microsoftOutlook,
"filter",
],
},
orderBy: {
type: "string",
label: "Order By",
description: "Order results by a property. For example, `receivedDateTime desc` will order messages by the received date in descending order.",
optional: true,
propDefinition: [
microsoftOutlook,
"orderBy",
],
},
maxResults: {
propDefinition: [
Expand All @@ -38,6 +44,7 @@
args: {
$,
params: {
"$search": this.search,
"$filter": this.filter,
"$orderby": this.orderBy,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import microsoftOutlook from "../../microsoft_outlook.app.mjs";

export default {
key: "microsoft_outlook-find-shared-folder-email",
name: "Find Shared Folder Email",
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)",
version: "0.0.1",
type: "action",
props: {
microsoftOutlook,
userId: {
propDefinition: [
microsoftOutlook,
"userId",
],
},
sharedFolderId: {
propDefinition: [
microsoftOutlook,
"sharedFolderId",
({ userId }) => ({
userId,
}),
],
},
info: {

Check warning on line 26 in components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 26 in components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "When you specify `$filter`, the service infers a sort order for the results. If you use both `$orderby` and `$filter` to get messages, because the server always infers a sort order for the results of a `$filter`, you must [specify properties in certain ways](https://learn.microsoft.com/en-us/graph/api/user-list-messages#using-filter-and-orderby-in-the-same-query).",
},
search: {
propDefinition: [
microsoftOutlook,
"search",
],
},
filter: {
propDefinition: [
microsoftOutlook,
"filter",
],
},
orderBy: {
propDefinition: [
microsoftOutlook,
"orderBy",
],
},
maxResults: {
propDefinition: [
microsoftOutlook,
"maxResults",
],
},
},
async run({ $ }) {
const items = this.microsoftOutlook.paginate({
fn: this.microsoftOutlook.listSharedFolderMessages,
args: {
$,
userId: this.userId,
sharedFolderId: this.sharedFolderId,
params: {
"$search": this.search,
"$filter": this.filter,
"$orderby": this.orderBy,
},
},
max: this.maxResults,
});

const emails = [];
for await (const item of items) {
emails.push(item);
}

$.export("$summary", `Successfully retrieved ${emails.length} shared folder message${emails.length != 1
? "s"
: ""}.`);
return emails;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
export default {
type: "action",
key: "microsoft_outlook-list-contacts",
version: "0.0.15",
version: "0.0.16",
name: "List Contacts",
description: "Get a contact collection from the default contacts folder, [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-list-contacts)",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "microsoft_outlook-list-folders",
name: "List Folders",
description: "Retrieves a list of all folders in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/user-list-mailfolders)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
microsoftOutlook,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "microsoft_outlook-list-labels",
name: "List Labels",
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)",
version: "0.0.8",
version: "0.0.9",
type: "action",
props: {
microsoftOutlook,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "microsoft_outlook-move-email-to-folder",
name: "Move Email to Folder",
description: "Moves an email to the specified folder in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-move)",
version: "0.0.6",
version: "0.0.7",
type: "action",
props: {
microsoftOutlook,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "microsoft_outlook-remove-label-from-email",
name: "Remove Label from Email",
description: "Removes a label/category from an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-update)",
version: "0.0.8",
version: "0.0.9",
type: "action",
props: {
microsoftOutlook,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "microsoft_outlook-reply-to-email",
name: "Reply to Email",
description: "Reply to an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-reply)",
version: "0.0.5",
version: "0.0.6",
type: "action",
props: {
microsoftOutlook,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import microsoftOutlook from "../../microsoft_outlook.app.mjs";
import { parseObject } from "../../common/utils.mjs";
import microsoftOutlook from "../../microsoft_outlook.app.mjs";

export default {
type: "action",
key: "microsoft_outlook-send-email",
version: "0.0.16",
version: "0.0.17",
name: "Send Email",
description: "Send an email to one or multiple recipients, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-sendmail)",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
export default {
type: "action",
key: "microsoft_outlook-update-contact",
version: "0.0.15",
version: "0.0.16",
name: "Update Contact",
description: "Add a contact to the root Contacts folder, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)",
description: "Update an existing contact, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)",
props: {
microsoftOutlook,
contact: {
Expand Down
Loading
Loading