volleyballsimtypes 0.0.184 → 0.0.185

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.
@@ -83,16 +83,16 @@ function initModels(sequelize) {
83
83
  otherKey: 'player_id'
84
84
  });
85
85
  MatchSet.belongsToMany(Player, {
86
- as: 'SetStatsPlayers',
86
+ as: 'BoxScorePlayers',
87
87
  through: BoxScore,
88
88
  foreignKey: 'match_set_id',
89
89
  otherKey: 'player_id'
90
90
  });
91
- MatchSet.hasMany(BoxScore, { as: 'BoxScore', foreignKey: 'match_set_id' });
91
+ MatchSet.hasMany(BoxScore, { as: 'BoxScores', foreignKey: 'match_set_id' });
92
92
  MatchSet.hasMany(Rally, { as: 'Rallies', foreignKey: 'match_set_id' });
93
93
  MatchSet.hasMany(SetPosition, { as: 'SetPositions', foreignKey: 'match_set_id' });
94
- BoxScore.belongsTo(MatchSet, { as: 'matchSet', foreignKey: 'match_set_id' });
95
- BoxScore.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
94
+ BoxScore.belongsTo(MatchSet, { as: 'MatchSet', foreignKey: 'match_set_id' });
95
+ BoxScore.belongsTo(Player, { as: 'Player', foreignKey: 'player_id' });
96
96
  PerformanceStats.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
97
97
  Player.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
98
98
  Player.belongsToMany(MatchSet, {
@@ -102,7 +102,7 @@ function initModels(sequelize) {
102
102
  otherKey: 'match_set_id'
103
103
  });
104
104
  Player.belongsToMany(MatchSet, {
105
- as: 'StatsMatchSets',
105
+ as: 'BoxScoreMatchSets',
106
106
  through: BoxScore,
107
107
  foreignKey: 'player_id',
108
108
  otherKey: 'match_set_id'
@@ -113,7 +113,7 @@ function initModels(sequelize) {
113
113
  foreignKey: 'player_id',
114
114
  otherKey: 'team_id'
115
115
  });
116
- Player.hasMany(BoxScore, { as: 'BoxScore', foreignKey: 'player_id' });
116
+ Player.hasMany(BoxScore, { as: 'BoxScores', foreignKey: 'player_id' });
117
117
  Player.hasMany(PlayerTeam, { as: 'PlayerTeams', foreignKey: 'player_id' });
118
118
  Player.hasMany(SetPosition, { as: 'SetPositions', foreignKey: 'player_id' });
119
119
  Player.hasOne(DraftPick, { as: 'DraftPick', foreignKey: 'player_id' });
@@ -80,16 +80,16 @@ export function initModels(sequelize) {
80
80
  otherKey: 'player_id'
81
81
  });
82
82
  MatchSet.belongsToMany(Player, {
83
- as: 'SetStatsPlayers',
83
+ as: 'BoxScorePlayers',
84
84
  through: BoxScore,
85
85
  foreignKey: 'match_set_id',
86
86
  otherKey: 'player_id'
87
87
  });
88
- MatchSet.hasMany(BoxScore, { as: 'BoxScore', foreignKey: 'match_set_id' });
88
+ MatchSet.hasMany(BoxScore, { as: 'BoxScores', foreignKey: 'match_set_id' });
89
89
  MatchSet.hasMany(Rally, { as: 'Rallies', foreignKey: 'match_set_id' });
90
90
  MatchSet.hasMany(SetPosition, { as: 'SetPositions', foreignKey: 'match_set_id' });
91
- BoxScore.belongsTo(MatchSet, { as: 'matchSet', foreignKey: 'match_set_id' });
92
- BoxScore.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
91
+ BoxScore.belongsTo(MatchSet, { as: 'MatchSet', foreignKey: 'match_set_id' });
92
+ BoxScore.belongsTo(Player, { as: 'Player', foreignKey: 'player_id' });
93
93
  PerformanceStats.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
94
94
  Player.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
95
95
  Player.belongsToMany(MatchSet, {
@@ -99,7 +99,7 @@ export function initModels(sequelize) {
99
99
  otherKey: 'match_set_id'
100
100
  });
101
101
  Player.belongsToMany(MatchSet, {
102
- as: 'StatsMatchSets',
102
+ as: 'BoxScoreMatchSets',
103
103
  through: BoxScore,
104
104
  foreignKey: 'player_id',
105
105
  otherKey: 'match_set_id'
@@ -110,7 +110,7 @@ export function initModels(sequelize) {
110
110
  foreignKey: 'player_id',
111
111
  otherKey: 'team_id'
112
112
  });
113
- Player.hasMany(BoxScore, { as: 'BoxScore', foreignKey: 'player_id' });
113
+ Player.hasMany(BoxScore, { as: 'BoxScores', foreignKey: 'player_id' });
114
114
  Player.hasMany(PlayerTeam, { as: 'PlayerTeams', foreignKey: 'player_id' });
115
115
  Player.hasMany(SetPosition, { as: 'SetPositions', foreignKey: 'player_id' });
116
116
  Player.hasOne(DraftPick, { as: 'DraftPick', foreignKey: 'player_id' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volleyballsimtypes",
3
- "version": "0.0.184",
3
+ "version": "0.0.185",
4
4
  "description": "vbsim types",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",