tods-competition-factory 2.2.4 → 2.2.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/index.mjs +1 -1
- package/dist/tods-competition-factory.d.ts +1 -1
- package/dist/tods-competition-factory.development.cjs.js +7 -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 +5 -5
|
@@ -5726,7 +5726,7 @@ type CompetitionMatchUpsArgs$1 = {
|
|
|
5726
5726
|
nextMatchUps?: boolean;
|
|
5727
5727
|
inContext?: boolean;
|
|
5728
5728
|
};
|
|
5729
|
-
declare function allCompetitionMatchUps({ scheduleVisibilityFilters, afterRecoveryTimes, participantsProfile, tournamentRecords, policyDefinitions, matchUpFilters, contextFilters, nextMatchUps, inContext, }: CompetitionMatchUpsArgs$1): {
|
|
5729
|
+
declare function allCompetitionMatchUps({ scheduleVisibilityFilters, afterRecoveryTimes, participantsProfile, tournamentRecords, policyDefinitions, usePublishState, matchUpFilters, contextFilters, nextMatchUps, inContext, }: CompetitionMatchUpsArgs$1): {
|
|
5730
5730
|
matchUps?: HydratedMatchUp[];
|
|
5731
5731
|
error?: ErrorType;
|
|
5732
5732
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.2.
|
|
6
|
+
return '2.2.5';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
const SINGLES_MATCHUP = 'SINGLES';
|
|
@@ -11541,7 +11541,7 @@ function getDrawMatchUps(params) {
|
|
|
11541
11541
|
|
|
11542
11542
|
function allEventMatchUps(params) {
|
|
11543
11543
|
let { participants = [], contextContent, participantMap } = params;
|
|
11544
|
-
const { scheduleVisibilityFilters, tournamentAppliedPolicies, participantsProfile, afterRecoveryTimes, policyDefinitions, useParticipantMap, tournamentRecord, contextFilters, contextProfile, matchUpFilters, nextMatchUps, inContext, context, event, } = params;
|
|
11544
|
+
const { scheduleVisibilityFilters, tournamentAppliedPolicies, participantsProfile, afterRecoveryTimes, policyDefinitions, useParticipantMap, tournamentRecord, usePublishState, contextFilters, contextProfile, matchUpFilters, nextMatchUps, inContext, context, event, } = params;
|
|
11545
11545
|
if (!event)
|
|
11546
11546
|
return { error: MISSING_EVENT };
|
|
11547
11547
|
const { eventId, eventName, endDate, eventType, category, gender, matchUpFormat } = event ?? {};
|
|
@@ -11599,6 +11599,7 @@ function allEventMatchUps(params) {
|
|
|
11599
11599
|
afterRecoveryTimes,
|
|
11600
11600
|
policyDefinitions,
|
|
11601
11601
|
tournamentRecord,
|
|
11602
|
+
usePublishState,
|
|
11602
11603
|
contextFilters,
|
|
11603
11604
|
contextProfile,
|
|
11604
11605
|
drawDefinition,
|
|
@@ -11622,7 +11623,7 @@ function allTournamentMatchUps(params) {
|
|
|
11622
11623
|
if (!params?.tournamentRecord)
|
|
11623
11624
|
return { error: MISSING_TOURNAMENT_RECORD };
|
|
11624
11625
|
let { participantMap, participants } = params;
|
|
11625
|
-
const { scheduleVisibilityFilters, participantsProfile, afterRecoveryTimes, useParticipantMap, policyDefinitions, tournamentRecord, inContext = true, contextProfile, matchUpFilters, contextFilters, nextMatchUps, context, } = params;
|
|
11626
|
+
const { scheduleVisibilityFilters, participantsProfile, afterRecoveryTimes, useParticipantMap, policyDefinitions, tournamentRecord, inContext = true, usePublishState, contextProfile, matchUpFilters, contextFilters, nextMatchUps, context, } = params;
|
|
11626
11627
|
const tournamentId = params.tournamentId ?? tournamentRecord.tournamentId;
|
|
11627
11628
|
const events = tournamentRecord?.events ?? [];
|
|
11628
11629
|
if (!participants) {
|
|
@@ -11661,6 +11662,7 @@ function allTournamentMatchUps(params) {
|
|
|
11661
11662
|
afterRecoveryTimes,
|
|
11662
11663
|
policyDefinitions,
|
|
11663
11664
|
tournamentRecord,
|
|
11665
|
+
usePublishState,
|
|
11664
11666
|
contextContent,
|
|
11665
11667
|
contextFilters,
|
|
11666
11668
|
contextProfile,
|
|
@@ -11676,7 +11678,7 @@ function allTournamentMatchUps(params) {
|
|
|
11676
11678
|
return { matchUps };
|
|
11677
11679
|
}
|
|
11678
11680
|
|
|
11679
|
-
function allCompetitionMatchUps({ scheduleVisibilityFilters, afterRecoveryTimes, participantsProfile, tournamentRecords, policyDefinitions, matchUpFilters, contextFilters, nextMatchUps, inContext, }) {
|
|
11681
|
+
function allCompetitionMatchUps({ scheduleVisibilityFilters, afterRecoveryTimes, participantsProfile, tournamentRecords, policyDefinitions, usePublishState, matchUpFilters, contextFilters, nextMatchUps, inContext, }) {
|
|
11680
11682
|
if (typeof tournamentRecords !== 'object' || !Object.keys(tournamentRecords).length)
|
|
11681
11683
|
return { error: MISSING_TOURNAMENT_RECORDS };
|
|
11682
11684
|
const tournamentIds = Object.keys(tournamentRecords);
|
|
@@ -11689,6 +11691,7 @@ function allCompetitionMatchUps({ scheduleVisibilityFilters, afterRecoveryTimes,
|
|
|
11689
11691
|
participantsProfile,
|
|
11690
11692
|
policyDefinitions,
|
|
11691
11693
|
tournamentRecord,
|
|
11694
|
+
usePublishState,
|
|
11692
11695
|
matchUpFilters,
|
|
11693
11696
|
contextFilters,
|
|
11694
11697
|
nextMatchUps,
|