tods-competition-factory 1.6.24 → 1.6.25
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 +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +7 -6
- 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
|
@@ -362,7 +362,7 @@ var matchUpFormatCode = {
|
|
|
362
362
|
};
|
|
363
363
|
|
|
364
364
|
function factoryVersion() {
|
|
365
|
-
return '1.6.
|
|
365
|
+
return '1.6.25';
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
/******************************************************************************
|
|
@@ -55473,8 +55473,8 @@ function unPublishEvent(_a) {
|
|
|
55473
55473
|
event: event,
|
|
55474
55474
|
}).timeItem;
|
|
55475
55475
|
var itemValue = (timeItem === null || timeItem === void 0 ? void 0 : timeItem.itemValue) || (_b = {}, _b[status] = {}, _b);
|
|
55476
|
-
delete itemValue[status].drawIds;
|
|
55477
55476
|
delete itemValue[status].structureIds;
|
|
55477
|
+
delete itemValue[status].drawIds;
|
|
55478
55478
|
var updatedTimeItem = { itemValue: itemValue, itemType: itemType };
|
|
55479
55479
|
addEventTimeItem({ event: event, timeItem: updatedTimeItem, removePriorValues: removePriorValues });
|
|
55480
55480
|
addNotice({
|
|
@@ -55798,9 +55798,9 @@ function getEventData(params) {
|
|
|
55798
55798
|
|
|
55799
55799
|
function publishEvent(params) {
|
|
55800
55800
|
var _a;
|
|
55801
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
|
55801
|
+
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
55802
55802
|
var policyDefinitions = params.policyDefinitions, drawIds = params.drawIds, structureIds = params.structureIds;
|
|
55803
|
-
var removePriorValues = params.removePriorValues, tournamentRecord = params.tournamentRecord,
|
|
55803
|
+
var removePriorValues = params.removePriorValues, tournamentRecord = params.tournamentRecord, _k = params.status, status = _k === void 0 ? PUBLIC : _k, event = params.event, drawIdsToRemove = params.drawIdsToRemove, drawIdsToAdd = params.drawIdsToAdd, includePositionAssignments = params.includePositionAssignments, structureIdsToRemove = params.structureIdsToRemove, structureIdsToAdd = params.structureIdsToAdd;
|
|
55804
55804
|
if (!tournamentRecord)
|
|
55805
55805
|
return { error: MISSING_TOURNAMENT_RECORD };
|
|
55806
55806
|
if (!event)
|
|
@@ -55840,8 +55840,9 @@ function publishEvent(params) {
|
|
|
55840
55840
|
if (structureIdsToAdd === null || structureIdsToAdd === void 0 ? void 0 : structureIdsToAdd.length) {
|
|
55841
55841
|
structureIds = unique(structureIds.push.apply(structureIds, __spreadArray([], __read(structureIdsToAdd), false)));
|
|
55842
55842
|
}
|
|
55843
|
+
var existingStatusValue = (_g = timeItem === null || timeItem === void 0 ? void 0 : timeItem.itemValue) === null || _g === void 0 ? void 0 : _g[status];
|
|
55843
55844
|
var updatedTimeItem = {
|
|
55844
|
-
itemValue: (_a = {}, _a[status] = { drawIds: drawIds, structureIds: structureIds }, _a),
|
|
55845
|
+
itemValue: (_a = {}, _a[status] = __assign(__assign({}, existingStatusValue), { drawIds: drawIds, structureIds: structureIds }), _a),
|
|
55845
55846
|
itemType: itemType,
|
|
55846
55847
|
};
|
|
55847
55848
|
addEventTimeItem({ event: event, timeItem: updatedTimeItem, removePriorValues: removePriorValues });
|
|
@@ -55853,7 +55854,7 @@ function publishEvent(params) {
|
|
|
55853
55854
|
event: event,
|
|
55854
55855
|
}).eventData;
|
|
55855
55856
|
// filter out drawData for unPublished draws
|
|
55856
|
-
var publishState = (
|
|
55857
|
+
var publishState = (_j = (_h = eventData === null || eventData === void 0 ? void 0 : eventData.eventInfo) === null || _h === void 0 ? void 0 : _h.publish) === null || _j === void 0 ? void 0 : _j.state;
|
|
55857
55858
|
eventData.drawsData = eventData.drawsData.filter(function (_a) {
|
|
55858
55859
|
var _b;
|
|
55859
55860
|
var drawId = _a.drawId;
|