@wise-old-man/utils 4.0.11 → 4.0.13

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 +2 -7
  2. package/package.json +2 -2
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,7 +1375,6 @@ 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;
1383
1379
  }
1384
1380
 
@@ -1480,7 +1476,7 @@ interface CompetitionResponse extends Omit<Competition, 'verificationHash' | 'cr
1480
1476
  * they often include transformations, additional properties or sensitive field omissions.
1481
1477
  */
1482
1478
 
1483
- type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapshotId' | 'startSnapshotDate' | 'endSnapshotDate'>;
1479
+ type ParticipationResponse = Omit<Participation, 'startSnapshotDate' | 'endSnapshotDate'>;
1484
1480
 
1485
1481
  /**
1486
1482
  * Response types are used to format the data returned by the API.
@@ -1489,7 +1485,7 @@ type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapsho
1489
1485
  * they often include transformations, additional properties or sensitive field omissions.
1490
1486
  */
1491
1487
 
1492
- type PlayerResponse = Omit<Player, 'latestSnapshotId' | 'latestSnapshotDate'>;
1488
+ type PlayerResponse = Omit<Player, 'latestSnapshotDate'>;
1493
1489
 
1494
1490
  /**
1495
1491
  * Response types are used to format the data returned by the API.
@@ -1537,7 +1533,6 @@ interface ComputeMetricData {
1537
1533
  value: number;
1538
1534
  }
1539
1535
  interface SnapshotResponse {
1540
- id: number;
1541
1536
  playerId: number;
1542
1537
  createdAt: Date;
1543
1538
  importedAt: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise-old-man/utils",
3
- "version": "4.0.11",
3
+ "version": "4.0.13",
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",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@rollup/plugin-typescript": "^11.1.6",
42
- "@types/node": "^14.14.22",
42
+ "@types/node": "^20.0.0",
43
43
  "eslint": "~9.35.0",
44
44
  "eslint-config-prettier": "^10.1.8",
45
45
  "eslint-plugin-prettier": "^5.5.4",