tods-competition-factory 1.8.32 → 1.8.34

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/index.mjs CHANGED
@@ -2404,7 +2404,7 @@ const matchUpFormatCode = {
2404
2404
  };
2405
2405
 
2406
2406
  function factoryVersion() {
2407
- return "1.8.32";
2407
+ return "1.8.34";
2408
2408
  }
2409
2409
 
2410
2410
  function getObjectTieFormat(obj) {
@@ -8276,7 +8276,7 @@ function getAllStructureMatchUps({
8276
8276
  const matchUpCategory = collectionDefinition?.category ? {
8277
8277
  ...context?.category || {},
8278
8278
  ...collectionDefinition.category
8279
- } : context?.category;
8279
+ } : context?.category ?? event2?.category;
8280
8280
  const processCodes = matchUp.processCodes?.length && matchUp.processCodes || collectionDefinition?.processCodes?.length && collectionDefinition?.processCodes || structure?.processCodes?.length && structure?.processCodes || drawDefinition?.processCodes?.length && drawDefinition?.processCodes || event2?.processCodes?.length && event2?.processCodes || tournamentRecord?.processCodes;
8281
8281
  const competitiveProfile = contextProfile?.withCompetitiveness && getMatchUpCompetitiveProfile({ ...contextContent, matchUp });
8282
8282
  const finishingPositionRange = matchUp.finishingPositionRange ?? additionalContext.finishingPositionRange;
@@ -8286,9 +8286,9 @@ function getAllStructureMatchUps({
8286
8286
  ...onlyDefined({
8287
8287
  matchUpFormat: matchUp.matchUpType === TEAM$1 ? void 0 : matchUpFormat,
8288
8288
  tieFormat: matchUp.matchUpType !== TEAM$1 ? void 0 : tieFormat,
8289
+ gender: collectionDefinition?.gender ?? event2?.gender,
8289
8290
  roundOfPlay: stage !== QUALIFYING && isConvertableInteger(initialRoundOfPlay2) && initialRoundOfPlay2 + (roundNumber || 0),
8290
8291
  endDate: matchUp.endDate ?? endDate,
8291
- gender: collectionDefinition?.gender,
8292
8292
  discipline: event2?.discipline,
8293
8293
  category: matchUpCategory,
8294
8294
  finishingPositionRange,
@@ -28006,7 +28006,7 @@ function getParticipantEntries(params) {
28006
28006
  const minutesDifference = Math.abs(
28007
28007
  consideredMinutes - scheduledMinutes
28008
28008
  );
28009
- const itemIsPrior = consideredMinutes > scheduledMinutes;
28009
+ const itemIsPrior = consideredMinutes >= scheduledMinutes;
28010
28010
  const timeOverlap = scheduledMinutesDifference && !isNaN(scheduledMinutesDifference) ? minutesDifference <= scheduledMinutesDifference : itemIsPrior && timeStringMinutes(consideredItem.scheduledTime) < timeStringMinutes(notBeforeTime);
28011
28011
  if (timeOverlap && !(bothPotential && sameDraw) && itemIsPrior) {
28012
28012
  participantAggregator.scheduleConflicts.push({