tods-competition-factory 1.8.9 → 1.8.11

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.
@@ -1660,6 +1660,7 @@ type GetPolicyDefinitionsArgs = {
1660
1660
  declare function getPolicyDefinitions({ policyTypes, tournamentRecord, drawDefinition, structure, event, }: GetPolicyDefinitionsArgs): {
1661
1661
  policyDefinitions?: PolicyDefinitions;
1662
1662
  error?: ErrorType;
1663
+ info?: string;
1663
1664
  };
1664
1665
 
1665
1666
  type ResultType = {
@@ -2057,10 +2058,9 @@ type GetParticipantScaleItemArgs = {
2057
2058
  policyDefinitions?: PolicyDefinitions;
2058
2059
  scaleAttributes: ScaleAttributes;
2059
2060
  participantId?: string;
2060
- inContext?: boolean;
2061
2061
  personId?: string;
2062
2062
  };
2063
- declare function getParticipantScaleItem({ tournamentRecords, policyDefinitions, scaleAttributes, participantId, inContext, personId, }: GetParticipantScaleItemArgs): ResultType & {
2063
+ declare function getParticipantScaleItem({ tournamentRecords, policyDefinitions, scaleAttributes, participantId, personId, }: GetParticipantScaleItemArgs): ResultType & {
2064
2064
  scaleItem?: ScaleItem;
2065
2065
  };
2066
2066
 
@@ -2133,9 +2133,8 @@ interface ParticipantScaleItemArgs {
2133
2133
  requireTimeStamp?: boolean;
2134
2134
  participant: Participant;
2135
2135
  }
2136
- declare function participantScaleItem({ requireTimeStamp, scaleAttributes, participant, }: ParticipantScaleItemArgs): {
2136
+ declare function participantScaleItem({ requireTimeStamp, scaleAttributes, participant, }: ParticipantScaleItemArgs): ResultType & {
2137
2137
  scaleItem?: ScaleItem;
2138
- error?: ErrorType;
2139
2138
  };
2140
2139
 
2141
2140
  type GetValidGroupSizesArgs = {
@@ -2155,15 +2154,18 @@ declare function getCompetitionParticipants(params: any): {
2155
2154
  success: boolean;
2156
2155
  competitionParticipants: HydratedParticipant[];
2157
2156
  participantIdsWithConflicts: string[];
2157
+ mappedMatchUps: {
2158
+ [key: string]: MatchUp;
2159
+ };
2158
2160
  error?: undefined;
2159
2161
  };
2160
2162
  type PublicFindParticipantArgs = TournamentRecordsArgs & {
2161
2163
  policyDefinitions?: PolicyDefinitions;
2164
+ contextProfile?: ContextProfile;
2162
2165
  participantId?: string;
2163
- inContext?: boolean;
2164
2166
  personId?: string;
2165
2167
  };
2166
- declare function publicFindParticipant({ policyDefinitions, tournamentRecords, participantId, inContext, personId, }: PublicFindParticipantArgs): {
2168
+ declare function publicFindParticipant({ tournamentRecords, policyDefinitions, contextProfile, participantId, personId, }: PublicFindParticipantArgs): {
2167
2169
  participant?: HydratedParticipant;
2168
2170
  tournamentId?: string;
2169
2171
  error?: ErrorType;