tods-competition-factory 1.8.0 → 1.8.2

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.
@@ -1502,6 +1502,7 @@ type GenerateDrawDefinitionArgs = {
1502
1502
  qualifyingOnly?: boolean;
1503
1503
  drawType?: DrawTypeEnum;
1504
1504
  enforceGender?: boolean;
1505
+ processCodes?: string[];
1505
1506
  matchUpFormat?: string;
1506
1507
  matchUpType?: TypeEnum;
1507
1508
  tieFormatName?: string;
@@ -21218,11 +21218,17 @@ const definitionTemplate = () => ({
21218
21218
 
21219
21219
  function newDrawDefinition({
21220
21220
  drawId = UUID(),
21221
+ processCodes,
21221
21222
  matchUpType,
21222
21223
  drawType
21223
21224
  }) {
21224
21225
  const drawDefinition = definitionTemplate();
21225
- return Object.assign(drawDefinition, { drawId, drawType, matchUpType });
21226
+ return Object.assign(drawDefinition, {
21227
+ processCodes,
21228
+ matchUpType,
21229
+ drawType,
21230
+ drawId
21231
+ });
21226
21232
  }
21227
21233
 
21228
21234
  var collectionDefinitions$g = [
@@ -23015,7 +23021,11 @@ function generateDrawDefinition(params) {
23015
23021
  return decorateResult({ result: { error: INVALID_VALUES }, stack });
23016
23022
  if (existingDrawDefinition && drawType !== existingDrawDefinition.drawType)
23017
23023
  existingDrawDefinition.drawType = drawType;
23018
- let drawDefinition = existingDrawDefinition ?? newDrawDefinition({ drawType, drawId: params.drawId });
23024
+ let drawDefinition = existingDrawDefinition ?? newDrawDefinition({
23025
+ drawType,
23026
+ drawId: params.drawId,
23027
+ processCodes: params.processCodes
23028
+ });
23019
23029
  if (matchUpFormat || tieFormat) {
23020
23030
  const equivalentInScope = matchUpFormat && event?.matchUpFormat === matchUpFormat || event?.tieFormat && tieFormat && JSON.stringify(event.tieFormat) === JSON.stringify(tieFormat);
23021
23031
  if (!equivalentInScope) {