tods-competition-factory 1.7.15 → 1.7.17
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.mjs +136 -80
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +1 -1
- package/dist/forge/query.mjs.map +1 -1
- package/dist/index.mjs +120 -57
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +121 -59
- 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 +2 -2
|
@@ -362,7 +362,7 @@ var matchUpFormatCode = {
|
|
|
362
362
|
};
|
|
363
363
|
|
|
364
364
|
function factoryVersion() {
|
|
365
|
-
return '1.7.
|
|
365
|
+
return '1.7.17';
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
/******************************************************************************
|
|
@@ -15075,7 +15075,7 @@ var ratingsParameters = (_a$g = {},
|
|
|
15075
15075
|
},
|
|
15076
15076
|
_a$g);
|
|
15077
15077
|
|
|
15078
|
-
var collectionDefinitions$
|
|
15078
|
+
var collectionDefinitions$i = [
|
|
15079
15079
|
{
|
|
15080
15080
|
collectionName: "Doubles",
|
|
15081
15081
|
matchUpCount: 3,
|
|
@@ -15091,17 +15091,17 @@ var collectionDefinitions$h = [
|
|
|
15091
15091
|
matchUpValue: 1
|
|
15092
15092
|
}
|
|
15093
15093
|
];
|
|
15094
|
-
var tieFormatName$
|
|
15095
|
-
var winCriteria$
|
|
15094
|
+
var tieFormatName$i = "COLLEGE_D3";
|
|
15095
|
+
var winCriteria$i = {
|
|
15096
15096
|
valueGoal: 5
|
|
15097
15097
|
};
|
|
15098
15098
|
var COLLEGE_D3$1 = {
|
|
15099
|
-
collectionDefinitions: collectionDefinitions$
|
|
15100
|
-
tieFormatName: tieFormatName$
|
|
15101
|
-
winCriteria: winCriteria$
|
|
15099
|
+
collectionDefinitions: collectionDefinitions$i,
|
|
15100
|
+
tieFormatName: tieFormatName$i,
|
|
15101
|
+
winCriteria: winCriteria$i
|
|
15102
15102
|
};
|
|
15103
15103
|
|
|
15104
|
-
var collectionDefinitions$
|
|
15104
|
+
var collectionDefinitions$h = [
|
|
15105
15105
|
{
|
|
15106
15106
|
collectionName: "Doubles",
|
|
15107
15107
|
collectionValue: 1,
|
|
@@ -15117,17 +15117,17 @@ var collectionDefinitions$g = [
|
|
|
15117
15117
|
matchUpValue: 1
|
|
15118
15118
|
}
|
|
15119
15119
|
];
|
|
15120
|
-
var tieFormatName$
|
|
15121
|
-
var winCriteria$
|
|
15120
|
+
var tieFormatName$h = "COLLEGE_DEFAULT";
|
|
15121
|
+
var winCriteria$h = {
|
|
15122
15122
|
valueGoal: 5
|
|
15123
15123
|
};
|
|
15124
15124
|
var COLLEGE_DEFAULT$1 = {
|
|
15125
|
-
collectionDefinitions: collectionDefinitions$
|
|
15126
|
-
tieFormatName: tieFormatName$
|
|
15127
|
-
winCriteria: winCriteria$
|
|
15125
|
+
collectionDefinitions: collectionDefinitions$h,
|
|
15126
|
+
tieFormatName: tieFormatName$h,
|
|
15127
|
+
winCriteria: winCriteria$h
|
|
15128
15128
|
};
|
|
15129
15129
|
|
|
15130
|
-
var collectionDefinitions$
|
|
15130
|
+
var collectionDefinitions$g = [
|
|
15131
15131
|
{
|
|
15132
15132
|
collectionName: "Doubles",
|
|
15133
15133
|
matchUpCount: 3,
|
|
@@ -15143,17 +15143,17 @@ var collectionDefinitions$f = [
|
|
|
15143
15143
|
matchUpValue: 1
|
|
15144
15144
|
}
|
|
15145
15145
|
];
|
|
15146
|
-
var tieFormatName$
|
|
15147
|
-
var winCriteria$
|
|
15146
|
+
var tieFormatName$g = "COLLEGE_JUCO";
|
|
15147
|
+
var winCriteria$g = {
|
|
15148
15148
|
valueGoal: 5
|
|
15149
15149
|
};
|
|
15150
15150
|
var COLLEGE_JUCO$1 = {
|
|
15151
|
-
collectionDefinitions: collectionDefinitions$
|
|
15152
|
-
tieFormatName: tieFormatName$
|
|
15153
|
-
winCriteria: winCriteria$
|
|
15151
|
+
collectionDefinitions: collectionDefinitions$g,
|
|
15152
|
+
tieFormatName: tieFormatName$g,
|
|
15153
|
+
winCriteria: winCriteria$g
|
|
15154
15154
|
};
|
|
15155
15155
|
|
|
15156
|
-
var collectionDefinitions$
|
|
15156
|
+
var collectionDefinitions$f = [
|
|
15157
15157
|
{
|
|
15158
15158
|
collectionName: "Doubles",
|
|
15159
15159
|
matchUpCount: 1,
|
|
@@ -15169,17 +15169,17 @@ var collectionDefinitions$e = [
|
|
|
15169
15169
|
matchUpValue: 1
|
|
15170
15170
|
}
|
|
15171
15171
|
];
|
|
15172
|
-
var tieFormatName$
|
|
15173
|
-
var winCriteria$
|
|
15172
|
+
var tieFormatName$f = "DOMINANT_DUO";
|
|
15173
|
+
var winCriteria$f = {
|
|
15174
15174
|
valueGoal: 2
|
|
15175
15175
|
};
|
|
15176
15176
|
var DOMINANT_DUO_TIE_FORMAT = {
|
|
15177
|
-
collectionDefinitions: collectionDefinitions$
|
|
15178
|
-
tieFormatName: tieFormatName$
|
|
15179
|
-
winCriteria: winCriteria$
|
|
15177
|
+
collectionDefinitions: collectionDefinitions$f,
|
|
15178
|
+
tieFormatName: tieFormatName$f,
|
|
15179
|
+
winCriteria: winCriteria$f
|
|
15180
15180
|
};
|
|
15181
15181
|
|
|
15182
|
-
var collectionDefinitions$
|
|
15182
|
+
var collectionDefinitions$e = [
|
|
15183
15183
|
{
|
|
15184
15184
|
collectionName: "Mixed Doubles",
|
|
15185
15185
|
gender: "MIXED",
|
|
@@ -15205,17 +15205,17 @@ var collectionDefinitions$d = [
|
|
|
15205
15205
|
matchUpValue: 1
|
|
15206
15206
|
}
|
|
15207
15207
|
];
|
|
15208
|
-
var tieFormatName$
|
|
15209
|
-
var winCriteria$
|
|
15208
|
+
var tieFormatName$e = "DOMINANT_DUO_MIXED";
|
|
15209
|
+
var winCriteria$e = {
|
|
15210
15210
|
valueGoal: 2
|
|
15211
15211
|
};
|
|
15212
15212
|
var DOMINANT_DUO_MIXED_TIE_FORMAT = {
|
|
15213
|
-
collectionDefinitions: collectionDefinitions$
|
|
15214
|
-
tieFormatName: tieFormatName$
|
|
15215
|
-
winCriteria: winCriteria$
|
|
15213
|
+
collectionDefinitions: collectionDefinitions$e,
|
|
15214
|
+
tieFormatName: tieFormatName$e,
|
|
15215
|
+
winCriteria: winCriteria$e
|
|
15216
15216
|
};
|
|
15217
15217
|
|
|
15218
|
-
var collectionDefinitions$
|
|
15218
|
+
var collectionDefinitions$d = [
|
|
15219
15219
|
{
|
|
15220
15220
|
collectionGroupNumber: 1,
|
|
15221
15221
|
matchUpType: "DOUBLES",
|
|
@@ -15273,18 +15273,18 @@ var collectionGroups$1 = [
|
|
|
15273
15273
|
groupName: "Day 3"
|
|
15274
15274
|
}
|
|
15275
15275
|
];
|
|
15276
|
-
var tieFormatName$
|
|
15277
|
-
var winCriteria$
|
|
15276
|
+
var tieFormatName$d = "LAVER_CUP";
|
|
15277
|
+
var winCriteria$d = {
|
|
15278
15278
|
valueGoal: 13
|
|
15279
15279
|
};
|
|
15280
15280
|
var LAVER_CUP_TIE_FORMAT = {
|
|
15281
|
-
collectionDefinitions: collectionDefinitions$
|
|
15281
|
+
collectionDefinitions: collectionDefinitions$d,
|
|
15282
15282
|
collectionGroups: collectionGroups$1,
|
|
15283
|
-
tieFormatName: tieFormatName$
|
|
15284
|
-
winCriteria: winCriteria$
|
|
15283
|
+
tieFormatName: tieFormatName$d,
|
|
15284
|
+
winCriteria: winCriteria$d
|
|
15285
15285
|
};
|
|
15286
15286
|
|
|
15287
|
-
var collectionDefinitions$
|
|
15287
|
+
var collectionDefinitions$c = [
|
|
15288
15288
|
{
|
|
15289
15289
|
collectionName: "Round 1",
|
|
15290
15290
|
matchUpCount: 3,
|
|
@@ -15307,15 +15307,67 @@ var collectionDefinitions$b = [
|
|
|
15307
15307
|
scoreValue: 1
|
|
15308
15308
|
}
|
|
15309
15309
|
];
|
|
15310
|
-
var tieFormatName$
|
|
15310
|
+
var tieFormatName$c = "Doubles Shuffle";
|
|
15311
15311
|
var unrestrictedSelections = true;
|
|
15312
|
-
var winCriteria$
|
|
15312
|
+
var winCriteria$c = {
|
|
15313
15313
|
aggregateValue: true
|
|
15314
15314
|
};
|
|
15315
15315
|
var TEAM_AGGREGATION_TIE_FORMAT = {
|
|
15316
|
+
collectionDefinitions: collectionDefinitions$c,
|
|
15317
|
+
tieFormatName: tieFormatName$c,
|
|
15318
|
+
unrestrictedSelections: unrestrictedSelections,
|
|
15319
|
+
winCriteria: winCriteria$c
|
|
15320
|
+
};
|
|
15321
|
+
|
|
15322
|
+
var collectionDefinitions$b = [
|
|
15323
|
+
{
|
|
15324
|
+
scoreValue: 1,
|
|
15325
|
+
matchUpType: "SINGLES",
|
|
15326
|
+
collectionName: "Men's Singles",
|
|
15327
|
+
matchUpFormat: "SET1-S:T60",
|
|
15328
|
+
gender: "MALE",
|
|
15329
|
+
matchUpCount: 3
|
|
15330
|
+
},
|
|
15331
|
+
{
|
|
15332
|
+
scoreValue: 1,
|
|
15333
|
+
matchUpType: "SINGLES",
|
|
15334
|
+
collectionName: "Women's Singles",
|
|
15335
|
+
matchUpFormat: "SET1-S:T60",
|
|
15336
|
+
gender: "FEMALE",
|
|
15337
|
+
matchUpCount: 3
|
|
15338
|
+
},
|
|
15339
|
+
{
|
|
15340
|
+
scoreValue: 1,
|
|
15341
|
+
matchUpType: "DOUBLES",
|
|
15342
|
+
collectionName: "Men's Doubles",
|
|
15343
|
+
matchUpFormat: "SET1-S:T60",
|
|
15344
|
+
gender: "MALE",
|
|
15345
|
+
matchUpCount: 1
|
|
15346
|
+
},
|
|
15347
|
+
{
|
|
15348
|
+
matchUpValue: 1,
|
|
15349
|
+
matchUpType: "DOUBLES",
|
|
15350
|
+
collectionName: "Women's Doubles",
|
|
15351
|
+
matchUpFormat: "SET1-S:T60",
|
|
15352
|
+
gender: "FEMALE",
|
|
15353
|
+
matchUpCount: 1
|
|
15354
|
+
},
|
|
15355
|
+
{
|
|
15356
|
+
matchUpValue: 1,
|
|
15357
|
+
matchUpType: "DOUBLES",
|
|
15358
|
+
collectionName: "Mixed Doubles",
|
|
15359
|
+
matchUpFormat: "SET1-S:T60",
|
|
15360
|
+
gender: "MIXED",
|
|
15361
|
+
matchUpCount: 1
|
|
15362
|
+
}
|
|
15363
|
+
];
|
|
15364
|
+
var tieFormatName$b = "Time Tennis";
|
|
15365
|
+
var winCriteria$b = {
|
|
15366
|
+
aggregateValue: true
|
|
15367
|
+
};
|
|
15368
|
+
var TIME_TENNIS_TIE_FORMAT = {
|
|
15316
15369
|
collectionDefinitions: collectionDefinitions$b,
|
|
15317
15370
|
tieFormatName: tieFormatName$b,
|
|
15318
|
-
unrestrictedSelections: unrestrictedSelections,
|
|
15319
15371
|
winCriteria: winCriteria$b
|
|
15320
15372
|
};
|
|
15321
15373
|
|
|
@@ -16093,6 +16145,7 @@ var tieFormats = {
|
|
|
16093
16145
|
DOMINANT_DUO_MIXED: DOMINANT_DUO_MIXED_TIE_FORMAT,
|
|
16094
16146
|
LAVER_CUP: LAVER_CUP_TIE_FORMAT,
|
|
16095
16147
|
TEAM_DOUBLES_3_AGGREGATION: TEAM_AGGREGATION_TIE_FORMAT,
|
|
16148
|
+
TIME_TENNIS: TIME_TENNIS_TIE_FORMAT,
|
|
16096
16149
|
USTA_BREWER_CUP: USTA_BREWER_CUP_TIE_FORMAT,
|
|
16097
16150
|
USTA_OZAKI_CUP: USTA_OZAKI_CUP_TIE_FORMAT,
|
|
16098
16151
|
USTA_COLLEGE: USTA_COLLEGE_TIE_FORMAT,
|
|
@@ -32144,7 +32197,6 @@ function updateTieFormat(_a) {
|
|
|
32144
32197
|
var e_1, _b;
|
|
32145
32198
|
var _c, _d, _e, _f, _g;
|
|
32146
32199
|
var updateInProgressMatchUps = _a.updateInProgressMatchUps, tournamentRecord = _a.tournamentRecord, drawDefinition = _a.drawDefinition, structure = _a.structure, tieFormat = _a.tieFormat, eventId = _a.eventId, matchUp = _a.matchUp, event = _a.event, uuids = _a.uuids;
|
|
32147
|
-
console.log('booo', { matchUp: matchUp });
|
|
32148
32200
|
var stack = 'updateTieFormat';
|
|
32149
32201
|
var tournamentId = tournamentRecord === null || tournamentRecord === void 0 ? void 0 : tournamentRecord.tournamentId;
|
|
32150
32202
|
var modifiedStructuresCount = 0;
|
|
@@ -40097,9 +40149,8 @@ function matchUpActions$2(_a) {
|
|
|
40097
40149
|
gender_1 === ANY ||
|
|
40098
40150
|
person.sex === gender_1 ||
|
|
40099
40151
|
// case where one gendered member has been assigned
|
|
40100
|
-
(gender_1 === MIXED &&
|
|
40101
|
-
|
|
40102
|
-
person.sex !== assignedGender_1));
|
|
40152
|
+
(gender_1 === MIXED && !assignedGender_1) ||
|
|
40153
|
+
(assignedGender_1 && person.sex !== assignedGender_1));
|
|
40103
40154
|
});
|
|
40104
40155
|
});
|
|
40105
40156
|
// if no sideNumber is provided, segregate available by sideNumber and specify sideNumber
|
|
@@ -47174,17 +47225,19 @@ function generateAndPopulatePlayoffStructures(params) {
|
|
|
47174
47225
|
});
|
|
47175
47226
|
var loserTargetLink = targetData.targetLinks.loserTargetLink, _a = targetData.targetMatchUps, loserMatchUpDrawPositionIndex = _a.loserMatchUpDrawPositionIndex, // only present when positionTargets found without loserMatchUpId
|
|
47176
47227
|
loserMatchUp = _a.loserMatchUp;
|
|
47177
|
-
|
|
47178
|
-
|
|
47179
|
-
|
|
47180
|
-
|
|
47181
|
-
|
|
47182
|
-
|
|
47183
|
-
|
|
47184
|
-
|
|
47185
|
-
|
|
47186
|
-
|
|
47187
|
-
|
|
47228
|
+
if (loserTargetLink && loserMatchUp) {
|
|
47229
|
+
var targetStructureId = loserTargetLink.target.structureId;
|
|
47230
|
+
var targetDrawPosition = loserMatchUp.drawPositions[loserMatchUpDrawPositionIndex];
|
|
47231
|
+
var result = assignDrawPositionBye$1({
|
|
47232
|
+
drawPosition: targetDrawPosition,
|
|
47233
|
+
structureId: targetStructureId,
|
|
47234
|
+
tournamentRecord: tournamentRecord,
|
|
47235
|
+
drawDefinition: drawDefinition,
|
|
47236
|
+
event: event,
|
|
47237
|
+
});
|
|
47238
|
+
if (result.error)
|
|
47239
|
+
console.log(result.error);
|
|
47240
|
+
}
|
|
47188
47241
|
});
|
|
47189
47242
|
// the matchUps in the source structure must have goesTo details added
|
|
47190
47243
|
var matchUpModifications = [];
|
|
@@ -60108,6 +60161,7 @@ var DOMINANT_DUO = 'DOMINANT_DUO';
|
|
|
60108
60161
|
var DOMINANT_DUO_MIXED = 'DOMINANT_DUO_MIXED';
|
|
60109
60162
|
var LAVER_CUP = 'LAVER_CUP';
|
|
60110
60163
|
var TEAM_DOUBLES_3_AGGREGATION = 'TEAM_DOUBLES_3_AGGREGATION';
|
|
60164
|
+
var TIME_TENNIS = 'TIME_TENNIS';
|
|
60111
60165
|
var USTA_BREWER_CUP = 'USTA_BREWER_CUP';
|
|
60112
60166
|
var USTA_OZAKI_CUP = 'USTA_OZAKI_CUP';
|
|
60113
60167
|
var USTA_COLLEGE = 'USTA_COLLEGE';
|
|
@@ -60127,6 +60181,7 @@ var tieFormatConstants = {
|
|
|
60127
60181
|
DOMINANT_DUO_MIXED: DOMINANT_DUO_MIXED,
|
|
60128
60182
|
LAVER_CUP: LAVER_CUP,
|
|
60129
60183
|
TEAM_DOUBLES_3_AGGREGATION: TEAM_DOUBLES_3_AGGREGATION,
|
|
60184
|
+
TIME_TENNIS: TIME_TENNIS,
|
|
60130
60185
|
USTA_BREWER_CUP: USTA_BREWER_CUP,
|
|
60131
60186
|
USTA_OZAKI_CUP: USTA_OZAKI_CUP,
|
|
60132
60187
|
USTA_COLLEGE: USTA_COLLEGE,
|
|
@@ -60198,6 +60253,7 @@ var namedFormats = (_a = {},
|
|
|
60198
60253
|
_a[DOMINANT_DUO] = DOMINANT_DUO_TIE_FORMAT,
|
|
60199
60254
|
_a[DOMINANT_DUO_MIXED] = DOMINANT_DUO_MIXED_TIE_FORMAT,
|
|
60200
60255
|
_a[TEAM_DOUBLES_3_AGGREGATION] = TEAM_AGGREGATION_TIE_FORMAT,
|
|
60256
|
+
_a[TIME_TENNIS] = TIME_TENNIS_TIE_FORMAT,
|
|
60201
60257
|
_a[USTA_BREWER_CUP] = USTA_BREWER_CUP_TIE_FORMAT,
|
|
60202
60258
|
_a[USTA_OZAKI_CUP] = USTA_OZAKI_CUP_TIE_FORMAT,
|
|
60203
60259
|
_a[USTA_COLLEGE] = USTA_COLLEGE_TIE_FORMAT,
|
|
@@ -65861,6 +65917,7 @@ var lastNames = [
|
|
|
65861
65917
|
"Midgely",
|
|
65862
65918
|
"Mond",
|
|
65863
65919
|
"Montoya",
|
|
65920
|
+
"Moore",
|
|
65864
65921
|
"Murry",
|
|
65865
65922
|
"Nagle",
|
|
65866
65923
|
"Nearing",
|
|
@@ -65924,6 +65981,8 @@ var firstFemale = [
|
|
|
65924
65981
|
"Erin",
|
|
65925
65982
|
"Eva",
|
|
65926
65983
|
"Evelyn",
|
|
65984
|
+
"Heather",
|
|
65985
|
+
"Helen",
|
|
65927
65986
|
"Hermia",
|
|
65928
65987
|
"Hypatia",
|
|
65929
65988
|
"Imogen",
|
|
@@ -65931,8 +65990,6 @@ var firstFemale = [
|
|
|
65931
65990
|
"Jasmine",
|
|
65932
65991
|
"Juliana",
|
|
65933
65992
|
"Juliet",
|
|
65934
|
-
"Heather",
|
|
65935
|
-
"Helen",
|
|
65936
65993
|
"Katniss",
|
|
65937
65994
|
"Leeloo",
|
|
65938
65995
|
"Lenina",
|
|
@@ -65978,6 +66035,7 @@ var firstMale = [
|
|
|
65978
66035
|
"Axel",
|
|
65979
66036
|
"Barda",
|
|
65980
66037
|
"Bill",
|
|
66038
|
+
"Bruce",
|
|
65981
66039
|
"Charles",
|
|
65982
66040
|
"Chris",
|
|
65983
66041
|
"Darwin",
|
|
@@ -66013,6 +66071,7 @@ var firstMale = [
|
|
|
66013
66071
|
"Michael",
|
|
66014
66072
|
"Mustapha",
|
|
66015
66073
|
"Neil",
|
|
66074
|
+
"Nikola",
|
|
66016
66075
|
"Octavio",
|
|
66017
66076
|
"Palmer",
|
|
66018
66077
|
"Paul",
|
|
@@ -66021,12 +66080,14 @@ var firstMale = [
|
|
|
66021
66080
|
"Rick",
|
|
66022
66081
|
"Rincewind",
|
|
66023
66082
|
"Roy",
|
|
66083
|
+
"Shannon",
|
|
66024
66084
|
"Sheldon",
|
|
66025
66085
|
"Stafford",
|
|
66026
66086
|
"Stanislaw",
|
|
66027
66087
|
"Stanley",
|
|
66028
66088
|
"Syme",
|
|
66029
66089
|
"Thorstein",
|
|
66090
|
+
"Thomas",
|
|
66030
66091
|
"Tyrone",
|
|
66031
66092
|
"Vizzini",
|
|
66032
66093
|
"Walton",
|
|
@@ -66035,7 +66096,8 @@ var firstMale = [
|
|
|
66035
66096
|
"Wendell",
|
|
66036
66097
|
"Westley",
|
|
66037
66098
|
"William",
|
|
66038
|
-
"Winston"
|
|
66099
|
+
"Winston",
|
|
66100
|
+
"Zoran"
|
|
66039
66101
|
];
|
|
66040
66102
|
var namesData$1 = {
|
|
66041
66103
|
lastNames: lastNames,
|