tods-competition-factory 1.6.15 → 1.6.17

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.
@@ -362,7 +362,7 @@ var matchUpFormatCode = {
362
362
  };
363
363
 
364
364
  function factoryVersion() {
365
- return '1.6.15';
365
+ return '1.6.17';
366
366
  }
367
367
 
368
368
  /******************************************************************************
@@ -65783,9 +65783,15 @@ function generateSet(_a) {
65783
65783
  function completeDrawMatchUps(params) {
65784
65784
  var e_1, _a, e_2, _b;
65785
65785
  var _c, _d, _e;
65786
- var matchUpStatusProfile = params.matchUpStatusProfile, completeAllMatchUps = params.completeAllMatchUps,
65786
+ var matchUpStatusProfile = params.matchUpStatusProfile, // { matchUpStatusProfile: {} } will always return only { matchUpStatus: COMPLETED }
65787
+ completeAllMatchUps = params.completeAllMatchUps,
65787
65788
  // qualifyingProfiles, // CONSIDER: allowing completionGoal per structureProfile
65788
- randomWinningSide = params.randomWinningSide, tournamentRecord = params.tournamentRecord, drawDefinition = params.drawDefinition, completionGoal = params.completionGoal, matchUpFormat = params.matchUpFormat, event = params.event;
65789
+ randomWinningSide = params.randomWinningSide, tournamentRecord = params.tournamentRecord, completionGoal = params.completionGoal, drawDefinition = params.drawDefinition, event = params.event;
65790
+ if (!drawDefinition)
65791
+ return { error: MISSING_DRAW_DEFINITION };
65792
+ var matchUpFormat = params.matchUpFormat ||
65793
+ drawDefinition.matchUpFormat ||
65794
+ (event === null || event === void 0 ? void 0 : event.matchUpFormat);
65789
65795
  var sortedStructures = drawDefinition.structures
65790
65796
  .slice()
65791
65797
  .sort(structureSort);
@@ -68037,6 +68043,7 @@ var mocksGovernor = {
68037
68043
  generateOutcomeFromScoreString: generateOutcomeFromScoreString,
68038
68044
  generateTournamentRecord: generateTournamentRecord,
68039
68045
  generateEventWithDraw: generateEventWithDraw,
68046
+ completeDrawMatchUps: completeDrawMatchUps,
68040
68047
  generateParticipants: generateParticipants,
68041
68048
  parseScoreString: parseScoreString,
68042
68049
  generateOutcome: generateOutcome,