volleyballsimtypes 0.0.77 → 0.0.78
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.
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
|
-
import { PlayerId, PlayerModel, RallyId, RallyModel
|
|
3
|
+
import { PlayerId, PlayerModel, RallyId, RallyModel } from '.';
|
|
4
4
|
export interface EventAttributes {
|
|
5
5
|
event_id: string;
|
|
6
6
|
rally_id: string;
|
|
7
7
|
event_type: EventType;
|
|
8
8
|
order: number;
|
|
9
9
|
player_id: string;
|
|
10
|
-
active_traits: TraitType[];
|
|
11
10
|
}
|
|
12
11
|
export type EventType = 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
|
|
13
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';
|
|
@@ -20,7 +19,6 @@ export declare class EventModel extends Model<EventAttributes, EventCreationAttr
|
|
|
20
19
|
event_type: EventType;
|
|
21
20
|
order: number;
|
|
22
21
|
player_id: string;
|
|
23
|
-
active_traits: TraitType[];
|
|
24
22
|
player: PlayerModel;
|
|
25
23
|
getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
|
|
26
24
|
setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
|
|
@@ -33,11 +33,6 @@ class EventModel extends sequelize_1.Model {
|
|
|
33
33
|
model: 'Player',
|
|
34
34
|
key: 'player_id'
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
active_traits: {
|
|
38
|
-
type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM('MARKSMAN', 'MOVING_WALL', 'MASTER_MIND', 'METEOR_SERVE', 'VIGOROUS', 'GUARDIAN')),
|
|
39
|
-
allowNull: false,
|
|
40
|
-
defaultValue: [[]]
|
|
41
36
|
}
|
|
42
37
|
}, {
|
|
43
38
|
sequelize,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
|
-
import { PlayerId, PlayerModel, RallyId, RallyModel
|
|
3
|
+
import { PlayerId, PlayerModel, RallyId, RallyModel } from '.';
|
|
4
4
|
export interface EventAttributes {
|
|
5
5
|
event_id: string;
|
|
6
6
|
rally_id: string;
|
|
7
7
|
event_type: EventType;
|
|
8
8
|
order: number;
|
|
9
9
|
player_id: string;
|
|
10
|
-
active_traits: TraitType[];
|
|
11
10
|
}
|
|
12
11
|
export type EventType = 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
|
|
13
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';
|
|
@@ -20,7 +19,6 @@ export declare class EventModel extends Model<EventAttributes, EventCreationAttr
|
|
|
20
19
|
event_type: EventType;
|
|
21
20
|
order: number;
|
|
22
21
|
player_id: string;
|
|
23
|
-
active_traits: TraitType[];
|
|
24
22
|
player: PlayerModel;
|
|
25
23
|
getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
|
|
26
24
|
setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
|
|
@@ -30,11 +30,6 @@ export class EventModel extends Model {
|
|
|
30
30
|
model: 'Player',
|
|
31
31
|
key: 'player_id'
|
|
32
32
|
}
|
|
33
|
-
},
|
|
34
|
-
active_traits: {
|
|
35
|
-
type: DataTypes.ARRAY(DataTypes.ENUM('MARKSMAN', 'MOVING_WALL', 'MASTER_MIND', 'METEOR_SERVE', 'VIGOROUS', 'GUARDIAN')),
|
|
36
|
-
allowNull: false,
|
|
37
|
-
defaultValue: [[]]
|
|
38
33
|
}
|
|
39
34
|
}, {
|
|
40
35
|
sequelize,
|