-
Couldn't load subscription status.
- Fork 5.5k
[FEATURE] More Microsoft Components #15499
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
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8046596
new components
michelle0927 825771e
pnpm-lock.yaml
michelle0927 91c8d34
pnpm-lock.yaml
michelle0927 df789f3
Merge branch 'master' into issue-15483
michelle0927 b863880
versions
michelle0927 f1342f8
pnpm-lock.yaml
michelle0927 93e4b95
version
michelle0927 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
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
37 changes: 37 additions & 0 deletions
37
components/microsoft_outlook/actions/find-email/find-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,37 @@ | ||
| import microsoftOutlook from "../../microsoft_outlook.app.mjs"; | ||
|
|
||
| export default { | ||
| 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.1", | ||
| type: "action", | ||
| props: { | ||
| microsoftOutlook, | ||
| 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, | ||
| }, | ||
| maxResults: { | ||
| type: "integer", | ||
| label: "Max Results", | ||
| description: "The maximum number of results to return", | ||
| optional: true, | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const { value } = await this.microsoftOutlook.listMessages({ | ||
| $, | ||
| params: { | ||
| "$filter": this.filter, | ||
| "$top": this.maxResults, | ||
| }, | ||
| }); | ||
| $.export("$summary", `Successfully retrieved ${value.length} message${value.length != 1 | ||
| ? "s" | ||
| : ""}.`); | ||
| return value; | ||
| }, | ||
| }; | ||
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
21 changes: 21 additions & 0 deletions
21
components/microsoft_outlook/actions/list-folders/list-folders.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,21 @@ | ||
| import microsoftOutlook from "../../microsoft_outlook.app.mjs"; | ||
|
|
||
| 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.1", | ||
| type: "action", | ||
| props: { | ||
| microsoftOutlook, | ||
| }, | ||
| async run({ $ }) { | ||
| const { value } = await this.microsoftOutlook.listFolders({ | ||
| $, | ||
| }); | ||
| $.export("$summary", `Successfully retrieved ${value.length} folder${value.length != 1 | ||
| ? "s" | ||
| : ""}.`); | ||
| return value; | ||
| }, | ||
| }; |
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
38 changes: 38 additions & 0 deletions
38
components/microsoft_outlook/actions/move-email-to-folder/move-email-to-folder.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,38 @@ | ||
| import microsoftOutlook from "../../microsoft_outlook.app.mjs"; | ||
|
|
||
| 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.1", | ||
| type: "action", | ||
| props: { | ||
| microsoftOutlook, | ||
| messageId: { | ||
| propDefinition: [ | ||
| microsoftOutlook, | ||
| "messageId", | ||
| ], | ||
| }, | ||
| folderId: { | ||
| propDefinition: [ | ||
| microsoftOutlook, | ||
| "folderIds", | ||
| ], | ||
| type: "string", | ||
| label: "Folder ID", | ||
| description: "The identifier of the folder to move the selected message to", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.microsoftOutlook.moveMessage({ | ||
| $, | ||
| messageId: this.messageId, | ||
| data: { | ||
| destinationId: this.folderId, | ||
| }, | ||
| }); | ||
| $.export("$summary", `Successfully moved email to folder with ID: ${this.folderId}`); | ||
| return response; | ||
| }, | ||
| }; |
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
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.
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.