tods-competition-factory 1.6.22 → 1.6.23

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.
@@ -1275,6 +1275,10 @@ interface UnifiedVenueID {
1275
1275
  venueId: string;
1276
1276
  }
1277
1277
 
1278
+ type HydratedParticipant = {
1279
+ [key: string | number]: any;
1280
+ } & Participant;
1281
+
1278
1282
  declare const POLICY_TYPE_VOLUNTARY_CONSOLATION = "voluntaryConsolation";
1279
1283
  declare const POLICY_TYPE_COMPETITIVE_BANDS = "competitiveBands";
1280
1284
  declare const POLICY_TYPE_ROUND_ROBIN_TALLY = "roundRobinTally";
@@ -1393,21 +1397,66 @@ declare function generateVoluntaryConsolation(params: any): {
1393
1397
  };
1394
1398
  };
1395
1399
 
1400
+ type GenerateDrawMaticRoundArgs = {
1401
+ tournamentParticipants?: HydratedParticipant[];
1402
+ adHocRatings?: {
1403
+ [key: string]: number;
1404
+ };
1405
+ restrictEntryStatus?: boolean;
1406
+ drawDefinition: DrawDefinition;
1407
+ generateMatchUps?: boolean;
1408
+ tournamentRecord: Tournament;
1409
+ participantIds?: string[];
1410
+ addToStructure?: boolean;
1411
+ maxIterations?: number;
1412
+ matchUpIds?: string[];
1413
+ structure?: Structure;
1414
+ structureId?: string;
1415
+ eventType?: TypeEnum;
1416
+ drawId?: string;
1417
+ };
1418
+ declare function generateDrawMaticRound({ maxIterations, generateMatchUps, tournamentParticipants, tournamentRecord, participantIds, addToStructure, drawDefinition, adHocRatings, structureId, matchUpIds, eventType, structure, }: GenerateDrawMaticRoundArgs): ResultType | {
1419
+ participantIdPairings: string[][];
1420
+ candidatesCount: number;
1421
+ matchUps: MatchUp[];
1422
+ iterations: number;
1423
+ success: boolean;
1424
+ };
1425
+
1426
+ type DrawMaticArgs = {
1427
+ tournamentParticipants?: HydratedParticipant[];
1428
+ restrictEntryStatus?: boolean;
1429
+ drawDefinition?: DrawDefinition;
1430
+ tournamentRecord: Tournament;
1431
+ generateMatchUps?: boolean;
1432
+ addToStructure?: boolean;
1433
+ participantIds?: string[];
1434
+ maxIterations?: number;
1435
+ structure?: Structure;
1436
+ matchUpIds?: string[];
1437
+ structureId?: string;
1438
+ eventType?: TypeEnum;
1439
+ event?: Event;
1440
+ scaleAccessor?: string;
1441
+ scaleName?: string;
1442
+ };
1443
+
1396
1444
  type GenerateDrawDefinitionArgs = {
1397
1445
  automated?: boolean | {
1398
1446
  seedsOnly: boolean;
1399
1447
  };
1400
1448
  policyDefinitions?: PolicyDefinitions;
1401
- ignoreAllowedDrawTypes?: boolean;
1402
- qualifyingPlaceholder?: boolean;
1403
- considerEventEntries?: boolean;
1404
- hydrateCollections?: boolean;
1405
- tournamentRecord: Tournament;
1406
1449
  voluntaryConsolation?: {
1407
1450
  structureAbbreviation?: string;
1408
1451
  structureName?: string;
1409
1452
  structureId?: string;
1410
1453
  };
1454
+ ignoreAllowedDrawTypes?: boolean;
1455
+ qualifyingPlaceholder?: boolean;
1456
+ considerEventEntries?: boolean;
1457
+ hydrateCollections?: boolean;
1458
+ tournamentRecord: Tournament;
1459
+ drawMatic?: DrawMaticArgs;
1411
1460
  ignoreStageSpace?: boolean;
1412
1461
  qualifyingProfiles?: any[];
1413
1462
  qualifyingOnly?: boolean;
@@ -1521,4 +1570,4 @@ declare function automatedPlayoffPositioning(params: AutomatedPlayoffPositioning
1521
1570
  error?: ErrorType;
1522
1571
  };
1523
1572
 
1524
- export { automatedPlayoffPositioning, automatedPositioning, createGroupParticipant, generateAndPopulatePlayoffStructures, generateDrawDefinition, generateFlightProfile, generateVoluntaryConsolation };
1573
+ export { automatedPlayoffPositioning, automatedPositioning, createGroupParticipant, generateAndPopulatePlayoffStructures, generateDrawDefinition, generateDrawMaticRound, generateFlightProfile, generateVoluntaryConsolation };