tods-competition-factory 2.0.0-alpha.1 → 2.0.0-beta.1
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.
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.d.ts +194 -269
- package/dist/tods-competition-factory.development.cjs.js +1715 -1690
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -2802,15 +2802,6 @@ type AddCourtsArgs = {
|
|
|
2802
2802
|
dates: string[];
|
|
2803
2803
|
};
|
|
2804
2804
|
|
|
2805
|
-
declare function visualizeScheduledMatchUps({ scheduledMatchUps, showGlobalLog, }: {
|
|
2806
|
-
scheduledMatchUps: any;
|
|
2807
|
-
showGlobalLog: any;
|
|
2808
|
-
}): void;
|
|
2809
|
-
|
|
2810
|
-
declare function validateCategory({ category }: {
|
|
2811
|
-
category: any;
|
|
2812
|
-
}): any;
|
|
2813
|
-
|
|
2814
2805
|
/**
|
|
2815
2806
|
* generate a given number of UUIDs
|
|
2816
2807
|
*
|
|
@@ -2819,31 +2810,6 @@ declare function validateCategory({ category }: {
|
|
|
2819
2810
|
declare function UUIDS(count?: number): string[];
|
|
2820
2811
|
declare function UUID(): string;
|
|
2821
2812
|
|
|
2822
|
-
type GenderValidityCheckArgs = {
|
|
2823
|
-
referenceGender?: GenderUnion;
|
|
2824
|
-
matchUpType?: string;
|
|
2825
|
-
gender?: GenderUnion;
|
|
2826
|
-
};
|
|
2827
|
-
declare function tieFormatGenderValidityCheck(params: GenderValidityCheckArgs): ResultType;
|
|
2828
|
-
|
|
2829
|
-
declare function structureSort(a: Structure | undefined, b: Structure | undefined, config?: any): number;
|
|
2830
|
-
|
|
2831
|
-
declare function getRoundRobinGroupMatchUps({ drawPositions }: {
|
|
2832
|
-
drawPositions: any;
|
|
2833
|
-
}): {
|
|
2834
|
-
groupMatchUps: never[];
|
|
2835
|
-
uniqueMatchUpGroupings: any;
|
|
2836
|
-
};
|
|
2837
|
-
declare function drawPositionsHash(drawPositions: any): string;
|
|
2838
|
-
declare function groupRounds({ groupSize, drawPositionOffset }: {
|
|
2839
|
-
groupSize: any;
|
|
2840
|
-
drawPositionOffset: any;
|
|
2841
|
-
}): any[];
|
|
2842
|
-
declare function determineRoundNumber({ rounds, hash }: {
|
|
2843
|
-
rounds: any;
|
|
2844
|
-
hash: any;
|
|
2845
|
-
}): any;
|
|
2846
|
-
|
|
2847
2813
|
declare function numericSort(a: any, b: any): number;
|
|
2848
2814
|
|
|
2849
2815
|
/**
|
|
@@ -2870,76 +2836,6 @@ declare function isOdd(num: any): boolean | undefined;
|
|
|
2870
2836
|
declare function nextPowerOf2(n?: any): any;
|
|
2871
2837
|
declare function isConvertableInteger(n: any): boolean;
|
|
2872
2838
|
|
|
2873
|
-
type IsAdHocArgs = {
|
|
2874
|
-
drawDefinition?: DrawDefinition;
|
|
2875
|
-
structure?: any;
|
|
2876
|
-
};
|
|
2877
|
-
declare function isAdHoc({ drawDefinition, structure }: IsAdHocArgs): boolean;
|
|
2878
|
-
|
|
2879
|
-
type GetValidGroupSizesArgs = {
|
|
2880
|
-
groupSizeLimit?: number;
|
|
2881
|
-
drawSize: number;
|
|
2882
|
-
};
|
|
2883
|
-
declare function getValidGroupSizes({ drawSize, groupSizeLimit, }: GetValidGroupSizesArgs): ResultType & {
|
|
2884
|
-
validGroupSizes?: number[];
|
|
2885
|
-
};
|
|
2886
|
-
|
|
2887
|
-
type GetSeedingThresholdsArgs = {
|
|
2888
|
-
roundRobinGroupsCount?: number;
|
|
2889
|
-
participantsCount: number;
|
|
2890
|
-
};
|
|
2891
|
-
declare function getSeedingThresholds({ roundRobinGroupsCount, participantsCount, }: GetSeedingThresholdsArgs): ResultType & {
|
|
2892
|
-
seedingThresholds?: any;
|
|
2893
|
-
success?: boolean;
|
|
2894
|
-
};
|
|
2895
|
-
|
|
2896
|
-
type ScaleType = {
|
|
2897
|
-
scaleName: string;
|
|
2898
|
-
scaleDate: string;
|
|
2899
|
-
scaleValue: any;
|
|
2900
|
-
};
|
|
2901
|
-
type ScalesType = {
|
|
2902
|
-
[SINGLES_EVENT]?: ScaleType;
|
|
2903
|
-
[DOUBLES_EVENT]?: ScaleType;
|
|
2904
|
-
[TEAM_EVENT]?: ScaleType;
|
|
2905
|
-
};
|
|
2906
|
-
declare function getScaleValues({ participant }: {
|
|
2907
|
-
participant: any;
|
|
2908
|
-
}): {
|
|
2909
|
-
seedings: ScalesType;
|
|
2910
|
-
rankings: ScalesType;
|
|
2911
|
-
ratings: ScalesType;
|
|
2912
|
-
success: boolean;
|
|
2913
|
-
};
|
|
2914
|
-
|
|
2915
|
-
declare function getMatchUpContextIds({ matchUps, matchUpId }: {
|
|
2916
|
-
matchUps: any;
|
|
2917
|
-
matchUpId: any;
|
|
2918
|
-
}): {
|
|
2919
|
-
error: {
|
|
2920
|
-
message: string;
|
|
2921
|
-
code: string;
|
|
2922
|
-
};
|
|
2923
|
-
matchUpId?: undefined;
|
|
2924
|
-
drawId?: undefined;
|
|
2925
|
-
eventId?: undefined;
|
|
2926
|
-
structureId?: undefined;
|
|
2927
|
-
tournamentId?: undefined;
|
|
2928
|
-
} | {
|
|
2929
|
-
matchUpId: any;
|
|
2930
|
-
drawId: any;
|
|
2931
|
-
eventId: any;
|
|
2932
|
-
structureId: any;
|
|
2933
|
-
tournamentId: any;
|
|
2934
|
-
error?: undefined;
|
|
2935
|
-
};
|
|
2936
|
-
|
|
2937
|
-
type ParseArgs = {
|
|
2938
|
-
consideredDate?: string;
|
|
2939
|
-
category?: Category;
|
|
2940
|
-
};
|
|
2941
|
-
declare function getCategoryAgeDetails(params: ParseArgs): any;
|
|
2942
|
-
|
|
2943
2839
|
declare function generateTimeCode(index?: number): string;
|
|
2944
2840
|
|
|
2945
2841
|
/**
|
|
@@ -2971,13 +2867,6 @@ declare function JSON2CSV(arrayOfJSON?: any, config?: any): string | any[] | {
|
|
|
2971
2867
|
};
|
|
2972
2868
|
declare function flattenJSON(obj: any, keyJoiner?: string, path?: string[]): any;
|
|
2973
2869
|
|
|
2974
|
-
declare function dehydrateMatchUps({ tournamentRecord }: {
|
|
2975
|
-
tournamentRecord: any;
|
|
2976
|
-
}): {
|
|
2977
|
-
success?: boolean;
|
|
2978
|
-
error?: ErrorType;
|
|
2979
|
-
};
|
|
2980
|
-
|
|
2981
2870
|
declare function definedAttributes(obj: object, ignoreFalse?: boolean, ignoreEmptyArrays?: boolean, shallow?: boolean): any;
|
|
2982
2871
|
|
|
2983
2872
|
declare function getIsoDateString(schedule: any): any;
|
|
@@ -3007,60 +2896,8 @@ declare function generateHashCode(o: any): string | undefined;
|
|
|
3007
2896
|
|
|
3008
2897
|
declare function constantToString(str: any): any;
|
|
3009
2898
|
|
|
3010
|
-
type CompareTieFormatsArgs = {
|
|
3011
|
-
considerations?: any;
|
|
3012
|
-
descendant: TieFormat;
|
|
3013
|
-
ancestor: TieFormat;
|
|
3014
|
-
};
|
|
3015
|
-
declare function compareTieFormats({ considerations, descendant, ancestor, }: CompareTieFormatsArgs): {
|
|
3016
|
-
different: any;
|
|
3017
|
-
invalid: 0 | any[];
|
|
3018
|
-
success: boolean;
|
|
3019
|
-
matchUpFormatDifferences: any;
|
|
3020
|
-
matchUpCountDifference: number;
|
|
3021
|
-
descendantDifferences: any;
|
|
3022
|
-
ancestorDifferences: any;
|
|
3023
|
-
orderDifference: boolean;
|
|
3024
|
-
valueDifference: number;
|
|
3025
|
-
nameDifference: boolean;
|
|
3026
|
-
descendantDesc: any;
|
|
3027
|
-
ancestorDesc: any;
|
|
3028
|
-
};
|
|
3029
|
-
|
|
3030
|
-
type CalculateWinCriteriaArgs = {
|
|
3031
|
-
collectionGroups?: {
|
|
3032
|
-
groupValue?: number;
|
|
3033
|
-
groupNumber?: number;
|
|
3034
|
-
}[];
|
|
3035
|
-
collectionDefinitions?: CollectionDefinition[];
|
|
3036
|
-
};
|
|
3037
|
-
declare function calculateWinCriteria({ collectionDefinitions, collectionGroups, }: CalculateWinCriteriaArgs): {
|
|
3038
|
-
aggregateValue: boolean;
|
|
3039
|
-
valueGoal?: undefined;
|
|
3040
|
-
} | {
|
|
3041
|
-
valueGoal: number;
|
|
3042
|
-
aggregateValue?: undefined;
|
|
3043
|
-
};
|
|
3044
|
-
|
|
3045
2899
|
declare function attributeFilter(params?: any): any;
|
|
3046
2900
|
|
|
3047
|
-
type StructureActionsArgs = {
|
|
3048
|
-
drawDefinition: DrawDefinition;
|
|
3049
|
-
structureId: string;
|
|
3050
|
-
};
|
|
3051
|
-
type StructureQueryArgs = {
|
|
3052
|
-
drawDefinition: DrawDefinition;
|
|
3053
|
-
structure?: Structure;
|
|
3054
|
-
structureId?: string;
|
|
3055
|
-
};
|
|
3056
|
-
declare function isCompletedStructure(params: StructureQueryArgs): boolean;
|
|
3057
|
-
declare function allPlayoffPositionsFilled(params: StructureActionsArgs): boolean | {
|
|
3058
|
-
error: {
|
|
3059
|
-
message: string;
|
|
3060
|
-
code: string;
|
|
3061
|
-
};
|
|
3062
|
-
};
|
|
3063
|
-
|
|
3064
2901
|
declare function unique(arr: any): any;
|
|
3065
2902
|
declare function noNulls(arr: any): any;
|
|
3066
2903
|
declare function shuffleArray(arr: any): any;
|
|
@@ -3114,6 +2951,20 @@ declare function noNumeric(arr: any): any;
|
|
|
3114
2951
|
*/
|
|
3115
2952
|
declare function chunkByNth(arr: any[], chunksCount: number, shuttle?: boolean): any;
|
|
3116
2953
|
|
|
2954
|
+
declare function structureSort(a: Structure | undefined, b: Structure | undefined, config?: any): number;
|
|
2955
|
+
|
|
2956
|
+
declare function dehydrateMatchUps({ tournamentRecord }: {
|
|
2957
|
+
tournamentRecord: any;
|
|
2958
|
+
}): {
|
|
2959
|
+
success?: boolean;
|
|
2960
|
+
error?: ErrorType;
|
|
2961
|
+
};
|
|
2962
|
+
|
|
2963
|
+
declare function visualizeScheduledMatchUps({ scheduledMatchUps, showGlobalLog, }: {
|
|
2964
|
+
scheduledMatchUps: any;
|
|
2965
|
+
showGlobalLog: any;
|
|
2966
|
+
}): void;
|
|
2967
|
+
|
|
3117
2968
|
declare function setTournamentStatus({ tournamentRecord, status }: {
|
|
3118
2969
|
tournamentRecord: any;
|
|
3119
2970
|
status: any;
|
|
@@ -4617,6 +4468,137 @@ declare function getStructureReports({ firstFlightOnly, extensionProfiles, tourn
|
|
|
4617
4468
|
error?: undefined;
|
|
4618
4469
|
};
|
|
4619
4470
|
|
|
4471
|
+
declare function validateCategory({ category }: {
|
|
4472
|
+
category: any;
|
|
4473
|
+
}): any;
|
|
4474
|
+
|
|
4475
|
+
type GenderValidityCheckArgs = {
|
|
4476
|
+
referenceGender?: GenderUnion;
|
|
4477
|
+
matchUpType?: string;
|
|
4478
|
+
gender?: GenderUnion;
|
|
4479
|
+
};
|
|
4480
|
+
declare function tieFormatGenderValidityCheck(params: GenderValidityCheckArgs): ResultType;
|
|
4481
|
+
|
|
4482
|
+
declare function getRoundRobinGroupMatchUps({ drawPositions }: {
|
|
4483
|
+
drawPositions: any;
|
|
4484
|
+
}): {
|
|
4485
|
+
groupMatchUps: never[];
|
|
4486
|
+
uniqueMatchUpGroupings: any;
|
|
4487
|
+
};
|
|
4488
|
+
declare function drawPositionsHash(drawPositions: any): string;
|
|
4489
|
+
declare function groupRounds({ groupSize, drawPositionOffset }: {
|
|
4490
|
+
groupSize: any;
|
|
4491
|
+
drawPositionOffset: any;
|
|
4492
|
+
}): any[];
|
|
4493
|
+
declare function determineRoundNumber({ rounds, hash }: {
|
|
4494
|
+
rounds: any;
|
|
4495
|
+
hash: any;
|
|
4496
|
+
}): any;
|
|
4497
|
+
|
|
4498
|
+
type IsAdHocArgs = {
|
|
4499
|
+
drawDefinition?: DrawDefinition;
|
|
4500
|
+
structure?: any;
|
|
4501
|
+
};
|
|
4502
|
+
declare function isAdHoc({ drawDefinition, structure }: IsAdHocArgs): boolean;
|
|
4503
|
+
|
|
4504
|
+
type GetValidGroupSizesArgs = {
|
|
4505
|
+
groupSizeLimit?: number;
|
|
4506
|
+
drawSize: number;
|
|
4507
|
+
};
|
|
4508
|
+
declare function getValidGroupSizes({ drawSize, groupSizeLimit, }: GetValidGroupSizesArgs): ResultType & {
|
|
4509
|
+
validGroupSizes?: number[];
|
|
4510
|
+
};
|
|
4511
|
+
|
|
4512
|
+
type GetSeedingThresholdsArgs = {
|
|
4513
|
+
roundRobinGroupsCount?: number;
|
|
4514
|
+
participantsCount: number;
|
|
4515
|
+
};
|
|
4516
|
+
declare function getSeedingThresholds({ roundRobinGroupsCount, participantsCount, }: GetSeedingThresholdsArgs): ResultType & {
|
|
4517
|
+
seedingThresholds?: any;
|
|
4518
|
+
success?: boolean;
|
|
4519
|
+
};
|
|
4520
|
+
|
|
4521
|
+
declare function getScaleValues(params: any): ResultType & {
|
|
4522
|
+
valid?: boolean | undefined;
|
|
4523
|
+
};
|
|
4524
|
+
|
|
4525
|
+
declare function getMatchUpContextIds({ matchUps, matchUpId }: {
|
|
4526
|
+
matchUps: any;
|
|
4527
|
+
matchUpId: any;
|
|
4528
|
+
}): {
|
|
4529
|
+
error: {
|
|
4530
|
+
message: string;
|
|
4531
|
+
code: string;
|
|
4532
|
+
};
|
|
4533
|
+
matchUpId?: undefined;
|
|
4534
|
+
drawId?: undefined;
|
|
4535
|
+
eventId?: undefined;
|
|
4536
|
+
structureId?: undefined;
|
|
4537
|
+
tournamentId?: undefined;
|
|
4538
|
+
} | {
|
|
4539
|
+
matchUpId: any;
|
|
4540
|
+
drawId: any;
|
|
4541
|
+
eventId: any;
|
|
4542
|
+
structureId: any;
|
|
4543
|
+
tournamentId: any;
|
|
4544
|
+
error?: undefined;
|
|
4545
|
+
};
|
|
4546
|
+
|
|
4547
|
+
type CompareTieFormatsArgs = {
|
|
4548
|
+
considerations?: any;
|
|
4549
|
+
descendant: TieFormat;
|
|
4550
|
+
ancestor: TieFormat;
|
|
4551
|
+
};
|
|
4552
|
+
declare function compareTieFormats({ considerations, descendant, ancestor, }: CompareTieFormatsArgs): {
|
|
4553
|
+
different: any;
|
|
4554
|
+
invalid: 0 | any[];
|
|
4555
|
+
success: boolean;
|
|
4556
|
+
matchUpFormatDifferences: any;
|
|
4557
|
+
matchUpCountDifference: number;
|
|
4558
|
+
descendantDifferences: any;
|
|
4559
|
+
ancestorDifferences: any;
|
|
4560
|
+
orderDifference: boolean;
|
|
4561
|
+
valueDifference: number;
|
|
4562
|
+
nameDifference: boolean;
|
|
4563
|
+
descendantDesc: any;
|
|
4564
|
+
ancestorDesc: any;
|
|
4565
|
+
};
|
|
4566
|
+
|
|
4567
|
+
type CalculateWinCriteriaArgs = {
|
|
4568
|
+
collectionGroups?: {
|
|
4569
|
+
groupValue?: number;
|
|
4570
|
+
groupNumber?: number;
|
|
4571
|
+
}[];
|
|
4572
|
+
collectionDefinitions?: CollectionDefinition[];
|
|
4573
|
+
};
|
|
4574
|
+
declare function calculateWinCriteria({ collectionDefinitions, collectionGroups, }: CalculateWinCriteriaArgs): ResultType & {
|
|
4575
|
+
aggregateValue?: boolean;
|
|
4576
|
+
valueGoal?: number;
|
|
4577
|
+
};
|
|
4578
|
+
|
|
4579
|
+
type ParseArgs = {
|
|
4580
|
+
consideredDate?: string;
|
|
4581
|
+
category?: Category;
|
|
4582
|
+
};
|
|
4583
|
+
declare function getCategoryAgeDetails(params: ParseArgs): any;
|
|
4584
|
+
|
|
4585
|
+
type StructureActionsArgs = {
|
|
4586
|
+
drawDefinition: DrawDefinition;
|
|
4587
|
+
structureId: string;
|
|
4588
|
+
};
|
|
4589
|
+
type StructureQueryArgs = {
|
|
4590
|
+
drawDefinition: DrawDefinition;
|
|
4591
|
+
structure?: Structure;
|
|
4592
|
+
structureId?: string;
|
|
4593
|
+
};
|
|
4594
|
+
declare function isCompletedStructure(params: StructureQueryArgs): boolean;
|
|
4595
|
+
declare function allPlayoffPositionsFilled(params: StructureActionsArgs): boolean | {
|
|
4596
|
+
error: {
|
|
4597
|
+
message: string;
|
|
4598
|
+
code: string;
|
|
4599
|
+
};
|
|
4600
|
+
};
|
|
4601
|
+
|
|
4620
4602
|
declare function validMatchUp(matchUp: any): boolean;
|
|
4621
4603
|
declare function validMatchUps(matchUps: any): boolean;
|
|
4622
4604
|
|
|
@@ -4835,6 +4817,13 @@ declare function getTournamentPenalties({ tournamentRecord, }: GetTournamentPena
|
|
|
4835
4817
|
penalties?: Penalty[];
|
|
4836
4818
|
};
|
|
4837
4819
|
|
|
4820
|
+
declare function getTournamentInfo({ tournamentRecord }: {
|
|
4821
|
+
tournamentRecord: any;
|
|
4822
|
+
}): {
|
|
4823
|
+
tournamentInfo?: any;
|
|
4824
|
+
error?: ErrorType;
|
|
4825
|
+
};
|
|
4826
|
+
|
|
4838
4827
|
declare function getTournamentIds({ tournamentRecords }: {
|
|
4839
4828
|
tournamentRecords: any;
|
|
4840
4829
|
}): {
|
|
@@ -6319,13 +6308,6 @@ declare function getVenueData({ tournamentRecord, venueId }: GetVenueDataArgs):
|
|
|
6319
6308
|
venueData?: any;
|
|
6320
6309
|
};
|
|
6321
6310
|
|
|
6322
|
-
declare function getTournamentInfo({ tournamentRecord }: {
|
|
6323
|
-
tournamentRecord: any;
|
|
6324
|
-
}): {
|
|
6325
|
-
tournamentInfo?: any;
|
|
6326
|
-
error?: ErrorType;
|
|
6327
|
-
};
|
|
6328
|
-
|
|
6329
6311
|
type GetPublishStateArgs = {
|
|
6330
6312
|
tournamentRecord?: Tournament;
|
|
6331
6313
|
eventIds?: string[];
|
|
@@ -6965,7 +6947,9 @@ declare function parse(matchUpFormatCode: string): ParsedFormat | undefined;
|
|
|
6965
6947
|
|
|
6966
6948
|
declare function stringify(matchUpFormatObject: any, preserveRedundant?: boolean): string | undefined;
|
|
6967
6949
|
|
|
6968
|
-
declare function isValidMatchUpFormat(matchUpFormat
|
|
6950
|
+
declare function isValidMatchUpFormat({ matchUpFormat, }: {
|
|
6951
|
+
matchUpFormat: string;
|
|
6952
|
+
}): boolean;
|
|
6969
6953
|
|
|
6970
6954
|
type GenerateVoluntaryConsolationArgs = {
|
|
6971
6955
|
playoffAttributes?: PlayoffAttributes;
|
|
@@ -7166,6 +7150,7 @@ type GenerateDrawMaticRoundArgs = {
|
|
|
7166
7150
|
restrictEntryStatus?: boolean;
|
|
7167
7151
|
drawDefinition: DrawDefinition;
|
|
7168
7152
|
generateMatchUps?: boolean;
|
|
7153
|
+
eventType?: EventTypeUnion;
|
|
7169
7154
|
salted?: number | boolean;
|
|
7170
7155
|
participantIds?: string[];
|
|
7171
7156
|
encounterValue?: number;
|
|
@@ -7174,9 +7159,10 @@ type GenerateDrawMaticRoundArgs = {
|
|
|
7174
7159
|
matchUpIds?: string[];
|
|
7175
7160
|
structure?: Structure;
|
|
7176
7161
|
structureId?: string;
|
|
7177
|
-
eventType?: EventTypeUnion;
|
|
7178
7162
|
scaleName?: string;
|
|
7163
|
+
isMock?: boolean;
|
|
7179
7164
|
drawId?: string;
|
|
7165
|
+
event: Event$1;
|
|
7180
7166
|
};
|
|
7181
7167
|
type DrawMaticRoundResult = {
|
|
7182
7168
|
participantIdPairings?: string[][];
|
|
@@ -7187,10 +7173,9 @@ type DrawMaticRoundResult = {
|
|
|
7187
7173
|
maxDelta?: number;
|
|
7188
7174
|
maxDiff?: number;
|
|
7189
7175
|
};
|
|
7190
|
-
declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, participantIds, drawDefinition, adHocRatings, structureId, salted, matchUpIds, eventType, structure, scaleName, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
|
|
7176
|
+
declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, participantIds, drawDefinition, adHocRatings, structureId, salted, matchUpIds, eventType, structure, scaleName, isMock, event, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
|
|
7191
7177
|
|
|
7192
7178
|
type DrawMaticArgs = {
|
|
7193
|
-
tournamentParticipants?: HydratedParticipant[];
|
|
7194
7179
|
adHocRatings?: {
|
|
7195
7180
|
[key: string]: number;
|
|
7196
7181
|
};
|
|
@@ -7198,6 +7183,7 @@ type DrawMaticArgs = {
|
|
|
7198
7183
|
drawDefinition?: DrawDefinition;
|
|
7199
7184
|
tournamentRecord: Tournament;
|
|
7200
7185
|
generateMatchUps?: boolean;
|
|
7186
|
+
eventType?: EventTypeUnion;
|
|
7201
7187
|
salted?: number | boolean;
|
|
7202
7188
|
participantIds?: string[];
|
|
7203
7189
|
encounterValue?: number;
|
|
@@ -7206,11 +7192,13 @@ type DrawMaticArgs = {
|
|
|
7206
7192
|
structure?: Structure;
|
|
7207
7193
|
matchUpIds?: string[];
|
|
7208
7194
|
structureId?: string;
|
|
7209
|
-
|
|
7210
|
-
event
|
|
7195
|
+
isMock?: boolean;
|
|
7196
|
+
event: Event$1;
|
|
7211
7197
|
scaleAccessor?: string;
|
|
7212
7198
|
scaleName?: string;
|
|
7213
7199
|
};
|
|
7200
|
+
declare function drawMatic({ restrictEntryStatus, adHocRatings, generateMatchUps, tournamentRecord, participantIds, encounterValue, sameTeamValue, drawDefinition, scaleAccessor, maxIterations, structureId, matchUpIds, scaleName, // custom rating name to seed dynamic ratings
|
|
7201
|
+
eventType, isMock, salted, event, }: DrawMaticArgs): ResultType & DrawMaticRoundResult;
|
|
7214
7202
|
|
|
7215
7203
|
type GenerateDrawDefinitionArgs = {
|
|
7216
7204
|
automated?: boolean | {
|
|
@@ -7310,8 +7298,10 @@ type GenerateAdHocMatchUpsArgs = {
|
|
|
7310
7298
|
roundNumber?: number;
|
|
7311
7299
|
structureId?: string;
|
|
7312
7300
|
newRound?: boolean;
|
|
7301
|
+
isMock?: boolean;
|
|
7302
|
+
event: Event$1;
|
|
7313
7303
|
};
|
|
7314
|
-
declare function generateAdHocMatchUps({ participantIdPairings, matchUpIds, drawDefinition, matchUpsCount, roundNumber, structureId, newRound, }: GenerateAdHocMatchUpsArgs): {
|
|
7304
|
+
declare function generateAdHocMatchUps({ participantIdPairings, matchUpIds, drawDefinition, matchUpsCount, roundNumber, structureId, newRound, isMock, event, }: GenerateAdHocMatchUpsArgs): {
|
|
7315
7305
|
matchUpsCount?: number;
|
|
7316
7306
|
matchUps?: MatchUp[];
|
|
7317
7307
|
error?: ErrorType;
|
|
@@ -8356,8 +8346,6 @@ declare function enableTieAutoCalc({ tournamentRecord, drawDefinition, matchUpId
|
|
|
8356
8346
|
event: any;
|
|
8357
8347
|
}): any;
|
|
8358
8348
|
|
|
8359
|
-
declare function drawMatic(params: any): any;
|
|
8360
|
-
|
|
8361
8349
|
declare function disableTieAutoCalc({ drawDefinition, matchUpId, event }: {
|
|
8362
8350
|
drawDefinition: any;
|
|
8363
8351
|
matchUpId: any;
|
|
@@ -9168,7 +9156,6 @@ declare const governors: {
|
|
|
9168
9156
|
getDrawData: typeof getDrawData;
|
|
9169
9157
|
getEventData: typeof getEventData;
|
|
9170
9158
|
getPublishState: typeof getPublishState;
|
|
9171
|
-
getTournamentInfo: typeof getTournamentInfo;
|
|
9172
9159
|
getVenueData: typeof getVenueData;
|
|
9173
9160
|
publishEvent: typeof publishEvent;
|
|
9174
9161
|
publishEventSeeding: typeof publishEventSeeding;
|
|
@@ -9270,6 +9257,7 @@ declare const governors: {
|
|
|
9270
9257
|
getTeamLineUp: typeof getTeamLineUp;
|
|
9271
9258
|
getTieFormat: typeof getTieFormat;
|
|
9272
9259
|
getTournamentIds: typeof getTournamentIds;
|
|
9260
|
+
getTournamentInfo: typeof getTournamentInfo;
|
|
9273
9261
|
getTournamentPenalties: typeof getTournamentPenalties;
|
|
9274
9262
|
getTournamentPersons: typeof getTournamentPersons;
|
|
9275
9263
|
getTournamentStructures: typeof getTournamentStructures;
|
|
@@ -9288,6 +9276,25 @@ declare const governors: {
|
|
|
9288
9276
|
validateLineUp: typeof validateLineUp;
|
|
9289
9277
|
validMatchUp: typeof validMatchUp;
|
|
9290
9278
|
validMatchUps: typeof validMatchUps;
|
|
9279
|
+
allPlayoffPositionsFilled: typeof allPlayoffPositionsFilled;
|
|
9280
|
+
getCategoryAgeDetails: typeof getCategoryAgeDetails;
|
|
9281
|
+
calculateWinCriteria: typeof calculateWinCriteria;
|
|
9282
|
+
compareTieFormats: typeof compareTieFormats;
|
|
9283
|
+
getMatchUpContextIds: typeof getMatchUpContextIds;
|
|
9284
|
+
getScaleValues: typeof getScaleValues;
|
|
9285
|
+
getSeedingThresholds: typeof getSeedingThresholds;
|
|
9286
|
+
getTimeItem: typeof getTimeItem;
|
|
9287
|
+
getValidGroupSizes: typeof getValidGroupSizes;
|
|
9288
|
+
isAdHoc: typeof isAdHoc;
|
|
9289
|
+
isCompletedStructure: typeof isCompletedStructure;
|
|
9290
|
+
roundRobinGroups: {
|
|
9291
|
+
getRoundRobinGroupMatchUps: typeof getRoundRobinGroupMatchUps;
|
|
9292
|
+
determineRoundNumber: typeof determineRoundNumber;
|
|
9293
|
+
drawPositionsHash: typeof drawPositionsHash;
|
|
9294
|
+
groupRounds: typeof groupRounds;
|
|
9295
|
+
};
|
|
9296
|
+
tieFormatGenderValidityCheck: typeof tieFormatGenderValidityCheck;
|
|
9297
|
+
validateCategory: typeof validateCategory;
|
|
9291
9298
|
};
|
|
9292
9299
|
reportGovernor: {
|
|
9293
9300
|
getStructureReports: typeof getStructureReports;
|
|
@@ -9412,14 +9419,14 @@ declare const governors: {
|
|
|
9412
9419
|
setTournamentStatus: typeof setTournamentStatus;
|
|
9413
9420
|
};
|
|
9414
9421
|
utilitiesGovernor: {
|
|
9422
|
+
visualizeScheduledMatchUps: typeof visualizeScheduledMatchUps;
|
|
9423
|
+
dehydrateMatchUps: typeof dehydrateMatchUps;
|
|
9424
|
+
structureSort: typeof structureSort;
|
|
9415
9425
|
allNumeric: typeof allNumeric;
|
|
9416
|
-
allPlayoffPositionsFilled: typeof allPlayoffPositionsFilled;
|
|
9417
9426
|
attributeFilter: typeof attributeFilter;
|
|
9418
|
-
calculateWinCriteria: typeof calculateWinCriteria;
|
|
9419
9427
|
chunkArray: typeof chunkArray;
|
|
9420
9428
|
chunkByNth: typeof chunkByNth;
|
|
9421
9429
|
chunkSizeProfile: typeof chunkSizeProfile;
|
|
9422
|
-
compareTieFormats: typeof compareTieFormats;
|
|
9423
9430
|
constantToString: typeof constantToString;
|
|
9424
9431
|
countValues: typeof countValues;
|
|
9425
9432
|
createMap: typeof createMap;
|
|
@@ -9451,24 +9458,15 @@ declare const governors: {
|
|
|
9451
9458
|
dateValidation: RegExp;
|
|
9452
9459
|
};
|
|
9453
9460
|
definedAttributes: typeof definedAttributes;
|
|
9454
|
-
dehydrateMatchUps: typeof dehydrateMatchUps;
|
|
9455
9461
|
extractAttributes: (accessor: any) => (element: any) => any;
|
|
9456
9462
|
flattenJSON: typeof flattenJSON;
|
|
9457
9463
|
generateHashCode: typeof generateHashCode;
|
|
9458
9464
|
generateRange: typeof generateRange;
|
|
9459
9465
|
generateTimeCode: typeof generateTimeCode;
|
|
9460
|
-
getCategoryAgeDetails: typeof getCategoryAgeDetails;
|
|
9461
|
-
getMatchUpContextIds: typeof getMatchUpContextIds;
|
|
9462
|
-
getScaleValues: typeof getScaleValues;
|
|
9463
|
-
getSeedingThresholds: typeof getSeedingThresholds;
|
|
9464
|
-
getTimeItem: typeof getTimeItem;
|
|
9465
|
-
getValidGroupSizes: typeof getValidGroupSizes;
|
|
9466
9466
|
groupValues: typeof groupValues;
|
|
9467
9467
|
hasAttributeValues: (a: any) => (o: any) => boolean;
|
|
9468
9468
|
instanceCount: typeof instanceCount;
|
|
9469
9469
|
intersection: typeof intersection;
|
|
9470
|
-
isAdHoc: typeof isAdHoc;
|
|
9471
|
-
isCompletedStructure: typeof isCompletedStructure;
|
|
9472
9470
|
isConvertableInteger: typeof isConvertableInteger;
|
|
9473
9471
|
isNumeric: typeof isNumeric;
|
|
9474
9472
|
isOdd: typeof isOdd;
|
|
@@ -9485,22 +9483,12 @@ declare const governors: {
|
|
|
9485
9483
|
overlap: typeof overlap;
|
|
9486
9484
|
randomMember: typeof randomMember;
|
|
9487
9485
|
randomPop: typeof randomPop;
|
|
9488
|
-
roundRobinGroups: {
|
|
9489
|
-
getRoundRobinGroupMatchUps: typeof getRoundRobinGroupMatchUps;
|
|
9490
|
-
determineRoundNumber: typeof determineRoundNumber;
|
|
9491
|
-
drawPositionsHash: typeof drawPositionsHash;
|
|
9492
|
-
groupRounds: typeof groupRounds;
|
|
9493
|
-
};
|
|
9494
9486
|
shuffleArray: typeof shuffleArray;
|
|
9495
|
-
structureSort: typeof structureSort;
|
|
9496
9487
|
subSort: typeof subSort;
|
|
9497
|
-
tieFormatGenderValidityCheck: typeof tieFormatGenderValidityCheck;
|
|
9498
9488
|
undefinedToNull: typeof undefinedToNull;
|
|
9499
9489
|
unique: typeof unique;
|
|
9500
9490
|
UUID: typeof UUID;
|
|
9501
9491
|
UUIDS: typeof UUIDS;
|
|
9502
|
-
validateCategory: typeof validateCategory;
|
|
9503
|
-
visualizeScheduledMatchUps: typeof visualizeScheduledMatchUps;
|
|
9504
9492
|
};
|
|
9505
9493
|
venueGovernor: {
|
|
9506
9494
|
addCourt: typeof addCourt;
|
|
@@ -9528,14 +9516,14 @@ declare const matchUpFormatCode: {
|
|
|
9528
9516
|
};
|
|
9529
9517
|
|
|
9530
9518
|
declare const utilities: {
|
|
9519
|
+
visualizeScheduledMatchUps: typeof visualizeScheduledMatchUps;
|
|
9520
|
+
dehydrateMatchUps: typeof dehydrateMatchUps;
|
|
9521
|
+
structureSort: typeof structureSort;
|
|
9531
9522
|
allNumeric: typeof allNumeric;
|
|
9532
|
-
allPlayoffPositionsFilled: typeof allPlayoffPositionsFilled;
|
|
9533
9523
|
attributeFilter: typeof attributeFilter;
|
|
9534
|
-
calculateWinCriteria: typeof calculateWinCriteria;
|
|
9535
9524
|
chunkArray: typeof chunkArray;
|
|
9536
9525
|
chunkByNth: typeof chunkByNth;
|
|
9537
9526
|
chunkSizeProfile: typeof chunkSizeProfile;
|
|
9538
|
-
compareTieFormats: typeof compareTieFormats;
|
|
9539
9527
|
constantToString: typeof constantToString;
|
|
9540
9528
|
countValues: typeof countValues;
|
|
9541
9529
|
createMap: typeof createMap;
|
|
@@ -9567,24 +9555,15 @@ declare const utilities: {
|
|
|
9567
9555
|
dateValidation: RegExp;
|
|
9568
9556
|
};
|
|
9569
9557
|
definedAttributes: typeof definedAttributes;
|
|
9570
|
-
dehydrateMatchUps: typeof dehydrateMatchUps;
|
|
9571
9558
|
extractAttributes: (accessor: any) => (element: any) => any;
|
|
9572
9559
|
flattenJSON: typeof flattenJSON;
|
|
9573
9560
|
generateHashCode: typeof generateHashCode;
|
|
9574
9561
|
generateRange: typeof generateRange;
|
|
9575
9562
|
generateTimeCode: typeof generateTimeCode;
|
|
9576
|
-
getCategoryAgeDetails: typeof getCategoryAgeDetails;
|
|
9577
|
-
getMatchUpContextIds: typeof getMatchUpContextIds;
|
|
9578
|
-
getScaleValues: typeof getScaleValues;
|
|
9579
|
-
getSeedingThresholds: typeof getSeedingThresholds;
|
|
9580
|
-
getTimeItem: typeof getTimeItem;
|
|
9581
|
-
getValidGroupSizes: typeof getValidGroupSizes;
|
|
9582
9563
|
groupValues: typeof groupValues;
|
|
9583
9564
|
hasAttributeValues: (a: any) => (o: any) => boolean;
|
|
9584
9565
|
instanceCount: typeof instanceCount;
|
|
9585
9566
|
intersection: typeof intersection;
|
|
9586
|
-
isAdHoc: typeof isAdHoc;
|
|
9587
|
-
isCompletedStructure: typeof isCompletedStructure;
|
|
9588
9567
|
isConvertableInteger: typeof isConvertableInteger;
|
|
9589
9568
|
isNumeric: typeof isNumeric;
|
|
9590
9569
|
isOdd: typeof isOdd;
|
|
@@ -9601,66 +9580,12 @@ declare const utilities: {
|
|
|
9601
9580
|
overlap: typeof overlap;
|
|
9602
9581
|
randomMember: typeof randomMember;
|
|
9603
9582
|
randomPop: typeof randomPop;
|
|
9604
|
-
roundRobinGroups: {
|
|
9605
|
-
getRoundRobinGroupMatchUps: typeof getRoundRobinGroupMatchUps;
|
|
9606
|
-
determineRoundNumber: typeof determineRoundNumber;
|
|
9607
|
-
drawPositionsHash: typeof drawPositionsHash;
|
|
9608
|
-
groupRounds: typeof groupRounds;
|
|
9609
|
-
};
|
|
9610
9583
|
shuffleArray: typeof shuffleArray;
|
|
9611
|
-
structureSort: typeof structureSort;
|
|
9612
9584
|
subSort: typeof subSort;
|
|
9613
|
-
tieFormatGenderValidityCheck: typeof tieFormatGenderValidityCheck;
|
|
9614
9585
|
undefinedToNull: typeof undefinedToNull;
|
|
9615
9586
|
unique: typeof unique;
|
|
9616
9587
|
UUID: typeof UUID;
|
|
9617
9588
|
UUIDS: typeof UUIDS;
|
|
9618
|
-
validateCategory: typeof validateCategory;
|
|
9619
|
-
visualizeScheduledMatchUps: typeof visualizeScheduledMatchUps;
|
|
9620
|
-
};
|
|
9621
|
-
|
|
9622
|
-
declare const scoreGovernor: {
|
|
9623
|
-
analyzeSet: typeof analyzeSet;
|
|
9624
|
-
checkScoreHasValue: typeof checkScoreHasValue;
|
|
9625
|
-
checkSetIsComplete: typeof checkSetIsComplete;
|
|
9626
|
-
generateScoreString: typeof generateScoreString;
|
|
9627
|
-
generateTieMatchUpScore: typeof generateTieMatchUpScore;
|
|
9628
|
-
getSetComplement: (params: {
|
|
9629
|
-
lowValue?: string | number | undefined;
|
|
9630
|
-
tiebreakAt?: number | undefined;
|
|
9631
|
-
isSide1?: boolean | undefined;
|
|
9632
|
-
NoAD?: boolean | undefined;
|
|
9633
|
-
setTo: number;
|
|
9634
|
-
}) => false | number[];
|
|
9635
|
-
getTiebreakComplement: (params: {
|
|
9636
|
-
lowValue?: string | number | undefined;
|
|
9637
|
-
tiebreakNoAd?: boolean | undefined;
|
|
9638
|
-
tiebreakTo: number;
|
|
9639
|
-
isSide1?: boolean | undefined;
|
|
9640
|
-
}) => false | number[];
|
|
9641
|
-
isValidMatchUpFormat: typeof isValidMatchUpFormat;
|
|
9642
|
-
keyValueScore: typeof keyValueScore;
|
|
9643
|
-
parseMatchUpFormat: typeof parse;
|
|
9644
|
-
reverseScore: typeof reverseScore;
|
|
9645
|
-
stringifyMatchUpFormat: typeof stringify;
|
|
9646
|
-
tidyScore: typeof tidyScore;
|
|
9647
|
-
updateTieMatchUpScore: typeof updateTieMatchUpScore;
|
|
9648
|
-
validateScore: typeof validateScore;
|
|
9649
|
-
validateTieFormat: typeof validateTieFormat;
|
|
9650
|
-
calculateHistoryScore: typeof calculateHistoryScore;
|
|
9651
|
-
setServingSide: typeof setServingSide;
|
|
9652
|
-
clearHistory: typeof clearHistory;
|
|
9653
|
-
addPoint: typeof addPoint;
|
|
9654
|
-
addGame: typeof addGame;
|
|
9655
|
-
addShot: typeof addShot;
|
|
9656
|
-
addSet: typeof addSet;
|
|
9657
|
-
redo: typeof redo;
|
|
9658
|
-
undo: typeof undo;
|
|
9659
|
-
umo: {
|
|
9660
|
-
scoreboard: () => void;
|
|
9661
|
-
addPoints: () => void;
|
|
9662
|
-
addPoint: () => void;
|
|
9663
|
-
};
|
|
9664
9589
|
};
|
|
9665
9590
|
|
|
9666
9591
|
type Notice = {
|
|
@@ -12045,4 +11970,4 @@ declare const venueConstants: {
|
|
|
12045
11970
|
OUTDOOR: string;
|
|
12046
11971
|
};
|
|
12047
11972
|
|
|
12048
|
-
export { askEngine, asyncEngine, competitionEngine, drawDefinitionConstants, entryStatusConstants, errorConditionConstants, eventConstants, factoryConstants, factoryTypes, fixtures, flightConstants, forge, genderConstants, globalState, governors, keyValueConstants, matchUpActionConstants, matchUpEngine, matchUpFormatCode, matchUpStatusConstants, matchUpTypes, mocksEngine, participantConstants, participantRoles, participantTypes, penaltyConstants, policyConstants, positionActionConstants, resultConstants, scaleConstants, scaleEngine,
|
|
11973
|
+
export { askEngine, asyncEngine, competitionEngine, drawDefinitionConstants, entryStatusConstants, errorConditionConstants, eventConstants, factoryConstants, factoryTypes, fixtures, flightConstants, forge, genderConstants, globalState, governors, keyValueConstants, matchUpActionConstants, matchUpEngine, matchUpFormatCode, matchUpStatusConstants, matchUpTypes, mocksEngine, participantConstants, participantRoles, participantTypes, penaltyConstants, policyConstants, positionActionConstants, resultConstants, scaleConstants, scaleEngine, surfaceConstants, engine as syncEngine, timeItemConstants, tournamentEngine, utilities, venueConstants, factoryVersion as version };
|