function automatedPositioning({
  applyPositioning = true,
  tournamentRecord,
  drawDefinition,
  structureId,
  placeByes,
  seedsOnly,
  event,
}) {
  if (!event) return { error: EVENT_NOT_FOUND };
  if (!drawDefinition) return { error: DRAW_DEFINITION_NOT_FOUND };

  const participants = tournamentRecord?.participants;

  return drawEngineAutomatedPositioning({
    tournamentRecord,
    applyPositioning,
    drawDefinition,
    participants,
    structureId,
    placeByes,
    seedsOnly,
  });
}
/**
 *
 * @param {string} drawId - tournamentEngine will resovle event and drawDefinition
 * @param {string} structureId - structure within which positioning should occur
 */
@param {string} drawId - tournamentEngine will resovle event and drawDefinition
@param {string} structureId - structure within which positioning should occur
@param { string } drawId - tournamentEngine will resovle event and drawDefinition @param { string } structureId - structure within which positioning should occur
function automatedPositioning({
  applyPositioning = true,
  tournamentRecord,
  drawDefinition,
  structureId,
  placeByes,
  seedsOnly,
  event,
}) {
  if (!event) return { error: EVENT_NOT_FOUND };
  if (!drawDefinition) return { error: DRAW_DEFINITION_NOT_FOUND };
  const participants = tournamentRecord?.participants;
  return drawEngineAutomatedPositioning({
    tournamentRecord,
    applyPositioning,
    drawDefinition,
    participants,
    structureId,
    placeByes,
    seedsOnly,
  });
}
function automatedPositioning ( { applyPositioning = true , tournamentRecord , drawDefinition , structureId , placeByes , seedsOnly , event , } ) { if ( ! event ) return { error : EVENT_NOT_FOUND } ; if ( ! drawDefinition ) return { error : DRAW_DEFINITION_NOT_FOUND } ; const participants = tournamentRecord ?. participants ; return drawEngineAutomatedPositioning ( { tournamentRecord , applyPositioning , drawDefinition , participants , structureId , placeByes , seedsOnly , } ) ; }
@param {string} drawId - tournamentEngine will resovle event and drawDefinition
 @param {string} structureId - structure within which positioning should occur
@param { string } drawId - tournamentEngine will resovle event and drawDefinition @param { string } structureId - structure within which positioning should occur