tods-competition-factory 2.2.1 → 2.2.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.
- package/dist/index.mjs +5 -5
- package/dist/tods-competition-factory.d.ts +167 -167
- package/dist/tods-competition-factory.development.cjs.js +10 -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 +33 -33
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.2.
|
|
6
|
+
return '2.2.3';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
const SINGLES_MATCHUP = 'SINGLES';
|
|
@@ -28649,7 +28649,7 @@ function generateVoluntaryConsolation(params) {
|
|
|
28649
28649
|
return result;
|
|
28650
28650
|
}
|
|
28651
28651
|
tieFormat = copyTieFormat(tieFormat ?? resolveTieFormat({ drawDefinition })?.tieFormat);
|
|
28652
|
-
matchUpType = matchUpType ?? drawDefinition.matchUpType
|
|
28652
|
+
matchUpType = matchUpType ?? drawDefinition.matchUpType;
|
|
28653
28653
|
const { structures: stageStructures } = getDrawStructures({
|
|
28654
28654
|
stageSequence: 1,
|
|
28655
28655
|
drawDefinition,
|
|
@@ -36565,7 +36565,12 @@ function tournamentMatchUps(params) {
|
|
|
36565
36565
|
if (!matchUps[key])
|
|
36566
36566
|
matchUps[key] = [];
|
|
36567
36567
|
matchUps[key] = matchUps[key].concat(eventMatchUps[key]);
|
|
36568
|
-
matchUps.matchUpsCount
|
|
36568
|
+
if (matchUps.matchUpsCount !== undefined) {
|
|
36569
|
+
matchUps.matchUpsCount += eventMatchUps[key].length;
|
|
36570
|
+
}
|
|
36571
|
+
else {
|
|
36572
|
+
matchUps.matchUpsCount = eventMatchUps[key].length;
|
|
36573
|
+
}
|
|
36569
36574
|
}
|
|
36570
36575
|
});
|
|
36571
36576
|
return matchUps;
|
|
@@ -41538,7 +41543,7 @@ function getScheduleTimes(params) {
|
|
|
41538
41543
|
date,
|
|
41539
41544
|
});
|
|
41540
41545
|
if (calculateStartTimeFromCourts && firstTimeSlotStartTime) {
|
|
41541
|
-
startTime = firstTimeSlotStartTime
|
|
41546
|
+
startTime = firstTimeSlotStartTime ?? startTime;
|
|
41542
41547
|
}
|
|
41543
41548
|
const dayStartMinutes = timeStringMinutes$1(startTime);
|
|
41544
41549
|
const dayEndMinutes = timeStringMinutes$1(endTime);
|
|
@@ -44145,7 +44150,7 @@ function setMatchUpHomeParticipantId(params) {
|
|
|
44145
44150
|
const participantIds = resolutions?.matchUp?.matchUp?.sides?.map((side) => side?.participantId);
|
|
44146
44151
|
if (params.homeParticipantId && !participantIds?.includes(params.homeParticipantId))
|
|
44147
44152
|
return { error: INVALID_PARTICIPANT_ID };
|
|
44148
|
-
const { disableNotice
|
|
44153
|
+
const { disableNotice, homeParticipantId, removePriorValues, tournamentRecord, drawDefinition, matchUpId } = params;
|
|
44149
44154
|
const timeItem = {
|
|
44150
44155
|
itemType: HOME_PARTICIPANT_ID,
|
|
44151
44156
|
itemValue: homeParticipantId,
|