@trophyso/node
Version:
NodeJS SDK for the Trophy API
42 lines (41 loc) • 1.86 kB
JavaScript
;
// This file was auto-generated by Fern from our API Definition.
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdminClient = void 0;
const BaseClient_1 = require("../../../../BaseClient");
const Client_1 = require("../resources/attributes/client/Client");
const Client_2 = require("../resources/leaderboards/client/Client");
const Client_3 = require("../resources/metrics/client/Client");
const Client_4 = require("../resources/points/client/Client");
const Client_5 = require("../resources/streaks/client/Client");
const Client_6 = require("../resources/tenants/client/Client");
class AdminClient {
constructor(options) {
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
}
get attributes() {
var _a;
return ((_a = this._attributes) !== null && _a !== void 0 ? _a : (this._attributes = new Client_1.AttributesClient(this._options)));
}
get metrics() {
var _a;
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_3.MetricsClient(this._options)));
}
get leaderboards() {
var _a;
return ((_a = this._leaderboards) !== null && _a !== void 0 ? _a : (this._leaderboards = new Client_2.LeaderboardsClient(this._options)));
}
get streaks() {
var _a;
return ((_a = this._streaks) !== null && _a !== void 0 ? _a : (this._streaks = new Client_5.StreaksClient(this._options)));
}
get tenants() {
var _a;
return ((_a = this._tenants) !== null && _a !== void 0 ? _a : (this._tenants = new Client_6.TenantsClient(this._options)));
}
get points() {
var _a;
return ((_a = this._points) !== null && _a !== void 0 ? _a : (this._points = new Client_4.PointsClient(this._options)));
}
}
exports.AdminClient = AdminClient;