tods-competition-factory 1.6.23 → 1.6.25
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 +3 -1
- package/dist/forge/generate.mjs +2 -2
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.d.ts +3 -1
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.d.ts +3 -1
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/forge/utilities.mjs.map +1 -1
- package/dist/index.mjs +67 -23
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +104 -47
- 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 +5 -5
package/dist/forge/generate.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ interface Event {
|
|
|
70
70
|
eventId: string;
|
|
71
71
|
eventLevel?: TournamentLevelEnum;
|
|
72
72
|
eventName?: string;
|
|
73
|
+
eventOrder?: number;
|
|
73
74
|
eventRank?: string;
|
|
74
75
|
eventType?: TypeEnum;
|
|
75
76
|
extensions?: Extension[];
|
|
@@ -1290,12 +1291,13 @@ declare const POLICY_TYPE_PARTICIPANT = "participant";
|
|
|
1290
1291
|
declare const POLICY_TYPE_PROGRESSION = "progression";
|
|
1291
1292
|
declare const POLICY_TYPE_SCHEDULING = "scheduling";
|
|
1292
1293
|
declare const POLICY_TYPE_AVOIDANCE = "avoidance";
|
|
1294
|
+
declare const POLICY_TYPE_DISPLAY = "display";
|
|
1293
1295
|
declare const POLICY_TYPE_SCORING = "scoring";
|
|
1294
1296
|
declare const POLICY_TYPE_SEEDING = "seeding";
|
|
1295
1297
|
declare const POLICY_TYPE_FEED_IN = "feedIn";
|
|
1296
1298
|
declare const POLICY_TYPE_AUDIT = "audit";
|
|
1297
1299
|
declare const POLICY_TYPE_DRAWS = "draws";
|
|
1298
|
-
type ValidPolicyTypes = typeof POLICY_TYPE_VOLUNTARY_CONSOLATION | typeof POLICY_TYPE_COMPETITIVE_BANDS | typeof POLICY_TYPE_ROUND_ROBIN_TALLY | typeof POLICY_TYPE_POSITION_ACTIONS | typeof POLICY_TYPE_MATCHUP_ACTIONS | typeof POLICY_TYPE_RANKING_POINTS | typeof POLICY_TYPE_ROUND_NAMING | typeof POLICY_TYPE_PARTICIPANT | typeof POLICY_TYPE_PROGRESSION | typeof POLICY_TYPE_SCHEDULING | typeof POLICY_TYPE_AVOIDANCE | typeof POLICY_TYPE_FEED_IN | typeof POLICY_TYPE_SCORING | typeof POLICY_TYPE_SEEDING | typeof POLICY_TYPE_AUDIT | typeof POLICY_TYPE_DRAWS;
|
|
1300
|
+
type ValidPolicyTypes = typeof POLICY_TYPE_VOLUNTARY_CONSOLATION | typeof POLICY_TYPE_COMPETITIVE_BANDS | typeof POLICY_TYPE_ROUND_ROBIN_TALLY | typeof POLICY_TYPE_POSITION_ACTIONS | typeof POLICY_TYPE_MATCHUP_ACTIONS | typeof POLICY_TYPE_RANKING_POINTS | typeof POLICY_TYPE_ROUND_NAMING | typeof POLICY_TYPE_PARTICIPANT | typeof POLICY_TYPE_PROGRESSION | typeof POLICY_TYPE_SCHEDULING | typeof POLICY_TYPE_AVOIDANCE | typeof POLICY_TYPE_DISPLAY | typeof POLICY_TYPE_FEED_IN | typeof POLICY_TYPE_SCORING | typeof POLICY_TYPE_SEEDING | typeof POLICY_TYPE_AUDIT | typeof POLICY_TYPE_DRAWS;
|
|
1299
1301
|
|
|
1300
1302
|
type SeedingProfile = {
|
|
1301
1303
|
groupSeedingThreshold?: number;
|
package/dist/forge/generate.mjs
CHANGED
|
@@ -19827,7 +19827,7 @@ function generateDrawMaticRound({
|
|
|
19827
19827
|
);
|
|
19828
19828
|
if (teamParticipants) {
|
|
19829
19829
|
for (const teamParticipant of teamParticipants) {
|
|
19830
|
-
const participantIds2 = teamParticipant.individualParticipantIds
|
|
19830
|
+
const participantIds2 = teamParticipant.individualParticipantIds ?? [];
|
|
19831
19831
|
const { uniquePairings: uniquePairings2 } = getPairingsData({ participantIds: participantIds2 });
|
|
19832
19832
|
for (const pairing of uniquePairings2) {
|
|
19833
19833
|
if (!valueObjects[pairing])
|
|
@@ -22454,7 +22454,7 @@ function prepareStage(params) {
|
|
|
22454
22454
|
stage
|
|
22455
22455
|
}));
|
|
22456
22456
|
}
|
|
22457
|
-
const scaledEntriesCount = scaledEntries?.length
|
|
22457
|
+
const scaledEntriesCount = scaledEntries?.length ?? 0;
|
|
22458
22458
|
if (scaledEntriesCount < seedsCount)
|
|
22459
22459
|
seedsCount = scaledEntriesCount;
|
|
22460
22460
|
scaledEntries?.filter(
|