trello-for-wolves
Version:
Node.js wrapper for Trello API...for wolves.
50 lines (49 loc) • 2.02 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) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.BoardStar = void 0;
var BaseResource_1 = require("./BaseResource");
var BoardStar = /** @class */ (function (_super) {
__extends(BoardStar, _super);
function BoardStar() {
return _super !== null && _super.apply(this, arguments) || this;
}
BoardStar.prototype.getBoardStar = function () {
return this.apiGet("/");
};
// eslint-disable-next-line @typescript-eslint/ban-types
BoardStar.prototype.getBoardStars = function (params) {
return this.apiGet("/", params);
};
BoardStar.prototype.addBoardStar = function (params) {
return this.apiPost("/", params);
};
BoardStar.prototype.updateBoardStar = function (params) {
return this.apiPut("/", params);
};
BoardStar.prototype.moveToBoard = function (idBoard) {
return this.apiPut("/idBoard", { value: idBoard });
};
BoardStar.prototype.updatePosition = function (value) {
return this.apiPut("/pos", { value: value });
};
BoardStar.prototype.deleteBoardStar = function () {
return this.apiDelete("/");
};
return BoardStar;
}(BaseResource_1.BaseResource));
exports.BoardStar = BoardStar;