@panoptic-it-solutions/n8n-nodes-datto-rmm
Version:
n8n node for Datto RMM integration
23 lines • 870 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addOperationsToResource = addOperationsToResource;
function addOperationsToResource(baseFields, config) {
const properties = [...baseFields];
return properties.map((property) => {
var _a, _b;
if ((_b = (_a = property.displayOptions) === null || _a === void 0 ? void 0 : _a.show) === null || _b === void 0 ? void 0 : _b.resource) {
return {
...property,
displayOptions: {
...property.displayOptions,
show: {
...property.displayOptions.show,
resource: [config.resourceName],
},
},
};
}
return property;
});
}
//# sourceMappingURL=resource-operations.helper.js.map