UNPKG

@webuildbots/webuildbots-sdk

Version:
43 lines (42 loc) 1.8 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 __()); }; })(); 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 UnsetFormBB = /** @class */ (function (_super) { __extends(UnsetFormBB, _super); function UnsetFormBB(fncName, args) { var _this = _super.call(this, fncName, args) || this; _this.block.function.type = block_enums_1.FunctionTypes.UNSET_FORM; return _this; } UnsetFormBB.prototype.addUnsetFormIds = function (formId) { var _a; if (!((_a = this.block.function) === null || _a === void 0 ? void 0 : _a.unsetFormIds)) { this.block.function.unsetFormIds = []; } this.block.function.unsetFormIds.push(formId); return this; }; UnsetFormBB.prototype.setUnsetAllForms = function (unsetAllForms) { this.block.function.unsetAllForms = unsetAllForms; return this; }; return UnsetFormBB; }(function_bb_1.default)); exports.default = UnsetFormBB;