tods-competition-factory 2.0.0-alpha.1 → 2.0.0-beta.0
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.
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.d.ts +20 -16
- package/dist/tods-competition-factory.development.cjs.js +1261 -1245
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -4835,6 +4835,13 @@ declare function getTournamentPenalties({ tournamentRecord, }: GetTournamentPena
|
|
|
4835
4835
|
penalties?: Penalty[];
|
|
4836
4836
|
};
|
|
4837
4837
|
|
|
4838
|
+
declare function getTournamentInfo({ tournamentRecord }: {
|
|
4839
|
+
tournamentRecord: any;
|
|
4840
|
+
}): {
|
|
4841
|
+
tournamentInfo?: any;
|
|
4842
|
+
error?: ErrorType;
|
|
4843
|
+
};
|
|
4844
|
+
|
|
4838
4845
|
declare function getTournamentIds({ tournamentRecords }: {
|
|
4839
4846
|
tournamentRecords: any;
|
|
4840
4847
|
}): {
|
|
@@ -6319,13 +6326,6 @@ declare function getVenueData({ tournamentRecord, venueId }: GetVenueDataArgs):
|
|
|
6319
6326
|
venueData?: any;
|
|
6320
6327
|
};
|
|
6321
6328
|
|
|
6322
|
-
declare function getTournamentInfo({ tournamentRecord }: {
|
|
6323
|
-
tournamentRecord: any;
|
|
6324
|
-
}): {
|
|
6325
|
-
tournamentInfo?: any;
|
|
6326
|
-
error?: ErrorType;
|
|
6327
|
-
};
|
|
6328
|
-
|
|
6329
6329
|
type GetPublishStateArgs = {
|
|
6330
6330
|
tournamentRecord?: Tournament;
|
|
6331
6331
|
eventIds?: string[];
|
|
@@ -7166,6 +7166,7 @@ type GenerateDrawMaticRoundArgs = {
|
|
|
7166
7166
|
restrictEntryStatus?: boolean;
|
|
7167
7167
|
drawDefinition: DrawDefinition;
|
|
7168
7168
|
generateMatchUps?: boolean;
|
|
7169
|
+
eventType?: EventTypeUnion;
|
|
7169
7170
|
salted?: number | boolean;
|
|
7170
7171
|
participantIds?: string[];
|
|
7171
7172
|
encounterValue?: number;
|
|
@@ -7174,9 +7175,10 @@ type GenerateDrawMaticRoundArgs = {
|
|
|
7174
7175
|
matchUpIds?: string[];
|
|
7175
7176
|
structure?: Structure;
|
|
7176
7177
|
structureId?: string;
|
|
7177
|
-
eventType?: EventTypeUnion;
|
|
7178
7178
|
scaleName?: string;
|
|
7179
|
+
isMock?: boolean;
|
|
7179
7180
|
drawId?: string;
|
|
7181
|
+
event: Event$1;
|
|
7180
7182
|
};
|
|
7181
7183
|
type DrawMaticRoundResult = {
|
|
7182
7184
|
participantIdPairings?: string[][];
|
|
@@ -7187,10 +7189,9 @@ type DrawMaticRoundResult = {
|
|
|
7187
7189
|
maxDelta?: number;
|
|
7188
7190
|
maxDiff?: number;
|
|
7189
7191
|
};
|
|
7190
|
-
declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, participantIds, drawDefinition, adHocRatings, structureId, salted, matchUpIds, eventType, structure, scaleName, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
|
|
7192
|
+
declare function generateDrawMaticRound({ encounterValue, sameTeamValue, maxIterations, generateMatchUps, tournamentParticipants, participantIds, drawDefinition, adHocRatings, structureId, salted, matchUpIds, eventType, structure, scaleName, isMock, event, }: GenerateDrawMaticRoundArgs): ResultType & DrawMaticRoundResult;
|
|
7191
7193
|
|
|
7192
7194
|
type DrawMaticArgs = {
|
|
7193
|
-
tournamentParticipants?: HydratedParticipant[];
|
|
7194
7195
|
adHocRatings?: {
|
|
7195
7196
|
[key: string]: number;
|
|
7196
7197
|
};
|
|
@@ -7198,6 +7199,7 @@ type DrawMaticArgs = {
|
|
|
7198
7199
|
drawDefinition?: DrawDefinition;
|
|
7199
7200
|
tournamentRecord: Tournament;
|
|
7200
7201
|
generateMatchUps?: boolean;
|
|
7202
|
+
eventType?: EventTypeUnion;
|
|
7201
7203
|
salted?: number | boolean;
|
|
7202
7204
|
participantIds?: string[];
|
|
7203
7205
|
encounterValue?: number;
|
|
@@ -7206,11 +7208,13 @@ type DrawMaticArgs = {
|
|
|
7206
7208
|
structure?: Structure;
|
|
7207
7209
|
matchUpIds?: string[];
|
|
7208
7210
|
structureId?: string;
|
|
7209
|
-
|
|
7210
|
-
event
|
|
7211
|
+
isMock?: boolean;
|
|
7212
|
+
event: Event$1;
|
|
7211
7213
|
scaleAccessor?: string;
|
|
7212
7214
|
scaleName?: string;
|
|
7213
7215
|
};
|
|
7216
|
+
declare function drawMatic({ restrictEntryStatus, adHocRatings, generateMatchUps, tournamentRecord, participantIds, encounterValue, sameTeamValue, drawDefinition, scaleAccessor, maxIterations, structureId, matchUpIds, scaleName, // custom rating name to seed dynamic ratings
|
|
7217
|
+
eventType, isMock, salted, event, }: DrawMaticArgs): ResultType & DrawMaticRoundResult;
|
|
7214
7218
|
|
|
7215
7219
|
type GenerateDrawDefinitionArgs = {
|
|
7216
7220
|
automated?: boolean | {
|
|
@@ -7310,8 +7314,10 @@ type GenerateAdHocMatchUpsArgs = {
|
|
|
7310
7314
|
roundNumber?: number;
|
|
7311
7315
|
structureId?: string;
|
|
7312
7316
|
newRound?: boolean;
|
|
7317
|
+
isMock?: boolean;
|
|
7318
|
+
event: Event$1;
|
|
7313
7319
|
};
|
|
7314
|
-
declare function generateAdHocMatchUps({ participantIdPairings, matchUpIds, drawDefinition, matchUpsCount, roundNumber, structureId, newRound, }: GenerateAdHocMatchUpsArgs): {
|
|
7320
|
+
declare function generateAdHocMatchUps({ participantIdPairings, matchUpIds, drawDefinition, matchUpsCount, roundNumber, structureId, newRound, isMock, event, }: GenerateAdHocMatchUpsArgs): {
|
|
7315
7321
|
matchUpsCount?: number;
|
|
7316
7322
|
matchUps?: MatchUp[];
|
|
7317
7323
|
error?: ErrorType;
|
|
@@ -8356,8 +8362,6 @@ declare function enableTieAutoCalc({ tournamentRecord, drawDefinition, matchUpId
|
|
|
8356
8362
|
event: any;
|
|
8357
8363
|
}): any;
|
|
8358
8364
|
|
|
8359
|
-
declare function drawMatic(params: any): any;
|
|
8360
|
-
|
|
8361
8365
|
declare function disableTieAutoCalc({ drawDefinition, matchUpId, event }: {
|
|
8362
8366
|
drawDefinition: any;
|
|
8363
8367
|
matchUpId: any;
|
|
@@ -9168,7 +9172,6 @@ declare const governors: {
|
|
|
9168
9172
|
getDrawData: typeof getDrawData;
|
|
9169
9173
|
getEventData: typeof getEventData;
|
|
9170
9174
|
getPublishState: typeof getPublishState;
|
|
9171
|
-
getTournamentInfo: typeof getTournamentInfo;
|
|
9172
9175
|
getVenueData: typeof getVenueData;
|
|
9173
9176
|
publishEvent: typeof publishEvent;
|
|
9174
9177
|
publishEventSeeding: typeof publishEventSeeding;
|
|
@@ -9270,6 +9273,7 @@ declare const governors: {
|
|
|
9270
9273
|
getTeamLineUp: typeof getTeamLineUp;
|
|
9271
9274
|
getTieFormat: typeof getTieFormat;
|
|
9272
9275
|
getTournamentIds: typeof getTournamentIds;
|
|
9276
|
+
getTournamentInfo: typeof getTournamentInfo;
|
|
9273
9277
|
getTournamentPenalties: typeof getTournamentPenalties;
|
|
9274
9278
|
getTournamentPersons: typeof getTournamentPersons;
|
|
9275
9279
|
getTournamentStructures: typeof getTournamentStructures;
|