tods-competition-factory 1.8.5 → 1.8.7
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/query.d.ts +55 -52
- package/dist/forge/query.mjs +802 -779
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +17 -20
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/index.mjs +371 -349
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +361 -318
- 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 +2 -2
package/dist/forge/query.d.ts
CHANGED
|
@@ -1850,6 +1850,22 @@ declare function getCompetitionVenues({ tournamentRecords, requireCourts, dates,
|
|
|
1850
1850
|
venues?: Venue[];
|
|
1851
1851
|
};
|
|
1852
1852
|
|
|
1853
|
+
type GetProfileRoundsArgs = {
|
|
1854
|
+
tournamentRecords?: {
|
|
1855
|
+
[key: string]: Tournament;
|
|
1856
|
+
};
|
|
1857
|
+
tournamentRecord?: Tournament;
|
|
1858
|
+
schedulingProfile?: any;
|
|
1859
|
+
withRoundId?: boolean;
|
|
1860
|
+
};
|
|
1861
|
+
declare function getProfileRounds({ tournamentRecords, schedulingProfile, tournamentRecord, withRoundId, }: GetProfileRoundsArgs): {
|
|
1862
|
+
segmentedRounds?: {
|
|
1863
|
+
[key: string]: any;
|
|
1864
|
+
};
|
|
1865
|
+
profileRounds?: any[];
|
|
1866
|
+
error?: ErrorType;
|
|
1867
|
+
};
|
|
1868
|
+
|
|
1853
1869
|
/**
|
|
1854
1870
|
* Returns { eventDetails: { eventName, eventId }} for events in which participantId or TEAM/PAIR including participantId appears
|
|
1855
1871
|
*/
|
|
@@ -1954,6 +1970,45 @@ declare function competitionScheduleMatchUps(params: CompetitionScheduleMatchUps
|
|
|
1954
1970
|
rows?: any[];
|
|
1955
1971
|
};
|
|
1956
1972
|
|
|
1973
|
+
type GetRoundsArgs = {
|
|
1974
|
+
tournamentRecords?: {
|
|
1975
|
+
[key: string]: Tournament;
|
|
1976
|
+
};
|
|
1977
|
+
excludeScheduleDateProfileRounds?: string;
|
|
1978
|
+
inContextMatchUps?: HydratedMatchUp[];
|
|
1979
|
+
excludeScheduledRounds?: boolean;
|
|
1980
|
+
excludeCompletedRounds?: boolean;
|
|
1981
|
+
context?: {
|
|
1982
|
+
[key: string]: any;
|
|
1983
|
+
};
|
|
1984
|
+
matchUpFilters?: MatchUpFilters;
|
|
1985
|
+
tournamentRecord?: Tournament;
|
|
1986
|
+
withSplitRounds?: boolean;
|
|
1987
|
+
schedulingProfile?: any;
|
|
1988
|
+
scheduleDate?: string;
|
|
1989
|
+
withRoundId?: boolean;
|
|
1990
|
+
venueId?: string;
|
|
1991
|
+
};
|
|
1992
|
+
declare function getRounds({ excludeScheduleDateProfileRounds, excludeScheduledRounds, excludeCompletedRounds, inContextMatchUps, tournamentRecords, schedulingProfile, tournamentRecord, withSplitRounds, matchUpFilters, scheduleDate, withRoundId, venueId, context, }: GetRoundsArgs): {
|
|
1993
|
+
error: {
|
|
1994
|
+
message: string;
|
|
1995
|
+
code: string;
|
|
1996
|
+
};
|
|
1997
|
+
inContextMatchUps: HydratedMatchUp[];
|
|
1998
|
+
} | {
|
|
1999
|
+
error: {
|
|
2000
|
+
message: string;
|
|
2001
|
+
code: string;
|
|
2002
|
+
};
|
|
2003
|
+
inContextMatchUps?: undefined;
|
|
2004
|
+
} | {
|
|
2005
|
+
rounds: any[];
|
|
2006
|
+
excludedRounds: any[];
|
|
2007
|
+
success: boolean;
|
|
2008
|
+
error?: undefined;
|
|
2009
|
+
inContextMatchUps?: undefined;
|
|
2010
|
+
};
|
|
2011
|
+
|
|
1957
2012
|
type GetOrderedDrawPositionsArgs = {
|
|
1958
2013
|
roundProfile: RoundProfile;
|
|
1959
2014
|
drawPositions: number[];
|
|
@@ -2081,58 +2136,6 @@ declare function getValidGroupSizes({ drawSize, groupSizeLimit, }: GetValidGroup
|
|
|
2081
2136
|
validGroupSizes?: number[];
|
|
2082
2137
|
};
|
|
2083
2138
|
|
|
2084
|
-
type GetProfileRoundsArgs = {
|
|
2085
|
-
tournamentRecords?: {
|
|
2086
|
-
[key: string]: Tournament;
|
|
2087
|
-
};
|
|
2088
|
-
tournamentRecord?: Tournament;
|
|
2089
|
-
schedulingProfile?: any;
|
|
2090
|
-
withRoundId?: boolean;
|
|
2091
|
-
};
|
|
2092
|
-
declare function getProfileRounds({ tournamentRecords, schedulingProfile, tournamentRecord, withRoundId, }: GetProfileRoundsArgs): {
|
|
2093
|
-
segmentedRounds?: {
|
|
2094
|
-
[key: string]: any;
|
|
2095
|
-
};
|
|
2096
|
-
profileRounds?: any[];
|
|
2097
|
-
error?: ErrorType;
|
|
2098
|
-
};
|
|
2099
|
-
type GetRoundsArgs = {
|
|
2100
|
-
tournamentRecords?: {
|
|
2101
|
-
[key: string]: Tournament;
|
|
2102
|
-
};
|
|
2103
|
-
excludeScheduleDateProfileRounds?: boolean;
|
|
2104
|
-
inContextMatchUps?: HydratedMatchUp[];
|
|
2105
|
-
excludeScheduledRounds?: boolean;
|
|
2106
|
-
excludeCompletedRounds?: boolean;
|
|
2107
|
-
context?: {
|
|
2108
|
-
[key: string]: any;
|
|
2109
|
-
};
|
|
2110
|
-
matchUpFilters?: MatchUpFilters;
|
|
2111
|
-
tournamentRecord?: Tournament;
|
|
2112
|
-
withSplitRounds?: boolean;
|
|
2113
|
-
schedulingProfile?: any;
|
|
2114
|
-
withRoundId?: boolean;
|
|
2115
|
-
};
|
|
2116
|
-
declare function getRounds({ excludeScheduleDateProfileRounds, excludeScheduledRounds, excludeCompletedRounds, inContextMatchUps, tournamentRecords, schedulingProfile, tournamentRecord, withSplitRounds, matchUpFilters, withRoundId, context, }: GetRoundsArgs): {
|
|
2117
|
-
error: {
|
|
2118
|
-
message: string;
|
|
2119
|
-
code: string;
|
|
2120
|
-
};
|
|
2121
|
-
inContextMatchUps: HydratedMatchUp[];
|
|
2122
|
-
} | {
|
|
2123
|
-
error: {
|
|
2124
|
-
message: string;
|
|
2125
|
-
code: string;
|
|
2126
|
-
};
|
|
2127
|
-
inContextMatchUps?: undefined;
|
|
2128
|
-
} | {
|
|
2129
|
-
rounds: any[];
|
|
2130
|
-
excludedRounds: any[];
|
|
2131
|
-
success: boolean;
|
|
2132
|
-
error?: undefined;
|
|
2133
|
-
inContextMatchUps?: undefined;
|
|
2134
|
-
};
|
|
2135
|
-
|
|
2136
2139
|
declare function getCompetitionParticipants(params: any): {
|
|
2137
2140
|
error: {
|
|
2138
2141
|
message: string;
|