tods-competition-factory 2.2.8 → 2.2.9

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.
@@ -6891,6 +6891,8 @@ type GetParticipantsArgs = {
6891
6891
  scheduleAnalysis?: ScheduleAnalysis;
6892
6892
  policyDefinitions?: PolicyDefinitions;
6893
6893
  withPotentialMatchUps?: boolean;
6894
+ contextFilters?: MatchUpFilters;
6895
+ matchUpFilters?: MatchUpFilters;
6894
6896
  returnParticipantMap?: boolean;
6895
6897
  contextProfile?: ContextProfile;
6896
6898
  tournamentRecord: Tournament;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function factoryVersion() {
6
- return '2.2.8';
6
+ return '2.2.9';
7
7
  }
8
8
 
9
9
  const SINGLES_MATCHUP = 'SINGLES';
@@ -11541,7 +11541,7 @@ function getDrawMatchUps(params) {
11541
11541
 
11542
11542
  function allEventMatchUps(params) {
11543
11543
  let { participants = [], contextContent, participantMap } = params;
11544
- const { scheduleVisibilityFilters, tournamentAppliedPolicies, participantsProfile, afterRecoveryTimes, policyDefinitions, useParticipantMap, tournamentRecord, usePublishState, contextFilters, contextProfile, matchUpFilters, nextMatchUps, inContext, context, event, } = params;
11544
+ const { scheduleVisibilityFilters, tournamentAppliedPolicies, participantsProfile, afterRecoveryTimes, policyDefinitions, useParticipantMap, tournamentRecord, usePublishState, contextFilters, matchUpFilters, contextProfile, nextMatchUps, inContext, context, event, } = params;
11545
11545
  if (!event)
11546
11546
  return { error: MISSING_EVENT };
11547
11547
  const { eventId, eventName, endDate, eventType, category, gender, matchUpFormat } = event ?? {};
@@ -13791,7 +13791,7 @@ function processSides(params) {
13791
13791
  }
13792
13792
 
13793
13793
  function getParticipantEntries(params) {
13794
- const { participantFilters, convertExtensions, policyDefinitions, tournamentRecord, usePublishState, participantMap, contextProfile, withPotentialMatchUps, withRankingProfile, withScheduleItems, scheduleAnalysis, withTeamMatchUps, withStatistics, withOpponents, withMatchUps, withSeeding, withEvents, withDraws, } = params;
13794
+ const { participantFilters, convertExtensions, policyDefinitions, tournamentRecord, usePublishState, contextFilters, matchUpFilters, participantMap, contextProfile, withPotentialMatchUps, withRankingProfile, withScheduleItems, scheduleAnalysis, withTeamMatchUps, withStatistics, withOpponents, withMatchUps, withSeeding, withEvents, withDraws, } = params;
13795
13795
  const targetParticipantIds = participantFilters?.participantIds;
13796
13796
  const getRelevantParticipantIds = (participantId) => {
13797
13797
  const relevantParticipantIds = [participantId];
@@ -14033,8 +14033,10 @@ function getParticipantEntries(params) {
14033
14033
  policyDefinitions,
14034
14034
  tournamentRecord,
14035
14035
  inContext: true,
14036
- contextProfile,
14037
14036
  participantMap,
14037
+ contextFilters,
14038
+ matchUpFilters,
14039
+ contextProfile,
14038
14040
  nextMatchUps,
14039
14041
  event,
14040
14042
  })?.matchUps ?? [];
@@ -14348,7 +14350,7 @@ function getEventEntries({ eventEntryStatuses, tournamentEvents }) {
14348
14350
  }
14349
14351
 
14350
14352
  function getParticipants(params) {
14351
- const { withIndividualParticipants, participantFilters = {}, withPotentialMatchUps, withRankingProfile, convertExtensions, policyDefinitions, withScheduleItems, tournamentRecord, scheduleAnalysis, withSignInStatus, withTeamMatchUps, withScaleValues, usePublishState, contextProfile, withStatistics, withOpponents, withMatchUps, internalUse, withSeeding, withEvents, withDraws, withISO2, withIOC, } = params;
14353
+ const { withIndividualParticipants, participantFilters = {}, withPotentialMatchUps, withRankingProfile, convertExtensions, policyDefinitions, withScheduleItems, tournamentRecord, scheduleAnalysis, withSignInStatus, withTeamMatchUps, withScaleValues, usePublishState, withStatistics, contextFilters, matchUpFilters, contextProfile, withOpponents, withMatchUps, internalUse, withSeeding, withEvents, withDraws, withISO2, withIOC, } = params;
14352
14354
  if (!tournamentRecord)
14353
14355
  return { error: MISSING_TOURNAMENT_RECORD };
14354
14356
  if (withMatchUps || withRankingProfile) {
@@ -14379,6 +14381,8 @@ function getParticipants(params) {
14379
14381
  withTeamMatchUps,
14380
14382
  usePublishState,
14381
14383
  withStatistics,
14384
+ contextFilters,
14385
+ matchUpFilters,
14382
14386
  participantMap,
14383
14387
  withOpponents,
14384
14388
  contextProfile,