volleyballsimtypes 0.0.7 → 0.0.8

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 (132) hide show
  1. package/package.json +5 -5
  2. package/src/data/index.ts +0 -2
  3. package/src/data/models/block.ts +0 -159
  4. package/src/data/models/coach.ts +0 -94
  5. package/src/data/models/country.ts +0 -105
  6. package/src/data/models/event.ts +0 -83
  7. package/src/data/models/index.ts +0 -22
  8. package/src/data/models/league.ts +0 -90
  9. package/src/data/models/libero-replacement.ts +0 -104
  10. package/src/data/models/match-set-stats.ts +0 -204
  11. package/src/data/models/match-set.ts +0 -152
  12. package/src/data/models/match.ts +0 -106
  13. package/src/data/models/performance-stats.ts +0 -136
  14. package/src/data/models/player.ts +0 -370
  15. package/src/data/models/rally-position.ts +0 -79
  16. package/src/data/models/rally.ts +0 -229
  17. package/src/data/models/reception.ts +0 -113
  18. package/src/data/models/score.ts +0 -99
  19. package/src/data/models/season-teams.ts +0 -67
  20. package/src/data/models/season.ts +0 -103
  21. package/src/data/models/serve.ts +0 -113
  22. package/src/data/models/set.ts +0 -113
  23. package/src/data/models/spike.ts +0 -113
  24. package/src/data/models/substitution.ts +0 -98
  25. package/src/data/models/team.ts +0 -193
  26. package/src/data/transformers/block.ts +0 -117
  27. package/src/data/transformers/coach.ts +0 -33
  28. package/src/data/transformers/country.ts +0 -23
  29. package/src/data/transformers/court-position.ts +0 -43
  30. package/src/data/transformers/court-target.ts +0 -58
  31. package/src/data/transformers/event-type.ts +0 -35
  32. package/src/data/transformers/formation.ts +0 -16
  33. package/src/data/transformers/index.ts +0 -27
  34. package/src/data/transformers/league.ts +0 -26
  35. package/src/data/transformers/libero-replacement.ts +0 -62
  36. package/src/data/transformers/match-set-stats.ts +0 -101
  37. package/src/data/transformers/match-set.ts +0 -59
  38. package/src/data/transformers/match.ts +0 -48
  39. package/src/data/transformers/performance-stats.ts +0 -40
  40. package/src/data/transformers/player.ts +0 -109
  41. package/src/data/transformers/rally-position.ts +0 -24
  42. package/src/data/transformers/rally.ts +0 -139
  43. package/src/data/transformers/reception.ts +0 -98
  44. package/src/data/transformers/role.ts +0 -31
  45. package/src/data/transformers/score.ts +0 -43
  46. package/src/data/transformers/season.ts +0 -42
  47. package/src/data/transformers/serve.ts +0 -100
  48. package/src/data/transformers/set.ts +0 -98
  49. package/src/data/transformers/spike.ts +0 -102
  50. package/src/data/transformers/substitution.ts +0 -42
  51. package/src/data/transformers/team.ts +0 -45
  52. package/src/data/transformers/trait.ts +0 -37
  53. package/src/index.ts +0 -7
  54. package/src/routing/events.ts +0 -60
  55. package/src/routing/index.ts +0 -5
  56. package/src/routing/league.ts +0 -15
  57. package/src/routing/match.ts +0 -52
  58. package/src/routing/player.ts +0 -24
  59. package/src/routing/team.ts +0 -14
  60. package/src/service/coach/__stubs__/index.ts +0 -46
  61. package/src/service/coach/coach.test.ts +0 -10
  62. package/src/service/coach/coach.ts +0 -30
  63. package/src/service/coach/formation.test.ts +0 -10
  64. package/src/service/coach/formation.ts +0 -160
  65. package/src/service/coach/index.ts +0 -2
  66. package/src/service/country/__stubs__/index.ts +0 -13
  67. package/src/service/country/country.test.ts +0 -10
  68. package/src/service/country/country.ts +0 -23
  69. package/src/service/country/index.ts +0 -1
  70. package/src/service/event/__stubs__/index.ts +0 -25
  71. package/src/service/event/block.test.ts +0 -100
  72. package/src/service/event/block.ts +0 -69
  73. package/src/service/event/in-play-event.ts +0 -37
  74. package/src/service/event/libero-replacement.test.ts +0 -37
  75. package/src/service/event/libero-replacement.ts +0 -25
  76. package/src/service/event/rally-event.ts +0 -33
  77. package/src/service/event/reception.test.ts +0 -50
  78. package/src/service/event/reception.ts +0 -38
  79. package/src/service/event/score.test.ts +0 -29
  80. package/src/service/event/score.ts +0 -22
  81. package/src/service/event/serve.test.ts +0 -50
  82. package/src/service/event/serve.ts +0 -39
  83. package/src/service/event/set.test.ts +0 -50
  84. package/src/service/event/set.ts +0 -38
  85. package/src/service/event/spike.test.ts +0 -64
  86. package/src/service/event/spike.ts +0 -46
  87. package/src/service/event/substitution.ts +0 -16
  88. package/src/service/index.ts +0 -17
  89. package/src/service/league/index.ts +0 -3
  90. package/src/service/league/league.ts +0 -112
  91. package/src/service/league/season.ts +0 -41
  92. package/src/service/league/standing.ts +0 -82
  93. package/src/service/main.ts +0 -52
  94. package/src/service/match/__stubs__/index.ts +0 -119
  95. package/src/service/match/court-position.test.ts +0 -73
  96. package/src/service/match/court-position.ts +0 -46
  97. package/src/service/match/court-target.test.ts +0 -39
  98. package/src/service/match/court-target.ts +0 -30
  99. package/src/service/match/index.ts +0 -6
  100. package/src/service/match/match-set.test.ts +0 -174
  101. package/src/service/match/match-set.ts +0 -140
  102. package/src/service/match/match-team.test.ts +0 -16
  103. package/src/service/match/match-team.ts +0 -13
  104. package/src/service/match/match.test.ts +0 -80
  105. package/src/service/match/match.ts +0 -63
  106. package/src/service/match/rally.test.ts +0 -94
  107. package/src/service/match/rally.ts +0 -79
  108. package/src/service/player/__stubs__/index.ts +0 -1433
  109. package/src/service/player/index.ts +0 -5
  110. package/src/service/player/performance-stats.test.ts +0 -24
  111. package/src/service/player/performance-stats.ts +0 -47
  112. package/src/service/player/player.test.ts +0 -51
  113. package/src/service/player/player.ts +0 -101
  114. package/src/service/player/role.test.ts +0 -29
  115. package/src/service/player/role.ts +0 -33
  116. package/src/service/player/stats.test.ts +0 -23
  117. package/src/service/player/stats.ts +0 -29
  118. package/src/service/player/trait.test.ts +0 -10
  119. package/src/service/player/trait.ts +0 -124
  120. package/src/service/team/__stubs__/index.ts +0 -290
  121. package/src/service/team/index.ts +0 -1
  122. package/src/service/team/team.test.ts +0 -30
  123. package/src/service/team/team.ts +0 -45
  124. package/src/service/utils/enum-utils.test.ts +0 -10
  125. package/src/service/utils/enum-utils.ts +0 -6
  126. package/src/service/utils/index.ts +0 -4
  127. package/src/service/utils/object-utils.ts +0 -1
  128. package/src/service/utils/rng-utils.test.ts +0 -32
  129. package/src/service/utils/rng-utils.ts +0 -41
  130. package/src/service/utils/string-utils.test.ts +0 -28
  131. package/src/service/utils/string-utils.ts +0 -13
  132. package/src/service/utils/testing-utils.ts +0 -2
@@ -1,370 +0,0 @@
1
- import * as Sequelize from 'sequelize'
2
- import { DataTypes, 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'
19
-
20
- export interface PlayerAttributes {
21
- player_id: string
22
- jersey_number: number
23
- roles: RoleType[]
24
- first_name: string
25
- last_name: string
26
- country_id: string
27
- team_id: string
28
- traits: TraitType[]
29
- PerformanceStat?: PerformanceStatsAttributes
30
- MatchSetStats?: MatchSetStatsAttributes[]
31
- }
32
-
33
- export type RoleType =
34
- 'SETTER'
35
- | 'LIBERO'
36
- | 'OUTSIDE_HITTER'
37
- | 'OPPOSITE_HITTER'
38
- | 'MIDDLE_BLOCKER'
39
- | 'DEFENSIVE_SPECIALIST'
40
- export type TraitType = 'MARKSMAN' | 'MOVING_WALL' | 'MASTER_MIND' | 'METEOR_SERVE' | 'VIGOROUS' | 'GUARDIAN'
41
- export type PlayerPk = 'player_id'
42
- export type PlayerId = PlayerModel[PlayerPk]
43
- export type PlayerCreationAttributes = PlayerAttributes
44
-
45
- export class PlayerModel extends Model<PlayerAttributes, PlayerCreationAttributes> implements PlayerAttributes {
46
- player_id!: string
47
- jersey_number!: number
48
- roles!: RoleType[]
49
- first_name!: string
50
- last_name!: string
51
- country_id!: string
52
- team_id!: string
53
- traits!: TraitType[]
54
-
55
- // Player belongsTo Country via country_id
56
- country!: CountryModel
57
- getCountry!: Sequelize.BelongsToGetAssociationMixin<CountryModel>
58
- setCountry!: Sequelize.BelongsToSetAssociationMixin<CountryModel, CountryId>
59
- createCountry!: Sequelize.BelongsToCreateAssociationMixin<CountryModel>
60
- // Player hasMany Block via player_id
61
- Blocks!: BlockModel[]
62
- getBlocks!: Sequelize.HasManyGetAssociationsMixin<BlockModel>
63
- setBlocks!: Sequelize.HasManySetAssociationsMixin<BlockModel, BlockId>
64
- addBlock!: Sequelize.HasManyAddAssociationMixin<BlockModel, BlockId>
65
- addBlocks!: Sequelize.HasManyAddAssociationsMixin<BlockModel, BlockId>
66
- createBlock!: Sequelize.HasManyCreateAssociationMixin<BlockModel>
67
- removeBlock!: Sequelize.HasManyRemoveAssociationMixin<BlockModel, BlockId>
68
- removeBlocks!: Sequelize.HasManyRemoveAssociationsMixin<BlockModel, BlockId>
69
- hasBlock!: Sequelize.HasManyHasAssociationMixin<BlockModel, BlockId>
70
- hasBlocks!: Sequelize.HasManyHasAssociationsMixin<BlockModel, BlockId>
71
- countBlocks!: Sequelize.HasManyCountAssociationsMixin
72
- // Player hasMany Block via blocker_1
73
- blocker_1_Blocks!: BlockModel[]
74
- getBlocker_1_Blocks!: Sequelize.HasManyGetAssociationsMixin<BlockModel>
75
- setBlocker_1_Blocks!: Sequelize.HasManySetAssociationsMixin<BlockModel, BlockId>
76
- addBlocker_1_Block!: Sequelize.HasManyAddAssociationMixin<BlockModel, BlockId>
77
- addBlocker_1_Blocks!: Sequelize.HasManyAddAssociationsMixin<BlockModel, BlockId>
78
- createBlocker_1_Block!: Sequelize.HasManyCreateAssociationMixin<BlockModel>
79
- removeBlocker_1_Block!: Sequelize.HasManyRemoveAssociationMixin<BlockModel, BlockId>
80
- removeBlocker_1_Blocks!: Sequelize.HasManyRemoveAssociationsMixin<BlockModel, BlockId>
81
- hasBlocker_1_Block!: Sequelize.HasManyHasAssociationMixin<BlockModel, BlockId>
82
- hasBlocker_1_Blocks!: Sequelize.HasManyHasAssociationsMixin<BlockModel, BlockId>
83
- countBlocker_1_Blocks!: Sequelize.HasManyCountAssociationsMixin
84
- // Player hasMany Block via blocker_2
85
- blocker_2_Blocks!: BlockModel[]
86
- getBlocker_2_Blocks!: Sequelize.HasManyGetAssociationsMixin<BlockModel>
87
- setBlocker_2_Blocks!: Sequelize.HasManySetAssociationsMixin<BlockModel, BlockId>
88
- addBlocker_2_Block!: Sequelize.HasManyAddAssociationMixin<BlockModel, BlockId>
89
- addBlocker_2_Blocks!: Sequelize.HasManyAddAssociationsMixin<BlockModel, BlockId>
90
- createBlocker_2_Block!: Sequelize.HasManyCreateAssociationMixin<BlockModel>
91
- removeBlocker_2_Block!: Sequelize.HasManyRemoveAssociationMixin<BlockModel, BlockId>
92
- removeBlocker_2_Blocks!: Sequelize.HasManyRemoveAssociationsMixin<BlockModel, BlockId>
93
- hasBlocker_2_Block!: Sequelize.HasManyHasAssociationMixin<BlockModel, BlockId>
94
- hasBlocker_2_Blocks!: Sequelize.HasManyHasAssociationsMixin<BlockModel, BlockId>
95
- countBlocker_2_Blocks!: Sequelize.HasManyCountAssociationsMixin
96
- // Player hasMany Block via blocker_3
97
- blocker_3_Blocks!: BlockModel[]
98
- getBlocker_3_Blocks!: Sequelize.HasManyGetAssociationsMixin<BlockModel>
99
- setBlocker_3_Blocks!: Sequelize.HasManySetAssociationsMixin<BlockModel, BlockId>
100
- addBlocker_3_Block!: Sequelize.HasManyAddAssociationMixin<BlockModel, BlockId>
101
- addBlocker_3_Blocks!: Sequelize.HasManyAddAssociationsMixin<BlockModel, BlockId>
102
- createBlocker_3_Block!: Sequelize.HasManyCreateAssociationMixin<BlockModel>
103
- removeBlocker_3_Block!: Sequelize.HasManyRemoveAssociationMixin<BlockModel, BlockId>
104
- removeBlocker_3_Blocks!: Sequelize.HasManyRemoveAssociationsMixin<BlockModel, BlockId>
105
- hasBlocker_3_Block!: Sequelize.HasManyHasAssociationMixin<BlockModel, BlockId>
106
- hasBlocker_3_Blocks!: Sequelize.HasManyHasAssociationsMixin<BlockModel, BlockId>
107
- countBlocker_3_Blocks!: Sequelize.HasManyCountAssociationsMixin
108
- // Player hasMany Event via player_id
109
- Events!: EventModel[]
110
- getEvents!: Sequelize.HasManyGetAssociationsMixin<EventModel>
111
- setEvents!: Sequelize.HasManySetAssociationsMixin<EventModel, EventId>
112
- addEvent!: Sequelize.HasManyAddAssociationMixin<EventModel, EventId>
113
- addEvents!: Sequelize.HasManyAddAssociationsMixin<EventModel, EventId>
114
- createEvent!: Sequelize.HasManyCreateAssociationMixin<EventModel>
115
- removeEvent!: Sequelize.HasManyRemoveAssociationMixin<EventModel, EventId>
116
- removeEvents!: Sequelize.HasManyRemoveAssociationsMixin<EventModel, EventId>
117
- hasEvent!: Sequelize.HasManyHasAssociationMixin<EventModel, EventId>
118
- hasEvents!: Sequelize.HasManyHasAssociationsMixin<EventModel, EventId>
119
- countEvents!: Sequelize.HasManyCountAssociationsMixin
120
- // Player hasMany LiberoReplacement via libero
121
- LiberoReplacements!: LiberoReplacementModel[]
122
- getLiberoReplacements!: Sequelize.HasManyGetAssociationsMixin<LiberoReplacementModel>
123
- setLiberoReplacements!: Sequelize.HasManySetAssociationsMixin<LiberoReplacementModel, LiberoReplacementId>
124
- addLiberoReplacement!: Sequelize.HasManyAddAssociationMixin<LiberoReplacementModel, LiberoReplacementId>
125
- addLiberoReplacements!: Sequelize.HasManyAddAssociationsMixin<LiberoReplacementModel, LiberoReplacementId>
126
- createLiberoReplacement!: Sequelize.HasManyCreateAssociationMixin<LiberoReplacementModel>
127
- removeLiberoReplacement!: Sequelize.HasManyRemoveAssociationMixin<LiberoReplacementModel, LiberoReplacementId>
128
- removeLiberoReplacements!: Sequelize.HasManyRemoveAssociationsMixin<LiberoReplacementModel, LiberoReplacementId>
129
- hasLiberoReplacement!: Sequelize.HasManyHasAssociationMixin<LiberoReplacementModel, LiberoReplacementId>
130
- hasLiberoReplacements!: Sequelize.HasManyHasAssociationsMixin<LiberoReplacementModel, LiberoReplacementId>
131
- countLiberoReplacements!: Sequelize.HasManyCountAssociationsMixin
132
- // Player hasMany LiberoReplacement via player_id
133
- player_LiberoReplacements!: LiberoReplacementModel[]
134
- getPlayer_LiberoReplacements!: Sequelize.HasManyGetAssociationsMixin<LiberoReplacementModel>
135
- setPlayer_LiberoReplacements!: Sequelize.HasManySetAssociationsMixin<LiberoReplacementModel, LiberoReplacementId>
136
- addPlayer_LiberoReplacement!: Sequelize.HasManyAddAssociationMixin<LiberoReplacementModel, LiberoReplacementId>
137
- addPlayer_LiberoReplacements!: Sequelize.HasManyAddAssociationsMixin<LiberoReplacementModel, LiberoReplacementId>
138
- createPlayer_LiberoReplacement!: Sequelize.HasManyCreateAssociationMixin<LiberoReplacementModel>
139
- removePlayer_LiberoReplacement!: Sequelize.HasManyRemoveAssociationMixin<LiberoReplacementModel, LiberoReplacementId>
140
- removePlayer_LiberoReplacements!: Sequelize.HasManyRemoveAssociationsMixin<LiberoReplacementModel, LiberoReplacementId>
141
- hasPlayer_LiberoReplacement!: Sequelize.HasManyHasAssociationMixin<LiberoReplacementModel, LiberoReplacementId>
142
- hasPlayer_LiberoReplacements!: Sequelize.HasManyHasAssociationsMixin<LiberoReplacementModel, LiberoReplacementId>
143
- countPlayer_LiberoReplacements!: Sequelize.HasManyCountAssociationsMixin
144
- // Player hasMany MatchSet via away_libero
145
- MatchSets!: MatchSetModel[]
146
- getMatchSets!: Sequelize.HasManyGetAssociationsMixin<MatchSetModel>
147
- setMatchSets!: Sequelize.HasManySetAssociationsMixin<MatchSetModel, MatchSetId>
148
- addMatchSet!: Sequelize.HasManyAddAssociationMixin<MatchSetModel, MatchSetId>
149
- addMatchSets!: Sequelize.HasManyAddAssociationsMixin<MatchSetModel, MatchSetId>
150
- createMatchSet!: Sequelize.HasManyCreateAssociationMixin<MatchSetModel>
151
- removeMatchSet!: Sequelize.HasManyRemoveAssociationMixin<MatchSetModel, MatchSetId>
152
- removeMatchSets!: Sequelize.HasManyRemoveAssociationsMixin<MatchSetModel, MatchSetId>
153
- hasMatchSet!: Sequelize.HasManyHasAssociationMixin<MatchSetModel, MatchSetId>
154
- hasMatchSets!: Sequelize.HasManyHasAssociationsMixin<MatchSetModel, MatchSetId>
155
- countMatchSets!: Sequelize.HasManyCountAssociationsMixin
156
- // Player hasMany MatchSet via home_libero
157
- home_libero_MatchSets!: MatchSetModel[]
158
- getHome_libero_MatchSets!: Sequelize.HasManyGetAssociationsMixin<MatchSetModel>
159
- setHome_libero_MatchSets!: Sequelize.HasManySetAssociationsMixin<MatchSetModel, MatchSetId>
160
- addHome_libero_MatchSet!: Sequelize.HasManyAddAssociationMixin<MatchSetModel, MatchSetId>
161
- addHome_libero_MatchSets!: Sequelize.HasManyAddAssociationsMixin<MatchSetModel, MatchSetId>
162
- createHome_libero_MatchSet!: Sequelize.HasManyCreateAssociationMixin<MatchSetModel>
163
- removeHome_libero_MatchSet!: Sequelize.HasManyRemoveAssociationMixin<MatchSetModel, MatchSetId>
164
- removeHome_libero_MatchSets!: Sequelize.HasManyRemoveAssociationsMixin<MatchSetModel, MatchSetId>
165
- hasHome_libero_MatchSet!: Sequelize.HasManyHasAssociationMixin<MatchSetModel, MatchSetId>
166
- hasHome_libero_MatchSets!: Sequelize.HasManyHasAssociationsMixin<MatchSetModel, MatchSetId>
167
- countHome_libero_MatchSets!: Sequelize.HasManyCountAssociationsMixin
168
- // Player belongsToMany MatchSet via player_id and match_set_id
169
- match_set_id_MatchSets!: MatchSetModel[]
170
- getMatch_set_id_MatchSets!: Sequelize.BelongsToManyGetAssociationsMixin<MatchSetModel>
171
- setMatch_set_id_MatchSets!: Sequelize.BelongsToManySetAssociationsMixin<MatchSetModel, MatchSetId>
172
- addMatch_set_id_MatchSet!: Sequelize.BelongsToManyAddAssociationMixin<MatchSetModel, MatchSetId>
173
- addMatch_set_id_MatchSets!: Sequelize.BelongsToManyAddAssociationsMixin<MatchSetModel, MatchSetId>
174
- createMatch_set_id_MatchSet!: Sequelize.BelongsToManyCreateAssociationMixin<MatchSetModel>
175
- removeMatch_set_id_MatchSet!: Sequelize.BelongsToManyRemoveAssociationMixin<MatchSetModel, MatchSetId>
176
- removeMatch_set_id_MatchSets!: Sequelize.BelongsToManyRemoveAssociationsMixin<MatchSetModel, MatchSetId>
177
- hasMatch_set_id_MatchSet!: Sequelize.BelongsToManyHasAssociationMixin<MatchSetModel, MatchSetId>
178
- hasMatch_set_id_MatchSets!: Sequelize.BelongsToManyHasAssociationsMixin<MatchSetModel, MatchSetId>
179
- countMatch_set_id_MatchSets!: Sequelize.BelongsToManyCountAssociationsMixin
180
- // Player hasMany MatchSetStats via player_id
181
- MatchSetStats!: MatchSetStatsModel[]
182
- getMatchSetStats!: Sequelize.HasManyGetAssociationsMixin<MatchSetStatsModel>
183
- setMatchSetStats!: Sequelize.HasManySetAssociationsMixin<MatchSetStatsModel, MatchSetStatsId>
184
- addMatchSetStat!: Sequelize.HasManyAddAssociationMixin<MatchSetStatsModel, MatchSetStatsId>
185
- addMatchSetStats!: Sequelize.HasManyAddAssociationsMixin<MatchSetStatsModel, MatchSetStatsId>
186
- createMatchSetStat!: Sequelize.HasManyCreateAssociationMixin<MatchSetStatsModel>
187
- removeMatchSetStat!: Sequelize.HasManyRemoveAssociationMixin<MatchSetStatsModel, MatchSetStatsId>
188
- removeMatchSetStats!: Sequelize.HasManyRemoveAssociationsMixin<MatchSetStatsModel, MatchSetStatsId>
189
- hasMatchSetStat!: Sequelize.HasManyHasAssociationMixin<MatchSetStatsModel, MatchSetStatsId>
190
- hasMatchSetStats!: Sequelize.HasManyHasAssociationsMixin<MatchSetStatsModel, MatchSetStatsId>
191
- countMatchSetStats!: Sequelize.HasManyCountAssociationsMixin
192
- // Player hasOne PerformanceStats via player_id
193
- PerformanceStat!: PerformanceStatsModel
194
- getPerformanceStat!: Sequelize.HasOneGetAssociationMixin<PerformanceStatsModel>
195
- setPerformanceStat!: Sequelize.HasOneSetAssociationMixin<PerformanceStatsModel, PerformanceStatsId>
196
- createPerformanceStat!: Sequelize.HasOneCreateAssociationMixin<PerformanceStatsModel>
197
- // Player belongsToMany Rally via player_id and rally_id
198
- rally_id_Rallies!: RallyModel[]
199
- getRally_id_Rallies!: Sequelize.BelongsToManyGetAssociationsMixin<RallyModel>
200
- setRally_id_Rallies!: Sequelize.BelongsToManySetAssociationsMixin<RallyModel, RallyId>
201
- addRally_id_Rally!: Sequelize.BelongsToManyAddAssociationMixin<RallyModel, RallyId>
202
- addRally_id_Rallies!: Sequelize.BelongsToManyAddAssociationsMixin<RallyModel, RallyId>
203
- createRally_id_Rally!: Sequelize.BelongsToManyCreateAssociationMixin<RallyModel>
204
- removeRally_id_Rally!: Sequelize.BelongsToManyRemoveAssociationMixin<RallyModel, RallyId>
205
- removeRally_id_Rallies!: Sequelize.BelongsToManyRemoveAssociationsMixin<RallyModel, RallyId>
206
- hasRally_id_Rally!: Sequelize.BelongsToManyHasAssociationMixin<RallyModel, RallyId>
207
- hasRally_id_Rallies!: Sequelize.BelongsToManyHasAssociationsMixin<RallyModel, RallyId>
208
- countRally_id_Rallies!: Sequelize.BelongsToManyCountAssociationsMixin
209
- // Player hasMany RallyPosition via player_id
210
- RallyPositions!: RallyPositionModel[]
211
- getRallyPositions!: Sequelize.HasManyGetAssociationsMixin<RallyPositionModel>
212
- setRallyPositions!: Sequelize.HasManySetAssociationsMixin<RallyPositionModel, RallyPositionId>
213
- addRallyPosition!: Sequelize.HasManyAddAssociationMixin<RallyPositionModel, RallyPositionId>
214
- addRallyPositions!: Sequelize.HasManyAddAssociationsMixin<RallyPositionModel, RallyPositionId>
215
- createRallyPosition!: Sequelize.HasManyCreateAssociationMixin<RallyPositionModel>
216
- removeRallyPosition!: Sequelize.HasManyRemoveAssociationMixin<RallyPositionModel, RallyPositionId>
217
- removeRallyPositions!: Sequelize.HasManyRemoveAssociationsMixin<RallyPositionModel, RallyPositionId>
218
- hasRallyPosition!: Sequelize.HasManyHasAssociationMixin<RallyPositionModel, RallyPositionId>
219
- hasRallyPositions!: Sequelize.HasManyHasAssociationsMixin<RallyPositionModel, RallyPositionId>
220
- countRallyPositions!: Sequelize.HasManyCountAssociationsMixin
221
- // Player hasMany Reception via player_id
222
- Receptions!: ReceptionModel[]
223
- getReceptions!: Sequelize.HasManyGetAssociationsMixin<ReceptionModel>
224
- setReceptions!: Sequelize.HasManySetAssociationsMixin<ReceptionModel, ReceptionId>
225
- addReception!: Sequelize.HasManyAddAssociationMixin<ReceptionModel, ReceptionId>
226
- addReceptions!: Sequelize.HasManyAddAssociationsMixin<ReceptionModel, ReceptionId>
227
- createReception!: Sequelize.HasManyCreateAssociationMixin<ReceptionModel>
228
- removeReception!: Sequelize.HasManyRemoveAssociationMixin<ReceptionModel, ReceptionId>
229
- removeReceptions!: Sequelize.HasManyRemoveAssociationsMixin<ReceptionModel, ReceptionId>
230
- hasReception!: Sequelize.HasManyHasAssociationMixin<ReceptionModel, ReceptionId>
231
- hasReceptions!: Sequelize.HasManyHasAssociationsMixin<ReceptionModel, ReceptionId>
232
- countReceptions!: Sequelize.HasManyCountAssociationsMixin
233
- // Player hasMany Score via player_id
234
- Scores!: ScoreModel[]
235
- getScores!: Sequelize.HasManyGetAssociationsMixin<ScoreModel>
236
- setScores!: Sequelize.HasManySetAssociationsMixin<ScoreModel, ScoreId>
237
- addScore!: Sequelize.HasManyAddAssociationMixin<ScoreModel, ScoreId>
238
- addScores!: Sequelize.HasManyAddAssociationsMixin<ScoreModel, ScoreId>
239
- createScore!: Sequelize.HasManyCreateAssociationMixin<ScoreModel>
240
- removeScore!: Sequelize.HasManyRemoveAssociationMixin<ScoreModel, ScoreId>
241
- removeScores!: Sequelize.HasManyRemoveAssociationsMixin<ScoreModel, ScoreId>
242
- hasScore!: Sequelize.HasManyHasAssociationMixin<ScoreModel, ScoreId>
243
- hasScores!: Sequelize.HasManyHasAssociationsMixin<ScoreModel, ScoreId>
244
- countScores!: Sequelize.HasManyCountAssociationsMixin
245
- // Player hasMany Serve via player_id
246
- Serves!: ServeModel[]
247
- getServes!: Sequelize.HasManyGetAssociationsMixin<ServeModel>
248
- setServes!: Sequelize.HasManySetAssociationsMixin<ServeModel, ServeId>
249
- addSerf!: Sequelize.HasManyAddAssociationMixin<ServeModel, ServeId>
250
- addServes!: Sequelize.HasManyAddAssociationsMixin<ServeModel, ServeId>
251
- createSerf!: Sequelize.HasManyCreateAssociationMixin<ServeModel>
252
- removeSerf!: Sequelize.HasManyRemoveAssociationMixin<ServeModel, ServeId>
253
- removeServes!: Sequelize.HasManyRemoveAssociationsMixin<ServeModel, ServeId>
254
- hasSerf!: Sequelize.HasManyHasAssociationMixin<ServeModel, ServeId>
255
- hasServes!: Sequelize.HasManyHasAssociationsMixin<ServeModel, ServeId>
256
- countServes!: Sequelize.HasManyCountAssociationsMixin
257
- // Player hasMany Set via player_id
258
- Sets!: SetModel[]
259
- getSets!: Sequelize.HasManyGetAssociationsMixin<SetModel>
260
- setSets!: Sequelize.HasManySetAssociationsMixin<SetModel, SetId>
261
- addSet!: Sequelize.HasManyAddAssociationMixin<SetModel, SetId>
262
- addSets!: Sequelize.HasManyAddAssociationsMixin<SetModel, SetId>
263
- createSet!: Sequelize.HasManyCreateAssociationMixin<SetModel>
264
- removeSet!: Sequelize.HasManyRemoveAssociationMixin<SetModel, SetId>
265
- removeSets!: Sequelize.HasManyRemoveAssociationsMixin<SetModel, SetId>
266
- hasSet!: Sequelize.HasManyHasAssociationMixin<SetModel, SetId>
267
- hasSets!: Sequelize.HasManyHasAssociationsMixin<SetModel, SetId>
268
- countSets!: Sequelize.HasManyCountAssociationsMixin
269
- // Player hasMany Spike via player_id
270
- Spikes!: SpikeModel[]
271
- getSpikes!: Sequelize.HasManyGetAssociationsMixin<SpikeModel>
272
- setSpikes!: Sequelize.HasManySetAssociationsMixin<SpikeModel, SpikeId>
273
- addSpike!: Sequelize.HasManyAddAssociationMixin<SpikeModel, SpikeId>
274
- addSpikes!: Sequelize.HasManyAddAssociationsMixin<SpikeModel, SpikeId>
275
- createSpike!: Sequelize.HasManyCreateAssociationMixin<SpikeModel>
276
- removeSpike!: Sequelize.HasManyRemoveAssociationMixin<SpikeModel, SpikeId>
277
- removeSpikes!: Sequelize.HasManyRemoveAssociationsMixin<SpikeModel, SpikeId>
278
- hasSpike!: Sequelize.HasManyHasAssociationMixin<SpikeModel, SpikeId>
279
- hasSpikes!: Sequelize.HasManyHasAssociationsMixin<SpikeModel, SpikeId>
280
- countSpikes!: Sequelize.HasManyCountAssociationsMixin
281
- // Player hasMany Substitution via player_out
282
- Substitutions!: SubstitutionModel[]
283
- getSubstitutions!: Sequelize.HasManyGetAssociationsMixin<SubstitutionModel>
284
- setSubstitutions!: Sequelize.HasManySetAssociationsMixin<SubstitutionModel, SubstitutionId>
285
- addSubstitution!: Sequelize.HasManyAddAssociationMixin<SubstitutionModel, SubstitutionId>
286
- addSubstitutions!: Sequelize.HasManyAddAssociationsMixin<SubstitutionModel, SubstitutionId>
287
- createSubstitution!: Sequelize.HasManyCreateAssociationMixin<SubstitutionModel>
288
- removeSubstitution!: Sequelize.HasManyRemoveAssociationMixin<SubstitutionModel, SubstitutionId>
289
- removeSubstitutions!: Sequelize.HasManyRemoveAssociationsMixin<SubstitutionModel, SubstitutionId>
290
- hasSubstitution!: Sequelize.HasManyHasAssociationMixin<SubstitutionModel, SubstitutionId>
291
- hasSubstitutions!: Sequelize.HasManyHasAssociationsMixin<SubstitutionModel, SubstitutionId>
292
- countSubstitutions!: Sequelize.HasManyCountAssociationsMixin
293
- // Player hasMany Substitution via player_id
294
- player_Substitutions!: SubstitutionModel[]
295
- getPlayer_Substitutions!: Sequelize.HasManyGetAssociationsMixin<SubstitutionModel>
296
- setPlayer_Substitutions!: Sequelize.HasManySetAssociationsMixin<SubstitutionModel, SubstitutionId>
297
- addPlayer_Substitution!: Sequelize.HasManyAddAssociationMixin<SubstitutionModel, SubstitutionId>
298
- addPlayer_Substitutions!: Sequelize.HasManyAddAssociationsMixin<SubstitutionModel, SubstitutionId>
299
- createPlayer_Substitution!: Sequelize.HasManyCreateAssociationMixin<SubstitutionModel>
300
- removePlayer_Substitution!: Sequelize.HasManyRemoveAssociationMixin<SubstitutionModel, SubstitutionId>
301
- removePlayer_Substitutions!: Sequelize.HasManyRemoveAssociationsMixin<SubstitutionModel, SubstitutionId>
302
- hasPlayer_Substitution!: Sequelize.HasManyHasAssociationMixin<SubstitutionModel, SubstitutionId>
303
- hasPlayer_Substitutions!: Sequelize.HasManyHasAssociationsMixin<SubstitutionModel, SubstitutionId>
304
- countPlayer_Substitutions!: Sequelize.HasManyCountAssociationsMixin
305
- // Player belongsTo Team via team_id
306
- team!: TeamModel
307
- getTeam!: Sequelize.BelongsToGetAssociationMixin<TeamModel>
308
- setTeam!: Sequelize.BelongsToSetAssociationMixin<TeamModel, TeamId>
309
- createTeam!: Sequelize.BelongsToCreateAssociationMixin<TeamModel>
310
-
311
- static initModel (sequelize: Sequelize.Sequelize): typeof PlayerModel {
312
- return PlayerModel.init({
313
- player_id: {
314
- type: DataTypes.UUID,
315
- allowNull: false,
316
- primaryKey: true
317
- },
318
- jersey_number: {
319
- type: DataTypes.INTEGER,
320
- allowNull: false
321
- },
322
- roles: {
323
- type: DataTypes.ARRAY(DataTypes.ENUM('SETTER', 'LIBERO', 'OUTSIDE_HITTER', 'OPPOSITE_HITTER', 'MIDDLE_BLOCKER', 'DEFENSIVE_SPECIALIST')),
324
- allowNull: false
325
- },
326
- first_name: {
327
- type: DataTypes.STRING,
328
- allowNull: false
329
- },
330
- last_name: {
331
- type: DataTypes.STRING,
332
- allowNull: false
333
- },
334
- country_id: {
335
- type: DataTypes.UUID,
336
- allowNull: false,
337
- references: {
338
- model: 'Country',
339
- key: 'country_id'
340
- }
341
- },
342
- team_id: {
343
- type: DataTypes.UUID,
344
- allowNull: false,
345
- references: {
346
- model: 'Team',
347
- key: 'team_id'
348
- }
349
- },
350
- traits: {
351
- type: DataTypes.ARRAY(DataTypes.ENUM('MARKSMAN', 'MOVING_WALL', 'MASTER_MIND', 'METEOR_SERVE', 'VIGOROUS', 'GUARDIAN')),
352
- allowNull: false
353
- }
354
- }, {
355
- sequelize,
356
- tableName: 'Player',
357
- schema: 'public',
358
- timestamps: false,
359
- indexes: [
360
- {
361
- name: 'Player_pk',
362
- unique: true,
363
- fields: [
364
- { name: 'player_id' }
365
- ]
366
- }
367
- ]
368
- })
369
- }
370
- }
@@ -1,79 +0,0 @@
1
- import * as Sequelize from 'sequelize'
2
- import { DataTypes, Model } from 'sequelize'
3
- import type { PlayerId, PlayerModel } from './player'
4
- import type { RallyId, RallyModel } from './rally'
5
-
6
- export interface RallyPositionAttributes {
7
- player_id: string
8
- rally_id: string
9
- side: 'Home' | 'Away'
10
- court_position: 'NOT_IN_COURT' | 'LIBERO_ZONE' | 'LEFT_FRONT' | 'MIDDLE_FRONT' | 'RIGHT_FRONT' | 'LEFT_BACK' | 'MIDDLE_BACK' | 'RIGHT_BACK'
11
- }
12
-
13
- export type RallyPositionPk = 'player_id' | 'rally_id'
14
- export type RallyPositionId = RallyPositionModel[RallyPositionPk]
15
- export type RallyPositionCreationAttributes = RallyPositionAttributes
16
-
17
- export class RallyPositionModel extends Model<RallyPositionAttributes, RallyPositionCreationAttributes> implements RallyPositionAttributes {
18
- player_id!: string
19
- rally_id!: string
20
- side!: 'Home' | 'Away'
21
- court_position!: 'NOT_IN_COURT' | 'LIBERO_ZONE' | 'LEFT_FRONT' | 'MIDDLE_FRONT' | 'RIGHT_FRONT' | 'LEFT_BACK' | 'MIDDLE_BACK' | 'RIGHT_BACK'
22
-
23
- // RallyPosition belongsTo Player via player_id
24
- player!: PlayerModel
25
- getPlayer!: Sequelize.BelongsToGetAssociationMixin<PlayerModel>
26
- setPlayer!: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>
27
- createPlayer!: Sequelize.BelongsToCreateAssociationMixin<PlayerModel>
28
- // RallyPosition belongsTo Rally via rally_id
29
- rally!: RallyModel
30
- getRally!: Sequelize.BelongsToGetAssociationMixin<RallyModel>
31
- setRally!: Sequelize.BelongsToSetAssociationMixin<RallyModel, RallyId>
32
- createRally!: Sequelize.BelongsToCreateAssociationMixin<RallyModel>
33
-
34
- static initModel (sequelize: Sequelize.Sequelize): typeof RallyPositionModel {
35
- return RallyPositionModel.init({
36
- player_id: {
37
- type: DataTypes.UUID,
38
- allowNull: false,
39
- primaryKey: true,
40
- references: {
41
- model: 'Player',
42
- key: 'player_id'
43
- }
44
- },
45
- rally_id: {
46
- type: DataTypes.UUID,
47
- allowNull: false,
48
- primaryKey: true,
49
- references: {
50
- model: 'Rally',
51
- key: 'rally_id'
52
- }
53
- },
54
- side: {
55
- type: DataTypes.ENUM('Home', 'Away'),
56
- allowNull: false
57
- },
58
- court_position: {
59
- type: DataTypes.ENUM('NOT_IN_COURT', 'LIBERO_ZONE', 'LEFT_FRONT', 'MIDDLE_FRONT', 'RIGHT_FRONT', 'LEFT_BACK', 'MIDDLE_BACK', 'RIGHT_BACK'),
60
- allowNull: false
61
- }
62
- }, {
63
- sequelize,
64
- tableName: 'RallyPosition',
65
- schema: 'public',
66
- timestamps: false,
67
- indexes: [
68
- {
69
- name: 'RallyPosition_pk',
70
- unique: true,
71
- fields: [
72
- { name: 'rally_id' },
73
- { name: 'player_id' }
74
- ]
75
- }
76
- ]
77
- })
78
- }
79
- }