tods-competition-factory 1.6.22 → 1.6.24
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 +58 -7
- package/dist/forge/generate.mjs +912 -845
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.d.ts +3 -1
- package/dist/forge/query.mjs +10 -10
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.d.ts +3 -1
- package/dist/forge/transform.mjs +10 -10
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/forge/utilities.mjs.map +1 -1
- package/dist/index.mjs +154 -43
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +176 -66
- 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 +6 -6
package/dist/forge/query.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ interface Event {
|
|
|
52
52
|
eventId: string;
|
|
53
53
|
eventLevel?: TournamentLevelEnum;
|
|
54
54
|
eventName?: string;
|
|
55
|
+
eventOrder?: number;
|
|
55
56
|
eventRank?: string;
|
|
56
57
|
eventType?: TypeEnum;
|
|
57
58
|
extensions?: Extension[];
|
|
@@ -1335,12 +1336,13 @@ declare const POLICY_TYPE_PARTICIPANT = "participant";
|
|
|
1335
1336
|
declare const POLICY_TYPE_PROGRESSION = "progression";
|
|
1336
1337
|
declare const POLICY_TYPE_SCHEDULING = "scheduling";
|
|
1337
1338
|
declare const POLICY_TYPE_AVOIDANCE = "avoidance";
|
|
1339
|
+
declare const POLICY_TYPE_DISPLAY = "display";
|
|
1338
1340
|
declare const POLICY_TYPE_SCORING = "scoring";
|
|
1339
1341
|
declare const POLICY_TYPE_SEEDING = "seeding";
|
|
1340
1342
|
declare const POLICY_TYPE_FEED_IN = "feedIn";
|
|
1341
1343
|
declare const POLICY_TYPE_AUDIT = "audit";
|
|
1342
1344
|
declare const POLICY_TYPE_DRAWS = "draws";
|
|
1343
|
-
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;
|
|
1345
|
+
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;
|
|
1344
1346
|
|
|
1345
1347
|
type TournamentRecordsArgs = {
|
|
1346
1348
|
tournamentRecords: {
|
package/dist/forge/query.mjs
CHANGED
|
@@ -4453,25 +4453,25 @@ function targetByRoundOutcome({
|
|
|
4453
4453
|
matchUp,
|
|
4454
4454
|
targetLinks: { loserTargetLink, winnerTargetLink, byeTargetLink },
|
|
4455
4455
|
targetMatchUps: {
|
|
4456
|
-
|
|
4457
|
-
loserMatchUp,
|
|
4458
|
-
winnerMatchUp,
|
|
4459
|
-
byeTargetDrawPosition,
|
|
4460
|
-
loserTargetDrawPosition,
|
|
4461
|
-
winnerTargetDrawPosition,
|
|
4462
|
-
byeMatchUpDrawPositionIndex,
|
|
4456
|
+
winnerMatchUpDrawPositionIndex,
|
|
4463
4457
|
loserMatchUpDrawPositionIndex,
|
|
4464
|
-
|
|
4458
|
+
byeMatchUpDrawPositionIndex,
|
|
4459
|
+
winnerTargetDrawPosition,
|
|
4460
|
+
loserTargetDrawPosition,
|
|
4461
|
+
byeTargetDrawPosition,
|
|
4462
|
+
winnerMatchUp,
|
|
4463
|
+
loserMatchUp,
|
|
4464
|
+
byeMatchUp
|
|
4465
4465
|
},
|
|
4466
4466
|
targetMatchUpIds: !!(winnerMatchUpId || loserMatchUpId)
|
|
4467
4467
|
});
|
|
4468
4468
|
}
|
|
4469
4469
|
function targetByWinRatio({ matchUp }) {
|
|
4470
4470
|
return {
|
|
4471
|
-
matchUp,
|
|
4472
4471
|
targetLinks: { loserTargetLink: void 0, winnerTargetLink: void 0 },
|
|
4473
4472
|
// returned for testing
|
|
4474
|
-
targetMatchUps: { loserMatchUp: void 0, winnerMatchUp: void 0 }
|
|
4473
|
+
targetMatchUps: { loserMatchUp: void 0, winnerMatchUp: void 0 },
|
|
4474
|
+
matchUp
|
|
4475
4475
|
};
|
|
4476
4476
|
}
|
|
4477
4477
|
|