tods-competition-factory 2.0.1 → 2.0.3

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.
@@ -2901,10 +2901,10 @@ type DeleteAdHocMatchUpsArgs = {
2901
2901
  tournamentRecord?: Tournament;
2902
2902
  drawDefinition: DrawDefinition;
2903
2903
  matchUpIds?: string[];
2904
- structureId: string;
2904
+ structureId?: string;
2905
2905
  event?: Event$1;
2906
2906
  };
2907
- declare function deleteAdHocMatchUps({ tournamentRecord, matchUpIds, drawDefinition, structureId, event, }: DeleteAdHocMatchUpsArgs): {
2907
+ declare function deleteAdHocMatchUps(params: DeleteAdHocMatchUpsArgs): {
2908
2908
  error: {
2909
2909
  message: string;
2910
2910
  code: string;
@@ -2939,12 +2939,15 @@ declare function updateTeamLineUp({ drawDefinition, participantId, tieFormat, li
2939
2939
  error?: ErrorType;
2940
2940
  };
2941
2941
 
2942
- declare function addAdHocMatchUps({ tournamentRecord, drawDefinition, structureId, matchUps }: {
2942
+ type AddAdHocMatchUpsParams = {
2943
+ suppressNotifications?: boolean;
2943
2944
  tournamentRecord: any;
2945
+ structureId?: string;
2944
2946
  drawDefinition: any;
2945
- structureId: any;
2946
- matchUps: any;
2947
- }): ResultType;
2947
+ matchUps: any[];
2948
+ event: any;
2949
+ };
2950
+ declare function addAdHocMatchUps(params: AddAdHocMatchUpsParams): ResultType;
2948
2951
 
2949
2952
  type ModifyDrawNameArgs = {
2950
2953
  tournamentRecord: Tournament;
@@ -2973,36 +2976,20 @@ type SetSubOrderArgs = {
2973
2976
  };
2974
2977
  declare function setSubOrder({ tournamentRecord, drawDefinition, drawPosition, structureId, subOrder, event, }: SetSubOrderArgs): ResultType;
2975
2978
 
2976
- /**
2977
- *
2978
- * @param {object} tournamentRecord - passed automatically if tournamentEngine.setState() has been called
2979
- * @param {string} eventId - resolved by tournamentEngine to the event object
2980
- *
2981
- * @param {object} policyDefinitions - seeding policyDefinitions determines the # of seeds for given participantsCount/drawSize
2982
- * @param {object} scaleAttributes -
2983
- * @param {string} scaleName - OPTIONAL - defaults to scaleAttributes.scaleName
2984
- * @param {number} drawSize - OPTIONAL - defaults to calculation based on # of entries
2985
- * @param {string} drawId - OPTIONAL - will use flight.drawEntries or drawDefinition.entries rather than event.entries
2986
- * @param {string} stage - OPTIONAL - filters entries by specified stage
2987
- *
2988
- * @param {boolean} sortDescending - OPTIONAL - defaults to false
2989
- * @param {function} scaleSortMethod - OPTIONAL - user defined sorting method
2990
- *
2991
- * @returns {object} - { success: true } or { error }
2992
- */
2993
- declare function autoSeeding({ tournamentRecord, drawDefinition, policyDefinitions, scaleAttributes, scaleName, drawSize, drawId, event, stage, sortDescending, scaleSortMethod, }: {
2979
+ type AutoSeedingParams = {
2980
+ sortDescending: boolean;
2981
+ stage: StageTypeUnion;
2994
2982
  tournamentRecord: any;
2995
- drawDefinition: any;
2996
2983
  policyDefinitions: any;
2997
2984
  scaleAttributes: any;
2998
- scaleName: any;
2999
- drawSize: any;
3000
- drawId: any;
3001
- event: any;
3002
- stage: any;
3003
- sortDescending: any;
3004
2985
  scaleSortMethod: any;
3005
- }): {
2986
+ drawDefinition: any;
2987
+ scaleName: string;
2988
+ drawSize: number;
2989
+ drawId: string;
2990
+ event: any;
2991
+ };
2992
+ declare function autoSeeding({ tournamentRecord, drawDefinition, policyDefinitions, scaleAttributes, scaleName, drawSize, drawId, event, stage, sortDescending, scaleSortMethod, }: AutoSeedingParams): {
3006
2993
  stageEntries?: Entry[] | undefined;
3007
2994
  seedsCount?: number | undefined;
3008
2995
  entries?: Entry[] | undefined;