tods-competition-factory 1.8.2 → 1.8.4
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/forge/generate.d.ts +11 -3
- package/dist/forge/generate.mjs +337 -65
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +24 -12
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +250 -4
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/forge/utilities.mjs +175 -0
- package/dist/forge/utilities.mjs.map +1 -1
- package/dist/index.mjs +347 -173
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +422 -225
- 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
package/dist/forge/generate.d.ts
CHANGED
|
@@ -1278,16 +1278,16 @@ interface UnifiedVenueID {
|
|
|
1278
1278
|
|
|
1279
1279
|
/**
|
|
1280
1280
|
*
|
|
1281
|
-
* @param {object} playoffAttributes - mapping of exitProfile to structure names, e.g. 0-1-1 for
|
|
1281
|
+
* @param {object} playoffAttributes - mapping of exitProfile to structure names, e.g. 0-1-1 for South
|
|
1282
1282
|
* @param {string} playoffStructureNameBase - Root word for default playoff naming, e.g. 'Playoff' for 'Playoff 3-4'
|
|
1283
|
-
* @param {string} exitProfile - rounds at which a participant exited each structure, e.g. 0-1-1-1 for losing
|
|
1283
|
+
* @param {string} exitProfile - rounds at which a participant exited each structure, e.g. 0-1-1-1 for losing East, West, South
|
|
1284
1284
|
* @param {boolean} exitProfileLimit - limit playoff rounds generated by the attributes present in playoffAttributes
|
|
1285
1285
|
* @param {number} finishingPositionOffset - amount by which to offset finishingPositions, e.g. 2 for playing off 3-4
|
|
1286
1286
|
* @param {number} finishingPositionLimit - highest value of possible finishing Positions to play off
|
|
1287
1287
|
* @param {object} finishingPositionNaming - map of { [finishingPositionRange]: customName }
|
|
1288
1288
|
* @param {number} roundOffsetLimit - how many rounds to play off (# of additional matchUps per participant)
|
|
1289
1289
|
* @param {number} roundOffset - used internally to track generated structures; saved in structure attributes;
|
|
1290
|
-
* @param {number} stageSequence - what sequence within stage structures, e.g.
|
|
1290
|
+
* @param {number} stageSequence - what sequence within stage structures, e.g. West is stageSequence 2 in COMPASS
|
|
1291
1291
|
* @param {string} stage - [QUALIFYING, MAIN, CONSOLATION, PLAY-OFF]
|
|
1292
1292
|
*
|
|
1293
1293
|
*/
|
|
@@ -1368,6 +1368,12 @@ type RoundProfile = {
|
|
|
1368
1368
|
roundName?: string;
|
|
1369
1369
|
};
|
|
1370
1370
|
};
|
|
1371
|
+
type PlayoffAttributes = {
|
|
1372
|
+
[key: string | number]: {
|
|
1373
|
+
name: string;
|
|
1374
|
+
abbreviation: string;
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1371
1377
|
|
|
1372
1378
|
type GenerateAndPopulateArgs = {
|
|
1373
1379
|
addNameBaseToAttributeName?: boolean;
|
|
@@ -1484,6 +1490,7 @@ type GenerateDrawDefinitionArgs = {
|
|
|
1484
1490
|
automated?: boolean | {
|
|
1485
1491
|
seedsOnly: boolean;
|
|
1486
1492
|
};
|
|
1493
|
+
playoffAttributes?: PlayoffAttributes;
|
|
1487
1494
|
policyDefinitions?: PolicyDefinitions;
|
|
1488
1495
|
voluntaryConsolation?: {
|
|
1489
1496
|
structureAbbreviation?: string;
|
|
@@ -1505,6 +1512,7 @@ type GenerateDrawDefinitionArgs = {
|
|
|
1505
1512
|
processCodes?: string[];
|
|
1506
1513
|
matchUpFormat?: string;
|
|
1507
1514
|
matchUpType?: TypeEnum;
|
|
1515
|
+
structureName?: string;
|
|
1508
1516
|
tieFormatName?: string;
|
|
1509
1517
|
tieFormat?: TieFormat;
|
|
1510
1518
|
drawEntries?: Entry[];
|