tods-competition-factory 2.0.0-beta.7 → 2.0.0

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function factoryVersion() {
6
- return '2.0.0-beta.7';
6
+ return '2.0.0';
7
7
  }
8
8
 
9
9
  /******************************************************************************
@@ -12997,6 +12997,16 @@ function stringSort(a, b) {
12997
12997
  return (a || '').localeCompare(b || '');
12998
12998
  }
12999
12999
 
13000
+ function getTournamentPublishStatus(_a) {
13001
+ var _b, _c, _d;
13002
+ var tournamentRecord = _a.tournamentRecord, _e = _a.status, status = _e === void 0 ? PUBLIC : _e;
13003
+ var itemType = "".concat(PUBLISH, ".").concat(STATUS$1);
13004
+ return (_d = (_c = (_b = getTournamentTimeItem({
13005
+ tournamentRecord: tournamentRecord,
13006
+ itemType: itemType,
13007
+ })) === null || _b === void 0 ? void 0 : _b.timeItem) === null || _c === void 0 ? void 0 : _c.itemValue) === null || _d === void 0 ? void 0 : _d[status];
13008
+ }
13009
+
13000
13010
  function getEventPublishStatus(_a) {
13001
13011
  var _b, _c, _d;
13002
13012
  var event = _a.event, _e = _a.status, status = _e === void 0 ? PUBLIC : _e;
@@ -13017,21 +13027,25 @@ function getDrawPublishStatus(_a) {
13017
13027
 
13018
13028
  function getPublishState(_a) {
13019
13029
  var e_1, _b, e_2, _c, e_3, _d, e_4, _e;
13020
- var tournamentRecord = _a.tournamentRecord, eventIds = _a.eventIds, drawIds = _a.drawIds, drawId = _a.drawId, event = _a.event;
13021
- if (Array.isArray(eventIds) && (eventIds === null || eventIds === void 0 ? void 0 : eventIds.length)) {
13030
+ var _f, _g, _h, _j, _k, _l, _m;
13031
+ var tournamentRecord = _a.tournamentRecord, drawDefinition = _a.drawDefinition, eventIds = _a.eventIds, eventId = _a.eventId, drawIds = _a.drawIds, drawId = _a.drawId, event = _a.event;
13032
+ if (eventId && !event) {
13033
+ return { error: EVENT_NOT_FOUND };
13034
+ }
13035
+ else if (Array.isArray(eventIds) && (eventIds === null || eventIds === void 0 ? void 0 : eventIds.length)) {
13022
13036
  var publishState = {};
13023
13037
  try {
13024
13038
  for (var eventIds_1 = __values(eventIds), eventIds_1_1 = eventIds_1.next(); !eventIds_1_1.done; eventIds_1_1 = eventIds_1.next()) {
13025
- var eventId = eventIds_1_1.value;
13026
- if (!isString(eventId))
13039
+ var eventId_1 = eventIds_1_1.value;
13040
+ if (!isString(eventId_1))
13027
13041
  return { error: INVALID_VALUES };
13028
- var event_1 = findEvent({ tournamentRecord: tournamentRecord, eventId: eventId });
13042
+ var event_1 = findEvent({ tournamentRecord: tournamentRecord, eventId: eventId_1 });
13029
13043
  if (!event_1)
13030
13044
  return { error: EVENT_NOT_FOUND };
13031
13045
  var pubStatus = getPubStatus({ event: event_1 });
13032
13046
  if (pubStatus.error)
13033
13047
  return pubStatus;
13034
- publishState[eventId] = pubStatus;
13048
+ publishState[eventId_1] = pubStatus;
13035
13049
  }
13036
13050
  }
13037
13051
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -13043,83 +13057,100 @@ function getPublishState(_a) {
13043
13057
  }
13044
13058
  return __assign(__assign({}, SUCCESS), { publishState: publishState });
13045
13059
  }
13046
- else if (!event && (tournamentRecord === null || tournamentRecord === void 0 ? void 0 : tournamentRecord.events) && Array.isArray(drawIds) && drawIds.length) {
13047
- var publishState = {};
13048
- try {
13049
- for (var _f = __values(tournamentRecord.events), _g = _f.next(); !_g.done; _g = _f.next()) {
13050
- var event_2 = _g.value;
13051
- var pubStatus = getPubStatus({ event: event_2 });
13052
- if (pubStatus.error)
13053
- return pubStatus;
13054
- try {
13055
- for (var drawIds_1 = (e_3 = void 0, __values(drawIds)), drawIds_1_1 = drawIds_1.next(); !drawIds_1_1.done; drawIds_1_1 = drawIds_1.next()) {
13056
- var drawId_1 = drawIds_1_1.value;
13057
- if (!isString(drawId_1))
13058
- return { error: INVALID_VALUES };
13059
- var published = pubStatus.publishState.publishedDrawIds.includes(drawId_1);
13060
- if (published)
13061
- publishState[drawId_1] = { published: published };
13062
- }
13063
- }
13064
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
13065
- finally {
13066
- try {
13067
- if (drawIds_1_1 && !drawIds_1_1.done && (_d = drawIds_1.return)) _d.call(drawIds_1);
13068
- }
13069
- finally { if (e_3) throw e_3.error; }
13070
- }
13071
- }
13072
- }
13073
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
13074
- finally {
13075
- try {
13076
- if (_g && !_g.done && (_c = _f.return)) _c.call(_f);
13077
- }
13078
- finally { if (e_2) throw e_2.error; }
13079
- }
13080
- return __assign(__assign({}, SUCCESS), { publishState: publishState });
13081
- }
13082
13060
  else if (event) {
13083
13061
  var pubStatus = getPubStatus({ event: event });
13084
13062
  if (pubStatus.error)
13085
13063
  return pubStatus;
13086
13064
  if (drawId) {
13065
+ if (!drawDefinition)
13066
+ return { error: DRAW_DEFINITION_NOT_FOUND };
13087
13067
  return {
13088
- publishState: __assign({ published: pubStatus.publishState.publishedDrawIds.includes(drawId) }, SUCCESS),
13068
+ publishState: __assign({ status: {
13069
+ published: !!((_f = pubStatus.status.publishedDrawIds) === null || _f === void 0 ? void 0 : _f.includes(drawId)),
13070
+ drawDetail: (_g = pubStatus.status.drawDetails) === null || _g === void 0 ? void 0 : _g[drawId],
13071
+ } }, SUCCESS),
13089
13072
  };
13090
13073
  }
13091
13074
  else if (Array.isArray(drawIds) && (drawIds === null || drawIds === void 0 ? void 0 : drawIds.length)) {
13092
13075
  var publishState = {};
13093
13076
  try {
13094
- for (var drawIds_2 = __values(drawIds), drawIds_2_1 = drawIds_2.next(); !drawIds_2_1.done; drawIds_2_1 = drawIds_2.next()) {
13095
- var drawId_2 = drawIds_2_1.value;
13096
- if (!isString(drawId_2))
13077
+ for (var drawIds_1 = __values(drawIds), drawIds_1_1 = drawIds_1.next(); !drawIds_1_1.done; drawIds_1_1 = drawIds_1.next()) {
13078
+ var drawId_1 = drawIds_1_1.value;
13079
+ if (!isString(drawId_1))
13097
13080
  return { error: INVALID_VALUES };
13098
- publishState[drawId_2] = {
13099
- published: pubStatus.publishState.publishedDrawIds.includes(drawId_2),
13081
+ publishState[drawId_1] = {
13082
+ status: {
13083
+ published: !!pubStatus.status.publishedDrawIds.includes(drawId_1),
13084
+ drawDetail: (_h = pubStatus.status.drawDetails) === null || _h === void 0 ? void 0 : _h[drawId_1],
13085
+ },
13100
13086
  };
13101
13087
  return __assign(__assign({}, SUCCESS), { publishState: publishState });
13102
13088
  }
13103
13089
  }
13104
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
13090
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
13105
13091
  finally {
13106
13092
  try {
13107
- if (drawIds_2_1 && !drawIds_2_1.done && (_e = drawIds_2.return)) _e.call(drawIds_2);
13093
+ if (drawIds_1_1 && !drawIds_1_1.done && (_c = drawIds_1.return)) _c.call(drawIds_1);
13108
13094
  }
13109
- finally { if (e_4) throw e_4.error; }
13095
+ finally { if (e_2) throw e_2.error; }
13110
13096
  }
13111
13097
  }
13112
13098
  else {
13113
- return pubStatus;
13099
+ return { publishState: pubStatus };
13100
+ }
13101
+ }
13102
+ else if (!tournamentRecord) {
13103
+ return { error: MISSING_TOURNAMENT_RECORD };
13104
+ }
13105
+ else {
13106
+ var publishState = {};
13107
+ var pubStatus = getTournamentPublishStatus({ tournamentRecord: tournamentRecord });
13108
+ publishState.tournament = pubStatus;
13109
+ try {
13110
+ for (var _o = __values((_j = tournamentRecord.events) !== null && _j !== void 0 ? _j : []), _p = _o.next(); !_p.done; _p = _o.next()) {
13111
+ var event_2 = _p.value;
13112
+ var pubStatus_1 = getPubStatus({ event: event_2 });
13113
+ publishState[event_2.eventId] = pubStatus_1;
13114
+ if (pubStatus_1.error)
13115
+ return pubStatus_1;
13116
+ try {
13117
+ for (var _q = (e_4 = void 0, __values((_k = event_2.drawDefinitions) !== null && _k !== void 0 ? _k : [])), _r = _q.next(); !_r.done; _r = _q.next()) {
13118
+ var drawId_2 = _r.value.drawId;
13119
+ if (!isString(drawId_2))
13120
+ return { error: INVALID_VALUES };
13121
+ var published = (_m = (_l = pubStatus_1.publishState) === null || _l === void 0 ? void 0 : _l.publishedDrawIds) === null || _m === void 0 ? void 0 : _m.includes(drawId_2);
13122
+ if (published) {
13123
+ publishState[drawId_2] = { status: { published: published } };
13124
+ }
13125
+ }
13126
+ }
13127
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
13128
+ finally {
13129
+ try {
13130
+ if (_r && !_r.done && (_e = _q.return)) _e.call(_q);
13131
+ }
13132
+ finally { if (e_4) throw e_4.error; }
13133
+ }
13134
+ }
13114
13135
  }
13136
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
13137
+ finally {
13138
+ try {
13139
+ if (_p && !_p.done && (_d = _o.return)) _d.call(_o);
13140
+ }
13141
+ finally { if (e_3) throw e_3.error; }
13142
+ }
13143
+ return __assign(__assign({}, SUCCESS), { publishState: publishState });
13115
13144
  }
13116
13145
  return { error: INVALID_VALUES };
13117
13146
  }
13118
13147
  function getPubStatus(_a) {
13148
+ var e_5, _b;
13149
+ var _c, _d;
13119
13150
  var event = _a.event;
13120
13151
  var eventPubStatus = getEventPublishStatus({ event: event });
13121
13152
  if (!eventPubStatus)
13122
- return { error: EVENT_NOT_FOUND };
13153
+ return { status: { published: false } };
13123
13154
  var publishedSeeding = {
13124
13155
  published: undefined, // seeding can be present for all entries in an event when no flights have been defined
13125
13156
  seedingScaleNames: [],
@@ -13128,16 +13159,35 @@ function getPubStatus(_a) {
13128
13159
  if (eventPubStatus.seeding) {
13129
13160
  Object.assign(publishedSeeding, eventPubStatus.seeding);
13130
13161
  }
13131
- var drawDetails = eventPubStatus.drawDetails;
13162
+ var drawDetails = (_c = eventPubStatus.drawDetails) !== null && _c !== void 0 ? _c : {};
13163
+ try {
13164
+ for (var _e = __values(((_d = event.drawDefinitions) === null || _d === void 0 ? void 0 : _d.map(getDrawId)) || []), _f = _e.next(); !_f.done; _f = _e.next()) {
13165
+ var drawId = _f.value;
13166
+ if (!drawDetails[drawId]) {
13167
+ drawDetails[drawId] = {
13168
+ publishingDetail: { published: false },
13169
+ };
13170
+ }
13171
+ }
13172
+ }
13173
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
13174
+ finally {
13175
+ try {
13176
+ if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
13177
+ }
13178
+ finally { if (e_5) throw e_5.error; }
13179
+ }
13132
13180
  var publishedDrawIds = (drawDetails && Object.keys(drawDetails).filter(function (drawId) { return getDrawPublishStatus({ drawDetails: drawDetails, drawId: drawId }); })) ||
13133
13181
  eventPubStatus.drawIds ||
13134
13182
  [];
13135
- return __assign({ publishState: {
13183
+ return {
13184
+ status: {
13136
13185
  published: publishedDrawIds.length > 0,
13137
13186
  publishedDrawIds: publishedDrawIds,
13138
13187
  publishedSeeding: publishedSeeding,
13139
13188
  drawDetails: drawDetails,
13140
- } }, SUCCESS);
13189
+ },
13190
+ };
13141
13191
  }
13142
13192
 
13143
13193
  function addStructureParticipation(_a) {
@@ -13430,7 +13480,7 @@ function processSides(params) {
13430
13480
 
13431
13481
  function getParticipantEntries(params) {
13432
13482
  var e_1, _a, e_2, _b;
13433
- var _c, _d, _e, _f, _g, _h, _j, _k;
13483
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l;
13434
13484
  var participantFilters = params.participantFilters, convertExtensions = params.convertExtensions, policyDefinitions = params.policyDefinitions, tournamentRecord = params.tournamentRecord, usePublishState = params.usePublishState, contextProfile = params.contextProfile, participantMap = params.participantMap, withPotentialMatchUps = params.withPotentialMatchUps, withRankingProfile = params.withRankingProfile, withScheduleItems = params.withScheduleItems, scheduleAnalysis = params.scheduleAnalysis, withTeamMatchUps = params.withTeamMatchUps, withStatistics = params.withStatistics, withOpponents = params.withOpponents, withMatchUps = params.withMatchUps, withSeeding = params.withSeeding, withEvents = params.withEvents, withDraws = params.withDraws;
13435
13485
  var targetParticipantIds = participantFilters === null || participantFilters === void 0 ? void 0 : participantFilters.participantIds;
13436
13486
  var getRelevantParticipantIds = function (participantId) {
@@ -13471,22 +13521,22 @@ function getParticipantEntries(params) {
13471
13521
  })) === null || _e === void 0 ? void 0 : _e.scaleValue;
13472
13522
  };
13473
13523
  var _loop_1 = function (event_1) {
13474
- var e_3, _o, e_4, _p, e_5, _q;
13524
+ var e_3, _p, e_4, _q, e_5, _r;
13475
13525
  if ((participantFilters === null || participantFilters === void 0 ? void 0 : participantFilters.eventIds) && !participantFilters.eventIds.includes(event_1.eventId))
13476
13526
  return "continue";
13477
- var _r = event_1.drawDefinitions, drawDefinitions = _r === void 0 ? [] : _r, _s = event_1.extensions, extensions = _s === void 0 ? [] : _s, eventType = event_1.eventType, eventName = event_1.eventName, category = event_1.category, entries = event_1.entries, eventId = event_1.eventId, gender = event_1.gender;
13527
+ var _s = event_1.drawDefinitions, drawDefinitions = _s === void 0 ? [] : _s, _t = event_1.extensions, extensions = _t === void 0 ? [] : _t, eventType = event_1.eventType, eventName = event_1.eventName, category = event_1.category, entries = event_1.entries, eventId = event_1.eventId, gender = event_1.gender;
13478
13528
  var flightProfile = getFlightProfile({ event: event_1 }).flightProfile;
13479
13529
  var flights = (_c = flightProfile === null || flightProfile === void 0 ? void 0 : flightProfile.flights) !== null && _c !== void 0 ? _c : [];
13480
13530
  var publishStatuses = getPublishState({ event: event_1 }).publishState;
13481
13531
  if (publishStatuses)
13482
13532
  eventsPublishStatuses[eventId] = publishStatuses;
13483
- var publishedSeeding = publishStatuses === null || publishStatuses === void 0 ? void 0 : publishStatuses.publishedSeeding;
13533
+ var publishedSeeding = (_d = publishStatuses === null || publishStatuses === void 0 ? void 0 : publishStatuses.status) === null || _d === void 0 ? void 0 : _d.publishedSeeding;
13484
13534
  if (withEvents || withSeeding || withRankingProfile) {
13485
13535
  var extensionConversions = convertExtensions ? Object.assign.apply(Object, __spreadArray([{}], __read(extensionsToAttributes(extensions)), false)) : {};
13486
13536
  derivedEventInfo[eventId] = __assign(__assign({}, extensionConversions), { eventName: eventName, eventType: eventType, category: category, eventId: eventId, gender: gender });
13487
13537
  var scaleNames = [category === null || category === void 0 ? void 0 : category.categoryName, category === null || category === void 0 ? void 0 : category.ageCategoryCode].filter(Boolean);
13488
13538
  var _loop_3 = function (entry) {
13489
- var _t;
13539
+ var _u;
13490
13540
  var participantId = entry.participantId;
13491
13541
  if (!participantId || !participantMap[participantId])
13492
13542
  return "continue"; // handle bad data
@@ -13495,13 +13545,13 @@ function getParticipantEntries(params) {
13495
13545
  var seedAssignments, seedValue;
13496
13546
  if (withSeeding) {
13497
13547
  var participant = participantMap[participantId].participant;
13498
- (_t = getEventSeedAssignments({
13548
+ (_u = getEventSeedAssignments({
13499
13549
  publishedSeeding: publishedSeeding,
13500
13550
  usePublishState: usePublishState,
13501
13551
  withSeeding: withSeeding,
13502
13552
  participant: participant,
13503
13553
  event: event_1,
13504
- }), seedAssignments = _t.seedAssignments, seedValue = _t.seedValue);
13554
+ }), seedAssignments = _u.seedAssignments, seedValue = _u.seedValue);
13505
13555
  }
13506
13556
  // IMPORTANT NOTE!
13507
13557
  // id is the pair, team or individual participant currently being processed
@@ -13536,12 +13586,12 @@ function getParticipantEntries(params) {
13536
13586
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
13537
13587
  finally {
13538
13588
  try {
13539
- if (entries_1_1 && !entries_1_1.done && (_o = entries_1.return)) _o.call(entries_1);
13589
+ if (entries_1_1 && !entries_1_1.done && (_p = entries_1.return)) _p.call(entries_1);
13540
13590
  }
13541
13591
  finally { if (e_3) throw e_3.error; }
13542
13592
  }
13543
13593
  }
13544
- var eventPublishedSeeding = (_d = eventsPublishStatuses === null || eventsPublishStatuses === void 0 ? void 0 : eventsPublishStatuses[eventId]) === null || _d === void 0 ? void 0 : _d.publishedSeeding;
13594
+ var eventPublishedSeeding = (_e = eventsPublishStatuses === null || eventsPublishStatuses === void 0 ? void 0 : eventsPublishStatuses[eventId]) === null || _e === void 0 ? void 0 : _e.publishedSeeding;
13545
13595
  if (withDraws || withRankingProfile || withSeeding) {
13546
13596
  var getSeedingMap = function (assignments) {
13547
13597
  return assignments
@@ -13555,11 +13605,11 @@ function getParticipantEntries(params) {
13555
13605
  };
13556
13606
  var drawIds = unique(__spreadArray(__spreadArray([], __read(drawDefinitions.map(getDrawId)), false), __read(flights.map(getDrawId)), false));
13557
13607
  var _loop_4 = function (drawId) {
13558
- var e_6, _u;
13608
+ var e_6, _v;
13559
13609
  var drawDefinition = drawDefinitions.find(function (drawDefinition) { return drawDefinition.drawId === drawId; });
13560
13610
  var flight = flights === null || flights === void 0 ? void 0 : flights.find(function (flight) { return flight.drawId === drawId; });
13561
13611
  var entries_2 = (drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.entries) || (flight === null || flight === void 0 ? void 0 : flight.drawEntries);
13562
- var _v = drawDefinition !== null && drawDefinition !== void 0 ? drawDefinition : {}, _w = _v.structures, structures = _w === void 0 ? [] : _w, drawOrder = _v.drawOrder, drawName = _v.drawName, drawType = _v.drawType;
13612
+ var _w = drawDefinition !== null && drawDefinition !== void 0 ? drawDefinition : {}, _x = _w.structures, structures = _x === void 0 ? [] : _x, drawOrder = _w.drawOrder, drawName = _w.drawName, drawType = _w.drawType;
13563
13613
  var flightNumber = flight === null || flight === void 0 ? void 0 : flight.flightNumber;
13564
13614
  var scaleNames = [category === null || category === void 0 ? void 0 : category.categoryName, category === null || category === void 0 ? void 0 : category.ageCategoryCode].filter(Boolean);
13565
13615
  // used in rankings pipeline.
@@ -13615,7 +13665,7 @@ function getParticipantEntries(params) {
13615
13665
  });
13616
13666
  var seedingPublished = !usePublishState ||
13617
13667
  ((eventPublishedSeeding === null || eventPublishedSeeding === void 0 ? void 0 : eventPublishedSeeding.published) &&
13618
- (((_e = eventPublishedSeeding === null || eventPublishedSeeding === void 0 ? void 0 : eventPublishedSeeding.drawIds) === null || _e === void 0 ? void 0 : _e.length) === 0 || ((_f = eventPublishedSeeding === null || eventPublishedSeeding === void 0 ? void 0 : eventPublishedSeeding.drawIds) === null || _f === void 0 ? void 0 : _f.includes(drawId))));
13668
+ (((_f = eventPublishedSeeding === null || eventPublishedSeeding === void 0 ? void 0 : eventPublishedSeeding.drawIds) === null || _f === void 0 ? void 0 : _f.length) === 0 || ((_g = eventPublishedSeeding === null || eventPublishedSeeding === void 0 ? void 0 : eventPublishedSeeding.drawIds) === null || _g === void 0 ? void 0 : _g.includes(drawId))));
13619
13669
  var _loop_6 = function (entry) {
13620
13670
  var entryStatus = entry.entryStatus, entryStage = entry.entryStage, entryPosition = entry.entryPosition, participantId = entry.participantId;
13621
13671
  // get event ranking
@@ -13690,16 +13740,16 @@ function getParticipantEntries(params) {
13690
13740
  catch (e_6_1) { e_6 = { error: e_6_1 }; }
13691
13741
  finally {
13692
13742
  try {
13693
- if (relevantEntries_1_1 && !relevantEntries_1_1.done && (_u = relevantEntries_1.return)) _u.call(relevantEntries_1);
13743
+ if (relevantEntries_1_1 && !relevantEntries_1_1.done && (_v = relevantEntries_1.return)) _v.call(relevantEntries_1);
13694
13744
  }
13695
13745
  finally { if (e_6) throw e_6.error; }
13696
13746
  }
13697
- var stages = ((_g = drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.structures) !== null && _g !== void 0 ? _g : []).reduce(function (stages, structure) {
13747
+ var stages = ((_h = drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.structures) !== null && _h !== void 0 ? _h : []).reduce(function (stages, structure) {
13698
13748
  if (!stages.includes(structure.stage))
13699
13749
  stages.push(structure.stage);
13700
13750
  return stages;
13701
13751
  }, []);
13702
- var linksCount = ((_h = drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.links) !== null && _h !== void 0 ? _h : []).length;
13752
+ var linksCount = ((_j = drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.links) !== null && _j !== void 0 ? _j : []).length;
13703
13753
  derivedDrawInfo[drawId] = {
13704
13754
  qualifyingPositionAssignments: qualifyingPositionAssignments,
13705
13755
  qualifyingSeedAssignments: qualifyingSeedAssignments,
@@ -13728,7 +13778,7 @@ function getParticipantEntries(params) {
13728
13778
  catch (e_4_1) { e_4 = { error: e_4_1 }; }
13729
13779
  finally {
13730
13780
  try {
13731
- if (drawIds_1_1 && !drawIds_1_1.done && (_p = drawIds_1.return)) _p.call(drawIds_1);
13781
+ if (drawIds_1_1 && !drawIds_1_1.done && (_q = drawIds_1.return)) _q.call(drawIds_1);
13732
13782
  }
13733
13783
  finally { if (e_4) throw e_4.error; }
13734
13784
  }
@@ -13741,7 +13791,7 @@ function getParticipantEntries(params) {
13741
13791
  withMatchUps ||
13742
13792
  withDraws) {
13743
13793
  var nextMatchUps = !!scheduleAnalysis || withPotentialMatchUps;
13744
- var eventMatchUps = (_k = (_j = allEventMatchUps({
13794
+ var eventMatchUps = (_l = (_k = allEventMatchUps({
13745
13795
  afterRecoveryTimes: !!scheduleAnalysis,
13746
13796
  policyDefinitions: policyDefinitions,
13747
13797
  tournamentRecord: tournamentRecord,
@@ -13750,10 +13800,10 @@ function getParticipantEntries(params) {
13750
13800
  participantMap: participantMap,
13751
13801
  nextMatchUps: nextMatchUps,
13752
13802
  event: event_1,
13753
- })) === null || _j === void 0 ? void 0 : _j.matchUps) !== null && _k !== void 0 ? _k : [];
13803
+ })) === null || _k === void 0 ? void 0 : _k.matchUps) !== null && _l !== void 0 ? _l : [];
13754
13804
  var _loop_5 = function (matchUp) {
13755
- var e_7, _x;
13756
- var finishingPositionRange = matchUp.finishingPositionRange, potentialParticipants = matchUp.potentialParticipants, _y = matchUp.tieMatchUps, tieMatchUps = _y === void 0 ? [] : _y, _z = matchUp.sides, sides = _z === void 0 ? [] : _z, winningSide = matchUp.winningSide, matchUpType = matchUp.matchUpType, matchUpId = matchUp.matchUpId, eventId_1 = matchUp.eventId, drawId = matchUp.drawId, collectionId = matchUp.collectionId, stageSequence = matchUp.stageSequence, finishingRound = matchUp.finishingRound, matchUpStatus = matchUp.matchUpStatus, roundPosition = matchUp.roundPosition, roundNumber = matchUp.roundNumber, structureId = matchUp.structureId, schedule = matchUp.schedule, score = matchUp.score, stage = matchUp.stage;
13805
+ var e_7, _y;
13806
+ var finishingPositionRange = matchUp.finishingPositionRange, potentialParticipants = matchUp.potentialParticipants, _z = matchUp.tieMatchUps, tieMatchUps = _z === void 0 ? [] : _z, _0 = matchUp.sides, sides = _0 === void 0 ? [] : _0, winningSide = matchUp.winningSide, matchUpType = matchUp.matchUpType, matchUpId = matchUp.matchUpId, eventId_1 = matchUp.eventId, drawId = matchUp.drawId, collectionId = matchUp.collectionId, stageSequence = matchUp.stageSequence, finishingRound = matchUp.finishingRound, matchUpStatus = matchUp.matchUpStatus, roundPosition = matchUp.roundPosition, roundNumber = matchUp.roundNumber, structureId = matchUp.structureId, schedule = matchUp.schedule, score = matchUp.score, stage = matchUp.stage;
13757
13807
  mappedMatchUps[matchUpId] = matchUp;
13758
13808
  var baseAttrs = {
13759
13809
  finishingPositionRange: finishingPositionRange,
@@ -13773,14 +13823,14 @@ function getParticipantEntries(params) {
13773
13823
  try {
13774
13824
  for (var tieMatchUps_1 = (e_7 = void 0, __values(tieMatchUps)), tieMatchUps_1_1 = tieMatchUps_1.next(); !tieMatchUps_1_1.done; tieMatchUps_1_1 = tieMatchUps_1.next()) {
13775
13825
  var tieMatchUp = tieMatchUps_1_1.value;
13776
- var tieMatchUpWinningSide = tieMatchUp.winningSide, _0 = tieMatchUp.sides, tieMatchUpSides = _0 === void 0 ? [] : _0, tieMatchUpId = tieMatchUp.matchUpId, matchUpStatus_1 = tieMatchUp.matchUpStatus, matchUpType_1 = tieMatchUp.matchUpType;
13826
+ var tieMatchUpWinningSide = tieMatchUp.winningSide, _1 = tieMatchUp.sides, tieMatchUpSides = _1 === void 0 ? [] : _1, tieMatchUpId = tieMatchUp.matchUpId, matchUpStatus_1 = tieMatchUp.matchUpStatus, matchUpType_1 = tieMatchUp.matchUpType;
13777
13827
  processSides(__assign(__assign(__assign({}, baseAttrs), withOpts), { winningSide: tieMatchUpWinningSide, tieWinningSide: winningSide, matchUpTieId: matchUpId, matchUpId: tieMatchUpId, sides: tieMatchUpSides, matchUpSides: sides, matchUpStatus: matchUpStatus_1, matchUpType: matchUpType_1 }));
13778
13828
  }
13779
13829
  }
13780
13830
  catch (e_7_1) { e_7 = { error: e_7_1 }; }
13781
13831
  finally {
13782
13832
  try {
13783
- if (tieMatchUps_1_1 && !tieMatchUps_1_1.done && (_x = tieMatchUps_1.return)) _x.call(tieMatchUps_1);
13833
+ if (tieMatchUps_1_1 && !tieMatchUps_1_1.done && (_y = tieMatchUps_1.return)) _y.call(tieMatchUps_1);
13784
13834
  }
13785
13835
  finally { if (e_7) throw e_7.error; }
13786
13836
  }
@@ -13827,7 +13877,7 @@ function getParticipantEntries(params) {
13827
13877
  catch (e_5_1) { e_5 = { error: e_5_1 }; }
13828
13878
  finally {
13829
13879
  try {
13830
- if (eventMatchUps_1_1 && !eventMatchUps_1_1.done && (_q = eventMatchUps_1.return)) _q.call(eventMatchUps_1);
13880
+ if (eventMatchUps_1_1 && !eventMatchUps_1_1.done && (_r = eventMatchUps_1.return)) _r.call(eventMatchUps_1);
13831
13881
  }
13832
13882
  finally { if (e_5) throw e_5.error; }
13833
13883
  }
@@ -13835,23 +13885,23 @@ function getParticipantEntries(params) {
13835
13885
  }
13836
13886
  };
13837
13887
  try {
13838
- for (var _l = __values((tournamentRecord === null || tournamentRecord === void 0 ? void 0 : tournamentRecord.events) || []), _m = _l.next(); !_m.done; _m = _l.next()) {
13839
- var event_1 = _m.value;
13888
+ for (var _m = __values((tournamentRecord === null || tournamentRecord === void 0 ? void 0 : tournamentRecord.events) || []), _o = _m.next(); !_o.done; _o = _m.next()) {
13889
+ var event_1 = _o.value;
13840
13890
  _loop_1(event_1);
13841
13891
  }
13842
13892
  }
13843
13893
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
13844
13894
  finally {
13845
13895
  try {
13846
- if (_m && !_m.done && (_a = _l.return)) _a.call(_l);
13896
+ if (_o && !_o.done && (_a = _m.return)) _a.call(_m);
13847
13897
  }
13848
13898
  finally { if (e_1) throw e_1.error; }
13849
13899
  }
13850
13900
  if (withStatistics || withRankingProfile || !!scheduleAnalysis) {
13851
13901
  var aggregators = Object.values(participantMap);
13852
13902
  var _loop_2 = function (participantAggregator) {
13853
- var e_8, _1, e_9, _2, e_10, _3;
13854
- var _4 = participantAggregator.counters, wins = _4.wins, losses = _4.losses, _5 = SINGLES, _6 = _4[_5], singlesWins = _6.wins, singlesLosses = _6.losses, _7 = DOUBLES, _8 = _4[_7], doublesWins = _8.wins, doublesLosses = _8.losses;
13903
+ var e_8, _2, e_9, _3, e_10, _4;
13904
+ var _5 = participantAggregator.counters, wins = _5.wins, losses = _5.losses, _6 = SINGLES, _7 = _5[_6], singlesWins = _7.wins, singlesLosses = _7.losses, _8 = DOUBLES, _9 = _5[_8], doublesWins = _9.wins, doublesLosses = _9.losses;
13855
13905
  var addStatValue = function (statCode, wins, losses) {
13856
13906
  var denominator = wins + losses;
13857
13907
  var numerator = wins;
@@ -13874,7 +13924,7 @@ function getParticipantEntries(params) {
13874
13924
  return Math.abs(range[0] - range[1]);
13875
13925
  };
13876
13926
  var _loop_7 = function (drawId) {
13877
- var _11 = derivedDrawInfo[drawId] || {}, _12 = _11.orderedStructureIds, orderedStructureIds = _12 === void 0 ? [] : _12, flightNumber = _11.flightNumber;
13927
+ var _12 = derivedDrawInfo[drawId] || {}, _13 = _12.orderedStructureIds, orderedStructureIds = _13 === void 0 ? [] : _13, flightNumber = _12.flightNumber;
13878
13928
  if (participantAggregator.structureParticipation && orderedStructureIds.length) {
13879
13929
  var finishingPositionRange_1;
13880
13930
  var nonQualifyingOrder_1 = 0;
@@ -13902,15 +13952,15 @@ function getParticipantEntries(params) {
13902
13952
  }
13903
13953
  };
13904
13954
  try {
13905
- for (var _9 = (e_8 = void 0, __values(Object.keys(participantAggregator.draws))), _10 = _9.next(); !_10.done; _10 = _9.next()) {
13906
- var drawId = _10.value;
13955
+ for (var _10 = (e_8 = void 0, __values(Object.keys(participantAggregator.draws))), _11 = _10.next(); !_11.done; _11 = _10.next()) {
13956
+ var drawId = _11.value;
13907
13957
  _loop_7(drawId);
13908
13958
  }
13909
13959
  }
13910
13960
  catch (e_8_1) { e_8 = { error: e_8_1 }; }
13911
13961
  finally {
13912
13962
  try {
13913
- if (_10 && !_10.done && (_1 = _9.return)) _1.call(_9);
13963
+ if (_11 && !_11.done && (_2 = _10.return)) _2.call(_10);
13914
13964
  }
13915
13965
  finally { if (e_8) throw e_8.error; }
13916
13966
  }
@@ -13971,7 +14021,7 @@ function getParticipantEntries(params) {
13971
14021
  catch (e_10_1) { e_10 = { error: e_10_1 }; }
13972
14022
  finally {
13973
14023
  try {
13974
- if (scheduleItemsToConsider_1_1 && !scheduleItemsToConsider_1_1.done && (_3 = scheduleItemsToConsider_1.return)) _3.call(scheduleItemsToConsider_1);
14024
+ if (scheduleItemsToConsider_1_1 && !scheduleItemsToConsider_1_1.done && (_4 = scheduleItemsToConsider_1.return)) _4.call(scheduleItemsToConsider_1);
13975
14025
  }
13976
14026
  finally { if (e_10) throw e_10.error; }
13977
14027
  }
@@ -13980,7 +14030,7 @@ function getParticipantEntries(params) {
13980
14030
  catch (e_9_1) { e_9 = { error: e_9_1 }; }
13981
14031
  finally {
13982
14032
  try {
13983
- if (scheduleItems_1_1 && !scheduleItems_1_1.done && (_2 = scheduleItems_1.return)) _2.call(scheduleItems_1);
14033
+ if (scheduleItems_1_1 && !scheduleItems_1_1.done && (_3 = scheduleItems_1.return)) _3.call(scheduleItems_1);
13984
14034
  }
13985
14035
  finally { if (e_9) throw e_9.error; }
13986
14036
  }
@@ -34591,9 +34641,7 @@ function publishEvent(params) {
34591
34641
  var drawId = _a.drawId;
34592
34642
  return drawId;
34593
34643
  })) !== null && _d !== void 0 ? _d : [];
34594
- var keyedDrawIds = params.drawDetails
34595
- ? Object.keys(params.drawDetails)
34596
- : [];
34644
+ var keyedDrawIds = params.drawDetails ? Object.keys(params.drawDetails) : [];
34597
34645
  var specifiedDrawIds = keyedDrawIds.length ? [] : params.drawIds;
34598
34646
  var drawIdsToValidate = (_a = (drawIdsToAdd !== null && drawIdsToAdd !== void 0 ? drawIdsToAdd : [])).concat.apply(_a, __spreadArray(__spreadArray(__spreadArray([], __read((drawIdsToRemove !== null && drawIdsToRemove !== void 0 ? drawIdsToRemove : [])), false), __read((specifiedDrawIds !== null && specifiedDrawIds !== void 0 ? specifiedDrawIds : [])), false), __read(keyedDrawIds), false));
34599
34647
  var invalidDrawIds = drawIdsToValidate.filter(function (drawId) { return !eventDrawIds.includes(drawId); });
@@ -34614,13 +34662,10 @@ function publishEvent(params) {
34614
34662
  var _loop_1 = function (drawId) {
34615
34663
  var e_2, _r, e_3, _s, e_4, _t, e_5, _u, e_6, _v;
34616
34664
  if (!drawIdsToValidate.length || drawIdsToValidate.includes(drawId)) {
34617
- if ((drawIdsToRemove === null || drawIdsToRemove === void 0 ? void 0 : drawIdsToRemove.includes(drawId)) ||
34618
- ((specifiedDrawIds === null || specifiedDrawIds === void 0 ? void 0 : specifiedDrawIds.length) && !specifiedDrawIds.includes(drawId))) {
34665
+ if ((drawIdsToRemove === null || drawIdsToRemove === void 0 ? void 0 : drawIdsToRemove.includes(drawId)) || ((specifiedDrawIds === null || specifiedDrawIds === void 0 ? void 0 : specifiedDrawIds.length) && !specifiedDrawIds.includes(drawId))) {
34619
34666
  drawDetails[drawId] = __assign(__assign({}, drawDetails[drawId]), { publishingDetail: { published: false } });
34620
34667
  }
34621
- else if ((drawIdsToAdd === null || drawIdsToAdd === void 0 ? void 0 : drawIdsToAdd.includes(drawId)) ||
34622
- (specifiedDrawIds === null || specifiedDrawIds === void 0 ? void 0 : specifiedDrawIds.includes(drawId)) ||
34623
- !(specifiedDrawIds === null || specifiedDrawIds === void 0 ? void 0 : specifiedDrawIds.length)) {
34668
+ else if ((drawIdsToAdd === null || drawIdsToAdd === void 0 ? void 0 : drawIdsToAdd.includes(drawId)) || (specifiedDrawIds === null || specifiedDrawIds === void 0 ? void 0 : specifiedDrawIds.includes(drawId)) || !(specifiedDrawIds === null || specifiedDrawIds === void 0 ? void 0 : specifiedDrawIds.length)) {
34624
34669
  drawDetails[drawId] = __assign(__assign({}, drawDetails[drawId]), { publishingDetail: { published: true } });
34625
34670
  }
34626
34671
  }
@@ -51700,8 +51745,8 @@ var mockTournamentNames = [
51700
51745
  ];
51701
51746
  function generateTournamentRecord(params) {
51702
51747
  var e_1, _a, _b, e_2, _c, e_3, _d, _e;
51703
- var tournamentAttributes = params.tournamentAttributes, startDate = params.startDate, endDate = params.endDate;
51704
- var _f = params.tournamentName, tournamentName = _f === void 0 ? randomPop(mockTournamentNames) : _f, _g = params.ratingsParameters, ratingsParameters$1 = _g === void 0 ? ratingsParameters : _g, scheduleCompletedMatchUps = params.scheduleCompletedMatchUps, tournamentExtensions = params.tournamentExtensions, matchUpStatusProfile = params.matchUpStatusProfile, completeAllMatchUps = params.completeAllMatchUps, participantsProfile = params.participantsProfile, autoEntryPositions = params.autoEntryPositions, hydrateCollections = params.hydrateCollections, randomWinningSide = params.randomWinningSide, policyDefinitions = params.policyDefinitions, schedulingProfile = params.schedulingProfile, periodLength = params.periodLength, autoSchedule = params.autoSchedule, eventProfiles = params.eventProfiles, venueProfiles = params.venueProfiles, drawProfiles = params.drawProfiles, uuids = params.uuids;
51748
+ var _f = params !== null && params !== void 0 ? params : {}, tournamentAttributes = _f.tournamentAttributes, startDate = _f.startDate, endDate = _f.endDate;
51749
+ var _g = params !== null && params !== void 0 ? params : {}, _h = _g.tournamentName, tournamentName = _h === void 0 ? randomPop(mockTournamentNames) : _h, _j = _g.ratingsParameters, ratingsParameters$1 = _j === void 0 ? ratingsParameters : _j, scheduleCompletedMatchUps = _g.scheduleCompletedMatchUps, tournamentExtensions = _g.tournamentExtensions, matchUpStatusProfile = _g.matchUpStatusProfile, completeAllMatchUps = _g.completeAllMatchUps, participantsProfile = _g.participantsProfile, autoEntryPositions = _g.autoEntryPositions, hydrateCollections = _g.hydrateCollections, randomWinningSide = _g.randomWinningSide, policyDefinitions = _g.policyDefinitions, schedulingProfile = _g.schedulingProfile, periodLength = _g.periodLength, autoSchedule = _g.autoSchedule, eventProfiles = _g.eventProfiles, venueProfiles = _g.venueProfiles, drawProfiles = _g.drawProfiles, uuids = _g.uuids;
51705
51750
  if ((startDate && !isValidDateString(startDate)) || (endDate && !isValidDateString(endDate)))
51706
51751
  return { error: INVALID_DATE };
51707
51752
  if (eventProfiles && !Array.isArray(eventProfiles))
@@ -51726,8 +51771,8 @@ function generateTournamentRecord(params) {
51726
51771
  }
51727
51772
  if (typeof policyDefinitions === 'object') {
51728
51773
  try {
51729
- for (var _h = __values(Object.keys(policyDefinitions)), _j = _h.next(); !_j.done; _j = _h.next()) {
51730
- var policyType = _j.value;
51774
+ for (var _k = __values(Object.keys(policyDefinitions)), _l = _k.next(); !_l.done; _l = _k.next()) {
51775
+ var policyType = _l.value;
51731
51776
  attachPolicies({
51732
51777
  policyDefinitions: (_b = {}, _b[policyType] = policyDefinitions[policyType], _b),
51733
51778
  tournamentRecord: tournamentRecord,
@@ -51737,7 +51782,7 @@ function generateTournamentRecord(params) {
51737
51782
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
51738
51783
  finally {
51739
51784
  try {
51740
- if (_j && !_j.done && (_a = _h.return)) _a.call(_h);
51785
+ if (_l && !_l.done && (_a = _k.return)) _a.call(_k);
51741
51786
  }
51742
51787
  finally { if (e_1) throw e_1.error; }
51743
51788
  }
@@ -52347,10 +52392,8 @@ function modifyTournamentRecord(params) {
52347
52392
  eventProfiles === null || eventProfiles === void 0 ? void 0 : eventProfiles.forEach(function (eventProfile) {
52348
52393
  var _a;
52349
52394
  var event = (_a = tournamentRecord.events) === null || _a === void 0 ? void 0 : _a.find(function (event, index) {
52350
- return (eventProfile.eventIndex !== undefined &&
52351
- index === eventProfile.eventIndex) ||
52352
- (eventProfile.eventName &&
52353
- event.eventName === eventProfile.eventName) ||
52395
+ return (eventProfile.eventIndex !== undefined && index === eventProfile.eventIndex) ||
52396
+ (eventProfile.eventName && event.eventName === eventProfile.eventName) ||
52354
52397
  (eventProfile.eventId && event.eventId === eventProfile.eventId);
52355
52398
  });
52356
52399
  if (event === null || event === void 0 ? void 0 : event.gender) {
@@ -52376,10 +52419,8 @@ function modifyTournamentRecord(params) {
52376
52419
  var _loop_1 = function (eventProfile) {
52377
52420
  var ratingsParameters_1 = eventProfile.ratingsParameters;
52378
52421
  var event_1 = (_g = tournamentRecord.events) === null || _g === void 0 ? void 0 : _g.find(function (event, index) {
52379
- return (eventProfile.eventIndex !== undefined &&
52380
- index === eventProfile.eventIndex) ||
52381
- (eventProfile.eventName &&
52382
- event.eventName === eventProfile.eventName) ||
52422
+ return (eventProfile.eventIndex !== undefined && index === eventProfile.eventIndex) ||
52423
+ (eventProfile.eventName && event.eventName === eventProfile.eventName) ||
52383
52424
  (eventProfile.eventId && event.eventId === eventProfile.eventId);
52384
52425
  });
52385
52426
  if (!event_1) {
@@ -52410,9 +52451,7 @@ function modifyTournamentRecord(params) {
52410
52451
  else {
52411
52452
  var gender = event_1.gender, category = event_1.category, eventType = event_1.eventType;
52412
52453
  var drawProfiles_2 = eventProfile.drawProfiles, publish = eventProfile.publish;
52413
- var eventParticipantType = (eventType === SINGLES$1 && INDIVIDUAL) ||
52414
- (eventType === DOUBLES$1 && PAIR) ||
52415
- eventType;
52454
+ var eventParticipantType = (eventType === SINGLES$1 && INDIVIDUAL) || (eventType === DOUBLES$1 && PAIR) || eventType;
52416
52455
  if (drawProfiles_2) {
52417
52456
  var _k = getStageParticipantsCount({
52418
52457
  drawProfiles: drawProfiles_2,
@@ -52527,9 +52566,7 @@ function modifyTournamentRecord(params) {
52527
52566
  finally { if (e_2) throw e_2.error; }
52528
52567
  }
52529
52568
  }
52530
- var venueIds = (venueProfiles === null || venueProfiles === void 0 ? void 0 : venueProfiles.length)
52531
- ? generateVenues({ tournamentRecord: tournamentRecord, venueProfiles: venueProfiles })
52532
- : [];
52569
+ var venueIds = (venueProfiles === null || venueProfiles === void 0 ? void 0 : venueProfiles.length) ? generateVenues({ tournamentRecord: tournamentRecord, venueProfiles: venueProfiles }) : [];
52533
52570
  var scheduledRounds;
52534
52571
  var schedulerResult = {};
52535
52572
  if (schedulingProfile === null || schedulingProfile === void 0 ? void 0 : schedulingProfile.length) {
@@ -54626,7 +54663,9 @@ var query$4 = {
54626
54663
  getCourtInfo: getCourtInfo,
54627
54664
  getDrawData: getDrawData,
54628
54665
  getEventData: getEventData,
54666
+ getEventPublishStatus: getEventPublishStatus,
54629
54667
  getPublishState: getPublishState,
54668
+ getTournamentPublishStatus: getTournamentPublishStatus,
54630
54669
  getVenueData: getVenueData
54631
54670
  };
54632
54671
 
@@ -54637,7 +54676,9 @@ var index$8 = {
54637
54676
  getCourtInfo: getCourtInfo,
54638
54677
  getDrawData: getDrawData,
54639
54678
  getEventData: getEventData,
54679
+ getEventPublishStatus: getEventPublishStatus,
54640
54680
  getPublishState: getPublishState,
54681
+ getTournamentPublishStatus: getTournamentPublishStatus,
54641
54682
  getVenueData: getVenueData,
54642
54683
  mutate: mutate$4,
54643
54684
  publishEvent: publishEvent,
@@ -66573,42 +66614,77 @@ var index = {
66573
66614
  venueConstants: venueConstants
66574
66615
  };
66575
66616
 
66617
+ exports.activeMatchUpStatuses = activeMatchUpStatuses;
66576
66618
  exports.askEngine = askEngine;
66577
66619
  exports.asyncEngine = asyncEngine;
66620
+ exports.auditConstants = auditConstants;
66578
66621
  exports.competitionEngine = competitionEngine;
66622
+ exports.competitionGovernor = index$h;
66623
+ exports.completedMatchUpStatuses = completedMatchUpStatuses;
66624
+ exports.directingMatchUpStatuses = directingMatchUpStatuses;
66579
66625
  exports.drawDefinitionConstants = drawDefinitionConstants;
66626
+ exports.drawsGovernor = index$g;
66627
+ exports.entriesGovernor = index$f;
66580
66628
  exports.entryStatusConstants = entryStatusConstants;
66581
66629
  exports.errorConditionConstants = errorConditionConstants;
66582
66630
  exports.eventConstants = eventConstants;
66631
+ exports.eventGovernor = index$e;
66632
+ exports.extensionConstants = extensionConstants;
66583
66633
  exports.factoryConstants = index;
66584
66634
  exports.fixtures = fixtures;
66585
66635
  exports.flightConstants = flightConstants;
66586
66636
  exports.forge = forge;
66587
66637
  exports.genderConstants = genderConstants;
66638
+ exports.generationGovernor = index$d;
66588
66639
  exports.globalState = globalState$1;
66589
66640
  exports.governors = governors;
66590
66641
  exports.keyValueConstants = keyValueConstants;
66591
66642
  exports.matchUpActionConstants = matchUpActionConstants;
66592
66643
  exports.matchUpEngine = matchUpEngine;
66593
66644
  exports.matchUpFormatCode = index$c;
66645
+ exports.matchUpFormatGovernor = index$c;
66646
+ exports.matchUpGovernor = index$b;
66594
66647
  exports.matchUpStatusConstants = matchUpStatusConstants;
66595
66648
  exports.matchUpTypes = matchUpTypes;
66596
66649
  exports.mocksEngine = mocksEngine;
66650
+ exports.mocksGovernor = mocksGovernor;
66651
+ exports.nonDirectingMatchUpStatuses = nonDirectingMatchUpStatuses;
66652
+ exports.particicipantsRequiredMatchUpStatuses = particicipantsRequiredMatchUpStatuses;
66597
66653
  exports.participantConstants = participantConstants;
66654
+ exports.participantGovernor = index$a;
66598
66655
  exports.participantRoles = participantRoles;
66599
66656
  exports.participantTypes = participantTypes;
66600
66657
  exports.penaltyConstants = penaltyConstants;
66601
66658
  exports.policyConstants = policyConstants;
66659
+ exports.policyGovernor = index$9;
66602
66660
  exports.positionActionConstants = positionActionConstants;
66661
+ exports.publishingGovernor = index$8;
66662
+ exports.queryGovernor = index$7;
66663
+ exports.ratingConstants = ratingConstants;
66664
+ exports.recoveryTimeRequiredMatchUpStatuses = recoveryTimeRequiredMatchUpStatuses;
66665
+ exports.reportGovernor = index$6;
66666
+ exports.requestConstants = requestConstants;
66603
66667
  exports.resultConstants = resultConstants;
66604
66668
  exports.scaleConstants = scaleConstants;
66605
66669
  exports.scaleEngine = scaleEngine;
66670
+ exports.scheduleConstants = scheduleConstants;
66671
+ exports.scheduleGovernor = index$5;
66672
+ exports.scoreGovernor = scoreGovernor;
66673
+ exports.sortingConstants = sortingConstants;
66606
66674
  exports.surfaceConstants = surfaceConstants;
66607
66675
  exports.syncEngine = syncEngine;
66676
+ exports.tieFormatConstants = tieFormatConstants;
66677
+ exports.tieFormatGovernor = index$4;
66608
66678
  exports.timeItemConstants = timeItemConstants;
66609
66679
  exports.tools = index$1;
66680
+ exports.topicConstants = topicConstants;
66681
+ exports.tournamentConstants = tournamentConstants;
66610
66682
  exports.tournamentEngine = tournamentEngine;
66683
+ exports.tournamentGovernor = index$3;
66684
+ exports.upcomingMatchUpStatuses = upcomingMatchUpStatuses;
66611
66685
  exports.utilities = index$1;
66686
+ exports.validMatchUpStatuses = validMatchUpStatuses;
66612
66687
  exports.venueConstants = venueConstants;
66688
+ exports.venueGovernor = index$2;
66613
66689
  exports.version = factoryVersion;
66614
66690
  //# sourceMappingURL=tods-competition-factory.development.cjs.js.map