volleyballsimtypes 0.0.30 → 0.0.32

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.
Files changed (31) hide show
  1. package/dist/cjs/src/data/index.d.ts +2 -2
  2. package/dist/cjs/src/data/index.js +2 -2
  3. package/dist/cjs/src/data/init-models.d.ts +2 -2
  4. package/dist/cjs/src/data/init-models.js +116 -116
  5. package/dist/cjs/src/data/models/index.d.ts +2 -2
  6. package/dist/cjs/src/data/models/index.js +3 -3
  7. package/dist/cjs/src/data/models/season.d.ts +0 -1
  8. package/dist/cjs/src/data/models/team.d.ts +1 -0
  9. package/dist/cjs/src/data/models/{tournament-match.d.ts → tournament-matches.d.ts} +6 -6
  10. package/dist/cjs/src/data/models/{tournament-match.js → tournament-matches.js} +6 -6
  11. package/dist/cjs/src/data/models/tournament.d.ts +24 -14
  12. package/dist/cjs/src/data/transformers/tournament-match.d.ts +4 -4
  13. package/dist/cjs/src/data/transformers/tournament.js +5 -3
  14. package/dist/cjs/src/index.d.ts +2 -2
  15. package/dist/cjs/src/index.js +2 -2
  16. package/dist/esm/src/data/index.d.ts +2 -2
  17. package/dist/esm/src/data/index.js +2 -2
  18. package/dist/esm/src/data/init-models.d.ts +2 -2
  19. package/dist/esm/src/data/init-models.js +117 -117
  20. package/dist/esm/src/data/models/index.d.ts +2 -2
  21. package/dist/esm/src/data/models/index.js +2 -2
  22. package/dist/esm/src/data/models/season.d.ts +0 -1
  23. package/dist/esm/src/data/models/team.d.ts +1 -0
  24. package/dist/esm/src/data/models/{tournament-match.d.ts → tournament-matches.d.ts} +6 -6
  25. package/dist/esm/src/data/models/{tournament-match.js → tournament-matches.js} +4 -4
  26. package/dist/esm/src/data/models/tournament.d.ts +24 -14
  27. package/dist/esm/src/data/transformers/tournament-match.d.ts +4 -4
  28. package/dist/esm/src/data/transformers/tournament.js +6 -4
  29. package/dist/esm/src/index.d.ts +2 -2
  30. package/dist/esm/src/index.js +2 -2
  31. package/package.json +1 -1
@@ -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, Stage, Standing, StandingOpts, Stat, SubPriority, Substitution, SubstitutionOpts, Team, TeamOpts, Tournament, TournamentMatch, TournamentOpts, TournamentStageOpts, Trait, validateUUID } from './service';
2
2
  import { APIBlock, APICoach, APIEvent, APIInPlayEvent, APILeague, APILiberoReplacement, APIMatch, APIMatchSet, APIPlayer, APIRally, APIReception, APIScore, APISeason, APIServe, APISet, APISetStatistics, APISpike, APISubstitution, APITeam, APITournament, APITournamentMatch, 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, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesModel, SeasonMatchesPk, 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, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentModel, TournamentPk, TournamentStage, TraitType, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, 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, APITournament, APITournamentMatch, 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, transformToStage, transformFromStage, SubstitutionId, SubstitutionModel, TeamCreationAttributes, SubstitutionPk, RoleType, TraitType, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchModel, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage, SeasonMatchesModel, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesPk, 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, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch, Stage, TournamentStageOpts, TournamentMatch, Tournament, TournamentOpts, };
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, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesModel, SeasonMatchesPk, 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, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentMatchesAttributes, TournamentMatchesCreationAttributes, TournamentMatchesId, TournamentMatchesModel, TournamentMatchesPk, TournamentModel, TournamentPk, TournamentStage, TraitType, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, 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, APITournament, APITournamentMatch, 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, transformToStage, transformFromStage, SubstitutionId, SubstitutionModel, TeamCreationAttributes, SubstitutionPk, RoleType, TraitType, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchesAttributes, TournamentMatchesCreationAttributes, TournamentMatchesId, TournamentMatchesModel, TournamentMatchesPk, TournamentStage, SeasonMatchesModel, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesPk, 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, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch, Stage, TournamentStageOpts, TournamentMatch, Tournament, TournamentOpts, };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateUUID = exports.getRandomEnumValue = exports.Trait = exports.shuffle = exports.Team = exports.SpikeType = exports.SpikeFailure = exports.ReceptionFailure = exports.SetType = exports.SetFailure = exports.ServeType = exports.ServeFailure = exports.ReceptionType = exports.randomNumber = exports.RallyState = exports.Player = exports.MatchTeam = exports.getKeys = exports.generateModifier = exports.formatNumber = exports.CourtTarget = exports.CourtPosition = exports.CourtRow = exports.InPlayEvent = exports.Match = exports.MatchSetState = exports.BlockFailure = exports.LiberoReplacementType = exports.BlockType = exports.Substitution = exports.Spike = exports.Set = exports.Serve = exports.Score = exports.Reception = exports.RallyEvent = exports.Rally = exports.MatchSet = exports.LiberoReplacement = exports.EventType = exports.Block = exports.Formation = exports.PerformanceStats = exports.GeneralStat = exports.Role = exports.Coach = exports.Country = exports.Season = exports.Standing = exports.League = void 0;
4
- exports.transformToPlayerPosition = exports.transformFromPlayerPosition = exports.transformFromPlayer = exports.transformFromLeague = exports.transformFromMatchSetStats = exports.transformFromMatchSet = exports.transformToSet = exports.transformToAPISet = exports.transformFromMatch = exports.transformFromFormation = exports.transformToScore = exports.transformToAPIScore = exports.transformToReception = exports.transformToAPIReception = exports.transformFromRally = exports.transformFromCountry = exports.transformFromCoach = exports.transformToBlock = exports.transformToAPIBlock = exports.transformFromBlock = exports.SeasonMatchesModel = exports.TournamentMatchModel = exports.TournamentModel = exports.SubstitutionModel = exports.transformFromStage = exports.transformToStage = exports.TeamModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = exports.SeasonModel = exports.SeasonTeamsModel = exports.PlayerModel = exports.transformToAPICoach = exports.MatchModel = exports.LeagueModel = exports.RallyPositionModel = exports.CoachModel = exports.ScoreModel = exports.CountryModel = exports.ReceptionModel = exports.MatchSetStatsModel = exports.LiberoReplacementModel = exports.PerformanceStatsModel = exports.MatchSetModel = exports.EventModel = exports.RallyModel = exports.BlockModel = exports.initModels = exports.APITrait = void 0;
4
+ exports.transformToPlayerPosition = exports.transformFromPlayerPosition = exports.transformFromPlayer = exports.transformFromLeague = exports.transformFromMatchSetStats = exports.transformFromMatchSet = exports.transformToSet = exports.transformToAPISet = exports.transformFromMatch = exports.transformFromFormation = exports.transformToScore = exports.transformToAPIScore = exports.transformToReception = exports.transformToAPIReception = exports.transformFromRally = exports.transformFromCountry = exports.transformFromCoach = exports.transformToBlock = exports.transformToAPIBlock = exports.transformFromBlock = exports.SeasonMatchesModel = exports.TournamentMatchesModel = exports.TournamentModel = exports.SubstitutionModel = exports.transformFromStage = exports.transformToStage = exports.TeamModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = exports.SeasonModel = exports.SeasonTeamsModel = exports.PlayerModel = exports.transformToAPICoach = exports.MatchModel = exports.LeagueModel = exports.RallyPositionModel = exports.CoachModel = exports.ScoreModel = exports.CountryModel = exports.ReceptionModel = exports.MatchSetStatsModel = exports.LiberoReplacementModel = exports.PerformanceStatsModel = exports.MatchSetModel = exports.EventModel = exports.RallyModel = exports.BlockModel = exports.initModels = exports.APITrait = void 0;
5
5
  exports.transformToAPITournament = exports.transformFromTournament = exports.transformToRole = exports.transformToLeague = exports.transformToTrait = exports.transformToTeam = exports.transformToSeason = exports.transformToMatch = exports.transformToRally = exports.transformToPlayer = exports.transformToPerformanceStats = exports.transformToMatchSetStats = exports.transformToFormation = exports.transformToCourtTarget = exports.transformToCourtPosition = exports.transformToMatchSet = exports.transformToEventType = exports.transformToCountry = exports.transformToCoach = exports.transformToLiberoReplacement = exports.transformToAPILiberoReplacement = exports.transformFromLiberoReplacement = exports.transformToAPITrait = exports.transformToAPITeam = exports.transformToAPISeason = exports.transformToAPIRally = exports.transformToAPIPlayer = exports.transformToAPIMatchSetStats = exports.transformToAPIMatchSet = exports.transformToAPIMatch = exports.transformFromTrait = exports.transformFromTeam = exports.transformToSubstitution = exports.transformToAPISubstitution = exports.transformFromSubstitution = exports.transformToSpike = exports.transformToAPISpike = exports.transformFromSpike = exports.transformFromSet = exports.transformToServe = exports.transformToAPIServe = exports.transformFromServe = exports.transformFromEventType = exports.transformFromSeason = exports.transformFromScore = exports.transformFromRole = exports.transformFromReception = exports.transformFromPerformanceStats = exports.transformFromCourtTarget = exports.transformFromCourtPosition = void 0;
6
6
  exports.Tournament = exports.TournamentMatch = exports.Stage = exports.transformToTournamentMatch = exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = exports.transformToTournament = void 0;
7
7
  const service_1 = require("./service");
@@ -85,7 +85,7 @@ Object.defineProperty(exports, "SetModel", { enumerable: true, get: function ()
85
85
  Object.defineProperty(exports, "SpikeModel", { enumerable: true, get: function () { return data_1.SpikeModel; } });
86
86
  Object.defineProperty(exports, "SubstitutionModel", { enumerable: true, get: function () { return data_1.SubstitutionModel; } });
87
87
  Object.defineProperty(exports, "TeamModel", { enumerable: true, get: function () { return data_1.TeamModel; } });
88
- Object.defineProperty(exports, "TournamentMatchModel", { enumerable: true, get: function () { return data_1.TournamentMatchModel; } });
88
+ Object.defineProperty(exports, "TournamentMatchesModel", { enumerable: true, get: function () { return data_1.TournamentMatchesModel; } });
89
89
  Object.defineProperty(exports, "TournamentModel", { enumerable: true, get: function () { return data_1.TournamentModel; } });
90
90
  Object.defineProperty(exports, "transformFromBlock", { enumerable: true, get: function () { return data_1.transformFromBlock; } });
91
91
  Object.defineProperty(exports, "transformFromCoach", { enumerable: true, get: function () { return data_1.transformFromCoach; } });
@@ -1,4 +1,4 @@
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, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesModel, SeasonMatchesPk, 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, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentModel, TournamentPk, TournamentStage, TraitType } from './models';
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, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesModel, SeasonMatchesPk, 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, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentMatchesAttributes, TournamentMatchesCreationAttributes, TournamentMatchesId, TournamentMatchesModel, TournamentMatchesPk, TournamentModel, TournamentPk, TournamentStage, TraitType } from './models';
2
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, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait } from './transformers';
3
3
  import { initModels } from './init-models';
4
- export { initModels, transformToStage, transformFromStage, SeasonMatchesModel, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesPk, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchModel, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage, 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, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch };
4
+ export { initModels, transformToStage, transformFromStage, SeasonMatchesModel, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesPk, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchesAttributes, TournamentMatchesModel, TournamentMatchesCreationAttributes, TournamentMatchesId, TournamentMatchesPk, TournamentStage, 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, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch };
@@ -1,4 +1,4 @@
1
- import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonMatchesModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchModel, TournamentModel, } from './models';
1
+ import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonMatchesModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchesModel, TournamentModel, } from './models';
2
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, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait } from './transformers';
3
3
  import { initModels } from './init-models';
4
- export { initModels, transformToStage, transformFromStage, SeasonMatchesModel, TournamentModel, TournamentMatchModel, 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, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch };
4
+ export { initModels, transformToStage, transformFromStage, SeasonMatchesModel, TournamentModel, TournamentMatchesModel, 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, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch };
@@ -1,5 +1,5 @@
1
1
  import type { Sequelize } from 'sequelize';
2
- import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonMatchesModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchModel, TournamentModel } from './models';
2
+ import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonMatchesModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchesModel, TournamentModel } from './models';
3
3
  export declare function initModels(sequelize: Sequelize): {
4
4
  Block: typeof BlockModel;
5
5
  Coach: typeof CoachModel;
@@ -25,5 +25,5 @@ export declare function initModels(sequelize: Sequelize): {
25
25
  Substitution: typeof SubstitutionModel;
26
26
  Team: typeof TeamModel;
27
27
  Tournament: typeof TournamentModel;
28
- TournamentMatch: typeof TournamentMatchModel;
28
+ TournamentMatch: typeof TournamentMatchesModel;
29
29
  };
@@ -1,4 +1,4 @@
1
- import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonMatchesModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchModel, TournamentModel } from './models';
1
+ import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonMatchesModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchesModel, TournamentModel } from './models';
2
2
  export function initModels(sequelize) {
3
3
  const Block = BlockModel.initModel(sequelize);
4
4
  const Coach = CoachModel.initModel(sequelize);
@@ -16,178 +16,178 @@ export function initModels(sequelize) {
16
16
  const Reception = ReceptionModel.initModel(sequelize);
17
17
  const Score = ScoreModel.initModel(sequelize);
18
18
  const Season = SeasonModel.initModel(sequelize);
19
- const SeasonTeams = SeasonTeamsModel.initModel(sequelize);
20
19
  const SeasonMatches = SeasonMatchesModel.initModel(sequelize);
20
+ const SeasonTeams = SeasonTeamsModel.initModel(sequelize);
21
21
  const Serve = ServeModel.initModel(sequelize);
22
22
  const Set = SetModel.initModel(sequelize);
23
23
  const Spike = SpikeModel.initModel(sequelize);
24
24
  const Substitution = SubstitutionModel.initModel(sequelize);
25
25
  const Team = TeamModel.initModel(sequelize);
26
26
  const Tournament = TournamentModel.initModel(sequelize);
27
- const TournamentMatch = TournamentMatchModel.initModel(sequelize);
28
- MatchSet.belongsToMany(Player, {
29
- as: 'player_id_Players',
30
- through: MatchSetStats,
31
- foreignKey: 'match_set_id',
32
- otherKey: 'player_id'
33
- });
34
- Player.belongsToMany(MatchSet, {
35
- as: 'match_set_id_MatchSets',
36
- through: MatchSetStats,
37
- foreignKey: 'player_id',
38
- otherKey: 'match_set_id'
39
- });
40
- Player.belongsToMany(Rally, {
41
- as: 'rally_id_Rallies',
42
- through: RallyPosition,
43
- foreignKey: 'player_id',
44
- otherKey: 'rally_id'
45
- });
46
- Rally.belongsToMany(Player, {
47
- as: 'player_id_Player_RallyPositions',
48
- through: RallyPosition,
49
- foreignKey: 'rally_id',
50
- otherKey: 'player_id'
51
- });
52
- Season.belongsToMany(Team, {
53
- as: 'seasonTeams',
54
- through: SeasonTeams,
55
- foreignKey: 'season_id',
56
- otherKey: 'team_id'
57
- });
58
- Team.belongsToMany(Season, {
59
- as: 'season_id_Seasons',
60
- through: SeasonTeams,
61
- foreignKey: 'team_id',
62
- otherKey: 'season_id'
63
- });
64
- Season.belongsToMany(Match, {
65
- as: 'seasonMatches',
66
- through: SeasonMatches,
67
- foreignKey: 'season_id',
68
- otherKey: 'match_id'
69
- });
27
+ const TournamentMatches = TournamentMatchesModel.initModel(sequelize);
28
+ Block.belongsTo(Player, { as: 'blocker_1_Player', foreignKey: 'blocker_1' });
29
+ Block.belongsTo(Player, { as: 'blocker_2_Player', foreignKey: 'blocker_2' });
30
+ Block.belongsTo(Player, { as: 'blocker_3_Player', foreignKey: 'blocker_3' });
31
+ Block.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
32
+ Block.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
33
+ Coach.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
34
+ Coach.hasMany(Team, { as: 'Teams', foreignKey: 'coach_id' });
35
+ Country.hasMany(Coach, { as: 'Coaches', foreignKey: 'country_id' });
36
+ Country.hasMany(League, { as: 'Leagues', foreignKey: 'country_id' });
37
+ Country.hasMany(Player, { as: 'Players', foreignKey: 'country_id' });
38
+ Country.hasMany(Team, { as: 'Teams', foreignKey: 'country_id' });
39
+ Event.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
40
+ Event.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
41
+ League.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
42
+ League.hasMany(League, { as: 'Teams', foreignKey: 'league_id' });
43
+ League.hasMany(Season, { as: 'Seasons', foreignKey: 'league_id' });
44
+ LiberoReplacement.belongsTo(Player, { as: 'libero_Player', foreignKey: 'libero' });
45
+ LiberoReplacement.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
46
+ LiberoReplacement.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
47
+ Match.belongsTo(Team, { as: 'awayTeam', foreignKey: 'away_team' });
48
+ Match.belongsTo(Team, { as: 'homeTeam', foreignKey: 'home_team' });
49
+ Match.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'match_id' });
50
+ Match.hasMany(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'match_id' });
51
+ Match.hasMany(TournamentMatches, { as: 'TournamentMatch', foreignKey: 'match_id' });
70
52
  Match.belongsToMany(Season, {
71
53
  as: 'season_id_Seasons',
72
54
  through: SeasonMatches,
73
55
  foreignKey: 'match_id',
74
56
  otherKey: 'season_id'
75
57
  });
76
- Tournament.belongsToMany(Match, {
77
- as: 'tournamentMatch',
78
- through: TournamentMatch,
79
- foreignKey: 'tournament_id',
80
- otherKey: 'match_id'
81
- });
82
58
  Match.belongsToMany(Tournament, {
83
59
  as: 'tournament_id_Tournaments',
84
- through: TournamentMatch,
60
+ through: TournamentMatches,
85
61
  foreignKey: 'match_id',
86
62
  otherKey: 'tournament_id'
87
63
  });
88
- Team.belongsTo(Coach, { as: 'coach', foreignKey: 'coach_id' });
89
- Coach.hasMany(Team, { as: 'Teams', foreignKey: 'coach_id' });
90
- Coach.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
91
- Country.hasMany(Coach, { as: 'Coaches', foreignKey: 'country_id' });
92
- League.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
93
- Country.hasMany(League, { as: 'Leagues', foreignKey: 'country_id' });
94
- Player.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
95
- Country.hasMany(Player, { as: 'Players', foreignKey: 'country_id' });
96
- Team.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
97
- Country.hasMany(Team, { as: 'Teams', foreignKey: 'country_id' });
98
- Season.belongsTo(League, { as: 'league', foreignKey: 'league_id' });
99
- League.hasMany(Season, { as: 'Seasons', foreignKey: 'league_id' });
100
64
  MatchSet.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
101
- Match.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'match_id' });
102
- MatchSetStats.belongsTo(MatchSet, { as: 'match_set', foreignKey: 'match_set_id' });
65
+ MatchSet.belongsTo(Player, { as: 'away_libero_Player', foreignKey: 'away_libero' });
66
+ MatchSet.belongsTo(Player, { as: 'home_libero_Player', foreignKey: 'home_libero' });
103
67
  MatchSet.hasMany(MatchSetStats, { as: 'MatchSetStats', foreignKey: 'match_set_id' });
104
- Rally.belongsTo(MatchSet, { as: 'match_set', foreignKey: 'match_set_id' });
105
68
  MatchSet.hasMany(Rally, { as: 'Rallies', foreignKey: 'match_set_id' });
106
- Block.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
69
+ MatchSet.belongsToMany(Player, {
70
+ as: 'player_id_Players',
71
+ through: MatchSetStats,
72
+ foreignKey: 'match_set_id',
73
+ otherKey: 'player_id'
74
+ });
75
+ MatchSetStats.belongsTo(MatchSet, { as: 'match_set', foreignKey: 'match_set_id' });
76
+ MatchSetStats.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
77
+ PerformanceStats.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
78
+ Player.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
79
+ Player.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
107
80
  Player.hasMany(Block, { as: 'Blocks', foreignKey: 'player_id' });
108
- Block.belongsTo(Player, { as: 'blocker_1_Player', foreignKey: 'blocker_1' });
109
81
  Player.hasMany(Block, { as: 'blocker_1_Blocks', foreignKey: 'blocker_1' });
110
- Block.belongsTo(Player, { as: 'blocker_2_Player', foreignKey: 'blocker_2' });
111
82
  Player.hasMany(Block, { as: 'blocker_2_Blocks', foreignKey: 'blocker_2' });
112
- Block.belongsTo(Player, { as: 'blocker_3_Player', foreignKey: 'blocker_3' });
113
83
  Player.hasMany(Block, { as: 'blocker_3_Blocks', foreignKey: 'blocker_3' });
114
- Event.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
115
84
  Player.hasMany(Event, { as: 'Events', foreignKey: 'player_id' });
116
- LiberoReplacement.belongsTo(Player, { as: 'libero_Player', foreignKey: 'libero' });
117
85
  Player.hasMany(LiberoReplacement, { as: 'LiberoReplacements', foreignKey: 'libero' });
118
- LiberoReplacement.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
119
86
  Player.hasMany(LiberoReplacement, { as: 'player_LiberoReplacements', foreignKey: 'player_id' });
120
- MatchSet.belongsTo(Player, { as: 'away_libero_Player', foreignKey: 'away_libero' });
121
87
  Player.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'away_libero' });
122
- MatchSet.belongsTo(Player, { as: 'home_libero_Player', foreignKey: 'home_libero' });
123
88
  Player.hasMany(MatchSet, { as: 'home_libero_MatchSets', foreignKey: 'home_libero' });
124
- MatchSetStats.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
125
89
  Player.hasMany(MatchSetStats, { as: 'MatchSetStats', foreignKey: 'player_id' });
126
- PerformanceStats.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
127
- Player.hasOne(PerformanceStats, { as: 'PerformanceStat', foreignKey: 'player_id' });
128
- RallyPosition.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
129
90
  Player.hasMany(RallyPosition, { as: 'RallyPositions', foreignKey: 'player_id' });
130
- Reception.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
131
91
  Player.hasMany(Reception, { as: 'Receptions', foreignKey: 'player_id' });
132
- Score.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
133
92
  Player.hasMany(Score, { as: 'Scores', foreignKey: 'player_id' });
134
- Serve.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
135
93
  Player.hasMany(Serve, { as: 'Serves', foreignKey: 'player_id' });
136
- Set.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
137
94
  Player.hasMany(Set, { as: 'Sets', foreignKey: 'player_id' });
138
- Spike.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
139
95
  Player.hasMany(Spike, { as: 'Spikes', foreignKey: 'player_id' });
140
- Substitution.belongsTo(Player, { as: 'player_out_Player', foreignKey: 'player_out' });
141
96
  Player.hasMany(Substitution, { as: 'Substitutions', foreignKey: 'player_out' });
142
- Substitution.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
143
97
  Player.hasMany(Substitution, { as: 'player_Substitutions', foreignKey: 'player_id' });
144
- Block.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
98
+ Player.hasOne(PerformanceStats, { as: 'PerformanceStat', foreignKey: 'player_id' });
99
+ Player.belongsToMany(MatchSet, {
100
+ as: 'match_set_id_MatchSets',
101
+ through: MatchSetStats,
102
+ foreignKey: 'player_id',
103
+ otherKey: 'match_set_id'
104
+ });
105
+ Player.belongsToMany(Rally, {
106
+ as: 'rally_id_Rallies',
107
+ through: RallyPosition,
108
+ foreignKey: 'player_id',
109
+ otherKey: 'rally_id'
110
+ });
111
+ Rally.belongsTo(MatchSet, { as: 'match_set', foreignKey: 'match_set_id' });
112
+ Rally.belongsTo(Team, { as: 'serving_team_Team', foreignKey: 'serving_team' });
145
113
  Rally.hasMany(Block, { as: 'Blocks', foreignKey: 'rally_id' });
146
- Event.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
147
114
  Rally.hasMany(Event, { as: 'Events', foreignKey: 'rally_id' });
148
- LiberoReplacement.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
149
115
  Rally.hasMany(LiberoReplacement, { as: 'LiberoReplacements', foreignKey: 'rally_id' });
150
- RallyPosition.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
151
116
  Rally.hasMany(RallyPosition, { as: 'RallyPositions', foreignKey: 'rally_id' });
152
- Reception.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
153
117
  Rally.hasMany(Reception, { as: 'Receptions', foreignKey: 'rally_id' });
154
- Score.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
155
118
  Rally.hasMany(Score, { as: 'Scores', foreignKey: 'rally_id' });
156
- Serve.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
157
119
  Rally.hasMany(Serve, { as: 'Serves', foreignKey: 'rally_id' });
158
- Set.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
159
120
  Rally.hasMany(Set, { as: 'Sets', foreignKey: 'rally_id' });
160
- Spike.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
161
121
  Rally.hasMany(Spike, { as: 'Spikes', foreignKey: 'rally_id' });
162
- Substitution.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
163
122
  Rally.hasMany(Substitution, { as: 'Substitutions', foreignKey: 'rally_id' });
164
- SeasonTeams.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
123
+ Rally.belongsToMany(Player, {
124
+ as: 'player_id_Player_RallyPositions',
125
+ through: RallyPosition,
126
+ foreignKey: 'rally_id',
127
+ otherKey: 'player_id'
128
+ });
129
+ RallyPosition.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
130
+ RallyPosition.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
131
+ Reception.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
132
+ Reception.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
133
+ Score.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
134
+ Score.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
135
+ Score.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
136
+ Season.belongsTo(League, { as: 'league', foreignKey: 'league_id' });
137
+ Season.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
138
+ Season.hasMany(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'season_id' });
165
139
  Season.hasMany(SeasonTeams, { as: 'SeasonTeams', foreignKey: 'season_id' });
166
- Match.belongsTo(Team, { as: 'homeTeam', foreignKey: 'home_team' });
140
+ Season.belongsToMany(Team, {
141
+ as: 'seasonTeams',
142
+ through: SeasonTeams,
143
+ foreignKey: 'season_id',
144
+ otherKey: 'team_id'
145
+ });
146
+ Season.belongsToMany(Match, {
147
+ as: 'seasonMatches',
148
+ through: SeasonMatches,
149
+ foreignKey: 'season_id',
150
+ otherKey: 'match_id'
151
+ });
152
+ SeasonMatches.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
153
+ SeasonMatches.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
154
+ SeasonTeams.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
155
+ SeasonTeams.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
156
+ Serve.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
157
+ Serve.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
158
+ Set.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
159
+ Set.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
160
+ Spike.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
161
+ Spike.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
162
+ Substitution.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
163
+ Substitution.belongsTo(Player, { as: 'player_out_Player', foreignKey: 'player_out' });
164
+ Substitution.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
165
+ Team.belongsTo(Coach, { as: 'coach', foreignKey: 'coach_id' });
166
+ Team.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
167
+ Team.belongsTo(League, { as: 'league', foreignKey: 'league_id' });
167
168
  Team.hasMany(Match, { as: 'Matches', foreignKey: 'home_team' });
168
- Match.belongsTo(Team, { as: 'awayTeam', foreignKey: 'away_team' });
169
169
  Team.hasMany(Match, { as: 'away_team_Matches', foreignKey: 'away_team' });
170
- Player.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
171
170
  Team.hasMany(Player, { as: 'Players', foreignKey: 'team_id' });
172
- Rally.belongsTo(Team, { as: 'serving_team_Team', foreignKey: 'serving_team' });
173
171
  Team.hasMany(Rally, { as: 'Rallies', foreignKey: 'serving_team' });
174
- Score.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
175
172
  Team.hasMany(Score, { as: 'Scores', foreignKey: 'team_id' });
176
- SeasonTeams.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
177
- Team.hasMany(SeasonTeams, { as: 'SeasonTeams', foreignKey: 'team_id' });
178
- Match.hasMany(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'match_id' });
179
- Season.hasMany(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'season_id' });
180
- SeasonMatches.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
181
- SeasonMatches.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
182
- Team.belongsTo(League, { as: 'league', foreignKey: 'league_id' });
183
- League.hasMany(League, { as: 'Teams', foreignKey: 'league_id' });
184
- Season.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
185
173
  Team.hasMany(Season, { as: 'titles', foreignKey: 'champion' });
174
+ Team.hasMany(SeasonTeams, { as: 'SeasonTeams', foreignKey: 'team_id' });
175
+ Team.belongsToMany(Season, {
176
+ as: 'season_id_Seasons',
177
+ through: SeasonTeams,
178
+ foreignKey: 'team_id',
179
+ otherKey: 'season_id'
180
+ });
186
181
  Tournament.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
187
- Tournament.hasMany(TournamentMatch, { as: 'Matches', foreignKey: 'tournament_id' });
188
- Match.hasMany(TournamentMatch, { as: 'TournamentMatch', foreignKey: 'match_id' });
189
- TournamentMatch.belongsTo(Tournament, { as: 'tournament', foreignKey: 'tournament_id' });
190
- TournamentMatch.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
182
+ Tournament.hasMany(TournamentMatches, { as: 'TournamentMatches', foreignKey: 'tournament_id' });
183
+ Tournament.belongsToMany(Match, {
184
+ as: 'tournamentMatch',
185
+ through: TournamentMatches,
186
+ foreignKey: 'tournament_id',
187
+ otherKey: 'match_id'
188
+ });
189
+ TournamentMatches.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
190
+ TournamentMatches.belongsTo(Tournament, { as: 'tournament', foreignKey: 'tournament_id' });
191
191
  return {
192
192
  Block,
193
193
  Coach,
@@ -213,6 +213,6 @@ export function initModels(sequelize) {
213
213
  Substitution,
214
214
  Team,
215
215
  Tournament,
216
- TournamentMatch
216
+ TournamentMatch: TournamentMatches
217
217
  };
218
218
  }
@@ -22,5 +22,5 @@ import { SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk
22
22
  import { SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk } from './substitution';
23
23
  import { TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk } from './team';
24
24
  import { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk } from './tournament';
25
- import { TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentStage } from './tournament-match';
26
- export { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchModel, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesModel, SeasonMatchesPk, 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, };
25
+ import { TournamentMatchesAttributes, TournamentMatchesCreationAttributes, TournamentMatchesId, TournamentMatchesModel, TournamentMatchesPk, TournamentStage } from './tournament-matches';
26
+ export { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchesAttributes, TournamentMatchesCreationAttributes, TournamentMatchesId, TournamentMatchesModel, TournamentMatchesPk, TournamentStage, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesModel, SeasonMatchesPk, 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, };
@@ -22,5 +22,5 @@ import { SpikeModel } from './spike';
22
22
  import { SubstitutionModel, } from './substitution';
23
23
  import { TeamModel } from './team';
24
24
  import { TournamentModel } from './tournament';
25
- import { TournamentMatchModel } from './tournament-match';
26
- export { TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, SeasonMatchesModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, };
25
+ import { TournamentMatchesModel } from './tournament-matches';
26
+ export { TournamentModel, TournamentMatchesModel, BlockModel, CoachModel, CountryModel, SeasonMatchesModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, };
@@ -11,7 +11,6 @@ export interface SeasonAttributes {
11
11
  league_id: string;
12
12
  seasonTeams?: TeamAttributes[];
13
13
  seasonMatches?: MatchAttributes[];
14
- Matches?: MatchAttributes[];
15
14
  league?: LeagueAttributes;
16
15
  champion?: string;
17
16
  }
@@ -18,6 +18,7 @@ export interface TeamAttributes {
18
18
  country_id: string;
19
19
  coach?: CoachAttributes;
20
20
  league?: LeagueAttributes;
21
+ Players?: PlayerModel[];
21
22
  }
22
23
  export type TeamPk = 'team_id';
23
24
  export type TeamId = TeamModel[TeamPk];
@@ -2,17 +2,17 @@ import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
3
  import type { TournamentId, TournamentModel } from './tournament';
4
4
  import type { MatchId, MatchModel } from './match';
5
- export interface TournamentMatchAttributes {
5
+ export interface TournamentMatchesAttributes {
6
6
  tournament_id: string;
7
7
  match_id: string;
8
8
  index: number;
9
9
  stage: TournamentStage;
10
10
  }
11
- export type TournamentMatchPk = 'tournament_id' | 'match_id';
12
- export type TournamentMatchId = TournamentMatchModel[TournamentMatchPk];
11
+ export type TournamentMatchesPk = 'tournament_id' | 'match_id';
12
+ export type TournamentMatchesId = TournamentMatchesModel[TournamentMatchesPk];
13
13
  export type TournamentStage = 'ROUND_OF_8' | 'QUARTERFINALS' | 'SEMIFINALS' | 'FINAL';
14
- export type TournamentMatchCreationAttributes = TournamentMatchAttributes;
15
- export declare class TournamentMatchModel extends Model<TournamentMatchAttributes, TournamentMatchCreationAttributes> implements TournamentMatchAttributes {
14
+ export type TournamentMatchesCreationAttributes = TournamentMatchesAttributes;
15
+ export declare class TournamentMatchesModel extends Model<TournamentMatchesAttributes, TournamentMatchesCreationAttributes> implements TournamentMatchesAttributes {
16
16
  tournament_id: string;
17
17
  match_id: string;
18
18
  index: number;
@@ -25,5 +25,5 @@ export declare class TournamentMatchModel extends Model<TournamentMatchAttribute
25
25
  getMatch: Sequelize.BelongsToGetAssociationMixin<MatchModel>;
26
26
  setMatch: Sequelize.BelongsToSetAssociationMixin<MatchModel, MatchId>;
27
27
  createMatch: Sequelize.BelongsToCreateAssociationMixin<MatchModel>;
28
- static initModel(sequelize: Sequelize.Sequelize): typeof TournamentMatchModel;
28
+ static initModel(sequelize: Sequelize.Sequelize): typeof TournamentMatchesModel;
29
29
  }
@@ -1,7 +1,7 @@
1
1
  import { DataTypes, Model } from 'sequelize';
2
- export class TournamentMatchModel extends Model {
2
+ export class TournamentMatchesModel extends Model {
3
3
  static initModel(sequelize) {
4
- return TournamentMatchModel.init({
4
+ return TournamentMatchesModel.init({
5
5
  tournament_id: {
6
6
  type: DataTypes.UUID,
7
7
  allowNull: false,
@@ -25,12 +25,12 @@ export class TournamentMatchModel extends Model {
25
25
  },
26
26
  }, {
27
27
  sequelize,
28
- tableName: 'TournamentMatch',
28
+ tableName: 'TournamentMatches',
29
29
  schema: 'public',
30
30
  timestamps: false,
31
31
  indexes: [
32
32
  {
33
- name: 'TournamentMatch_pk',
33
+ name: 'TournamentMatches_pk',
34
34
  unique: true,
35
35
  fields: [
36
36
  { name: 'tournament_id' },