UNPKG

reshuffle

Version:

Reshuffle is a fast, unopinionated, minimalist integration framework

41 lines 1.65 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); exports.__esModule = true; var reshuffle_base_connector_1 = require("reshuffle-base-connector"); var SlackConnector = /** @class */ (function (_super) { __extends(SlackConnector, _super); function SlackConnector() { return _super !== null && _super.apply(this, arguments) || this; } SlackConnector.prototype.on = function (options, eventId) { return new reshuffle_base_connector_1.EventConfiguration(eventId, this, {}); }; SlackConnector.prototype.send = function (message) { console.log(message); }; SlackConnector.prototype.start = function (app) { this.app = app; this.started = true; }; SlackConnector.prototype.removeEvent = function (event) { delete this.eventConfigurations[event.id]; }; SlackConnector.prototype.stop = function () { console.log('TODO stop'); }; return SlackConnector; }(reshuffle_base_connector_1.BaseConnector)); exports["default"] = SlackConnector; //# sourceMappingURL=SlackConnector.js.map