Skip to content

Commit bdc572b

Browse files
Automatically update staging NodeJS SDK
1 parent ce816f3 commit bdc572b

83 files changed

Lines changed: 330 additions & 298 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/resources/points/resources/boosts/client/Client.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export declare class Boosts {
5050
* name: "Global Holiday Bonus",
5151
* start: "2024-12-25",
5252
* multiplier: 1.5,
53-
* rounding: TrophyApi.CreatePointsBoostsRequestItemRounding.Up
53+
* rounding: TrophyApi.CreatePointsBoostRequestItemRounding.Up
5454
* }])
5555
*
5656
* @example

api/resources/admin/resources/points/resources/boosts/client/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Boosts {
158158
* name: "Global Holiday Bonus",
159159
* start: "2024-12-25",
160160
* multiplier: 1.5,
161-
* rounding: TrophyApi.CreatePointsBoostsRequestItemRounding.Up
161+
* rounding: TrophyApi.CreatePointsBoostRequestItemRounding.Up
162162
* }])
163163
*
164164
* @example

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,26 @@ export declare class Systems {
3838
* await trophyApi.admin.points.systems.create([{
3939
* name: "XP",
4040
* key: "xp",
41-
* description: "Experience points"
41+
* description: "Experience points",
42+
* levels: [{
43+
* name: "Bronze",
44+
* key: "bronze",
45+
* points: 100
46+
* }, {
47+
* name: "Silver",
48+
* key: "silver",
49+
* points: 500
50+
* }]
4251
* }])
4352
*/
4453
create(request: TrophyApi.CreatePointsSystemsRequest, requestOptions?: Systems.RequestOptions): Promise<TrophyApi.CreatePointsSystemsResponse>;
4554
/**
4655
* Delete (archive) points systems by ID.
4756
* @throws {@link TrophyApi.UnauthorizedError}
4857
* @throws {@link TrophyApi.UnprocessableEntityError}
58+
*
59+
* @example
60+
* await trophyApi.admin.points.systems.delete({})
4961
*/
5062
delete(request?: TrophyApi.admin.points.SystemsDeleteRequest, requestOptions?: Systems.RequestOptions): Promise<TrophyApi.DeletePointsSystemsResponse>;
5163
/**

api/resources/admin/resources/points/resources/systems/client/Client.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,16 @@ class Systems {
139139
* await trophyApi.admin.points.systems.create([{
140140
* name: "XP",
141141
* key: "xp",
142-
* description: "Experience points"
142+
* description: "Experience points",
143+
* levels: [{
144+
* name: "Bronze",
145+
* key: "bronze",
146+
* points: 100
147+
* }, {
148+
* name: "Silver",
149+
* key: "silver",
150+
* points: 500
151+
* }]
143152
* }])
144153
*/
145154
create(request, requestOptions) {
@@ -210,6 +219,9 @@ class Systems {
210219
* Delete (archive) points systems by ID.
211220
* @throws {@link TrophyApi.UnauthorizedError}
212221
* @throws {@link TrophyApi.UnprocessableEntityError}
222+
*
223+
* @example
224+
* await trophyApi.admin.points.systems.delete({})
213225
*/
214226
delete(request = {}, requestOptions) {
215227
var _a;

api/resources/admin/resources/points/resources/systems/client/requests/SystemsDeleteRequest.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/**
22
* This file was auto-generated by Fern from our API Definition.
33
*/
4+
/**
5+
* @example
6+
* {}
7+
*/
48
export interface SystemsDeleteRequest {
59
/**
610
* The IDs of the points systems to delete.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export declare class Triggers {
3838
*
3939
* @example
4040
* await trophyApi.admin.points.triggers.create("550e8400-e29b-41d4-a716-446655440000", [{
41-
* type: TrophyApi.CreatePointsTriggersRequestItemType.Metric,
41+
* type: TrophyApi.CreatePointsTriggerRequestItemType.Metric,
4242
* points: 10
4343
* }])
4444
*/

api/resources/admin/resources/points/resources/triggers/client/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class Triggers {
146146
*
147147
* @example
148148
* await trophyApi.admin.points.triggers.create("550e8400-e29b-41d4-a716-446655440000", [{
149-
* type: TrophyApi.CreatePointsTriggersRequestItemType.Metric,
149+
* type: TrophyApi.CreatePointsTriggerRequestItemType.Metric,
150150
* points: 10
151151
* }])
152152
*/
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/**
22
* This file was auto-generated by Fern from our API Definition.
33
*/
4-
/**
5-
* The badge for the points system.
6-
*/
74
export interface AdminPointsSystemBadge {
85
url: string;
96
}

api/types/AdminPointsTrigger.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ export interface AdminPointsTrigger {
1616
status: TrophyApi.AdminPointsTriggerStatus;
1717
/** User attribute filters applied to the trigger. */
1818
userAttributes: TrophyApi.AdminPointsTriggerUserAttributesItem[];
19-
/** The UUID of the metric, or null if not a metric trigger. */
19+
/** The UUID of the metric. Only present for metric triggers. */
2020
metricId?: string;
21-
/** The metric threshold, or null if not a metric trigger. */
21+
/** The metric threshold. Only present for metric triggers. */
2222
metricThreshold?: number;
23-
/** Event attribute filters applied to the trigger. */
24-
eventAttributes: TrophyApi.AdminPointsTriggerEventAttributesItem[];
25-
/** The UUID of the achievement, or null if not an achievement trigger. */
23+
/** Event attribute filters applied to the trigger. Only present for metric triggers. */
24+
eventAttributes?: TrophyApi.AdminPointsTriggerEventAttributesItem[];
25+
/** The UUID of the achievement. Only present for achievement triggers. */
2626
achievementId?: string;
27-
/** The streak length, or null if not a streak trigger. */
27+
/** The streak length. Only present for streak triggers. */
2828
streakLength?: number;
29-
/** The time unit, or null if not a time trigger. */
29+
/** The time unit. Only present for time triggers. */
3030
timeUnit?: TrophyApi.AdminPointsTriggerTimeUnit;
31-
/** The time interval, or null if not a time trigger. */
31+
/** The time interval. Only present for time triggers. */
3232
timeInterval?: number;
3333
/** Whether metric events that would reduce the user's points below zero are blocked. */
3434
blockIfOutOfPoints: boolean;

api/types/AdminPointsTriggerTimeUnit.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44
/**
5-
* The time unit, or null if not a time trigger.
5+
* The time unit. Only present for time triggers.
66
*/
77
export declare type AdminPointsTriggerTimeUnit = "hours" | "days";
88
export declare const AdminPointsTriggerTimeUnit: {

0 commit comments

Comments
 (0)