tods-competition-factory 1.8.37 → 1.8.38
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 +3 -8
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +3 -8
- package/dist/forge/query.mjs.map +1 -1
- package/dist/index.mjs +4 -9
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +37 -28
- 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
package/dist/forge/query.mjs
CHANGED
|
@@ -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,
|
|
@@ -12394,7 +12392,6 @@ function getParticipantEntries(params) {
|
|
|
12394
12392
|
continue;
|
|
12395
12393
|
const {
|
|
12396
12394
|
drawDefinitions = [],
|
|
12397
|
-
extensions = [],
|
|
12398
12395
|
eventType,
|
|
12399
12396
|
eventName,
|
|
12400
12397
|
category,
|
|
@@ -12409,9 +12406,7 @@ function getParticipantEntries(params) {
|
|
|
12409
12406
|
if (publishStatuses)
|
|
12410
12407
|
eventsPublishStatuses[eventId] = publishStatuses;
|
|
12411
12408
|
if (withEvents || withSeeding || withRankingProfile) {
|
|
12412
|
-
const extensionConversions = convertExtensions ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
|
|
12413
12409
|
derivedEventInfo[eventId] = {
|
|
12414
|
-
...extensionConversions,
|
|
12415
12410
|
eventName,
|
|
12416
12411
|
eventType,
|
|
12417
12412
|
category,
|
|
@@ -12443,7 +12438,7 @@ function getParticipantEntries(params) {
|
|
|
12443
12438
|
return;
|
|
12444
12439
|
const participant = participantMap[id];
|
|
12445
12440
|
processEventEntry({
|
|
12446
|
-
|
|
12441
|
+
convertExtensions,
|
|
12447
12442
|
seedAssignments,
|
|
12448
12443
|
participant,
|
|
12449
12444
|
withSeeding,
|