Skip to content

Commit b23035b

Browse files
Automatically update staging NodeJS SDK
1 parent 5167740 commit b23035b

17 files changed

Lines changed: 41 additions & 29 deletions

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ export declare class Leaderboards {
3737
* }, {
3838
* name: "Streak Legends",
3939
* key: "streak-legends",
40-
* status: TrophyApi.CreateLeaderboardRequestItemStatus.Active,
40+
* status: TrophyApi.CreateLeaderboardRequestItemStatus.Scheduled,
4141
* rankBy: TrophyApi.CreateLeaderboardRequestItemRankBy.Streak,
42-
* start: "2026-04-20"
42+
* start: "2026-04-27"
4343
* }])
4444
*/
4545
create(request: TrophyApi.CreateLeaderboardsRequest, requestOptions?: Leaderboards.RequestOptions): Promise<TrophyApi.CreateLeaderboardsResponse>;
@@ -50,7 +50,7 @@ export declare class Leaderboards {
5050
*/
5151
delete(request?: TrophyApi.admin.LeaderboardsDeleteRequest, requestOptions?: Leaderboards.RequestOptions): Promise<TrophyApi.DeleteLeaderboardsResponse>;
5252
/**
53-
* Update leaderboards in bulk by ID. Updating `status` behaves the same as activating, deactivating, or finishing a leaderboard in the dashboard.
53+
* Update leaderboards in bulk by ID. Updating `status` behaves the same as activating, scheduling, deactivating, or finishing a leaderboard in the dashboard.
5454
* @throws {@link TrophyApi.UnauthorizedError}
5555
* @throws {@link TrophyApi.UnprocessableEntityError}
5656
*
@@ -62,7 +62,7 @@ export declare class Leaderboards {
6262
* status: TrophyApi.UpdateLeaderboardRequestItemStatus.Active
6363
* }, {
6464
* id: "550e8400-e29b-41d4-a716-446655440101",
65-
* status: TrophyApi.UpdateLeaderboardRequestItemStatus.Inactive
65+
* status: TrophyApi.UpdateLeaderboardRequestItemStatus.Finished
6666
* }])
6767
*/
6868
update(request: TrophyApi.UpdateLeaderboardsRequest, requestOptions?: Leaderboards.RequestOptions): Promise<TrophyApi.UpdateLeaderboardsResponse>;

api/resources/admin/resources/leaderboards/client/Client.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ class Leaderboards {
6969
* }, {
7070
* name: "Streak Legends",
7171
* key: "streak-legends",
72-
* status: TrophyApi.CreateLeaderboardRequestItemStatus.Active,
72+
* status: TrophyApi.CreateLeaderboardRequestItemStatus.Scheduled,
7373
* rankBy: TrophyApi.CreateLeaderboardRequestItemRankBy.Streak,
74-
* start: "2026-04-20"
74+
* start: "2026-04-27"
7575
* }])
7676
*/
7777
create(request, requestOptions) {
@@ -214,7 +214,7 @@ class Leaderboards {
214214
});
215215
}
216216
/**
217-
* Update leaderboards in bulk by ID. Updating `status` behaves the same as activating, deactivating, or finishing a leaderboard in the dashboard.
217+
* Update leaderboards in bulk by ID. Updating `status` behaves the same as activating, scheduling, deactivating, or finishing a leaderboard in the dashboard.
218218
* @throws {@link TrophyApi.UnauthorizedError}
219219
* @throws {@link TrophyApi.UnprocessableEntityError}
220220
*
@@ -226,7 +226,7 @@ class Leaderboards {
226226
* status: TrophyApi.UpdateLeaderboardRequestItemStatus.Active
227227
* }, {
228228
* id: "550e8400-e29b-41d4-a716-446655440101",
229-
* status: TrophyApi.UpdateLeaderboardRequestItemStatus.Inactive
229+
* status: TrophyApi.UpdateLeaderboardRequestItemStatus.Finished
230230
* }])
231231
*/
232232
update(request, requestOptions) {

api/types/AdminLeaderboard.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface AdminLeaderboard {
1414
key: string;
1515
/** The leaderboard description. */
1616
description?: string;
17-
/** The current status of the leaderboard. A leaderboard in the `active` status is either scheduled (if the start date is in the future), finished (if the end date is in the past), or live. */
17+
/** The current user-facing status of the leaderboard. */
1818
status: TrophyApi.AdminLeaderboardStatus;
1919
/** What the leaderboard ranks by. */
2020
rankBy: TrophyApi.AdminLeaderboardRankBy;

api/types/AdminLeaderboardStatus.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44
/**
5-
* The current status of the leaderboard. A leaderboard in the `active` status is either scheduled (if the start date is in the future), finished (if the end date is in the past), or live.
5+
* The current user-facing status of the leaderboard.
66
*/
7-
export declare type AdminLeaderboardStatus = "active" | "inactive";
7+
export declare type AdminLeaderboardStatus = "inactive" | "active" | "scheduled" | "finished";
88
export declare const AdminLeaderboardStatus: {
9-
readonly Active: "active";
109
readonly Inactive: "inactive";
10+
readonly Active: "active";
11+
readonly Scheduled: "scheduled";
12+
readonly Finished: "finished";
1113
};

api/types/AdminLeaderboardStatus.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
Object.defineProperty(exports, "__esModule", { value: true });
66
exports.AdminLeaderboardStatus = void 0;
77
exports.AdminLeaderboardStatus = {
8-
Active: "active",
98
Inactive: "inactive",
9+
Active: "active",
10+
Scheduled: "scheduled",
11+
Finished: "finished",
1012
};

api/types/CreateLeaderboardRequestItem.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface CreateLeaderboardRequestItem {
1212
key: string;
1313
/** The leaderboard description. */
1414
description?: string;
15-
/** The initial status. Defaults to `inactive`. `active` behaves the same as activating or scheduling the leaderboard in the dashboard. */
15+
/** The initial user-facing status. Defaults to `inactive`. Use `scheduled` for leaderboards that should be active in the future and `finished` only when creating a leaderboard with an end date in the past. */
1616
status?: TrophyApi.CreateLeaderboardRequestItemStatus;
1717
/** What the leaderboard ranks by. */
1818
rankBy: TrophyApi.CreateLeaderboardRequestItemRankBy;

api/types/CreateLeaderboardRequestItemStatus.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44
/**
5-
* The initial status. Defaults to `inactive`. `active` behaves the same as activating or scheduling the leaderboard in the dashboard.
5+
* The initial user-facing status. Defaults to `inactive`. Use `scheduled` for leaderboards that should be active in the future and `finished` only when creating a leaderboard with an end date in the past.
66
*/
7-
export declare type CreateLeaderboardRequestItemStatus = "active" | "inactive";
7+
export declare type CreateLeaderboardRequestItemStatus = "inactive" | "active" | "scheduled" | "finished";
88
export declare const CreateLeaderboardRequestItemStatus: {
9-
readonly Active: "active";
109
readonly Inactive: "inactive";
10+
readonly Active: "active";
11+
readonly Scheduled: "scheduled";
12+
readonly Finished: "finished";
1113
};

api/types/CreateLeaderboardRequestItemStatus.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
Object.defineProperty(exports, "__esModule", { value: true });
66
exports.CreateLeaderboardRequestItemStatus = void 0;
77
exports.CreateLeaderboardRequestItemStatus = {
8-
Active: "active",
98
Inactive: "inactive",
9+
Active: "active",
10+
Scheduled: "scheduled",
11+
Finished: "finished",
1012
};

api/types/UpdateLeaderboardRequestItem.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface UpdateLeaderboardRequestItem {
1414
key?: string;
1515
/** The updated leaderboard description. */
1616
description?: string;
17-
/** The target status. `active` and `inactive` behave the same as the dashboard activate, schedule, deactivate, and finish actions. */
17+
/** The target user-facing status. `scheduled` activates a leaderboard whose start date is in the future. `finished` behaves like the dashboard finish action. */
1818
status?: TrophyApi.UpdateLeaderboardRequestItemStatus;
1919
/** The updated ranking criterion. This can only be changed while the leaderboard is inactive. */
2020
rankBy?: TrophyApi.UpdateLeaderboardRequestItemRankBy;

api/types/UpdateLeaderboardRequestItemStatus.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44
/**
5-
* The target status. `active` and `inactive` behave the same as the dashboard activate, schedule, deactivate, and finish actions.
5+
* The target user-facing status. `scheduled` activates a leaderboard whose start date is in the future. `finished` behaves like the dashboard finish action.
66
*/
7-
export declare type UpdateLeaderboardRequestItemStatus = "active" | "inactive";
7+
export declare type UpdateLeaderboardRequestItemStatus = "inactive" | "active" | "scheduled" | "finished";
88
export declare const UpdateLeaderboardRequestItemStatus: {
9-
readonly Active: "active";
109
readonly Inactive: "inactive";
10+
readonly Active: "active";
11+
readonly Scheduled: "scheduled";
12+
readonly Finished: "finished";
1113
};

0 commit comments

Comments
 (0)