tods-competition-factory 2.2.33 → 2.2.35

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.
@@ -5739,7 +5739,6 @@ declare function bulkMatchUpStatusUpdate(params: any): ResultType | {
5739
5739
  message: string;
5740
5740
  code: string;
5741
5741
  };
5742
- info?: undefined;
5743
5742
  } | {
5744
5743
  error: {
5745
5744
  message: string;
@@ -9876,6 +9875,15 @@ declare namespace help {
9876
9875
  };
9877
9876
  }
9878
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
+
9879
9887
  type ValidateTieFormatArgs = {
9880
9888
  checkCollectionIds?: boolean;
9881
9889
  enforceCategory?: boolean;
@@ -9947,6 +9955,7 @@ declare function analyzeScore({ existingMatchUpStatus, matchUpFormat, matchUpSta
9947
9955
  type ParseScoreArgs = {
9948
9956
  scoreString: string;
9949
9957
  tiebreakTo?: number;
9958
+ matchUpFormat?: string;
9950
9959
  };
9951
9960
  type ParsedSetString = {
9952
9961
  winningSide: number | undefined;
@@ -9956,7 +9965,7 @@ type ParsedSetString = {
9956
9965
  side2Score?: number;
9957
9966
  setNumber: number;
9958
9967
  };
9959
- declare function parseScoreString({ tiebreakTo, scoreString }: ParseScoreArgs): ParsedSetString[];
9968
+ declare function parseScoreString({ tiebreakTo, scoreString, matchUpFormat }: ParseScoreArgs): ParsedSetString[];
9960
9969
 
9961
9970
  declare function analyzeSet(params: any): {
9962
9971
  [key: string]: any;
@@ -9970,7 +9979,9 @@ declare const query_getSetComplement: typeof getSetComplement;
9970
9979
  declare const query_getTiebreakComplement: typeof getTiebreakComplement;
9971
9980
  declare const query_isValidMatchUpFormat: typeof isValidMatchUpFormat;
9972
9981
  declare const query_parseScoreString: typeof parseScoreString;
9982
+ declare const query_validateMatchUpScore: typeof validateMatchUpScore;
9973
9983
  declare const query_validateScore: typeof validateScore;
9984
+ declare const query_validateSetScore: typeof validateSetScore;
9974
9985
  declare const query_validateTieFormat: typeof validateTieFormat;
9975
9986
  declare namespace query {
9976
9987
  export {
@@ -9982,7 +9993,9 @@ declare namespace query {
9982
9993
  query_getTiebreakComplement as getTiebreakComplement,
9983
9994
  query_isValidMatchUpFormat as isValidMatchUpFormat,
9984
9995
  query_parseScoreString as parseScoreString,
9996
+ query_validateMatchUpScore as validateMatchUpScore,
9985
9997
  query_validateScore as validateScore,
9998
+ query_validateSetScore as validateSetScore,
9986
9999
  query_validateTieFormat as validateTieFormat,
9987
10000
  };
9988
10001
  }
@@ -10011,7 +10024,9 @@ declare const index$6_setServingSide: typeof setServingSide;
10011
10024
  declare const index$6_tidyScore: typeof tidyScore;
10012
10025
  declare const index$6_umo: typeof umo;
10013
10026
  declare const index$6_undo: typeof undo;
10027
+ declare const index$6_validateMatchUpScore: typeof validateMatchUpScore;
10014
10028
  declare const index$6_validateScore: typeof validateScore;
10029
+ declare const index$6_validateSetScore: typeof validateSetScore;
10015
10030
  declare const index$6_validateTieFormat: typeof validateTieFormat;
10016
10031
  declare namespace index$6 {
10017
10032
  export {
@@ -10044,7 +10059,9 @@ declare namespace index$6 {
10044
10059
  index$6_tidyScore as tidyScore,
10045
10060
  index$6_umo as umo,
10046
10061
  index$6_undo as undo,
10062
+ index$6_validateMatchUpScore as validateMatchUpScore,
10047
10063
  index$6_validateScore as validateScore,
10064
+ index$6_validateSetScore as validateSetScore,
10048
10065
  index$6_validateTieFormat as validateTieFormat,
10049
10066
  };
10050
10067
  }
@@ -10301,6 +10318,17 @@ declare namespace generate$1 {
10301
10318
  };
10302
10319
  }
10303
10320
 
10321
+ declare function hydrateTournamentRecord(params: any): {
10322
+ error: {
10323
+ message: string;
10324
+ code: string;
10325
+ };
10326
+ tournamentRecord?: undefined;
10327
+ } | {
10328
+ tournamentRecord: any;
10329
+ error?: undefined;
10330
+ };
10331
+
10304
10332
  declare function setTournamentStatus({ tournamentRecord, status }: {
10305
10333
  tournamentRecord: any;
10306
10334
  status: any;
@@ -10582,6 +10610,7 @@ declare const mutate$1_addParticipantTimeItem: typeof addParticipantTimeItem;
10582
10610
  declare const mutate$1_addTimeItem: typeof addTimeItem;
10583
10611
  declare const mutate$1_addTournamentExtension: typeof addTournamentExtension;
10584
10612
  declare const mutate$1_addTournamentTimeItem: typeof addTournamentTimeItem;
10613
+ declare const mutate$1_hydrateTournamentRecord: typeof hydrateTournamentRecord;
10585
10614
  declare const mutate$1_removeDrawDefinitionExtension: typeof removeDrawDefinitionExtension;
10586
10615
  declare const mutate$1_removeEventExtension: typeof removeEventExtension;
10587
10616
  declare const mutate$1_removeExtension: typeof removeExtension;
@@ -10609,6 +10638,7 @@ declare namespace mutate$1 {
10609
10638
  mutate$1_addTimeItem as addTimeItem,
10610
10639
  mutate$1_addTournamentExtension as addTournamentExtension,
10611
10640
  mutate$1_addTournamentTimeItem as addTournamentTimeItem,
10641
+ mutate$1_hydrateTournamentRecord as hydrateTournamentRecord,
10612
10642
  mutate$1_removeDrawDefinitionExtension as removeDrawDefinitionExtension,
10613
10643
  mutate$1_removeEventExtension as removeEventExtension,
10614
10644
  mutate$1_removeExtension as removeExtension,
@@ -10654,6 +10684,7 @@ declare const index$4_getTournamentPersons: typeof getTournamentPersons;
10654
10684
  declare const index$4_getTournamentPoints: typeof getTournamentPoints;
10655
10685
  declare const index$4_getTournamentStructures: typeof getTournamentStructures;
10656
10686
  declare const index$4_getTournamentTimeItem: typeof getTournamentTimeItem;
10687
+ declare const index$4_hydrateTournamentRecord: typeof hydrateTournamentRecord;
10657
10688
  declare const index$4_removeDrawDefinitionExtension: typeof removeDrawDefinitionExtension;
10658
10689
  declare const index$4_removeEventExtension: typeof removeEventExtension;
10659
10690
  declare const index$4_removeExtension: typeof removeExtension;
@@ -10699,6 +10730,7 @@ declare namespace index$4 {
10699
10730
  index$4_getTournamentPoints as getTournamentPoints,
10700
10731
  index$4_getTournamentStructures as getTournamentStructures,
10701
10732
  index$4_getTournamentTimeItem as getTournamentTimeItem,
10733
+ index$4_hydrateTournamentRecord as hydrateTournamentRecord,
10702
10734
  mutate$1 as mutate,
10703
10735
  query$4 as query,
10704
10736
  index$4_removeDrawDefinitionExtension as removeDrawDefinitionExtension,