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

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,6 +2137,12 @@ 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
+ }[];
2140
2146
  type CheckInOutParticipantArgs = {
2141
2147
  tournamentRecord: Tournament;
2142
2148
  drawDefinition: DrawDefinition;
@@ -2148,6 +2154,10 @@ type CheckInOutParticipantArgs = {
2148
2154
  type ScheduleTimesResult = {
2149
2155
  scheduleTime: string;
2150
2156
  };
2157
+ type SeedBlock = {
2158
+ drawPositions: number[];
2159
+ seedNumbers: number[];
2160
+ };
2151
2161
  type SeedingProfile = {
2152
2162
  groupSeedingThreshold?: number;
2153
2163
  positioning?: string;
@@ -2428,6 +2438,9 @@ type GroupsMatchUpsResult = {
2428
2438
  success?: boolean;
2429
2439
  error?: ErrorType;
2430
2440
  };
2441
+ type ExitProfiles = {
2442
+ [key: string]: string[];
2443
+ };
2431
2444
  type MinutesMapping = {
2432
2445
  categoryNames: string[];
2433
2446
  minutes: any;
@@ -2448,6 +2461,11 @@ type ScheduleTiming = {
2448
2461
  };
2449
2462
  }[];
2450
2463
  };
2464
+ type Substitution = {
2465
+ previousParticipantId: string;
2466
+ substitutionOrder: number;
2467
+ participantId: string;
2468
+ };
2451
2469
  type PlayoffAttributes = {
2452
2470
  [key: string | number]: {
2453
2471
  name: string;
@@ -2455,6 +2473,21 @@ type PlayoffAttributes = {
2455
2473
  };
2456
2474
  };
2457
2475
  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
+ };
2458
2491
  type Request$1 = {
2459
2492
  requestType: string;
2460
2493
  requestId: string;
@@ -2474,6 +2507,50 @@ type AddScheduleAttributeArgs = {
2474
2507
  event?: Event$1;
2475
2508
  };
2476
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
+ }
2553
+
2477
2554
  type ModifyVenueArgs = {
2478
2555
  tournamentRecords?: TournamentRecords;
2479
2556
  tournamentRecord?: Tournament;
@@ -3741,9 +3818,7 @@ declare function removeMatchUpCourtAssignment(params: any): {
3741
3818
  };
3742
3819
 
3743
3820
  type RemoveEventMatchUpFormatTimingArgs = {
3744
- tournamentRecords?: {
3745
- [key: string]: Tournament;
3746
- };
3821
+ tournamentRecords?: TournamentRecords;
3747
3822
  tournamentRecord?: Tournament;
3748
3823
  eventId: string;
3749
3824
  event?: Event$1;
@@ -4760,6 +4835,13 @@ declare function getTournamentPenalties({ tournamentRecord, }: GetTournamentPena
4760
4835
  penalties?: Penalty[];
4761
4836
  };
4762
4837
 
4838
+ declare function getTournamentInfo({ tournamentRecord }: {
4839
+ tournamentRecord: any;
4840
+ }): {
4841
+ tournamentInfo?: any;
4842
+ error?: ErrorType;
4843
+ };
4844
+
4763
4845
  declare function getTournamentIds({ tournamentRecords }: {
4764
4846
  tournamentRecords: any;
4765
4847
  }): {
@@ -5557,6 +5639,13 @@ winsLimit, event, }: GetEligibleVoluntaryConsolationParticipantsArgs): {
5557
5639
  error?: ErrorType;
5558
5640
  };
5559
5641
 
5642
+ type getDrawTypeCoercionArgs = {
5643
+ policyDefinitions?: PolicyDefinitions;
5644
+ appliedPolicies?: PolicyDefinitions;
5645
+ drawType?: string;
5646
+ };
5647
+ declare function getDrawTypeCoercion({ policyDefinitions, appliedPolicies, drawType, }: getDrawTypeCoercionArgs): any;
5648
+
5560
5649
  declare function getDrawParticipantRepresentativeIds({ drawDefinition }: {
5561
5650
  drawDefinition: any;
5562
5651
  }): (ResultType & {
@@ -5978,7 +6067,6 @@ declare function categoryCanContain({ childCategory, withDetails, category, }: C
5978
6067
 
5979
6068
  /**
5980
6069
  *
5981
- * @param {object} tournamentRecord - passed in automatically by tournamentEngine
5982
6070
  * @param {object[]} outcomes - array of outcomes to be applied to matchUps, relevent attributes: { eventId: string; drawId: string; }
5983
6071
  *
5984
6072
  */
@@ -6083,16 +6171,6 @@ declare function allCompetitionMatchUps({ scheduleVisibilityFilters, afterRecove
6083
6171
  error?: ErrorType;
6084
6172
  };
6085
6173
 
6086
- declare function publishOrderOfPlay(params: any): {
6087
- error: {
6088
- message: string;
6089
- code: string;
6090
- };
6091
- } | {
6092
- success: boolean;
6093
- error?: undefined;
6094
- };
6095
-
6096
6174
  declare function unPublishOrderOfPlay(params: any): {
6097
6175
  error: {
6098
6176
  message: string;
@@ -6103,49 +6181,6 @@ declare function unPublishOrderOfPlay(params: any): {
6103
6181
  error?: undefined;
6104
6182
  };
6105
6183
 
6106
- type PublishingDetail = {
6107
- roundLimit?: number;
6108
- published?: boolean;
6109
- embargo?: string;
6110
- };
6111
- type DrawPublishingDetails = {
6112
- structureDetails?: {
6113
- [key: string]: PublishingDetail;
6114
- };
6115
- stageDetails?: {
6116
- [key: string]: PublishingDetail;
6117
- };
6118
- publishingDetail: PublishingDetail;
6119
- structureIdsToRemove?: string[];
6120
- structureIdsToAdd?: string[];
6121
- stagesToRemove?: string[];
6122
- stagesToAdd?: string[];
6123
- };
6124
- type PublishEventType = {
6125
- includePositionAssignments?: boolean;
6126
- policyDefinitions?: PolicyDefinitions;
6127
- removePriorValues?: boolean;
6128
- tournamentRecord: Tournament;
6129
- drawIds?: string[];
6130
- status?: string;
6131
- event?: Event$1;
6132
- drawDetails?: {
6133
- [key: string]: DrawPublishingDetails;
6134
- };
6135
- drawIdsToRemove?: string[];
6136
- drawIdsToAdd?: string[];
6137
- };
6138
- declare function publishEvent(params: PublishEventType): ResultType | {
6139
- error: {
6140
- message: string;
6141
- code: string;
6142
- };
6143
- } | {
6144
- eventData: any;
6145
- success: boolean;
6146
- error?: undefined;
6147
- };
6148
-
6149
6184
  declare function unPublishEvent({ removePriorValues, tournamentRecord, status, event, }: {
6150
6185
  removePriorValues?: boolean | undefined;
6151
6186
  tournamentRecord: any;
@@ -6193,6 +6228,16 @@ type SetEventDisplaySettings = {
6193
6228
  };
6194
6229
  declare function setEventDisplay({ removePriorValues, tournamentRecord, displaySettings, status, event, }: SetEventDisplaySettings): ResultType;
6195
6230
 
6231
+ declare function publishOrderOfPlay(params: any): {
6232
+ error: {
6233
+ message: string;
6234
+ code: string;
6235
+ };
6236
+ } | {
6237
+ success: boolean;
6238
+ error?: undefined;
6239
+ };
6240
+
6196
6241
  declare function publishEventSeeding({ removePriorValues, stageSeedingScaleNames, seedingScaleNames, tournamentRecord, status, drawIds, event, }: {
6197
6242
  removePriorValues?: boolean | undefined;
6198
6243
  stageSeedingScaleNames: any;
@@ -6228,11 +6273,68 @@ declare function unPublishEventSeeding({ removePriorValues, seedingScaleNames, t
6228
6273
  error?: undefined;
6229
6274
  };
6230
6275
 
6231
- declare function getDrawData(params: any): {
6232
- structures?: any[];
6276
+ type PublishingDetail = {
6277
+ roundLimit?: number;
6278
+ published?: boolean;
6279
+ embargo?: string;
6280
+ };
6281
+ type DrawPublishingDetails = {
6282
+ structureDetails?: {
6283
+ [key: string]: PublishingDetail;
6284
+ };
6285
+ stageDetails?: {
6286
+ [key: string]: PublishingDetail;
6287
+ };
6288
+ publishingDetail: PublishingDetail;
6289
+ structureIdsToRemove?: string[];
6290
+ structureIdsToAdd?: string[];
6291
+ stagesToRemove?: string[];
6292
+ stagesToAdd?: string[];
6293
+ };
6294
+ type PublishEventType = {
6295
+ includePositionAssignments?: boolean;
6296
+ policyDefinitions?: PolicyDefinitions;
6297
+ removePriorValues?: boolean;
6298
+ tournamentRecord: Tournament;
6299
+ drawIds?: string[];
6300
+ status?: string;
6301
+ event?: Event$1;
6302
+ drawDetails?: {
6303
+ [key: string]: DrawPublishingDetails;
6304
+ };
6305
+ drawIdsToRemove?: string[];
6306
+ drawIdsToAdd?: string[];
6307
+ };
6308
+ declare function publishEvent(params: PublishEventType): ResultType | {
6309
+ error: {
6310
+ message: string;
6311
+ code: string;
6312
+ };
6313
+ } | {
6314
+ eventData: any;
6315
+ success: boolean;
6316
+ error?: undefined;
6317
+ };
6318
+
6319
+ type GetVenueDataArgs = {
6320
+ tournamentRecord: Tournament;
6321
+ venueId: string;
6322
+ };
6323
+ declare function getVenueData({ tournamentRecord, venueId }: GetVenueDataArgs): {
6233
6324
  success?: boolean;
6234
6325
  error?: ErrorType;
6235
- drawInfo?: any;
6326
+ venueData?: any;
6327
+ };
6328
+
6329
+ type GetPublishStateArgs = {
6330
+ tournamentRecord?: Tournament;
6331
+ eventIds?: string[];
6332
+ drawIds?: string[];
6333
+ drawId?: string;
6334
+ event: Event$1;
6335
+ };
6336
+ declare function getPublishState({ tournamentRecord, eventIds, drawIds, drawId, event, }: GetPublishStateArgs): ResultType & {
6337
+ publishState?: any;
6236
6338
  };
6237
6339
 
6238
6340
  type GetEventDataArgs = {
@@ -6251,6 +6353,24 @@ declare function getEventData(params: GetEventDataArgs): {
6251
6353
  eventData?: any;
6252
6354
  };
6253
6355
 
6356
+ declare function getDrawData(params: any): {
6357
+ structures?: any[];
6358
+ success?: boolean;
6359
+ error?: ErrorType;
6360
+ drawInfo?: any;
6361
+ };
6362
+
6363
+ type GetCourtInfoArgs = {
6364
+ tournamentRecord: Tournament;
6365
+ internalUse?: boolean;
6366
+ courtId: string;
6367
+ };
6368
+ declare function getCourtInfo({ tournamentRecord, internalUse, courtId, }: GetCourtInfoArgs): {
6369
+ error?: ErrorType;
6370
+ success?: boolean;
6371
+ courtInfo?: any;
6372
+ };
6373
+
6254
6374
  declare function getAllEventData({ tournamentRecord, policyDefinitions }: {
6255
6375
  tournamentRecord: any;
6256
6376
  policyDefinitions: any;
@@ -6269,34 +6389,6 @@ declare function getAllEventData({ tournamentRecord, policyDefinitions }: {
6269
6389
  error?: undefined;
6270
6390
  };
6271
6391
 
6272
- type GetCourtInfoArgs = {
6273
- tournamentRecord: Tournament;
6274
- internalUse?: boolean;
6275
- courtId: string;
6276
- };
6277
- declare function getCourtInfo({ tournamentRecord, internalUse, courtId, }: GetCourtInfoArgs): {
6278
- error?: ErrorType;
6279
- success?: boolean;
6280
- courtInfo?: any;
6281
- };
6282
-
6283
- type GetVenueDataArgs = {
6284
- tournamentRecord: Tournament;
6285
- venueId: string;
6286
- };
6287
- declare function getVenueData({ tournamentRecord, venueId }: GetVenueDataArgs): {
6288
- success?: boolean;
6289
- error?: ErrorType;
6290
- venueData?: any;
6291
- };
6292
-
6293
- declare function getTournamentInfo({ tournamentRecord }: {
6294
- tournamentRecord: any;
6295
- }): {
6296
- tournamentInfo?: any;
6297
- error?: ErrorType;
6298
- };
6299
-
6300
6392
  type RemovePolicyArgs = {
6301
6393
  tournamentRecords?: TournamentRecords;
6302
6394
  tournamentRecord?: Tournament;
@@ -7074,6 +7166,7 @@ type GenerateDrawMaticRoundArgs = {
7074
7166
  restrictEntryStatus?: boolean;
7075
7167
  drawDefinition: DrawDefinition;
7076
7168
  generateMatchUps?: boolean;
7169
+ eventType?: EventTypeUnion;
7077
7170
  salted?: number | boolean;
7078
7171
  participantIds?: string[];
7079
7172
  encounterValue?: number;
@@ -7082,9 +7175,10 @@ type GenerateDrawMaticRoundArgs = {
7082
7175
  matchUpIds?: string[];
7083
7176
  structure?: Structure;
7084
7177
  structureId?: string;
7085
- eventType?: EventTypeUnion;
7086
7178
  scaleName?: string;
7179
+ isMock?: boolean;
7087
7180
  drawId?: string;
7181
+ event: Event$1;
7088
7182
  };
7089
7183
  type DrawMaticRoundResult = {
7090
7184
  participantIdPairings?: string[][];
@@ -7095,10 +7189,9 @@ type DrawMaticRoundResult = {
7095
7189
  maxDelta?: number;
7096
7190
  maxDiff?: number;
7097
7191
  };
7098
- declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, participantIds, drawDefinition, adHocRatings, structureId, salted, matchUpIds, eventType, structure, scaleName, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
7192
+ declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, participantIds, drawDefinition, adHocRatings, structureId, salted, matchUpIds, eventType, structure, scaleName, isMock, event, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
7099
7193
 
7100
7194
  type DrawMaticArgs = {
7101
- tournamentParticipants?: HydratedParticipant[];
7102
7195
  adHocRatings?: {
7103
7196
  [key: string]: number;
7104
7197
  };
@@ -7106,6 +7199,7 @@ type DrawMaticArgs = {
7106
7199
  drawDefinition?: DrawDefinition;
7107
7200
  tournamentRecord: Tournament;
7108
7201
  generateMatchUps?: boolean;
7202
+ eventType?: EventTypeUnion;
7109
7203
  salted?: number | boolean;
7110
7204
  participantIds?: string[];
7111
7205
  encounterValue?: number;
@@ -7114,11 +7208,13 @@ type DrawMaticArgs = {
7114
7208
  structure?: Structure;
7115
7209
  matchUpIds?: string[];
7116
7210
  structureId?: string;
7117
- eventType?: EventTypeUnion;
7118
- event?: Event$1;
7211
+ isMock?: boolean;
7212
+ event: Event$1;
7119
7213
  scaleAccessor?: string;
7120
7214
  scaleName?: string;
7121
7215
  };
7216
+ declare function drawMatic({ restrictEntryStatus, adHocRatings, generateMatchUps, tournamentRecord, participantIds, encounterValue, sameTeamValue, drawDefinition, scaleAccessor, maxIterations, structureId, matchUpIds, scaleName, // custom rating name to seed dynamic ratings
7217
+ eventType, isMock, salted, event, }: DrawMaticArgs): ResultType & DrawMaticRoundResult;
7122
7218
 
7123
7219
  type GenerateDrawDefinitionArgs = {
7124
7220
  automated?: boolean | {
@@ -7218,8 +7314,10 @@ type GenerateAdHocMatchUpsArgs = {
7218
7314
  roundNumber?: number;
7219
7315
  structureId?: string;
7220
7316
  newRound?: boolean;
7317
+ isMock?: boolean;
7318
+ event: Event$1;
7221
7319
  };
7222
- declare function generateAdHocMatchUps({ participantIdPairings, matchUpIds, drawDefinition, matchUpsCount, roundNumber, structureId, newRound, }: GenerateAdHocMatchUpsArgs): {
7320
+ declare function generateAdHocMatchUps({ participantIdPairings, matchUpIds, drawDefinition, matchUpsCount, roundNumber, structureId, newRound, isMock, event, }: GenerateAdHocMatchUpsArgs): {
7223
7321
  matchUpsCount?: number;
7224
7322
  matchUps?: MatchUp[];
7225
7323
  error?: ErrorType;
@@ -8264,8 +8362,6 @@ declare function enableTieAutoCalc({ tournamentRecord, drawDefinition, matchUpId
8264
8362
  event: any;
8265
8363
  }): any;
8266
8364
 
8267
- declare function drawMatic(params: any): any;
8268
-
8269
8365
  declare function disableTieAutoCalc({ drawDefinition, matchUpId, event }: {
8270
8366
  drawDefinition: any;
8271
8367
  matchUpId: any;
@@ -9071,19 +9167,19 @@ declare const governors: {
9071
9167
  removePolicy: typeof removePolicy;
9072
9168
  };
9073
9169
  publishingGovernor: {
9074
- getTournamentInfo: typeof getTournamentInfo;
9075
- getVenueData: typeof getVenueData;
9076
- getCourtInfo: typeof getCourtInfo;
9077
9170
  getAllEventData: typeof getAllEventData;
9078
- getEventData: typeof getEventData;
9171
+ getCourtInfo: typeof getCourtInfo;
9079
9172
  getDrawData: typeof getDrawData;
9080
- unPublishEventSeeding: typeof unPublishEventSeeding;
9173
+ getEventData: typeof getEventData;
9174
+ getPublishState: typeof getPublishState;
9175
+ getVenueData: typeof getVenueData;
9176
+ publishEvent: typeof publishEvent;
9081
9177
  publishEventSeeding: typeof publishEventSeeding;
9178
+ publishOrderOfPlay: typeof publishOrderOfPlay;
9082
9179
  setEventDisplay: typeof setEventDisplay;
9083
9180
  unPublishEvent: typeof unPublishEvent;
9084
- publishEvent: typeof publishEvent;
9181
+ unPublishEventSeeding: typeof unPublishEventSeeding;
9085
9182
  unPublishOrderOfPlay: typeof unPublishOrderOfPlay;
9086
- publishOrderOfPlay: typeof publishOrderOfPlay;
9087
9183
  };
9088
9184
  queryGovernor: {
9089
9185
  allCompetitionMatchUps: typeof allCompetitionMatchUps;
@@ -9131,6 +9227,7 @@ declare const governors: {
9131
9227
  getCourts: typeof getCourts;
9132
9228
  getDrawDefinitionTimeItem: typeof getDrawDefinitionTimeItem;
9133
9229
  getDrawParticipantRepresentativeIds: typeof getDrawParticipantRepresentativeIds;
9230
+ getDrawTypeCoercion: typeof getDrawTypeCoercion;
9134
9231
  getEligibleVoluntaryConsolationParticipants: typeof getEligibleVoluntaryConsolationParticipants;
9135
9232
  getEntriesAndSeedsCount: typeof getEntriesAndSeedsCount;
9136
9233
  getEvent: typeof getEvent;
@@ -9176,6 +9273,7 @@ declare const governors: {
9176
9273
  getTeamLineUp: typeof getTeamLineUp;
9177
9274
  getTieFormat: typeof getTieFormat;
9178
9275
  getTournamentIds: typeof getTournamentIds;
9276
+ getTournamentInfo: typeof getTournamentInfo;
9179
9277
  getTournamentPenalties: typeof getTournamentPenalties;
9180
9278
  getTournamentPersons: typeof getTournamentPersons;
9181
9279
  getTournamentStructures: typeof getTournamentStructures;
@@ -9569,6 +9667,154 @@ declare const scoreGovernor: {
9569
9667
  };
9570
9668
  };
9571
9669
 
9670
+ type Notice = {
9671
+ topic: string;
9672
+ payload: any;
9673
+ key?: string;
9674
+ };
9675
+ type DevContextType = {
9676
+ errors?: boolean | string[];
9677
+ params?: boolean | string[];
9678
+ result?: boolean | string[];
9679
+ exclude?: string[];
9680
+ [key: string]: any;
9681
+ } | boolean;
9682
+ type ImplemtationGlobalStateTypes = {
9683
+ tournamentRecords: TournamentRecords;
9684
+ tournamentId?: string | undefined;
9685
+ methods: {
9686
+ [key: string]: any;
9687
+ };
9688
+ disableNotifications: boolean;
9689
+ subscriptions: any;
9690
+ notices: Notice[];
9691
+ modified: boolean;
9692
+ };
9693
+ declare function setStateProvider(globalStateProvider?: {
9694
+ [key: string]: any;
9695
+ }): {
9696
+ success: boolean;
9697
+ };
9698
+ declare function createInstanceState(): {
9699
+ error: unknown;
9700
+ success?: undefined;
9701
+ } | {
9702
+ success: boolean;
9703
+ error?: undefined;
9704
+ };
9705
+ /**
9706
+ * if contextCriteria, check whether all contextCriteria keys values are equivalent with globalState.devContext object
9707
+ */
9708
+ declare function getDevContext(contextCriteria?: {
9709
+ [key: string]: any;
9710
+ }): DevContextType;
9711
+ declare function timeKeeper(action?: string, timer?: string): any;
9712
+ declare function setGlobalLog(loggingFx?: any): void;
9713
+ declare function setDevContext(value?: DevContextType): void;
9714
+ declare function disableNotifications(): void;
9715
+ declare function enableNotifications(): void;
9716
+ type DeepCopyAttributes = {
9717
+ threshold?: number;
9718
+ stringify?: string[];
9719
+ ignore?: string[];
9720
+ toJSON?: string[];
9721
+ };
9722
+ declare function setDeepCopy(value: boolean, attributes: DeepCopyAttributes): void;
9723
+ declare function deepCopyEnabled(): {
9724
+ threshold?: number | undefined;
9725
+ modulate?: any;
9726
+ stringify: string[];
9727
+ ignore: any;
9728
+ toJSON: string[];
9729
+ enabled: boolean;
9730
+ };
9731
+ declare function setSubscriptions(params: any): any;
9732
+ declare function setMethods(params?: {
9733
+ [key: string]: any;
9734
+ }): any;
9735
+ declare function cycleMutationStatus(): any;
9736
+ declare function addNotice(notice: Notice): any;
9737
+ type GetNoticesArgs = {
9738
+ topic: string;
9739
+ };
9740
+ declare function getMethods(): {
9741
+ [key: string]: any;
9742
+ };
9743
+ declare function getNotices(params: GetNoticesArgs): string[];
9744
+ type DeleteNoticeArgs = {
9745
+ topic?: string;
9746
+ key: string;
9747
+ };
9748
+ declare function deleteNotice({ key, topic }: DeleteNoticeArgs): any;
9749
+ declare function deleteNotices(): any;
9750
+ declare function getTopics(): any;
9751
+ type CallListenerArgs = {
9752
+ notices: Notice[];
9753
+ topic: string;
9754
+ };
9755
+ declare function callListener(payload: any): Promise<any>;
9756
+ declare function getTournamentId(): any;
9757
+ declare function getTournamentRecord(tournamentId: string): any;
9758
+ declare function getTournamentRecords(): any;
9759
+ declare function setTournamentRecord(tournamentRecord: ResultType): any;
9760
+ declare function setTournamentRecords(tournamentRecords: any): any;
9761
+ declare function setTournamentId(tournamentId?: string): {
9762
+ success?: boolean;
9763
+ error?: ErrorType;
9764
+ };
9765
+ declare function removeTournamentRecord(tournamentId: string): any;
9766
+ declare function getProvider(): any;
9767
+ type HandleCaughtErrorArgs = {
9768
+ engineName?: string;
9769
+ methodName: string;
9770
+ params: any;
9771
+ err: any;
9772
+ };
9773
+ declare function handleCaughtError({ engineName, methodName, params, err, }: HandleCaughtErrorArgs): any;
9774
+ declare function globalLog(engine: string, log: any): void;
9775
+
9776
+ type globalState_CallListenerArgs = CallListenerArgs;
9777
+ type globalState_DeepCopyAttributes = DeepCopyAttributes;
9778
+ type globalState_DeleteNoticeArgs = DeleteNoticeArgs;
9779
+ type globalState_DevContextType = DevContextType;
9780
+ type globalState_GetNoticesArgs = GetNoticesArgs;
9781
+ type globalState_HandleCaughtErrorArgs = HandleCaughtErrorArgs;
9782
+ type globalState_ImplemtationGlobalStateTypes = ImplemtationGlobalStateTypes;
9783
+ type globalState_Notice = Notice;
9784
+ declare const globalState_addNotice: typeof addNotice;
9785
+ declare const globalState_callListener: typeof callListener;
9786
+ declare const globalState_createInstanceState: typeof createInstanceState;
9787
+ declare const globalState_cycleMutationStatus: typeof cycleMutationStatus;
9788
+ declare const globalState_deepCopyEnabled: typeof deepCopyEnabled;
9789
+ declare const globalState_deleteNotice: typeof deleteNotice;
9790
+ declare const globalState_deleteNotices: typeof deleteNotices;
9791
+ declare const globalState_disableNotifications: typeof disableNotifications;
9792
+ declare const globalState_enableNotifications: typeof enableNotifications;
9793
+ declare const globalState_getDevContext: typeof getDevContext;
9794
+ declare const globalState_getMethods: typeof getMethods;
9795
+ declare const globalState_getNotices: typeof getNotices;
9796
+ declare const globalState_getProvider: typeof getProvider;
9797
+ declare const globalState_getTopics: typeof getTopics;
9798
+ declare const globalState_getTournamentId: typeof getTournamentId;
9799
+ declare const globalState_getTournamentRecord: typeof getTournamentRecord;
9800
+ declare const globalState_getTournamentRecords: typeof getTournamentRecords;
9801
+ declare const globalState_globalLog: typeof globalLog;
9802
+ declare const globalState_handleCaughtError: typeof handleCaughtError;
9803
+ declare const globalState_removeTournamentRecord: typeof removeTournamentRecord;
9804
+ declare const globalState_setDeepCopy: typeof setDeepCopy;
9805
+ declare const globalState_setDevContext: typeof setDevContext;
9806
+ declare const globalState_setGlobalLog: typeof setGlobalLog;
9807
+ declare const globalState_setMethods: typeof setMethods;
9808
+ declare const globalState_setStateProvider: typeof setStateProvider;
9809
+ declare const globalState_setSubscriptions: typeof setSubscriptions;
9810
+ declare const globalState_setTournamentId: typeof setTournamentId;
9811
+ declare const globalState_setTournamentRecord: typeof setTournamentRecord;
9812
+ declare const globalState_setTournamentRecords: typeof setTournamentRecords;
9813
+ declare const globalState_timeKeeper: typeof timeKeeper;
9814
+ declare namespace globalState {
9815
+ export { type globalState_CallListenerArgs as CallListenerArgs, type globalState_DeepCopyAttributes as DeepCopyAttributes, type globalState_DeleteNoticeArgs as DeleteNoticeArgs, type globalState_DevContextType as DevContextType, type globalState_GetNoticesArgs as GetNoticesArgs, type globalState_HandleCaughtErrorArgs as HandleCaughtErrorArgs, type globalState_ImplemtationGlobalStateTypes as ImplemtationGlobalStateTypes, type globalState_Notice as Notice, globalState_addNotice as addNotice, globalState_callListener as callListener, globalState_createInstanceState as createInstanceState, globalState_cycleMutationStatus as cycleMutationStatus, globalState_deepCopyEnabled as deepCopyEnabled, globalState_deleteNotice as deleteNotice, globalState_deleteNotices as deleteNotices, globalState_disableNotifications as disableNotifications, globalState_enableNotifications as enableNotifications, globalState_getDevContext as getDevContext, globalState_getMethods as getMethods, globalState_getNotices as getNotices, globalState_getProvider as getProvider, globalState_getTopics as getTopics, globalState_getTournamentId as getTournamentId, globalState_getTournamentRecord as getTournamentRecord, globalState_getTournamentRecords as getTournamentRecords, globalState_globalLog as globalLog, globalState_handleCaughtError as handleCaughtError, globalState_removeTournamentRecord as removeTournamentRecord, globalState_setDeepCopy as setDeepCopy, globalState_setDevContext as setDevContext, globalState_setGlobalLog as setGlobalLog, globalState_setMethods as setMethods, globalState_setStateProvider as setStateProvider, globalState_setSubscriptions as setSubscriptions, globalState_setTournamentId as setTournamentId, globalState_setTournamentRecord as setTournamentRecord, globalState_setTournamentRecords as setTournamentRecords, globalState_timeKeeper as timeKeeper };
9816
+ }
9817
+
9572
9818
  declare const forge: {};
9573
9819
 
9574
9820
  declare function asyncEngine(test?: boolean): FactoryEngine & {
@@ -11498,27 +11744,6 @@ declare const factoryConstants: {
11498
11744
  };
11499
11745
  };
11500
11746
 
11501
- declare const participantRoles: {
11502
- ADMINISTRATION: any;
11503
- CAPTAIN: any;
11504
- COACH: any;
11505
- COMPETITOR: any;
11506
- MEDIA: any;
11507
- MEDICAL: any;
11508
- OFFICIAL: any;
11509
- OTHER: any;
11510
- SECURITY: any;
11511
- };
11512
-
11513
- declare const matchUpTypes: {
11514
- SINGLES_MATCHUP: string;
11515
- SINGLES: string;
11516
- DOUBLES_MATCHUP: string;
11517
- DOUBLES: string;
11518
- TEAM_MATCHUP: string;
11519
- TEAM: string;
11520
- };
11521
-
11522
11747
  declare const drawDefinitionConstants: {
11523
11748
  MAIN: string;
11524
11749
  QUALIFYING: string;
@@ -11699,6 +11924,27 @@ declare const matchUpStatusConstants: {
11699
11924
  WALKOVER: any;
11700
11925
  };
11701
11926
 
11927
+ declare const matchUpTypes: {
11928
+ SINGLES_MATCHUP: string;
11929
+ SINGLES: string;
11930
+ DOUBLES_MATCHUP: string;
11931
+ DOUBLES: string;
11932
+ TEAM_MATCHUP: string;
11933
+ TEAM: string;
11934
+ };
11935
+
11936
+ declare const participantRoles: {
11937
+ ADMINISTRATION: any;
11938
+ CAPTAIN: any;
11939
+ COACH: any;
11940
+ COMPETITOR: any;
11941
+ MEDIA: any;
11942
+ MEDICAL: any;
11943
+ OFFICIAL: any;
11944
+ OTHER: any;
11945
+ SECURITY: any;
11946
+ };
11947
+
11702
11948
  declare const penaltyConstants: {
11703
11949
  COACHING: string;
11704
11950
  BALL_ABUSE: string;
@@ -11803,32 +12049,4 @@ declare const venueConstants: {
11803
12049
  OUTDOOR: string;
11804
12050
  };
11805
12051
 
11806
- type DevContextType = {
11807
- errors?: boolean | string[];
11808
- params?: boolean | string[];
11809
- result?: boolean | string[];
11810
- exclude?: string[];
11811
- [key: string]: any;
11812
- } | boolean;
11813
- declare function setStateProvider(globalStateProvider?: {
11814
- [key: string]: any;
11815
- }): {
11816
- success: boolean;
11817
- };
11818
- declare function setGlobalLog(loggingFx?: any): void;
11819
- declare function setDevContext(value?: DevContextType): void;
11820
- type DeepCopyAttributes = {
11821
- threshold?: number;
11822
- stringify?: string[];
11823
- ignore?: string[];
11824
- toJSON?: string[];
11825
- };
11826
- declare function setDeepCopy(value: boolean, attributes: DeepCopyAttributes): void;
11827
- declare function setSubscriptions(params: any): any;
11828
- type GetNoticesArgs = {
11829
- topic: string;
11830
- };
11831
- declare function getNotices(params: GetNoticesArgs): string[];
11832
- declare function deleteNotices(): any;
11833
-
11834
- export { askEngine, asyncEngine, competitionEngine, deleteNotices, drawDefinitionConstants, entryStatusConstants, errorConditionConstants, eventConstants, factoryConstants, fixtures, flightConstants, forge, genderConstants, getNotices, governors, keyValueConstants, matchUpActionConstants, matchUpEngine, matchUpFormatCode, matchUpStatusConstants, matchUpTypes, mocksEngine, participantConstants, participantRoles, participantTypes, penaltyConstants, policyConstants, positionActionConstants, resultConstants, scaleConstants, scaleEngine, scoreGovernor, setDeepCopy, setDevContext, setGlobalLog, setStateProvider, setSubscriptions, surfaceConstants, engine as syncEngine, timeItemConstants, tournamentEngine, utilities, venueConstants, factoryVersion as version };
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 };