tods-competition-factory 1.9.3 → 1.9.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/forge/generate.mjs +6 -2
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.d.ts +9 -18
- package/dist/forge/query.mjs +1 -0
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.d.ts +3 -3
- package/dist/forge/transform.mjs +1 -0
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/forge/utilities.d.ts +2 -1
- package/dist/forge/utilities.mjs +25 -24
- package/dist/forge/utilities.mjs.map +1 -1
- package/dist/index.mjs +684 -680
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +930 -923
- 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 +4 -4
package/dist/forge/query.d.ts
CHANGED
|
@@ -1355,10 +1355,11 @@ declare const POLICY_TYPE_AUDIT = "audit";
|
|
|
1355
1355
|
declare const POLICY_TYPE_DRAWS = "draws";
|
|
1356
1356
|
type ValidPolicyTypes = typeof POLICY_TYPE_VOLUNTARY_CONSOLATION | typeof POLICY_TYPE_COMPETITIVE_BANDS | typeof POLICY_TYPE_ROUND_ROBIN_TALLY | typeof POLICY_TYPE_POSITION_ACTIONS | typeof POLICY_TYPE_MATCHUP_ACTIONS | typeof POLICY_TYPE_RANKING_POINTS | typeof POLICY_TYPE_ROUND_NAMING | typeof POLICY_TYPE_PARTICIPANT | typeof POLICY_TYPE_PROGRESSION | typeof POLICY_TYPE_SCHEDULING | typeof POLICY_TYPE_AVOIDANCE | typeof POLICY_TYPE_DISPLAY | typeof POLICY_TYPE_FEED_IN | typeof POLICY_TYPE_SCORING | typeof POLICY_TYPE_SEEDING | typeof POLICY_TYPE_AUDIT | typeof POLICY_TYPE_DRAWS;
|
|
1357
1357
|
|
|
1358
|
+
type TournamentRecords = {
|
|
1359
|
+
[key: string]: Tournament;
|
|
1360
|
+
};
|
|
1358
1361
|
type TournamentRecordsArgs = {
|
|
1359
|
-
tournamentRecords:
|
|
1360
|
-
[key: string]: Tournament;
|
|
1361
|
-
} | Tournament[];
|
|
1362
|
+
tournamentRecords: TournamentRecords;
|
|
1362
1363
|
};
|
|
1363
1364
|
type ScaleAttributes = {
|
|
1364
1365
|
eventType: TypeEnum;
|
|
@@ -1623,9 +1624,6 @@ type GroupsMatchUpsResult = {
|
|
|
1623
1624
|
success?: boolean;
|
|
1624
1625
|
error?: ErrorType;
|
|
1625
1626
|
};
|
|
1626
|
-
type TournamentRecords = {
|
|
1627
|
-
[key: string]: Tournament;
|
|
1628
|
-
};
|
|
1629
1627
|
|
|
1630
1628
|
type GetEligibleVoluntaryConsolationParticipantsArgs = {
|
|
1631
1629
|
excludedMatchUpStatuses?: MatchUpStatusEnum[];
|
|
@@ -2172,19 +2170,12 @@ declare function getValidGroupSizes({ drawSize, groupSizeLimit, }: GetValidGroup
|
|
|
2172
2170
|
validGroupSizes?: number[];
|
|
2173
2171
|
};
|
|
2174
2172
|
|
|
2175
|
-
declare function getCompetitionParticipants(params: any): {
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
code: string;
|
|
2173
|
+
declare function getCompetitionParticipants(params: any): ResultType & {
|
|
2174
|
+
mappedMatchUps?: {
|
|
2175
|
+
[key: string]: HydratedMatchUp;
|
|
2179
2176
|
};
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
competitionParticipants: HydratedParticipant[];
|
|
2183
|
-
participantIdsWithConflicts: string[];
|
|
2184
|
-
mappedMatchUps: {
|
|
2185
|
-
[key: string]: MatchUp;
|
|
2186
|
-
};
|
|
2187
|
-
error?: undefined;
|
|
2177
|
+
competitionParticipants?: HydratedParticipant[];
|
|
2178
|
+
participantIdsWithConflicts?: any;
|
|
2188
2179
|
};
|
|
2189
2180
|
type PublicFindParticipantArgs = TournamentRecordsArgs & {
|
|
2190
2181
|
policyDefinitions?: PolicyDefinitions;
|
package/dist/forge/query.mjs
CHANGED
|
@@ -739,6 +739,7 @@ const extractAttributes = (accessor) => (element) => !accessor || typeof element
|
|
|
739
739
|
})) || typeof accessor === "object" && Object.keys(accessor).map((key) => ({
|
|
740
740
|
[key]: getAccessorValue({ element, accessor: key })?.value
|
|
741
741
|
})) || (typeof accessor === "string" && getAccessorValue({ element, accessor }))?.value;
|
|
742
|
+
|
|
742
743
|
function getDefinedKeys(obj, ignoreValues, ignoreEmptyArrays) {
|
|
743
744
|
return Object.keys(obj).filter(
|
|
744
745
|
(key) => !ignoreValues.includes(obj[key]) && (!ignoreEmptyArrays || (Array.isArray(obj[key]) ? obj[key].length : true))
|