tods-competition-factory 2.0.5 → 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.
@@ -2113,73 +2113,6 @@ 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
-
2183
2116
  type FactoryEngine = {
2184
2117
  [key: string]: any;
2185
2118
  };
@@ -2570,6 +2503,7 @@ type GenerateDrawDefinitionArgs = {
2570
2503
  seedingProfile?: SeedingProfile;
2571
2504
  hydrateCollections?: boolean;
2572
2505
  tournamentRecord: Tournament;
2506
+ matchUpType?: EventTypeUnion;
2573
2507
  drawTypeCoercion?: boolean;
2574
2508
  ignoreStageSpace?: boolean;
2575
2509
  qualifyingProfiles?: any[];
@@ -2579,7 +2513,6 @@ type GenerateDrawDefinitionArgs = {
2579
2513
  enforceGender?: boolean;
2580
2514
  processCodes?: string[];
2581
2515
  matchUpFormat?: string;
2582
- matchUpType?: EventTypeUnion;
2583
2516
  structureName?: string;
2584
2517
  tieFormatName?: string;
2585
2518
  tieFormat?: TieFormat;
@@ -2595,6 +2528,31 @@ type GenerateDrawDefinitionArgs = {
2595
2528
  drawId?: string;
2596
2529
  event: Event$1;
2597
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
+ };
2598
2556
 
2599
2557
  /**
2600
2558
  * Links all tournaments which are currently loaded into competitionEngine state
@@ -3739,11 +3697,50 @@ type GenerateDrawStructuresAndLinksArgs = {
3739
3697
  };
3740
3698
  declare function generateDrawStructuresAndLinks(params: GenerateDrawStructuresAndLinksArgs): any;
3741
3699
 
3700
+ type GenerateDrawMaticRoundArgs = {
3701
+ adHocRatings?: {
3702
+ [key: string]: number;
3703
+ };
3704
+ ignoreLastRoundNumber?: boolean;
3705
+ restrictEntryStatus?: boolean;
3706
+ iterationMatchUps?: MatchUp[];
3707
+ drawDefinition: DrawDefinition;
3708
+ tournamentRecord: Tournament;
3709
+ generateMatchUps?: boolean;
3710
+ eventType?: EventTypeUnion;
3711
+ salted?: number | boolean;
3712
+ participantIds?: string[];
3713
+ encounterValue?: number;
3714
+ sameTeamValue?: number;
3715
+ maxIterations?: number;
3716
+ matchUpIds?: string[];
3717
+ structure?: Structure;
3718
+ roundNumber?: number;
3719
+ structureId?: string;
3720
+ scaleName?: string;
3721
+ idPrefix?: string;
3722
+ isMock?: boolean;
3723
+ drawId?: string;
3724
+ event: Event$1;
3725
+ };
3726
+ type DrawMaticRoundResult = {
3727
+ participantIdPairings?: string[][];
3728
+ candidatesCount?: number;
3729
+ roundNumber?: number;
3730
+ matchUps?: MatchUp[];
3731
+ iterations?: number;
3732
+ success?: boolean;
3733
+ maxDelta?: number;
3734
+ maxDiff?: number;
3735
+ };
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;
3738
+
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;