volleyballsimtypes 0.0.17 → 0.0.19
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/cjs/src/data/index.d.ts +2 -2
- package/dist/cjs/src/data/index.js +2 -1
- package/dist/cjs/src/data/transformers/coach.d.ts +3 -1
- package/dist/cjs/src/data/transformers/coach.js +12 -1
- package/dist/cjs/src/data/transformers/index.d.ts +2 -2
- package/dist/cjs/src/data/transformers/index.js +3 -2
- package/dist/cjs/src/data/transformers/match-set-stats.d.ts +2 -2
- package/dist/cjs/src/data/transformers/match-set-stats.js +2 -2
- package/dist/cjs/src/data/transformers/match-set.d.ts +2 -2
- package/dist/cjs/src/data/transformers/match-set.js +2 -2
- package/dist/cjs/src/data/transformers/match.d.ts +2 -2
- package/dist/cjs/src/data/transformers/match.js +2 -2
- package/dist/cjs/src/data/transformers/player.d.ts +2 -2
- package/dist/cjs/src/data/transformers/player.js +4 -5
- package/dist/cjs/src/data/transformers/rally.d.ts +2 -2
- package/dist/cjs/src/data/transformers/rally.js +3 -3
- package/dist/cjs/src/data/transformers/season.d.ts +2 -2
- package/dist/cjs/src/data/transformers/season.js +2 -2
- package/dist/cjs/src/data/transformers/substitution.d.ts +2 -2
- package/dist/cjs/src/data/transformers/substitution.js +2 -2
- package/dist/cjs/src/data/transformers/team.js +1 -1
- package/dist/cjs/src/index.d.ts +3 -3
- package/dist/cjs/src/index.js +3 -2
- package/dist/cjs/src/routing/coach.d.ts +6 -0
- package/dist/cjs/src/routing/coach.js +2 -0
- package/dist/cjs/src/routing/index.d.ts +2 -1
- package/dist/cjs/src/routing/team.d.ts +3 -2
- package/dist/cjs/src/service/league/season.d.ts +1 -1
- package/dist/cjs/src/service/league/season.js +5 -5
- package/dist/cjs/src/service/league/standing.d.ts +1 -1
- package/dist/cjs/src/service/league/standing.js +16 -16
- package/dist/cjs/src/service/player/player.d.ts +1 -1
- package/dist/cjs/src/service/player/player.js +3 -3
- package/dist/cjs/src/service/utils/testing-utils.d.ts +0 -1
- package/dist/cjs/src/service/utils/testing-utils.js +0 -1
- package/dist/esm/src/data/index.d.ts +2 -2
- package/dist/esm/src/data/index.js +2 -2
- package/dist/esm/src/data/transformers/coach.d.ts +3 -1
- package/dist/esm/src/data/transformers/coach.js +11 -1
- package/dist/esm/src/data/transformers/index.d.ts +2 -2
- package/dist/esm/src/data/transformers/index.js +2 -2
- package/dist/esm/src/data/transformers/match-set-stats.d.ts +2 -2
- package/dist/esm/src/data/transformers/match-set-stats.js +2 -2
- package/dist/esm/src/data/transformers/match-set.d.ts +2 -2
- package/dist/esm/src/data/transformers/match-set.js +2 -2
- package/dist/esm/src/data/transformers/match.d.ts +2 -2
- package/dist/esm/src/data/transformers/match.js +2 -2
- package/dist/esm/src/data/transformers/player.d.ts +2 -2
- package/dist/esm/src/data/transformers/player.js +3 -4
- package/dist/esm/src/data/transformers/rally.d.ts +2 -2
- package/dist/esm/src/data/transformers/rally.js +3 -3
- package/dist/esm/src/data/transformers/season.d.ts +2 -2
- package/dist/esm/src/data/transformers/season.js +2 -2
- package/dist/esm/src/data/transformers/substitution.d.ts +2 -2
- package/dist/esm/src/data/transformers/substitution.js +2 -2
- package/dist/esm/src/data/transformers/team.js +2 -2
- package/dist/esm/src/index.d.ts +3 -3
- package/dist/esm/src/index.js +2 -2
- package/dist/esm/src/routing/coach.d.ts +6 -0
- package/dist/esm/src/routing/coach.js +1 -0
- package/dist/esm/src/routing/index.d.ts +2 -1
- package/dist/esm/src/routing/team.d.ts +3 -2
- package/dist/esm/src/service/league/season.d.ts +1 -1
- package/dist/esm/src/service/league/season.js +5 -5
- package/dist/esm/src/service/league/standing.d.ts +1 -1
- package/dist/esm/src/service/league/standing.js +16 -16
- package/dist/esm/src/service/player/player.d.ts +1 -1
- package/dist/esm/src/service/player/player.js +3 -3
- package/dist/esm/src/service/utils/testing-utils.d.ts +0 -1
- package/dist/esm/src/service/utils/testing-utils.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType } from './models';
|
|
2
|
-
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait } from './transformers';
|
|
2
|
+
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait } from './transformers';
|
|
3
3
|
import { initModels } from './init-models';
|
|
4
|
-
export { initModels, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
4
|
+
export { initModels, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToAPICoach, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, } from './models';
|
|
2
|
-
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait } from './transformers';
|
|
2
|
+
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait } from './transformers';
|
|
3
3
|
import { initModels } from './init-models';
|
|
4
|
-
export { initModels, BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
4
|
+
export { initModels, BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToAPICoach, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CoachAttributes, CoachModel } from '../models';
|
|
2
2
|
import { Coach } from '../../service';
|
|
3
|
+
import { APICoach } from '../../routing';
|
|
3
4
|
declare function transformToAttributes(coach: Coach): CoachAttributes;
|
|
4
5
|
declare function transformToObject(model: CoachModel): Coach;
|
|
5
|
-
|
|
6
|
+
declare function transformToAPIObject(model: CoachModel): APICoach;
|
|
7
|
+
export { transformToObject as transformToCoach, transformToAPIObject as transformToAPICoach, transformToAttributes as transformFromCoach };
|
|
@@ -23,4 +23,14 @@ function transformToObject(model) {
|
|
|
23
23
|
formation: transformToFormation(model.formation)
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
function transformToAPIObject(model) {
|
|
27
|
+
return {
|
|
28
|
+
id: model.coach_id,
|
|
29
|
+
name: {
|
|
30
|
+
first: model.first_name,
|
|
31
|
+
last: model.last_name
|
|
32
|
+
},
|
|
33
|
+
country: transformToCountry(model.country)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export { transformToObject as transformToCoach, transformToAPIObject as transformToAPICoach, transformToAttributes as transformFromCoach };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { transformFromBlock, transformToAPIBlock, transformToBlock } from './block';
|
|
2
|
-
import { transformFromCoach, transformToCoach } from './coach';
|
|
2
|
+
import { transformFromCoach, transformToAPICoach, transformToCoach } from './coach';
|
|
3
3
|
import { transformFromCountry, transformToCountry } from './country';
|
|
4
4
|
import { transformFromCourtPosition, transformToCourtPosition } from './court-position';
|
|
5
5
|
import { transformFromCourtTarget, transformToCourtTarget } from './court-target';
|
|
@@ -24,4 +24,4 @@ import { transformFromSpike, transformToAPISpike, transformToSpike } from './spi
|
|
|
24
24
|
import { transformFromSubstitution, transformToAPISubstitution, transformToSubstitution } from './substitution';
|
|
25
25
|
import { transformFromTeam, transformToAPITeam, transformToTeam } from './team';
|
|
26
26
|
import { transformFromTrait, transformToAPITrait, transformToTrait } from './trait';
|
|
27
|
-
export { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
27
|
+
export { transformFromBlock, transformToAPICoach, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { transformFromBlock, transformToAPIBlock, transformToBlock } from './block';
|
|
2
|
-
import { transformFromCoach,
|
|
2
|
+
import { transformFromCoach, transformToAPICoach, transformToCoach } from './coach';
|
|
3
3
|
import { transformFromCountry, transformToCountry } from './country';
|
|
4
4
|
import { transformFromCourtPosition, transformToCourtPosition } from './court-position';
|
|
5
5
|
import { transformFromCourtTarget, transformToCourtTarget } from './court-target';
|
|
@@ -24,4 +24,4 @@ import { transformFromSpike, transformToAPISpike, transformToSpike } from './spi
|
|
|
24
24
|
import { transformFromSubstitution, transformToAPISubstitution, transformToSubstitution } from './substitution';
|
|
25
25
|
import { transformFromTeam, transformToAPITeam, transformToTeam } from './team';
|
|
26
26
|
import { transformFromTrait, transformToAPITrait, transformToTrait } from './trait';
|
|
27
|
-
export { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
27
|
+
export { transformFromBlock, transformToAPICoach, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatchSetStatsAttributes, MatchSetStatsModel } from '../models';
|
|
2
|
-
import {
|
|
2
|
+
import { SetStatistics } from '../../service';
|
|
3
3
|
import { APISetStatistics } from '../../routing';
|
|
4
|
-
declare function transformToAttributes(stats: SetStatistics,
|
|
4
|
+
declare function transformToAttributes(stats: SetStatistics, setId: string): MatchSetStatsAttributes;
|
|
5
5
|
declare function transformToObject(model: MatchSetStatsModel): SetStatistics;
|
|
6
6
|
declare function transformToAPIObject(model: MatchSetStatsModel, order: number): APISetStatistics;
|
|
7
7
|
export { transformToObject as transformToMatchSetStats, transformToAPIObject as transformToAPIMatchSetStats, transformToAttributes as transformFromMatchSetStats };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { transformToPlayer } from './player';
|
|
2
|
-
function transformToAttributes(stats,
|
|
2
|
+
function transformToAttributes(stats, setId) {
|
|
3
3
|
return {
|
|
4
4
|
player_id: stats.player.id,
|
|
5
|
-
match_set_id:
|
|
5
|
+
match_set_id: setId,
|
|
6
6
|
aces: stats.ace,
|
|
7
7
|
assists: stats.assists,
|
|
8
8
|
attempts: stats.attempts,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatchSetAttributes, MatchSetModel } from '../models';
|
|
2
|
-
import {
|
|
2
|
+
import { MatchSet } from '../../service';
|
|
3
3
|
import { APIMatchSet } from '../../routing';
|
|
4
|
-
declare function transformToAttributes(set: MatchSet,
|
|
4
|
+
declare function transformToAttributes(set: MatchSet, matchId: string): MatchSetAttributes;
|
|
5
5
|
declare function transformToObject(model: MatchSetModel): MatchSet;
|
|
6
6
|
declare function transformToAPIObject(model: MatchSetModel): APIMatchSet;
|
|
7
7
|
export { transformToObject as transformToMatchSet, transformToAPIObject as transformToAPIMatchSet, transformToAttributes as transformFromMatchSet };
|
|
@@ -2,10 +2,10 @@ import { MatchSet } from '../../service';
|
|
|
2
2
|
import { transformToPlayer } from './player';
|
|
3
3
|
import { transformToAPIRally, transformToRally } from './rally';
|
|
4
4
|
import { transformToAPIMatchSetStats, transformToMatchSetStats } from './match-set-stats';
|
|
5
|
-
function transformToAttributes(set,
|
|
5
|
+
function transformToAttributes(set, matchId) {
|
|
6
6
|
return {
|
|
7
7
|
match_set_id: set.id,
|
|
8
|
-
match_id:
|
|
8
|
+
match_id: matchId,
|
|
9
9
|
order: set.order,
|
|
10
10
|
away_libero: set.awayLibero?.id,
|
|
11
11
|
home_libero: set.homeLibero?.id,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatchAttributes, MatchModel } from '../models';
|
|
2
|
-
import { Match
|
|
2
|
+
import { Match } from '../../service';
|
|
3
3
|
import { APIMatch } from '../../routing';
|
|
4
|
-
declare function transformToAttributes(match: Match,
|
|
4
|
+
declare function transformToAttributes(match: Match, seasonId: string): MatchAttributes;
|
|
5
5
|
declare function transformToObject(model: MatchModel): Match;
|
|
6
6
|
declare function transformToAPIObject(model: MatchModel): APIMatch;
|
|
7
7
|
export { transformToObject as transformToMatch, transformToAPIObject as transformToAPIMatch, transformToAttributes as transformFromMatch };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Match } from '../../service';
|
|
2
2
|
import { transformToAPITeam, transformToTeam } from './team';
|
|
3
3
|
import { transformToAPIMatchSet, transformToMatchSet } from './match-set';
|
|
4
|
-
function transformToAttributes(match,
|
|
4
|
+
function transformToAttributes(match, seasonId) {
|
|
5
5
|
return {
|
|
6
6
|
match_id: match.id,
|
|
7
|
-
season_id:
|
|
7
|
+
season_id: seasonId,
|
|
8
8
|
away_team: match.awayTeam.id,
|
|
9
9
|
home_team: match.homeTeam.id,
|
|
10
10
|
scheduled_date: match.scheduledDate.toISOString(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlayerAttributes, PlayerModel } from '../models';
|
|
2
|
-
import { Player
|
|
2
|
+
import { Player } from '../../service';
|
|
3
3
|
import { APIPlayer } from '../../routing';
|
|
4
|
-
declare function transformToAttributes(player: Player,
|
|
4
|
+
declare function transformToAttributes(player: Player, teamId: string): PlayerAttributes;
|
|
5
5
|
declare function transformToObject(model: PlayerModel): Player;
|
|
6
6
|
declare function transformToAPIObject(model: PlayerModel): APIPlayer;
|
|
7
7
|
export { transformToObject as transformToPlayer, transformToAPIObject as transformToAPIPlayer, transformToAttributes as transformFromPlayer };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { Player } from '../../service';
|
|
1
|
+
import { GeneralStat, Player } from '../../service';
|
|
2
2
|
import { transformFromTrait, transformToAPITrait, transformToTrait } from './trait';
|
|
3
3
|
import { transformFromRole, transformToRole } from './role';
|
|
4
4
|
import { transformToPerformanceStats } from './performance-stats';
|
|
5
5
|
import { transformToCountry } from './country';
|
|
6
|
-
import { GeneralStat } from '../../service';
|
|
7
6
|
import { transformToAPIMatchSetStats } from './match-set-stats';
|
|
8
|
-
function transformToAttributes(player,
|
|
7
|
+
function transformToAttributes(player, teamId) {
|
|
9
8
|
return {
|
|
10
9
|
player_id: player.id,
|
|
11
|
-
team_id:
|
|
10
|
+
team_id: teamId,
|
|
12
11
|
country_id: player.country.id,
|
|
13
12
|
jersey_number: player.jerseyNumber,
|
|
14
13
|
first_name: player.name.first,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RallyAttributes, RallyModel } from '../models';
|
|
2
|
-
import {
|
|
2
|
+
import { Rally } from '../../service';
|
|
3
3
|
import { APIRally } from '../../routing';
|
|
4
|
-
declare function transformToAttributes(rally: Rally,
|
|
4
|
+
declare function transformToAttributes(rally: Rally, setId: string): RallyAttributes;
|
|
5
5
|
declare function transformToObject(model: RallyModel): Rally;
|
|
6
6
|
declare function transformToAPIObject(model: RallyModel): APIRally;
|
|
7
7
|
export { transformToObject as transformToRally, transformToAPIObject as transformToAPIRally, transformToAttributes as transformFromRally };
|
|
@@ -9,7 +9,7 @@ import { transformFromSet, transformToAPISet, transformToSet } from './set';
|
|
|
9
9
|
import { transformFromSpike, transformToAPISpike, transformToSpike } from './spike';
|
|
10
10
|
import { transformFromBlock, transformToAPIBlock, transformToBlock } from './block';
|
|
11
11
|
import { transformFromScore, transformToAPIScore, transformToScore } from './score';
|
|
12
|
-
function transformToAttributes(rally,
|
|
12
|
+
function transformToAttributes(rally, setId) {
|
|
13
13
|
const rallyPositions = [
|
|
14
14
|
...rally.awayPlayerPosition.map(pp => transformFromPlayerPosition(pp, 'Away', rally)),
|
|
15
15
|
...rally.homePlayerPosition.map(pp => transformFromPlayerPosition(pp, 'Home', rally))
|
|
@@ -27,14 +27,14 @@ function transformToAttributes(rally, set) {
|
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
29
|
rally_id: rally.id,
|
|
30
|
-
match_set_id:
|
|
30
|
+
match_set_id: setId,
|
|
31
31
|
order: rally.order,
|
|
32
32
|
serving_team: rally.servingTeam.id,
|
|
33
33
|
RallyPositions: rallyPositions,
|
|
34
34
|
LiberoReplacements: rally.events.filter(event => event.eventType === EventType.LIBERO_REPLACEMENT)
|
|
35
35
|
.map(event => transformFromLiberoReplacement(event, rally)),
|
|
36
36
|
Substitutions: rally.events.filter(event => event.eventType === EventType.SUBSTITUTION)
|
|
37
|
-
.map(event => transformFromSubstitution(event, rally)),
|
|
37
|
+
.map(event => transformFromSubstitution(event, rally.id)),
|
|
38
38
|
Serves: rally.events.filter(event => event.eventType === EventType.SERVE)
|
|
39
39
|
.map(event => transformFromServe(event, rally)),
|
|
40
40
|
Receptions: rally.events.filter(event => event.eventType === EventType.RECEPTION)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SeasonAttributes, SeasonModel } from '../models';
|
|
2
|
-
import {
|
|
2
|
+
import { Season } from '../../service';
|
|
3
3
|
import { APISeason } from '../../routing';
|
|
4
|
-
declare function transformToAttributes(season: Season,
|
|
4
|
+
declare function transformToAttributes(season: Season, leagueId: string): SeasonAttributes;
|
|
5
5
|
declare function transformToObject(model: SeasonModel): Season;
|
|
6
6
|
declare function transformToAPIObject(model: SeasonModel): APISeason;
|
|
7
7
|
export { transformToObject as transformToSeason, transformToAPIObject as transformToAPISeason, transformToAttributes as transformFromSeason };
|
|
@@ -2,11 +2,11 @@ import { transformToAPITeam, transformToTeam } from './team';
|
|
|
2
2
|
import { Season } from '../../service';
|
|
3
3
|
import { transformToAPIMatch, transformToMatch } from './match';
|
|
4
4
|
import { transformToLeague } from './league';
|
|
5
|
-
function transformToAttributes(season,
|
|
5
|
+
function transformToAttributes(season, leagueId) {
|
|
6
6
|
return {
|
|
7
7
|
season_id: season.id,
|
|
8
8
|
iteration: season.iteration,
|
|
9
|
-
league_id:
|
|
9
|
+
league_id: leagueId
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
function transformToObject(model) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Substitution } from '../../service';
|
|
2
2
|
import { SubstitutionAttributes, SubstitutionModel } from '../models';
|
|
3
3
|
import { APISubstitution } from '../../routing';
|
|
4
|
-
declare function transformToAttributes(event: Substitution,
|
|
4
|
+
declare function transformToAttributes(event: Substitution, rallyId: string): SubstitutionAttributes;
|
|
5
5
|
declare function transformToObject(event: SubstitutionModel): Substitution;
|
|
6
6
|
declare function transformToAPIObject(event: SubstitutionModel): APISubstitution;
|
|
7
7
|
export { transformToObject as transformToSubstitution, transformToAPIObject as transformToAPISubstitution, transformToAttributes as transformFromSubstitution };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Substitution } from '../../service';
|
|
2
2
|
import { transformFromEventType, transformToEventType } from './event-type';
|
|
3
3
|
import { transformToPlayer } from './player';
|
|
4
|
-
function transformToAttributes(event,
|
|
4
|
+
function transformToAttributes(event, rallyId) {
|
|
5
5
|
return {
|
|
6
6
|
player_id: event.player.id,
|
|
7
7
|
event_id: event.id,
|
|
8
8
|
order: event.order,
|
|
9
9
|
event_type: transformFromEventType(event.eventType),
|
|
10
10
|
player_out: event.playerOut.id,
|
|
11
|
-
rally_id:
|
|
11
|
+
rally_id: rallyId
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
function transformToObject(event) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Team } from '../../service';
|
|
2
2
|
import { transformToCountry } from './country';
|
|
3
|
-
import { transformToCoach } from './coach';
|
|
3
|
+
import { transformToAPICoach, transformToCoach } from './coach';
|
|
4
4
|
import { transformToAPIPlayer, transformToPlayer } from './player';
|
|
5
5
|
function transformToAttributes(team) {
|
|
6
6
|
return {
|
|
@@ -28,7 +28,7 @@ function transformToAPIObject(team) {
|
|
|
28
28
|
name: team.name,
|
|
29
29
|
shortName: team.short_name,
|
|
30
30
|
country: transformToCountry(team.country),
|
|
31
|
-
coach:
|
|
31
|
+
coach: transformToAPICoach(team.coach),
|
|
32
32
|
roster: team.Players != null ? team.Players.map(transformToAPIPlayer) : []
|
|
33
33
|
};
|
|
34
34
|
}
|
package/dist/esm/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Block, BlockFailure, BlockType, Coach, CoachOpts, Country, CountryOpts, CourtPosition, CourtRow, CourtTarget, EventStat, EventType, Formation, formatNumber, GeneralStat, generateModifier, getKeys, getRandomEnumValue, InPlayEvent, InPlayEventOpts, League, LeagueOpts, LiberoReplacement, LiberoReplacementOpts, LiberoReplacementType, Match, MatchSet, MatchSetOpts, MatchSetState, MatchTeam, Name, PerformanceStats, PerformanceStatsOpts, Player, PlayerOpts, PlayerPosition, Rally, RallyEvent, RallyEventOpts, RallyState, randomNumber, Reception, ReceptionFailure, ReceptionType, Role, Score, Season, SeasonOpts, Serve, ServeFailure, ServeType, Set, SetFailure, SetStatistics, SetType, shuffle, Spike, SpikeFailure, SpikeType, Standing, StandingOpts, Stat, SubPriority, Substitution, SubstitutionOpts, Team, TeamOpts, Trait, validateUUID } from './service';
|
|
2
|
-
import { APIBlock, APIEvent, APIInPlayEvent, APILeague, APILiberoReplacement, APIMatch, APIMatchSet, APIPlayer, APIRally, APIReception, APIScore, APISeason, APIServe, APISet, APISetStatistics, APISpike, APISubstitution, APITeam, APITrait } from './routing';
|
|
3
|
-
import { BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, initModels, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait } from './data';
|
|
4
|
-
export { League, Standing, LeagueOpts, CountryOpts, SeasonOpts, Season, StandingOpts, Country, CoachOpts, Coach, Role, SubPriority, GeneralStat, PerformanceStats, Formation, Stat, PerformanceStatsOpts, Block, EventType, LiberoReplacement, MatchSet, Rally, RallyEvent, Reception, Score, Serve, Set, Spike, Substitution, BlockType, LiberoReplacementType, BlockFailure, MatchSetState, MatchSetOpts, LiberoReplacementOpts, RallyEventOpts, InPlayEventOpts, EventStat, Match, InPlayEvent, CourtRow, CourtPosition, CourtTarget, formatNumber, generateModifier, getKeys, MatchTeam, Name, PlayerOpts, Player, RallyState, PlayerPosition, randomNumber, ReceptionType, ServeFailure, ServeType, SetFailure, SetStatistics, SetType, ReceptionFailure, SpikeFailure, SpikeType, SubstitutionOpts, Team, shuffle, TeamOpts, Trait, getRandomEnumValue, validateUUID, APIBlock, APIEvent, APILiberoReplacement, APIRally, APIReception, APIScore, APIServe, APISet, APISpike, APISubstitution, APILeague, APIMatch, APIInPlayEvent, APIMatchSet, APIPlayer, APISeason, APITeam, APITrait, APISetStatistics, initModels, BlockId, BlockModel, RallyModel, RallyId, EventId, EventModel, MatchSetId, MatchSetModel, PerformanceStatsModel, PerformanceStatsId, BlockAttributes, LiberoReplacementId, LiberoReplacementModel, BlockPk, MatchSetStatsId, MatchSetStatsModel, BlockCreationAttributes, ReceptionId, ReceptionModel, BlockOptionalAttributes, CoachAttributes, CoachId, CountryId, CountryModel, CoachCreationAttributes, CoachPk, ScoreId, ScoreModel, CoachModel, RallyPositionId, RallyPositionModel, CoachOptionalAttributes, CountryAttributes, CountryCreationAttributes, CountryPk, EventAttributes, EventPk, EventCreationAttributes, LeagueAttributes, LeagueId, LeagueCreationAttributes, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementPk, MatchAttributes, MatchId, MatchPk, MatchCreationAttributes, MatchModel, MatchSetAttributes, MatchSetCreationAttributes, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerCreationAttributes, PlayerAttributes, PlayerId, PlayerPk, RallyCreationAttributes, RallyAttributes, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPk, RallyPositionPk, ReceptionCreationAttributes, ReceptionAttributes, ReceptionPk, ScoreCreationAttributes, ScoreAttributes, ScorePk, SeasonCreationAttributes, SeasonAttributes, SeasonId, SeasonTeamsAttributes, PlayerModel, SeasonPk, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonModel, SeasonTeamsPk, ServeCreationAttributes, ServeAttributes, ServeId, ServeModel, SetAttributes, ServePk, SetId, SetModel, SetPk, SetCreationAttributes, SpikeCreationAttributes, SpikeAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionCreationAttributes, SubstitutionAttributes, TeamAttributes, TeamId, TeamModel, TeamPk, SubstitutionId, SubstitutionModel, TeamCreationAttributes, SubstitutionPk, RoleType, TraitType, transformFromBlock, transformToAPIBlock, transformToBlock, transformFromCoach, transformFromCountry, transformFromRally, transformToAPIReception, transformToReception, transformToAPIScore, transformToScore, transformFromFormation, transformFromMatch, transformToAPISet, transformToSet, transformFromMatchSet, transformFromMatchSetStats, transformFromLeague, transformFromPlayer, transformFromPlayerPosition, transformToPlayerPosition, transformFromCourtPosition, transformFromCourtTarget, transformFromPerformanceStats, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromEventType, transformFromServe, transformToAPIServe, transformToServe, transformFromSet, transformFromSpike, transformToAPISpike, transformToSpike, transformFromSubstitution, transformToAPISubstitution, transformToSubstitution, transformFromTeam, transformFromTrait, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPISeason, transformToAPITeam, transformToAPITrait, transformFromLiberoReplacement, transformToAPILiberoReplacement, transformToLiberoReplacement, transformToCoach, transformToCountry, transformToEventType, transformToMatchSet, transformToCourtPosition, transformToCourtTarget, transformToFormation, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToRally, transformToMatch, transformToSeason, transformToTeam, transformToTrait, transformToLeague, transformToRole };
|
|
2
|
+
import { APIBlock, APICoach, APIEvent, APIInPlayEvent, APILeague, APILiberoReplacement, APIMatch, APIMatchSet, APIPlayer, APIRally, APIReception, APIScore, APISeason, APIServe, APISet, APISetStatistics, APISpike, APISubstitution, APITeam, APITrait } from './routing';
|
|
3
|
+
import { BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, initModels, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait } from './data';
|
|
4
|
+
export { League, Standing, LeagueOpts, CountryOpts, SeasonOpts, Season, StandingOpts, Country, CoachOpts, Coach, Role, SubPriority, GeneralStat, PerformanceStats, Formation, Stat, PerformanceStatsOpts, Block, EventType, LiberoReplacement, MatchSet, Rally, RallyEvent, Reception, Score, Serve, Set, Spike, Substitution, BlockType, LiberoReplacementType, BlockFailure, MatchSetState, MatchSetOpts, LiberoReplacementOpts, RallyEventOpts, InPlayEventOpts, EventStat, Match, InPlayEvent, CourtRow, CourtPosition, CourtTarget, formatNumber, generateModifier, getKeys, MatchTeam, Name, PlayerOpts, Player, RallyState, PlayerPosition, randomNumber, ReceptionType, ServeFailure, ServeType, SetFailure, SetStatistics, SetType, ReceptionFailure, SpikeFailure, SpikeType, SubstitutionOpts, Team, shuffle, TeamOpts, Trait, getRandomEnumValue, validateUUID, APIBlock, APICoach, APIEvent, APILiberoReplacement, APIRally, APIReception, APIScore, APIServe, APISet, APISpike, APISubstitution, APILeague, APIMatch, APIInPlayEvent, APIMatchSet, APIPlayer, APISeason, APITeam, APITrait, APISetStatistics, initModels, BlockId, BlockModel, RallyModel, RallyId, EventId, EventModel, MatchSetId, MatchSetModel, PerformanceStatsModel, PerformanceStatsId, BlockAttributes, LiberoReplacementId, LiberoReplacementModel, BlockPk, MatchSetStatsId, MatchSetStatsModel, BlockCreationAttributes, ReceptionId, ReceptionModel, BlockOptionalAttributes, CoachAttributes, CoachId, CountryId, CountryModel, CoachCreationAttributes, CoachPk, ScoreId, ScoreModel, CoachModel, RallyPositionId, RallyPositionModel, CoachOptionalAttributes, CountryAttributes, CountryCreationAttributes, CountryPk, EventAttributes, EventPk, EventCreationAttributes, LeagueAttributes, LeagueId, LeagueCreationAttributes, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementPk, MatchAttributes, MatchId, MatchPk, MatchCreationAttributes, MatchModel, MatchSetAttributes, MatchSetCreationAttributes, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsOptionalAttributes, transformToAPICoach, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerCreationAttributes, PlayerAttributes, PlayerId, PlayerPk, RallyCreationAttributes, RallyAttributes, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPk, RallyPositionPk, ReceptionCreationAttributes, ReceptionAttributes, ReceptionPk, ScoreCreationAttributes, ScoreAttributes, ScorePk, SeasonCreationAttributes, SeasonAttributes, SeasonId, SeasonTeamsAttributes, PlayerModel, SeasonPk, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonModel, SeasonTeamsPk, ServeCreationAttributes, ServeAttributes, ServeId, ServeModel, SetAttributes, ServePk, SetId, SetModel, SetPk, SetCreationAttributes, SpikeCreationAttributes, SpikeAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionCreationAttributes, SubstitutionAttributes, TeamAttributes, TeamId, TeamModel, TeamPk, SubstitutionId, SubstitutionModel, TeamCreationAttributes, SubstitutionPk, RoleType, TraitType, transformFromBlock, transformToAPIBlock, transformToBlock, transformFromCoach, transformFromCountry, transformFromRally, transformToAPIReception, transformToReception, transformToAPIScore, transformToScore, transformFromFormation, transformFromMatch, transformToAPISet, transformToSet, transformFromMatchSet, transformFromMatchSetStats, transformFromLeague, transformFromPlayer, transformFromPlayerPosition, transformToPlayerPosition, transformFromCourtPosition, transformFromCourtTarget, transformFromPerformanceStats, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromEventType, transformFromServe, transformToAPIServe, transformToServe, transformFromSet, transformFromSpike, transformToAPISpike, transformToSpike, transformFromSubstitution, transformToAPISubstitution, transformToSubstitution, transformFromTeam, transformFromTrait, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPISeason, transformToAPITeam, transformToAPITrait, transformFromLiberoReplacement, transformToAPILiberoReplacement, transformToLiberoReplacement, transformToCoach, transformToCountry, transformToEventType, transformToMatchSet, transformToCourtPosition, transformToCourtTarget, transformToFormation, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToRally, transformToMatch, transformToSeason, transformToTeam, transformToTrait, transformToLeague, transformToRole };
|
package/dist/esm/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Block, BlockFailure, BlockType, Coach, Country, CourtPosition, CourtRow, CourtTarget, EventType, Formation, formatNumber, GeneralStat, generateModifier, getKeys, getRandomEnumValue, InPlayEvent, League, LiberoReplacement, LiberoReplacementType, Match, MatchSet, MatchSetState, MatchTeam, PerformanceStats, Player, Rally, RallyEvent, RallyState, randomNumber, Reception, ReceptionFailure, ReceptionType, Role, Score, Season, Serve, ServeFailure, ServeType, Set, SetFailure, SetType, shuffle, Spike, SpikeFailure, SpikeType, Standing, Substitution, Team, Trait, validateUUID } from './service';
|
|
2
2
|
import { APITrait } from './routing';
|
|
3
|
-
import { BlockModel, CoachModel, CountryModel, EventModel, initModels, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait } from './data';
|
|
4
|
-
export { League, Standing, Season, Country, Coach, Role, GeneralStat, PerformanceStats, Formation, Block, EventType, LiberoReplacement, MatchSet, Rally, RallyEvent, Reception, Score, Serve, Set, Spike, Substitution, BlockType, LiberoReplacementType, BlockFailure, MatchSetState, Match, InPlayEvent, CourtRow, CourtPosition, CourtTarget, formatNumber, generateModifier, getKeys, MatchTeam, Player, RallyState, randomNumber, ReceptionType, ServeFailure, ServeType, SetFailure, SetType, ReceptionFailure, SpikeFailure, SpikeType, Team, shuffle, Trait, getRandomEnumValue, validateUUID, APITrait, initModels, BlockModel, RallyModel, EventModel, MatchSetModel, PerformanceStatsModel, LiberoReplacementModel, MatchSetStatsModel, ReceptionModel, CountryModel, ScoreModel, CoachModel, RallyPositionModel, LeagueModel, MatchModel, PlayerModel, SeasonTeamsModel, SeasonModel, ServeModel, SetModel, SpikeModel, TeamModel, SubstitutionModel, transformFromBlock, transformToAPIBlock, transformToBlock, transformFromCoach, transformFromCountry, transformFromRally, transformToAPIReception, transformToReception, transformToAPIScore, transformToScore, transformFromFormation, transformFromMatch, transformToAPISet, transformToSet, transformFromMatchSet, transformFromMatchSetStats, transformFromLeague, transformFromPlayer, transformFromPlayerPosition, transformToPlayerPosition, transformFromCourtPosition, transformFromCourtTarget, transformFromPerformanceStats, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromEventType, transformFromServe, transformToAPIServe, transformToServe, transformFromSet, transformFromSpike, transformToAPISpike, transformToSpike, transformFromSubstitution, transformToAPISubstitution, transformToSubstitution, transformFromTeam, transformFromTrait, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPISeason, transformToAPITeam, transformToAPITrait, transformFromLiberoReplacement, transformToAPILiberoReplacement, transformToLiberoReplacement, transformToCoach, transformToCountry, transformToEventType, transformToMatchSet, transformToCourtPosition, transformToCourtTarget, transformToFormation, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToRally, transformToMatch, transformToSeason, transformToTeam, transformToTrait, transformToLeague, transformToRole };
|
|
3
|
+
import { BlockModel, CoachModel, CountryModel, EventModel, initModels, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait } from './data';
|
|
4
|
+
export { League, Standing, Season, Country, Coach, Role, GeneralStat, PerformanceStats, Formation, Block, EventType, LiberoReplacement, MatchSet, Rally, RallyEvent, Reception, Score, Serve, Set, Spike, Substitution, BlockType, LiberoReplacementType, BlockFailure, MatchSetState, Match, InPlayEvent, CourtRow, CourtPosition, CourtTarget, formatNumber, generateModifier, getKeys, MatchTeam, Player, RallyState, randomNumber, ReceptionType, ServeFailure, ServeType, SetFailure, SetType, ReceptionFailure, SpikeFailure, SpikeType, Team, shuffle, Trait, getRandomEnumValue, validateUUID, APITrait, initModels, BlockModel, RallyModel, EventModel, MatchSetModel, PerformanceStatsModel, LiberoReplacementModel, MatchSetStatsModel, ReceptionModel, CountryModel, ScoreModel, CoachModel, RallyPositionModel, LeagueModel, MatchModel, transformToAPICoach, PlayerModel, SeasonTeamsModel, SeasonModel, ServeModel, SetModel, SpikeModel, TeamModel, SubstitutionModel, transformFromBlock, transformToAPIBlock, transformToBlock, transformFromCoach, transformFromCountry, transformFromRally, transformToAPIReception, transformToReception, transformToAPIScore, transformToScore, transformFromFormation, transformFromMatch, transformToAPISet, transformToSet, transformFromMatchSet, transformFromMatchSetStats, transformFromLeague, transformFromPlayer, transformFromPlayerPosition, transformToPlayerPosition, transformFromCourtPosition, transformFromCourtTarget, transformFromPerformanceStats, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromEventType, transformFromServe, transformToAPIServe, transformToServe, transformFromSet, transformFromSpike, transformToAPISpike, transformToSpike, transformFromSubstitution, transformToAPISubstitution, transformToSubstitution, transformFromTeam, transformFromTrait, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPISeason, transformToAPITeam, transformToAPITrait, transformFromLiberoReplacement, transformToAPILiberoReplacement, transformToLiberoReplacement, transformToCoach, transformToCountry, transformToEventType, transformToMatchSet, transformToCourtPosition, transformToCourtTarget, transformToFormation, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToRally, transformToMatch, transformToSeason, transformToTeam, transformToTrait, transformToLeague, transformToRole };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,4 +3,5 @@ import { APILeague, APISeason } from './league';
|
|
|
3
3
|
import { APIMatch, APIMatchSet, APIRally, APISetStatistics } from './match';
|
|
4
4
|
import { APIPlayer, APITrait } from './player';
|
|
5
5
|
import { APITeam } from './team';
|
|
6
|
-
|
|
6
|
+
import { APICoach } from './coach';
|
|
7
|
+
export { APICoach, APITeam, APIReception, APIScore, APIServe, APISet, APISpike, APISubstitution, APIMatchSet, APISetStatistics, APIInPlayEvent, APILeague, APIMatch, APIPlayer, APISeason, APIEvent, APILiberoReplacement, APIBlock, APITrait, APIRally };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Country } from '../service';
|
|
2
2
|
import { APIPlayer } from './player';
|
|
3
|
+
import { APICoach } from './coach';
|
|
3
4
|
export interface APITeam {
|
|
4
5
|
id: string;
|
|
5
6
|
roster: APIPlayer[];
|
|
6
7
|
name: string;
|
|
7
8
|
shortName: string;
|
|
8
|
-
coach:
|
|
9
|
+
coach: APICoach;
|
|
9
10
|
country: Country;
|
|
10
11
|
league?: string;
|
|
11
12
|
}
|
|
@@ -14,6 +14,6 @@ export declare class Season {
|
|
|
14
14
|
readonly iteration: number;
|
|
15
15
|
readonly standings: Standing[];
|
|
16
16
|
constructor({ id, iteration, teams, matches }: SeasonOpts);
|
|
17
|
-
calculateStandings(): Standing[];
|
|
18
17
|
get champion(): Team | undefined;
|
|
18
|
+
calculateStandings(): Standing[];
|
|
19
19
|
}
|
|
@@ -7,6 +7,11 @@ export class Season {
|
|
|
7
7
|
this.iteration = iteration;
|
|
8
8
|
this.standings = this.calculateStandings();
|
|
9
9
|
}
|
|
10
|
+
get champion() {
|
|
11
|
+
if (this.matches.every(match => !match.isOver()))
|
|
12
|
+
return undefined;
|
|
13
|
+
return this.teams.find(team => team.id === this.standings[0].teamId);
|
|
14
|
+
}
|
|
10
15
|
calculateStandings() {
|
|
11
16
|
return this.teams.map(team => {
|
|
12
17
|
const standing = new Standing({ teamId: team.id });
|
|
@@ -14,9 +19,4 @@ export class Season {
|
|
|
14
19
|
return standing;
|
|
15
20
|
}).sort(Standing.sortFn);
|
|
16
21
|
}
|
|
17
|
-
get champion() {
|
|
18
|
-
if (this.matches.every(match => !match.isOver()))
|
|
19
|
-
return undefined;
|
|
20
|
-
return this.teams.find(team => team.id === this.standings[0].teamId);
|
|
21
|
-
}
|
|
22
22
|
}
|
|
@@ -21,6 +21,6 @@ export declare class Standing {
|
|
|
21
21
|
matchesLost: number;
|
|
22
22
|
totalMatches: number;
|
|
23
23
|
constructor({ teamId }: StandingOpts);
|
|
24
|
-
calculateStanding(matches: Match[]): void;
|
|
25
24
|
static sortFn(standingA: Standing, standingB: Standing): number;
|
|
25
|
+
calculateStanding(matches: Match[]): void;
|
|
26
26
|
}
|
|
@@ -19,6 +19,22 @@ export class Standing {
|
|
|
19
19
|
this.totalMatches = 0;
|
|
20
20
|
this.teamId = teamId;
|
|
21
21
|
}
|
|
22
|
+
static sortFn(standingA, standingB) {
|
|
23
|
+
if (standingB.points > standingA.points)
|
|
24
|
+
return 1;
|
|
25
|
+
else if (standingA.points > standingB.points)
|
|
26
|
+
return -1;
|
|
27
|
+
else if (standingB.setsRatio > standingA.setsRatio)
|
|
28
|
+
return 1;
|
|
29
|
+
else if (standingA.setsRatio > standingB.setsRatio)
|
|
30
|
+
return -1;
|
|
31
|
+
else if (standingB.pointsRatio > standingA.pointsRatio)
|
|
32
|
+
return 1;
|
|
33
|
+
else if (standingA.pointsRatio > standingB.pointsRatio)
|
|
34
|
+
return -1;
|
|
35
|
+
else
|
|
36
|
+
return 0;
|
|
37
|
+
}
|
|
22
38
|
calculateStanding(matches) {
|
|
23
39
|
matches = matches.filter(match => match.homeTeam.id === this.teamId || match.awayTeam.id === this.teamId)
|
|
24
40
|
.filter(match => match.isOver());
|
|
@@ -57,20 +73,4 @@ export class Standing {
|
|
|
57
73
|
this.matchesLost = this.lost03 + this.lost13 + this.lost23;
|
|
58
74
|
this.totalMatches = this.matchesWon + this.matchesLost;
|
|
59
75
|
}
|
|
60
|
-
static sortFn(standingA, standingB) {
|
|
61
|
-
if (standingB.points > standingA.points)
|
|
62
|
-
return 1;
|
|
63
|
-
else if (standingA.points > standingB.points)
|
|
64
|
-
return -1;
|
|
65
|
-
else if (standingB.setsRatio > standingA.setsRatio)
|
|
66
|
-
return 1;
|
|
67
|
-
else if (standingA.setsRatio > standingB.setsRatio)
|
|
68
|
-
return -1;
|
|
69
|
-
else if (standingB.pointsRatio > standingA.pointsRatio)
|
|
70
|
-
return 1;
|
|
71
|
-
else if (standingA.pointsRatio > standingB.pointsRatio)
|
|
72
|
-
return -1;
|
|
73
|
-
else
|
|
74
|
-
return 0;
|
|
75
|
-
}
|
|
76
76
|
}
|
|
@@ -33,6 +33,6 @@ export declare class Player {
|
|
|
33
33
|
readonly generalStats: Stat[];
|
|
34
34
|
constructor({ id, name, country, stats, roles, traits, jerseyNumber, team }: PlayerOpts);
|
|
35
35
|
static sortPlayers(roles: Role[]): (p1: Player, p2: Player) => number;
|
|
36
|
-
canPlayLibero(): boolean;
|
|
37
36
|
static compareStats(p1: Player, p2: Player): number;
|
|
37
|
+
canPlayLibero(): boolean;
|
|
38
38
|
}
|
|
@@ -26,9 +26,6 @@ export class Player {
|
|
|
26
26
|
return x + p2Score - p1Score;
|
|
27
27
|
}, 0);
|
|
28
28
|
}
|
|
29
|
-
canPlayLibero() {
|
|
30
|
-
return this.roles.includes(Role.LIBERO);
|
|
31
|
-
}
|
|
32
29
|
static compareStats(p1, p2) {
|
|
33
30
|
const compareFn = (acc, current) => {
|
|
34
31
|
let x = current.value;
|
|
@@ -54,4 +51,7 @@ export class Player {
|
|
|
54
51
|
const s2 = p2.generalStats.reduce(compareFn, 0);
|
|
55
52
|
return s2 - s1;
|
|
56
53
|
}
|
|
54
|
+
canPlayLibero() {
|
|
55
|
+
return this.roles.includes(Role.LIBERO);
|
|
56
|
+
}
|
|
57
57
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|