tods-competition-factory 2.2.49 → 2.3.1

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.
@@ -5730,6 +5730,37 @@ declare function setMatchUpStatus(params: SetMatchUpStatusArgs): ResultType | {
5730
5730
  };
5731
5731
  };
5732
5732
 
5733
+ type SetMatchUpStateArgs = {
5734
+ tournamentRecords?: {
5735
+ [key: string]: Tournament;
5736
+ };
5737
+ policyDefinitions?: PolicyDefinitions;
5738
+ appliedPolicies?: PolicyDefinitions;
5739
+ matchUpStatus?: MatchUpStatusUnion;
5740
+ allowChangePropagation?: boolean;
5741
+ disableScoreValidation?: boolean;
5742
+ projectedWinningSide?: number;
5743
+ propagateExitStatus?: boolean;
5744
+ matchUpStatusCodes?: string[];
5745
+ tournamentRecord?: Tournament;
5746
+ drawDefinition: DrawDefinition;
5747
+ autoCalcDisabled?: boolean;
5748
+ disableAutoCalc?: boolean;
5749
+ enableAutoCalc?: boolean;
5750
+ matchUpFormat?: string;
5751
+ matchUpTieId?: string;
5752
+ tieMatchUpId?: string;
5753
+ removeScore?: boolean;
5754
+ winningSide?: number;
5755
+ matchUpId: string;
5756
+ schedule?: any;
5757
+ notes?: string;
5758
+ outcome?: any;
5759
+ event?: Event$1;
5760
+ score?: any;
5761
+ };
5762
+ declare function setMatchUpState(params: SetMatchUpStateArgs): any;
5763
+
5733
5764
  declare function bulkMatchUpStatusUpdate(params: any): ResultType | {
5734
5765
  success?: boolean;
5735
5766
  error?: ErrorType;
@@ -5739,7 +5770,6 @@ declare function bulkMatchUpStatusUpdate(params: any): ResultType | {
5739
5770
  message: string;
5740
5771
  code: string;
5741
5772
  };
5742
- info?: undefined;
5743
5773
  } | {
5744
5774
  error: {
5745
5775
  message: string;
@@ -5861,6 +5891,7 @@ declare const mutate$9_resetScorecard: typeof resetScorecard;
5861
5891
  declare const mutate$9_resetTieFormat: typeof resetTieFormat;
5862
5892
  declare const mutate$9_setDelegatedOutcome: typeof setDelegatedOutcome;
5863
5893
  declare const mutate$9_setMatchUpFormat: typeof setMatchUpFormat;
5894
+ declare const mutate$9_setMatchUpState: typeof setMatchUpState;
5864
5895
  declare const mutate$9_setMatchUpStatus: typeof setMatchUpStatus;
5865
5896
  declare const mutate$9_setOrderOfFinish: typeof setOrderOfFinish;
5866
5897
  declare const mutate$9_substituteParticipant: typeof substituteParticipant;
@@ -5887,6 +5918,7 @@ declare namespace mutate$9 {
5887
5918
  mutate$9_resetTieFormat as resetTieFormat,
5888
5919
  mutate$9_setDelegatedOutcome as setDelegatedOutcome,
5889
5920
  mutate$9_setMatchUpFormat as setMatchUpFormat,
5921
+ mutate$9_setMatchUpState as setMatchUpState,
5890
5922
  mutate$9_setMatchUpStatus as setMatchUpStatus,
5891
5923
  mutate$9_setOrderOfFinish as setOrderOfFinish,
5892
5924
  mutate$9_substituteParticipant as substituteParticipant,
@@ -6074,7 +6106,7 @@ declare function getMatchUpScheduleDetails(params: GetMatchUpScheduleDetailsArgs
6074
6106
  endDate?: undefined;
6075
6107
  } | {
6076
6108
  schedule: any;
6077
- endDate: any;
6109
+ endDate: string | undefined;
6078
6110
  error?: undefined;
6079
6111
  };
6080
6112
 
@@ -6656,6 +6688,7 @@ declare const index$e_resetScorecard: typeof resetScorecard;
6656
6688
  declare const index$e_resetTieFormat: typeof resetTieFormat;
6657
6689
  declare const index$e_setDelegatedOutcome: typeof setDelegatedOutcome;
6658
6690
  declare const index$e_setMatchUpFormat: typeof setMatchUpFormat;
6691
+ declare const index$e_setMatchUpState: typeof setMatchUpState;
6659
6692
  declare const index$e_setMatchUpStatus: typeof setMatchUpStatus;
6660
6693
  declare const index$e_setOrderOfFinish: typeof setOrderOfFinish;
6661
6694
  declare const index$e_substituteParticipant: typeof substituteParticipant;
@@ -6724,6 +6757,7 @@ declare namespace index$e {
6724
6757
  index$e_resetTieFormat as resetTieFormat,
6725
6758
  index$e_setDelegatedOutcome as setDelegatedOutcome,
6726
6759
  index$e_setMatchUpFormat as setMatchUpFormat,
6760
+ index$e_setMatchUpState as setMatchUpState,
6727
6761
  index$e_setMatchUpStatus as setMatchUpStatus,
6728
6762
  index$e_setOrderOfFinish as setOrderOfFinish,
6729
6763
  index$e_substituteParticipant as substituteParticipant,
@@ -8105,8 +8139,8 @@ declare function getCompetitionPenalties({ tournamentRecords }: GetCompetitionPe
8105
8139
  declare function getCompetitionDateRange({ tournamentRecords }: {
8106
8140
  tournamentRecords: TournamentRecords;
8107
8141
  }): {
8108
- startDate?: Date;
8109
- endDate?: Date;
8142
+ startDate?: string;
8143
+ endDate?: string;
8110
8144
  error?: ErrorType;
8111
8145
  };
8112
8146
 
@@ -9371,9 +9405,9 @@ declare function generateBookings({ defaultRecoveryMinutes, averageMatchUpMinute
9371
9405
  recoveryMinutes: number | undefined;
9372
9406
  averageMinutes: number | undefined;
9373
9407
  periodLength: number;
9374
- startTime: any;
9408
+ startTime: string | undefined;
9375
9409
  courtId: any;
9376
- endTime: any;
9410
+ endTime: string;
9377
9411
  venueId: any;
9378
9412
  }[] | undefined;
9379
9413
  relevantMatchUps: HydratedMatchUp[] | undefined;
@@ -11126,7 +11160,7 @@ declare function dehydrateMatchUps({ tournamentRecord }: {
11126
11160
  error?: ErrorType;
11127
11161
  };
11128
11162
 
11129
- declare function getIsoDateString(schedule: any): any;
11163
+ declare function getIsoDateString(schedule: any): string | undefined;
11130
11164
  declare function validTimeValue(value: any): boolean;
11131
11165
  declare function DateHHMM(date: any): string;
11132
11166
  declare function timeUTC(date?: any): number;
@@ -11137,15 +11171,15 @@ declare function isDate(dateArg: any): boolean;
11137
11171
  declare function generateDateRange(startDt?: any, endDt?: any): string[];
11138
11172
  declare function isISODateString(dateString: any): boolean;
11139
11173
  declare function isTimeString(timeString: any): boolean;
11140
- declare function timeStringMinutes(timeString?: any): any;
11141
- declare function extractTime(dateString: any): any;
11142
- declare function extractDate(dateString: any): any;
11143
- declare function convertTime(value: any, time24?: any, keepDate?: any): any;
11174
+ declare function timeStringMinutes(timeString?: any): number;
11175
+ declare function extractTime(dateString: any): string | undefined;
11176
+ declare function extractDate(dateString: any): string;
11177
+ declare function convertTime(value: any, time24?: any, keepDate?: any): string | undefined;
11144
11178
  declare function addDays(date: any, days?: number): string;
11145
11179
  declare function addWeek(date: any): string;
11146
11180
  declare function getDateByWeek(week: any, year: any, dateFormat: any, sunday?: boolean): string;
11147
- declare function timeToDate(timeString: any, date?: undefined): Date;
11148
- declare function addMinutesToTimeString(timeString?: any, minutes?: any): any;
11181
+ declare function timeToDate(timeString: any, date?: string | undefined): Date;
11182
+ declare function addMinutesToTimeString(timeString?: any, minutes?: any): string;
11149
11183
  declare function sameDay(date1: any, date2: any): boolean;
11150
11184
  declare const dateTime: {
11151
11185
  addDays: typeof addDays;
@@ -12402,6 +12436,9 @@ declare const drawDefinitionConstants: {
12402
12436
  RANDOM: any;
12403
12437
  TOP_DOWN: any;
12404
12438
  BOTTOM_UP: any;
12439
+ CLUSTER: string;
12440
+ ADJACENT: string;
12441
+ SEPARATE: string;
12405
12442
  WATERFALL: string;
12406
12443
  WIN_RATIO: string;
12407
12444
  ROUND_OUTCOME: string;