tods-competition-factory 1.7.15 → 1.7.16

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.
@@ -362,7 +362,7 @@ var matchUpFormatCode = {
362
362
  };
363
363
 
364
364
  function factoryVersion() {
365
- return '1.7.15';
365
+ return '1.7.16';
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$h = [
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$h = "COLLEGE_D3";
15095
- var winCriteria$h = {
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$h,
15100
- tieFormatName: tieFormatName$h,
15101
- winCriteria: winCriteria$h
15099
+ collectionDefinitions: collectionDefinitions$i,
15100
+ tieFormatName: tieFormatName$i,
15101
+ winCriteria: winCriteria$i
15102
15102
  };
15103
15103
 
15104
- var collectionDefinitions$g = [
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$g = "COLLEGE_DEFAULT";
15121
- var winCriteria$g = {
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$g,
15126
- tieFormatName: tieFormatName$g,
15127
- winCriteria: winCriteria$g
15125
+ collectionDefinitions: collectionDefinitions$h,
15126
+ tieFormatName: tieFormatName$h,
15127
+ winCriteria: winCriteria$h
15128
15128
  };
15129
15129
 
15130
- var collectionDefinitions$f = [
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$f = "COLLEGE_JUCO";
15147
- var winCriteria$f = {
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$f,
15152
- tieFormatName: tieFormatName$f,
15153
- winCriteria: winCriteria$f
15151
+ collectionDefinitions: collectionDefinitions$g,
15152
+ tieFormatName: tieFormatName$g,
15153
+ winCriteria: winCriteria$g
15154
15154
  };
15155
15155
 
15156
- var collectionDefinitions$e = [
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$e = "DOMINANT_DUO";
15173
- var winCriteria$e = {
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$e,
15178
- tieFormatName: tieFormatName$e,
15179
- winCriteria: winCriteria$e
15177
+ collectionDefinitions: collectionDefinitions$f,
15178
+ tieFormatName: tieFormatName$f,
15179
+ winCriteria: winCriteria$f
15180
15180
  };
15181
15181
 
15182
- var collectionDefinitions$d = [
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$d = "DOMINANT_DUO_MIXED";
15209
- var winCriteria$d = {
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$d,
15214
- tieFormatName: tieFormatName$d,
15215
- winCriteria: winCriteria$d
15213
+ collectionDefinitions: collectionDefinitions$e,
15214
+ tieFormatName: tieFormatName$e,
15215
+ winCriteria: winCriteria$e
15216
15216
  };
15217
15217
 
15218
- var collectionDefinitions$c = [
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$c = "LAVER_CUP";
15277
- var winCriteria$c = {
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$c,
15281
+ collectionDefinitions: collectionDefinitions$d,
15282
15282
  collectionGroups: collectionGroups$1,
15283
- tieFormatName: tieFormatName$c,
15284
- winCriteria: winCriteria$c
15283
+ tieFormatName: tieFormatName$d,
15284
+ winCriteria: winCriteria$d
15285
15285
  };
15286
15286
 
15287
- var collectionDefinitions$b = [
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$b = "Doubles Shuffle";
15310
+ var tieFormatName$c = "Doubles Shuffle";
15311
15311
  var unrestrictedSelections = true;
15312
- var winCriteria$b = {
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
- assignedGender_1 &&
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
@@ -60108,6 +60159,7 @@ var DOMINANT_DUO = 'DOMINANT_DUO';
60108
60159
  var DOMINANT_DUO_MIXED = 'DOMINANT_DUO_MIXED';
60109
60160
  var LAVER_CUP = 'LAVER_CUP';
60110
60161
  var TEAM_DOUBLES_3_AGGREGATION = 'TEAM_DOUBLES_3_AGGREGATION';
60162
+ var TIME_TENNIS = 'TIME_TENNIS';
60111
60163
  var USTA_BREWER_CUP = 'USTA_BREWER_CUP';
60112
60164
  var USTA_OZAKI_CUP = 'USTA_OZAKI_CUP';
60113
60165
  var USTA_COLLEGE = 'USTA_COLLEGE';
@@ -60127,6 +60179,7 @@ var tieFormatConstants = {
60127
60179
  DOMINANT_DUO_MIXED: DOMINANT_DUO_MIXED,
60128
60180
  LAVER_CUP: LAVER_CUP,
60129
60181
  TEAM_DOUBLES_3_AGGREGATION: TEAM_DOUBLES_3_AGGREGATION,
60182
+ TIME_TENNIS: TIME_TENNIS,
60130
60183
  USTA_BREWER_CUP: USTA_BREWER_CUP,
60131
60184
  USTA_OZAKI_CUP: USTA_OZAKI_CUP,
60132
60185
  USTA_COLLEGE: USTA_COLLEGE,
@@ -60198,6 +60251,7 @@ var namedFormats = (_a = {},
60198
60251
  _a[DOMINANT_DUO] = DOMINANT_DUO_TIE_FORMAT,
60199
60252
  _a[DOMINANT_DUO_MIXED] = DOMINANT_DUO_MIXED_TIE_FORMAT,
60200
60253
  _a[TEAM_DOUBLES_3_AGGREGATION] = TEAM_AGGREGATION_TIE_FORMAT,
60254
+ _a[TIME_TENNIS] = TIME_TENNIS_TIE_FORMAT,
60201
60255
  _a[USTA_BREWER_CUP] = USTA_BREWER_CUP_TIE_FORMAT,
60202
60256
  _a[USTA_OZAKI_CUP] = USTA_OZAKI_CUP_TIE_FORMAT,
60203
60257
  _a[USTA_COLLEGE] = USTA_COLLEGE_TIE_FORMAT,
@@ -65861,6 +65915,7 @@ var lastNames = [
65861
65915
  "Midgely",
65862
65916
  "Mond",
65863
65917
  "Montoya",
65918
+ "Moore",
65864
65919
  "Murry",
65865
65920
  "Nagle",
65866
65921
  "Nearing",
@@ -65924,6 +65979,8 @@ var firstFemale = [
65924
65979
  "Erin",
65925
65980
  "Eva",
65926
65981
  "Evelyn",
65982
+ "Heather",
65983
+ "Helen",
65927
65984
  "Hermia",
65928
65985
  "Hypatia",
65929
65986
  "Imogen",
@@ -65931,8 +65988,6 @@ var firstFemale = [
65931
65988
  "Jasmine",
65932
65989
  "Juliana",
65933
65990
  "Juliet",
65934
- "Heather",
65935
- "Helen",
65936
65991
  "Katniss",
65937
65992
  "Leeloo",
65938
65993
  "Lenina",
@@ -65978,6 +66033,7 @@ var firstMale = [
65978
66033
  "Axel",
65979
66034
  "Barda",
65980
66035
  "Bill",
66036
+ "Bruce",
65981
66037
  "Charles",
65982
66038
  "Chris",
65983
66039
  "Darwin",
@@ -66013,6 +66069,7 @@ var firstMale = [
66013
66069
  "Michael",
66014
66070
  "Mustapha",
66015
66071
  "Neil",
66072
+ "Nikola",
66016
66073
  "Octavio",
66017
66074
  "Palmer",
66018
66075
  "Paul",
@@ -66021,12 +66078,14 @@ var firstMale = [
66021
66078
  "Rick",
66022
66079
  "Rincewind",
66023
66080
  "Roy",
66081
+ "Shannon",
66024
66082
  "Sheldon",
66025
66083
  "Stafford",
66026
66084
  "Stanislaw",
66027
66085
  "Stanley",
66028
66086
  "Syme",
66029
66087
  "Thorstein",
66088
+ "Thomas",
66030
66089
  "Tyrone",
66031
66090
  "Vizzini",
66032
66091
  "Walton",
@@ -66035,7 +66094,8 @@ var firstMale = [
66035
66094
  "Wendell",
66036
66095
  "Westley",
66037
66096
  "William",
66038
- "Winston"
66097
+ "Winston",
66098
+ "Zoran"
66039
66099
  ];
66040
66100
  var namesData$1 = {
66041
66101
  lastNames: lastNames,