tods-competition-factory 2.0.56 → 2.0.57
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/dist/index.mjs +5 -5
- package/dist/tods-competition-factory.d.ts +24 -15
- package/dist/tods-competition-factory.development.cjs.js +24 -14
- 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 +1 -1
|
@@ -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$
|
|
6236
|
-
declare const generate$
|
|
6237
|
-
declare const generate$
|
|
6238
|
-
declare const generate$
|
|
6239
|
-
declare const generate$
|
|
6240
|
-
declare namespace generate$
|
|
6241
|
-
export { generate$
|
|
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$
|
|
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$
|
|
8544
|
-
declare const generate$
|
|
8545
|
-
declare const generate$
|
|
8546
|
-
declare namespace generate$
|
|
8547
|
-
export { generate$
|
|
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$
|
|
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.
|
|
6
|
+
return '2.0.57';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
function isFunction(obj) {
|
|
@@ -27482,7 +27482,7 @@ function reverseScore(params) {
|
|
|
27482
27482
|
};
|
|
27483
27483
|
}
|
|
27484
27484
|
|
|
27485
|
-
var generate$
|
|
27485
|
+
var generate$3 = {
|
|
27486
27486
|
__proto__: null,
|
|
27487
27487
|
generateScoreString: generateScoreString,
|
|
27488
27488
|
generateTieMatchUpScore: generateTieMatchUpScore,
|
|
@@ -30947,7 +30947,7 @@ var scoreGovernor = {
|
|
|
30947
30947
|
checkScoreHasValue: checkScoreHasValue,
|
|
30948
30948
|
checkSetIsComplete: checkSetIsComplete,
|
|
30949
30949
|
clearHistory: clearHistory,
|
|
30950
|
-
generate: generate$
|
|
30950
|
+
generate: generate$3,
|
|
30951
30951
|
generateScoreString: generateScoreString,
|
|
30952
30952
|
generateTieMatchUpScore: generateTieMatchUpScore,
|
|
30953
30953
|
getSetComplement: getSetComplement,
|
|
@@ -46839,7 +46839,7 @@ function scheduleProfileRounds(params) {
|
|
|
46839
46839
|
}
|
|
46840
46840
|
}
|
|
46841
46841
|
|
|
46842
|
-
function
|
|
46842
|
+
function createTournamentRecord(params) {
|
|
46843
46843
|
const attributes = params || {};
|
|
46844
46844
|
if (!attributes.tournamentId)
|
|
46845
46845
|
attributes.tournamentId = UUID();
|
|
@@ -48678,7 +48678,7 @@ function smartComplete(params) {
|
|
|
48678
48678
|
});
|
|
48679
48679
|
}
|
|
48680
48680
|
|
|
48681
|
-
function generateFlightDrawDefinitions({ matchUpStatusProfile, completeAllMatchUps, randomWinningSide, tournamentRecord, drawProfiles, event, }) {
|
|
48681
|
+
function generateFlightDrawDefinitions({ matchUpStatusProfile, completeAllMatchUps, randomWinningSide, tournamentRecord, drawProfiles, isMock, event, }) {
|
|
48682
48682
|
const flightProfile = getFlightProfile({ event }).flightProfile;
|
|
48683
48683
|
const { eventName, eventType, category } = event;
|
|
48684
48684
|
const { startDate } = tournamentRecord;
|
|
@@ -48719,10 +48719,10 @@ function generateFlightDrawDefinitions({ matchUpStatusProfile, completeAllMatchU
|
|
|
48719
48719
|
matchUpType: eventType,
|
|
48720
48720
|
seedingScaleName,
|
|
48721
48721
|
tournamentRecord,
|
|
48722
|
-
isMock: true,
|
|
48723
48722
|
drawEntries,
|
|
48724
48723
|
drawName,
|
|
48725
48724
|
drawId,
|
|
48725
|
+
isMock,
|
|
48726
48726
|
event,
|
|
48727
48727
|
stage,
|
|
48728
48728
|
});
|
|
@@ -48752,8 +48752,8 @@ function generateFlightDrawDefinitions({ matchUpStatusProfile, completeAllMatchU
|
|
|
48752
48752
|
...drawProfile.withPlayoffs,
|
|
48753
48753
|
tournamentRecord,
|
|
48754
48754
|
drawDefinition,
|
|
48755
|
-
isMock: true,
|
|
48756
48755
|
structureId,
|
|
48756
|
+
isMock,
|
|
48757
48757
|
event,
|
|
48758
48758
|
});
|
|
48759
48759
|
if (result?.error)
|
|
@@ -49017,6 +49017,7 @@ function generateEventWithFlights(params) {
|
|
|
49017
49017
|
randomWinningSide,
|
|
49018
49018
|
tournamentRecord,
|
|
49019
49019
|
drawProfiles,
|
|
49020
|
+
isMock,
|
|
49020
49021
|
event,
|
|
49021
49022
|
});
|
|
49022
49023
|
if (drawDefinitionResult.error)
|
|
@@ -49974,6 +49975,7 @@ const mockTournamentNames = [
|
|
|
49974
49975
|
function generateTournamentRecord(params) {
|
|
49975
49976
|
let { startDate, endDate } = params ?? {};
|
|
49976
49977
|
const { tournamentName = randomPop(mockTournamentNames), ratingsParameters: ratingsParameters$1 = ratingsParameters, tournamentExtensions, policyDefinitions, schedulingProfile, venueProfiles, uuids, } = params ?? {};
|
|
49978
|
+
const isMock = params?.isMock === false ? undefined : true;
|
|
49977
49979
|
if ((startDate && !isValidDateString(startDate)) || (endDate && !isValidDateString(endDate)))
|
|
49978
49980
|
return { error: INVALID_DATE };
|
|
49979
49981
|
if ((params.leagueProfiles && !Array.isArray(params.leagueProfiles)) ||
|
|
@@ -49989,18 +49991,18 @@ function generateTournamentRecord(params) {
|
|
|
49989
49991
|
const tournamentDate = new Date(startDate);
|
|
49990
49992
|
endDate = formatDate(tournamentDate.setDate(tournamentDate.getDate() + 7));
|
|
49991
49993
|
}
|
|
49992
|
-
const tournamentRecord =
|
|
49994
|
+
const tournamentRecord = createTournamentRecord({
|
|
49993
49995
|
...(params.tournamentAttributes ?? {}),
|
|
49994
49996
|
tournamentName,
|
|
49995
|
-
isMock: true,
|
|
49996
49997
|
startDate,
|
|
49997
49998
|
endDate,
|
|
49999
|
+
isMock,
|
|
49998
50000
|
});
|
|
49999
50001
|
const venueIds = venueProfiles?.length ? generateVenues({ tournamentRecord, venueProfiles, uuids }) : [];
|
|
50000
50002
|
if (tournamentExtensions?.length && Array.isArray(tournamentExtensions)) {
|
|
50001
50003
|
const extensions = tournamentExtensions.filter((extension) => isValidExtension({ extension }));
|
|
50002
50004
|
if (extensions?.length)
|
|
50003
|
-
Object.assign(tournamentRecord, { extensions, isMock
|
|
50005
|
+
Object.assign(tournamentRecord, { extensions, isMock });
|
|
50004
50006
|
}
|
|
50005
50007
|
if (typeof policyDefinitions === 'object') {
|
|
50006
50008
|
for (const policyType of Object.keys(policyDefinitions)) {
|
|
@@ -50140,7 +50142,7 @@ function scheduleRounds(params) {
|
|
|
50140
50142
|
return { scheduledRounds };
|
|
50141
50143
|
}
|
|
50142
50144
|
|
|
50143
|
-
var generate$
|
|
50145
|
+
var generate$2 = {
|
|
50144
50146
|
__proto__: null,
|
|
50145
50147
|
generateEventWithDraw: generateEventWithDraw,
|
|
50146
50148
|
generateOutcome: generateOutcome,
|
|
@@ -50417,7 +50419,7 @@ function generatePairParticipantName({ individualParticipantIds, individualParti
|
|
|
50417
50419
|
}
|
|
50418
50420
|
|
|
50419
50421
|
function modifyTournamentRecord(params) {
|
|
50420
|
-
const { ratingsParameters: ratingsParameters$1 = ratingsParameters, participantsProfile = {}, matchUpStatusProfile, completeAllMatchUps, autoEntryPositions, hydrateCollections, randomWinningSide, schedulingProfile, tournamentRecord, eventProfiles, periodLength, venueProfiles,
|
|
50422
|
+
const { ratingsParameters: ratingsParameters$1 = ratingsParameters, participantsProfile = {}, matchUpStatusProfile, completeAllMatchUps, autoEntryPositions, hydrateCollections, randomWinningSide, schedulingProfile, tournamentRecord, autoSchedule, eventProfiles, periodLength, venueProfiles, drawProfiles, isMock, uuids, } = params;
|
|
50421
50423
|
if (!tournamentRecord)
|
|
50422
50424
|
return { error: MISSING_TOURNAMENT_RECORD };
|
|
50423
50425
|
const allUniqueParticipantIds = [];
|
|
@@ -50525,6 +50527,7 @@ function modifyTournamentRecord(params) {
|
|
|
50525
50527
|
randomWinningSide,
|
|
50526
50528
|
tournamentRecord,
|
|
50527
50529
|
drawProfiles,
|
|
50530
|
+
isMock,
|
|
50528
50531
|
event,
|
|
50529
50532
|
});
|
|
50530
50533
|
if (result.error)
|
|
@@ -50615,7 +50618,7 @@ var mutate$6 = {
|
|
|
50615
50618
|
var mocksGovernor = {
|
|
50616
50619
|
__proto__: null,
|
|
50617
50620
|
anonymizeTournamentRecord: anonymizeTournamentRecord,
|
|
50618
|
-
generate: generate$
|
|
50621
|
+
generate: generate$2,
|
|
50619
50622
|
generateEventWithDraw: generateEventWithDraw,
|
|
50620
50623
|
generateOutcome: generateOutcome,
|
|
50621
50624
|
generateOutcomeFromScoreString: generateOutcomeFromScoreString,
|
|
@@ -55510,6 +55513,11 @@ var index$4 = {
|
|
|
55510
55513
|
validateCollectionDefinition: validateCollectionDefinition
|
|
55511
55514
|
};
|
|
55512
55515
|
|
|
55516
|
+
var generate$1 = {
|
|
55517
|
+
__proto__: null,
|
|
55518
|
+
createTournamentRecord: createTournamentRecord
|
|
55519
|
+
};
|
|
55520
|
+
|
|
55513
55521
|
const ABANDONED = 'ABANDONED';
|
|
55514
55522
|
const ACTIVE = 'ACTIVE';
|
|
55515
55523
|
const CANCELLED = 'CANCELLED';
|
|
@@ -55901,6 +55909,8 @@ var index$3 = {
|
|
|
55901
55909
|
addTournamentTimeItem: addTournamentTimeItem,
|
|
55902
55910
|
analyzeDraws: analyzeDraws,
|
|
55903
55911
|
analyzeTournament: analyzeTournament,
|
|
55912
|
+
createTournamentRecord: createTournamentRecord,
|
|
55913
|
+
generate: generate$1,
|
|
55904
55914
|
getAllowedDrawTypes: getAllowedDrawTypes,
|
|
55905
55915
|
getAllowedMatchUpFormats: getAllowedMatchUpFormats,
|
|
55906
55916
|
getAppliedPolicies: getAppliedPolicies,
|
|
@@ -57395,7 +57405,7 @@ function engineStart(engine, engineInvoke) {
|
|
|
57395
57405
|
};
|
|
57396
57406
|
engine.getDevContext = (contextCriteria) => getDevContext(contextCriteria);
|
|
57397
57407
|
engine.newTournamentRecord = (params = {}) => {
|
|
57398
|
-
const result =
|
|
57408
|
+
const result = createTournamentRecord(params);
|
|
57399
57409
|
const tournamentId = result.tournamentId;
|
|
57400
57410
|
if (result.error)
|
|
57401
57411
|
return result;
|