tods-competition-factory 1.8.37 → 1.8.39
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/forge/generate.mjs +8 -6
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +4 -6
- package/dist/forge/query.mjs.map +1 -1
- package/dist/index.mjs +42 -17
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +61 -30
- 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 +2 -2
package/dist/forge/query.mjs
CHANGED
|
@@ -10567,7 +10567,7 @@ function getRoundProfile(matchUps) {
|
|
|
10567
10567
|
({ winningSide, matchUpStatus }) => winningSide || completedMatchUpStatuses.includes(matchUpStatus)
|
|
10568
10568
|
).length || 0;
|
|
10569
10569
|
const scheduledCount = matchUps.filter(
|
|
10570
|
-
({ schedule }) => schedule?.scheduledDate && schedule?.scheduledTime
|
|
10570
|
+
({ schedule, matchUpStatus }) => schedule?.scheduledDate && schedule?.scheduledTime && matchUpStatus !== BYE
|
|
10571
10571
|
).length || 0;
|
|
10572
10572
|
const consideredCount = matchUpsCount - byeCount;
|
|
10573
10573
|
const isComplete = consideredCount === completedCount;
|
|
@@ -11964,7 +11964,7 @@ function getEventSeedAssignments({
|
|
|
11964
11964
|
}
|
|
11965
11965
|
|
|
11966
11966
|
function processEventEntry({
|
|
11967
|
-
|
|
11967
|
+
convertExtensions,
|
|
11968
11968
|
seedAssignments,
|
|
11969
11969
|
participant,
|
|
11970
11970
|
withSeeding,
|
|
@@ -11974,10 +11974,8 @@ function processEventEntry({
|
|
|
11974
11974
|
entry
|
|
11975
11975
|
}) {
|
|
11976
11976
|
const { entryStatus, entryStage, entryPosition, extensions } = entry;
|
|
11977
|
-
const entryExtensions = extensions?.length ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
|
|
11977
|
+
const entryExtensions = extensions?.length && convertExtensions ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
|
|
11978
11978
|
const attributes = Object.assign(entryExtensions, {
|
|
11979
|
-
...extensionConversions,
|
|
11980
|
-
// this should be deprecated and clients should use derivedEventInfo
|
|
11981
11979
|
entryPosition,
|
|
11982
11980
|
entryStatus,
|
|
11983
11981
|
entryStage,
|
|
@@ -12443,7 +12441,7 @@ function getParticipantEntries(params) {
|
|
|
12443
12441
|
return;
|
|
12444
12442
|
const participant = participantMap[id];
|
|
12445
12443
|
processEventEntry({
|
|
12446
|
-
|
|
12444
|
+
convertExtensions,
|
|
12447
12445
|
seedAssignments,
|
|
12448
12446
|
participant,
|
|
12449
12447
|
withSeeding,
|