Skip to content

Commit 0f10dca

Browse files
Automatically update NodeJS SDK
1 parent 0a2873d commit 0f10dca

9 files changed

Lines changed: 22 additions & 22 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,29 +59,29 @@ export declare class Users {
5959
* @throws {@link TrophyApi.UnprocessableEntityError}
6060
*
6161
* @example
62-
* await trophyApi.users.allmetrics("userId")
62+
* await trophyApi.users.allMetrics("userId")
6363
*/
64-
allmetrics(id: string, requestOptions?: Users.RequestOptions): Promise<TrophyApi.MetricResponse[]>;
64+
allMetrics(id: string, requestOptions?: Users.RequestOptions): Promise<TrophyApi.MetricResponse[]>;
6565
/**
6666
* Get a user's progress against a single active metric.
6767
* @throws {@link TrophyApi.UnauthorizedError}
6868
* @throws {@link TrophyApi.NotFoundError}
6969
* @throws {@link TrophyApi.UnprocessableEntityError}
7070
*
7171
* @example
72-
* await trophyApi.users.singlemetric("userId", "key")
72+
* await trophyApi.users.singleMetric("userId", "key")
7373
*/
74-
singlemetric(id: string, key: string, requestOptions?: Users.RequestOptions): Promise<TrophyApi.MetricResponse>;
74+
singleMetric(id: string, key: string, requestOptions?: Users.RequestOptions): Promise<TrophyApi.MetricResponse>;
7575
/**
7676
* Get all of a user's completed achievements.
7777
* @throws {@link TrophyApi.UnauthorizedError}
7878
* @throws {@link TrophyApi.NotFoundError}
7979
* @throws {@link TrophyApi.UnprocessableEntityError}
8080
*
8181
* @example
82-
* await trophyApi.users.allachievements("userId")
82+
* await trophyApi.users.allAchievements("userId")
8383
*/
84-
allachievements(id: string, requestOptions?: Users.RequestOptions): Promise<TrophyApi.AchievementResponse[]>;
84+
allAchievements(id: string, requestOptions?: Users.RequestOptions): Promise<TrophyApi.AchievementResponse[]>;
8585
/**
8686
* Get a user's streak data.
8787
* @throws {@link TrophyApi.UnauthorizedError}

api/resources/users/client/Client.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ class Users {
291291
* @throws {@link TrophyApi.UnprocessableEntityError}
292292
*
293293
* @example
294-
* await trophyApi.users.allmetrics("userId")
294+
* await trophyApi.users.allMetrics("userId")
295295
*/
296-
allmetrics(id, requestOptions) {
296+
allMetrics(id, requestOptions) {
297297
var _a;
298298
return __awaiter(this, void 0, void 0, function* () {
299299
const _response = yield core.fetcher({
@@ -308,7 +308,7 @@ class Users {
308308
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
309309
});
310310
if (_response.ok) {
311-
return yield serializers.users.allmetrics.Response.parseOrThrow(_response.body, {
311+
return yield serializers.users.allMetrics.Response.parseOrThrow(_response.body, {
312312
unrecognizedObjectKeys: "passthrough",
313313
allowUnrecognizedUnionMembers: true,
314314
allowUnrecognizedEnumValues: true,
@@ -367,9 +367,9 @@ class Users {
367367
* @throws {@link TrophyApi.UnprocessableEntityError}
368368
*
369369
* @example
370-
* await trophyApi.users.singlemetric("userId", "key")
370+
* await trophyApi.users.singleMetric("userId", "key")
371371
*/
372-
singlemetric(id, key, requestOptions) {
372+
singleMetric(id, key, requestOptions) {
373373
var _a;
374374
return __awaiter(this, void 0, void 0, function* () {
375375
const _response = yield core.fetcher({
@@ -443,9 +443,9 @@ class Users {
443443
* @throws {@link TrophyApi.UnprocessableEntityError}
444444
*
445445
* @example
446-
* await trophyApi.users.allachievements("userId")
446+
* await trophyApi.users.allAchievements("userId")
447447
*/
448-
allachievements(id, requestOptions) {
448+
allAchievements(id, requestOptions) {
449449
var _a;
450450
return __awaiter(this, void 0, void 0, function* () {
451451
const _response = yield core.fetcher({
@@ -460,7 +460,7 @@ class Users {
460460
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
461461
});
462462
if (_response.ok) {
463-
return yield serializers.users.allachievements.Response.parseOrThrow(_response.body, {
463+
return yield serializers.users.allAchievements.Response.parseOrThrow(_response.body, {
464464
unrecognizedObjectKeys: "passthrough",
465465
allowUnrecognizedUnionMembers: true,
466466
allowUnrecognizedEnumValues: true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@trophyso/node",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "NodeJS SDK for the Trophy API",
55
"main": "index.js",
66
"scripts": {

serialization/resources/users/client/allachievements.d.ts renamed to serialization/resources/users/client/allAchievements.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as serializers from "../../..";
55
import * as TrophyApi from "../../../../api";
66
import * as core from "../../../../core";
7-
export declare const Response: core.serialization.Schema<serializers.users.allachievements.Response.Raw, TrophyApi.AchievementResponse[]>;
7+
export declare const Response: core.serialization.Schema<serializers.users.allAchievements.Response.Raw, TrophyApi.AchievementResponse[]>;
88
export declare namespace Response {
99
type Raw = serializers.AchievementResponse.Raw[];
1010
}

serialization/resources/users/client/allachievements.js renamed to serialization/resources/users/client/allAchievements.js

File renamed without changes.

serialization/resources/users/client/allmetrics.d.ts renamed to serialization/resources/users/client/allMetrics.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as serializers from "../../..";
55
import * as TrophyApi from "../../../../api";
66
import * as core from "../../../../core";
7-
export declare const Response: core.serialization.Schema<serializers.users.allmetrics.Response.Raw, TrophyApi.MetricResponse[]>;
7+
export declare const Response: core.serialization.Schema<serializers.users.allMetrics.Response.Raw, TrophyApi.MetricResponse[]>;
88
export declare namespace Response {
99
type Raw = serializers.MetricResponse.Raw[];
1010
}
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * as allmetrics from "./allmetrics";
2-
export * as allachievements from "./allachievements";
1+
export * as allMetrics from "./allMetrics";
2+
export * as allAchievements from "./allAchievements";

serialization/resources/users/client/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
2323
return result;
2424
};
2525
Object.defineProperty(exports, "__esModule", { value: true });
26-
exports.allachievements = exports.allmetrics = void 0;
27-
exports.allmetrics = __importStar(require("./allmetrics"));
28-
exports.allachievements = __importStar(require("./allachievements"));
26+
exports.allAchievements = exports.allMetrics = void 0;
27+
exports.allMetrics = __importStar(require("./allMetrics"));
28+
exports.allAchievements = __importStar(require("./allAchievements"));

0 commit comments

Comments
 (0)