UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

25 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.description = exports.properties = void 0; exports.execute = execute; const utilities_1 = require("../../../../../../utils/utilities"); const descriptions_1 = require("../../descriptions"); const transport_1 = require("../../transport"); exports.properties = [descriptions_1.calendarRLC]; const displayOptions = { show: { resource: ['calendar'], operation: ['get'], }, }; exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties); async function execute(index) { const qs = {}; const calendarId = this.getNodeParameter('calendarId', index, undefined, { extractValue: true, }); const responseData = await transport_1.microsoftApiRequest.call(this, 'GET', `/calendars/${calendarId}`, undefined, qs); const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: index } }); return executionData; } //# sourceMappingURL=get.operation.js.map