tods-competition-factory 1.8.35 → 1.8.37
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 +22 -17
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.d.ts +3 -1
- package/dist/forge/query.mjs +17 -12
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +8 -5
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/index.mjs +28 -19
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +39 -22
- 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 +4 -4
package/dist/forge/transform.mjs
CHANGED
|
@@ -9988,15 +9988,16 @@ function addNationalityCode({
|
|
|
9988
9988
|
persons.forEach(annotatePerson);
|
|
9989
9989
|
}
|
|
9990
9990
|
|
|
9991
|
-
function addIndividualParticipants({ participantMap }) {
|
|
9991
|
+
function addIndividualParticipants({ participantMap, template }) {
|
|
9992
9992
|
const participantObjects = Object.values(participantMap);
|
|
9993
9993
|
for (const participantObject of participantObjects) {
|
|
9994
9994
|
const participant = participantObject.participant;
|
|
9995
9995
|
if (participant.individualParticipantIds?.length) {
|
|
9996
9996
|
participant.individualParticipants = [];
|
|
9997
9997
|
for (const participantId of participant.individualParticipantIds) {
|
|
9998
|
+
const source = participantMap[participantId].participant;
|
|
9998
9999
|
participant.individualParticipants.push(
|
|
9999
|
-
|
|
10000
|
+
template ? attributeFilter({ template, source }) : source
|
|
10000
10001
|
);
|
|
10001
10002
|
}
|
|
10002
10003
|
}
|
|
@@ -10094,8 +10095,10 @@ function getParticipantMap({
|
|
|
10094
10095
|
withIOC
|
|
10095
10096
|
});
|
|
10096
10097
|
}
|
|
10097
|
-
if (withIndividualParticipants)
|
|
10098
|
-
|
|
10098
|
+
if (withIndividualParticipants) {
|
|
10099
|
+
const template = isObject(withIndividualParticipants) ? withIndividualParticipants : void 0;
|
|
10100
|
+
addIndividualParticipants({ participantMap, template });
|
|
10101
|
+
}
|
|
10099
10102
|
return { participantMap };
|
|
10100
10103
|
}
|
|
10101
10104
|
function signedIn(participant) {
|
|
@@ -10155,7 +10158,7 @@ function initializeParticipantId({ participantMap, participantId }) {
|
|
|
10155
10158
|
participantMap[participantId] = {
|
|
10156
10159
|
structureParticipation: {},
|
|
10157
10160
|
potentialMatchUps: {},
|
|
10158
|
-
scheduleConflicts:
|
|
10161
|
+
scheduleConflicts: {},
|
|
10159
10162
|
scheduleItems: [],
|
|
10160
10163
|
participant: {
|
|
10161
10164
|
groupParticipantIds: [],
|