tods-competition-factory 2.0.3 → 2.0.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.
@@ -2113,6 +2113,73 @@ type MatchUpsMap = {
2113
2113
  drawMatchUps: MatchUp[];
2114
2114
  };
2115
2115
 
2116
+ type GenerateDrawMaticRoundArgs = {
2117
+ tournamentParticipants?: HydratedParticipant[];
2118
+ adHocRatings?: {
2119
+ [key: string]: number;
2120
+ };
2121
+ ignoreLastRoundNumber?: boolean;
2122
+ restrictEntryStatus?: boolean;
2123
+ drawDefinition: DrawDefinition;
2124
+ generateMatchUps?: boolean;
2125
+ eventType?: EventTypeUnion;
2126
+ salted?: number | boolean;
2127
+ participantIds?: string[];
2128
+ encounterValue?: number;
2129
+ sameTeamValue?: number;
2130
+ maxIterations?: number;
2131
+ matchUpIds?: string[];
2132
+ structure?: Structure;
2133
+ roundNumber?: number;
2134
+ structureId?: string;
2135
+ scaleName?: string;
2136
+ idPrefix?: string;
2137
+ isMock?: boolean;
2138
+ drawId?: string;
2139
+ event: Event$1;
2140
+ };
2141
+ type DrawMaticRoundResult = {
2142
+ participantIdPairings?: string[][];
2143
+ candidatesCount?: number;
2144
+ roundNumber?: number;
2145
+ matchUps?: MatchUp[];
2146
+ iterations?: number;
2147
+ success?: boolean;
2148
+ maxDelta?: number;
2149
+ maxDiff?: number;
2150
+ };
2151
+ 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;
2152
+
2153
+ type DrawMaticArgs = {
2154
+ adHocRatings?: {
2155
+ [key: string]: number;
2156
+ };
2157
+ restrictEntryStatus?: boolean;
2158
+ tournamentRecord: Tournament;
2159
+ drawDefinition: DrawDefinition;
2160
+ enableDoubleRobin?: boolean;
2161
+ generateMatchUps?: boolean;
2162
+ eventType?: EventTypeUnion;
2163
+ salted?: number | boolean;
2164
+ participantIds?: string[];
2165
+ encounterValue?: number;
2166
+ sameTeamValue?: number;
2167
+ maxIterations?: number;
2168
+ matchUpIds?: string[];
2169
+ structure?: Structure;
2170
+ roundsCount?: number;
2171
+ structureId?: string;
2172
+ idPrefix?: string;
2173
+ isMock?: boolean;
2174
+ event: Event$1;
2175
+ scaleAccessor?: string;
2176
+ scaleName?: string;
2177
+ };
2178
+ declare function drawMatic(params: DrawMaticArgs): ResultType & {
2179
+ matchUps?: MatchUp[];
2180
+ roundResults?: DrawMaticRoundResult[];
2181
+ };
2182
+
2116
2183
  type FactoryEngine = {
2117
2184
  [key: string]: any;
2118
2185
  };
@@ -2485,6 +2552,49 @@ type MatchUpFilters = {
2485
2552
  filterMatchUpTypes?: boolean;
2486
2553
  filterMatchUpIds?: boolean;
2487
2554
  };
2555
+ type GenerateDrawDefinitionArgs = {
2556
+ automated?: boolean | {
2557
+ seedsOnly: boolean;
2558
+ };
2559
+ playoffAttributes?: PlayoffAttributes;
2560
+ policyDefinitions?: PolicyDefinitions;
2561
+ voluntaryConsolation?: {
2562
+ structureAbbreviation?: string;
2563
+ structureName?: string;
2564
+ structureId?: string;
2565
+ };
2566
+ enforceMinimumDrawSize?: boolean;
2567
+ ignoreAllowedDrawTypes?: boolean;
2568
+ qualifyingPlaceholder?: boolean;
2569
+ considerEventEntries?: boolean;
2570
+ seedingProfile?: SeedingProfile;
2571
+ hydrateCollections?: boolean;
2572
+ tournamentRecord: Tournament;
2573
+ drawTypeCoercion?: boolean;
2574
+ ignoreStageSpace?: boolean;
2575
+ qualifyingProfiles?: any[];
2576
+ drawMatic?: DrawMaticArgs;
2577
+ qualifyingOnly?: boolean;
2578
+ drawType?: DrawTypeUnion;
2579
+ enforceGender?: boolean;
2580
+ processCodes?: string[];
2581
+ matchUpFormat?: string;
2582
+ matchUpType?: EventTypeUnion;
2583
+ structureName?: string;
2584
+ tieFormatName?: string;
2585
+ tieFormat?: TieFormat;
2586
+ drawEntries?: Entry[];
2587
+ roundsCount?: number;
2588
+ seedsCount?: number;
2589
+ placeByes?: boolean;
2590
+ drawName?: string;
2591
+ drawSize?: number;
2592
+ idPrefix?: string;
2593
+ isMock?: boolean;
2594
+ uuids?: string[];
2595
+ drawId?: string;
2596
+ event: Event$1;
2597
+ };
2488
2598
 
2489
2599
  /**
2490
2600
  * Links all tournaments which are currently loaded into competitionEngine state
@@ -3629,116 +3739,6 @@ type GenerateDrawStructuresAndLinksArgs = {
3629
3739
  };
3630
3740
  declare function generateDrawStructuresAndLinks(params: GenerateDrawStructuresAndLinksArgs): any;
3631
3741
 
3632
- type GenerateDrawMaticRoundArgs = {
3633
- tournamentParticipants?: HydratedParticipant[];
3634
- adHocRatings?: {
3635
- [key: string]: number;
3636
- };
3637
- ignoreLastRoundNumber?: boolean;
3638
- restrictEntryStatus?: boolean;
3639
- drawDefinition: DrawDefinition;
3640
- generateMatchUps?: boolean;
3641
- eventType?: EventTypeUnion;
3642
- salted?: number | boolean;
3643
- participantIds?: string[];
3644
- encounterValue?: number;
3645
- sameTeamValue?: number;
3646
- maxIterations?: number;
3647
- matchUpIds?: string[];
3648
- structure?: Structure;
3649
- roundNumber?: number;
3650
- structureId?: string;
3651
- scaleName?: string;
3652
- idPrefix?: string;
3653
- isMock?: boolean;
3654
- drawId?: string;
3655
- event: Event$1;
3656
- };
3657
- type DrawMaticRoundResult = {
3658
- participantIdPairings?: string[][];
3659
- candidatesCount?: number;
3660
- roundNumber?: number;
3661
- matchUps?: MatchUp[];
3662
- iterations?: number;
3663
- success?: boolean;
3664
- maxDelta?: number;
3665
- maxDiff?: number;
3666
- };
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
- };
3698
-
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
3742
  declare function generateDrawDefinition(params: GenerateDrawDefinitionArgs): ResultType & {
3743
3743
  existingDrawDefinition?: boolean;
3744
3744
  qualifyingConflicts?: any[];