volleyballsimtypes 0.0.29 → 0.0.31

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 (35) hide show
  1. package/dist/cjs/src/data/index.d.ts +2 -2
  2. package/dist/cjs/src/data/index.js +4 -3
  3. package/dist/cjs/src/data/init-models.d.ts +2 -1
  4. package/dist/cjs/src/data/init-models.js +119 -90
  5. package/dist/cjs/src/data/models/index.d.ts +2 -1
  6. package/dist/cjs/src/data/models/index.js +3 -1
  7. package/dist/cjs/src/data/models/match.d.ts +24 -6
  8. package/dist/cjs/src/data/models/match.js +0 -8
  9. package/dist/cjs/src/data/models/season-matches.d.ts +24 -0
  10. package/dist/cjs/src/data/models/season-matches.js +44 -0
  11. package/dist/cjs/src/data/models/season.d.ts +24 -2
  12. package/dist/cjs/src/data/models/team.d.ts +1 -0
  13. package/dist/cjs/src/data/transformers/match.d.ts +1 -1
  14. package/dist/cjs/src/data/transformers/match.js +1 -2
  15. package/dist/cjs/src/data/transformers/season.js +2 -2
  16. package/dist/cjs/src/index.d.ts +2 -2
  17. package/dist/cjs/src/index.js +4 -3
  18. package/dist/esm/src/data/index.d.ts +2 -2
  19. package/dist/esm/src/data/index.js +2 -2
  20. package/dist/esm/src/data/init-models.d.ts +2 -1
  21. package/dist/esm/src/data/init-models.js +120 -91
  22. package/dist/esm/src/data/models/index.d.ts +2 -1
  23. package/dist/esm/src/data/models/index.js +3 -2
  24. package/dist/esm/src/data/models/match.d.ts +24 -6
  25. package/dist/esm/src/data/models/match.js +0 -8
  26. package/dist/esm/src/data/models/season-matches.d.ts +24 -0
  27. package/dist/esm/src/data/models/season-matches.js +40 -0
  28. package/dist/esm/src/data/models/season.d.ts +24 -2
  29. package/dist/esm/src/data/models/team.d.ts +1 -0
  30. package/dist/esm/src/data/transformers/match.d.ts +1 -1
  31. package/dist/esm/src/data/transformers/match.js +1 -2
  32. package/dist/esm/src/data/transformers/season.js +2 -2
  33. package/dist/esm/src/index.d.ts +2 -2
  34. package/dist/esm/src/index.js +2 -2
  35. package/package.json +1 -1
@@ -4,10 +4,9 @@ exports.transformFromMatch = exports.transformToAPIMatch = exports.transformToMa
4
4
  const service_1 = require("../../service");
5
5
  const team_1 = require("./team");
6
6
  const match_set_1 = require("./match-set");
7
- function transformToAttributes(match, seasonId) {
7
+ function transformToAttributes(match) {
8
8
  return {
9
9
  match_id: match.id,
10
- season_id: seasonId,
11
10
  away_team: match.awayTeam.id,
12
11
  home_team: match.homeTeam.id,
13
12
  scheduled_date: match.scheduledDate.toISOString(),
@@ -17,7 +17,7 @@ exports.transformFromSeason = transformToAttributes;
17
17
  function transformToObject(model) {
18
18
  return new service_1.Season({
19
19
  id: model.season_id,
20
- matches: model.Matches != null ? model.Matches.map(match_1.transformToMatch) : [],
20
+ matches: model.seasonMatches != null ? model.seasonMatches.map(match_1.transformToMatch) : [],
21
21
  iteration: model.iteration,
22
22
  teams: model.seasonTeams != null ? model.seasonTeams.map(team_1.transformToTeam) : [],
23
23
  champion: model.Champion != null ? (0, team_1.transformToTeam)(model.Champion) : undefined
@@ -28,7 +28,7 @@ function transformToAPIObject(model) {
28
28
  const season = transformToObject(model);
29
29
  return {
30
30
  id: model.season_id,
31
- matches: model.Matches != null ? model.Matches.map(match_1.transformToAPIMatch) : [],
31
+ matches: model.seasonMatches != null ? model.seasonMatches.map(match_1.transformToAPIMatch) : [],
32
32
  iteration: model.iteration,
33
33
  teams: model.seasonTeams != null ? model.seasonTeams.map(team_1.transformToAPITeam) : [],
34
34
  league: (0, league_1.transformToLeague)(model.league),
@@ -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, 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, 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, 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, };
@@ -1,9 +1,9 @@
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.transformFromCourtPosition = 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.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;
5
- exports.transformToTournament = 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 = void 0;
6
- exports.Tournament = exports.TournamentMatch = exports.Stage = exports.transformToTournamentMatch = exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = 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;
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
+ exports.Tournament = exports.TournamentMatch = exports.Stage = exports.transformToTournamentMatch = exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = exports.transformToTournament = void 0;
7
7
  const service_1 = require("./service");
8
8
  Object.defineProperty(exports, "Block", { enumerable: true, get: function () { return service_1.Block; } });
9
9
  Object.defineProperty(exports, "BlockFailure", { enumerable: true, get: function () { return service_1.BlockFailure; } });
@@ -77,6 +77,7 @@ Object.defineProperty(exports, "RallyModel", { enumerable: true, get: function (
77
77
  Object.defineProperty(exports, "RallyPositionModel", { enumerable: true, get: function () { return data_1.RallyPositionModel; } });
78
78
  Object.defineProperty(exports, "ReceptionModel", { enumerable: true, get: function () { return data_1.ReceptionModel; } });
79
79
  Object.defineProperty(exports, "ScoreModel", { enumerable: true, get: function () { return data_1.ScoreModel; } });
80
+ Object.defineProperty(exports, "SeasonMatchesModel", { enumerable: true, get: function () { return data_1.SeasonMatchesModel; } });
80
81
  Object.defineProperty(exports, "SeasonModel", { enumerable: true, get: function () { return data_1.SeasonModel; } });
81
82
  Object.defineProperty(exports, "SeasonTeamsModel", { enumerable: true, get: function () { return data_1.SeasonTeamsModel; } });
82
83
  Object.defineProperty(exports, "ServeModel", { enumerable: true, get: function () { return data_1.ServeModel; } });
@@ -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, 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, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, 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, 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, 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 };
@@ -1,4 +1,4 @@
1
- import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, 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, TournamentMatchModel, 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, 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, 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 };
@@ -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, 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, TournamentMatchModel, TournamentModel } from './models';
3
3
  export declare function initModels(sequelize: Sequelize): {
4
4
  Block: typeof BlockModel;
5
5
  Coach: typeof CoachModel;
@@ -18,6 +18,7 @@ export declare function initModels(sequelize: Sequelize): {
18
18
  Score: typeof ScoreModel;
19
19
  Season: typeof SeasonModel;
20
20
  SeasonTeams: typeof SeasonTeamsModel;
21
+ SeasonMatches: typeof SeasonMatchesModel;
21
22
  Serve: typeof ServeModel;
22
23
  Set: typeof SetModel;
23
24
  Spike: typeof SpikeModel;
@@ -1,4 +1,4 @@
1
- import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, 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, TournamentMatchModel, TournamentModel } from './models';
2
2
  export function initModels(sequelize) {
3
3
  const Block = BlockModel.initModel(sequelize);
4
4
  const Coach = CoachModel.initModel(sequelize);
@@ -16,6 +16,7 @@ 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 SeasonMatches = SeasonMatchesModel.initModel(sequelize);
19
20
  const SeasonTeams = SeasonTeamsModel.initModel(sequelize);
20
21
  const Serve = ServeModel.initModel(sequelize);
21
22
  const Set = SetModel.initModel(sequelize);
@@ -24,142 +25,169 @@ export function initModels(sequelize) {
24
25
  const Team = TeamModel.initModel(sequelize);
25
26
  const Tournament = TournamentModel.initModel(sequelize);
26
27
  const TournamentMatch = TournamentMatchModel.initModel(sequelize);
27
- MatchSet.belongsToMany(Player, {
28
- as: 'player_id_Players',
29
- through: MatchSetStats,
30
- foreignKey: 'match_set_id',
31
- otherKey: 'player_id'
32
- });
33
- Player.belongsToMany(MatchSet, {
34
- as: 'match_set_id_MatchSets',
35
- through: MatchSetStats,
36
- foreignKey: 'player_id',
37
- otherKey: 'match_set_id'
38
- });
39
- Player.belongsToMany(Rally, {
40
- as: 'rally_id_Rallies',
41
- through: RallyPosition,
42
- foreignKey: 'player_id',
43
- otherKey: 'rally_id'
44
- });
45
- Rally.belongsToMany(Player, {
46
- as: 'player_id_Player_RallyPositions',
47
- through: RallyPosition,
48
- foreignKey: 'rally_id',
49
- otherKey: 'player_id'
50
- });
51
- Season.belongsToMany(Team, {
52
- as: 'seasonTeams',
53
- through: SeasonTeams,
54
- foreignKey: 'season_id',
55
- otherKey: 'team_id'
56
- });
57
- Team.belongsToMany(Season, {
58
- as: 'season_id_Seasons',
59
- through: SeasonTeams,
60
- foreignKey: 'team_id',
61
- otherKey: 'season_id'
62
- });
63
- Team.belongsTo(Coach, { as: 'coach', foreignKey: 'coach_id' });
64
- Coach.hasMany(Team, { as: 'Teams', foreignKey: 'coach_id' });
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' });
65
33
  Coach.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
34
+ Coach.hasMany(Team, { as: 'Teams', foreignKey: 'coach_id' });
66
35
  Country.hasMany(Coach, { as: 'Coaches', foreignKey: 'country_id' });
67
- League.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
68
36
  Country.hasMany(League, { as: 'Leagues', foreignKey: 'country_id' });
69
- Player.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
70
37
  Country.hasMany(Player, { as: 'Players', foreignKey: 'country_id' });
71
- Team.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
72
38
  Country.hasMany(Team, { as: 'Teams', foreignKey: 'country_id' });
73
- Season.belongsTo(League, { as: 'league', foreignKey: 'league_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' });
74
43
  League.hasMany(Season, { as: 'Seasons', foreignKey: 'league_id' });
75
- MatchSet.belongsTo(Match, { as: 'match', foreignKey: 'match_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' });
76
49
  Match.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'match_id' });
77
- MatchSetStats.belongsTo(MatchSet, { as: 'match_set', foreignKey: 'match_set_id' });
50
+ Match.hasMany(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'match_id' });
51
+ Match.hasMany(TournamentMatch, { as: 'TournamentMatch', foreignKey: 'match_id' });
52
+ Match.belongsToMany(Season, {
53
+ as: 'season_id_Seasons',
54
+ through: SeasonMatches,
55
+ foreignKey: 'match_id',
56
+ otherKey: 'season_id'
57
+ });
58
+ Match.belongsToMany(Tournament, {
59
+ as: 'tournament_id_Tournaments',
60
+ through: TournamentMatch,
61
+ foreignKey: 'match_id',
62
+ otherKey: 'tournament_id'
63
+ });
64
+ MatchSet.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
65
+ MatchSet.belongsTo(Player, { as: 'away_libero_Player', foreignKey: 'away_libero' });
66
+ MatchSet.belongsTo(Player, { as: 'home_libero_Player', foreignKey: 'home_libero' });
78
67
  MatchSet.hasMany(MatchSetStats, { as: 'MatchSetStats', foreignKey: 'match_set_id' });
79
- Rally.belongsTo(MatchSet, { as: 'match_set', foreignKey: 'match_set_id' });
80
68
  MatchSet.hasMany(Rally, { as: 'Rallies', foreignKey: 'match_set_id' });
81
- 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' });
82
80
  Player.hasMany(Block, { as: 'Blocks', foreignKey: 'player_id' });
83
- Block.belongsTo(Player, { as: 'blocker_1_Player', foreignKey: 'blocker_1' });
84
81
  Player.hasMany(Block, { as: 'blocker_1_Blocks', foreignKey: 'blocker_1' });
85
- Block.belongsTo(Player, { as: 'blocker_2_Player', foreignKey: 'blocker_2' });
86
82
  Player.hasMany(Block, { as: 'blocker_2_Blocks', foreignKey: 'blocker_2' });
87
- Block.belongsTo(Player, { as: 'blocker_3_Player', foreignKey: 'blocker_3' });
88
83
  Player.hasMany(Block, { as: 'blocker_3_Blocks', foreignKey: 'blocker_3' });
89
- Event.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
90
84
  Player.hasMany(Event, { as: 'Events', foreignKey: 'player_id' });
91
- LiberoReplacement.belongsTo(Player, { as: 'libero_Player', foreignKey: 'libero' });
92
85
  Player.hasMany(LiberoReplacement, { as: 'LiberoReplacements', foreignKey: 'libero' });
93
- LiberoReplacement.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
94
86
  Player.hasMany(LiberoReplacement, { as: 'player_LiberoReplacements', foreignKey: 'player_id' });
95
- MatchSet.belongsTo(Player, { as: 'away_libero_Player', foreignKey: 'away_libero' });
96
87
  Player.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'away_libero' });
97
- MatchSet.belongsTo(Player, { as: 'home_libero_Player', foreignKey: 'home_libero' });
98
88
  Player.hasMany(MatchSet, { as: 'home_libero_MatchSets', foreignKey: 'home_libero' });
99
- MatchSetStats.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
100
89
  Player.hasMany(MatchSetStats, { as: 'MatchSetStats', foreignKey: 'player_id' });
101
- PerformanceStats.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
102
- Player.hasOne(PerformanceStats, { as: 'PerformanceStat', foreignKey: 'player_id' });
103
- RallyPosition.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
104
90
  Player.hasMany(RallyPosition, { as: 'RallyPositions', foreignKey: 'player_id' });
105
- Reception.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
106
91
  Player.hasMany(Reception, { as: 'Receptions', foreignKey: 'player_id' });
107
- Score.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
108
92
  Player.hasMany(Score, { as: 'Scores', foreignKey: 'player_id' });
109
- Serve.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
110
93
  Player.hasMany(Serve, { as: 'Serves', foreignKey: 'player_id' });
111
- Set.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
112
94
  Player.hasMany(Set, { as: 'Sets', foreignKey: 'player_id' });
113
- Spike.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
114
95
  Player.hasMany(Spike, { as: 'Spikes', foreignKey: 'player_id' });
115
- Substitution.belongsTo(Player, { as: 'player_out_Player', foreignKey: 'player_out' });
116
96
  Player.hasMany(Substitution, { as: 'Substitutions', foreignKey: 'player_out' });
117
- Substitution.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
118
97
  Player.hasMany(Substitution, { as: 'player_Substitutions', foreignKey: 'player_id' });
119
- 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' });
120
113
  Rally.hasMany(Block, { as: 'Blocks', foreignKey: 'rally_id' });
121
- Event.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
122
114
  Rally.hasMany(Event, { as: 'Events', foreignKey: 'rally_id' });
123
- LiberoReplacement.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
124
115
  Rally.hasMany(LiberoReplacement, { as: 'LiberoReplacements', foreignKey: 'rally_id' });
125
- RallyPosition.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
126
116
  Rally.hasMany(RallyPosition, { as: 'RallyPositions', foreignKey: 'rally_id' });
127
- Reception.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
128
117
  Rally.hasMany(Reception, { as: 'Receptions', foreignKey: 'rally_id' });
129
- Score.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
130
118
  Rally.hasMany(Score, { as: 'Scores', foreignKey: 'rally_id' });
131
- Serve.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
132
119
  Rally.hasMany(Serve, { as: 'Serves', foreignKey: 'rally_id' });
133
- Set.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
134
120
  Rally.hasMany(Set, { as: 'Sets', foreignKey: 'rally_id' });
135
- Spike.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
136
121
  Rally.hasMany(Spike, { as: 'Spikes', foreignKey: 'rally_id' });
137
- Substitution.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
138
122
  Rally.hasMany(Substitution, { as: 'Substitutions', foreignKey: 'rally_id' });
139
- 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' });
140
139
  Season.hasMany(SeasonTeams, { as: 'SeasonTeams', foreignKey: 'season_id' });
141
- 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' });
142
168
  Team.hasMany(Match, { as: 'Matches', foreignKey: 'home_team' });
143
- Match.belongsTo(Team, { as: 'awayTeam', foreignKey: 'away_team' });
144
169
  Team.hasMany(Match, { as: 'away_team_Matches', foreignKey: 'away_team' });
145
- Player.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
146
170
  Team.hasMany(Player, { as: 'Players', foreignKey: 'team_id' });
147
- Rally.belongsTo(Team, { as: 'serving_team_Team', foreignKey: 'serving_team' });
148
171
  Team.hasMany(Rally, { as: 'Rallies', foreignKey: 'serving_team' });
149
- Score.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
150
172
  Team.hasMany(Score, { as: 'Scores', foreignKey: 'team_id' });
151
- SeasonTeams.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
152
- Team.hasMany(SeasonTeams, { as: 'SeasonTeams', foreignKey: 'team_id' });
153
- Match.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
154
- Season.hasMany(Match, { as: 'Matches', foreignKey: 'season_id' });
155
- Team.belongsTo(League, { as: 'league', foreignKey: 'league_id' });
156
- League.hasMany(League, { as: 'Teams', foreignKey: 'league_id' });
157
- Season.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
158
173
  Team.hasMany(Season, { as: 'titles', foreignKey: 'champion' });
159
- Tournament.hasMany(TournamentMatch, { as: 'Matches', foreignKey: 'tournament_id' });
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
+ });
160
181
  Tournament.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
161
- TournamentMatch.belongsTo(Tournament, { as: 'tournament', foreignKey: 'tournament_id' });
182
+ Tournament.hasMany(TournamentMatch, { as: 'TournamentMatches', foreignKey: 'tournament_id' });
183
+ Tournament.belongsToMany(Match, {
184
+ as: 'tournamentMatch',
185
+ through: TournamentMatch,
186
+ foreignKey: 'tournament_id',
187
+ otherKey: 'match_id'
188
+ });
162
189
  TournamentMatch.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
190
+ TournamentMatch.belongsTo(Tournament, { as: 'tournament', foreignKey: 'tournament_id' });
163
191
  return {
164
192
  Block,
165
193
  Coach,
@@ -178,6 +206,7 @@ export function initModels(sequelize) {
178
206
  Score,
179
207
  Season,
180
208
  SeasonTeams,
209
+ SeasonMatches,
181
210
  Serve,
182
211
  Set,
183
212
  Spike,
@@ -15,6 +15,7 @@ import { ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, Receptio
15
15
  import { ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk } from './score';
16
16
  import { SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk } from './season';
17
17
  import { SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk } from './season-teams';
18
+ import { SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesModel, SeasonMatchesPk } from './season-matches';
18
19
  import { ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk } from './serve';
19
20
  import { SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk } from './set';
20
21
  import { SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk } from './spike';
@@ -22,4 +23,4 @@ import { SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId,
22
23
  import { TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk } from './team';
23
24
  import { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk } from './tournament';
24
25
  import { TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentStage } from './tournament-match';
25
- 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, 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, };
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, };
@@ -14,7 +14,8 @@ import { RallyPositionModel } from './rally-position';
14
14
  import { ReceptionModel, } from './reception';
15
15
  import { ScoreModel } from './score';
16
16
  import { SeasonModel } from './season';
17
- import { SeasonTeamsModel, } from './season-teams';
17
+ import { SeasonTeamsModel } from './season-teams';
18
+ import { SeasonMatchesModel } from './season-matches';
18
19
  import { ServeModel } from './serve';
19
20
  import { SetModel } from './set';
20
21
  import { SpikeModel } from './spike';
@@ -22,4 +23,4 @@ import { SubstitutionModel, } from './substitution';
22
23
  import { TeamModel } from './team';
23
24
  import { TournamentModel } from './tournament';
24
25
  import { TournamentMatchModel } from './tournament-match';
25
- export { TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, };
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, };
@@ -3,12 +3,12 @@ import { Model } from 'sequelize';
3
3
  import type { MatchSetAttributes, MatchSetId, MatchSetModel } from './match-set';
4
4
  import type { SeasonId, SeasonModel } from './season';
5
5
  import type { TeamId, TeamModel } from './team';
6
+ import { SeasonMatchesId, SeasonMatchesModel } from './season-matches';
6
7
  export interface MatchAttributes {
7
8
  match_id: string;
8
9
  home_team: string;
9
10
  away_team: string;
10
11
  scheduled_date: string;
11
- season_id: string;
12
12
  is_simulated: boolean;
13
13
  MatchSets?: MatchSetAttributes[];
14
14
  }
@@ -20,9 +20,9 @@ export declare class MatchModel extends Model<MatchAttributes, MatchCreationAttr
20
20
  home_team: string;
21
21
  away_team: string;
22
22
  scheduled_date: string;
23
- season_id: string;
24
23
  is_simulated: boolean;
25
24
  MatchSets: MatchSetModel[];
25
+ season_id: string;
26
26
  getMatchSets: Sequelize.HasManyGetAssociationsMixin<MatchSetModel>;
27
27
  setMatchSets: Sequelize.HasManySetAssociationsMixin<MatchSetModel, MatchSetId>;
28
28
  addMatchSet: Sequelize.HasManyAddAssociationMixin<MatchSetModel, MatchSetId>;
@@ -33,10 +33,6 @@ export declare class MatchModel extends Model<MatchAttributes, MatchCreationAttr
33
33
  hasMatchSet: Sequelize.HasManyHasAssociationMixin<MatchSetModel, MatchSetId>;
34
34
  hasMatchSets: Sequelize.HasManyHasAssociationsMixin<MatchSetModel, MatchSetId>;
35
35
  countMatchSets: Sequelize.HasManyCountAssociationsMixin;
36
- season: SeasonModel;
37
- getSeason: Sequelize.BelongsToGetAssociationMixin<SeasonModel>;
38
- setSeason: Sequelize.BelongsToSetAssociationMixin<SeasonModel, SeasonId>;
39
- createSeason: Sequelize.BelongsToCreateAssociationMixin<SeasonModel>;
40
36
  homeTeam: TeamModel;
41
37
  getHomeTeam: Sequelize.BelongsToGetAssociationMixin<TeamModel>;
42
38
  setHomeTeam: Sequelize.BelongsToSetAssociationMixin<TeamModel, TeamId>;
@@ -45,5 +41,27 @@ export declare class MatchModel extends Model<MatchAttributes, MatchCreationAttr
45
41
  getAwayTeam: Sequelize.BelongsToGetAssociationMixin<TeamModel>;
46
42
  setAwayTeam: Sequelize.BelongsToSetAssociationMixin<TeamModel, TeamId>;
47
43
  createAwayTeam: Sequelize.BelongsToCreateAssociationMixin<TeamModel>;
44
+ season_id_Seasons: SeasonModel[];
45
+ getSeason_id_Seasons: Sequelize.BelongsToManyGetAssociationsMixin<SeasonModel>;
46
+ setSeason_id_Seasons: Sequelize.BelongsToManySetAssociationsMixin<SeasonModel, SeasonId>;
47
+ addSeason_id_Season: Sequelize.BelongsToManyAddAssociationMixin<SeasonModel, SeasonId>;
48
+ addSeason_id_Seasons: Sequelize.BelongsToManyAddAssociationsMixin<SeasonModel, SeasonId>;
49
+ createSeason_id_Season: Sequelize.BelongsToManyCreateAssociationMixin<SeasonModel>;
50
+ removeSeason_id_Season: Sequelize.BelongsToManyRemoveAssociationMixin<SeasonModel, SeasonId>;
51
+ removeSeason_id_Seasons: Sequelize.BelongsToManyRemoveAssociationsMixin<SeasonModel, SeasonId>;
52
+ hasSeason_id_Season: Sequelize.BelongsToManyHasAssociationMixin<SeasonModel, SeasonId>;
53
+ hasSeason_id_Seasons: Sequelize.BelongsToManyHasAssociationsMixin<SeasonModel, SeasonId>;
54
+ countSeason_id_Seasons: Sequelize.BelongsToManyCountAssociationsMixin;
55
+ Season: SeasonMatchesModel[];
56
+ getSeasonMatches: Sequelize.HasManyGetAssociationsMixin<SeasonMatchesModel>;
57
+ setSeasonMatches: Sequelize.HasManySetAssociationsMixin<SeasonMatchesModel, SeasonMatchesId>;
58
+ addSeasonMatch: Sequelize.HasManyAddAssociationMixin<SeasonMatchesModel, SeasonMatchesId>;
59
+ addSeasonMatches: Sequelize.HasManyAddAssociationsMixin<SeasonMatchesModel, SeasonMatchesId>;
60
+ createSeasonMatch: Sequelize.HasManyCreateAssociationMixin<SeasonMatchesModel>;
61
+ removeSeasonMatch: Sequelize.HasManyRemoveAssociationMixin<SeasonMatchesModel, SeasonMatchesId>;
62
+ removeSeasonMatches: Sequelize.HasManyRemoveAssociationsMixin<SeasonMatchesModel, SeasonMatchesId>;
63
+ hasSeasonMatch: Sequelize.HasManyHasAssociationMixin<SeasonMatchesModel, SeasonMatchesId>;
64
+ hasSeasonMatches: Sequelize.HasManyHasAssociationsMixin<SeasonMatchesModel, SeasonMatchesId>;
65
+ countSeasonMatches: Sequelize.HasManyCountAssociationsMixin;
48
66
  static initModel(sequelize: Sequelize.Sequelize): typeof MatchModel;
49
67
  }
@@ -30,14 +30,6 @@ export class MatchModel extends Model {
30
30
  is_simulated: {
31
31
  type: DataTypes.BOOLEAN,
32
32
  allowNull: false
33
- },
34
- season_id: {
35
- type: DataTypes.UUID,
36
- allowNull: false,
37
- references: {
38
- model: 'Season',
39
- key: 'season_id'
40
- }
41
33
  }
42
34
  }, {
43
35
  sequelize,