tods-competition-factory 1.6.26 → 1.6.27
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.d.ts +1 -0
- package/dist/forge/generate.mjs +34 -27
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +2 -1
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +28 -19
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/index.mjs +56 -35
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +61 -35
- 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 +7 -7
package/dist/forge/query.mjs
CHANGED
|
@@ -14187,6 +14187,7 @@ function getEventData(params) {
|
|
|
14187
14187
|
// order is important!!
|
|
14188
14188
|
tournamentRecord
|
|
14189
14189
|
});
|
|
14190
|
+
const stageFilter = ({ stage }) => !usePublishState || !publishStatus?.stages?.length || publishStatus.stages.includes(stage);
|
|
14190
14191
|
const structureFilter = ({ structureId }) => !usePublishState || !publishStatus?.structureIds?.length || publishStatus.structureIds.includes(structureId);
|
|
14191
14192
|
const drawFilter = ({ drawId }) => !usePublishState || !publishStatus?.drawIds?.length || publishStatus.drawIds.includes(drawId);
|
|
14192
14193
|
const drawDefinitions = event.drawDefinitions || [];
|
|
@@ -14209,7 +14210,7 @@ function getEventData(params) {
|
|
|
14209
14210
|
)
|
|
14210
14211
|
).map(({ structures, ...drawData }) => ({
|
|
14211
14212
|
...drawData,
|
|
14212
|
-
structures: structures?.filter(structureFilter)
|
|
14213
|
+
structures: structures?.filter(structureFilter)?.filter(stageFilter)
|
|
14213
14214
|
})).filter((drawData) => drawData.structures?.length);
|
|
14214
14215
|
const { tournamentInfo } = getTournamentInfo({ tournamentRecord });
|
|
14215
14216
|
const venues = tournamentRecord.venues || [];
|