@wise-old-man/utils 3.1.2 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1378,9 +1378,11 @@ interface ParticipationWithPlayer extends CleanParticipation {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
interface ParticipationWithPlayerAndProgress extends ParticipationWithPlayer {
|
|
1380
1380
|
progress: MeasuredDeltaProgress;
|
|
1381
|
+
levels?: MeasuredDeltaProgress;
|
|
1381
1382
|
}
|
|
1382
1383
|
interface ParticipationWithCompetitionAndStandings extends ParticipationWithCompetition {
|
|
1383
1384
|
progress: MeasuredDeltaProgress;
|
|
1385
|
+
levels?: MeasuredDeltaProgress;
|
|
1384
1386
|
rank: number;
|
|
1385
1387
|
}
|
|
1386
1388
|
interface Team {
|
|
@@ -2077,10 +2079,11 @@ declare class PlayersClient extends BaseAPIClient {
|
|
|
2077
2079
|
getPlayerSnapshots(username: string, options?: TimeRangeFilter): Promise<FormattedSnapshot[]>;
|
|
2078
2080
|
/**
|
|
2079
2081
|
* Fetches all of the player's past snapshots' timeline.
|
|
2080
|
-
* @returns A list of timeseries data (value, date)
|
|
2082
|
+
* @returns A list of timeseries data (value, rank, date)
|
|
2081
2083
|
*/
|
|
2082
2084
|
getPlayerSnapshotTimeline(username: string, metric: Metric, options?: TimeRangeFilter): Promise<{
|
|
2083
2085
|
value: number;
|
|
2086
|
+
rank: number;
|
|
2084
2087
|
date: Date;
|
|
2085
2088
|
}[]>;
|
|
2086
2089
|
/**
|
package/dist/index.js
CHANGED
|
@@ -424,7 +424,7 @@ class PlayersClient extends BaseAPIClient {
|
|
|
424
424
|
}
|
|
425
425
|
/**
|
|
426
426
|
* Fetches all of the player's past snapshots' timeline.
|
|
427
|
-
* @returns A list of timeseries data (value, date)
|
|
427
|
+
* @returns A list of timeseries data (value, rank, date)
|
|
428
428
|
*/
|
|
429
429
|
getPlayerSnapshotTimeline(username, metric, options) {
|
|
430
430
|
return this.getRequest(`/players/${username}/snapshots/timeline`, Object.assign(Object.assign({}, options), { metric }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "A JavaScript/TypeScript client that interfaces and consumes the Wise Old Man API, an API that tracks and measures players' progress in Old School Runescape.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wiseoldman",
|