Skip to content

Commit 5e31cad

Browse files
authored
Merging pull request #18272
* new source * pnpm-lock.yaml
1 parent 79b4fdf commit 5e31cad

File tree

3 files changed

+43
-4
lines changed

3 files changed

+43
-4
lines changed

components/microsoft_365_planner/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/microsoft_365_planner",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Pipedream Microsoft 365 Planner Components",
55
"main": "microsoft_365_planner.app.mjs",
66
"keywords": [
@@ -13,6 +13,6 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^1.6.5"
16+
"@pipedream/platform": "^3.1.0"
1717
}
1818
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import common from "../common/common.mjs";
2+
3+
export default {
4+
...common,
5+
key: "microsoft_365_planner-new-task-assigned-to-user",
6+
name: "New Task Assigned to User",
7+
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)",
8+
version: "0.0.1",
9+
type: "source",
10+
dedupe: "unique",
11+
methods: {
12+
...common.methods,
13+
getResourceFn() {
14+
return this.microsoft365Planner.listUserTasks;
15+
},
16+
getArgs() {
17+
return {};
18+
},
19+
generateMeta(task) {
20+
return {
21+
id: task.id,
22+
summary: task.title,
23+
ts: Date.now(),
24+
};
25+
},
26+
},
27+
async run() {
28+
const fn = this.getResourceFn();
29+
const args = this.getArgs();
30+
const items = this.microsoft365Planner.paginate({
31+
fn,
32+
args,
33+
});
34+
35+
for await (const item of items) {
36+
this.emitEvent(item);
37+
}
38+
},
39+
};

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)