trello-for-wolves
Version:
Node.js wrapper for Trello API...for wolves.
54 lines (53 loc) • 2.26 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.Enterprise = void 0;
var BaseResource_1 = require("./BaseResource");
var Member_1 = require("./Member");
var Organization_1 = require("./Organization");
var Enterprise = /** @class */ (function (_super) {
__extends(Enterprise, _super);
function Enterprise() {
return _super !== null && _super.apply(this, arguments) || this;
}
Enterprise.prototype.getEnterprise = function (params) {
return this.apiGet("/", params);
};
Enterprise.prototype.getEnterprises = function (params) {
return this.apiGet("/", params);
};
Enterprise.prototype.getAdmins = function (params) {
return this.apiGet("/admins", params);
};
Enterprise.prototype.getSignupUrl = function (params) {
return this.apiGet("/signupUrl", params);
};
Enterprise.prototype.members = function (idMember) {
if (idMember === void 0) { idMember = ""; }
return new Member_1.Member(this.config, this.pathElements, "members", {
identifier: idMember,
});
};
Enterprise.prototype.organizations = function (idOrganization) {
if (idOrganization === void 0) { idOrganization = ""; }
return new Organization_1.Organization(this.config, this.pathElements, "organizations", {
identifier: idOrganization,
});
};
return Enterprise;
}(BaseResource_1.BaseResource));
exports.Enterprise = Enterprise;