Skip to content

Commit 07a7698

Browse files
Automatically update staging NodeJS SDK
1 parent bdc572b commit 07a7698

14 files changed

Lines changed: 93 additions & 21 deletions

api/types/AdminPointsSystem.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,4 @@ export interface AdminPointsSystem {
2020
badge?: TrophyApi.AdminPointsSystemBadge;
2121
/** The maximum points a user can earn. */
2222
maxPoints?: number;
23-
/** Levels created alongside the system (only present in creation response when levels were provided). */
24-
levels?: TrophyApi.AdminPointsLevel[];
25-
/** Boosts created alongside the system (only present in creation response when boosts were provided). */
26-
boosts?: TrophyApi.AdminPointsBoost[];
27-
/** Triggers created alongside the system (only present in creation response when triggers were provided). */
28-
triggers?: TrophyApi.AdminPointsTrigger[];
2923
}

api/types/CreatePointsSystemsResponse.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as TrophyApi from "..";
77
*/
88
export interface CreatePointsSystemsResponse {
99
/** Array of successfully created points systems. */
10-
created: TrophyApi.AdminPointsSystem[];
10+
created: TrophyApi.CreatedAdminPointsSystem[];
1111
/** Array of issues encountered during creation. */
1212
issues: TrophyApi.AdminIssue[];
1313
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
import * as TrophyApi from "..";
5+
/**
6+
* A points system returned from the creation endpoint. Extends AdminPointsSystem with optional sub-entity arrays that are present when those sub-entities were included in the creation request.
7+
*/
8+
export interface CreatedAdminPointsSystem extends TrophyApi.AdminPointsSystem {
9+
/** Levels created alongside the system. Present when levels were provided in the request. */
10+
levels?: TrophyApi.AdminPointsLevel[];
11+
/** Boosts created alongside the system. Present when boosts were provided in the request. */
12+
boosts?: TrophyApi.AdminPointsBoost[];
13+
/** Triggers created alongside the system. Present when triggers were provided in the request. */
14+
triggers?: TrophyApi.AdminPointsTrigger[];
15+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
/**
3+
* This file was auto-generated by Fern from our API Definition.
4+
*/
5+
Object.defineProperty(exports, "__esModule", { value: true });

api/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ export * from "./CreatePointsSystemRequestItem";
189189
export * from "./AdminPointsSystemStatus";
190190
export * from "./AdminPointsSystemBadge";
191191
export * from "./AdminPointsSystem";
192+
export * from "./CreatedAdminPointsSystem";
192193
export * from "./ListPointsSystemsResponse";
193194
export * from "./CreatePointsSystemsResponse";
194195
export * from "./UpdatePointsSystemsRequest";

api/types/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ __exportStar(require("./CreatePointsSystemRequestItem"), exports);
205205
__exportStar(require("./AdminPointsSystemStatus"), exports);
206206
__exportStar(require("./AdminPointsSystemBadge"), exports);
207207
__exportStar(require("./AdminPointsSystem"), exports);
208+
__exportStar(require("./CreatedAdminPointsSystem"), exports);
208209
__exportStar(require("./ListPointsSystemsResponse"), exports);
209210
__exportStar(require("./CreatePointsSystemsResponse"), exports);
210211
__exportStar(require("./UpdatePointsSystemsRequest"), exports);

serialization/types/AdminPointsSystem.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,5 @@ export declare namespace AdminPointsSystem {
1414
status: serializers.AdminPointsSystemStatus.Raw;
1515
badge?: serializers.AdminPointsSystemBadge.Raw | null;
1616
maxPoints?: number | null;
17-
levels?: serializers.AdminPointsLevel.Raw[] | null;
18-
boosts?: serializers.AdminPointsBoost.Raw[] | null;
19-
triggers?: serializers.AdminPointsTrigger.Raw[] | null;
2017
}
2118
}

serialization/types/AdminPointsSystem.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,4 @@ exports.AdminPointsSystem = core.serialization.object({
4545
status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AdminPointsSystemStatus; })),
4646
badge: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AdminPointsSystemBadge; })).optional(),
4747
maxPoints: core.serialization.number().optional(),
48-
levels: core.serialization
49-
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AdminPointsLevel; })))
50-
.optional(),
51-
boosts: core.serialization
52-
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AdminPointsBoost; })))
53-
.optional(),
54-
triggers: core.serialization
55-
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AdminPointsTrigger; })))
56-
.optional(),
5748
});

serialization/types/CreatePointsSystemsResponse.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as core from "../../core";
77
export declare const CreatePointsSystemsResponse: core.serialization.ObjectSchema<serializers.CreatePointsSystemsResponse.Raw, TrophyApi.CreatePointsSystemsResponse>;
88
export declare namespace CreatePointsSystemsResponse {
99
interface Raw {
10-
created: serializers.AdminPointsSystem.Raw[];
10+
created: serializers.CreatedAdminPointsSystem.Raw[];
1111
issues: serializers.AdminIssue.Raw[];
1212
}
1313
}

serialization/types/CreatePointsSystemsResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3838
exports.CreatePointsSystemsResponse = void 0;
3939
const core = __importStar(require("../../core"));
4040
exports.CreatePointsSystemsResponse = core.serialization.object({
41-
created: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AdminPointsSystem; }))),
41+
created: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).CreatedAdminPointsSystem; }))),
4242
issues: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AdminIssue; }))),
4343
});

0 commit comments

Comments
 (0)