Skip to content

Commit 2cb9738

Browse files
Automatically update NodeJS SDK
1 parent 80f4b5b commit 2cb9738

140 files changed

Lines changed: 2369 additions & 23 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api/resources/admin/client/Client.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import * as environments from "../../../../environments";
55
import * as core from "../../../../core";
66
import { Streaks } from "../resources/streaks/client/Client";
7+
import { Points } from "../resources/points/client/Client";
78
export declare namespace Admin {
89
interface Options {
910
environment?: core.Supplier<environments.TrophyApiEnvironment | environments.TrophyApiEnvironmentUrls>;
@@ -19,4 +20,6 @@ export declare class Admin {
1920
constructor(_options: Admin.Options);
2021
protected _streaks: Streaks | undefined;
2122
get streaks(): Streaks;
23+
protected _points: Points | undefined;
24+
get points(): Points;
2225
}

api/resources/admin/client/Client.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Object.defineProperty(exports, "__esModule", { value: true });
66
exports.Admin = void 0;
77
const Client_1 = require("../resources/streaks/client/Client");
8+
const Client_2 = require("../resources/points/client/Client");
89
class Admin {
910
constructor(_options) {
1011
this._options = _options;
@@ -13,5 +14,9 @@ class Admin {
1314
var _a;
1415
return ((_a = this._streaks) !== null && _a !== void 0 ? _a : (this._streaks = new Client_1.Streaks(this._options)));
1516
}
17+
get points() {
18+
var _a;
19+
return ((_a = this._points) !== null && _a !== void 0 ? _a : (this._points = new Client_2.Points(this._options)));
20+
}
1621
}
1722
exports.Admin = Admin;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * as streaks from "./streaks";
22
export * from "./streaks/types";
3+
export * as points from "./points";
34
export * from "./streaks/client/requests";

api/resources/admin/resources/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
2626
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2727
};
2828
Object.defineProperty(exports, "__esModule", { value: true });
29-
exports.streaks = void 0;
29+
exports.points = exports.streaks = void 0;
3030
exports.streaks = __importStar(require("./streaks"));
3131
__exportStar(require("./streaks/types"), exports);
32+
exports.points = __importStar(require("./points"));
3233
__exportStar(require("./streaks/client/requests"), exports);
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
import * as environments from "../../../../../../environments";
5+
import * as core from "../../../../../../core";
6+
import { Boosts } from "../resources/boosts/client/Client";
7+
export declare namespace Points {
8+
interface Options {
9+
environment?: core.Supplier<environments.TrophyApiEnvironment | environments.TrophyApiEnvironmentUrls>;
10+
apiKey: core.Supplier<string>;
11+
}
12+
interface RequestOptions {
13+
timeoutInSeconds?: number;
14+
maxRetries?: number;
15+
}
16+
}
17+
export declare class Points {
18+
protected readonly _options: Points.Options;
19+
constructor(_options: Points.Options);
20+
protected _boosts: Boosts | undefined;
21+
get boosts(): Boosts;
22+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"use strict";
2+
/**
3+
* This file was auto-generated by Fern from our API Definition.
4+
*/
5+
Object.defineProperty(exports, "__esModule", { value: true });
6+
exports.Points = void 0;
7+
const Client_1 = require("../resources/boosts/client/Client");
8+
class Points {
9+
constructor(_options) {
10+
this._options = _options;
11+
}
12+
get boosts() {
13+
var _a;
14+
return ((_a = this._boosts) !== null && _a !== void 0 ? _a : (this._boosts = new Client_1.Boosts(this._options)));
15+
}
16+
}
17+
exports.Points = Points;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "./resources";
2+
export * from "./client";
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"use strict";
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
var desc = Object.getOwnPropertyDescriptor(m, k);
5+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6+
desc = { enumerable: true, get: function() { return m[k]; } };
7+
}
8+
Object.defineProperty(o, k2, desc);
9+
}) : (function(o, m, k, k2) {
10+
if (k2 === undefined) k2 = k;
11+
o[k2] = m[k];
12+
}));
13+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
14+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15+
};
16+
Object.defineProperty(exports, "__esModule", { value: true });
17+
__exportStar(require("./resources"), exports);
18+
__exportStar(require("./client"), exports);

0 commit comments

Comments
 (0)