tods-competition-factory 2.2.32-beta.4 → 2.2.32-beta.6
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.
- package/dist/index.mjs +6 -6
- package/dist/tods-competition-factory.d.ts +2 -2
- package/dist/tods-competition-factory.development.cjs.js +6 -5
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -4625,11 +4625,11 @@ declare function deleteFlightProfileAndFlightDraws({ autoPublish, tournamentReco
|
|
|
4625
4625
|
event: any;
|
|
4626
4626
|
force: any;
|
|
4627
4627
|
}): {
|
|
4628
|
-
error: any;
|
|
4629
|
-
} | {
|
|
4630
4628
|
success?: boolean;
|
|
4631
4629
|
error?: ErrorType;
|
|
4632
4630
|
info?: any;
|
|
4631
|
+
} | {
|
|
4632
|
+
error: any;
|
|
4633
4633
|
};
|
|
4634
4634
|
|
|
4635
4635
|
type ModifyEventMatchUpFormatTimingArgs = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.2.32-beta.
|
|
6
|
+
return '2.2.32-beta.6';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
const SINGLES_MATCHUP = 'SINGLES';
|
|
@@ -12345,7 +12345,7 @@ function purgeGlobalLog() {
|
|
|
12345
12345
|
}
|
|
12346
12346
|
|
|
12347
12347
|
function isExit(matchUpStatus) {
|
|
12348
|
-
return [DEFAULTED, WALKOVER$2].includes(matchUpStatus);
|
|
12348
|
+
return [DEFAULTED, WALKOVER$2, RETIRED$1].includes(matchUpStatus);
|
|
12349
12349
|
}
|
|
12350
12350
|
|
|
12351
12351
|
function assignDrawPositionBye({ provisionalPositioning, isPositionAction, tournamentRecord, drawDefinition, drawPosition, loserMatchUp, matchUpsMap, structureId, structure, event, }) {
|
|
@@ -22547,7 +22547,7 @@ function processOutcome$1({ winningParticipantId, losingParticipantId, participa
|
|
|
22547
22547
|
participantResults[losingParticipantId].defaults += 1;
|
|
22548
22548
|
if (matchUpStatus === RETIRED$1)
|
|
22549
22549
|
participantResults[losingParticipantId].retirements += 1;
|
|
22550
|
-
if (
|
|
22550
|
+
if (isExit(matchUpStatus))
|
|
22551
22551
|
participantResults[losingParticipantId].allDefaults += 1;
|
|
22552
22552
|
participantResults[losingParticipantId].matchUpsLost += 1;
|
|
22553
22553
|
}
|
|
@@ -45209,7 +45209,7 @@ function hasPropagatedExitDownstream(params) {
|
|
|
45209
45209
|
const { targetData, matchUpsMap } = params;
|
|
45210
45210
|
const { targetMatchUps: { loserMatchUp }, } = targetData;
|
|
45211
45211
|
const isLoserMatchUpWO = isExit(loserMatchUp?.matchUpStatus);
|
|
45212
|
-
const hasLoserMatchUpUpstreamWOMatches = !!matchUpsMap?.drawMatchUps.find((m) => m.loserMatchUpId === loserMatchUp?.matchUpId &&
|
|
45212
|
+
const hasLoserMatchUpUpstreamWOMatches = !!matchUpsMap?.drawMatchUps.find((m) => m.loserMatchUpId === loserMatchUp?.matchUpId && isExit(m.matchUpStatus));
|
|
45213
45213
|
return ((hasLoserMatchUpUpstreamWOMatches && loserMatchUp?.matchUpStatus === DOUBLE_WALKOVER) ||
|
|
45214
45214
|
(hasLoserMatchUpUpstreamWOMatches && isLoserMatchUpWO));
|
|
45215
45215
|
}
|
|
@@ -45946,7 +45946,8 @@ function progressExitStatus({ sourceMatchUpStatusCodes, propagateExitStatus, sou
|
|
|
45946
45946
|
color: 'magenta',
|
|
45947
45947
|
method: stack,
|
|
45948
45948
|
});
|
|
45949
|
-
const carryOverMatchUpStatus = (isExit(sourceMatchUpStatus) && sourceMatchUpStatus)
|
|
45949
|
+
const carryOverMatchUpStatus = (isExit(sourceMatchUpStatus) && (sourceMatchUpStatus !== RETIRED$1) && sourceMatchUpStatus)
|
|
45950
|
+
|| WALKOVER$2;
|
|
45950
45951
|
const inContextMatchUps = getAllDrawMatchUps({
|
|
45951
45952
|
inContext: true,
|
|
45952
45953
|
drawDefinition,
|