tods-competition-factory 2.0.0-beta.1 → 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.
- package/README.md +17 -14
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.d.ts +51 -173
- package/dist/tods-competition-factory.development.cjs.js +127 -191
- 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 +6 -12
|
@@ -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;
|
|
@@ -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
|
-
|
|
4399
|
+
seedings?: ScalesType;
|
|
4400
|
+
rankings?: ScalesType;
|
|
4401
|
+
ratings?: ScalesType;
|
|
4523
4402
|
};
|
|
4524
4403
|
|
|
4525
4404
|
declare function getMatchUpContextIds({ matchUps, matchUpId }: {
|
|
@@ -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(
|
|
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):
|
|
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
|
|
6673
|
+
participants?: Participant[];
|
|
6775
6674
|
tournamentRecord: Tournament;
|
|
6776
6675
|
};
|
|
6777
|
-
declare function addParticipants({ allowDuplicateParticipantIdPairs, returnParticipants,
|
|
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
|
-
|
|
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
|
|
7052
|
-
success: boolean;
|
|
7053
|
-
error?: undefined;
|
|
7054
|
-
context?: undefined;
|
|
6936
|
+
participantsToAdd?: any[];
|
|
7055
6937
|
};
|
|
7056
6938
|
|
|
7057
6939
|
/**
|
|
@@ -7345,10 +7227,8 @@ declare function getCourtsAvailableAtPeriodStart(params: GetCourtsAvailableAtPer
|
|
|
7345
7227
|
availableToScheduleCount: number;
|
|
7346
7228
|
};
|
|
7347
7229
|
|
|
7348
|
-
declare function withdrawParticipantAtDrawPosition(params: any): ResultType
|
|
7349
|
-
participantId
|
|
7350
|
-
success: boolean;
|
|
7351
|
-
error?: undefined;
|
|
7230
|
+
declare function withdrawParticipantAtDrawPosition(params: any): ResultType & {
|
|
7231
|
+
participantId?: string | undefined;
|
|
7352
7232
|
};
|
|
7353
7233
|
|
|
7354
7234
|
type UpdateTieMatchUpScoreArgs = {
|
|
@@ -7915,10 +7795,8 @@ declare function removeEventEntries({ autoEntryPositions, participantIds, entryS
|
|
|
7915
7795
|
error?: ErrorType;
|
|
7916
7796
|
};
|
|
7917
7797
|
|
|
7918
|
-
declare function removeDrawPositionAssignment(params: any): ResultType
|
|
7919
|
-
participantId
|
|
7920
|
-
success: boolean;
|
|
7921
|
-
error?: undefined;
|
|
7798
|
+
declare function removeDrawPositionAssignment(params: any): ResultType & {
|
|
7799
|
+
participantId?: string;
|
|
7922
7800
|
};
|
|
7923
7801
|
|
|
7924
7802
|
declare function removeDrawEntries({ autoEntryPositions, participantIds, drawDefinition, drawId, stages, event, }: {
|
|
@@ -8563,7 +8441,7 @@ declare function automatedPositioning({ applyPositioning, provisionalPositioning
|
|
|
8563
8441
|
positionAssignments?: PositionAssignment[];
|
|
8564
8442
|
positioningReport?: {
|
|
8565
8443
|
[key: string]: any;
|
|
8566
|
-
};
|
|
8444
|
+
}[];
|
|
8567
8445
|
success?: boolean;
|
|
8568
8446
|
conflicts?: any[];
|
|
8569
8447
|
};
|
|
@@ -11970,4 +11848,4 @@ declare const venueConstants: {
|
|
|
11970
11848
|
OUTDOOR: string;
|
|
11971
11849
|
};
|
|
11972
11850
|
|
|
11973
|
-
export { askEngine, asyncEngine, competitionEngine, drawDefinitionConstants, entryStatusConstants, errorConditionConstants, eventConstants, factoryConstants,
|
|
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 };
|