-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.js
More file actions
47 lines (47 loc) · 1.94 KB
/
Client.js
File metadata and controls
47 lines (47 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"use strict";
/**
* This file was auto-generated by Fern from our API Definition.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.TrophyApiClient = void 0;
const Client_1 = require("./api/resources/achievements/client/Client");
const Client_2 = require("./api/resources/metrics/client/Client");
const Client_3 = require("./api/resources/users/client/Client");
const Client_4 = require("./api/resources/streaks/client/Client");
const Client_5 = require("./api/resources/points/client/Client");
const Client_6 = require("./api/resources/leaderboards/client/Client");
const Client_7 = require("./api/resources/admin/client/Client");
class TrophyApiClient {
constructor(_options) {
this._options = _options;
}
get achievements() {
var _a;
return ((_a = this._achievements) !== null && _a !== void 0 ? _a : (this._achievements = new Client_1.Achievements(this._options)));
}
get metrics() {
var _a;
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_2.Metrics(this._options)));
}
get users() {
var _a;
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_3.Users(this._options)));
}
get streaks() {
var _a;
return ((_a = this._streaks) !== null && _a !== void 0 ? _a : (this._streaks = new Client_4.Streaks(this._options)));
}
get points() {
var _a;
return ((_a = this._points) !== null && _a !== void 0 ? _a : (this._points = new Client_5.Points(this._options)));
}
get leaderboards() {
var _a;
return ((_a = this._leaderboards) !== null && _a !== void 0 ? _a : (this._leaderboards = new Client_6.Leaderboards(this._options)));
}
get admin() {
var _a;
return ((_a = this._admin) !== null && _a !== void 0 ? _a : (this._admin = new Client_7.Admin(this._options)));
}
}
exports.TrophyApiClient = TrophyApiClient;