@wise-old-man/utils 3.1.1 → 3.1.3

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 CHANGED
@@ -34,6 +34,7 @@ export type Group = {
34
34
  description: string | null;
35
35
  homeworld: number | null;
36
36
  verified: boolean;
37
+ patron: boolean;
37
38
  score: number;
38
39
  verificationHash: string;
39
40
  createdAt: Date;
@@ -84,6 +85,7 @@ type Prisma_Base_Player = {
84
85
  build: PlayerBuild;
85
86
  status: PlayerStatus;
86
87
  country: Country | null;
88
+ patron: boolean;
87
89
  exp: bigint;
88
90
  ehp: number;
89
91
  ehb: number;
@@ -2075,10 +2077,11 @@ declare class PlayersClient extends BaseAPIClient {
2075
2077
  getPlayerSnapshots(username: string, options?: TimeRangeFilter): Promise<FormattedSnapshot[]>;
2076
2078
  /**
2077
2079
  * Fetches all of the player's past snapshots' timeline.
2078
- * @returns A list of timeseries data (value, date)
2080
+ * @returns A list of timeseries data (value, rank, date)
2079
2081
  */
2080
2082
  getPlayerSnapshotTimeline(username: string, metric: Metric, options?: TimeRangeFilter): Promise<{
2081
2083
  value: number;
2084
+ rank: number;
2082
2085
  date: Date;
2083
2086
  }[]>;
2084
2087
  /**
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.1",
3
+ "version": "3.1.3",
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",