UNPKG

trello-for-wolves

Version:
78 lines (77 loc) 3.26 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.Notification = void 0; var BaseResource_1 = require("./BaseResource"); var Board_1 = require("./Board"); var Card_1 = require("./Card"); var List_1 = require("./List"); var Member_1 = require("./Member"); var Organization_1 = require("./Organization"); var Notification = /** @class */ (function (_super) { __extends(Notification, _super); function Notification() { return _super !== null && _super.apply(this, arguments) || this; } Notification.prototype.getNotification = function (params) { return this.apiGet("/", params); }; Notification.prototype.getNotifications = function (params) { return this.apiGet("/", params); }; Notification.prototype.getNotificationsFilteredBy = function (filter) { return this.apiGet("/", { filter: filter }); }; Notification.prototype.getFieldValue = function (field) { return this.apiGet("/".concat(field)); }; Notification.prototype.getDisplay = function () { return this.apiGet("/display"); }; Notification.prototype.getEntities = function () { return this.apiGet("/entities"); }; Notification.prototype.updateNotification = function (params) { return this.apiPut("/", params); }; Notification.prototype.updateUnreadStatus = function (value) { return this.apiPut("/unread", { value: value }); }; Notification.prototype.markAllAsRead = function () { return this.apiPost("/all/read"); }; Notification.prototype.board = function () { return new Board_1.Board(this.config, this.pathElements, "board"); }; Notification.prototype.card = function () { return new Card_1.Card(this.config, this.pathElements, "card"); }; Notification.prototype.list = function () { return new List_1.List(this.config, this.pathElements, "list"); }; Notification.prototype.member = function () { return new Member_1.Member(this.config, this.pathElements, "member"); }; Notification.prototype.memberCreator = function () { return new Member_1.Member(this.config, this.pathElements, "memberCreator"); }; Notification.prototype.organization = function () { return new Organization_1.Organization(this.config, this.pathElements, "organization"); }; return Notification; }(BaseResource_1.BaseResource)); exports.Notification = Notification;