tods-competition-factory 2.1.23 → 2.1.24

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function factoryVersion() {
6
- return '2.1.23';
6
+ return '2.1.24';
7
7
  }
8
8
 
9
9
  const SINGLES_MATCHUP = 'SINGLES';
@@ -38105,7 +38105,6 @@ function generateDrawDefinition(params) {
38105
38105
  return decorateResult({ result: { error: INVALID_VALUES }, stack });
38106
38106
  const genResult = generateOrGetExisting({
38107
38107
  ...params,
38108
- isMock: params.isMock ?? true,
38109
38108
  policyDefinitions,
38110
38109
  tournamentRecord,
38111
38110
  appliedPolicies,
@@ -45108,9 +45107,9 @@ function setMatchUpState(params) {
45108
45107
  method: stack,
45109
45108
  winningSide,
45110
45109
  });
45111
- const result = ((!activeDownstream || params.autoCalcDisabled) && noDownstreamDependencies(params)) ||
45110
+ const result = (!activeDownstream && noDownstreamDependencies(params)) ||
45112
45111
  (matchUpWinner && winningSideWithDownstreamDependencies(params)) ||
45113
- (directingMatchUpStatus && applyMatchUpValues(params)) || {
45112
+ ((directingMatchUpStatus || params.autoCalcDisabled) && applyMatchUpValues(params)) || {
45114
45113
  error: NO_VALID_ACTIONS,
45115
45114
  };
45116
45115
  return decorateResult({ result, stack });
@@ -45135,7 +45134,7 @@ function applyMatchUpValues(params) {
45135
45134
  !params.winningSide &&
45136
45135
  !checkScoreHasValue({ score: params.score });
45137
45136
  const newMatchUpStatus = params.isCollectionMatchUp
45138
- ? params.matchUpStatus || (removeWinningSide && TO_BE_PLAYED) || COMPLETED$1
45137
+ ? params.matchUpStatus || (removeWinningSide && TO_BE_PLAYED) || (params.winningSide && COMPLETED$1) || INCOMPLETE
45139
45138
  : params.matchUpStatus || COMPLETED$1;
45140
45139
  const removeScore = params.removeScore ||
45141
45140
  ([CANCELLED$1, WALKOVER$2].includes(newMatchUpStatus) && ![INCOMPLETE, ABANDONED$1].includes(newMatchUpStatus));
@@ -48325,6 +48324,7 @@ var lastNames = [
48325
48324
  "Eisenstein",
48326
48325
  "Eldritch",
48327
48326
  "Elliot",
48327
+ "Ellul",
48328
48328
  "Escher",
48329
48329
  "Eyre",
48330
48330
  "Faulkner",
@@ -48498,6 +48498,7 @@ var firstMale = [
48498
48498
  "Inigo",
48499
48499
  "Italo",
48500
48500
  "Ivan",
48501
+ "Jacques",
48501
48502
  "James",
48502
48503
  "Jared",
48503
48504
  "Jerry",