tods-competition-factory 1.7.3 → 1.7.5
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 +15 -3
- package/dist/forge/generate.mjs +356 -226
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +3 -2
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +3 -2
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/index.mjs +302 -185
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +315 -225
- 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/generate.d.ts
CHANGED
|
@@ -1406,33 +1406,45 @@ type GenerateDrawMaticRoundArgs = {
|
|
|
1406
1406
|
};
|
|
1407
1407
|
restrictEntryStatus?: boolean;
|
|
1408
1408
|
drawDefinition: DrawDefinition;
|
|
1409
|
-
generateMatchUps?: boolean;
|
|
1410
1409
|
tournamentRecord: Tournament;
|
|
1410
|
+
generateMatchUps?: boolean;
|
|
1411
|
+
salted?: number | boolean;
|
|
1411
1412
|
participantIds?: string[];
|
|
1412
1413
|
addToStructure?: boolean;
|
|
1414
|
+
encounterValue?: number;
|
|
1415
|
+
sameTeamValue?: number;
|
|
1413
1416
|
maxIterations?: number;
|
|
1414
1417
|
matchUpIds?: string[];
|
|
1415
1418
|
structure?: Structure;
|
|
1416
1419
|
structureId?: string;
|
|
1417
1420
|
eventType?: TypeEnum;
|
|
1421
|
+
scaleName?: string;
|
|
1418
1422
|
drawId?: string;
|
|
1419
1423
|
};
|
|
1420
|
-
declare function generateDrawMaticRound({ maxIterations, generateMatchUps, tournamentParticipants, tournamentRecord, participantIds, addToStructure, drawDefinition, adHocRatings, structureId, matchUpIds, eventType, structure, }: GenerateDrawMaticRoundArgs): ResultType | {
|
|
1424
|
+
declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, tournamentRecord, participantIds, addToStructure, drawDefinition, adHocRatings, structureId, salted, matchUpIds, eventType, structure, scaleName, }: GenerateDrawMaticRoundArgs): ResultType | {
|
|
1421
1425
|
participantIdPairings: string[][];
|
|
1422
1426
|
candidatesCount: number;
|
|
1423
1427
|
matchUps: MatchUp[];
|
|
1424
1428
|
iterations: number;
|
|
1425
1429
|
success: boolean;
|
|
1430
|
+
maxDelta: number;
|
|
1431
|
+
maxDiff: number;
|
|
1426
1432
|
};
|
|
1427
1433
|
|
|
1428
1434
|
type DrawMaticArgs = {
|
|
1429
1435
|
tournamentParticipants?: HydratedParticipant[];
|
|
1436
|
+
adHocRatings?: {
|
|
1437
|
+
[key: string]: number;
|
|
1438
|
+
};
|
|
1430
1439
|
restrictEntryStatus?: boolean;
|
|
1431
1440
|
drawDefinition?: DrawDefinition;
|
|
1432
1441
|
tournamentRecord: Tournament;
|
|
1433
1442
|
generateMatchUps?: boolean;
|
|
1434
|
-
|
|
1443
|
+
salted?: number | boolean;
|
|
1435
1444
|
participantIds?: string[];
|
|
1445
|
+
addToStructure?: boolean;
|
|
1446
|
+
encounterValue?: number;
|
|
1447
|
+
sameTeamValue?: number;
|
|
1436
1448
|
maxIterations?: number;
|
|
1437
1449
|
structure?: Structure;
|
|
1438
1450
|
matchUpIds?: string[];
|