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/generate.mjs
CHANGED
|
@@ -18360,7 +18360,7 @@ function getEventSeedAssignments({
|
|
|
18360
18360
|
}
|
|
18361
18361
|
|
|
18362
18362
|
function processEventEntry({
|
|
18363
|
-
|
|
18363
|
+
convertExtensions,
|
|
18364
18364
|
seedAssignments,
|
|
18365
18365
|
participant,
|
|
18366
18366
|
withSeeding,
|
|
@@ -18370,10 +18370,8 @@ function processEventEntry({
|
|
|
18370
18370
|
entry
|
|
18371
18371
|
}) {
|
|
18372
18372
|
const { entryStatus, entryStage, entryPosition, extensions } = entry;
|
|
18373
|
-
const entryExtensions = extensions?.length ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
|
|
18373
|
+
const entryExtensions = extensions?.length && convertExtensions ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
|
|
18374
18374
|
const attributes = Object.assign(entryExtensions, {
|
|
18375
|
-
...extensionConversions,
|
|
18376
|
-
// this should be deprecated and clients should use derivedEventInfo
|
|
18377
18375
|
entryPosition,
|
|
18378
18376
|
entryStatus,
|
|
18379
18377
|
entryStage,
|
|
@@ -18790,7 +18788,6 @@ function getParticipantEntries(params) {
|
|
|
18790
18788
|
continue;
|
|
18791
18789
|
const {
|
|
18792
18790
|
drawDefinitions = [],
|
|
18793
|
-
extensions = [],
|
|
18794
18791
|
eventType,
|
|
18795
18792
|
eventName,
|
|
18796
18793
|
category,
|
|
@@ -18805,9 +18802,7 @@ function getParticipantEntries(params) {
|
|
|
18805
18802
|
if (publishStatuses)
|
|
18806
18803
|
eventsPublishStatuses[eventId] = publishStatuses;
|
|
18807
18804
|
if (withEvents || withSeeding || withRankingProfile) {
|
|
18808
|
-
const extensionConversions = convertExtensions ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
|
|
18809
18805
|
derivedEventInfo[eventId] = {
|
|
18810
|
-
...extensionConversions,
|
|
18811
18806
|
eventName,
|
|
18812
18807
|
eventType,
|
|
18813
18808
|
category,
|
|
@@ -18839,7 +18834,7 @@ function getParticipantEntries(params) {
|
|
|
18839
18834
|
return;
|
|
18840
18835
|
const participant = participantMap[id];
|
|
18841
18836
|
processEventEntry({
|
|
18842
|
-
|
|
18837
|
+
convertExtensions,
|
|
18843
18838
|
seedAssignments,
|
|
18844
18839
|
participant,
|
|
18845
18840
|
withSeeding,
|