tods-competition-factory 2.0.0-beta.1 → 2.0.0-beta.3

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.
@@ -1301,65 +1301,19 @@ interface UnifiedVenueID {
1301
1301
  venueId: string;
1302
1302
  }
1303
1303
 
1304
- type HydratedCourt = {
1305
- [key: string]: any;
1306
- } & Court;
1307
- type HydratedVenue = {
1308
- [key: string]: any;
1309
- } & Venue;
1310
- type HydratedMatchUp = MatchUp & {
1311
- [key: string | number]: any;
1312
- sides?: HydratedSide[];
1313
- };
1314
- type HydratedParticipant = {
1315
- individualParticipants?: HydratedParticipant[];
1316
- [key: string | number]: any;
1317
- } & Participant;
1318
- type HydratedSide = Side & {
1319
- participant?: HydratedParticipant;
1320
- };
1321
-
1322
- type MatchUpFilters = {
1323
- matchUpStatuses?: MatchUpStatusUnion[];
1324
- excludeMatchUpStatuses?: string[];
1325
- isCollectionMatchUp?: boolean;
1326
- matchUpFormats?: string[];
1327
- roundPositions?: number[];
1328
- hasWinningSide?: boolean;
1329
- collectionIds?: string[];
1330
- roundNumbers?: number[];
1331
- isMatchUpTie?: boolean;
1332
- matchUpFormat?: string;
1333
- matchUpIds?: string[];
1334
- roundNames?: string[];
1335
- processContext?: boolean;
1336
- stageSequences?: string[];
1337
- scheduledDates?: string[];
1338
- participantIds?: string[];
1339
- stages?: StageTypeUnion[];
1340
- tournamentIds?: string[];
1341
- matchUpTypes?: string[];
1342
- structureIds?: string[];
1343
- scheduledDate?: string;
1344
- readyToScore?: boolean;
1345
- courtIds?: string[];
1346
- eventIds?: string[];
1347
- venueIds?: string[];
1348
- drawIds?: string[];
1349
- filterMatchUpTypes?: boolean;
1350
- filterMatchUpIds?: boolean;
1351
- };
1352
-
1353
- type MappedMatchUps = {
1354
- [key: string]: {
1355
- matchUps: HydratedMatchUp[] | MatchUp[] | undefined;
1356
- itemStructureIds: string[];
1357
- structureName?: string;
1358
- };
1359
- };
1360
- type MatchUpsMap = {
1361
- mappedMatchUps: MappedMatchUps;
1362
- drawMatchUps: MatchUp[];
1304
+ declare const SINGLES_EVENT = "SINGLES";
1305
+ declare const DOUBLES_EVENT = "DOUBLES";
1306
+ declare const TEAM_EVENT = "TEAM";
1307
+ declare const eventConstants: {
1308
+ AGE: string;
1309
+ BOTH: string;
1310
+ DOUBLES: string;
1311
+ DOUBLES_EVENT: string;
1312
+ RATING: string;
1313
+ SINGLES: string;
1314
+ SINGLES_EVENT: string;
1315
+ TEAM_EVENT: string;
1316
+ TEAM: string;
1363
1317
  };
1364
1318
 
1365
1319
  type SignedInStatusUnion = typeof SIGNED_IN | typeof SIGNED_OUT;
@@ -1382,6 +1336,24 @@ declare const participantConstants: {
1382
1336
  SIGNED_IN: string;
1383
1337
  };
1384
1338
 
1339
+ type HydratedCourt = {
1340
+ [key: string]: any;
1341
+ } & Court;
1342
+ type HydratedVenue = {
1343
+ [key: string]: any;
1344
+ } & Venue;
1345
+ type HydratedMatchUp = MatchUp & {
1346
+ [key: string | number]: any;
1347
+ sides?: HydratedSide[];
1348
+ };
1349
+ type HydratedParticipant = {
1350
+ individualParticipants?: HydratedParticipant[];
1351
+ [key: string | number]: any;
1352
+ } & Participant;
1353
+ type HydratedSide = Side & {
1354
+ participant?: HydratedParticipant;
1355
+ };
1356
+
1385
1357
  type ErrorType = {
1386
1358
  message: string;
1387
1359
  info?: string;
@@ -2116,19 +2088,16 @@ declare const policyConstants: {
2116
2088
  readonly POLICY_TYPE_DRAWS: "draws";
2117
2089
  };
2118
2090
 
2119
- declare const SINGLES_EVENT = "SINGLES";
2120
- declare const DOUBLES_EVENT = "DOUBLES";
2121
- declare const TEAM_EVENT = "TEAM";
2122
- declare const eventConstants: {
2123
- AGE: string;
2124
- BOTH: string;
2125
- DOUBLES: string;
2126
- DOUBLES_EVENT: string;
2127
- RATING: string;
2128
- SINGLES: string;
2129
- SINGLES_EVENT: string;
2130
- TEAM_EVENT: string;
2131
- TEAM: string;
2091
+ type MappedMatchUps = {
2092
+ [key: string]: {
2093
+ matchUps: HydratedMatchUp[] | MatchUp[] | undefined;
2094
+ itemStructureIds: string[];
2095
+ structureName?: string;
2096
+ };
2097
+ };
2098
+ type MatchUpsMap = {
2099
+ mappedMatchUps: MappedMatchUps;
2100
+ drawMatchUps: MatchUp[];
2132
2101
  };
2133
2102
 
2134
2103
  type FactoryEngine = {
@@ -2137,12 +2106,6 @@ type FactoryEngine = {
2137
2106
  type TournamentRecords = {
2138
2107
  [key: string]: Tournament;
2139
2108
  };
2140
- type Directives = {
2141
- params?: {
2142
- [key: string]: any;
2143
- };
2144
- method: string;
2145
- }[];
2146
2109
  type CheckInOutParticipantArgs = {
2147
2110
  tournamentRecord: Tournament;
2148
2111
  drawDefinition: DrawDefinition;
@@ -2154,10 +2117,6 @@ type CheckInOutParticipantArgs = {
2154
2117
  type ScheduleTimesResult = {
2155
2118
  scheduleTime: string;
2156
2119
  };
2157
- type SeedBlock = {
2158
- drawPositions: number[];
2159
- seedNumbers: number[];
2160
- };
2161
2120
  type SeedingProfile = {
2162
2121
  groupSeedingThreshold?: number;
2163
2122
  positioning?: string;
@@ -2438,9 +2397,6 @@ type GroupsMatchUpsResult = {
2438
2397
  success?: boolean;
2439
2398
  error?: ErrorType;
2440
2399
  };
2441
- type ExitProfiles = {
2442
- [key: string]: string[];
2443
- };
2444
2400
  type MinutesMapping = {
2445
2401
  categoryNames: string[];
2446
2402
  minutes: any;
@@ -2461,11 +2417,6 @@ type ScheduleTiming = {
2461
2417
  };
2462
2418
  }[];
2463
2419
  };
2464
- type Substitution = {
2465
- previousParticipantId: string;
2466
- substitutionOrder: number;
2467
- participantId: string;
2468
- };
2469
2420
  type PlayoffAttributes = {
2470
2421
  [key: string | number]: {
2471
2422
  name: string;
@@ -2473,21 +2424,6 @@ type PlayoffAttributes = {
2473
2424
  };
2474
2425
  };
2475
2426
  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
2427
  type Request$1 = {
2492
2428
  requestType: string;
2493
2429
  requestId: string;
@@ -2506,50 +2442,36 @@ type AddScheduleAttributeArgs = {
2506
2442
  matchUpId: string;
2507
2443
  event?: Event$1;
2508
2444
  };
2509
-
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
- }
2445
+ type MatchUpFilters = {
2446
+ matchUpStatuses?: MatchUpStatusUnion[];
2447
+ excludeMatchUpStatuses?: string[];
2448
+ isCollectionMatchUp?: boolean;
2449
+ matchUpFormats?: string[];
2450
+ roundPositions?: number[];
2451
+ hasWinningSide?: boolean;
2452
+ collectionIds?: string[];
2453
+ roundNumbers?: number[];
2454
+ isMatchUpTie?: boolean;
2455
+ matchUpFormat?: string;
2456
+ matchUpIds?: string[];
2457
+ roundNames?: string[];
2458
+ processContext?: boolean;
2459
+ stageSequences?: string[];
2460
+ scheduledDates?: string[];
2461
+ participantIds?: string[];
2462
+ stages?: StageTypeUnion[];
2463
+ tournamentIds?: string[];
2464
+ matchUpTypes?: string[];
2465
+ structureIds?: string[];
2466
+ scheduledDate?: string;
2467
+ readyToScore?: boolean;
2468
+ courtIds?: string[];
2469
+ eventIds?: string[];
2470
+ venueIds?: string[];
2471
+ drawIds?: string[];
2472
+ filterMatchUpTypes?: boolean;
2473
+ filterMatchUpIds?: boolean;
2474
+ };
2553
2475
 
2554
2476
  type ModifyVenueArgs = {
2555
2477
  tournamentRecords?: TournamentRecords;
@@ -2877,8 +2799,9 @@ declare function formatDate(date?: any, separator?: string, format?: string): st
2877
2799
  declare function offsetDate(date: any): Date;
2878
2800
  declare function offsetTime(date?: any): number;
2879
2801
  declare function isDate(dateArg: any): boolean;
2880
- declare function dateRange(startDt?: any, endDt?: any): string[];
2802
+ declare function generateDateRange(startDt?: any, endDt?: any): string[];
2881
2803
  declare function isISODateString(dateString: any): boolean;
2804
+ declare function isTimeString(timeString: any): boolean;
2882
2805
  declare function timeStringMinutes(timeString?: any): any;
2883
2806
  declare function extractTime(dateString: any): any;
2884
2807
  declare function extractDate(dateString: any): any;
@@ -3509,25 +3432,10 @@ declare function analyzeSet(params: any): {
3509
3432
  [key: string]: any;
3510
3433
  };
3511
3434
 
3512
- declare function validateSchedulingProfile({ tournamentRecords, schedulingProfile, }: {
3435
+ declare function validateSchedulingProfile({ tournamentRecords, schedulingProfile }: {
3513
3436
  tournamentRecords: any;
3514
3437
  schedulingProfile: any;
3515
- }): {
3516
- valid: boolean;
3517
- error?: undefined;
3518
- info?: undefined;
3519
- } | {
3520
- valid: boolean;
3521
- error: {
3522
- message: string;
3523
- code: string;
3524
- };
3525
- info?: undefined;
3526
- } | {
3527
- valid: boolean;
3528
- error: any;
3529
- info: any;
3530
- };
3438
+ }): any;
3531
3439
 
3532
3440
  type SetMatchUpDailyLimitsArgs = {
3533
3441
  tournamentRecords?: TournamentRecords;
@@ -3802,25 +3710,7 @@ type SetSchedulingProfileArgs = {
3802
3710
  tournamentRecord?: Tournament;
3803
3711
  schedulingProfile?: any[];
3804
3712
  };
3805
- declare function setSchedulingProfile({ tournamentRecords, tournamentRecord, schedulingProfile, }: SetSchedulingProfileArgs): {
3806
- success?: boolean | undefined;
3807
- error?: ErrorType | undefined;
3808
- } | {
3809
- valid: boolean;
3810
- error?: undefined;
3811
- info?: undefined;
3812
- } | {
3813
- valid: boolean;
3814
- error: {
3815
- message: string;
3816
- code: string;
3817
- };
3818
- info?: undefined;
3819
- } | {
3820
- valid: boolean;
3821
- error: any;
3822
- info: any;
3823
- };
3713
+ declare function setSchedulingProfile({ tournamentRecords, tournamentRecord, schedulingProfile, }: SetSchedulingProfileArgs): any;
3824
3714
 
3825
3715
  type GetProfileRoundsArgs = {
3826
3716
  tournamentRecords?: {
@@ -4179,30 +4069,7 @@ declare function addSchedulingProfileRound({ tournamentRecords, scheduleDate, ve
4179
4069
  scheduleDate: any;
4180
4070
  venueId: any;
4181
4071
  round: any;
4182
- }): {
4183
- success?: boolean | undefined;
4184
- error?: ErrorType | undefined;
4185
- } | {
4186
- valid: boolean;
4187
- error?: undefined;
4188
- info?: undefined;
4189
- } | {
4190
- valid: boolean;
4191
- error: {
4192
- message: string;
4193
- code: string;
4194
- };
4195
- info?: undefined;
4196
- } | {
4197
- valid: boolean;
4198
- error: any;
4199
- info: any;
4200
- } | {
4201
- error: {
4202
- message: string;
4203
- code: string;
4204
- };
4205
- };
4072
+ }): any;
4206
4073
 
4207
4074
  type AddPersonRequestsArgs = {
4208
4075
  tournamentRecords: TournamentRecords;
@@ -4518,8 +4385,20 @@ declare function getSeedingThresholds({ roundRobinGroupsCount, participantsCount
4518
4385
  success?: boolean;
4519
4386
  };
4520
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
+ };
4521
4398
  declare function getScaleValues(params: any): ResultType & {
4522
- valid?: boolean | undefined;
4399
+ seedings?: ScalesType;
4400
+ rankings?: ScalesType;
4401
+ ratings?: ScalesType;
4523
4402
  };
4524
4403
 
4525
4404
  declare function getMatchUpContextIds({ matchUps, matchUpId }: {
@@ -5041,7 +4920,7 @@ type RoundMatchUpsResult = {
5041
4920
  roundNumbers?: number[];
5042
4921
  error?: ErrorType;
5043
4922
  };
5044
- declare function getRoundMatchUps({ matchUps, interpolate, }: GetRoundMatchUpsArgs): RoundMatchUpsResult;
4923
+ declare function getRoundMatchUps({ matchUps, interpolate }: GetRoundMatchUpsArgs): RoundMatchUpsResult;
5045
4924
 
5046
4925
  type getPredictiveAccuracyArgs = {
5047
4926
  exclusionRule?: {
@@ -5311,15 +5190,15 @@ type GetMatchUpScheduleDetailsArgs = {
5311
5190
  scheduleVisibilityFilters?: ScheduleVisibilityFilters;
5312
5191
  scheduleTiming?: ScheduleTiming;
5313
5192
  tournamentRecord?: Tournament;
5193
+ matchUpType?: EventTypeUnion;
5314
5194
  afterRecoveryTimes?: boolean;
5315
5195
  usePublishState?: boolean;
5316
5196
  matchUp: HydratedMatchUp;
5317
5197
  matchUpFormat?: string;
5318
- matchUpType?: EventTypeUnion;
5319
5198
  publishStatus?: any;
5320
5199
  event?: Event$1;
5321
5200
  };
5322
- declare function getMatchUpScheduleDetails({ scheduleVisibilityFilters, afterRecoveryTimes, tournamentRecord, usePublishState, scheduleTiming, matchUpFormat, publishStatus, matchUpType, matchUp, event, }: GetMatchUpScheduleDetailsArgs): {
5201
+ declare function getMatchUpScheduleDetails(params: GetMatchUpScheduleDetailsArgs): {
5323
5202
  error: {
5324
5203
  message: string;
5325
5204
  code: string;
@@ -6094,7 +5973,27 @@ declare function analyzeTournament({ tournamentRecord }: {
6094
5973
  error?: undefined;
6095
5974
  };
6096
5975
 
6097
- 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
+ };
6098
5997
 
6099
5998
  declare function analyzeDraws({ tournamentRecord }: {
6100
5999
  tournamentRecord: any;
@@ -6771,10 +6670,10 @@ declare function addPenalty(params: AddPenaltyArgs): ResultType & {
6771
6670
  type AddParticipantsType = {
6772
6671
  allowDuplicateParticipantIdPairs?: boolean;
6773
6672
  returnParticipants?: boolean;
6774
- participants: Participant[];
6673
+ participants?: Participant[];
6775
6674
  tournamentRecord: Tournament;
6776
6675
  };
6777
- declare function addParticipants({ allowDuplicateParticipantIdPairs, returnParticipants, participants, tournamentRecord, }: AddParticipantsType): any;
6676
+ declare function addParticipants({ allowDuplicateParticipantIdPairs, returnParticipants, tournamentRecord, participants, }: AddParticipantsType): any;
6778
6677
 
6779
6678
  type AddParticipantType = {
6780
6679
  allowDuplicateParticipantIdPairs?: boolean;
@@ -7030,28 +6929,11 @@ type GenerateLineUpsArgs = {
7030
6929
  attach?: boolean;
7031
6930
  event: Event$1;
7032
6931
  };
7033
- declare function generateLineUps(params: GenerateLineUpsArgs): {
7034
- error: {
7035
- message: string;
7036
- code: string;
7037
- };
7038
- context?: undefined;
7039
- } | {
7040
- error: {
7041
- message: string;
7042
- code: string;
7043
- };
7044
- context: {
7045
- scaleAccessor: any;
7046
- };
7047
- } | {
7048
- lineUps: {
6932
+ declare function generateLineUps(params: GenerateLineUpsArgs): ResultType & {
6933
+ lineUps?: {
7049
6934
  [key: string]: LineUp;
7050
6935
  };
7051
- participantsToAdd: any[];
7052
- success: boolean;
7053
- error?: undefined;
7054
- context?: undefined;
6936
+ participantsToAdd?: any[];
7055
6937
  };
7056
6938
 
7057
6939
  /**
@@ -7160,6 +7042,7 @@ type GenerateDrawMaticRoundArgs = {
7160
7042
  structure?: Structure;
7161
7043
  structureId?: string;
7162
7044
  scaleName?: string;
7045
+ idPrefix?: string;
7163
7046
  isMock?: boolean;
7164
7047
  drawId?: string;
7165
7048
  event: Event$1;
@@ -7173,15 +7056,15 @@ type DrawMaticRoundResult = {
7173
7056
  maxDelta?: number;
7174
7057
  maxDiff?: number;
7175
7058
  };
7176
- declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, participantIds, drawDefinition, adHocRatings, structureId, salted, matchUpIds, eventType, structure, scaleName, isMock, event, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
7059
+ declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, participantIds, drawDefinition, adHocRatings, structureId, salted, matchUpIds, eventType, structure, scaleName, idPrefix, isMock, event, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
7177
7060
 
7178
7061
  type DrawMaticArgs = {
7179
7062
  adHocRatings?: {
7180
7063
  [key: string]: number;
7181
7064
  };
7182
7065
  restrictEntryStatus?: boolean;
7183
- drawDefinition?: DrawDefinition;
7184
7066
  tournamentRecord: Tournament;
7067
+ drawDefinition: DrawDefinition;
7185
7068
  generateMatchUps?: boolean;
7186
7069
  eventType?: EventTypeUnion;
7187
7070
  salted?: number | boolean;
@@ -7192,13 +7075,13 @@ type DrawMaticArgs = {
7192
7075
  structure?: Structure;
7193
7076
  matchUpIds?: string[];
7194
7077
  structureId?: string;
7078
+ idPrefix?: string;
7195
7079
  isMock?: boolean;
7196
7080
  event: Event$1;
7197
7081
  scaleAccessor?: string;
7198
7082
  scaleName?: string;
7199
7083
  };
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;
7084
+ declare function drawMatic(params: DrawMaticArgs): ResultType & DrawMaticRoundResult;
7202
7085
 
7203
7086
  type GenerateDrawDefinitionArgs = {
7204
7087
  automated?: boolean | {
@@ -7253,6 +7136,22 @@ declare function generateDrawDefinition(params: GenerateDrawDefinitionArgs): Res
7253
7136
  conflicts?: any[];
7254
7137
  };
7255
7138
 
7139
+ type GenerateCourtsArgs = {
7140
+ tournamentRecord?: Tournament;
7141
+ courtNames?: string[];
7142
+ namePrefix?: string;
7143
+ startTime?: string;
7144
+ endTime?: string;
7145
+ idPrefix?: string;
7146
+ uuids?: string[];
7147
+ dates?: string[];
7148
+ count: number;
7149
+ };
7150
+ type GenerateCourtsResult = {
7151
+ courts?: Court[];
7152
+ };
7153
+ declare function generateCourts(params: GenerateCourtsArgs): ResultType & GenerateCourtsResult;
7154
+
7256
7155
  type NamingEntry = {
7257
7156
  [key: string]: {
7258
7157
  name: string;
@@ -7292,16 +7191,18 @@ type GenerateAdHocMatchUpsArgs = {
7292
7191
  participantIdPairings?: {
7293
7192
  participantIds: [string | undefined, string | undefined];
7294
7193
  }[];
7194
+ tournamentRecord?: Tournament;
7295
7195
  drawDefinition: DrawDefinition;
7296
7196
  matchUpsCount?: number;
7297
7197
  matchUpIds?: string[];
7298
7198
  roundNumber?: number;
7299
7199
  structureId?: string;
7300
7200
  newRound?: boolean;
7201
+ idPrefix?: string;
7301
7202
  isMock?: boolean;
7302
7203
  event: Event$1;
7303
7204
  };
7304
- declare function generateAdHocMatchUps({ participantIdPairings, matchUpIds, drawDefinition, matchUpsCount, roundNumber, structureId, newRound, isMock, event, }: GenerateAdHocMatchUpsArgs): {
7205
+ declare function generateAdHocMatchUps(params: GenerateAdHocMatchUpsArgs): {
7305
7206
  matchUpsCount?: number;
7306
7207
  matchUps?: MatchUp[];
7307
7208
  error?: ErrorType;
@@ -7345,10 +7246,8 @@ declare function getCourtsAvailableAtPeriodStart(params: GetCourtsAvailableAtPer
7345
7246
  availableToScheduleCount: number;
7346
7247
  };
7347
7248
 
7348
- declare function withdrawParticipantAtDrawPosition(params: any): ResultType | {
7349
- participantId: string | undefined;
7350
- success: boolean;
7351
- error?: undefined;
7249
+ declare function withdrawParticipantAtDrawPosition(params: any): ResultType & {
7250
+ participantId?: string | undefined;
7352
7251
  };
7353
7252
 
7354
7253
  type UpdateTieMatchUpScoreArgs = {
@@ -7915,10 +7814,8 @@ declare function removeEventEntries({ autoEntryPositions, participantIds, entryS
7915
7814
  error?: ErrorType;
7916
7815
  };
7917
7816
 
7918
- declare function removeDrawPositionAssignment(params: any): ResultType | {
7919
- participantId: string | undefined;
7920
- success: boolean;
7921
- error?: undefined;
7817
+ declare function removeDrawPositionAssignment(params: any): ResultType & {
7818
+ participantId?: string;
7922
7819
  };
7923
7820
 
7924
7821
  declare function removeDrawEntries({ autoEntryPositions, participantIds, drawDefinition, drawId, stages, event, }: {
@@ -8337,7 +8234,11 @@ declare function luckyLoserDrawPositionAssignment(params: any): ResultType | {
8337
8234
  };
8338
8235
  };
8339
8236
 
8340
- declare function getAvailablePlayoffProfiles(params: any): any;
8237
+ type GetAvailablePlayoffProfileArgs = {
8238
+ drawDefinition: DrawDefinition;
8239
+ structureId?: string;
8240
+ };
8241
+ declare function getAvailablePlayoffProfiles({ drawDefinition, structureId }: GetAvailablePlayoffProfileArgs): any;
8341
8242
 
8342
8243
  declare function enableTieAutoCalc({ tournamentRecord, drawDefinition, matchUpId, event, }: {
8343
8244
  tournamentRecord: any;
@@ -8563,7 +8464,7 @@ declare function automatedPositioning({ applyPositioning, provisionalPositioning
8563
8464
  positionAssignments?: PositionAssignment[];
8564
8465
  positioningReport?: {
8565
8466
  [key: string]: any;
8566
- };
8467
+ }[];
8567
8468
  success?: boolean;
8568
8469
  conflicts?: any[];
8569
8470
  };
@@ -8851,7 +8752,7 @@ type AddEventArgs = {
8851
8752
  internalUse?: boolean;
8852
8753
  event: any;
8853
8754
  };
8854
- declare function addEvent({ suppressNotifications, tournamentRecord, internalUse, event, }: AddEventArgs): {
8755
+ declare function addEvent({ suppressNotifications, tournamentRecord, internalUse, event }: AddEventArgs): {
8855
8756
  context?: {
8856
8757
  [key: string]: any;
8857
8758
  };
@@ -9094,6 +8995,7 @@ declare const governors: {
9094
8995
  };
9095
8996
  generateAdHocMatchUps: typeof generateAdHocMatchUps;
9096
8997
  generateAndPopulatePlayoffStructures: typeof generateAndPopulatePlayoffStructures;
8998
+ generateCourts: typeof generateCourts;
9097
8999
  generateDrawDefinition: typeof generateDrawDefinition;
9098
9000
  generateDrawMaticRound: typeof generateDrawMaticRound;
9099
9001
  generateDrawStructuresAndLinks: typeof generateDrawStructuresAndLinks;
@@ -9430,7 +9332,6 @@ declare const governors: {
9430
9332
  constantToString: typeof constantToString;
9431
9333
  countValues: typeof countValues;
9432
9334
  createMap: typeof createMap;
9433
- dateRange: typeof dateRange;
9434
9335
  dateTime: {
9435
9336
  addDays: typeof addDays;
9436
9337
  addWeek: typeof addWeek;
@@ -9445,7 +9346,7 @@ declare const governors: {
9445
9346
  getDateByWeek: typeof getDateByWeek;
9446
9347
  isISODateString: typeof isISODateString;
9447
9348
  isDate: typeof isDate;
9448
- isTimeString: (timeString: any) => boolean;
9349
+ isTimeString: typeof isTimeString;
9449
9350
  offsetDate: typeof offsetDate;
9450
9351
  offsetTime: typeof offsetTime;
9451
9352
  sameDay: typeof sameDay;
@@ -9460,6 +9361,7 @@ declare const governors: {
9460
9361
  definedAttributes: typeof definedAttributes;
9461
9362
  extractAttributes: (accessor: any) => (element: any) => any;
9462
9363
  flattenJSON: typeof flattenJSON;
9364
+ generateDateRange: typeof generateDateRange;
9463
9365
  generateHashCode: typeof generateHashCode;
9464
9366
  generateRange: typeof generateRange;
9465
9367
  generateTimeCode: typeof generateTimeCode;
@@ -9527,7 +9429,6 @@ declare const utilities: {
9527
9429
  constantToString: typeof constantToString;
9528
9430
  countValues: typeof countValues;
9529
9431
  createMap: typeof createMap;
9530
- dateRange: typeof dateRange;
9531
9432
  dateTime: {
9532
9433
  addDays: typeof addDays;
9533
9434
  addWeek: typeof addWeek;
@@ -9542,7 +9443,7 @@ declare const utilities: {
9542
9443
  getDateByWeek: typeof getDateByWeek;
9543
9444
  isISODateString: typeof isISODateString;
9544
9445
  isDate: typeof isDate;
9545
- isTimeString: (timeString: any) => boolean;
9446
+ isTimeString: typeof isTimeString;
9546
9447
  offsetDate: typeof offsetDate;
9547
9448
  offsetTime: typeof offsetTime;
9548
9449
  sameDay: typeof sameDay;
@@ -9557,6 +9458,7 @@ declare const utilities: {
9557
9458
  definedAttributes: typeof definedAttributes;
9558
9459
  extractAttributes: (accessor: any) => (element: any) => any;
9559
9460
  flattenJSON: typeof flattenJSON;
9461
+ generateDateRange: typeof generateDateRange;
9560
9462
  generateHashCode: typeof generateHashCode;
9561
9463
  generateRange: typeof generateRange;
9562
9464
  generateTimeCode: typeof generateTimeCode;
@@ -11970,4 +11872,4 @@ declare const venueConstants: {
11970
11872
  OUTDOOR: string;
11971
11873
  };
11972
11874
 
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 };
11875
+ 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 };