tods-competition-factory 2.2.3 → 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 +47 -2
- 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 +21 -20
|
@@ -553,6 +553,17 @@ interface TeamCompetitor {
|
|
|
553
553
|
timeItems?: TimeItem[];
|
|
554
554
|
updatedAt?: Date | string;
|
|
555
555
|
}
|
|
556
|
+
interface Team {
|
|
557
|
+
gender?: GenderEnum;
|
|
558
|
+
homeVenueIds?: string[];
|
|
559
|
+
nativeTeamName?: string;
|
|
560
|
+
otherTeamNames?: string[];
|
|
561
|
+
parentOrganisationId?: string;
|
|
562
|
+
personIds?: string[];
|
|
563
|
+
previousTeamNames?: string[];
|
|
564
|
+
teamId: string;
|
|
565
|
+
teamName?: string;
|
|
566
|
+
}
|
|
556
567
|
interface CollectionAssignment {
|
|
557
568
|
collectionId: string;
|
|
558
569
|
collectionPosition: number;
|
|
@@ -1194,6 +1205,7 @@ declare enum WeightUnitEnum {
|
|
|
1194
1205
|
GRAM = "GRAM",
|
|
1195
1206
|
KILOGRAM = "KILOGRAM"
|
|
1196
1207
|
}
|
|
1208
|
+
type WeightUnitUnion = keyof typeof WeightUnitEnum;
|
|
1197
1209
|
interface UnifiedPersonID {
|
|
1198
1210
|
createdAt?: Date | string;
|
|
1199
1211
|
extensions?: Extension[];
|
|
@@ -2103,6 +2115,15 @@ type FactoryEngine = {
|
|
|
2103
2115
|
type TournamentRecords = {
|
|
2104
2116
|
[key: string]: Tournament;
|
|
2105
2117
|
};
|
|
2118
|
+
type Directives = {
|
|
2119
|
+
pipe?: {
|
|
2120
|
+
[key: string]: boolean;
|
|
2121
|
+
};
|
|
2122
|
+
params?: {
|
|
2123
|
+
[key: string]: any;
|
|
2124
|
+
};
|
|
2125
|
+
method: string;
|
|
2126
|
+
}[];
|
|
2106
2127
|
type CheckInOutParticipantArgs = {
|
|
2107
2128
|
tournamentRecord: Tournament;
|
|
2108
2129
|
drawDefinition: DrawDefinition;
|
|
@@ -2114,6 +2135,10 @@ type CheckInOutParticipantArgs = {
|
|
|
2114
2135
|
type ScheduleTimesResult = {
|
|
2115
2136
|
scheduleTime: string;
|
|
2116
2137
|
};
|
|
2138
|
+
type SeedBlock = {
|
|
2139
|
+
drawPositions: number[];
|
|
2140
|
+
seedNumbers: number[];
|
|
2141
|
+
};
|
|
2117
2142
|
type SeedingProfile = {
|
|
2118
2143
|
groupSeedingThreshold?: number;
|
|
2119
2144
|
positioning?: string;
|
|
@@ -2419,6 +2444,11 @@ type ScheduleTiming = {
|
|
|
2419
2444
|
};
|
|
2420
2445
|
}[];
|
|
2421
2446
|
};
|
|
2447
|
+
type Substitution = {
|
|
2448
|
+
previousParticipantId: string;
|
|
2449
|
+
substitutionOrder: number;
|
|
2450
|
+
participantId: string;
|
|
2451
|
+
};
|
|
2422
2452
|
type PlayoffAttributes = {
|
|
2423
2453
|
[key: string | number]: {
|
|
2424
2454
|
name: string;
|
|
@@ -2426,6 +2456,21 @@ type PlayoffAttributes = {
|
|
|
2426
2456
|
};
|
|
2427
2457
|
};
|
|
2428
2458
|
type LineUp = TeamCompetitor[];
|
|
2459
|
+
type StructureProfile = {
|
|
2460
|
+
distanceFromMain?: number;
|
|
2461
|
+
drawSources: string[];
|
|
2462
|
+
drawTargets: string[];
|
|
2463
|
+
progeny?: string[];
|
|
2464
|
+
sources: string[];
|
|
2465
|
+
targets: string[];
|
|
2466
|
+
rootStage?: string;
|
|
2467
|
+
stage?: string;
|
|
2468
|
+
};
|
|
2469
|
+
type IdCollections = {
|
|
2470
|
+
groupParticipants: string[];
|
|
2471
|
+
pairParticipants: string[];
|
|
2472
|
+
teamParticipants: string[];
|
|
2473
|
+
};
|
|
2429
2474
|
type Request$1 = {
|
|
2430
2475
|
requestType: string;
|
|
2431
2476
|
requestId: string;
|
|
@@ -5681,7 +5726,7 @@ type CompetitionMatchUpsArgs$1 = {
|
|
|
5681
5726
|
nextMatchUps?: boolean;
|
|
5682
5727
|
inContext?: boolean;
|
|
5683
5728
|
};
|
|
5684
|
-
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): {
|
|
5685
5730
|
matchUps?: HydratedMatchUp[];
|
|
5686
5731
|
error?: ErrorType;
|
|
5687
5732
|
};
|
|
@@ -11548,4 +11593,4 @@ declare namespace index {
|
|
|
11548
11593
|
export { index_activeMatchUpStatuses as activeMatchUpStatuses, index_auditConstants as auditConstants, index_completedMatchUpStatuses as completedMatchUpStatuses, index_directingMatchUpStatuses as directingMatchUpStatuses, index_displayConstants as displayConstants, index_drawDefinitionConstants as drawDefinitionConstants, index_entryStatusConstants as entryStatusConstants, index_errorConditionConstants as errorConditionConstants, index_eventConstants as eventConstants, index_extensionConstants as extensionConstants, index_flightConstants as flightConstants, index_genderConstants as genderConstants, index_keyValueConstants as keyValueConstants, index_matchUpActionConstants as matchUpActionConstants, index_matchUpStatusConstants as matchUpStatusConstants, index_matchUpTypes as matchUpTypes, index_nonDirectingMatchUpStatuses as nonDirectingMatchUpStatuses, index_particicipantsRequiredMatchUpStatuses as particicipantsRequiredMatchUpStatuses, index_participantConstants as participantConstants, index_participantRoles as participantRoles, index_participantTypes as participantTypes, index_penaltyConstants as penaltyConstants, index_policyConstants as policyConstants, index_positionActionConstants as positionActionConstants, index_ratingConstants as ratingConstants, index_recoveryTimeRequiredMatchUpStatuses as recoveryTimeRequiredMatchUpStatuses, index_requestConstants as requestConstants, index_resourceContants as resourceContants, index_resultConstants as resultConstants, index_scaleConstants as scaleConstants, index_scheduleConstants as scheduleConstants, index_sortingConstants as sortingConstants, index_surfaceConstants as surfaceConstants, index_tieFormatConstants as tieFormatConstants, index_timeItemConstants as timeItemConstants, index_topicConstants as topicConstants, index_tournamentConstants as tournamentConstants, index_upcomingMatchUpStatuses as upcomingMatchUpStatuses, index_validMatchUpStatuses as validMatchUpStatuses, index_venueConstants as venueConstants, index_weekdayConstants as weekdayConstants };
|
|
11549
11594
|
}
|
|
11550
11595
|
|
|
11551
|
-
export { activeMatchUpStatuses, askEngine, asyncEngine, auditConstants, competitionEngine, index$k as competitionGovernor, completedMatchUpStatuses, directingMatchUpStatuses, displayConstants, drawDefinitionConstants, index$j as drawsGovernor, index$i as entriesGovernor, entryStatusConstants, errorConditionConstants, eventConstants, index$h as eventGovernor, extensionConstants, index as factoryConstants, fixtures, flightConstants, forge, genderConstants, index$g as generationGovernor, globalState, index$2 as governors, keyValueConstants, matchUpActionConstants, matchUpEngine, index$f as matchUpFormatCode, index$f as matchUpFormatGovernor, index$e as matchUpGovernor, matchUpStatusConstants, matchUpTypes, mocksEngine, index$d as mocksGovernor, nonDirectingMatchUpStatuses, particicipantsRequiredMatchUpStatuses, participantConstants, index$c as participantGovernor, participantRoles, participantTypes, penaltyConstants, policyConstants, index$b as policyGovernor, positionActionConstants, index$a as publishingGovernor, index$9 as queryGovernor, ratingConstants, recoveryTimeRequiredMatchUpStatuses, index$8 as reportGovernor, requestConstants, resourceContants, resultConstants, scaleConstants, scaleEngine, scheduleConstants, index$7 as scheduleGovernor, index$6 as scoreGovernor, sortingConstants, surfaceConstants, syncEngine, tieFormatConstants, index$5 as tieFormatGovernor, timeItemConstants, index$1 as tools, topicConstants, tournamentConstants, tournamentEngine, index$4 as tournamentGovernor, upcomingMatchUpStatuses, index$1 as utilities, validMatchUpStatuses, venueConstants, index$3 as venueGovernor, factoryVersion as version, weekdayConstants };
|
|
11596
|
+
export { type AddScheduleAttributeArgs, type Address, type AddressProps, type AddressTypeUnion, type Availability, type BallTypeUnion, type BiographicalInformation, type Booking, type Category, type CategoryUnion, type CheckInOutParticipantArgs, type CollectionAssignment, type CollectionDefinition, type CollectionGroup, type CollectionValueProfile, type Contact, type ContextContent, type ContextProfile, type CountryCodeUnion, type Court, type CourtPosition, type CourtPositionUnion, type Directives, type DisciplineUnion, type DrawDefinition, type DrawLink, type DrawLinkSource, type DrawLinkTarget, type DrawMaticArgs, type DrawStatusUnion, type DrawTypeUnion, type Entry, type EntryStatusUnion, type Event$1 as Event, type EventTypeUnion, type ExitProfiles, type Extension, type FactoryEngine, type FinishingPositionUnion, type Flight, type FlightProfile, type Game, type GenderUnion, type GenerateDrawDefinitionArgs, type GetMatchUpsArgs, type GroupInfo, type GroupsMatchUpsResult, type HydratedCourt, type HydratedMatchUp, type HydratedParticipant, type HydratedSide, type HydratedVenue, type IdCollections, type IndoorOutdoorUnion, type Interleave, type LengthUnitUnion, type LineUp, type LinkTypeUnion, type MappedMatchUps, type MappedParticipant, type MatchUp, type MatchUpFilters, type MatchUpFinishingPositionRange, type MatchUpStatusUnion, type MatchUpsMap, type OnlineResource, type OnlineResourceTypeUnion, type Organisation, type Participant, type ParticipantFilters, type ParticipantMap, type ParticipantRoleUnion, type ParticipantStatusUnion, type ParticipantTypeUnion, type ParticipantsProfile, type Penalty, type PenaltyTypeUnion, type Person, type PersonData, type PersonRequests, type PlayingDoubleHandCodeUnion, type PlayingHandCodeUnion, type PlayoffAttributes, type Point, type PolicyDefinitions, type PositionAssignment, type PositioningProfileUnion, type PrizeMoney, type QueueMethod, type RegistrationProfile, type ResultType, type RoundProfile, type ScaleAttributes, type ScaleItem, type ScheduleAnalysis, type ScheduleConflict, type ScheduleTimesResult, type ScheduleTiming, type ScheduleVisibilityFilters, type ScheduledMatchUpArgs, type Score, type SeedAssignment, type SeedBlock, type SeedingProfile, type SeedingProfileUnion, type Set, type SexUnion, type Shot, type ShotDetailUnion, type ShotOutcomeUnion, type ShotTypeUnion, type Side, type StageTypeUnion, type Structure, type StructureParticipation, type StructureProfile, type StructureSortConfig, type StructureTypeUnion, type Substitution, type SurfaceCategoryUnion, type Tally, type Team, type TeamCompetitor, type TeamKey, type TieFormat, type TimeItem, type Tournament, type TournamentLevelUnion, type TournamentRecords, type TournamentStatusUnion, type UnifiedPersonID, type UnifiedTournamentID, type UnifiedVenueID, type Venue, type WeightUnitUnion, type WheelchairClassUnion, type WinCriteria, type WinReasonUnion, activeMatchUpStatuses, askEngine, asyncEngine, auditConstants, competitionEngine, index$k as competitionGovernor, completedMatchUpStatuses, directingMatchUpStatuses, displayConstants, drawDefinitionConstants, index$j as drawsGovernor, index$i as entriesGovernor, entryStatusConstants, errorConditionConstants, eventConstants, index$h as eventGovernor, extensionConstants, index as factoryConstants, fixtures, flightConstants, forge, genderConstants, index$g as generationGovernor, globalState, index$2 as governors, keyValueConstants, matchUpActionConstants, matchUpEngine, index$f as matchUpFormatCode, index$f as matchUpFormatGovernor, index$e as matchUpGovernor, matchUpStatusConstants, matchUpTypes, mocksEngine, index$d as mocksGovernor, nonDirectingMatchUpStatuses, particicipantsRequiredMatchUpStatuses, participantConstants, index$c as participantGovernor, participantRoles, participantTypes, penaltyConstants, policyConstants, index$b as policyGovernor, positionActionConstants, index$a as publishingGovernor, index$9 as queryGovernor, ratingConstants, recoveryTimeRequiredMatchUpStatuses, index$8 as reportGovernor, requestConstants, resourceContants, resultConstants, scaleConstants, scaleEngine, scheduleConstants, index$7 as scheduleGovernor, index$6 as scoreGovernor, sortingConstants, surfaceConstants, syncEngine, tieFormatConstants, index$5 as tieFormatGovernor, timeItemConstants, index$1 as tools, topicConstants, tournamentConstants, tournamentEngine, index$4 as tournamentGovernor, upcomingMatchUpStatuses, index$1 as utilities, validMatchUpStatuses, venueConstants, index$3 as venueGovernor, factoryVersion as version, weekdayConstants, type weekdayUnion };
|
|
@@ -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,
|