volleyballsimtypes 0.0.38 → 0.0.40

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 (119) hide show
  1. package/dist/cjs/src/data/index.d.ts +2 -2
  2. package/dist/cjs/src/data/init-models.js +4 -3
  3. package/dist/cjs/src/data/models/block.d.ts +11 -10
  4. package/dist/cjs/src/data/models/coach.d.ts +4 -5
  5. package/dist/cjs/src/data/models/country.d.ts +1 -4
  6. package/dist/cjs/src/data/models/event.d.ts +5 -4
  7. package/dist/cjs/src/data/models/index.d.ts +11 -11
  8. package/dist/cjs/src/data/models/league.d.ts +2 -3
  9. package/dist/cjs/src/data/models/libero-replacement.d.ts +6 -6
  10. package/dist/cjs/src/data/models/match-set-stats.d.ts +1 -2
  11. package/dist/cjs/src/data/models/match-set.d.ts +1 -4
  12. package/dist/cjs/src/data/models/match.d.ts +2 -4
  13. package/dist/cjs/src/data/models/performance-stats.d.ts +1 -1
  14. package/dist/cjs/src/data/models/player.d.ts +1 -16
  15. package/dist/cjs/src/data/models/rally-position.d.ts +4 -4
  16. package/dist/cjs/src/data/models/rally.d.ts +1 -13
  17. package/dist/cjs/src/data/models/reception.d.ts +11 -10
  18. package/dist/cjs/src/data/models/score.d.ts +3 -5
  19. package/dist/cjs/src/data/models/season-matches.d.ts +1 -2
  20. package/dist/cjs/src/data/models/season-teams.d.ts +1 -2
  21. package/dist/cjs/src/data/models/season.d.ts +2 -5
  22. package/dist/cjs/src/data/models/serve.d.ts +11 -10
  23. package/dist/cjs/src/data/models/set.d.ts +11 -10
  24. package/dist/cjs/src/data/models/spike.d.ts +11 -10
  25. package/dist/cjs/src/data/models/substitution.d.ts +3 -4
  26. package/dist/cjs/src/data/models/team.d.ts +4 -11
  27. package/dist/cjs/src/data/models/tournament-match.d.ts +7 -8
  28. package/dist/cjs/src/data/models/tournament-match.js +13 -10
  29. package/dist/cjs/src/data/models/tournament.d.ts +10 -9
  30. package/dist/cjs/src/data/models/tournament.js +2 -4
  31. package/dist/cjs/src/data/transformers/block.js +11 -13
  32. package/dist/cjs/src/data/transformers/coach.js +5 -6
  33. package/dist/cjs/src/data/transformers/court-target.d.ts +3 -3
  34. package/dist/cjs/src/data/transformers/event-type.d.ts +1 -1
  35. package/dist/cjs/src/data/transformers/formation.d.ts +3 -3
  36. package/dist/cjs/src/data/transformers/league.js +3 -4
  37. package/dist/cjs/src/data/transformers/libero-replacement.js +6 -7
  38. package/dist/cjs/src/data/transformers/match-set-stats.js +2 -2
  39. package/dist/cjs/src/data/transformers/match-set.js +8 -10
  40. package/dist/cjs/src/data/transformers/match.js +7 -8
  41. package/dist/cjs/src/data/transformers/player.js +13 -17
  42. package/dist/cjs/src/data/transformers/rally-position.js +3 -3
  43. package/dist/cjs/src/data/transformers/rally.js +32 -41
  44. package/dist/cjs/src/data/transformers/reception.js +8 -10
  45. package/dist/cjs/src/data/transformers/role.d.ts +3 -3
  46. package/dist/cjs/src/data/transformers/score.js +6 -8
  47. package/dist/cjs/src/data/transformers/season.js +10 -12
  48. package/dist/cjs/src/data/transformers/serve.js +8 -10
  49. package/dist/cjs/src/data/transformers/set.js +8 -10
  50. package/dist/cjs/src/data/transformers/spike.js +8 -10
  51. package/dist/cjs/src/data/transformers/stage.d.ts +3 -3
  52. package/dist/cjs/src/data/transformers/substitution.js +6 -7
  53. package/dist/cjs/src/data/transformers/team.js +8 -10
  54. package/dist/cjs/src/data/transformers/tournament-match.js +4 -5
  55. package/dist/cjs/src/data/transformers/tournament.js +4 -5
  56. package/dist/cjs/src/data/transformers/trait.d.ts +4 -4
  57. package/dist/cjs/src/index.d.ts +3 -3
  58. package/dist/cjs/src/index.js +14 -14
  59. package/dist/esm/src/data/index.d.ts +2 -2
  60. package/dist/esm/src/data/index.js +1 -1
  61. package/dist/esm/src/data/init-models.js +4 -3
  62. package/dist/esm/src/data/models/block.d.ts +11 -10
  63. package/dist/esm/src/data/models/coach.d.ts +4 -5
  64. package/dist/esm/src/data/models/country.d.ts +1 -4
  65. package/dist/esm/src/data/models/event.d.ts +5 -4
  66. package/dist/esm/src/data/models/index.d.ts +11 -11
  67. package/dist/esm/src/data/models/index.js +7 -7
  68. package/dist/esm/src/data/models/league.d.ts +2 -3
  69. package/dist/esm/src/data/models/libero-replacement.d.ts +6 -6
  70. package/dist/esm/src/data/models/match-set-stats.d.ts +1 -2
  71. package/dist/esm/src/data/models/match-set.d.ts +1 -4
  72. package/dist/esm/src/data/models/match.d.ts +2 -4
  73. package/dist/esm/src/data/models/performance-stats.d.ts +1 -1
  74. package/dist/esm/src/data/models/player.d.ts +1 -16
  75. package/dist/esm/src/data/models/rally-position.d.ts +4 -4
  76. package/dist/esm/src/data/models/rally.d.ts +1 -13
  77. package/dist/esm/src/data/models/reception.d.ts +11 -10
  78. package/dist/esm/src/data/models/score.d.ts +3 -5
  79. package/dist/esm/src/data/models/season-matches.d.ts +1 -2
  80. package/dist/esm/src/data/models/season-teams.d.ts +1 -2
  81. package/dist/esm/src/data/models/season.d.ts +2 -5
  82. package/dist/esm/src/data/models/serve.d.ts +11 -10
  83. package/dist/esm/src/data/models/set.d.ts +11 -10
  84. package/dist/esm/src/data/models/spike.d.ts +11 -10
  85. package/dist/esm/src/data/models/substitution.d.ts +3 -4
  86. package/dist/esm/src/data/models/team.d.ts +4 -11
  87. package/dist/esm/src/data/models/tournament-match.d.ts +7 -8
  88. package/dist/esm/src/data/models/tournament-match.js +13 -10
  89. package/dist/esm/src/data/models/tournament.d.ts +10 -9
  90. package/dist/esm/src/data/models/tournament.js +2 -4
  91. package/dist/esm/src/data/transformers/block.js +1 -3
  92. package/dist/esm/src/data/transformers/coach.js +1 -2
  93. package/dist/esm/src/data/transformers/court-target.d.ts +3 -3
  94. package/dist/esm/src/data/transformers/event-type.d.ts +1 -1
  95. package/dist/esm/src/data/transformers/formation.d.ts +3 -3
  96. package/dist/esm/src/data/transformers/league.js +1 -2
  97. package/dist/esm/src/data/transformers/libero-replacement.js +1 -2
  98. package/dist/esm/src/data/transformers/match-set-stats.js +1 -1
  99. package/dist/esm/src/data/transformers/match-set.js +1 -3
  100. package/dist/esm/src/data/transformers/match.js +1 -2
  101. package/dist/esm/src/data/transformers/player.js +1 -5
  102. package/dist/esm/src/data/transformers/rally-position.js +1 -1
  103. package/dist/esm/src/data/transformers/rally.js +1 -10
  104. package/dist/esm/src/data/transformers/reception.js +1 -3
  105. package/dist/esm/src/data/transformers/role.d.ts +3 -3
  106. package/dist/esm/src/data/transformers/score.js +1 -3
  107. package/dist/esm/src/data/transformers/season.js +1 -3
  108. package/dist/esm/src/data/transformers/serve.js +1 -3
  109. package/dist/esm/src/data/transformers/set.js +1 -3
  110. package/dist/esm/src/data/transformers/spike.js +1 -3
  111. package/dist/esm/src/data/transformers/stage.d.ts +3 -3
  112. package/dist/esm/src/data/transformers/substitution.js +1 -2
  113. package/dist/esm/src/data/transformers/team.js +1 -3
  114. package/dist/esm/src/data/transformers/tournament-match.js +1 -2
  115. package/dist/esm/src/data/transformers/tournament.js +2 -3
  116. package/dist/esm/src/data/transformers/trait.d.ts +4 -4
  117. package/dist/esm/src/index.d.ts +3 -3
  118. package/dist/esm/src/index.js +2 -2
  119. package/package.json +4 -1
@@ -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, BlockFailure, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, BlockType, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, CourtPositionType, CourtTarget, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, EventType, Formation, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, LiberoReplacementType, 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, ReceptionFailure, ReceptionId, ReceptionModel, ReceptionPk, ReceptionType, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesModel, SeasonMatchesPk, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeFailure, ServeId, ServeModel, ServePk, ServeType, SetAttributes, SetCreationAttributes, SetFailure, SetId, SetModel, SetPk, SetType, Side, SpikeAttributes, SpikeCreationAttributes, SpikeFailure, SpikeId, SpikeModel, SpikePk, SpikeType, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentModel, TournamentOptionalAttributes, 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, 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, SpikeFailure, SetFailure, EventType, CourtTarget, ServeFailure, TournamentOptionalAttributes, LiberoReplacementType, CourtPositionType, SpikeType, SetType, BlockType, BlockFailure, ReceptionFailure, ServeType, ReceptionType, Side, Formation };
@@ -168,6 +168,7 @@ function initModels(sequelize) {
168
168
  Team.hasMany(Rally, { as: 'Rallies', foreignKey: 'serving_team' });
169
169
  Team.hasMany(Score, { as: 'Scores', foreignKey: 'team_id' });
170
170
  Team.hasMany(Season, { as: 'titles', foreignKey: 'champion' });
171
+ Team.hasMany(Tournament, { as: 'Tournaments', foreignKey: 'champion' });
171
172
  Team.hasMany(SeasonTeams, { as: 'SeasonTeams', foreignKey: 'team_id' });
172
173
  Team.belongsToMany(Season, {
173
174
  as: 'season_id_Seasons',
@@ -175,10 +176,10 @@ function initModels(sequelize) {
175
176
  foreignKey: 'team_id',
176
177
  otherKey: 'season_id'
177
178
  });
178
- Tournament.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
179
+ Tournament.belongsTo(Team, { as: 'champion_Team', foreignKey: 'champion' });
179
180
  Tournament.hasMany(TournamentMatch, { as: 'TournamentMatches', foreignKey: 'tournament_id' });
180
181
  TournamentMatch.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
181
- TournamentMatch.belongsTo(Tournament, { as: 'tournamentMatch', foreignKey: 'tournament_id' });
182
+ TournamentMatch.belongsTo(Tournament, { as: 'tournament', foreignKey: 'tournament_id' });
182
183
  return {
183
184
  Block,
184
185
  Coach,
@@ -204,7 +205,7 @@ function initModels(sequelize) {
204
205
  Substitution,
205
206
  Team,
206
207
  Tournament,
207
- TournamentMatch: TournamentMatch
208
+ TournamentMatch
208
209
  };
209
210
  }
210
211
  exports.initModels = initModels;
@@ -1,14 +1,13 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
- import type { PlayerId, PlayerModel } from './player';
4
- import type { RallyId, RallyModel } from './rally';
3
+ import type { EventType, PlayerId, PlayerModel, RallyId, RallyModel, CourtTarget } from '.';
5
4
  export interface BlockAttributes {
6
5
  event_id: string;
7
6
  rally_id: string;
8
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
9
- target: 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
10
- type: 'NO_BLOCKER' | 'SINGLE' | 'DOUBLE' | 'TRIPLE';
11
- failure: 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'WIPE' | 'TOOL';
7
+ event_type: EventType;
8
+ target: CourtTarget;
9
+ type: BlockType;
10
+ failure: BlockFailure;
12
11
  order: number;
13
12
  player_id: string;
14
13
  blocker_1?: string;
@@ -17,6 +16,8 @@ export interface BlockAttributes {
17
16
  modifier: number;
18
17
  score: number;
19
18
  }
19
+ export type BlockType = 'NO_BLOCKER' | 'SINGLE' | 'DOUBLE' | 'TRIPLE';
20
+ export type BlockFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'WIPE' | 'TOOL';
20
21
  export type BlockPk = 'event_id';
21
22
  export type BlockId = BlockModel[BlockPk];
22
23
  export type BlockOptionalAttributes = 'blocker_1' | 'blocker_2' | 'blocker_3';
@@ -24,10 +25,10 @@ export type BlockCreationAttributes = Optional<BlockAttributes, BlockOptionalAtt
24
25
  export declare class BlockModel extends Model<BlockAttributes, BlockCreationAttributes> implements BlockAttributes {
25
26
  event_id: string;
26
27
  rally_id: string;
27
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
28
- target: 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
29
- type: 'NO_BLOCKER' | 'SINGLE' | 'DOUBLE' | 'TRIPLE';
30
- failure: 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'WIPE' | 'TOOL';
28
+ event_type: EventType;
29
+ target: CourtTarget;
30
+ type: BlockType;
31
+ failure: BlockFailure;
31
32
  order: number;
32
33
  player_id: string;
33
34
  blocker_1?: string;
@@ -1,10 +1,9 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
- import type { CountryId, CountryModel } from './country';
4
- import type { TeamId, TeamModel } from './team';
3
+ import type { CountryId, CountryModel, TeamId, TeamModel } from '.';
5
4
  export interface CoachAttributes {
6
5
  coach_id: string;
7
- formation: formation;
6
+ formation: Formation;
8
7
  substitution_tolerance: number;
9
8
  first_name: string;
10
9
  last_name: string;
@@ -12,12 +11,12 @@ export interface CoachAttributes {
12
11
  }
13
12
  export type CoachPk = 'coach_id';
14
13
  export type CoachId = CoachModel[CoachPk];
15
- export type formation = '4-2' | '6-2' | '5-1';
14
+ export type Formation = '4-2' | '6-2' | '5-1';
16
15
  export type CoachOptionalAttributes = 'substitution_tolerance';
17
16
  export type CoachCreationAttributes = Optional<CoachAttributes, CoachOptionalAttributes>;
18
17
  export declare class CoachModel extends Model<CoachAttributes, CoachCreationAttributes> implements CoachAttributes {
19
18
  coach_id: string;
20
- formation: formation;
19
+ formation: Formation;
21
20
  substitution_tolerance: number;
22
21
  first_name: string;
23
22
  last_name: string;
@@ -1,9 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { CoachId, CoachModel } from './coach';
4
- import type { LeagueId, LeagueModel } from './league';
5
- import type { PlayerId, PlayerModel } from './player';
6
- import type { TeamId, TeamModel } from './team';
3
+ import type { CoachId, CoachModel, LeagueId, LeagueModel, PlayerId, PlayerModel, TeamId, TeamModel } from '.';
7
4
  export interface CountryAttributes {
8
5
  country_id: string;
9
6
  name: string;
@@ -1,21 +1,22 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { PlayerId, PlayerModel } from './player';
4
- import type { RallyId, RallyModel } from './rally';
3
+ import type { PlayerId, PlayerModel, RallyId, RallyModel } from '.';
5
4
  export interface EventAttributes {
6
5
  event_id: string;
7
6
  rally_id: string;
8
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
7
+ event_type: EventType;
9
8
  order: number;
10
9
  player_id: string;
11
10
  }
11
+ export type EventType = 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
12
+ export type CourtTarget = 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
12
13
  export type EventPk = 'event_id';
13
14
  export type EventId = EventModel[EventPk];
14
15
  export type EventCreationAttributes = EventAttributes;
15
16
  export declare class EventModel extends Model<EventAttributes, EventCreationAttributes> implements EventAttributes {
16
17
  event_id: string;
17
18
  rally_id: string;
18
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
19
+ event_type: EventType;
19
20
  order: number;
20
21
  player_id: string;
21
22
  player: PlayerModel;
@@ -1,26 +1,26 @@
1
- import { BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk } from './block';
2
- import { CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk } from './coach';
1
+ import { BlockAttributes, BlockCreationAttributes, BlockFailure, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, BlockType } from './block';
2
+ import { CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, Formation } from './coach';
3
3
  import { CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk } from './country';
4
- import { EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk } from './event';
4
+ import { EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, EventType, CourtTarget } from './event';
5
5
  import { LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk } from './league';
6
- import { LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk } from './libero-replacement';
6
+ import { LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, LiberoReplacementType } from './libero-replacement';
7
7
  import { MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk } from './match';
8
8
  import { MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk } from './match-set';
9
9
  import { MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk } from './match-set-stats';
10
10
  import { PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk } from './performance-stats';
11
11
  import { PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RoleType, TraitType } from './player';
12
12
  import { RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk } from './rally';
13
- import { RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk } from './rally-position';
14
- import { ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk } from './reception';
13
+ import { CourtPositionType, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, Side } from './rally-position';
14
+ import { ReceptionAttributes, ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionModel, ReceptionPk, ReceptionType } from './reception';
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
18
  import { SeasonMatchesAttributes, SeasonMatchesCreationAttributes, SeasonMatchesId, SeasonMatchesModel, SeasonMatchesPk } from './season-matches';
19
- import { ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk } from './serve';
20
- import { SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk } from './set';
21
- import { SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk } from './spike';
19
+ import { ServeAttributes, ServeCreationAttributes, ServeFailure, ServeId, ServeModel, ServePk, ServeType } from './serve';
20
+ import { SetAttributes, SetCreationAttributes, SetFailure, SetId, SetModel, SetPk, SetType } from './set';
21
+ import { SpikeAttributes, SpikeCreationAttributes, SpikeFailure, SpikeId, SpikeModel, SpikePk, SpikeType } from './spike';
22
22
  import { SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk } from './substitution';
23
23
  import { TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk } from './team';
24
- import { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk } from './tournament';
24
+ import { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentOptionalAttributes, TournamentPk } from './tournament';
25
25
  import { TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentStage } from './tournament-match';
26
- export { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, 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, };
26
+ export { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, 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, EventType, BlockFailure, BlockType, Formation, ServeFailure, SpikeFailure, SpikeType, SetType, ReceptionFailure, SetFailure, ServeType, ReceptionType, CourtPositionType, TournamentOptionalAttributes, Side, CourtTarget, LiberoReplacementType };
@@ -1,8 +1,7 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { CountryAttributes, CountryId, CountryModel } from './country';
4
- import type { SeasonAttributes, SeasonId, SeasonModel } from './season';
5
- import { TeamAttributes, TeamId, TeamModel } from './team';
3
+ import type { CountryAttributes, CountryId, CountryModel, SeasonAttributes, SeasonId, SeasonModel } from '.';
4
+ import { TeamAttributes, TeamId, TeamModel } from '.';
6
5
  export interface LeagueAttributes {
7
6
  league_id: string;
8
7
  country_id: string;
@@ -1,24 +1,24 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { PlayerId, PlayerModel } from './player';
4
- import type { RallyId, RallyModel } from './rally';
3
+ import type { EventType, PlayerId, PlayerModel, RallyId, RallyModel } from '.';
5
4
  export interface LiberoReplacementAttributes {
6
5
  event_id: string;
7
6
  rally_id: string;
8
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
9
- type: 'LIBERO_IN' | 'LIBERO_OUT';
7
+ event_type: EventType;
8
+ type: LiberoReplacementType;
10
9
  libero: string;
11
10
  order: number;
12
11
  player_id: string;
13
12
  }
13
+ export type LiberoReplacementType = 'LIBERO_IN' | 'LIBERO_OUT';
14
14
  export type LiberoReplacementPk = 'event_id';
15
15
  export type LiberoReplacementId = LiberoReplacementModel[LiberoReplacementPk];
16
16
  export type LiberoReplacementCreationAttributes = LiberoReplacementAttributes;
17
17
  export declare class LiberoReplacementModel extends Model<LiberoReplacementAttributes, LiberoReplacementCreationAttributes> implements LiberoReplacementAttributes {
18
18
  event_id: string;
19
19
  rally_id: string;
20
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
21
- type: 'LIBERO_IN' | 'LIBERO_OUT';
20
+ event_type: EventType;
21
+ type: LiberoReplacementType;
22
22
  libero: string;
23
23
  order: number;
24
24
  player_id: string;
@@ -1,7 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
- import type { MatchSetId, MatchSetModel } from './match-set';
4
- import type { PlayerId, PlayerModel } from './player';
3
+ import type { MatchSetId, MatchSetModel, PlayerId, PlayerModel } from '.';
5
4
  export interface MatchSetStatsAttributes {
6
5
  player_id: string;
7
6
  match_set_id: string;
@@ -1,9 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
- import type { MatchId, MatchModel } from './match';
4
- import type { MatchSetStatsAttributes, MatchSetStatsId, MatchSetStatsModel } from './match-set-stats';
5
- import type { PlayerId, PlayerModel } from './player';
6
- import type { RallyAttributes, RallyId, RallyModel } from './rally';
3
+ import type { MatchId, MatchModel, MatchSetStatsAttributes, MatchSetStatsId, MatchSetStatsModel, PlayerId, PlayerModel, RallyAttributes, RallyId, RallyModel } from '.';
7
4
  export interface MatchSetAttributes {
8
5
  match_set_id: string;
9
6
  match_id: string;
@@ -1,9 +1,7 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { MatchSetAttributes, MatchSetId, MatchSetModel } from './match-set';
4
- import type { SeasonId, SeasonModel } from './season';
5
- import type { TeamId, TeamModel } from './team';
6
- import { SeasonMatchesId, SeasonMatchesModel } from './season-matches';
3
+ import type { MatchSetAttributes, MatchSetId, MatchSetModel, SeasonId, SeasonModel, TeamId, TeamModel } from '.';
4
+ import { SeasonMatchesId, SeasonMatchesModel } from '.';
7
5
  export interface MatchAttributes {
8
6
  match_id: string;
9
7
  home_team: string;
@@ -1,6 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
- import type { PlayerId, PlayerModel } from './player';
3
+ import type { PlayerId, PlayerModel } from '.';
4
4
  export interface PerformanceStatsAttributes {
5
5
  player_id: string;
6
6
  setting: number;
@@ -1,21 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { BlockId, BlockModel } from './block';
4
- import type { CountryId, CountryModel } from './country';
5
- import type { EventId, EventModel } from './event';
6
- import type { LiberoReplacementId, LiberoReplacementModel } from './libero-replacement';
7
- import type { MatchSetId, MatchSetModel } from './match-set';
8
- import type { MatchSetStatsAttributes, MatchSetStatsId, MatchSetStatsModel } from './match-set-stats';
9
- import type { PerformanceStatsAttributes, PerformanceStatsId, PerformanceStatsModel } from './performance-stats';
10
- import type { RallyId, RallyModel } from './rally';
11
- import type { RallyPositionId, RallyPositionModel } from './rally-position';
12
- import type { ReceptionId, ReceptionModel } from './reception';
13
- import type { ScoreId, ScoreModel } from './score';
14
- import type { ServeId, ServeModel } from './serve';
15
- import type { SetId, SetModel } from './set';
16
- import type { SpikeId, SpikeModel } from './spike';
17
- import type { SubstitutionId, SubstitutionModel } from './substitution';
18
- import type { TeamId, TeamModel } from './team';
3
+ import type { BlockId, BlockModel, CountryId, CountryModel, EventId, EventModel, LiberoReplacementId, LiberoReplacementModel, MatchSetId, MatchSetModel, MatchSetStatsAttributes, MatchSetStatsId, MatchSetStatsModel, PerformanceStatsAttributes, PerformanceStatsId, PerformanceStatsModel, RallyId, RallyModel, RallyPositionId, RallyPositionModel, ReceptionId, ReceptionModel, ScoreId, ScoreModel, ServeId, ServeModel, SetId, SetModel, SpikeId, SpikeModel, SubstitutionId, SubstitutionModel, TeamId, TeamModel } from '.';
19
4
  export interface PlayerAttributes {
20
5
  player_id: string;
21
6
  jersey_number: number;
@@ -1,21 +1,21 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { PlayerId, PlayerModel } from './player';
4
- import type { RallyId, RallyModel } from './rally';
3
+ import type { PlayerId, PlayerModel, RallyId, RallyModel } from '.';
5
4
  export interface RallyPositionAttributes {
6
5
  player_id: string;
7
6
  rally_id: string;
8
- side: 'Home' | 'Away';
7
+ side: Side;
9
8
  court_position: CourtPositionType;
10
9
  }
11
10
  export type RallyPositionPk = 'player_id' | 'rally_id';
12
11
  export type CourtPositionType = 'NOT_IN_COURT' | 'LIBERO_ZONE' | 'LEFT_FRONT' | 'MIDDLE_FRONT' | 'RIGHT_FRONT' | 'LEFT_BACK' | 'MIDDLE_BACK' | 'RIGHT_BACK';
12
+ export type Side = 'Home' | 'Away';
13
13
  export type RallyPositionId = RallyPositionModel[RallyPositionPk];
14
14
  export type RallyPositionCreationAttributes = RallyPositionAttributes;
15
15
  export declare class RallyPositionModel extends Model<RallyPositionAttributes, RallyPositionCreationAttributes> implements RallyPositionAttributes {
16
16
  player_id: string;
17
17
  rally_id: string;
18
- side: 'Home' | 'Away';
18
+ side: Side;
19
19
  court_position: CourtPositionType;
20
20
  player: PlayerModel;
21
21
  getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
@@ -1,18 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { BlockAttributes, BlockId, BlockModel } from './block';
4
- import type { EventId, EventModel } from './event';
5
- import type { LiberoReplacementAttributes, LiberoReplacementId, LiberoReplacementModel } from './libero-replacement';
6
- import type { MatchSetId, MatchSetModel } from './match-set';
7
- import type { PlayerId, PlayerModel } from './player';
8
- import type { RallyPositionAttributes, RallyPositionId, RallyPositionModel } from './rally-position';
9
- import type { ReceptionAttributes, ReceptionId, ReceptionModel } from './reception';
10
- import type { ScoreAttributes, ScoreId, ScoreModel } from './score';
11
- import type { ServeAttributes, ServeId, ServeModel } from './serve';
12
- import type { SetAttributes, SetId, SetModel } from './set';
13
- import type { SpikeAttributes, SpikeId, SpikeModel } from './spike';
14
- import type { SubstitutionAttributes, SubstitutionId, SubstitutionModel } from './substitution';
15
- import type { TeamId, TeamModel } from './team';
3
+ import type { BlockAttributes, BlockId, BlockModel, EventId, EventModel, LiberoReplacementAttributes, LiberoReplacementId, LiberoReplacementModel, MatchSetId, MatchSetModel, PlayerId, PlayerModel, RallyPositionAttributes, RallyPositionId, RallyPositionModel, ReceptionAttributes, ReceptionId, ReceptionModel, ScoreAttributes, ScoreId, ScoreModel, ServeAttributes, ServeId, ServeModel, SetAttributes, SetId, SetModel, SpikeAttributes, SpikeId, SpikeModel, SubstitutionAttributes, SubstitutionId, SubstitutionModel, TeamId, TeamModel } from '.';
16
4
  export interface RallyAttributes {
17
5
  rally_id: string;
18
6
  match_set_id: string;
@@ -1,29 +1,30 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { PlayerId, PlayerModel } from './player';
4
- import type { RallyId, RallyModel } from './rally';
3
+ import type { EventType, PlayerId, PlayerModel, RallyId, RallyModel, CourtTarget } from '.';
5
4
  export interface ReceptionAttributes {
6
5
  event_id: string;
7
6
  rally_id: string;
8
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
9
- failure: 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'BAD_PASS';
10
- type: 'DIG' | 'OVERHAND' | 'ONE_HAND' | 'OTHER_BODY_PART';
11
- target: 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
7
+ event_type: EventType;
8
+ failure: ReceptionFailure;
9
+ type: ReceptionType;
10
+ target: CourtTarget;
12
11
  order: number;
13
12
  player_id: string;
14
13
  modifier: number;
15
14
  score: number;
16
15
  }
16
+ export type ReceptionFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'BAD_PASS';
17
+ export type ReceptionType = 'DIG' | 'OVERHAND' | 'ONE_HAND' | 'OTHER_BODY_PART';
17
18
  export type ReceptionPk = 'event_id';
18
19
  export type ReceptionId = ReceptionModel[ReceptionPk];
19
20
  export type ReceptionCreationAttributes = ReceptionAttributes;
20
21
  export declare class ReceptionModel extends Model<ReceptionAttributes, ReceptionCreationAttributes> implements ReceptionAttributes {
21
22
  event_id: string;
22
23
  rally_id: string;
23
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
24
- failure: 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'BAD_PASS';
25
- type: 'DIG' | 'OVERHAND' | 'ONE_HAND' | 'OTHER_BODY_PART';
26
- target: 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
24
+ event_type: EventType;
25
+ failure: ReceptionFailure;
26
+ type: ReceptionType;
27
+ target: CourtTarget;
27
28
  order: number;
28
29
  player_id: string;
29
30
  modifier: number;
@@ -1,12 +1,10 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { PlayerId, PlayerModel } from './player';
4
- import type { RallyId, RallyModel } from './rally';
5
- import type { TeamId, TeamModel } from './team';
3
+ import type { EventType, PlayerId, PlayerModel, RallyId, RallyModel, TeamId, TeamModel } from '.';
6
4
  export interface ScoreAttributes {
7
5
  event_id: string;
8
6
  rally_id: string;
9
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
7
+ event_type: EventType;
10
8
  team_id: string;
11
9
  order: number;
12
10
  player_id: string;
@@ -17,7 +15,7 @@ export type ScoreCreationAttributes = ScoreAttributes;
17
15
  export declare class ScoreModel extends Model<ScoreAttributes, ScoreCreationAttributes> implements ScoreAttributes {
18
16
  event_id: string;
19
17
  rally_id: string;
20
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
18
+ event_type: EventType;
21
19
  team_id: string;
22
20
  order: number;
23
21
  player_id: string;
@@ -1,7 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { SeasonId, SeasonModel } from './season';
4
- import type { MatchId, MatchModel } from './match';
3
+ import type { MatchId, MatchModel, SeasonId, SeasonModel } from '.';
5
4
  export interface SeasonMatchesAttributes {
6
5
  season_id: string;
7
6
  match_id: string;
@@ -1,7 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { SeasonId, SeasonModel } from './season';
4
- import type { TeamId, TeamModel } from './team';
3
+ import type { SeasonId, SeasonModel, TeamId, TeamModel } from '.';
5
4
  export interface SeasonTeamsAttributes {
6
5
  season_id: string;
7
6
  team_id: string;
@@ -1,10 +1,7 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { LeagueAttributes, LeagueId, LeagueModel } from './league';
4
- import type { MatchAttributes, MatchId, MatchModel } from './match';
5
- import type { SeasonTeamsId, SeasonTeamsModel } from './season-teams';
6
- import type { TeamAttributes, TeamId, TeamModel } from './team';
7
- import { SeasonMatchesId, SeasonMatchesModel } from './season-matches';
3
+ import type { LeagueAttributes, LeagueId, LeagueModel, MatchAttributes, MatchId, MatchModel, SeasonTeamsId, SeasonTeamsModel, TeamAttributes, TeamId, TeamModel } from '.';
4
+ import { SeasonMatchesId, SeasonMatchesModel } from '.';
8
5
  export interface SeasonAttributes {
9
6
  season_id: string;
10
7
  iteration: number;
@@ -1,33 +1,34 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { PlayerId, PlayerModel } from './player';
4
- import type { RallyId, RallyModel } from './rally';
3
+ import type { EventType, PlayerId, PlayerModel, RallyId, RallyModel, CourtTarget } from '.';
5
4
  export interface ServeAttributes {
6
5
  event_id: string;
7
6
  rally_id: string;
8
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
9
- failure: 'NO_FAILURE' | 'FAULT' | 'MISS' | 'NET' | 'OUT_OF_BOUNDS';
10
- target: 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
7
+ event_type: EventType;
8
+ failure: ServeFailure;
9
+ target: CourtTarget;
11
10
  order: number;
12
11
  player_id: string;
13
12
  modifier: number;
14
13
  score: number;
15
- type: 'UNDERHAND' | 'OVERHAND_TOPSPIN' | 'OVERHAND_FLOAT' | 'JUMP_TOPSPIN' | 'JUMP_FLOAT';
14
+ type: ServeType;
16
15
  }
16
+ export type ServeFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'NET' | 'OUT_OF_BOUNDS';
17
+ export type ServeType = 'UNDERHAND' | 'OVERHAND_TOPSPIN' | 'OVERHAND_FLOAT' | 'JUMP_TOPSPIN' | 'JUMP_FLOAT';
17
18
  export type ServePk = 'event_id';
18
19
  export type ServeId = ServeModel[ServePk];
19
20
  export type ServeCreationAttributes = ServeAttributes;
20
21
  export declare class ServeModel extends Model<ServeAttributes, ServeCreationAttributes> implements ServeAttributes {
21
22
  event_id: string;
22
23
  rally_id: string;
23
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
24
- failure: 'NO_FAILURE' | 'FAULT' | 'MISS' | 'NET' | 'OUT_OF_BOUNDS';
25
- target: 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
24
+ event_type: EventType;
25
+ failure: ServeFailure;
26
+ target: CourtTarget;
26
27
  order: number;
27
28
  player_id: string;
28
29
  modifier: number;
29
30
  score: number;
30
- type: 'UNDERHAND' | 'OVERHAND_TOPSPIN' | 'OVERHAND_FLOAT' | 'JUMP_TOPSPIN' | 'JUMP_FLOAT';
31
+ type: ServeType;
31
32
  player: PlayerModel;
32
33
  getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
33
34
  setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
@@ -1,29 +1,30 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { PlayerId, PlayerModel } from './player';
4
- import type { RallyId, RallyModel } from './rally';
3
+ import type { EventType, PlayerId, PlayerModel, RallyId, RallyModel, CourtTarget } from '.';
5
4
  export interface SetAttributes {
6
5
  event_id: string;
7
6
  rally_id: string;
8
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
9
- failure: 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'BAD_PASS';
10
- type: 'OVERHAND' | 'UNDERHAND' | 'SPIKE' | 'DUMP';
11
- target: 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
7
+ event_type: EventType;
8
+ failure: SetFailure;
9
+ type: SetType;
10
+ target: CourtTarget;
12
11
  order: number;
13
12
  player_id: string;
14
13
  modifier: number;
15
14
  score: number;
16
15
  }
16
+ export type SetFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'BAD_PASS';
17
+ export type SetType = 'OVERHAND' | 'UNDERHAND' | 'SPIKE' | 'DUMP';
17
18
  export type SetPk = 'event_id';
18
19
  export type SetId = SetModel[SetPk];
19
20
  export type SetCreationAttributes = SetAttributes;
20
21
  export declare class SetModel extends Model<SetAttributes, SetCreationAttributes> implements SetAttributes {
21
22
  event_id: string;
22
23
  rally_id: string;
23
- event_type: 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
24
- failure: 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'BAD_PASS';
25
- type: 'OVERHAND' | 'UNDERHAND' | 'SPIKE' | 'DUMP';
26
- target: 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
24
+ event_type: EventType;
25
+ failure: SetFailure;
26
+ type: SetType;
27
+ target: CourtTarget;
27
28
  order: number;
28
29
  player_id: string;
29
30
  modifier: number;