tods-competition-factory 0.69.2 → 0.69.3

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.
@@ -249,7 +249,7 @@ const matchUpFormatCode = {
249
249
  };
250
250
 
251
251
  function factoryVersion() {
252
- return '0.69.2';
252
+ return '0.69.3';
253
253
  }
254
254
 
255
255
  const FORMAT_STANDARD = 'SET3-S:6/TB7'; // Best of 3 Tiebreak Sets to 6
@@ -11447,9 +11447,7 @@ function getAllStructureMatchUps({
11447
11447
  const collectionDefinitions = tieFormat === null || tieFormat === void 0 ? void 0 : tieFormat.collectionDefinitions;
11448
11448
  const collectionDefinition = matchUp.collectionId && (collectionDefinitions === null || collectionDefinitions === void 0 ? void 0 : collectionDefinitions.find(definition => definition.collectionId === matchUp.collectionId));
11449
11449
  const matchUpFormat = matchUp.matchUpFormat || matchUp.collectionId ? collectionDefinition && collectionDefinition.matchUpFormat : structure.matchUpFormat || (drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.matchUpFormat) || (event === null || event === void 0 ? void 0 : event.matchUpFormat);
11450
- const matchUpType = matchUp.matchUpType || (collectionDefinition === null || collectionDefinition === void 0 ? void 0 : collectionDefinition.matchUpType) || structure.matchUpType || (drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.matchUpType) || (event === null || event === void 0 ? void 0 : event.eventType) !== TEAM$2 && (event === null || event === void 0 ? void 0 : event.eventType); // if (!tieFormat && !['SINGLES', 'DOUBLES'].includes(matchUpType))
11451
- // console.log({ matchUpType, event });
11452
-
11450
+ const matchUpType = matchUp.matchUpType || (collectionDefinition === null || collectionDefinition === void 0 ? void 0 : collectionDefinition.matchUpType) || structure.matchUpType || (drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.matchUpType) || (event === null || event === void 0 ? void 0 : event.eventType) !== TEAM$2 && (event === null || event === void 0 ? void 0 : event.eventType);
11453
11451
  const matchUpStatus = isCollectionBye ? BYE : matchUp.matchUpStatus;
11454
11452
  const {
11455
11453
  schedule,
@@ -11491,8 +11489,8 @@ function getAllStructureMatchUps({
11491
11489
  const onlyDefined = obj => definedAttributes(obj, undefined, true);
11492
11490
 
11493
11491
  const matchUpWithContext = Object.assign({}, onlyDefined(context), onlyDefined({
11494
- matchUpFormat: matchUp.matchUpType !== TEAM$2 && matchUpFormat,
11495
- tieFormat: matchUp.matchUpType === TEAM$2 && tieFormat,
11492
+ matchUpFormat: matchUp.matchUpType === TEAM$2 ? undefined : matchUpFormat,
11493
+ tieFormat: matchUp.matchUpType !== TEAM$2 ? undefined : tieFormat,
11496
11494
  endDate: matchUp.endDate || endDate,
11497
11495
  abbreviatedRoundName,
11498
11496
  drawPositionsRange,