-
Notifications
You must be signed in to change notification settings - Fork 5.5k
18109 microsoft outlook #18295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
18109 microsoft outlook #18295
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d6a5661
Enhance Microsoft Outlook component with new features and updates
luancazarine 4d8a86b
pnpm update
luancazarine 0c8c1d4
Merge branch 'master' into 18109-microsoft-outlook
luancazarine 5b2c240
Update Microsoft Outlook components with version bumps for find-email…
luancazarine 9453d44
Merge branch '18109-microsoft-outlook' of https://github.com/Pipedrea…
luancazarine a328a5d
Bump version of new-email source to 0.1.1 for Microsoft Outlook compo…
luancazarine 05bc437
Update find-email action to include search parameter and modify updat…
luancazarine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ export default { | |
console.log(Object.keys(this.$auth)); | ||
}, | ||
}, | ||
}; | ||
}; |
4 changes: 2 additions & 2 deletions
4
components/microsoft_outlook/actions/add-label-to-email/add-label-to-email.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
components/microsoft_outlook/actions/create-draft-email/create-draft-email.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
components/microsoft_outlook/actions/download-attachment/download-attachment.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
|
||
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; | ||
}, | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
components/microsoft_outlook/actions/send-email/send-email.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.