tods-competition-factory 1.8.44 → 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.
- package/dist/forge/generate.mjs +53 -22
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +12 -1
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +4956 -4942
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/index.mjs +95 -44
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +146 -90
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +1 -1
package/dist/forge/query.mjs
CHANGED
|
@@ -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
|
}
|