Skip to content

Commit 5bdf9af

Browse files
authored
Merging pull request #17997
* new component * pnpm-lock.yaml * fix key
1 parent fa92425 commit 5bdf9af

File tree

3 files changed

+34
-6
lines changed

3 files changed

+34
-6
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import microsoftPowerBi from "../../microsoft_power_bi.app.mjs";
2+
3+
export default {
4+
key: "microsoft_power_bi-get-reports",
5+
name: "Get Reports",
6+
description: "Get reports from a Power BI workspace. [See the documentation](https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-reports)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
microsoftPowerBi,
11+
},
12+
methods: {
13+
getReports(opts = {}) {
14+
return this.microsoftPowerBi._makeRequest({
15+
path: "/reports",
16+
...opts,
17+
});
18+
},
19+
},
20+
async run({ $ }) {
21+
const { value } = await this.getReports({
22+
$,
23+
});
24+
$.export("$summary", `Found ${value.length} report${value.length === 1
25+
? ""
26+
: "s"}`);
27+
return value;
28+
},
29+
};

components/microsoft_power_bi/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_power_bi",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Pipedream Microsoft Power BI Components",
55
"main": "microsoft_power_bi.app.mjs",
66
"keywords": [
@@ -13,6 +13,6 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^1.5.1"
16+
"@pipedream/platform": "^3.1.0"
1717
}
1818
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)