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
4 changes: 2 additions & 2 deletions components/microsoft_365_planner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/microsoft_365_planner",
"version": "0.2.0",
"version": "0.3.0",
"description": "Pipedream Microsoft 365 Planner Components",
"main": "microsoft_365_planner.app.mjs",
"keywords": [
Expand All @@ -13,6 +13,6 @@
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^1.6.5"
"@pipedream/platform": "^3.1.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import common from "../common/common.mjs";

export default {
...common,
key: "microsoft_365_planner-new-task-assigned-to-user",
name: "New Task Assigned to User",
description: "Emit new event when a Task is assigned to the authenticated user in Microsoft 365 Planner. [See the documentation](https://learn.microsoft.com/en-us/graph/api/planneruser-list-tasks?view=graph-rest-1.0&tabs=http)",
version: "0.0.1",
type: "source",
dedupe: "unique",
methods: {
...common.methods,
getResourceFn() {
return this.microsoft365Planner.listUserTasks;
},
getArgs() {
return {};
},
generateMeta(task) {
return {
id: task.id,
summary: task.title,
ts: Date.now(),
};
},
},
async run() {
const fn = this.getResourceFn();
const args = this.getArgs();
const items = this.microsoft365Planner.paginate({
fn,
args,
});

for await (const item of items) {
this.emitEvent(item);
}
},
};
Loading
Loading