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