UNPKG

n8n

Version:

n8n Workflow Automation Tool

29 lines 984 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventMessageExecution = void 0; const AbstractEventMessage_1 = require("./AbstractEventMessage"); class EventMessageExecution extends AbstractEventMessage_1.AbstractEventMessage { constructor(options) { super(options); this.__type = "$$EventMessageExecution"; if (options.payload) this.setPayload(options.payload); if (options.anonymize) { this.anonymize(); } } setPayload(payload) { this.payload = payload; return this; } deserialize(data) { if ((0, AbstractEventMessage_1.isEventMessageOptionsWithType)(data, this.__type)) { this.setOptionsOrDefault(data); if (data.payload) this.setPayload(data.payload); } return this; } } exports.EventMessageExecution = EventMessageExecution; //# sourceMappingURL=EventMessageExecution.js.map