volleyballsimtypes 0.0.37 → 0.0.39
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.
- package/dist/cjs/src/data/init-models.js +3 -2
- package/dist/cjs/src/data/models/block.d.ts +11 -10
- package/dist/cjs/src/data/models/coach.d.ts +4 -5
- package/dist/cjs/src/data/models/country.d.ts +1 -4
- package/dist/cjs/src/data/models/event.d.ts +5 -4
- package/dist/cjs/src/data/models/index.d.ts +11 -11
- package/dist/cjs/src/data/models/league.d.ts +2 -3
- package/dist/cjs/src/data/models/libero-replacement.d.ts +6 -6
- package/dist/cjs/src/data/models/match-set-stats.d.ts +1 -2
- package/dist/cjs/src/data/models/match-set.d.ts +1 -4
- package/dist/cjs/src/data/models/match.d.ts +2 -4
- package/dist/cjs/src/data/models/performance-stats.d.ts +1 -1
- package/dist/cjs/src/data/models/player.d.ts +1 -16
- package/dist/cjs/src/data/models/rally-position.d.ts +4 -4
- package/dist/cjs/src/data/models/rally.d.ts +1 -13
- package/dist/cjs/src/data/models/reception.d.ts +11 -10
- package/dist/cjs/src/data/models/score.d.ts +3 -5
- package/dist/cjs/src/data/models/season-matches.d.ts +1 -2
- package/dist/cjs/src/data/models/season-teams.d.ts +1 -2
- package/dist/cjs/src/data/models/season.d.ts +2 -5
- package/dist/cjs/src/data/models/serve.d.ts +11 -10
- package/dist/cjs/src/data/models/set.d.ts +11 -10
- package/dist/cjs/src/data/models/spike.d.ts +11 -10
- package/dist/cjs/src/data/models/substitution.d.ts +3 -4
- package/dist/cjs/src/data/models/team.d.ts +4 -11
- package/dist/cjs/src/data/models/tournament-match.d.ts +7 -8
- package/dist/cjs/src/data/models/tournament-match.js +13 -10
- package/dist/cjs/src/data/models/tournament.d.ts +14 -13
- package/dist/cjs/src/data/models/tournament.js +2 -4
- package/dist/cjs/src/data/transformers/block.js +11 -13
- package/dist/cjs/src/data/transformers/coach.js +5 -6
- package/dist/cjs/src/data/transformers/court-target.d.ts +3 -3
- package/dist/cjs/src/data/transformers/event-type.d.ts +1 -1
- package/dist/cjs/src/data/transformers/formation.d.ts +3 -3
- package/dist/cjs/src/data/transformers/league.js +3 -4
- package/dist/cjs/src/data/transformers/libero-replacement.js +6 -7
- package/dist/cjs/src/data/transformers/match-set-stats.js +2 -2
- package/dist/cjs/src/data/transformers/match-set.js +8 -10
- package/dist/cjs/src/data/transformers/match.js +7 -8
- package/dist/cjs/src/data/transformers/player.js +13 -17
- package/dist/cjs/src/data/transformers/rally-position.js +3 -3
- package/dist/cjs/src/data/transformers/rally.js +32 -41
- package/dist/cjs/src/data/transformers/reception.js +8 -10
- package/dist/cjs/src/data/transformers/role.d.ts +3 -3
- package/dist/cjs/src/data/transformers/score.js +6 -8
- package/dist/cjs/src/data/transformers/season.js +10 -12
- package/dist/cjs/src/data/transformers/serve.js +8 -10
- package/dist/cjs/src/data/transformers/set.js +8 -10
- package/dist/cjs/src/data/transformers/spike.js +8 -10
- package/dist/cjs/src/data/transformers/stage.d.ts +3 -3
- package/dist/cjs/src/data/transformers/substitution.js +6 -7
- package/dist/cjs/src/data/transformers/team.js +8 -10
- package/dist/cjs/src/data/transformers/tournament-match.js +4 -5
- package/dist/cjs/src/data/transformers/tournament.js +4 -5
- package/dist/cjs/src/data/transformers/trait.d.ts +4 -4
- package/dist/esm/src/data/init-models.js +3 -2
- package/dist/esm/src/data/models/block.d.ts +11 -10
- package/dist/esm/src/data/models/coach.d.ts +4 -5
- package/dist/esm/src/data/models/country.d.ts +1 -4
- package/dist/esm/src/data/models/event.d.ts +5 -4
- package/dist/esm/src/data/models/index.d.ts +11 -11
- package/dist/esm/src/data/models/index.js +7 -7
- package/dist/esm/src/data/models/league.d.ts +2 -3
- package/dist/esm/src/data/models/libero-replacement.d.ts +6 -6
- package/dist/esm/src/data/models/match-set-stats.d.ts +1 -2
- package/dist/esm/src/data/models/match-set.d.ts +1 -4
- package/dist/esm/src/data/models/match.d.ts +2 -4
- package/dist/esm/src/data/models/performance-stats.d.ts +1 -1
- package/dist/esm/src/data/models/player.d.ts +1 -16
- package/dist/esm/src/data/models/rally-position.d.ts +4 -4
- package/dist/esm/src/data/models/rally.d.ts +1 -13
- package/dist/esm/src/data/models/reception.d.ts +11 -10
- package/dist/esm/src/data/models/score.d.ts +3 -5
- package/dist/esm/src/data/models/season-matches.d.ts +1 -2
- package/dist/esm/src/data/models/season-teams.d.ts +1 -2
- package/dist/esm/src/data/models/season.d.ts +2 -5
- package/dist/esm/src/data/models/serve.d.ts +11 -10
- package/dist/esm/src/data/models/set.d.ts +11 -10
- package/dist/esm/src/data/models/spike.d.ts +11 -10
- package/dist/esm/src/data/models/substitution.d.ts +3 -4
- package/dist/esm/src/data/models/team.d.ts +4 -11
- package/dist/esm/src/data/models/tournament-match.d.ts +7 -8
- package/dist/esm/src/data/models/tournament-match.js +13 -10
- package/dist/esm/src/data/models/tournament.d.ts +14 -13
- package/dist/esm/src/data/models/tournament.js +2 -4
- package/dist/esm/src/data/transformers/block.js +1 -3
- package/dist/esm/src/data/transformers/coach.js +1 -2
- package/dist/esm/src/data/transformers/court-target.d.ts +3 -3
- package/dist/esm/src/data/transformers/event-type.d.ts +1 -1
- package/dist/esm/src/data/transformers/formation.d.ts +3 -3
- package/dist/esm/src/data/transformers/league.js +1 -2
- package/dist/esm/src/data/transformers/libero-replacement.js +1 -2
- package/dist/esm/src/data/transformers/match-set-stats.js +1 -1
- package/dist/esm/src/data/transformers/match-set.js +1 -3
- package/dist/esm/src/data/transformers/match.js +1 -2
- package/dist/esm/src/data/transformers/player.js +1 -5
- package/dist/esm/src/data/transformers/rally-position.js +1 -1
- package/dist/esm/src/data/transformers/rally.js +1 -10
- package/dist/esm/src/data/transformers/reception.js +1 -3
- package/dist/esm/src/data/transformers/role.d.ts +3 -3
- package/dist/esm/src/data/transformers/score.js +1 -3
- package/dist/esm/src/data/transformers/season.js +1 -3
- package/dist/esm/src/data/transformers/serve.js +1 -3
- package/dist/esm/src/data/transformers/set.js +1 -3
- package/dist/esm/src/data/transformers/spike.js +1 -3
- package/dist/esm/src/data/transformers/stage.d.ts +3 -3
- package/dist/esm/src/data/transformers/substitution.js +1 -2
- package/dist/esm/src/data/transformers/team.js +1 -3
- package/dist/esm/src/data/transformers/tournament-match.js +1 -2
- package/dist/esm/src/data/transformers/tournament.js +3 -4
- package/dist/esm/src/data/transformers/trait.d.ts +4 -4
- package/package.json +4 -1
|
@@ -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,7 +176,7 @@ function initModels(sequelize) {
|
|
|
175
176
|
foreignKey: 'team_id',
|
|
176
177
|
otherKey: 'season_id'
|
|
177
178
|
});
|
|
178
|
-
Tournament.belongsTo(Team, { as: '
|
|
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
182
|
TournamentMatch.belongsTo(Tournament, { as: 'tournament', foreignKey: 'tournament_id' });
|
|
@@ -204,7 +205,7 @@ function initModels(sequelize) {
|
|
|
204
205
|
Substitution,
|
|
205
206
|
Team,
|
|
206
207
|
Tournament,
|
|
207
|
-
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 '
|
|
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:
|
|
9
|
-
target:
|
|
10
|
-
type:
|
|
11
|
-
failure:
|
|
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:
|
|
28
|
-
target:
|
|
29
|
-
type:
|
|
30
|
-
failure:
|
|
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 '
|
|
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:
|
|
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
|
|
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:
|
|
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 '
|
|
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 '
|
|
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:
|
|
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:
|
|
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 '
|
|
4
|
-
import
|
|
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 '
|
|
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:
|
|
9
|
-
type:
|
|
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:
|
|
21
|
-
type:
|
|
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 '
|
|
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 '
|
|
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 '
|
|
4
|
-
import
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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:
|
|
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:
|
|
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 '
|
|
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 '
|
|
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:
|
|
9
|
-
failure:
|
|
10
|
-
type:
|
|
11
|
-
target:
|
|
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:
|
|
24
|
-
failure:
|
|
25
|
-
type:
|
|
26
|
-
target:
|
|
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 '
|
|
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:
|
|
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:
|
|
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 '
|
|
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 '
|
|
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 '
|
|
4
|
-
import
|
|
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 '
|
|
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:
|
|
9
|
-
failure:
|
|
10
|
-
target:
|
|
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:
|
|
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:
|
|
24
|
-
failure:
|
|
25
|
-
target:
|
|
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:
|
|
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 '
|
|
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:
|
|
9
|
-
failure:
|
|
10
|
-
type:
|
|
11
|
-
target:
|
|
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:
|
|
24
|
-
failure:
|
|
25
|
-
type:
|
|
26
|
-
target:
|
|
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;
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
|
-
import type { PlayerId, PlayerModel } from '
|
|
4
|
-
import type { RallyId, RallyModel } from './rally';
|
|
3
|
+
import type { EventType, PlayerId, PlayerModel, RallyId, RallyModel, CourtTarget } from '.';
|
|
5
4
|
export interface SpikeAttributes {
|
|
6
5
|
event_id: string;
|
|
7
6
|
rally_id: string;
|
|
8
|
-
event_type:
|
|
9
|
-
target:
|
|
10
|
-
type:
|
|
11
|
-
failure:
|
|
7
|
+
event_type: EventType;
|
|
8
|
+
target: CourtTarget;
|
|
9
|
+
type: SpikeType;
|
|
10
|
+
failure: SpikeFailure;
|
|
12
11
|
order: number;
|
|
13
12
|
player_id: string;
|
|
14
13
|
modifier: number;
|
|
15
14
|
score: number;
|
|
16
15
|
}
|
|
16
|
+
export type SpikeType = 'CROSS_SHOT' | 'LINE_SHOT' | 'TOOL_SHOT' | 'TIP' | 'DOWN_BALL' | 'OVERHAND';
|
|
17
|
+
export type SpikeFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'NET';
|
|
17
18
|
export type SpikePk = 'event_id';
|
|
18
19
|
export type SpikeId = SpikeModel[SpikePk];
|
|
19
20
|
export type SpikeCreationAttributes = SpikeAttributes;
|
|
20
21
|
export declare class SpikeModel extends Model<SpikeAttributes, SpikeCreationAttributes> implements SpikeAttributes {
|
|
21
22
|
event_id: string;
|
|
22
23
|
rally_id: string;
|
|
23
|
-
event_type:
|
|
24
|
-
target:
|
|
25
|
-
type:
|
|
26
|
-
failure:
|
|
24
|
+
event_type: EventType;
|
|
25
|
+
target: CourtTarget;
|
|
26
|
+
type: SpikeType;
|
|
27
|
+
failure: SpikeFailure;
|
|
27
28
|
order: number;
|
|
28
29
|
player_id: string;
|
|
29
30
|
modifier: number;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
|
-
import type { PlayerId, PlayerModel } from '
|
|
4
|
-
import type { RallyId, RallyModel } from './rally';
|
|
3
|
+
import type { EventType, PlayerId, PlayerModel, RallyId, RallyModel } from '.';
|
|
5
4
|
export interface SubstitutionAttributes {
|
|
6
5
|
event_id: string;
|
|
7
6
|
rally_id: string;
|
|
8
|
-
event_type:
|
|
7
|
+
event_type: EventType;
|
|
9
8
|
player_out: string;
|
|
10
9
|
order: number;
|
|
11
10
|
player_id: string;
|
|
@@ -16,7 +15,7 @@ export type SubstitutionCreationAttributes = SubstitutionAttributes;
|
|
|
16
15
|
export declare class SubstitutionModel extends Model<SubstitutionAttributes, SubstitutionCreationAttributes> implements SubstitutionAttributes {
|
|
17
16
|
event_id: string;
|
|
18
17
|
rally_id: string;
|
|
19
|
-
event_type:
|
|
18
|
+
event_type: EventType;
|
|
20
19
|
player_out: string;
|
|
21
20
|
order: number;
|
|
22
21
|
player_id: string;
|