tods-competition-factory 1.8.45 → 1.8.46

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.
@@ -12597,6 +12597,15 @@ function getParticipantEntries(params) {
12597
12597
  individualParticipantIds?.forEach(addDrawEntry);
12598
12598
  }
12599
12599
  }
12600
+ const stages = (drawDefinition?.structures ?? []).reduce(
12601
+ (stages2, structure) => {
12602
+ if (!stages2.includes(structure.stage))
12603
+ stages2.push(structure.stage);
12604
+ return stages2;
12605
+ },
12606
+ []
12607
+ );
12608
+ const linksCount = (drawDefinition?.links ?? []).length;
12600
12609
  derivedDrawInfo[drawId] = {
12601
12610
  qualifyingPositionAssignments,
12602
12611
  qualifyingSeedAssignments,
@@ -12606,11 +12615,13 @@ function getParticipantEntries(params) {
12606
12615
  orderedStructureIds,
12607
12616
  mainSeedingMap,
12608
12617
  flightNumber,
12618
+ linksCount,
12609
12619
  drawOrder,
12610
12620
  drawName,
12611
12621
  drawType,
12612
12622
  drawSize,
12613
- drawId
12623
+ drawId,
12624
+ stages
12614
12625
  // qualifyingDrawSize,
12615
12626
  };
12616
12627
  }