tods-competition-factory 2.1.20 → 2.1.21
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 +3 -3
- package/dist/tods-competition-factory.d.ts +2 -2
- package/dist/tods-competition-factory.development.cjs.js +4 -4
- 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 +8 -8
|
@@ -7567,14 +7567,14 @@ type GetMatchUpsToScheduleArgs = {
|
|
|
7567
7567
|
matchUpPotentialParticipantIds?: {
|
|
7568
7568
|
[key: string]: string[];
|
|
7569
7569
|
};
|
|
7570
|
-
matchUpScheduleTimes
|
|
7570
|
+
matchUpScheduleTimes?: {
|
|
7571
7571
|
[key: string]: string;
|
|
7572
7572
|
};
|
|
7573
7573
|
matchUpNotBeforeTimes?: {
|
|
7574
7574
|
[key: string]: any;
|
|
7575
7575
|
};
|
|
7576
7576
|
scheduleCompletedMatchUps?: boolean;
|
|
7577
|
-
dateScheduledMatchUpIds
|
|
7577
|
+
dateScheduledMatchUpIds?: string[];
|
|
7578
7578
|
orderedMatchUpIds?: string[];
|
|
7579
7579
|
clearDate?: boolean;
|
|
7580
7580
|
matchUps: any[];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.1.
|
|
6
|
+
return '2.1.21';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
const SINGLES_MATCHUP = 'SINGLES';
|
|
@@ -35140,8 +35140,8 @@ function getMatchUpsToSchedule(params) {
|
|
|
35140
35140
|
const paramsCheck = checkRequiredParameters(params, [{ [MATCHUPS]: true }]);
|
|
35141
35141
|
if (paramsCheck.error)
|
|
35142
35142
|
return paramsCheck;
|
|
35143
|
-
const { matchUpPotentialParticipantIds,
|
|
35144
|
-
const alreadyScheduledMatchUpIds = Object.keys(matchUpScheduleTimes);
|
|
35143
|
+
const { matchUpPotentialParticipantIds, dateScheduledMatchUpIds = [], scheduleCompletedMatchUps, matchUpNotBeforeTimes, matchUpScheduleTimes, orderedMatchUpIds, clearDate, matchUps, } = params;
|
|
35144
|
+
const alreadyScheduledMatchUpIds = matchUpScheduleTimes ? Object.keys(matchUpScheduleTimes) : [];
|
|
35145
35145
|
const matchUpsToSchedule = (orderedMatchUpIds ?? [])
|
|
35146
35146
|
.map((matchUpId) => matchUps.find((matchUp) => matchUp.matchUpId === matchUpId))
|
|
35147
35147
|
.filter(Boolean)
|
|
@@ -46729,7 +46729,7 @@ function getVenueSchedulingDetails({ matchUpPotentialParticipantIds, individualP
|
|
|
46729
46729
|
let dateScheduledMatchUps;
|
|
46730
46730
|
let scheduleTimes = [];
|
|
46731
46731
|
if (useGarman) {
|
|
46732
|
-
({ scheduleTimes, dateScheduledMatchUpIds
|
|
46732
|
+
({ scheduleTimes, dateScheduledMatchUpIds } = generateScheduleTimes({
|
|
46733
46733
|
averageMatchUpMinutes: groupedRounds[0]?.averageMinutes,
|
|
46734
46734
|
scheduleDate: extractDate(scheduleDate),
|
|
46735
46735
|
venueIds: [venue.venueId],
|