var __awaiter=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,r){function s(t){try{c(o.next(t))}catch(t){r(t)}}function a(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(s,a)}c((o=o.apply(t,e||[])).next())})};import t from"@openremote/rest";import{EventEmitter as e}from"events";export class Integration extends e{constructor(){super(...arguments),this.nodes=[]}refreshNodes(){return __awaiter(this,void 0,void 0,function*(){for(let e of(this.nodes=[],(yield t.api.FlowResource.getAllNodeDefinitions()).data))this.nodes.push(e)})}}