tods-competition-factory 2.2.43 → 2.2.45
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 +2 -2
- package/dist/tods-competition-factory.d.ts +10 -2
- package/dist/tods-competition-factory.development.cjs.js +5 -1
- 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 +1 -1
|
@@ -4626,11 +4626,11 @@ declare function deleteFlightProfileAndFlightDraws({ autoPublish, tournamentReco
|
|
|
4626
4626
|
event: any;
|
|
4627
4627
|
force: any;
|
|
4628
4628
|
}): {
|
|
4629
|
-
error: any;
|
|
4630
|
-
} | {
|
|
4631
4629
|
success?: boolean;
|
|
4632
4630
|
error?: ErrorType;
|
|
4633
4631
|
info?: any;
|
|
4632
|
+
} | {
|
|
4633
|
+
error: any;
|
|
4634
4634
|
};
|
|
4635
4635
|
|
|
4636
4636
|
type ModifyEventMatchUpFormatTimingArgs = {
|
|
@@ -4894,6 +4894,12 @@ declare function removeSeeding({ tournamentRecord, drawDefinition, entryStatuses
|
|
|
4894
4894
|
event: any;
|
|
4895
4895
|
stage: any;
|
|
4896
4896
|
}): ResultType | {
|
|
4897
|
+
error: {
|
|
4898
|
+
message: string;
|
|
4899
|
+
code: string;
|
|
4900
|
+
};
|
|
4901
|
+
info: string;
|
|
4902
|
+
} | {
|
|
4897
4903
|
success: boolean;
|
|
4898
4904
|
error?: undefined;
|
|
4899
4905
|
info?: undefined;
|
|
@@ -9964,6 +9970,8 @@ type ParsedSetString = {
|
|
|
9964
9970
|
side1Score?: number;
|
|
9965
9971
|
side2Score?: number;
|
|
9966
9972
|
setNumber: number;
|
|
9973
|
+
NoAD?: boolean;
|
|
9974
|
+
tiebreakSet?: boolean;
|
|
9967
9975
|
};
|
|
9968
9976
|
declare function parseScoreString({ tiebreakTo, scoreString, matchUpFormat }: ParseScoreArgs): ParsedSetString[];
|
|
9969
9977
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.2.
|
|
6
|
+
return '2.2.45';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
const SINGLES_MATCHUP = 'SINGLES';
|
|
@@ -32746,6 +32746,8 @@ function parseScoreString({ tiebreakTo = 7, scoreString = '', matchUpFormat }) {
|
|
|
32746
32746
|
const bracketed = inBrackets.exec(set);
|
|
32747
32747
|
const isTiebreakOnlySet = set?.startsWith('[') && bracketed;
|
|
32748
32748
|
const isTiebreakOnlyFormat = checkIsTiebreakOnlyFormat(setNumber, !!isTiebreakOnlySet);
|
|
32749
|
+
const setSpecificTiebreakTo = getTiebreakToForSet(setNumber);
|
|
32750
|
+
const isNoAD = isTiebreakOnlyFormat && setSpecificTiebreakTo === 1;
|
|
32749
32751
|
let result;
|
|
32750
32752
|
if (isTiebreakOnlySet) {
|
|
32751
32753
|
const bracketedScores = bracketed[1].split('-').map((score) => Number.parseInt(score));
|
|
@@ -32761,6 +32763,8 @@ function parseScoreString({ tiebreakTo = 7, scoreString = '', matchUpFormat }) {
|
|
|
32761
32763
|
side2TiebreakScore: result.side2TiebreakScore,
|
|
32762
32764
|
winningSide: result.winningSide,
|
|
32763
32765
|
setNumber,
|
|
32766
|
+
...(isNoAD && { NoAD: true }),
|
|
32767
|
+
...(isTiebreakOnlyFormat && { tiebreakSet: true }),
|
|
32764
32768
|
};
|
|
32765
32769
|
}
|
|
32766
32770
|
}
|