tods-competition-factory 2.2.34 → 2.2.36

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.
@@ -9875,6 +9875,15 @@ declare namespace help {
9875
9875
  };
9876
9876
  }
9877
9877
 
9878
+ declare function validateSetScore(set: any, matchUpFormat?: string, isDecidingSet?: boolean, allowIncomplete?: boolean): {
9879
+ isValid: boolean;
9880
+ error?: string;
9881
+ };
9882
+ declare function validateMatchUpScore(sets: any[], matchUpFormat?: string, matchUpStatus?: string): {
9883
+ isValid: boolean;
9884
+ error?: string;
9885
+ };
9886
+
9878
9887
  type ValidateTieFormatArgs = {
9879
9888
  checkCollectionIds?: boolean;
9880
9889
  enforceCategory?: boolean;
@@ -9946,6 +9955,7 @@ declare function analyzeScore({ existingMatchUpStatus, matchUpFormat, matchUpSta
9946
9955
  type ParseScoreArgs = {
9947
9956
  scoreString: string;
9948
9957
  tiebreakTo?: number;
9958
+ matchUpFormat?: string;
9949
9959
  };
9950
9960
  type ParsedSetString = {
9951
9961
  winningSide: number | undefined;
@@ -9955,7 +9965,7 @@ type ParsedSetString = {
9955
9965
  side2Score?: number;
9956
9966
  setNumber: number;
9957
9967
  };
9958
- declare function parseScoreString({ tiebreakTo, scoreString }: ParseScoreArgs): ParsedSetString[];
9968
+ declare function parseScoreString({ tiebreakTo, scoreString, matchUpFormat }: ParseScoreArgs): ParsedSetString[];
9959
9969
 
9960
9970
  declare function analyzeSet(params: any): {
9961
9971
  [key: string]: any;
@@ -9969,7 +9979,9 @@ declare const query_getSetComplement: typeof getSetComplement;
9969
9979
  declare const query_getTiebreakComplement: typeof getTiebreakComplement;
9970
9980
  declare const query_isValidMatchUpFormat: typeof isValidMatchUpFormat;
9971
9981
  declare const query_parseScoreString: typeof parseScoreString;
9982
+ declare const query_validateMatchUpScore: typeof validateMatchUpScore;
9972
9983
  declare const query_validateScore: typeof validateScore;
9984
+ declare const query_validateSetScore: typeof validateSetScore;
9973
9985
  declare const query_validateTieFormat: typeof validateTieFormat;
9974
9986
  declare namespace query {
9975
9987
  export {
@@ -9981,7 +9993,9 @@ declare namespace query {
9981
9993
  query_getTiebreakComplement as getTiebreakComplement,
9982
9994
  query_isValidMatchUpFormat as isValidMatchUpFormat,
9983
9995
  query_parseScoreString as parseScoreString,
9996
+ query_validateMatchUpScore as validateMatchUpScore,
9984
9997
  query_validateScore as validateScore,
9998
+ query_validateSetScore as validateSetScore,
9985
9999
  query_validateTieFormat as validateTieFormat,
9986
10000
  };
9987
10001
  }
@@ -10010,7 +10024,9 @@ declare const index$6_setServingSide: typeof setServingSide;
10010
10024
  declare const index$6_tidyScore: typeof tidyScore;
10011
10025
  declare const index$6_umo: typeof umo;
10012
10026
  declare const index$6_undo: typeof undo;
10027
+ declare const index$6_validateMatchUpScore: typeof validateMatchUpScore;
10013
10028
  declare const index$6_validateScore: typeof validateScore;
10029
+ declare const index$6_validateSetScore: typeof validateSetScore;
10014
10030
  declare const index$6_validateTieFormat: typeof validateTieFormat;
10015
10031
  declare namespace index$6 {
10016
10032
  export {
@@ -10043,7 +10059,9 @@ declare namespace index$6 {
10043
10059
  index$6_tidyScore as tidyScore,
10044
10060
  index$6_umo as umo,
10045
10061
  index$6_undo as undo,
10062
+ index$6_validateMatchUpScore as validateMatchUpScore,
10046
10063
  index$6_validateScore as validateScore,
10064
+ index$6_validateSetScore as validateSetScore,
10047
10065
  index$6_validateTieFormat as validateTieFormat,
10048
10066
  };
10049
10067
  }