UNPKG

n8n-nodes-powerbi

Version:
17 lines 825 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.get = void 0; const GenericFunctions_1 = require("../../GenericFunctions"); async function get(i) { const returnData = []; const groupId = this.getNodeParameter('groupId', i, ''); const dashboardId = this.getNodeParameter('dashboardId', i); const endpoint = groupId && groupId !== 'me' ? `/groups/${groupId}/dashboards/${dashboardId}` : `/dashboards/${dashboardId}`; const responseData = await GenericFunctions_1.powerBiApiRequest.call(this, 'GET', endpoint); const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } }); returnData.push(...executionData); return returnData; } exports.get = get; //# sourceMappingURL=get.js.map