tods-competition-factory 2.0.3 → 2.0.6

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.
@@ -2485,6 +2485,74 @@ type MatchUpFilters = {
2485
2485
  filterMatchUpTypes?: boolean;
2486
2486
  filterMatchUpIds?: boolean;
2487
2487
  };
2488
+ type GenerateDrawDefinitionArgs = {
2489
+ automated?: boolean | {
2490
+ seedsOnly: boolean;
2491
+ };
2492
+ playoffAttributes?: PlayoffAttributes;
2493
+ policyDefinitions?: PolicyDefinitions;
2494
+ voluntaryConsolation?: {
2495
+ structureAbbreviation?: string;
2496
+ structureName?: string;
2497
+ structureId?: string;
2498
+ };
2499
+ enforceMinimumDrawSize?: boolean;
2500
+ ignoreAllowedDrawTypes?: boolean;
2501
+ qualifyingPlaceholder?: boolean;
2502
+ considerEventEntries?: boolean;
2503
+ seedingProfile?: SeedingProfile;
2504
+ hydrateCollections?: boolean;
2505
+ tournamentRecord: Tournament;
2506
+ matchUpType?: EventTypeUnion;
2507
+ drawTypeCoercion?: boolean;
2508
+ ignoreStageSpace?: boolean;
2509
+ qualifyingProfiles?: any[];
2510
+ drawMatic?: DrawMaticArgs;
2511
+ qualifyingOnly?: boolean;
2512
+ drawType?: DrawTypeUnion;
2513
+ enforceGender?: boolean;
2514
+ processCodes?: string[];
2515
+ matchUpFormat?: string;
2516
+ structureName?: string;
2517
+ tieFormatName?: string;
2518
+ tieFormat?: TieFormat;
2519
+ drawEntries?: Entry[];
2520
+ roundsCount?: number;
2521
+ seedsCount?: number;
2522
+ placeByes?: boolean;
2523
+ drawName?: string;
2524
+ drawSize?: number;
2525
+ idPrefix?: string;
2526
+ isMock?: boolean;
2527
+ uuids?: string[];
2528
+ drawId?: string;
2529
+ event: Event$1;
2530
+ };
2531
+ type DrawMaticArgs = {
2532
+ adHocRatings?: {
2533
+ [key: string]: number;
2534
+ };
2535
+ restrictEntryStatus?: boolean;
2536
+ tournamentRecord: Tournament;
2537
+ drawDefinition: DrawDefinition;
2538
+ enableDoubleRobin?: boolean;
2539
+ generateMatchUps?: boolean;
2540
+ eventType?: EventTypeUnion;
2541
+ salted?: number | boolean;
2542
+ participantIds?: string[];
2543
+ encounterValue?: number;
2544
+ sameTeamValue?: number;
2545
+ maxIterations?: number;
2546
+ matchUpIds?: string[];
2547
+ structure?: Structure;
2548
+ roundsCount?: number;
2549
+ structureId?: string;
2550
+ idPrefix?: string;
2551
+ isMock?: boolean;
2552
+ event: Event$1;
2553
+ scaleAccessor?: string;
2554
+ scaleName?: string;
2555
+ };
2488
2556
 
2489
2557
  /**
2490
2558
  * Links all tournaments which are currently loaded into competitionEngine state
@@ -3630,13 +3698,14 @@ type GenerateDrawStructuresAndLinksArgs = {
3630
3698
  declare function generateDrawStructuresAndLinks(params: GenerateDrawStructuresAndLinksArgs): any;
3631
3699
 
3632
3700
  type GenerateDrawMaticRoundArgs = {
3633
- tournamentParticipants?: HydratedParticipant[];
3634
3701
  adHocRatings?: {
3635
3702
  [key: string]: number;
3636
3703
  };
3637
3704
  ignoreLastRoundNumber?: boolean;
3638
3705
  restrictEntryStatus?: boolean;
3706
+ iterationMatchUps?: MatchUp[];
3639
3707
  drawDefinition: DrawDefinition;
3708
+ tournamentRecord: Tournament;
3640
3709
  generateMatchUps?: boolean;
3641
3710
  eventType?: EventTypeUnion;
3642
3711
  salted?: number | boolean;
@@ -3664,86 +3733,14 @@ type DrawMaticRoundResult = {
3664
3733
  maxDelta?: number;
3665
3734
  maxDiff?: number;
3666
3735
  };
3667
- declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, ignoreLastRoundNumber, participantIds, drawDefinition, adHocRatings, salted, roundNumber, structureId, matchUpIds, eventType, structure, scaleName, idPrefix, isMock, event, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
3668
-
3669
- type DrawMaticArgs = {
3670
- adHocRatings?: {
3671
- [key: string]: number;
3672
- };
3673
- restrictEntryStatus?: boolean;
3674
- tournamentRecord: Tournament;
3675
- drawDefinition: DrawDefinition;
3676
- enableDoubleRobin?: boolean;
3677
- generateMatchUps?: boolean;
3678
- eventType?: EventTypeUnion;
3679
- salted?: number | boolean;
3680
- participantIds?: string[];
3681
- encounterValue?: number;
3682
- sameTeamValue?: number;
3683
- maxIterations?: number;
3684
- matchUpIds?: string[];
3685
- structure?: Structure;
3686
- roundsCount?: number;
3687
- structureId?: string;
3688
- idPrefix?: string;
3689
- isMock?: boolean;
3690
- event: Event$1;
3691
- scaleAccessor?: string;
3692
- scaleName?: string;
3693
- };
3694
- declare function drawMatic(params: DrawMaticArgs): ResultType & {
3695
- matchUps?: MatchUp[];
3696
- roundResults?: DrawMaticRoundResult[];
3697
- };
3736
+ declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, ignoreLastRoundNumber, iterationMatchUps, // necessary when called iteratively and matchUps are not yet added to structure
3737
+ tournamentRecord, participantIds, drawDefinition, adHocRatings, salted, roundNumber, structureId, matchUpIds, eventType, structure, scaleName, idPrefix, isMock, event, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
3698
3738
 
3699
- type GenerateDrawDefinitionArgs = {
3700
- automated?: boolean | {
3701
- seedsOnly: boolean;
3702
- };
3703
- playoffAttributes?: PlayoffAttributes;
3704
- policyDefinitions?: PolicyDefinitions;
3705
- voluntaryConsolation?: {
3706
- structureAbbreviation?: string;
3707
- structureName?: string;
3708
- structureId?: string;
3709
- };
3710
- enforceMinimumDrawSize?: boolean;
3711
- ignoreAllowedDrawTypes?: boolean;
3712
- qualifyingPlaceholder?: boolean;
3713
- considerEventEntries?: boolean;
3714
- seedingProfile?: SeedingProfile;
3715
- hydrateCollections?: boolean;
3716
- tournamentRecord: Tournament;
3717
- drawTypeCoercion?: boolean;
3718
- ignoreStageSpace?: boolean;
3719
- qualifyingProfiles?: any[];
3720
- drawMatic?: DrawMaticArgs;
3721
- qualifyingOnly?: boolean;
3722
- drawType?: DrawTypeUnion;
3723
- enforceGender?: boolean;
3724
- processCodes?: string[];
3725
- matchUpFormat?: string;
3726
- matchUpType?: EventTypeUnion;
3727
- structureName?: string;
3728
- tieFormatName?: string;
3729
- tieFormat?: TieFormat;
3730
- drawEntries?: Entry[];
3731
- roundsCount?: number;
3732
- seedsCount?: number;
3733
- placeByes?: boolean;
3734
- drawName?: string;
3735
- drawSize?: number;
3736
- idPrefix?: string;
3737
- isMock?: boolean;
3738
- uuids?: string[];
3739
- drawId?: string;
3740
- event: Event$1;
3741
- };
3742
3739
  declare function generateDrawDefinition(params: GenerateDrawDefinitionArgs): ResultType & {
3743
3740
  existingDrawDefinition?: boolean;
3741
+ drawDefinition?: DrawDefinition;
3744
3742
  qualifyingConflicts?: any[];
3745
3743
  positioningReports?: any[];
3746
- drawDefinition?: DrawDefinition;
3747
3744
  structureId?: string;
3748
3745
  success?: boolean;
3749
3746
  error?: ErrorType;
@@ -3774,6 +3771,11 @@ declare function generateAdHocMatchUps(params: GenerateAdHocMatchUpsArgs): {
3774
3771
  info?: any;
3775
3772
  };
3776
3773
 
3774
+ declare function drawMatic(params: DrawMaticArgs): ResultType & {
3775
+ matchUps?: MatchUp[];
3776
+ roundResults?: DrawMaticRoundResult[];
3777
+ };
3778
+
3777
3779
  declare const index$j_addAdHocMatchUps: typeof addAdHocMatchUps;
3778
3780
  declare const index$j_addDrawDefinitionTimeItem: typeof addDrawDefinitionTimeItem;
3779
3781
  declare const index$j_addPlayoffStructures: typeof addPlayoffStructures;