@wise-old-man/utils 4.0.12 → 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.
- package/dist/index.d.ts +2 -7
- 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,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, '
|
|
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, '
|
|
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.
|
|
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",
|