tods-competition-factory 2.0.0-beta.0 → 2.0.0-beta.2

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.
@@ -2137,12 +2137,6 @@ type FactoryEngine = {
2137
2137
  type TournamentRecords = {
2138
2138
  [key: string]: Tournament;
2139
2139
  };
2140
- type Directives = {
2141
- params?: {
2142
- [key: string]: any;
2143
- };
2144
- method: string;
2145
- }[];
2146
2140
  type CheckInOutParticipantArgs = {
2147
2141
  tournamentRecord: Tournament;
2148
2142
  drawDefinition: DrawDefinition;
@@ -2154,10 +2148,6 @@ type CheckInOutParticipantArgs = {
2154
2148
  type ScheduleTimesResult = {
2155
2149
  scheduleTime: string;
2156
2150
  };
2157
- type SeedBlock = {
2158
- drawPositions: number[];
2159
- seedNumbers: number[];
2160
- };
2161
2151
  type SeedingProfile = {
2162
2152
  groupSeedingThreshold?: number;
2163
2153
  positioning?: string;
@@ -2438,9 +2428,6 @@ type GroupsMatchUpsResult = {
2438
2428
  success?: boolean;
2439
2429
  error?: ErrorType;
2440
2430
  };
2441
- type ExitProfiles = {
2442
- [key: string]: string[];
2443
- };
2444
2431
  type MinutesMapping = {
2445
2432
  categoryNames: string[];
2446
2433
  minutes: any;
@@ -2461,11 +2448,6 @@ type ScheduleTiming = {
2461
2448
  };
2462
2449
  }[];
2463
2450
  };
2464
- type Substitution = {
2465
- previousParticipantId: string;
2466
- substitutionOrder: number;
2467
- participantId: string;
2468
- };
2469
2451
  type PlayoffAttributes = {
2470
2452
  [key: string | number]: {
2471
2453
  name: string;
@@ -2473,21 +2455,6 @@ type PlayoffAttributes = {
2473
2455
  };
2474
2456
  };
2475
2457
  type LineUp = TeamCompetitor[];
2476
- type StructureProfile = {
2477
- distanceFromMain?: number;
2478
- drawSources: string[];
2479
- drawTargets: string[];
2480
- progeny?: string[];
2481
- sources: string[];
2482
- targets: string[];
2483
- rootStage?: string;
2484
- stage?: string;
2485
- };
2486
- type IdCollections = {
2487
- groupParticipants: string[];
2488
- pairParticipants: string[];
2489
- teamParticipants: string[];
2490
- };
2491
2458
  type Request$1 = {
2492
2459
  requestType: string;
2493
2460
  requestId: string;
@@ -2507,50 +2474,6 @@ type AddScheduleAttributeArgs = {
2507
2474
  event?: Event$1;
2508
2475
  };
2509
2476
 
2510
- type factoryTypes_AddScheduleAttributeArgs = AddScheduleAttributeArgs;
2511
- type factoryTypes_AddressProps = AddressProps;
2512
- type factoryTypes_CheckInOutParticipantArgs = CheckInOutParticipantArgs;
2513
- type factoryTypes_ContextContent = ContextContent;
2514
- type factoryTypes_ContextProfile = ContextProfile;
2515
- type factoryTypes_Directives = Directives;
2516
- type factoryTypes_ExitProfiles = ExitProfiles;
2517
- type factoryTypes_FactoryEngine = FactoryEngine;
2518
- type factoryTypes_Flight = Flight;
2519
- type factoryTypes_FlightProfile = FlightProfile;
2520
- type factoryTypes_GetMatchUpsArgs = GetMatchUpsArgs;
2521
- type factoryTypes_GroupInfo = GroupInfo;
2522
- type factoryTypes_GroupsMatchUpsResult = GroupsMatchUpsResult;
2523
- type factoryTypes_IdCollections = IdCollections;
2524
- type factoryTypes_LineUp = LineUp;
2525
- type factoryTypes_MappedParticipant = MappedParticipant;
2526
- type factoryTypes_ParticipantFilters = ParticipantFilters;
2527
- type factoryTypes_ParticipantMap = ParticipantMap;
2528
- type factoryTypes_ParticipantsProfile = ParticipantsProfile;
2529
- type factoryTypes_PersonData = PersonData;
2530
- type factoryTypes_PersonRequests = PersonRequests;
2531
- type factoryTypes_PlayoffAttributes = PlayoffAttributes;
2532
- type factoryTypes_PolicyDefinitions = PolicyDefinitions;
2533
- type factoryTypes_QueueMethod = QueueMethod;
2534
- type factoryTypes_RoundProfile = RoundProfile;
2535
- type factoryTypes_ScaleAttributes = ScaleAttributes;
2536
- type factoryTypes_ScaleItem = ScaleItem;
2537
- type factoryTypes_ScheduleAnalysis = ScheduleAnalysis;
2538
- type factoryTypes_ScheduleConflict = ScheduleConflict;
2539
- type factoryTypes_ScheduleTimesResult = ScheduleTimesResult;
2540
- type factoryTypes_ScheduleTiming = ScheduleTiming;
2541
- type factoryTypes_ScheduleVisibilityFilters = ScheduleVisibilityFilters;
2542
- type factoryTypes_SeedBlock = SeedBlock;
2543
- type factoryTypes_SeedingProfile = SeedingProfile;
2544
- type factoryTypes_StructureParticipation = StructureParticipation;
2545
- type factoryTypes_StructureProfile = StructureProfile;
2546
- type factoryTypes_StructureSortConfig = StructureSortConfig;
2547
- type factoryTypes_Substitution = Substitution;
2548
- type factoryTypes_TeamKey = TeamKey;
2549
- type factoryTypes_TournamentRecords = TournamentRecords;
2550
- declare namespace factoryTypes {
2551
- export type { factoryTypes_AddScheduleAttributeArgs as AddScheduleAttributeArgs, factoryTypes_AddressProps as AddressProps, factoryTypes_CheckInOutParticipantArgs as CheckInOutParticipantArgs, factoryTypes_ContextContent as ContextContent, factoryTypes_ContextProfile as ContextProfile, factoryTypes_Directives as Directives, factoryTypes_ExitProfiles as ExitProfiles, factoryTypes_FactoryEngine as FactoryEngine, factoryTypes_Flight as Flight, factoryTypes_FlightProfile as FlightProfile, factoryTypes_GetMatchUpsArgs as GetMatchUpsArgs, factoryTypes_GroupInfo as GroupInfo, factoryTypes_GroupsMatchUpsResult as GroupsMatchUpsResult, factoryTypes_IdCollections as IdCollections, factoryTypes_LineUp as LineUp, factoryTypes_MappedParticipant as MappedParticipant, factoryTypes_ParticipantFilters as ParticipantFilters, factoryTypes_ParticipantMap as ParticipantMap, factoryTypes_ParticipantsProfile as ParticipantsProfile, factoryTypes_PersonData as PersonData, factoryTypes_PersonRequests as PersonRequests, factoryTypes_PlayoffAttributes as PlayoffAttributes, factoryTypes_PolicyDefinitions as PolicyDefinitions, factoryTypes_QueueMethod as QueueMethod, factoryTypes_RoundProfile as RoundProfile, factoryTypes_ScaleAttributes as ScaleAttributes, factoryTypes_ScaleItem as ScaleItem, factoryTypes_ScheduleAnalysis as ScheduleAnalysis, factoryTypes_ScheduleConflict as ScheduleConflict, factoryTypes_ScheduleTimesResult as ScheduleTimesResult, factoryTypes_ScheduleTiming as ScheduleTiming, factoryTypes_ScheduleVisibilityFilters as ScheduleVisibilityFilters, factoryTypes_SeedBlock as SeedBlock, factoryTypes_SeedingProfile as SeedingProfile, factoryTypes_StructureParticipation as StructureParticipation, factoryTypes_StructureProfile as StructureProfile, factoryTypes_StructureSortConfig as StructureSortConfig, factoryTypes_Substitution as Substitution, factoryTypes_TeamKey as TeamKey, factoryTypes_TournamentRecords as TournamentRecords };
2552
- }
2553
-
2554
2477
  type ModifyVenueArgs = {
2555
2478
  tournamentRecords?: TournamentRecords;
2556
2479
  tournamentRecord?: Tournament;
@@ -2802,15 +2725,6 @@ type AddCourtsArgs = {
2802
2725
  dates: string[];
2803
2726
  };
2804
2727
 
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
2728
  /**
2815
2729
  * generate a given number of UUIDs
2816
2730
  *
@@ -2819,31 +2733,6 @@ declare function validateCategory({ category }: {
2819
2733
  declare function UUIDS(count?: number): string[];
2820
2734
  declare function UUID(): string;
2821
2735
 
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
2736
  declare function numericSort(a: any, b: any): number;
2848
2737
 
2849
2738
  /**
@@ -2870,76 +2759,6 @@ declare function isOdd(num: any): boolean | undefined;
2870
2759
  declare function nextPowerOf2(n?: any): any;
2871
2760
  declare function isConvertableInteger(n: any): boolean;
2872
2761
 
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
2762
  declare function generateTimeCode(index?: number): string;
2944
2763
 
2945
2764
  /**
@@ -2971,13 +2790,6 @@ declare function JSON2CSV(arrayOfJSON?: any, config?: any): string | any[] | {
2971
2790
  };
2972
2791
  declare function flattenJSON(obj: any, keyJoiner?: string, path?: string[]): any;
2973
2792
 
2974
- declare function dehydrateMatchUps({ tournamentRecord }: {
2975
- tournamentRecord: any;
2976
- }): {
2977
- success?: boolean;
2978
- error?: ErrorType;
2979
- };
2980
-
2981
2793
  declare function definedAttributes(obj: object, ignoreFalse?: boolean, ignoreEmptyArrays?: boolean, shallow?: boolean): any;
2982
2794
 
2983
2795
  declare function getIsoDateString(schedule: any): any;
@@ -3007,60 +2819,8 @@ declare function generateHashCode(o: any): string | undefined;
3007
2819
 
3008
2820
  declare function constantToString(str: any): any;
3009
2821
 
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
2822
  declare function attributeFilter(params?: any): any;
3046
2823
 
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
2824
  declare function unique(arr: any): any;
3065
2825
  declare function noNulls(arr: any): any;
3066
2826
  declare function shuffleArray(arr: any): any;
@@ -3114,6 +2874,20 @@ declare function noNumeric(arr: any): any;
3114
2874
  */
3115
2875
  declare function chunkByNth(arr: any[], chunksCount: number, shuttle?: boolean): any;
3116
2876
 
2877
+ declare function structureSort(a: Structure | undefined, b: Structure | undefined, config?: any): number;
2878
+
2879
+ declare function dehydrateMatchUps({ tournamentRecord }: {
2880
+ tournamentRecord: any;
2881
+ }): {
2882
+ success?: boolean;
2883
+ error?: ErrorType;
2884
+ };
2885
+
2886
+ declare function visualizeScheduledMatchUps({ scheduledMatchUps, showGlobalLog, }: {
2887
+ scheduledMatchUps: any;
2888
+ showGlobalLog: any;
2889
+ }): void;
2890
+
3117
2891
  declare function setTournamentStatus({ tournamentRecord, status }: {
3118
2892
  tournamentRecord: any;
3119
2893
  status: any;
@@ -3658,25 +3432,10 @@ declare function analyzeSet(params: any): {
3658
3432
  [key: string]: any;
3659
3433
  };
3660
3434
 
3661
- declare function validateSchedulingProfile({ tournamentRecords, schedulingProfile, }: {
3435
+ declare function validateSchedulingProfile({ tournamentRecords, schedulingProfile }: {
3662
3436
  tournamentRecords: any;
3663
3437
  schedulingProfile: any;
3664
- }): {
3665
- valid: boolean;
3666
- error?: undefined;
3667
- info?: undefined;
3668
- } | {
3669
- valid: boolean;
3670
- error: {
3671
- message: string;
3672
- code: string;
3673
- };
3674
- info?: undefined;
3675
- } | {
3676
- valid: boolean;
3677
- error: any;
3678
- info: any;
3679
- };
3438
+ }): any;
3680
3439
 
3681
3440
  type SetMatchUpDailyLimitsArgs = {
3682
3441
  tournamentRecords?: TournamentRecords;
@@ -3951,25 +3710,7 @@ type SetSchedulingProfileArgs = {
3951
3710
  tournamentRecord?: Tournament;
3952
3711
  schedulingProfile?: any[];
3953
3712
  };
3954
- declare function setSchedulingProfile({ tournamentRecords, tournamentRecord, schedulingProfile, }: SetSchedulingProfileArgs): {
3955
- success?: boolean | undefined;
3956
- error?: ErrorType | undefined;
3957
- } | {
3958
- valid: boolean;
3959
- error?: undefined;
3960
- info?: undefined;
3961
- } | {
3962
- valid: boolean;
3963
- error: {
3964
- message: string;
3965
- code: string;
3966
- };
3967
- info?: undefined;
3968
- } | {
3969
- valid: boolean;
3970
- error: any;
3971
- info: any;
3972
- };
3713
+ declare function setSchedulingProfile({ tournamentRecords, tournamentRecord, schedulingProfile, }: SetSchedulingProfileArgs): any;
3973
3714
 
3974
3715
  type GetProfileRoundsArgs = {
3975
3716
  tournamentRecords?: {
@@ -4328,30 +4069,7 @@ declare function addSchedulingProfileRound({ tournamentRecords, scheduleDate, ve
4328
4069
  scheduleDate: any;
4329
4070
  venueId: any;
4330
4071
  round: any;
4331
- }): {
4332
- success?: boolean | undefined;
4333
- error?: ErrorType | undefined;
4334
- } | {
4335
- valid: boolean;
4336
- error?: undefined;
4337
- info?: undefined;
4338
- } | {
4339
- valid: boolean;
4340
- error: {
4341
- message: string;
4342
- code: string;
4343
- };
4344
- info?: undefined;
4345
- } | {
4346
- valid: boolean;
4347
- error: any;
4348
- info: any;
4349
- } | {
4350
- error: {
4351
- message: string;
4352
- code: string;
4353
- };
4354
- };
4072
+ }): any;
4355
4073
 
4356
4074
  type AddPersonRequestsArgs = {
4357
4075
  tournamentRecords: TournamentRecords;
@@ -4617,6 +4335,149 @@ declare function getStructureReports({ firstFlightOnly, extensionProfiles, tourn
4617
4335
  error?: undefined;
4618
4336
  };
4619
4337
 
4338
+ declare function validateCategory({ category }: {
4339
+ category: any;
4340
+ }): any;
4341
+
4342
+ type GenderValidityCheckArgs = {
4343
+ referenceGender?: GenderUnion;
4344
+ matchUpType?: string;
4345
+ gender?: GenderUnion;
4346
+ };
4347
+ declare function tieFormatGenderValidityCheck(params: GenderValidityCheckArgs): ResultType;
4348
+
4349
+ declare function getRoundRobinGroupMatchUps({ drawPositions }: {
4350
+ drawPositions: any;
4351
+ }): {
4352
+ groupMatchUps: never[];
4353
+ uniqueMatchUpGroupings: any;
4354
+ };
4355
+ declare function drawPositionsHash(drawPositions: any): string;
4356
+ declare function groupRounds({ groupSize, drawPositionOffset }: {
4357
+ groupSize: any;
4358
+ drawPositionOffset: any;
4359
+ }): any[];
4360
+ declare function determineRoundNumber({ rounds, hash }: {
4361
+ rounds: any;
4362
+ hash: any;
4363
+ }): any;
4364
+
4365
+ type IsAdHocArgs = {
4366
+ drawDefinition?: DrawDefinition;
4367
+ structure?: any;
4368
+ };
4369
+ declare function isAdHoc({ drawDefinition, structure }: IsAdHocArgs): boolean;
4370
+
4371
+ type GetValidGroupSizesArgs = {
4372
+ groupSizeLimit?: number;
4373
+ drawSize: number;
4374
+ };
4375
+ declare function getValidGroupSizes({ drawSize, groupSizeLimit, }: GetValidGroupSizesArgs): ResultType & {
4376
+ validGroupSizes?: number[];
4377
+ };
4378
+
4379
+ type GetSeedingThresholdsArgs = {
4380
+ roundRobinGroupsCount?: number;
4381
+ participantsCount: number;
4382
+ };
4383
+ declare function getSeedingThresholds({ roundRobinGroupsCount, participantsCount, }: GetSeedingThresholdsArgs): ResultType & {
4384
+ seedingThresholds?: any;
4385
+ success?: boolean;
4386
+ };
4387
+
4388
+ type ScaleType = {
4389
+ scaleName: string;
4390
+ scaleDate: string;
4391
+ scaleValue: any;
4392
+ };
4393
+ type ScalesType = {
4394
+ [SINGLES_EVENT]?: ScaleType;
4395
+ [DOUBLES_EVENT]?: ScaleType;
4396
+ [TEAM_EVENT]?: ScaleType;
4397
+ };
4398
+ declare function getScaleValues(params: any): ResultType & {
4399
+ seedings?: ScalesType;
4400
+ rankings?: ScalesType;
4401
+ ratings?: ScalesType;
4402
+ };
4403
+
4404
+ declare function getMatchUpContextIds({ matchUps, matchUpId }: {
4405
+ matchUps: any;
4406
+ matchUpId: any;
4407
+ }): {
4408
+ error: {
4409
+ message: string;
4410
+ code: string;
4411
+ };
4412
+ matchUpId?: undefined;
4413
+ drawId?: undefined;
4414
+ eventId?: undefined;
4415
+ structureId?: undefined;
4416
+ tournamentId?: undefined;
4417
+ } | {
4418
+ matchUpId: any;
4419
+ drawId: any;
4420
+ eventId: any;
4421
+ structureId: any;
4422
+ tournamentId: any;
4423
+ error?: undefined;
4424
+ };
4425
+
4426
+ type CompareTieFormatsArgs = {
4427
+ considerations?: any;
4428
+ descendant: TieFormat;
4429
+ ancestor: TieFormat;
4430
+ };
4431
+ declare function compareTieFormats({ considerations, descendant, ancestor, }: CompareTieFormatsArgs): {
4432
+ different: any;
4433
+ invalid: 0 | any[];
4434
+ success: boolean;
4435
+ matchUpFormatDifferences: any;
4436
+ matchUpCountDifference: number;
4437
+ descendantDifferences: any;
4438
+ ancestorDifferences: any;
4439
+ orderDifference: boolean;
4440
+ valueDifference: number;
4441
+ nameDifference: boolean;
4442
+ descendantDesc: any;
4443
+ ancestorDesc: any;
4444
+ };
4445
+
4446
+ type CalculateWinCriteriaArgs = {
4447
+ collectionGroups?: {
4448
+ groupValue?: number;
4449
+ groupNumber?: number;
4450
+ }[];
4451
+ collectionDefinitions?: CollectionDefinition[];
4452
+ };
4453
+ declare function calculateWinCriteria({ collectionDefinitions, collectionGroups, }: CalculateWinCriteriaArgs): ResultType & {
4454
+ aggregateValue?: boolean;
4455
+ valueGoal?: number;
4456
+ };
4457
+
4458
+ type ParseArgs = {
4459
+ consideredDate?: string;
4460
+ category?: Category;
4461
+ };
4462
+ declare function getCategoryAgeDetails(params: ParseArgs): any;
4463
+
4464
+ type StructureActionsArgs = {
4465
+ drawDefinition: DrawDefinition;
4466
+ structureId: string;
4467
+ };
4468
+ type StructureQueryArgs = {
4469
+ drawDefinition: DrawDefinition;
4470
+ structure?: Structure;
4471
+ structureId?: string;
4472
+ };
4473
+ declare function isCompletedStructure(params: StructureQueryArgs): boolean;
4474
+ declare function allPlayoffPositionsFilled(params: StructureActionsArgs): boolean | {
4475
+ error: {
4476
+ message: string;
4477
+ code: string;
4478
+ };
4479
+ };
4480
+
4620
4481
  declare function validMatchUp(matchUp: any): boolean;
4621
4482
  declare function validMatchUps(matchUps: any): boolean;
4622
4483
 
@@ -5329,15 +5190,15 @@ type GetMatchUpScheduleDetailsArgs = {
5329
5190
  scheduleVisibilityFilters?: ScheduleVisibilityFilters;
5330
5191
  scheduleTiming?: ScheduleTiming;
5331
5192
  tournamentRecord?: Tournament;
5193
+ matchUpType?: EventTypeUnion;
5332
5194
  afterRecoveryTimes?: boolean;
5333
5195
  usePublishState?: boolean;
5334
5196
  matchUp: HydratedMatchUp;
5335
5197
  matchUpFormat?: string;
5336
- matchUpType?: EventTypeUnion;
5337
5198
  publishStatus?: any;
5338
5199
  event?: Event$1;
5339
5200
  };
5340
- declare function getMatchUpScheduleDetails({ scheduleVisibilityFilters, afterRecoveryTimes, tournamentRecord, usePublishState, scheduleTiming, matchUpFormat, publishStatus, matchUpType, matchUp, event, }: GetMatchUpScheduleDetailsArgs): {
5201
+ declare function getMatchUpScheduleDetails(params: GetMatchUpScheduleDetailsArgs): {
5341
5202
  error: {
5342
5203
  message: string;
5343
5204
  code: string;
@@ -6112,7 +5973,27 @@ declare function analyzeTournament({ tournamentRecord }: {
6112
5973
  error?: undefined;
6113
5974
  };
6114
5975
 
6115
- declare function analyzeMatchUp(params?: any): any;
5976
+ declare function analyzeMatchUp(params?: any): ResultType & {
5977
+ matchUpScoringFormat?: any;
5978
+ validMatchUpOutcome?: boolean;
5979
+ calculatedWinningSide?: number;
5980
+ validMatchUpWinningSide?: boolean;
5981
+ completedSetsHaveValidOutcomes?: boolean;
5982
+ isLastSetWithValues?: boolean;
5983
+ completedSetsCount?: number;
5984
+ isCompletedMatchUp?: boolean;
5985
+ isValidSideNumber?: boolean;
5986
+ hasExistingValue?: boolean;
5987
+ existingValue?: number;
5988
+ expectTimedSet?: boolean;
5989
+ isExistingSet?: boolean;
5990
+ isActiveSet?: boolean;
5991
+ isCompletedSet?: boolean;
5992
+ sideGameScores?: number[];
5993
+ sidePointScores?: number[];
5994
+ sideTiebreakScores?: number[];
5995
+ winningSide?: number;
5996
+ };
6116
5997
 
6117
5998
  declare function analyzeDraws({ tournamentRecord }: {
6118
5999
  tournamentRecord: any;
@@ -6789,10 +6670,10 @@ declare function addPenalty(params: AddPenaltyArgs): ResultType & {
6789
6670
  type AddParticipantsType = {
6790
6671
  allowDuplicateParticipantIdPairs?: boolean;
6791
6672
  returnParticipants?: boolean;
6792
- participants: Participant[];
6673
+ participants?: Participant[];
6793
6674
  tournamentRecord: Tournament;
6794
6675
  };
6795
- declare function addParticipants({ allowDuplicateParticipantIdPairs, returnParticipants, participants, tournamentRecord, }: AddParticipantsType): any;
6676
+ declare function addParticipants({ allowDuplicateParticipantIdPairs, returnParticipants, tournamentRecord, participants, }: AddParticipantsType): any;
6796
6677
 
6797
6678
  type AddParticipantType = {
6798
6679
  allowDuplicateParticipantIdPairs?: boolean;
@@ -6965,7 +6846,9 @@ declare function parse(matchUpFormatCode: string): ParsedFormat | undefined;
6965
6846
 
6966
6847
  declare function stringify(matchUpFormatObject: any, preserveRedundant?: boolean): string | undefined;
6967
6848
 
6968
- declare function isValidMatchUpFormat(matchUpFormat: string): boolean;
6849
+ declare function isValidMatchUpFormat({ matchUpFormat, }: {
6850
+ matchUpFormat: string;
6851
+ }): boolean;
6969
6852
 
6970
6853
  type GenerateVoluntaryConsolationArgs = {
6971
6854
  playoffAttributes?: PlayoffAttributes;
@@ -7046,28 +6929,11 @@ type GenerateLineUpsArgs = {
7046
6929
  attach?: boolean;
7047
6930
  event: Event$1;
7048
6931
  };
7049
- declare function generateLineUps(params: GenerateLineUpsArgs): {
7050
- error: {
7051
- message: string;
7052
- code: string;
7053
- };
7054
- context?: undefined;
7055
- } | {
7056
- error: {
7057
- message: string;
7058
- code: string;
7059
- };
7060
- context: {
7061
- scaleAccessor: any;
7062
- };
7063
- } | {
7064
- lineUps: {
6932
+ declare function generateLineUps(params: GenerateLineUpsArgs): ResultType & {
6933
+ lineUps?: {
7065
6934
  [key: string]: LineUp;
7066
6935
  };
7067
- participantsToAdd: any[];
7068
- success: boolean;
7069
- error?: undefined;
7070
- context?: undefined;
6936
+ participantsToAdd?: any[];
7071
6937
  };
7072
6938
 
7073
6939
  /**
@@ -7361,10 +7227,8 @@ declare function getCourtsAvailableAtPeriodStart(params: GetCourtsAvailableAtPer
7361
7227
  availableToScheduleCount: number;
7362
7228
  };
7363
7229
 
7364
- declare function withdrawParticipantAtDrawPosition(params: any): ResultType | {
7365
- participantId: string | undefined;
7366
- success: boolean;
7367
- error?: undefined;
7230
+ declare function withdrawParticipantAtDrawPosition(params: any): ResultType & {
7231
+ participantId?: string | undefined;
7368
7232
  };
7369
7233
 
7370
7234
  type UpdateTieMatchUpScoreArgs = {
@@ -7931,10 +7795,8 @@ declare function removeEventEntries({ autoEntryPositions, participantIds, entryS
7931
7795
  error?: ErrorType;
7932
7796
  };
7933
7797
 
7934
- declare function removeDrawPositionAssignment(params: any): ResultType | {
7935
- participantId: string | undefined;
7936
- success: boolean;
7937
- error?: undefined;
7798
+ declare function removeDrawPositionAssignment(params: any): ResultType & {
7799
+ participantId?: string;
7938
7800
  };
7939
7801
 
7940
7802
  declare function removeDrawEntries({ autoEntryPositions, participantIds, drawDefinition, drawId, stages, event, }: {
@@ -8579,7 +8441,7 @@ declare function automatedPositioning({ applyPositioning, provisionalPositioning
8579
8441
  positionAssignments?: PositionAssignment[];
8580
8442
  positioningReport?: {
8581
8443
  [key: string]: any;
8582
- };
8444
+ }[];
8583
8445
  success?: boolean;
8584
8446
  conflicts?: any[];
8585
8447
  };
@@ -9292,6 +9154,25 @@ declare const governors: {
9292
9154
  validateLineUp: typeof validateLineUp;
9293
9155
  validMatchUp: typeof validMatchUp;
9294
9156
  validMatchUps: typeof validMatchUps;
9157
+ allPlayoffPositionsFilled: typeof allPlayoffPositionsFilled;
9158
+ getCategoryAgeDetails: typeof getCategoryAgeDetails;
9159
+ calculateWinCriteria: typeof calculateWinCriteria;
9160
+ compareTieFormats: typeof compareTieFormats;
9161
+ getMatchUpContextIds: typeof getMatchUpContextIds;
9162
+ getScaleValues: typeof getScaleValues;
9163
+ getSeedingThresholds: typeof getSeedingThresholds;
9164
+ getTimeItem: typeof getTimeItem;
9165
+ getValidGroupSizes: typeof getValidGroupSizes;
9166
+ isAdHoc: typeof isAdHoc;
9167
+ isCompletedStructure: typeof isCompletedStructure;
9168
+ roundRobinGroups: {
9169
+ getRoundRobinGroupMatchUps: typeof getRoundRobinGroupMatchUps;
9170
+ determineRoundNumber: typeof determineRoundNumber;
9171
+ drawPositionsHash: typeof drawPositionsHash;
9172
+ groupRounds: typeof groupRounds;
9173
+ };
9174
+ tieFormatGenderValidityCheck: typeof tieFormatGenderValidityCheck;
9175
+ validateCategory: typeof validateCategory;
9295
9176
  };
9296
9177
  reportGovernor: {
9297
9178
  getStructureReports: typeof getStructureReports;
@@ -9416,14 +9297,14 @@ declare const governors: {
9416
9297
  setTournamentStatus: typeof setTournamentStatus;
9417
9298
  };
9418
9299
  utilitiesGovernor: {
9300
+ visualizeScheduledMatchUps: typeof visualizeScheduledMatchUps;
9301
+ dehydrateMatchUps: typeof dehydrateMatchUps;
9302
+ structureSort: typeof structureSort;
9419
9303
  allNumeric: typeof allNumeric;
9420
- allPlayoffPositionsFilled: typeof allPlayoffPositionsFilled;
9421
9304
  attributeFilter: typeof attributeFilter;
9422
- calculateWinCriteria: typeof calculateWinCriteria;
9423
9305
  chunkArray: typeof chunkArray;
9424
9306
  chunkByNth: typeof chunkByNth;
9425
9307
  chunkSizeProfile: typeof chunkSizeProfile;
9426
- compareTieFormats: typeof compareTieFormats;
9427
9308
  constantToString: typeof constantToString;
9428
9309
  countValues: typeof countValues;
9429
9310
  createMap: typeof createMap;
@@ -9455,24 +9336,15 @@ declare const governors: {
9455
9336
  dateValidation: RegExp;
9456
9337
  };
9457
9338
  definedAttributes: typeof definedAttributes;
9458
- dehydrateMatchUps: typeof dehydrateMatchUps;
9459
9339
  extractAttributes: (accessor: any) => (element: any) => any;
9460
9340
  flattenJSON: typeof flattenJSON;
9461
9341
  generateHashCode: typeof generateHashCode;
9462
9342
  generateRange: typeof generateRange;
9463
9343
  generateTimeCode: typeof generateTimeCode;
9464
- getCategoryAgeDetails: typeof getCategoryAgeDetails;
9465
- getMatchUpContextIds: typeof getMatchUpContextIds;
9466
- getScaleValues: typeof getScaleValues;
9467
- getSeedingThresholds: typeof getSeedingThresholds;
9468
- getTimeItem: typeof getTimeItem;
9469
- getValidGroupSizes: typeof getValidGroupSizes;
9470
9344
  groupValues: typeof groupValues;
9471
9345
  hasAttributeValues: (a: any) => (o: any) => boolean;
9472
9346
  instanceCount: typeof instanceCount;
9473
9347
  intersection: typeof intersection;
9474
- isAdHoc: typeof isAdHoc;
9475
- isCompletedStructure: typeof isCompletedStructure;
9476
9348
  isConvertableInteger: typeof isConvertableInteger;
9477
9349
  isNumeric: typeof isNumeric;
9478
9350
  isOdd: typeof isOdd;
@@ -9489,22 +9361,12 @@ declare const governors: {
9489
9361
  overlap: typeof overlap;
9490
9362
  randomMember: typeof randomMember;
9491
9363
  randomPop: typeof randomPop;
9492
- roundRobinGroups: {
9493
- getRoundRobinGroupMatchUps: typeof getRoundRobinGroupMatchUps;
9494
- determineRoundNumber: typeof determineRoundNumber;
9495
- drawPositionsHash: typeof drawPositionsHash;
9496
- groupRounds: typeof groupRounds;
9497
- };
9498
9364
  shuffleArray: typeof shuffleArray;
9499
- structureSort: typeof structureSort;
9500
9365
  subSort: typeof subSort;
9501
- tieFormatGenderValidityCheck: typeof tieFormatGenderValidityCheck;
9502
9366
  undefinedToNull: typeof undefinedToNull;
9503
9367
  unique: typeof unique;
9504
9368
  UUID: typeof UUID;
9505
9369
  UUIDS: typeof UUIDS;
9506
- validateCategory: typeof validateCategory;
9507
- visualizeScheduledMatchUps: typeof visualizeScheduledMatchUps;
9508
9370
  };
9509
9371
  venueGovernor: {
9510
9372
  addCourt: typeof addCourt;
@@ -9532,14 +9394,14 @@ declare const matchUpFormatCode: {
9532
9394
  };
9533
9395
 
9534
9396
  declare const utilities: {
9397
+ visualizeScheduledMatchUps: typeof visualizeScheduledMatchUps;
9398
+ dehydrateMatchUps: typeof dehydrateMatchUps;
9399
+ structureSort: typeof structureSort;
9535
9400
  allNumeric: typeof allNumeric;
9536
- allPlayoffPositionsFilled: typeof allPlayoffPositionsFilled;
9537
9401
  attributeFilter: typeof attributeFilter;
9538
- calculateWinCriteria: typeof calculateWinCriteria;
9539
9402
  chunkArray: typeof chunkArray;
9540
9403
  chunkByNth: typeof chunkByNth;
9541
9404
  chunkSizeProfile: typeof chunkSizeProfile;
9542
- compareTieFormats: typeof compareTieFormats;
9543
9405
  constantToString: typeof constantToString;
9544
9406
  countValues: typeof countValues;
9545
9407
  createMap: typeof createMap;
@@ -9571,24 +9433,15 @@ declare const utilities: {
9571
9433
  dateValidation: RegExp;
9572
9434
  };
9573
9435
  definedAttributes: typeof definedAttributes;
9574
- dehydrateMatchUps: typeof dehydrateMatchUps;
9575
9436
  extractAttributes: (accessor: any) => (element: any) => any;
9576
9437
  flattenJSON: typeof flattenJSON;
9577
9438
  generateHashCode: typeof generateHashCode;
9578
9439
  generateRange: typeof generateRange;
9579
9440
  generateTimeCode: typeof generateTimeCode;
9580
- getCategoryAgeDetails: typeof getCategoryAgeDetails;
9581
- getMatchUpContextIds: typeof getMatchUpContextIds;
9582
- getScaleValues: typeof getScaleValues;
9583
- getSeedingThresholds: typeof getSeedingThresholds;
9584
- getTimeItem: typeof getTimeItem;
9585
- getValidGroupSizes: typeof getValidGroupSizes;
9586
9441
  groupValues: typeof groupValues;
9587
9442
  hasAttributeValues: (a: any) => (o: any) => boolean;
9588
9443
  instanceCount: typeof instanceCount;
9589
9444
  intersection: typeof intersection;
9590
- isAdHoc: typeof isAdHoc;
9591
- isCompletedStructure: typeof isCompletedStructure;
9592
9445
  isConvertableInteger: typeof isConvertableInteger;
9593
9446
  isNumeric: typeof isNumeric;
9594
9447
  isOdd: typeof isOdd;
@@ -9605,66 +9458,12 @@ declare const utilities: {
9605
9458
  overlap: typeof overlap;
9606
9459
  randomMember: typeof randomMember;
9607
9460
  randomPop: typeof randomPop;
9608
- roundRobinGroups: {
9609
- getRoundRobinGroupMatchUps: typeof getRoundRobinGroupMatchUps;
9610
- determineRoundNumber: typeof determineRoundNumber;
9611
- drawPositionsHash: typeof drawPositionsHash;
9612
- groupRounds: typeof groupRounds;
9613
- };
9614
9461
  shuffleArray: typeof shuffleArray;
9615
- structureSort: typeof structureSort;
9616
9462
  subSort: typeof subSort;
9617
- tieFormatGenderValidityCheck: typeof tieFormatGenderValidityCheck;
9618
9463
  undefinedToNull: typeof undefinedToNull;
9619
9464
  unique: typeof unique;
9620
9465
  UUID: typeof UUID;
9621
9466
  UUIDS: typeof UUIDS;
9622
- validateCategory: typeof validateCategory;
9623
- visualizeScheduledMatchUps: typeof visualizeScheduledMatchUps;
9624
- };
9625
-
9626
- declare const scoreGovernor: {
9627
- analyzeSet: typeof analyzeSet;
9628
- checkScoreHasValue: typeof checkScoreHasValue;
9629
- checkSetIsComplete: typeof checkSetIsComplete;
9630
- generateScoreString: typeof generateScoreString;
9631
- generateTieMatchUpScore: typeof generateTieMatchUpScore;
9632
- getSetComplement: (params: {
9633
- lowValue?: string | number | undefined;
9634
- tiebreakAt?: number | undefined;
9635
- isSide1?: boolean | undefined;
9636
- NoAD?: boolean | undefined;
9637
- setTo: number;
9638
- }) => false | number[];
9639
- getTiebreakComplement: (params: {
9640
- lowValue?: string | number | undefined;
9641
- tiebreakNoAd?: boolean | undefined;
9642
- tiebreakTo: number;
9643
- isSide1?: boolean | undefined;
9644
- }) => false | number[];
9645
- isValidMatchUpFormat: typeof isValidMatchUpFormat;
9646
- keyValueScore: typeof keyValueScore;
9647
- parseMatchUpFormat: typeof parse;
9648
- reverseScore: typeof reverseScore;
9649
- stringifyMatchUpFormat: typeof stringify;
9650
- tidyScore: typeof tidyScore;
9651
- updateTieMatchUpScore: typeof updateTieMatchUpScore;
9652
- validateScore: typeof validateScore;
9653
- validateTieFormat: typeof validateTieFormat;
9654
- calculateHistoryScore: typeof calculateHistoryScore;
9655
- setServingSide: typeof setServingSide;
9656
- clearHistory: typeof clearHistory;
9657
- addPoint: typeof addPoint;
9658
- addGame: typeof addGame;
9659
- addShot: typeof addShot;
9660
- addSet: typeof addSet;
9661
- redo: typeof redo;
9662
- undo: typeof undo;
9663
- umo: {
9664
- scoreboard: () => void;
9665
- addPoints: () => void;
9666
- addPoint: () => void;
9667
- };
9668
9467
  };
9669
9468
 
9670
9469
  type Notice = {
@@ -12049,4 +11848,4 @@ declare const venueConstants: {
12049
11848
  OUTDOOR: string;
12050
11849
  };
12051
11850
 
12052
- 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, scoreGovernor, surfaceConstants, engine as syncEngine, timeItemConstants, tournamentEngine, utilities, venueConstants, factoryVersion as version };
11851
+ export { askEngine, asyncEngine, competitionEngine, drawDefinitionConstants, entryStatusConstants, errorConditionConstants, eventConstants, factoryConstants, 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 };