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.
@@ -7207,7 +7207,7 @@ function getAllStructureMatchUps({
7207
7207
  const matchUpCategory = collectionDefinition?.category ? {
7208
7208
  ...context?.category || {},
7209
7209
  ...collectionDefinition.category
7210
- } : context?.category;
7210
+ } : context?.category ?? event2?.category;
7211
7211
  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;
7212
7212
  const competitiveProfile = contextProfile?.withCompetitiveness && getMatchUpCompetitiveProfile({ ...contextContent, matchUp });
7213
7213
  const finishingPositionRange = matchUp.finishingPositionRange ?? additionalContext.finishingPositionRange;
@@ -7217,9 +7217,9 @@ function getAllStructureMatchUps({
7217
7217
  ...onlyDefined({
7218
7218
  matchUpFormat: matchUp.matchUpType === TEAM ? void 0 : matchUpFormat,
7219
7219
  tieFormat: matchUp.matchUpType !== TEAM ? void 0 : tieFormat,
7220
+ gender: collectionDefinition?.gender ?? event2?.gender,
7220
7221
  roundOfPlay: stage !== QUALIFYING && isConvertableInteger(initialRoundOfPlay2) && initialRoundOfPlay2 + (roundNumber || 0),
7221
7222
  endDate: matchUp.endDate ?? endDate,
7222
- gender: collectionDefinition?.gender,
7223
7223
  discipline: event2?.discipline,
7224
7224
  category: matchUpCategory,
7225
7225
  finishingPositionRange,
@@ -12820,7 +12820,7 @@ function getParticipantEntries(params) {
12820
12820
  const minutesDifference = Math.abs(
12821
12821
  consideredMinutes - scheduledMinutes
12822
12822
  );
12823
- const itemIsPrior = consideredMinutes > scheduledMinutes;
12823
+ const itemIsPrior = consideredMinutes >= scheduledMinutes;
12824
12824
  const timeOverlap = scheduledMinutesDifference && !isNaN(scheduledMinutesDifference) ? minutesDifference <= scheduledMinutesDifference : itemIsPrior && timeStringMinutes(consideredItem.scheduledTime) < timeStringMinutes(notBeforeTime);
12825
12825
  if (timeOverlap && !(bothPotential && sameDraw) && itemIsPrior) {
12826
12826
  participantAggregator.scheduleConflicts.push({