tods-competition-factory 1.8.35 → 1.8.36
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 +6 -7
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +1 -2
- package/dist/forge/query.mjs.map +1 -1
- package/dist/index.mjs +8 -9
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +11 -12
- 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 +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2404,7 +2404,7 @@ const matchUpFormatCode = {
|
|
|
2404
2404
|
};
|
|
2405
2405
|
|
|
2406
2406
|
function factoryVersion() {
|
|
2407
|
-
return "1.8.
|
|
2407
|
+
return "1.8.36";
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
2410
|
function getObjectTieFormat(obj) {
|
|
@@ -27548,12 +27548,11 @@ function getParticipantEntries(params) {
|
|
|
27548
27548
|
const targetParticipantIds = participantFilters?.participantIds;
|
|
27549
27549
|
const getRelevantParticipantIds = (participantId) => {
|
|
27550
27550
|
const relevantParticipantIds = [participantId];
|
|
27551
|
-
relevantParticipantIds.push(participantId);
|
|
27552
27551
|
participantMap[participantId]?.participant.individualParticipantIds?.forEach(
|
|
27553
27552
|
(individualParticiapntId) => relevantParticipantIds.push(individualParticiapntId)
|
|
27554
27553
|
);
|
|
27555
27554
|
return relevantParticipantIds.some(
|
|
27556
|
-
(
|
|
27555
|
+
(id) => !targetParticipantIds?.length || targetParticipantIds.includes(id)
|
|
27557
27556
|
) ? relevantParticipantIds : [];
|
|
27558
27557
|
};
|
|
27559
27558
|
const withOpts = {
|
|
@@ -41813,11 +41812,11 @@ function swapAssignedPositions({
|
|
|
41813
41812
|
);
|
|
41814
41813
|
const secondAssignment = candidatePositionAssignments.find(
|
|
41815
41814
|
(assignment) => assignment.drawPosition === secondPosition
|
|
41816
|
-
);
|
|
41815
|
+
) ?? {};
|
|
41817
41816
|
const updatedFirstAssignmentAttributes = {
|
|
41818
|
-
participantId: secondAssignment
|
|
41819
|
-
qualifier: secondAssignment
|
|
41820
|
-
bye: secondAssignment
|
|
41817
|
+
participantId: secondAssignment?.participantId,
|
|
41818
|
+
qualifier: secondAssignment?.qualifier,
|
|
41819
|
+
bye: secondAssignment?.bye
|
|
41821
41820
|
};
|
|
41822
41821
|
const updatedSecondAssignmentAttributes = {
|
|
41823
41822
|
participantId: firstAssignment.participantId,
|
|
@@ -41975,7 +41974,7 @@ function randomUnseededSeparation({
|
|
|
41975
41974
|
});
|
|
41976
41975
|
if (result.error)
|
|
41977
41976
|
return decorateResult({ result, stack });
|
|
41978
|
-
} else {
|
|
41977
|
+
} else if (assignment.participantId) {
|
|
41979
41978
|
const result = assignDrawPosition$1({
|
|
41980
41979
|
automaticPlacement: true,
|
|
41981
41980
|
inContextDrawMatchUps,
|
|
@@ -44561,7 +44560,7 @@ function removeStructure({
|
|
|
44561
44560
|
drawDefinition.links = drawDefinition.links?.filter(
|
|
44562
44561
|
(link) => link.source.structureId !== idBeingRemoved && link.target.structureId !== idBeingRemoved
|
|
44563
44562
|
) || [];
|
|
44564
|
-
if (!isMainStageSequence1 || idBeingRemoved !== structureId) {
|
|
44563
|
+
if (!isMainStageSequence1 || isMainStageSequence1 && qualifyingStructureIds.length || idBeingRemoved !== structureId) {
|
|
44565
44564
|
drawDefinition.structures = (drawDefinition.structures ?? []).filter(
|
|
44566
44565
|
(structure3) => {
|
|
44567
44566
|
if (idBeingRemoved && idBeingRemoved === structure3.structureId)
|