tods-competition-factory 1.8.0 → 1.8.2
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.d.ts +1 -0
- package/dist/forge/generate.mjs +12 -2
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +3 -1
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/forge/utilities.mjs +1 -1
- package/dist/forge/utilities.mjs.map +1 -1
- package/dist/index.mjs +258 -36
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +248 -37
- 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
package/dist/forge/generate.d.ts
CHANGED
package/dist/forge/generate.mjs
CHANGED
|
@@ -21218,11 +21218,17 @@ const definitionTemplate = () => ({
|
|
|
21218
21218
|
|
|
21219
21219
|
function newDrawDefinition({
|
|
21220
21220
|
drawId = UUID(),
|
|
21221
|
+
processCodes,
|
|
21221
21222
|
matchUpType,
|
|
21222
21223
|
drawType
|
|
21223
21224
|
}) {
|
|
21224
21225
|
const drawDefinition = definitionTemplate();
|
|
21225
|
-
return Object.assign(drawDefinition, {
|
|
21226
|
+
return Object.assign(drawDefinition, {
|
|
21227
|
+
processCodes,
|
|
21228
|
+
matchUpType,
|
|
21229
|
+
drawType,
|
|
21230
|
+
drawId
|
|
21231
|
+
});
|
|
21226
21232
|
}
|
|
21227
21233
|
|
|
21228
21234
|
var collectionDefinitions$g = [
|
|
@@ -23015,7 +23021,11 @@ function generateDrawDefinition(params) {
|
|
|
23015
23021
|
return decorateResult({ result: { error: INVALID_VALUES }, stack });
|
|
23016
23022
|
if (existingDrawDefinition && drawType !== existingDrawDefinition.drawType)
|
|
23017
23023
|
existingDrawDefinition.drawType = drawType;
|
|
23018
|
-
let drawDefinition = existingDrawDefinition ?? newDrawDefinition({
|
|
23024
|
+
let drawDefinition = existingDrawDefinition ?? newDrawDefinition({
|
|
23025
|
+
drawType,
|
|
23026
|
+
drawId: params.drawId,
|
|
23027
|
+
processCodes: params.processCodes
|
|
23028
|
+
});
|
|
23019
23029
|
if (matchUpFormat || tieFormat) {
|
|
23020
23030
|
const equivalentInScope = matchUpFormat && event?.matchUpFormat === matchUpFormat || event?.tieFormat && tieFormat && JSON.stringify(event.tieFormat) === JSON.stringify(tieFormat);
|
|
23021
23031
|
if (!equivalentInScope) {
|