Skip to content

Commit 95fd1b8

Browse files
Automatically update staging NodeJS SDK
1 parent 0d26175 commit 95fd1b8

68 files changed

Lines changed: 1535 additions & 1 deletion

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/resources/points/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 { Boosts } from "../resources/boosts/client/Client";
7+
import { Levels } from "../resources/levels/client/Client";
78
export declare namespace Points {
89
interface Options {
910
environment?: core.Supplier<environments.TrophyApiEnvironment | environments.TrophyApiEnvironmentUrls>;
@@ -19,4 +20,6 @@ export declare class Points {
1920
constructor(_options: Points.Options);
2021
protected _boosts: Boosts | undefined;
2122
get boosts(): Boosts;
23+
protected _levels: Levels | undefined;
24+
get levels(): Levels;
2225
}

api/resources/admin/resources/points/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.Points = void 0;
77
const Client_1 = require("../resources/boosts/client/Client");
8+
const Client_2 = require("../resources/levels/client/Client");
89
class Points {
910
constructor(_options) {
1011
this._options = _options;
@@ -13,5 +14,9 @@ class Points {
1314
var _a;
1415
return ((_a = this._boosts) !== null && _a !== void 0 ? _a : (this._boosts = new Client_1.Boosts(this._options)));
1516
}
17+
get levels() {
18+
var _a;
19+
return ((_a = this._levels) !== null && _a !== void 0 ? _a : (this._levels = new Client_2.Levels(this._options)));
20+
}
1621
}
1722
exports.Points = Points;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
export * as boosts from "./boosts";
2+
export * as levels from "./levels";
23
export * from "./boosts/client/requests";
4+
export * from "./levels/client/requests";

api/resources/admin/resources/points/resources/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +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.boosts = void 0;
29+
exports.levels = exports.boosts = void 0;
3030
exports.boosts = __importStar(require("./boosts"));
31+
exports.levels = __importStar(require("./levels"));
3132
__exportStar(require("./boosts/client/requests"), exports);
33+
__exportStar(require("./levels/client/requests"), exports);
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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 * as TrophyApi from "../../../../../../..";
7+
export declare namespace Levels {
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 Levels {
18+
protected readonly _options: Levels.Options;
19+
constructor(_options: Levels.Options);
20+
/**
21+
* List points levels for a system.
22+
* @throws {@link TrophyApi.UnauthorizedError}
23+
* @throws {@link TrophyApi.NotFoundError}
24+
* @throws {@link TrophyApi.UnprocessableEntityError}
25+
*
26+
* @example
27+
* await trophyApi.admin.points.levels.list("550e8400-e29b-41d4-a716-446655440000", {
28+
* limit: 1,
29+
* skip: 1
30+
* })
31+
*/
32+
list(systemId: string, request?: TrophyApi.admin.points.LevelsListRequest, requestOptions?: Levels.RequestOptions): Promise<TrophyApi.ListPointsLevelsResponse>;
33+
/**
34+
* Create points levels. Maximum 100 levels per request.
35+
* @throws {@link TrophyApi.UnauthorizedError}
36+
* @throws {@link TrophyApi.NotFoundError}
37+
* @throws {@link TrophyApi.UnprocessableEntityError}
38+
*
39+
* @example
40+
* await trophyApi.admin.points.levels.create("550e8400-e29b-41d4-a716-446655440000", [{
41+
* name: "Bronze",
42+
* key: "bronze",
43+
* points: 100
44+
* }])
45+
*/
46+
create(systemId: string, request: TrophyApi.CreatePointsLevelsRequest, requestOptions?: Levels.RequestOptions): Promise<TrophyApi.CreatePointsLevelsResponse>;
47+
/**
48+
* Delete multiple points levels by ID.
49+
* @throws {@link TrophyApi.UnauthorizedError}
50+
* @throws {@link TrophyApi.NotFoundError}
51+
* @throws {@link TrophyApi.UnprocessableEntityError}
52+
*
53+
* @example
54+
* await trophyApi.admin.points.levels.delete(undefined, {})
55+
*/
56+
delete(systemId: string, request?: TrophyApi.admin.points.LevelsDeleteRequest, requestOptions?: Levels.RequestOptions): Promise<TrophyApi.DeletePointsLevelsResponse>;
57+
/**
58+
* Update multiple points levels. Each item must include an ID. `key` cannot be changed.
59+
* @throws {@link TrophyApi.UnauthorizedError}
60+
* @throws {@link TrophyApi.NotFoundError}
61+
* @throws {@link TrophyApi.UnprocessableEntityError}
62+
*
63+
* @example
64+
* await trophyApi.admin.points.levels.update("550e8400-e29b-41d4-a716-446655440000", [{
65+
* id: "550e8400-e29b-41d4-a716-446655440000"
66+
* }])
67+
*/
68+
update(systemId: string, request: TrophyApi.PatchPointsLevelsRequest, requestOptions?: Levels.RequestOptions): Promise<TrophyApi.PatchPointsLevelsResponse>;
69+
/**
70+
* Get a single points level by ID.
71+
* @throws {@link TrophyApi.UnauthorizedError}
72+
* @throws {@link TrophyApi.NotFoundError}
73+
* @throws {@link TrophyApi.UnprocessableEntityError}
74+
*
75+
* @example
76+
* await trophyApi.admin.points.levels.get("550e8400-e29b-41d4-a716-446655440000", "660f9500-f30c-42e5-b827-557766550001")
77+
*/
78+
get(systemId: string, id: string, requestOptions?: Levels.RequestOptions): Promise<TrophyApi.AdminPointsLevel>;
79+
}

0 commit comments

Comments
 (0)