@webuildbots/webuildbots-sdk
Version:
webuildbots sdk
44 lines (43 loc) • 1.88 kB
JavaScript
;
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 __());
};
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var function_bb_1 = __importDefault(require("./function-bb"));
var block_enums_1 = require("../../const/block-enums");
var EmailFormTableBB = /** @class */ (function (_super) {
__extends(EmailFormTableBB, _super);
function EmailFormTableBB(fncName, args) {
var _this = _super.call(this, fncName, args) || this;
_this.block.function.type = block_enums_1.FunctionTypes.EMAIL_FORM_AS_TABLE;
_this.block.function.emailFormAsTable = {};
return _this;
}
EmailFormTableBB.prototype.toEmail = function (toEmail) {
this.block.function.emailFormAsTable.toEmail = toEmail;
return this;
};
EmailFormTableBB.prototype.fromEmail = function (fromEmail) {
this.block.function.emailFormAsTable.fromEmail = fromEmail;
return this;
};
EmailFormTableBB.prototype.subject = function (subject) {
this.block.function.emailFormAsTable.subject = subject;
return this;
};
return EmailFormTableBB;
}(function_bb_1.default));
exports.default = EmailFormTableBB;