tods-competition-factory 1.8.38 → 1.8.40

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.
@@ -10567,7 +10567,7 @@ function getRoundProfile(matchUps) {
10567
10567
  ({ winningSide, matchUpStatus }) => winningSide || completedMatchUpStatuses.includes(matchUpStatus)
10568
10568
  ).length || 0;
10569
10569
  const scheduledCount = matchUps.filter(
10570
- ({ schedule }) => schedule?.scheduledDate && schedule?.scheduledTime
10570
+ ({ schedule, matchUpStatus }) => schedule?.scheduledDate && schedule?.scheduledTime && matchUpStatus !== BYE
10571
10571
  ).length || 0;
10572
10572
  const consideredCount = matchUpsCount - byeCount;
10573
10573
  const isComplete = consideredCount === completedCount;
@@ -12392,6 +12392,7 @@ function getParticipantEntries(params) {
12392
12392
  continue;
12393
12393
  const {
12394
12394
  drawDefinitions = [],
12395
+ extensions = [],
12395
12396
  eventType,
12396
12397
  eventName,
12397
12398
  category,
@@ -12406,7 +12407,9 @@ function getParticipantEntries(params) {
12406
12407
  if (publishStatuses)
12407
12408
  eventsPublishStatuses[eventId] = publishStatuses;
12408
12409
  if (withEvents || withSeeding || withRankingProfile) {
12410
+ const extensionConversions = convertExtensions ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
12409
12411
  derivedEventInfo[eventId] = {
12412
+ ...extensionConversions,
12410
12413
  eventName,
12411
12414
  eventType,
12412
12415
  category,