tods-competition-factory 2.0.56 → 2.0.58

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.
@@ -6164,6 +6164,7 @@ type GenerateTournamentRecordArgs = {
6164
6164
  drawProfiles?: any[];
6165
6165
  startDate?: string;
6166
6166
  endDate?: string;
6167
+ isMock?: boolean;
6167
6168
  uuids?: string[];
6168
6169
  };
6169
6170
  declare function generateTournamentRecord(params: GenerateTournamentRecordArgs): any;
@@ -6232,13 +6233,13 @@ declare function generateOutcome(params: any): {
6232
6233
  matchUpStatusProfile?: undefined;
6233
6234
  };
6234
6235
 
6235
- declare const generate$2_generateEventWithDraw: typeof generateEventWithDraw;
6236
- declare const generate$2_generateOutcome: typeof generateOutcome;
6237
- declare const generate$2_generateOutcomeFromScoreString: typeof generateOutcomeFromScoreString;
6238
- declare const generate$2_generateParticipants: typeof generateParticipants;
6239
- declare const generate$2_generateTournamentRecord: typeof generateTournamentRecord;
6240
- declare namespace generate$2 {
6241
- export { generate$2_generateEventWithDraw as generateEventWithDraw, generate$2_generateOutcome as generateOutcome, generate$2_generateOutcomeFromScoreString as generateOutcomeFromScoreString, generate$2_generateParticipants as generateParticipants, generate$2_generateTournamentRecord as generateTournamentRecord };
6236
+ declare const generate$3_generateEventWithDraw: typeof generateEventWithDraw;
6237
+ declare const generate$3_generateOutcome: typeof generateOutcome;
6238
+ declare const generate$3_generateOutcomeFromScoreString: typeof generateOutcomeFromScoreString;
6239
+ declare const generate$3_generateParticipants: typeof generateParticipants;
6240
+ declare const generate$3_generateTournamentRecord: typeof generateTournamentRecord;
6241
+ declare namespace generate$3 {
6242
+ export { generate$3_generateEventWithDraw as generateEventWithDraw, generate$3_generateOutcome as generateOutcome, generate$3_generateOutcomeFromScoreString as generateOutcomeFromScoreString, generate$3_generateParticipants as generateParticipants, generate$3_generateTournamentRecord as generateTournamentRecord };
6242
6243
  }
6243
6244
 
6244
6245
  declare function anonymizeTournamentRecord({ keepExtensions, anonymizeParticipantNames, tournamentRecord, tournamentName, personIds, tournamentId, }: {
@@ -6274,7 +6275,7 @@ declare const index$d_generateParticipants: typeof generateParticipants;
6274
6275
  declare const index$d_generateTournamentRecord: typeof generateTournamentRecord;
6275
6276
  declare const index$d_modifyTournamentRecord: typeof modifyTournamentRecord;
6276
6277
  declare namespace index$d {
6277
- export { index$d_anonymizeTournamentRecord as anonymizeTournamentRecord, generate$2 as generate, index$d_generateEventWithDraw as generateEventWithDraw, index$d_generateOutcome as generateOutcome, index$d_generateOutcomeFromScoreString as generateOutcomeFromScoreString, index$d_generateParticipants as generateParticipants, index$d_generateTournamentRecord as generateTournamentRecord, index$d_modifyTournamentRecord as modifyTournamentRecord, mutate$8 as mutate };
6278
+ export { index$d_anonymizeTournamentRecord as anonymizeTournamentRecord, generate$3 as generate, index$d_generateEventWithDraw as generateEventWithDraw, index$d_generateOutcome as generateOutcome, index$d_generateOutcomeFromScoreString as generateOutcomeFromScoreString, index$d_generateParticipants as generateParticipants, index$d_generateTournamentRecord as generateTournamentRecord, index$d_modifyTournamentRecord as modifyTournamentRecord, mutate$8 as mutate };
6278
6279
  }
6279
6280
 
6280
6281
  declare function modifyPersonRequests(params: any): ResultType & {
@@ -8540,11 +8541,11 @@ declare function reverseScore(params?: any): {
8540
8541
  error?: ErrorType;
8541
8542
  };
8542
8543
 
8543
- declare const generate$1_generateScoreString: typeof generateScoreString;
8544
- declare const generate$1_generateTieMatchUpScore: typeof generateTieMatchUpScore;
8545
- declare const generate$1_reverseScore: typeof reverseScore;
8546
- declare namespace generate$1 {
8547
- export { generate$1_generateScoreString as generateScoreString, generate$1_generateTieMatchUpScore as generateTieMatchUpScore, generate$1_reverseScore as reverseScore };
8544
+ declare const generate$2_generateScoreString: typeof generateScoreString;
8545
+ declare const generate$2_generateTieMatchUpScore: typeof generateTieMatchUpScore;
8546
+ declare const generate$2_reverseScore: typeof reverseScore;
8547
+ declare namespace generate$2 {
8548
+ export { generate$2_generateScoreString as generateScoreString, generate$2_generateTieMatchUpScore as generateTieMatchUpScore, generate$2_reverseScore as reverseScore };
8548
8549
  }
8549
8550
 
8550
8551
  declare function calculateHistoryScore(params: any): {
@@ -8848,7 +8849,7 @@ declare const index$6_undo: typeof undo;
8848
8849
  declare const index$6_validateScore: typeof validateScore;
8849
8850
  declare const index$6_validateTieFormat: typeof validateTieFormat;
8850
8851
  declare namespace index$6 {
8851
- export { index$6_addGame as addGame, index$6_addPoint as addPoint, index$6_addSet as addSet, index$6_addShot as addShot, index$6_analyzeScore as analyzeScore, index$6_analyzeSet as analyzeSet, index$6_calculateHistoryScore as calculateHistoryScore, index$6_checkScoreHasValue as checkScoreHasValue, index$6_checkSetIsComplete as checkSetIsComplete, index$6_clearHistory as clearHistory, generate$1 as generate, index$6_generateScoreString as generateScoreString, index$6_generateTieMatchUpScore as generateTieMatchUpScore, index$6_getSetComplement as getSetComplement, index$6_getTiebreakComplement as getTiebreakComplement, help as helpers, index$6_isValidMatchUpFormat as isValidMatchUpFormat, index$6_keyValueScore as keyValueScore, mutate$3 as mutate, parse as parseMatchUpFormat, index$6_parseScoreString as parseScoreString, index$6_query as query, index$6_redo as redo, index$6_reverseScore as reverseScore, index$6_setServingSide as setServingSide, stringify as stringifyMatchUpFormat, index$6_tidyScore as tidyScore, index$6_umo as umo, index$6_undo as undo, index$6_validateScore as validateScore, index$6_validateTieFormat as validateTieFormat };
8852
+ export { index$6_addGame as addGame, index$6_addPoint as addPoint, index$6_addSet as addSet, index$6_addShot as addShot, index$6_analyzeScore as analyzeScore, index$6_analyzeSet as analyzeSet, index$6_calculateHistoryScore as calculateHistoryScore, index$6_checkScoreHasValue as checkScoreHasValue, index$6_checkSetIsComplete as checkSetIsComplete, index$6_clearHistory as clearHistory, generate$2 as generate, index$6_generateScoreString as generateScoreString, index$6_generateTieMatchUpScore as generateTieMatchUpScore, index$6_getSetComplement as getSetComplement, index$6_getTiebreakComplement as getTiebreakComplement, help as helpers, index$6_isValidMatchUpFormat as isValidMatchUpFormat, index$6_keyValueScore as keyValueScore, mutate$3 as mutate, parse as parseMatchUpFormat, index$6_parseScoreString as parseScoreString, index$6_query as query, index$6_redo as redo, index$6_reverseScore as reverseScore, index$6_setServingSide as setServingSide, stringify as stringifyMatchUpFormat, index$6_tidyScore as tidyScore, index$6_umo as umo, index$6_undo as undo, index$6_validateScore as validateScore, index$6_validateTieFormat as validateTieFormat };
8852
8853
  }
8853
8854
 
8854
8855
  type ModifyCollectionDefinitionArgs = {
@@ -9040,6 +9041,13 @@ declare namespace index$5 {
9040
9041
  export { index$5_addCollectionDefinition as addCollectionDefinition, index$5_addCollectionGroup as addCollectionGroup, index$5_aggregateTieFormats as aggregateTieFormats, index$5_compareTieFormats as compareTieFormats, index$5_getTieFormat as getTieFormat, index$5_modifyCollectionDefinition as modifyCollectionDefinition, index$5_modifyTieFormat as modifyTieFormat, mutate$2 as mutate, index$5_orderCollectionDefinitions as orderCollectionDefinitions, query$3 as query, index$5_removeCollectionDefinition as removeCollectionDefinition, index$5_removeCollectionGroup as removeCollectionGroup, index$5_tieFormatGenderValidityCheck as tieFormatGenderValidityCheck, index$5_validateCollectionDefinition as validateCollectionDefinition };
9041
9042
  }
9042
9043
 
9044
+ declare function createTournamentRecord(params: any): any;
9045
+
9046
+ declare const generate$1_createTournamentRecord: typeof createTournamentRecord;
9047
+ declare namespace generate$1 {
9048
+ export { generate$1_createTournamentRecord as createTournamentRecord };
9049
+ }
9050
+
9043
9051
  declare function setTournamentStatus({ tournamentRecord, status }: {
9044
9052
  tournamentRecord: any;
9045
9053
  status: any;
@@ -9340,6 +9348,7 @@ declare const index$4_addTournamentExtension: typeof addTournamentExtension;
9340
9348
  declare const index$4_addTournamentTimeItem: typeof addTournamentTimeItem;
9341
9349
  declare const index$4_analyzeDraws: typeof analyzeDraws;
9342
9350
  declare const index$4_analyzeTournament: typeof analyzeTournament;
9351
+ declare const index$4_createTournamentRecord: typeof createTournamentRecord;
9343
9352
  declare const index$4_getAllowedDrawTypes: typeof getAllowedDrawTypes;
9344
9353
  declare const index$4_getAllowedMatchUpFormats: typeof getAllowedMatchUpFormats;
9345
9354
  declare const index$4_getAppliedPolicies: typeof getAppliedPolicies;
@@ -9366,7 +9375,7 @@ declare const index$4_setTournamentNotes: typeof setTournamentNotes;
9366
9375
  declare const index$4_setTournamentStartDate: typeof setTournamentStartDate;
9367
9376
  declare const index$4_setTournamentStatus: typeof setTournamentStatus;
9368
9377
  declare namespace index$4 {
9369
- export { index$4_addDrawDefinitionExtension as addDrawDefinitionExtension, index$4_addEventExtension as addEventExtension, index$4_addEventTimeItem as addEventTimeItem, index$4_addExtension as addExtension, index$4_addNotes as addNotes, index$4_addOnlineResource as addOnlineResource, index$4_addParticipantExtension as addParticipantExtension, index$4_addParticipantTimeItem as addParticipantTimeItem, index$4_addTimeItem as addTimeItem, index$4_addTournamentExtension as addTournamentExtension, index$4_addTournamentTimeItem as addTournamentTimeItem, index$4_analyzeDraws as analyzeDraws, index$4_analyzeTournament as analyzeTournament, index$4_getAllowedDrawTypes as getAllowedDrawTypes, index$4_getAllowedMatchUpFormats as getAllowedMatchUpFormats, index$4_getAppliedPolicies as getAppliedPolicies, index$4_getCompetitionDateRange as getCompetitionDateRange, index$4_getCompetitionPenalties as getCompetitionPenalties, index$4_getPolicyDefinitions as getPolicyDefinitions, index$4_getTournamentInfo as getTournamentInfo, index$4_getTournamentPenalties as getTournamentPenalties, index$4_getTournamentPersons as getTournamentPersons, index$4_getTournamentStructures as getTournamentStructures, index$4_getTournamentTimeItem as getTournamentTimeItem, mutate$1 as mutate, query$4 as query, index$4_removeDrawDefinitionExtension as removeDrawDefinitionExtension, index$4_removeEventExtension as removeEventExtension, index$4_removeExtension as removeExtension, index$4_removeNotes as removeNotes, index$4_removeOnlineResource as removeOnlineResource, index$4_removeParticipantExtension as removeParticipantExtension, index$4_removeTournamentExtension as removeTournamentExtension, index$4_setTournamentCategories as setTournamentCategories, index$4_setTournamentDates as setTournamentDates, index$4_setTournamentEndDate as setTournamentEndDate, index$4_setTournamentName as setTournamentName, index$4_setTournamentNotes as setTournamentNotes, index$4_setTournamentStartDate as setTournamentStartDate, index$4_setTournamentStatus as setTournamentStatus };
9378
+ export { index$4_addDrawDefinitionExtension as addDrawDefinitionExtension, index$4_addEventExtension as addEventExtension, index$4_addEventTimeItem as addEventTimeItem, index$4_addExtension as addExtension, index$4_addNotes as addNotes, index$4_addOnlineResource as addOnlineResource, index$4_addParticipantExtension as addParticipantExtension, index$4_addParticipantTimeItem as addParticipantTimeItem, index$4_addTimeItem as addTimeItem, index$4_addTournamentExtension as addTournamentExtension, index$4_addTournamentTimeItem as addTournamentTimeItem, index$4_analyzeDraws as analyzeDraws, index$4_analyzeTournament as analyzeTournament, index$4_createTournamentRecord as createTournamentRecord, generate$1 as generate, index$4_getAllowedDrawTypes as getAllowedDrawTypes, index$4_getAllowedMatchUpFormats as getAllowedMatchUpFormats, index$4_getAppliedPolicies as getAppliedPolicies, index$4_getCompetitionDateRange as getCompetitionDateRange, index$4_getCompetitionPenalties as getCompetitionPenalties, index$4_getPolicyDefinitions as getPolicyDefinitions, index$4_getTournamentInfo as getTournamentInfo, index$4_getTournamentPenalties as getTournamentPenalties, index$4_getTournamentPersons as getTournamentPersons, index$4_getTournamentStructures as getTournamentStructures, index$4_getTournamentTimeItem as getTournamentTimeItem, mutate$1 as mutate, query$4 as query, index$4_removeDrawDefinitionExtension as removeDrawDefinitionExtension, index$4_removeEventExtension as removeEventExtension, index$4_removeExtension as removeExtension, index$4_removeNotes as removeNotes, index$4_removeOnlineResource as removeOnlineResource, index$4_removeParticipantExtension as removeParticipantExtension, index$4_removeTournamentExtension as removeTournamentExtension, index$4_setTournamentCategories as setTournamentCategories, index$4_setTournamentDates as setTournamentDates, index$4_setTournamentEndDate as setTournamentEndDate, index$4_setTournamentName as setTournamentName, index$4_setTournamentNotes as setTournamentNotes, index$4_setTournamentStartDate as setTournamentStartDate, index$4_setTournamentStatus as setTournamentStatus };
9370
9379
  }
9371
9380
 
9372
9381
  declare const generate_generateCourts: typeof generateCourts;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function factoryVersion() {
6
- return '2.0.56';
6
+ return '2.0.58';
7
7
  }
8
8
 
9
9
  function isFunction(obj) {
@@ -21211,8 +21211,10 @@ function attemptToModifyScore(params) {
21211
21211
  const { matchUpStatusCodes, matchUpStatus, structure, matchUp, dualMatchUp, inContextMatchUp } = params;
21212
21212
  const matchUpStatusIsValid = isDirectingMatchUpStatus({ matchUpStatus }) ||
21213
21213
  ([CANCELLED$1, ABANDONED$1].includes(matchUpStatus) && dualMatchUp);
21214
+ const participantsCount = matchUp?.sides?.map((side) => side.participantId).filter(Boolean).length ||
21215
+ inContextMatchUp?.sides?.map((side) => side.participantId).filter(Boolean).length;
21214
21216
  const stack = 'attemptToModifyScore';
21215
- const hasAdHocSides = isAdHoc({ structure }) && matchUp?.sides?.every((side) => side.participantId);
21217
+ const hasAdHocSides = (isAdHoc({ structure }) && participantsCount === 1) || (matchUpStatus === DEFAULTED && participantsCount);
21216
21218
  const validToScore = hasAdHocSides ||
21217
21219
  drawPositionsAssignedParticipantIds({ structure, matchUp, inContextMatchUp }) ||
21218
21220
  params.appliedPolicies?.[POLICY_TYPE_SCORING]?.requireParticipantsForScoring === false;
@@ -27482,7 +27484,7 @@ function reverseScore(params) {
27482
27484
  };
27483
27485
  }
27484
27486
 
27485
- var generate$2 = {
27487
+ var generate$3 = {
27486
27488
  __proto__: null,
27487
27489
  generateScoreString: generateScoreString,
27488
27490
  generateTieMatchUpScore: generateTieMatchUpScore,
@@ -30947,7 +30949,7 @@ var scoreGovernor = {
30947
30949
  checkScoreHasValue: checkScoreHasValue,
30948
30950
  checkSetIsComplete: checkSetIsComplete,
30949
30951
  clearHistory: clearHistory,
30950
- generate: generate$2,
30952
+ generate: generate$3,
30951
30953
  generateScoreString: generateScoreString,
30952
30954
  generateTieMatchUpScore: generateTieMatchUpScore,
30953
30955
  getSetComplement: getSetComplement,
@@ -46839,7 +46841,7 @@ function scheduleProfileRounds(params) {
46839
46841
  }
46840
46842
  }
46841
46843
 
46842
- function newTournamentRecord(params) {
46844
+ function createTournamentRecord(params) {
46843
46845
  const attributes = params || {};
46844
46846
  if (!attributes.tournamentId)
46845
46847
  attributes.tournamentId = UUID();
@@ -48678,7 +48680,7 @@ function smartComplete(params) {
48678
48680
  });
48679
48681
  }
48680
48682
 
48681
- function generateFlightDrawDefinitions({ matchUpStatusProfile, completeAllMatchUps, randomWinningSide, tournamentRecord, drawProfiles, event, }) {
48683
+ function generateFlightDrawDefinitions({ matchUpStatusProfile, completeAllMatchUps, randomWinningSide, tournamentRecord, drawProfiles, isMock, event, }) {
48682
48684
  const flightProfile = getFlightProfile({ event }).flightProfile;
48683
48685
  const { eventName, eventType, category } = event;
48684
48686
  const { startDate } = tournamentRecord;
@@ -48719,10 +48721,10 @@ function generateFlightDrawDefinitions({ matchUpStatusProfile, completeAllMatchU
48719
48721
  matchUpType: eventType,
48720
48722
  seedingScaleName,
48721
48723
  tournamentRecord,
48722
- isMock: true,
48723
48724
  drawEntries,
48724
48725
  drawName,
48725
48726
  drawId,
48727
+ isMock,
48726
48728
  event,
48727
48729
  stage,
48728
48730
  });
@@ -48752,8 +48754,8 @@ function generateFlightDrawDefinitions({ matchUpStatusProfile, completeAllMatchU
48752
48754
  ...drawProfile.withPlayoffs,
48753
48755
  tournamentRecord,
48754
48756
  drawDefinition,
48755
- isMock: true,
48756
48757
  structureId,
48758
+ isMock,
48757
48759
  event,
48758
48760
  });
48759
48761
  if (result?.error)
@@ -49017,6 +49019,7 @@ function generateEventWithFlights(params) {
49017
49019
  randomWinningSide,
49018
49020
  tournamentRecord,
49019
49021
  drawProfiles,
49022
+ isMock,
49020
49023
  event,
49021
49024
  });
49022
49025
  if (drawDefinitionResult.error)
@@ -49974,6 +49977,7 @@ const mockTournamentNames = [
49974
49977
  function generateTournamentRecord(params) {
49975
49978
  let { startDate, endDate } = params ?? {};
49976
49979
  const { tournamentName = randomPop(mockTournamentNames), ratingsParameters: ratingsParameters$1 = ratingsParameters, tournamentExtensions, policyDefinitions, schedulingProfile, venueProfiles, uuids, } = params ?? {};
49980
+ const isMock = params?.isMock === false ? undefined : true;
49977
49981
  if ((startDate && !isValidDateString(startDate)) || (endDate && !isValidDateString(endDate)))
49978
49982
  return { error: INVALID_DATE };
49979
49983
  if ((params.leagueProfiles && !Array.isArray(params.leagueProfiles)) ||
@@ -49989,18 +49993,18 @@ function generateTournamentRecord(params) {
49989
49993
  const tournamentDate = new Date(startDate);
49990
49994
  endDate = formatDate(tournamentDate.setDate(tournamentDate.getDate() + 7));
49991
49995
  }
49992
- const tournamentRecord = newTournamentRecord({
49996
+ const tournamentRecord = createTournamentRecord({
49993
49997
  ...(params.tournamentAttributes ?? {}),
49994
49998
  tournamentName,
49995
- isMock: true,
49996
49999
  startDate,
49997
50000
  endDate,
50001
+ isMock,
49998
50002
  });
49999
50003
  const venueIds = venueProfiles?.length ? generateVenues({ tournamentRecord, venueProfiles, uuids }) : [];
50000
50004
  if (tournamentExtensions?.length && Array.isArray(tournamentExtensions)) {
50001
50005
  const extensions = tournamentExtensions.filter((extension) => isValidExtension({ extension }));
50002
50006
  if (extensions?.length)
50003
- Object.assign(tournamentRecord, { extensions, isMock: true });
50007
+ Object.assign(tournamentRecord, { extensions, isMock });
50004
50008
  }
50005
50009
  if (typeof policyDefinitions === 'object') {
50006
50010
  for (const policyType of Object.keys(policyDefinitions)) {
@@ -50140,7 +50144,7 @@ function scheduleRounds(params) {
50140
50144
  return { scheduledRounds };
50141
50145
  }
50142
50146
 
50143
- var generate$1 = {
50147
+ var generate$2 = {
50144
50148
  __proto__: null,
50145
50149
  generateEventWithDraw: generateEventWithDraw,
50146
50150
  generateOutcome: generateOutcome,
@@ -50417,7 +50421,7 @@ function generatePairParticipantName({ individualParticipantIds, individualParti
50417
50421
  }
50418
50422
 
50419
50423
  function modifyTournamentRecord(params) {
50420
- const { ratingsParameters: ratingsParameters$1 = ratingsParameters, participantsProfile = {}, matchUpStatusProfile, completeAllMatchUps, autoEntryPositions, hydrateCollections, randomWinningSide, schedulingProfile, tournamentRecord, eventProfiles, periodLength, venueProfiles, autoSchedule, drawProfiles, uuids, } = params;
50424
+ const { ratingsParameters: ratingsParameters$1 = ratingsParameters, participantsProfile = {}, matchUpStatusProfile, completeAllMatchUps, autoEntryPositions, hydrateCollections, randomWinningSide, schedulingProfile, tournamentRecord, autoSchedule, eventProfiles, periodLength, venueProfiles, drawProfiles, isMock, uuids, } = params;
50421
50425
  if (!tournamentRecord)
50422
50426
  return { error: MISSING_TOURNAMENT_RECORD };
50423
50427
  const allUniqueParticipantIds = [];
@@ -50525,6 +50529,7 @@ function modifyTournamentRecord(params) {
50525
50529
  randomWinningSide,
50526
50530
  tournamentRecord,
50527
50531
  drawProfiles,
50532
+ isMock,
50528
50533
  event,
50529
50534
  });
50530
50535
  if (result.error)
@@ -50615,7 +50620,7 @@ var mutate$6 = {
50615
50620
  var mocksGovernor = {
50616
50621
  __proto__: null,
50617
50622
  anonymizeTournamentRecord: anonymizeTournamentRecord,
50618
- generate: generate$1,
50623
+ generate: generate$2,
50619
50624
  generateEventWithDraw: generateEventWithDraw,
50620
50625
  generateOutcome: generateOutcome,
50621
50626
  generateOutcomeFromScoreString: generateOutcomeFromScoreString,
@@ -55510,6 +55515,11 @@ var index$4 = {
55510
55515
  validateCollectionDefinition: validateCollectionDefinition
55511
55516
  };
55512
55517
 
55518
+ var generate$1 = {
55519
+ __proto__: null,
55520
+ createTournamentRecord: createTournamentRecord
55521
+ };
55522
+
55513
55523
  const ABANDONED = 'ABANDONED';
55514
55524
  const ACTIVE = 'ACTIVE';
55515
55525
  const CANCELLED = 'CANCELLED';
@@ -55901,6 +55911,8 @@ var index$3 = {
55901
55911
  addTournamentTimeItem: addTournamentTimeItem,
55902
55912
  analyzeDraws: analyzeDraws,
55903
55913
  analyzeTournament: analyzeTournament,
55914
+ createTournamentRecord: createTournamentRecord,
55915
+ generate: generate$1,
55904
55916
  getAllowedDrawTypes: getAllowedDrawTypes,
55905
55917
  getAllowedMatchUpFormats: getAllowedMatchUpFormats,
55906
55918
  getAppliedPolicies: getAppliedPolicies,
@@ -57395,7 +57407,7 @@ function engineStart(engine, engineInvoke) {
57395
57407
  };
57396
57408
  engine.getDevContext = (contextCriteria) => getDevContext(contextCriteria);
57397
57409
  engine.newTournamentRecord = (params = {}) => {
57398
- const result = newTournamentRecord(params);
57410
+ const result = createTournamentRecord(params);
57399
57411
  const tournamentId = result.tournamentId;
57400
57412
  if (result.error)
57401
57413
  return result;