@wise-old-man/utils 4.0.12 → 4.0.14-league

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -259,7 +259,6 @@ declare const ACTIVITIES: Activity[];
259
259
  declare const COMPUTED_METRICS: ComputedMetric[];
260
260
 
261
261
  interface Snapshot {
262
- id: number;
263
262
  playerId: number;
264
263
  importedAt: Date | null;
265
264
  createdAt: Date;
@@ -1284,8 +1283,6 @@ interface NameChange {
1284
1283
  interface Participation {
1285
1284
  playerId: number;
1286
1285
  competitionId: number;
1287
- startSnapshotId: number | null;
1288
- endSnapshotId: number | null;
1289
1286
  startSnapshotDate: Date | null;
1290
1287
  endSnapshotDate: Date | null;
1291
1288
  teamName: string | null;
@@ -1378,8 +1375,10 @@ interface Player {
1378
1375
  updatedAt: Date | null;
1379
1376
  lastChangedAt: Date | null;
1380
1377
  lastImportedAt: Date | null;
1381
- latestSnapshotId: number | null;
1382
1378
  latestSnapshotDate: Date | null;
1379
+ leaguePoints: number;
1380
+ leagueRank: number;
1381
+ leaguePercentile: number;
1383
1382
  }
1384
1383
 
1385
1384
  interface Record$1 {
@@ -1480,7 +1479,7 @@ interface CompetitionResponse extends Omit<Competition, 'verificationHash' | 'cr
1480
1479
  * they often include transformations, additional properties or sensitive field omissions.
1481
1480
  */
1482
1481
 
1483
- type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapshotId' | 'startSnapshotDate' | 'endSnapshotDate'>;
1482
+ type ParticipationResponse = Omit<Participation, 'startSnapshotDate' | 'endSnapshotDate'>;
1484
1483
 
1485
1484
  /**
1486
1485
  * Response types are used to format the data returned by the API.
@@ -1489,7 +1488,7 @@ type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapsho
1489
1488
  * they often include transformations, additional properties or sensitive field omissions.
1490
1489
  */
1491
1490
 
1492
- type PlayerResponse = Omit<Player, 'latestSnapshotId' | 'latestSnapshotDate'>;
1491
+ type PlayerResponse = Omit<Player, 'latestSnapshotDate'>;
1493
1492
 
1494
1493
  /**
1495
1494
  * Response types are used to format the data returned by the API.
@@ -1537,7 +1536,6 @@ interface ComputeMetricData {
1537
1536
  value: number;
1538
1537
  }
1539
1538
  interface SnapshotResponse {
1540
- id: number;
1541
1539
  playerId: number;
1542
1540
  createdAt: Date;
1543
1541
  importedAt: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise-old-man/utils",
3
- "version": "4.0.12",
3
+ "version": "4.0.14-league",
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",