@wise-old-man/utils 4.0.14 → 4.0.15
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/cjs/index.cjs +1 -0
- package/dist/es/index.js +1 -0
- package/dist/es/index.mjs +1 -0
- package/dist/index.d.ts +12 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
package/dist/es/index.js
CHANGED
package/dist/es/index.mjs
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -572,6 +572,7 @@ declare const CompetitionTimeEventStatus: {
|
|
|
572
572
|
type CompetitionTimeEventStatus = (typeof CompetitionTimeEventStatus)[keyof typeof CompetitionTimeEventStatus];
|
|
573
573
|
|
|
574
574
|
declare const CompetitionTimeEventType: {
|
|
575
|
+
readonly AFTER_START: "after_start";
|
|
575
576
|
readonly BEFORE_START: "before_start";
|
|
576
577
|
readonly BEFORE_END: "before_end";
|
|
577
578
|
readonly DURING: "during";
|
|
@@ -1289,7 +1290,7 @@ interface Participation {
|
|
|
1289
1290
|
interface Patron {
|
|
1290
1291
|
id: string;
|
|
1291
1292
|
name: string;
|
|
1292
|
-
email: string;
|
|
1293
|
+
email: string | null;
|
|
1293
1294
|
discordId: string | null;
|
|
1294
1295
|
groupId: number | null;
|
|
1295
1296
|
playerId: number | null;
|
|
@@ -1460,7 +1461,11 @@ interface GroupResponse extends Omit<Group, 'verificationHash' | 'creatorIpHash'
|
|
|
1460
1461
|
|
|
1461
1462
|
interface CompetitionResponse extends Omit<Competition, 'verificationHash' | 'creatorIpHash'> {
|
|
1462
1463
|
metric: Metric;
|
|
1463
|
-
metrics:
|
|
1464
|
+
metrics: Array<{
|
|
1465
|
+
weight: number;
|
|
1466
|
+
metric: Metric;
|
|
1467
|
+
createdAt: Date;
|
|
1468
|
+
}>;
|
|
1464
1469
|
participantCount: number;
|
|
1465
1470
|
group?: GroupResponse;
|
|
1466
1471
|
}
|
|
@@ -1493,6 +1498,11 @@ type PlayerResponse = Omit<Player, 'latestSnapshotDate'>;
|
|
|
1493
1498
|
interface CompetitionDetailsResponse extends CompetitionResponse {
|
|
1494
1499
|
participations: Array<ParticipationResponse & {
|
|
1495
1500
|
player: PlayerResponse;
|
|
1501
|
+
deltas: Array<{
|
|
1502
|
+
metric: Metric | 'total';
|
|
1503
|
+
values: MetricDelta;
|
|
1504
|
+
levels: MetricDelta;
|
|
1505
|
+
}>;
|
|
1496
1506
|
progress: MetricDelta;
|
|
1497
1507
|
levels: MetricDelta;
|
|
1498
1508
|
}>;
|
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.15",
|
|
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",
|