UNPKG

trello-for-wolves

Version:
52 lines (51 loc) 2.1 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) { 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.SavedSearch = void 0; var BaseResource_1 = require("./BaseResource"); var SavedSearch = /** @class */ (function (_super) { __extends(SavedSearch, _super); function SavedSearch() { return _super !== null && _super.apply(this, arguments) || this; } SavedSearch.prototype.getSavedSearch = function () { return this.apiGet("/"); }; SavedSearch.prototype.getSavedSearches = function () { return this.apiGet("/"); }; SavedSearch.prototype.addSavedSearch = function (params) { return this.apiPost("/", params); }; SavedSearch.prototype.updateSavedSearch = function (params) { return this.apiPut("/", params); }; SavedSearch.prototype.updateName = function (value) { return this.apiPut("/name", { value: value }); }; SavedSearch.prototype.updatePosition = function (value) { return this.apiPut("/pos", { value: value }); }; SavedSearch.prototype.updateQuery = function (value) { return this.apiPut("/query", { value: value }); }; SavedSearch.prototype.deleteSavedSearch = function () { return this.apiDelete("/"); }; return SavedSearch; }(BaseResource_1.BaseResource)); exports.SavedSearch = SavedSearch;