tods-competition-factory 1.8.38 → 1.8.40

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.
@@ -18788,6 +18788,7 @@ function getParticipantEntries(params) {
18788
18788
  continue;
18789
18789
  const {
18790
18790
  drawDefinitions = [],
18791
+ extensions = [],
18791
18792
  eventType,
18792
18793
  eventName,
18793
18794
  category,
@@ -18802,7 +18803,9 @@ function getParticipantEntries(params) {
18802
18803
  if (publishStatuses)
18803
18804
  eventsPublishStatuses[eventId] = publishStatuses;
18804
18805
  if (withEvents || withSeeding || withRankingProfile) {
18806
+ const extensionConversions = convertExtensions ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
18805
18807
  derivedEventInfo[eventId] = {
18808
+ ...extensionConversions,
18806
18809
  eventName,
18807
18810
  eventType,
18808
18811
  category,
@@ -23610,7 +23613,11 @@ function generateDrawDefinition(params) {
23610
23613
  tournamentRecord,
23611
23614
  event
23612
23615
  }).appliedPolicies ?? {};
23613
- const policyDefinitions = params.policyDefinitions ?? {};
23616
+ const policyDefinitions = makeDeepCopy(
23617
+ params.policyDefinitions ?? {},
23618
+ false,
23619
+ true
23620
+ );
23614
23621
  const drawTypeCoercion = params.drawTypeCoercion ?? policyDefinitions?.[POLICY_TYPE_DRAWS]?.drawTypeCoercion ?? appliedPolicies?.[POLICY_TYPE_DRAWS]?.drawTypeCoercion ?? true;
23615
23622
  const drawType = drawTypeCoercion && params.drawSize === 2 && DrawTypeEnum.SingleElimination || params.drawType || DrawTypeEnum.SingleElimination;
23616
23623
  const seedingPolicy = policyDefinitions?.[POLICY_TYPE_SEEDING] ?? appliedPolicies?.[POLICY_TYPE_SEEDING];