tods-competition-factory 1.8.6 → 1.8.8
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/generate.d.ts +10 -0
- package/dist/forge/generate.mjs +10 -1
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.d.ts +65 -52
- package/dist/forge/query.mjs +802 -779
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.d.ts +10 -0
- package/dist/forge/transform.mjs +9 -0
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/forge/utilities.mjs.map +1 -1
- package/dist/index.mjs +434 -335
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +428 -316
- 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
|
@@ -15,6 +15,7 @@ interface Tournament {
|
|
|
15
15
|
notes?: string;
|
|
16
16
|
onlineResources?: OnlineResource[];
|
|
17
17
|
parentOrganisationId?: string;
|
|
18
|
+
parentOrganisation?: Organisation;
|
|
18
19
|
participants?: Participant[];
|
|
19
20
|
processCodes?: string[];
|
|
20
21
|
promotionalName?: string;
|
|
@@ -37,6 +38,15 @@ interface Tournament {
|
|
|
37
38
|
updatedAt?: Date | string;
|
|
38
39
|
venues?: Venue[];
|
|
39
40
|
}
|
|
41
|
+
interface Organisation {
|
|
42
|
+
onlineResources?: OnlineResource[];
|
|
43
|
+
organisationAbbreviation: string;
|
|
44
|
+
parentOrganisationId?: string;
|
|
45
|
+
extensions?: Extension[];
|
|
46
|
+
organisationName: string;
|
|
47
|
+
organisationId: string;
|
|
48
|
+
notes?: string;
|
|
49
|
+
}
|
|
40
50
|
interface Event {
|
|
41
51
|
allowedDrawTypes?: DrawTypeEnum[];
|
|
42
52
|
category?: Category;
|
|
@@ -1850,6 +1860,22 @@ declare function getCompetitionVenues({ tournamentRecords, requireCourts, dates,
|
|
|
1850
1860
|
venues?: Venue[];
|
|
1851
1861
|
};
|
|
1852
1862
|
|
|
1863
|
+
type GetProfileRoundsArgs = {
|
|
1864
|
+
tournamentRecords?: {
|
|
1865
|
+
[key: string]: Tournament;
|
|
1866
|
+
};
|
|
1867
|
+
tournamentRecord?: Tournament;
|
|
1868
|
+
schedulingProfile?: any;
|
|
1869
|
+
withRoundId?: boolean;
|
|
1870
|
+
};
|
|
1871
|
+
declare function getProfileRounds({ tournamentRecords, schedulingProfile, tournamentRecord, withRoundId, }: GetProfileRoundsArgs): {
|
|
1872
|
+
segmentedRounds?: {
|
|
1873
|
+
[key: string]: any;
|
|
1874
|
+
};
|
|
1875
|
+
profileRounds?: any[];
|
|
1876
|
+
error?: ErrorType;
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1853
1879
|
/**
|
|
1854
1880
|
* Returns { eventDetails: { eventName, eventId }} for events in which participantId or TEAM/PAIR including participantId appears
|
|
1855
1881
|
*/
|
|
@@ -1954,6 +1980,45 @@ declare function competitionScheduleMatchUps(params: CompetitionScheduleMatchUps
|
|
|
1954
1980
|
rows?: any[];
|
|
1955
1981
|
};
|
|
1956
1982
|
|
|
1983
|
+
type GetRoundsArgs = {
|
|
1984
|
+
tournamentRecords?: {
|
|
1985
|
+
[key: string]: Tournament;
|
|
1986
|
+
};
|
|
1987
|
+
excludeScheduleDateProfileRounds?: string;
|
|
1988
|
+
inContextMatchUps?: HydratedMatchUp[];
|
|
1989
|
+
excludeScheduledRounds?: boolean;
|
|
1990
|
+
excludeCompletedRounds?: boolean;
|
|
1991
|
+
context?: {
|
|
1992
|
+
[key: string]: any;
|
|
1993
|
+
};
|
|
1994
|
+
matchUpFilters?: MatchUpFilters;
|
|
1995
|
+
tournamentRecord?: Tournament;
|
|
1996
|
+
withSplitRounds?: boolean;
|
|
1997
|
+
schedulingProfile?: any;
|
|
1998
|
+
scheduleDate?: string;
|
|
1999
|
+
withRoundId?: boolean;
|
|
2000
|
+
venueId?: string;
|
|
2001
|
+
};
|
|
2002
|
+
declare function getRounds({ excludeScheduleDateProfileRounds, excludeScheduledRounds, excludeCompletedRounds, inContextMatchUps, tournamentRecords, schedulingProfile, tournamentRecord, withSplitRounds, matchUpFilters, scheduleDate, withRoundId, venueId, context, }: GetRoundsArgs): {
|
|
2003
|
+
error: {
|
|
2004
|
+
message: string;
|
|
2005
|
+
code: string;
|
|
2006
|
+
};
|
|
2007
|
+
inContextMatchUps: HydratedMatchUp[];
|
|
2008
|
+
} | {
|
|
2009
|
+
error: {
|
|
2010
|
+
message: string;
|
|
2011
|
+
code: string;
|
|
2012
|
+
};
|
|
2013
|
+
inContextMatchUps?: undefined;
|
|
2014
|
+
} | {
|
|
2015
|
+
rounds: any[];
|
|
2016
|
+
excludedRounds: any[];
|
|
2017
|
+
success: boolean;
|
|
2018
|
+
error?: undefined;
|
|
2019
|
+
inContextMatchUps?: undefined;
|
|
2020
|
+
};
|
|
2021
|
+
|
|
1957
2022
|
type GetOrderedDrawPositionsArgs = {
|
|
1958
2023
|
roundProfile: RoundProfile;
|
|
1959
2024
|
drawPositions: number[];
|
|
@@ -2081,58 +2146,6 @@ declare function getValidGroupSizes({ drawSize, groupSizeLimit, }: GetValidGroup
|
|
|
2081
2146
|
validGroupSizes?: number[];
|
|
2082
2147
|
};
|
|
2083
2148
|
|
|
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
2149
|
declare function getCompetitionParticipants(params: any): {
|
|
2137
2150
|
error: {
|
|
2138
2151
|
message: string;
|