@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.
@@ -336,6 +336,7 @@ const CompetitionTimeEventStatus = {
336
336
  };
337
337
 
338
338
  const CompetitionTimeEventType = {
339
+ AFTER_START: 'after_start',
339
340
  BEFORE_START: 'before_start',
340
341
  BEFORE_END: 'before_end',
341
342
  DURING: 'during'
package/dist/es/index.js CHANGED
@@ -334,6 +334,7 @@ const CompetitionTimeEventStatus = {
334
334
  };
335
335
 
336
336
  const CompetitionTimeEventType = {
337
+ AFTER_START: 'after_start',
337
338
  BEFORE_START: 'before_start',
338
339
  BEFORE_END: 'before_end',
339
340
  DURING: 'during'
package/dist/es/index.mjs CHANGED
@@ -334,6 +334,7 @@ const CompetitionTimeEventStatus = {
334
334
  };
335
335
 
336
336
  const CompetitionTimeEventType = {
337
+ AFTER_START: 'after_start',
337
338
  BEFORE_START: 'before_start',
338
339
  BEFORE_END: 'before_end',
339
340
  DURING: 'during'
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: Metric[];
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.14",
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",