tods-competition-factory 1.9.4 → 1.9.5
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/forge/generate.mjs +1 -0
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.d.ts +9 -18
- package/dist/forge/query.mjs +1 -0
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.d.ts +3 -3
- package/dist/forge/transform.mjs +1 -0
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/forge/utilities.d.ts +2 -1
- package/dist/forge/utilities.mjs +25 -24
- package/dist/forge/utilities.mjs.map +1 -1
- package/dist/index.mjs +732 -731
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +1387 -1386
- 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
|
@@ -1326,14 +1326,14 @@ declare const POLICY_TYPE_AUDIT = "audit";
|
|
|
1326
1326
|
declare const POLICY_TYPE_DRAWS = "draws";
|
|
1327
1327
|
type ValidPolicyTypes = typeof POLICY_TYPE_VOLUNTARY_CONSOLATION | typeof POLICY_TYPE_COMPETITIVE_BANDS | typeof POLICY_TYPE_ROUND_ROBIN_TALLY | typeof POLICY_TYPE_POSITION_ACTIONS | typeof POLICY_TYPE_MATCHUP_ACTIONS | typeof POLICY_TYPE_RANKING_POINTS | typeof POLICY_TYPE_ROUND_NAMING | typeof POLICY_TYPE_PARTICIPANT | typeof POLICY_TYPE_PROGRESSION | typeof POLICY_TYPE_SCHEDULING | typeof POLICY_TYPE_AVOIDANCE | typeof POLICY_TYPE_DISPLAY | typeof POLICY_TYPE_FEED_IN | typeof POLICY_TYPE_SCORING | typeof POLICY_TYPE_SEEDING | typeof POLICY_TYPE_AUDIT | typeof POLICY_TYPE_DRAWS;
|
|
1328
1328
|
|
|
1329
|
+
type TournamentRecords = {
|
|
1330
|
+
[key: string]: Tournament;
|
|
1331
|
+
};
|
|
1329
1332
|
type PolicyDefinitions = {
|
|
1330
1333
|
[key in ValidPolicyTypes]?: {
|
|
1331
1334
|
[key: string]: any;
|
|
1332
1335
|
};
|
|
1333
1336
|
};
|
|
1334
|
-
type TournamentRecords = {
|
|
1335
|
-
[key: string]: Tournament;
|
|
1336
|
-
};
|
|
1337
1337
|
|
|
1338
1338
|
/**
|
|
1339
1339
|
* Sets either matchUpStatus or score and winningSide; values to be set are passed in outcome object.
|
package/dist/forge/transform.mjs
CHANGED
|
@@ -907,6 +907,7 @@ const extractAttributes = (accessor) => (element) => !accessor || typeof element
|
|
|
907
907
|
})) || typeof accessor === "object" && Object.keys(accessor).map((key) => ({
|
|
908
908
|
[key]: getAccessorValue({ element, accessor: key })?.value
|
|
909
909
|
})) || (typeof accessor === "string" && getAccessorValue({ element, accessor }))?.value;
|
|
910
|
+
|
|
910
911
|
function getDefinedKeys(obj, ignoreValues, ignoreEmptyArrays) {
|
|
911
912
|
return Object.keys(obj).filter(
|
|
912
913
|
(key) => !ignoreValues.includes(obj[key]) && (!ignoreEmptyArrays || (Array.isArray(obj[key]) ? obj[key].length : true))
|