tods-competition-factory 2.2.49 → 2.3.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 +8 -8
- package/dist/tods-competition-factory.d.ts +38 -1
- package/dist/tods-competition-factory.development.cjs.js +10 -3
- 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 +4 -1
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.
|
|
6
|
+
return '2.3.0';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
const SINGLES_MATCHUP = 'SINGLES';
|
|
@@ -4347,6 +4347,7 @@ const aggregateOrder = {
|
|
|
4347
4347
|
[VOLUNTARY_CONSOLATION]: 5,
|
|
4348
4348
|
};
|
|
4349
4349
|
const CLUSTER = 'CLUSTER';
|
|
4350
|
+
const ADJACENT = 'ADJACENT';
|
|
4350
4351
|
const SEPARATE = 'SEPARATE';
|
|
4351
4352
|
const WATERFALL = 'WATERFALL';
|
|
4352
4353
|
const ITEM = 'ITEM';
|
|
@@ -4484,6 +4485,9 @@ const drawDefinitionConstants = {
|
|
|
4484
4485
|
RANDOM,
|
|
4485
4486
|
TOP_DOWN,
|
|
4486
4487
|
BOTTOM_UP,
|
|
4488
|
+
CLUSTER,
|
|
4489
|
+
ADJACENT,
|
|
4490
|
+
SEPARATE,
|
|
4487
4491
|
WATERFALL,
|
|
4488
4492
|
WIN_RATIO: WIN_RATIO$1,
|
|
4489
4493
|
ROUND_OUTCOME,
|
|
@@ -16161,8 +16165,9 @@ function generateBlockPattern({ positioning, size }) {
|
|
|
16161
16165
|
const selected = [];
|
|
16162
16166
|
const firstMember = (arr) => arr[0];
|
|
16163
16167
|
const lastMember = (arr) => arr[arr.length - 1];
|
|
16164
|
-
const getMember = (arr, i) => (positioning && [CLUSTER, WATERFALL].includes(positioning) && i % 2
|
|
16165
|
-
|
|
16168
|
+
const getMember = (arr, i) => (positioning && [CLUSTER, ADJACENT, WATERFALL].includes(positioning) && i % 2
|
|
16169
|
+
? lastMember(arr)
|
|
16170
|
+
: firstMember(arr)) || firstMember(arr);
|
|
16166
16171
|
const noneSelected = (chunk, i) => {
|
|
16167
16172
|
if (chunk.every((member) => !selected.includes(member))) {
|
|
16168
16173
|
const member = getMember(chunk, i);
|
|
@@ -47205,6 +47210,7 @@ var mutate$7 = {
|
|
|
47205
47210
|
resetTieFormat: resetTieFormat,
|
|
47206
47211
|
setDelegatedOutcome: setDelegatedOutcome,
|
|
47207
47212
|
setMatchUpFormat: setMatchUpFormat,
|
|
47213
|
+
setMatchUpState: setMatchUpState,
|
|
47208
47214
|
setMatchUpStatus: setMatchUpStatus,
|
|
47209
47215
|
setOrderOfFinish: setOrderOfFinish,
|
|
47210
47216
|
substituteParticipant: substituteParticipant,
|
|
@@ -47271,6 +47277,7 @@ var index$9 = {
|
|
|
47271
47277
|
resetTieFormat: resetTieFormat,
|
|
47272
47278
|
setDelegatedOutcome: setDelegatedOutcome,
|
|
47273
47279
|
setMatchUpFormat: setMatchUpFormat,
|
|
47280
|
+
setMatchUpState: setMatchUpState,
|
|
47274
47281
|
setMatchUpStatus: setMatchUpStatus,
|
|
47275
47282
|
setOrderOfFinish: setOrderOfFinish,
|
|
47276
47283
|
substituteParticipant: substituteParticipant,
|