volleyballsimtypes 0.0.150 → 0.0.153

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 (31) hide show
  1. package/dist/cjs/src/data/common/events.d.ts +82 -0
  2. package/dist/cjs/src/data/common/events.js +97 -0
  3. package/dist/cjs/src/data/common/index.d.ts +1 -0
  4. package/dist/cjs/src/data/common/index.js +1 -0
  5. package/dist/cjs/src/data/models/player.d.ts +1 -1
  6. package/dist/cjs/src/data/models/player.js +1 -1
  7. package/dist/cjs/src/data/transformers/role.js +0 -2
  8. package/dist/cjs/src/formula/role.formula.json +0 -16
  9. package/dist/cjs/src/formula/roles.js +1 -1
  10. package/dist/cjs/src/service/coach/formation.d.ts +0 -1
  11. package/dist/cjs/src/service/coach/formation.js +20 -23
  12. package/dist/cjs/src/service/event/rally-event.d.ts +1 -9
  13. package/dist/cjs/src/service/event/rally-event.js +1 -11
  14. package/dist/cjs/src/service/player/role.d.ts +0 -1
  15. package/dist/cjs/src/service/player/role.js +1 -3
  16. package/dist/esm/src/data/common/events.d.ts +82 -0
  17. package/dist/esm/src/data/common/events.js +94 -0
  18. package/dist/esm/src/data/common/index.d.ts +1 -0
  19. package/dist/esm/src/data/common/index.js +1 -0
  20. package/dist/esm/src/data/models/player.d.ts +1 -1
  21. package/dist/esm/src/data/models/player.js +1 -1
  22. package/dist/esm/src/data/transformers/role.js +0 -2
  23. package/dist/esm/src/formula/role.formula.json +0 -16
  24. package/dist/esm/src/formula/roles.js +1 -1
  25. package/dist/esm/src/service/coach/formation.d.ts +0 -1
  26. package/dist/esm/src/service/coach/formation.js +20 -23
  27. package/dist/esm/src/service/event/rally-event.d.ts +1 -9
  28. package/dist/esm/src/service/event/rally-event.js +0 -10
  29. package/dist/esm/src/service/player/role.d.ts +0 -1
  30. package/dist/esm/src/service/player/role.js +1 -3
  31. package/package.json +1 -1
@@ -0,0 +1,82 @@
1
+ export declare enum EventTypeEnum {
2
+ LIBERO_REPLACEMENT = 0,
3
+ SUBSTITUTION = 1,
4
+ SERVE = 2,
5
+ RECEPTION = 3,
6
+ SET = 4,
7
+ SPIKE = 5,
8
+ BLOCK = 6
9
+ }
10
+ export declare enum BlockFailureEnum {
11
+ NO_FAILURE = 0,
12
+ MISS = 1,
13
+ FAULT = 2,
14
+ OUT_OF_BOUNDS = 3,
15
+ WIPE = 4,
16
+ TOOL = 5
17
+ }
18
+ export declare enum BlockTypeEnum {
19
+ NO_BLOCKER = 0,
20
+ SINGLE = 1,
21
+ DOUBLE = 2,
22
+ TRIPLE = 3
23
+ }
24
+ export declare enum LiberoReplacementTypeEnum {
25
+ LIBERO_IN = 0,
26
+ LIBERO_OUT = 1
27
+ }
28
+ export declare enum ReceptionTypeEnum {
29
+ DIG = 0,
30
+ OVERHAND = 1,
31
+ ONE_HAND = 2,
32
+ OTHER_BODY_PART = 3
33
+ }
34
+ export declare enum ReceptionFailureEnum {
35
+ NO_FAILURE = 0,
36
+ FAULT = 1,
37
+ MISS = 2,
38
+ OUT_OF_BOUNDS = 3,
39
+ BAD_PASS = 4
40
+ }
41
+ export declare enum ServeTypeEnum {
42
+ UNDERHAND = 0,
43
+ OVERHAND_TOPSPIN = 1,
44
+ OVERHAND_FLOAT = 2,
45
+ JUMP_TOPSPIN = 3,
46
+ JUMP_FLOAT = 4
47
+ }
48
+ export declare enum ServeFailureEnum {
49
+ NO_FAILURE = 0,
50
+ FAULT = 1,
51
+ MISS = 2,
52
+ NET = 3,
53
+ OUT_OF_BOUNDS = 4
54
+ }
55
+ export declare enum SetTypeEnum {
56
+ OVERHAND = 0,
57
+ UNDERHAND = 1,
58
+ SPIKE = 2,
59
+ DUMP = 3
60
+ }
61
+ export declare enum SetFailureEnum {
62
+ NO_FAILURE = 0,
63
+ FAULT = 1,
64
+ MISS = 2,
65
+ BAD_PASS = 3,
66
+ OUT_OF_BOUNDS = 4
67
+ }
68
+ export declare enum SpikeTypeEnum {
69
+ CROSS_SHOT = 0,
70
+ LINE_SHOT = 1,
71
+ TOOL_SHOT = 2,
72
+ TIP = 3,
73
+ DOWN_BALL = 4,
74
+ OVERHAND = 5
75
+ }
76
+ export declare enum SpikeFailureEnum {
77
+ NO_FAILURE = 0,
78
+ FAULT = 1,
79
+ MISS = 2,
80
+ OUT_OF_BOUNDS = 3,
81
+ NET = 4
82
+ }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpikeFailureEnum = exports.SpikeTypeEnum = exports.SetFailureEnum = exports.SetTypeEnum = exports.ServeFailureEnum = exports.ServeTypeEnum = exports.ReceptionFailureEnum = exports.ReceptionTypeEnum = exports.LiberoReplacementTypeEnum = exports.BlockTypeEnum = exports.BlockFailureEnum = exports.EventTypeEnum = void 0;
4
+ var EventTypeEnum;
5
+ (function (EventTypeEnum) {
6
+ EventTypeEnum[EventTypeEnum["LIBERO_REPLACEMENT"] = 0] = "LIBERO_REPLACEMENT";
7
+ EventTypeEnum[EventTypeEnum["SUBSTITUTION"] = 1] = "SUBSTITUTION";
8
+ EventTypeEnum[EventTypeEnum["SERVE"] = 2] = "SERVE";
9
+ EventTypeEnum[EventTypeEnum["RECEPTION"] = 3] = "RECEPTION";
10
+ EventTypeEnum[EventTypeEnum["SET"] = 4] = "SET";
11
+ EventTypeEnum[EventTypeEnum["SPIKE"] = 5] = "SPIKE";
12
+ EventTypeEnum[EventTypeEnum["BLOCK"] = 6] = "BLOCK";
13
+ })(EventTypeEnum = exports.EventTypeEnum || (exports.EventTypeEnum = {}));
14
+ var BlockFailureEnum;
15
+ (function (BlockFailureEnum) {
16
+ BlockFailureEnum[BlockFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
17
+ BlockFailureEnum[BlockFailureEnum["MISS"] = 1] = "MISS";
18
+ BlockFailureEnum[BlockFailureEnum["FAULT"] = 2] = "FAULT";
19
+ BlockFailureEnum[BlockFailureEnum["OUT_OF_BOUNDS"] = 3] = "OUT_OF_BOUNDS";
20
+ BlockFailureEnum[BlockFailureEnum["WIPE"] = 4] = "WIPE";
21
+ BlockFailureEnum[BlockFailureEnum["TOOL"] = 5] = "TOOL";
22
+ })(BlockFailureEnum = exports.BlockFailureEnum || (exports.BlockFailureEnum = {}));
23
+ var BlockTypeEnum;
24
+ (function (BlockTypeEnum) {
25
+ BlockTypeEnum[BlockTypeEnum["NO_BLOCKER"] = 0] = "NO_BLOCKER";
26
+ BlockTypeEnum[BlockTypeEnum["SINGLE"] = 1] = "SINGLE";
27
+ BlockTypeEnum[BlockTypeEnum["DOUBLE"] = 2] = "DOUBLE";
28
+ BlockTypeEnum[BlockTypeEnum["TRIPLE"] = 3] = "TRIPLE";
29
+ })(BlockTypeEnum = exports.BlockTypeEnum || (exports.BlockTypeEnum = {}));
30
+ var LiberoReplacementTypeEnum;
31
+ (function (LiberoReplacementTypeEnum) {
32
+ LiberoReplacementTypeEnum[LiberoReplacementTypeEnum["LIBERO_IN"] = 0] = "LIBERO_IN";
33
+ LiberoReplacementTypeEnum[LiberoReplacementTypeEnum["LIBERO_OUT"] = 1] = "LIBERO_OUT";
34
+ })(LiberoReplacementTypeEnum = exports.LiberoReplacementTypeEnum || (exports.LiberoReplacementTypeEnum = {}));
35
+ var ReceptionTypeEnum;
36
+ (function (ReceptionTypeEnum) {
37
+ ReceptionTypeEnum[ReceptionTypeEnum["DIG"] = 0] = "DIG";
38
+ ReceptionTypeEnum[ReceptionTypeEnum["OVERHAND"] = 1] = "OVERHAND";
39
+ ReceptionTypeEnum[ReceptionTypeEnum["ONE_HAND"] = 2] = "ONE_HAND";
40
+ ReceptionTypeEnum[ReceptionTypeEnum["OTHER_BODY_PART"] = 3] = "OTHER_BODY_PART";
41
+ })(ReceptionTypeEnum = exports.ReceptionTypeEnum || (exports.ReceptionTypeEnum = {}));
42
+ var ReceptionFailureEnum;
43
+ (function (ReceptionFailureEnum) {
44
+ ReceptionFailureEnum[ReceptionFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
45
+ ReceptionFailureEnum[ReceptionFailureEnum["FAULT"] = 1] = "FAULT";
46
+ ReceptionFailureEnum[ReceptionFailureEnum["MISS"] = 2] = "MISS";
47
+ ReceptionFailureEnum[ReceptionFailureEnum["OUT_OF_BOUNDS"] = 3] = "OUT_OF_BOUNDS";
48
+ ReceptionFailureEnum[ReceptionFailureEnum["BAD_PASS"] = 4] = "BAD_PASS";
49
+ })(ReceptionFailureEnum = exports.ReceptionFailureEnum || (exports.ReceptionFailureEnum = {}));
50
+ var ServeTypeEnum;
51
+ (function (ServeTypeEnum) {
52
+ ServeTypeEnum[ServeTypeEnum["UNDERHAND"] = 0] = "UNDERHAND";
53
+ ServeTypeEnum[ServeTypeEnum["OVERHAND_TOPSPIN"] = 1] = "OVERHAND_TOPSPIN";
54
+ ServeTypeEnum[ServeTypeEnum["OVERHAND_FLOAT"] = 2] = "OVERHAND_FLOAT";
55
+ ServeTypeEnum[ServeTypeEnum["JUMP_TOPSPIN"] = 3] = "JUMP_TOPSPIN";
56
+ ServeTypeEnum[ServeTypeEnum["JUMP_FLOAT"] = 4] = "JUMP_FLOAT";
57
+ })(ServeTypeEnum = exports.ServeTypeEnum || (exports.ServeTypeEnum = {}));
58
+ var ServeFailureEnum;
59
+ (function (ServeFailureEnum) {
60
+ ServeFailureEnum[ServeFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
61
+ ServeFailureEnum[ServeFailureEnum["FAULT"] = 1] = "FAULT";
62
+ ServeFailureEnum[ServeFailureEnum["MISS"] = 2] = "MISS";
63
+ ServeFailureEnum[ServeFailureEnum["NET"] = 3] = "NET";
64
+ ServeFailureEnum[ServeFailureEnum["OUT_OF_BOUNDS"] = 4] = "OUT_OF_BOUNDS";
65
+ })(ServeFailureEnum = exports.ServeFailureEnum || (exports.ServeFailureEnum = {}));
66
+ var SetTypeEnum;
67
+ (function (SetTypeEnum) {
68
+ SetTypeEnum[SetTypeEnum["OVERHAND"] = 0] = "OVERHAND";
69
+ SetTypeEnum[SetTypeEnum["UNDERHAND"] = 1] = "UNDERHAND";
70
+ SetTypeEnum[SetTypeEnum["SPIKE"] = 2] = "SPIKE";
71
+ SetTypeEnum[SetTypeEnum["DUMP"] = 3] = "DUMP";
72
+ })(SetTypeEnum = exports.SetTypeEnum || (exports.SetTypeEnum = {}));
73
+ var SetFailureEnum;
74
+ (function (SetFailureEnum) {
75
+ SetFailureEnum[SetFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
76
+ SetFailureEnum[SetFailureEnum["FAULT"] = 1] = "FAULT";
77
+ SetFailureEnum[SetFailureEnum["MISS"] = 2] = "MISS";
78
+ SetFailureEnum[SetFailureEnum["BAD_PASS"] = 3] = "BAD_PASS";
79
+ SetFailureEnum[SetFailureEnum["OUT_OF_BOUNDS"] = 4] = "OUT_OF_BOUNDS";
80
+ })(SetFailureEnum = exports.SetFailureEnum || (exports.SetFailureEnum = {}));
81
+ var SpikeTypeEnum;
82
+ (function (SpikeTypeEnum) {
83
+ SpikeTypeEnum[SpikeTypeEnum["CROSS_SHOT"] = 0] = "CROSS_SHOT";
84
+ SpikeTypeEnum[SpikeTypeEnum["LINE_SHOT"] = 1] = "LINE_SHOT";
85
+ SpikeTypeEnum[SpikeTypeEnum["TOOL_SHOT"] = 2] = "TOOL_SHOT";
86
+ SpikeTypeEnum[SpikeTypeEnum["TIP"] = 3] = "TIP";
87
+ SpikeTypeEnum[SpikeTypeEnum["DOWN_BALL"] = 4] = "DOWN_BALL";
88
+ SpikeTypeEnum[SpikeTypeEnum["OVERHAND"] = 5] = "OVERHAND";
89
+ })(SpikeTypeEnum = exports.SpikeTypeEnum || (exports.SpikeTypeEnum = {}));
90
+ var SpikeFailureEnum;
91
+ (function (SpikeFailureEnum) {
92
+ SpikeFailureEnum[SpikeFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
93
+ SpikeFailureEnum[SpikeFailureEnum["FAULT"] = 1] = "FAULT";
94
+ SpikeFailureEnum[SpikeFailureEnum["MISS"] = 2] = "MISS";
95
+ SpikeFailureEnum[SpikeFailureEnum["OUT_OF_BOUNDS"] = 3] = "OUT_OF_BOUNDS";
96
+ SpikeFailureEnum[SpikeFailureEnum["NET"] = 4] = "NET";
97
+ })(SpikeFailureEnum = exports.SpikeFailureEnum || (exports.SpikeFailureEnum = {}));
@@ -1 +1,2 @@
1
1
  export * from './status';
2
+ export * from './events';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./status"), exports);
18
+ __exportStar(require("./events"), exports);
@@ -11,7 +11,7 @@ export interface PlayerAttributes {
11
11
  MatchSetStats?: MatchSetStatsAttributes[];
12
12
  }
13
13
  export type PlayerPk = 'player_id';
14
- export type RoleType = 'SETTER' | 'LIBERO' | 'OUTSIDE_HITTER' | 'OPPOSITE_HITTER' | 'MIDDLE_BLOCKER' | 'DEFENSIVE_SPECIALIST';
14
+ export type RoleType = 'SETTER' | 'LIBERO' | 'OUTSIDE_HITTER' | 'OPPOSITE_HITTER' | 'MIDDLE_BLOCKER';
15
15
  export type PlayerId = PlayerModel[PlayerPk];
16
16
  export type PlayerCreationAttributes = PlayerAttributes;
17
17
  export declare class PlayerModel extends Model<PlayerAttributes, PlayerCreationAttributes> implements PlayerAttributes {
@@ -11,7 +11,7 @@ class PlayerModel extends sequelize_1.Model {
11
11
  primaryKey: true
12
12
  },
13
13
  roles: {
14
- type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM('SETTER', 'LIBERO', 'OUTSIDE_HITTER', 'OPPOSITE_HITTER', 'MIDDLE_BLOCKER', 'DEFENSIVE_SPECIALIST')),
14
+ type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM('SETTER', 'LIBERO', 'OUTSIDE_HITTER', 'OPPOSITE_HITTER', 'MIDDLE_BLOCKER')),
15
15
  allowNull: false
16
16
  },
17
17
  first_name: {
@@ -6,8 +6,6 @@ function transformToType(role) {
6
6
  switch (role) {
7
7
  case service_1.Role.SETTER:
8
8
  return 'SETTER';
9
- case service_1.Role.DEFENSIVE_SPECIALIST:
10
- return 'DEFENSIVE_SPECIALIST';
11
9
  case service_1.Role.LIBERO:
12
10
  return 'LIBERO';
13
11
  case service_1.Role.MIDDLE_BLOCKER:
@@ -78,21 +78,5 @@
78
78
  "defense": 0.075,
79
79
  "stamina": 0.05
80
80
  }
81
- },
82
- {
83
- "role": "DEFENSIVE_SPECIALIST",
84
- "weight": {
85
- "serve": 0.005,
86
- "setting": 0.025,
87
- "pass": 0.06,
88
- "reception": 0.33,
89
- "spike": 0,
90
- "backAttack": 0,
91
- "jump": 0.005,
92
- "block": 0.025,
93
- "awareness": 0.25,
94
- "defense": 0.25,
95
- "stamina": 0.05
96
- }
97
81
  }
98
82
  ]
@@ -5,5 +5,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.rolesFormula = exports.ALL_ROLES = void 0;
7
7
  const role_formula_json_1 = __importDefault(require("./role.formula.json"));
8
- exports.ALL_ROLES = ['SETTER', 'LIBERO', 'OUTSIDE_HITTER', 'OPPOSITE_HITTER', 'MIDDLE_BLOCKER', 'DEFENSIVE_SPECIALIST'];
8
+ exports.ALL_ROLES = ['SETTER', 'LIBERO', 'OUTSIDE_HITTER', 'OPPOSITE_HITTER', 'MIDDLE_BLOCKER'];
9
9
  exports.rolesFormula = role_formula_json_1.default;
@@ -12,7 +12,6 @@ export interface SubPriority {
12
12
  readonly MIDDLE_BLOCKER: number;
13
13
  readonly OUTSIDE_HITTER: number;
14
14
  readonly OPPOSITE_HITTER: number;
15
- readonly DEFENSIVE_SPECIALIST: number;
16
15
  readonly SETTER: number;
17
16
  readonly LIBERO: number;
18
17
  }
@@ -21,23 +21,23 @@ Formation['5-1'] = new Formation({
21
21
  initialRotation: {
22
22
  1: [player_1.Role.SETTER],
23
23
  2: [player_1.Role.OUTSIDE_HITTER],
24
- 3: [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST],
24
+ 3: [player_1.Role.MIDDLE_BLOCKER],
25
25
  4: [player_1.Role.OPPOSITE_HITTER],
26
26
  5: [player_1.Role.OUTSIDE_HITTER],
27
- 6: [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST]
27
+ 6: [player_1.Role.MIDDLE_BLOCKER]
28
28
  },
29
29
  base: {
30
30
  1: [player_1.Role.OPPOSITE_HITTER, player_1.Role.SETTER],
31
31
  2: [player_1.Role.OPPOSITE_HITTER],
32
- 3: [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST],
32
+ 3: [player_1.Role.MIDDLE_BLOCKER],
33
33
  4: [player_1.Role.OUTSIDE_HITTER],
34
34
  5: [player_1.Role.OUTSIDE_HITTER],
35
- 6: [player_1.Role.LIBERO, player_1.Role.DEFENSIVE_SPECIALIST]
35
+ 6: [player_1.Role.LIBERO]
36
36
  },
37
37
  draftingPriorities: [
38
38
  [player_1.Role.SETTER, player_1.Role.OPPOSITE_HITTER],
39
39
  [player_1.Role.OPPOSITE_HITTER],
40
- [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST],
40
+ [player_1.Role.MIDDLE_BLOCKER],
41
41
  [player_1.Role.MIDDLE_BLOCKER],
42
42
  [player_1.Role.OUTSIDE_HITTER],
43
43
  [player_1.Role.OUTSIDE_HITTER],
@@ -47,15 +47,14 @@ Formation['5-1'] = new Formation({
47
47
  MIDDLE_BLOCKER: 1,
48
48
  OUTSIDE_HITTER: 10,
49
49
  OPPOSITE_HITTER: 100,
50
- DEFENSIVE_SPECIALIST: 1000,
51
- SETTER: 10000,
52
- LIBERO: 100000
50
+ SETTER: 1000,
51
+ LIBERO: 10000
53
52
  }
54
53
  });
55
54
  Formation['4-2'] = new Formation({
56
55
  name: '4-2',
57
56
  initialRotation: {
58
- 1: [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST],
57
+ 1: [player_1.Role.MIDDLE_BLOCKER],
59
58
  2: [player_1.Role.SETTER],
60
59
  3: [player_1.Role.OUTSIDE_HITTER],
61
60
  4: [player_1.Role.MIDDLE_BLOCKER],
@@ -65,15 +64,15 @@ Formation['4-2'] = new Formation({
65
64
  base: {
66
65
  1: [player_1.Role.SETTER],
67
66
  2: [player_1.Role.OPPOSITE_HITTER, player_1.Role.SETTER],
68
- 3: [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST],
67
+ 3: [player_1.Role.MIDDLE_BLOCKER],
69
68
  4: [player_1.Role.OUTSIDE_HITTER],
70
69
  5: [player_1.Role.OUTSIDE_HITTER],
71
- 6: [player_1.Role.LIBERO, player_1.Role.DEFENSIVE_SPECIALIST]
70
+ 6: [player_1.Role.LIBERO]
72
71
  },
73
72
  draftingPriorities: [
74
73
  [player_1.Role.SETTER, player_1.Role.OPPOSITE_HITTER],
75
74
  [player_1.Role.SETTER],
76
- [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST],
75
+ [player_1.Role.MIDDLE_BLOCKER],
77
76
  [player_1.Role.MIDDLE_BLOCKER],
78
77
  [player_1.Role.OUTSIDE_HITTER],
79
78
  [player_1.Role.OUTSIDE_HITTER],
@@ -83,9 +82,8 @@ Formation['4-2'] = new Formation({
83
82
  MIDDLE_BLOCKER: 1,
84
83
  OUTSIDE_HITTER: 10,
85
84
  OPPOSITE_HITTER: 100,
86
- DEFENSIVE_SPECIALIST: 1000,
87
- SETTER: 10000,
88
- LIBERO: 100000
85
+ SETTER: 1000,
86
+ LIBERO: 10000
89
87
  }
90
88
  });
91
89
  Formation['6-2'] = new Formation({
@@ -93,7 +91,7 @@ Formation['6-2'] = new Formation({
93
91
  initialRotation: {
94
92
  1: [player_1.Role.OPPOSITE_HITTER, player_1.Role.SETTER],
95
93
  2: [player_1.Role.OUTSIDE_HITTER],
96
- 3: [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST],
94
+ 3: [player_1.Role.MIDDLE_BLOCKER],
97
95
  4: [player_1.Role.OPPOSITE_HITTER, player_1.Role.SETTER],
98
96
  5: [player_1.Role.OUTSIDE_HITTER],
99
97
  6: [player_1.Role.MIDDLE_BLOCKER]
@@ -101,16 +99,16 @@ Formation['6-2'] = new Formation({
101
99
  base: {
102
100
  1: [player_1.Role.SETTER],
103
101
  2: [player_1.Role.OPPOSITE_HITTER, player_1.Role.SETTER],
104
- 3: [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST],
102
+ 3: [player_1.Role.MIDDLE_BLOCKER],
105
103
  4: [player_1.Role.OUTSIDE_HITTER],
106
104
  5: [player_1.Role.OUTSIDE_HITTER],
107
- 6: [player_1.Role.LIBERO, player_1.Role.DEFENSIVE_SPECIALIST]
105
+ 6: [player_1.Role.LIBERO]
108
106
  },
109
107
  draftingPriorities: [
110
108
  [player_1.Role.SETTER, player_1.Role.OPPOSITE_HITTER],
111
109
  [player_1.Role.OPPOSITE_HITTER, player_1.Role.SETTER],
112
- [player_1.Role.MIDDLE_BLOCKER, player_1.Role.DEFENSIVE_SPECIALIST],
113
- [player_1.Role.DEFENSIVE_SPECIALIST, player_1.Role.MIDDLE_BLOCKER],
110
+ [player_1.Role.MIDDLE_BLOCKER],
111
+ [player_1.Role.MIDDLE_BLOCKER],
114
112
  [player_1.Role.OUTSIDE_HITTER],
115
113
  [player_1.Role.OUTSIDE_HITTER],
116
114
  [player_1.Role.LIBERO]
@@ -119,8 +117,7 @@ Formation['6-2'] = new Formation({
119
117
  MIDDLE_BLOCKER: 1,
120
118
  OUTSIDE_HITTER: 10,
121
119
  OPPOSITE_HITTER: 100,
122
- DEFENSIVE_SPECIALIST: 1000,
123
- SETTER: 10000,
124
- LIBERO: 100000
120
+ SETTER: 1000,
121
+ LIBERO: 10000
125
122
  }
126
123
  });
@@ -1,12 +1,4 @@
1
- export declare enum EventTypeEnum {
2
- LIBERO_REPLACEMENT = 0,
3
- SUBSTITUTION = 1,
4
- SERVE = 2,
5
- RECEPTION = 3,
6
- SET = 4,
7
- SPIKE = 5,
8
- BLOCK = 6
9
- }
1
+ import { EventTypeEnum } from '../../data';
10
2
  export interface RallyEventOpts {
11
3
  readonly player: string;
12
4
  readonly eventType: EventTypeEnum;
@@ -1,16 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RallyEvent = exports.EventTypeEnum = void 0;
4
- var EventTypeEnum;
5
- (function (EventTypeEnum) {
6
- EventTypeEnum[EventTypeEnum["LIBERO_REPLACEMENT"] = 0] = "LIBERO_REPLACEMENT";
7
- EventTypeEnum[EventTypeEnum["SUBSTITUTION"] = 1] = "SUBSTITUTION";
8
- EventTypeEnum[EventTypeEnum["SERVE"] = 2] = "SERVE";
9
- EventTypeEnum[EventTypeEnum["RECEPTION"] = 3] = "RECEPTION";
10
- EventTypeEnum[EventTypeEnum["SET"] = 4] = "SET";
11
- EventTypeEnum[EventTypeEnum["SPIKE"] = 5] = "SPIKE";
12
- EventTypeEnum[EventTypeEnum["BLOCK"] = 6] = "BLOCK";
13
- })(EventTypeEnum = exports.EventTypeEnum || (exports.EventTypeEnum = {}));
3
+ exports.RallyEvent = void 0;
14
4
  class RallyEvent {
15
5
  constructor({ eventType, player }) {
16
6
  this.player = player;
@@ -6,7 +6,6 @@ export declare class Role {
6
6
  static readonly OUTSIDE_HITTER: Role;
7
7
  static readonly OPPOSITE_HITTER: Role;
8
8
  static readonly MIDDLE_BLOCKER: Role;
9
- static readonly DEFENSIVE_SPECIALIST: Role;
10
9
  private static readonly ROLES;
11
10
  readonly name: Roles;
12
11
  private constructor();
@@ -41,6 +41,4 @@ Role.LIBERO = new Role('LIBERO');
41
41
  Role.OUTSIDE_HITTER = new Role('OUTSIDE_HITTER');
42
42
  Role.OPPOSITE_HITTER = new Role('OPPOSITE_HITTER');
43
43
  Role.MIDDLE_BLOCKER = new Role('MIDDLE_BLOCKER');
44
- Role.DEFENSIVE_SPECIALIST = new Role('DEFENSIVE_SPECIALIST');
45
- Role.ROLES = [Role.LIBERO, Role.SETTER, Role.OPPOSITE_HITTER, Role.OUTSIDE_HITTER, Role.MIDDLE_BLOCKER,
46
- Role.DEFENSIVE_SPECIALIST];
44
+ Role.ROLES = [Role.LIBERO, Role.SETTER, Role.OPPOSITE_HITTER, Role.OUTSIDE_HITTER, Role.MIDDLE_BLOCKER];
@@ -0,0 +1,82 @@
1
+ export declare enum EventTypeEnum {
2
+ LIBERO_REPLACEMENT = 0,
3
+ SUBSTITUTION = 1,
4
+ SERVE = 2,
5
+ RECEPTION = 3,
6
+ SET = 4,
7
+ SPIKE = 5,
8
+ BLOCK = 6
9
+ }
10
+ export declare enum BlockFailureEnum {
11
+ NO_FAILURE = 0,
12
+ MISS = 1,
13
+ FAULT = 2,
14
+ OUT_OF_BOUNDS = 3,
15
+ WIPE = 4,
16
+ TOOL = 5
17
+ }
18
+ export declare enum BlockTypeEnum {
19
+ NO_BLOCKER = 0,
20
+ SINGLE = 1,
21
+ DOUBLE = 2,
22
+ TRIPLE = 3
23
+ }
24
+ export declare enum LiberoReplacementTypeEnum {
25
+ LIBERO_IN = 0,
26
+ LIBERO_OUT = 1
27
+ }
28
+ export declare enum ReceptionTypeEnum {
29
+ DIG = 0,
30
+ OVERHAND = 1,
31
+ ONE_HAND = 2,
32
+ OTHER_BODY_PART = 3
33
+ }
34
+ export declare enum ReceptionFailureEnum {
35
+ NO_FAILURE = 0,
36
+ FAULT = 1,
37
+ MISS = 2,
38
+ OUT_OF_BOUNDS = 3,
39
+ BAD_PASS = 4
40
+ }
41
+ export declare enum ServeTypeEnum {
42
+ UNDERHAND = 0,
43
+ OVERHAND_TOPSPIN = 1,
44
+ OVERHAND_FLOAT = 2,
45
+ JUMP_TOPSPIN = 3,
46
+ JUMP_FLOAT = 4
47
+ }
48
+ export declare enum ServeFailureEnum {
49
+ NO_FAILURE = 0,
50
+ FAULT = 1,
51
+ MISS = 2,
52
+ NET = 3,
53
+ OUT_OF_BOUNDS = 4
54
+ }
55
+ export declare enum SetTypeEnum {
56
+ OVERHAND = 0,
57
+ UNDERHAND = 1,
58
+ SPIKE = 2,
59
+ DUMP = 3
60
+ }
61
+ export declare enum SetFailureEnum {
62
+ NO_FAILURE = 0,
63
+ FAULT = 1,
64
+ MISS = 2,
65
+ BAD_PASS = 3,
66
+ OUT_OF_BOUNDS = 4
67
+ }
68
+ export declare enum SpikeTypeEnum {
69
+ CROSS_SHOT = 0,
70
+ LINE_SHOT = 1,
71
+ TOOL_SHOT = 2,
72
+ TIP = 3,
73
+ DOWN_BALL = 4,
74
+ OVERHAND = 5
75
+ }
76
+ export declare enum SpikeFailureEnum {
77
+ NO_FAILURE = 0,
78
+ FAULT = 1,
79
+ MISS = 2,
80
+ OUT_OF_BOUNDS = 3,
81
+ NET = 4
82
+ }
@@ -0,0 +1,94 @@
1
+ export var EventTypeEnum;
2
+ (function (EventTypeEnum) {
3
+ EventTypeEnum[EventTypeEnum["LIBERO_REPLACEMENT"] = 0] = "LIBERO_REPLACEMENT";
4
+ EventTypeEnum[EventTypeEnum["SUBSTITUTION"] = 1] = "SUBSTITUTION";
5
+ EventTypeEnum[EventTypeEnum["SERVE"] = 2] = "SERVE";
6
+ EventTypeEnum[EventTypeEnum["RECEPTION"] = 3] = "RECEPTION";
7
+ EventTypeEnum[EventTypeEnum["SET"] = 4] = "SET";
8
+ EventTypeEnum[EventTypeEnum["SPIKE"] = 5] = "SPIKE";
9
+ EventTypeEnum[EventTypeEnum["BLOCK"] = 6] = "BLOCK";
10
+ })(EventTypeEnum || (EventTypeEnum = {}));
11
+ export var BlockFailureEnum;
12
+ (function (BlockFailureEnum) {
13
+ BlockFailureEnum[BlockFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
14
+ BlockFailureEnum[BlockFailureEnum["MISS"] = 1] = "MISS";
15
+ BlockFailureEnum[BlockFailureEnum["FAULT"] = 2] = "FAULT";
16
+ BlockFailureEnum[BlockFailureEnum["OUT_OF_BOUNDS"] = 3] = "OUT_OF_BOUNDS";
17
+ BlockFailureEnum[BlockFailureEnum["WIPE"] = 4] = "WIPE";
18
+ BlockFailureEnum[BlockFailureEnum["TOOL"] = 5] = "TOOL";
19
+ })(BlockFailureEnum || (BlockFailureEnum = {}));
20
+ export var BlockTypeEnum;
21
+ (function (BlockTypeEnum) {
22
+ BlockTypeEnum[BlockTypeEnum["NO_BLOCKER"] = 0] = "NO_BLOCKER";
23
+ BlockTypeEnum[BlockTypeEnum["SINGLE"] = 1] = "SINGLE";
24
+ BlockTypeEnum[BlockTypeEnum["DOUBLE"] = 2] = "DOUBLE";
25
+ BlockTypeEnum[BlockTypeEnum["TRIPLE"] = 3] = "TRIPLE";
26
+ })(BlockTypeEnum || (BlockTypeEnum = {}));
27
+ export var LiberoReplacementTypeEnum;
28
+ (function (LiberoReplacementTypeEnum) {
29
+ LiberoReplacementTypeEnum[LiberoReplacementTypeEnum["LIBERO_IN"] = 0] = "LIBERO_IN";
30
+ LiberoReplacementTypeEnum[LiberoReplacementTypeEnum["LIBERO_OUT"] = 1] = "LIBERO_OUT";
31
+ })(LiberoReplacementTypeEnum || (LiberoReplacementTypeEnum = {}));
32
+ export var ReceptionTypeEnum;
33
+ (function (ReceptionTypeEnum) {
34
+ ReceptionTypeEnum[ReceptionTypeEnum["DIG"] = 0] = "DIG";
35
+ ReceptionTypeEnum[ReceptionTypeEnum["OVERHAND"] = 1] = "OVERHAND";
36
+ ReceptionTypeEnum[ReceptionTypeEnum["ONE_HAND"] = 2] = "ONE_HAND";
37
+ ReceptionTypeEnum[ReceptionTypeEnum["OTHER_BODY_PART"] = 3] = "OTHER_BODY_PART";
38
+ })(ReceptionTypeEnum || (ReceptionTypeEnum = {}));
39
+ export var ReceptionFailureEnum;
40
+ (function (ReceptionFailureEnum) {
41
+ ReceptionFailureEnum[ReceptionFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
42
+ ReceptionFailureEnum[ReceptionFailureEnum["FAULT"] = 1] = "FAULT";
43
+ ReceptionFailureEnum[ReceptionFailureEnum["MISS"] = 2] = "MISS";
44
+ ReceptionFailureEnum[ReceptionFailureEnum["OUT_OF_BOUNDS"] = 3] = "OUT_OF_BOUNDS";
45
+ ReceptionFailureEnum[ReceptionFailureEnum["BAD_PASS"] = 4] = "BAD_PASS";
46
+ })(ReceptionFailureEnum || (ReceptionFailureEnum = {}));
47
+ export var ServeTypeEnum;
48
+ (function (ServeTypeEnum) {
49
+ ServeTypeEnum[ServeTypeEnum["UNDERHAND"] = 0] = "UNDERHAND";
50
+ ServeTypeEnum[ServeTypeEnum["OVERHAND_TOPSPIN"] = 1] = "OVERHAND_TOPSPIN";
51
+ ServeTypeEnum[ServeTypeEnum["OVERHAND_FLOAT"] = 2] = "OVERHAND_FLOAT";
52
+ ServeTypeEnum[ServeTypeEnum["JUMP_TOPSPIN"] = 3] = "JUMP_TOPSPIN";
53
+ ServeTypeEnum[ServeTypeEnum["JUMP_FLOAT"] = 4] = "JUMP_FLOAT";
54
+ })(ServeTypeEnum || (ServeTypeEnum = {}));
55
+ export var ServeFailureEnum;
56
+ (function (ServeFailureEnum) {
57
+ ServeFailureEnum[ServeFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
58
+ ServeFailureEnum[ServeFailureEnum["FAULT"] = 1] = "FAULT";
59
+ ServeFailureEnum[ServeFailureEnum["MISS"] = 2] = "MISS";
60
+ ServeFailureEnum[ServeFailureEnum["NET"] = 3] = "NET";
61
+ ServeFailureEnum[ServeFailureEnum["OUT_OF_BOUNDS"] = 4] = "OUT_OF_BOUNDS";
62
+ })(ServeFailureEnum || (ServeFailureEnum = {}));
63
+ export var SetTypeEnum;
64
+ (function (SetTypeEnum) {
65
+ SetTypeEnum[SetTypeEnum["OVERHAND"] = 0] = "OVERHAND";
66
+ SetTypeEnum[SetTypeEnum["UNDERHAND"] = 1] = "UNDERHAND";
67
+ SetTypeEnum[SetTypeEnum["SPIKE"] = 2] = "SPIKE";
68
+ SetTypeEnum[SetTypeEnum["DUMP"] = 3] = "DUMP";
69
+ })(SetTypeEnum || (SetTypeEnum = {}));
70
+ export var SetFailureEnum;
71
+ (function (SetFailureEnum) {
72
+ SetFailureEnum[SetFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
73
+ SetFailureEnum[SetFailureEnum["FAULT"] = 1] = "FAULT";
74
+ SetFailureEnum[SetFailureEnum["MISS"] = 2] = "MISS";
75
+ SetFailureEnum[SetFailureEnum["BAD_PASS"] = 3] = "BAD_PASS";
76
+ SetFailureEnum[SetFailureEnum["OUT_OF_BOUNDS"] = 4] = "OUT_OF_BOUNDS";
77
+ })(SetFailureEnum || (SetFailureEnum = {}));
78
+ export var SpikeTypeEnum;
79
+ (function (SpikeTypeEnum) {
80
+ SpikeTypeEnum[SpikeTypeEnum["CROSS_SHOT"] = 0] = "CROSS_SHOT";
81
+ SpikeTypeEnum[SpikeTypeEnum["LINE_SHOT"] = 1] = "LINE_SHOT";
82
+ SpikeTypeEnum[SpikeTypeEnum["TOOL_SHOT"] = 2] = "TOOL_SHOT";
83
+ SpikeTypeEnum[SpikeTypeEnum["TIP"] = 3] = "TIP";
84
+ SpikeTypeEnum[SpikeTypeEnum["DOWN_BALL"] = 4] = "DOWN_BALL";
85
+ SpikeTypeEnum[SpikeTypeEnum["OVERHAND"] = 5] = "OVERHAND";
86
+ })(SpikeTypeEnum || (SpikeTypeEnum = {}));
87
+ export var SpikeFailureEnum;
88
+ (function (SpikeFailureEnum) {
89
+ SpikeFailureEnum[SpikeFailureEnum["NO_FAILURE"] = 0] = "NO_FAILURE";
90
+ SpikeFailureEnum[SpikeFailureEnum["FAULT"] = 1] = "FAULT";
91
+ SpikeFailureEnum[SpikeFailureEnum["MISS"] = 2] = "MISS";
92
+ SpikeFailureEnum[SpikeFailureEnum["OUT_OF_BOUNDS"] = 3] = "OUT_OF_BOUNDS";
93
+ SpikeFailureEnum[SpikeFailureEnum["NET"] = 4] = "NET";
94
+ })(SpikeFailureEnum || (SpikeFailureEnum = {}));
@@ -1 +1,2 @@
1
1
  export * from './status';
2
+ export * from './events';
@@ -1 +1,2 @@
1
1
  export * from './status';
2
+ export * from './events';
@@ -11,7 +11,7 @@ export interface PlayerAttributes {
11
11
  MatchSetStats?: MatchSetStatsAttributes[];
12
12
  }
13
13
  export type PlayerPk = 'player_id';
14
- export type RoleType = 'SETTER' | 'LIBERO' | 'OUTSIDE_HITTER' | 'OPPOSITE_HITTER' | 'MIDDLE_BLOCKER' | 'DEFENSIVE_SPECIALIST';
14
+ export type RoleType = 'SETTER' | 'LIBERO' | 'OUTSIDE_HITTER' | 'OPPOSITE_HITTER' | 'MIDDLE_BLOCKER';
15
15
  export type PlayerId = PlayerModel[PlayerPk];
16
16
  export type PlayerCreationAttributes = PlayerAttributes;
17
17
  export declare class PlayerModel extends Model<PlayerAttributes, PlayerCreationAttributes> implements PlayerAttributes {
@@ -8,7 +8,7 @@ export class PlayerModel extends Model {
8
8
  primaryKey: true
9
9
  },
10
10
  roles: {
11
- type: DataTypes.ARRAY(DataTypes.ENUM('SETTER', 'LIBERO', 'OUTSIDE_HITTER', 'OPPOSITE_HITTER', 'MIDDLE_BLOCKER', 'DEFENSIVE_SPECIALIST')),
11
+ type: DataTypes.ARRAY(DataTypes.ENUM('SETTER', 'LIBERO', 'OUTSIDE_HITTER', 'OPPOSITE_HITTER', 'MIDDLE_BLOCKER')),
12
12
  allowNull: false
13
13
  },
14
14
  first_name: {
@@ -3,8 +3,6 @@ function transformToType(role) {
3
3
  switch (role) {
4
4
  case Role.SETTER:
5
5
  return 'SETTER';
6
- case Role.DEFENSIVE_SPECIALIST:
7
- return 'DEFENSIVE_SPECIALIST';
8
6
  case Role.LIBERO:
9
7
  return 'LIBERO';
10
8
  case Role.MIDDLE_BLOCKER:
@@ -78,21 +78,5 @@
78
78
  "defense": 0.075,
79
79
  "stamina": 0.05
80
80
  }
81
- },
82
- {
83
- "role": "DEFENSIVE_SPECIALIST",
84
- "weight": {
85
- "serve": 0.005,
86
- "setting": 0.025,
87
- "pass": 0.06,
88
- "reception": 0.33,
89
- "spike": 0,
90
- "backAttack": 0,
91
- "jump": 0.005,
92
- "block": 0.025,
93
- "awareness": 0.25,
94
- "defense": 0.25,
95
- "stamina": 0.05
96
- }
97
81
  }
98
82
  ]
@@ -1,3 +1,3 @@
1
1
  import roles from './role.formula.json';
2
- export const ALL_ROLES = ['SETTER', 'LIBERO', 'OUTSIDE_HITTER', 'OPPOSITE_HITTER', 'MIDDLE_BLOCKER', 'DEFENSIVE_SPECIALIST'];
2
+ export const ALL_ROLES = ['SETTER', 'LIBERO', 'OUTSIDE_HITTER', 'OPPOSITE_HITTER', 'MIDDLE_BLOCKER'];
3
3
  export const rolesFormula = roles;
@@ -12,7 +12,6 @@ export interface SubPriority {
12
12
  readonly MIDDLE_BLOCKER: number;
13
13
  readonly OUTSIDE_HITTER: number;
14
14
  readonly OPPOSITE_HITTER: number;
15
- readonly DEFENSIVE_SPECIALIST: number;
16
15
  readonly SETTER: number;
17
16
  readonly LIBERO: number;
18
17
  }
@@ -17,23 +17,23 @@ Formation['5-1'] = new Formation({
17
17
  initialRotation: {
18
18
  1: [Role.SETTER],
19
19
  2: [Role.OUTSIDE_HITTER],
20
- 3: [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST],
20
+ 3: [Role.MIDDLE_BLOCKER],
21
21
  4: [Role.OPPOSITE_HITTER],
22
22
  5: [Role.OUTSIDE_HITTER],
23
- 6: [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST]
23
+ 6: [Role.MIDDLE_BLOCKER]
24
24
  },
25
25
  base: {
26
26
  1: [Role.OPPOSITE_HITTER, Role.SETTER],
27
27
  2: [Role.OPPOSITE_HITTER],
28
- 3: [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST],
28
+ 3: [Role.MIDDLE_BLOCKER],
29
29
  4: [Role.OUTSIDE_HITTER],
30
30
  5: [Role.OUTSIDE_HITTER],
31
- 6: [Role.LIBERO, Role.DEFENSIVE_SPECIALIST]
31
+ 6: [Role.LIBERO]
32
32
  },
33
33
  draftingPriorities: [
34
34
  [Role.SETTER, Role.OPPOSITE_HITTER],
35
35
  [Role.OPPOSITE_HITTER],
36
- [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST],
36
+ [Role.MIDDLE_BLOCKER],
37
37
  [Role.MIDDLE_BLOCKER],
38
38
  [Role.OUTSIDE_HITTER],
39
39
  [Role.OUTSIDE_HITTER],
@@ -43,15 +43,14 @@ Formation['5-1'] = new Formation({
43
43
  MIDDLE_BLOCKER: 1,
44
44
  OUTSIDE_HITTER: 10,
45
45
  OPPOSITE_HITTER: 100,
46
- DEFENSIVE_SPECIALIST: 1000,
47
- SETTER: 10000,
48
- LIBERO: 100000
46
+ SETTER: 1000,
47
+ LIBERO: 10000
49
48
  }
50
49
  });
51
50
  Formation['4-2'] = new Formation({
52
51
  name: '4-2',
53
52
  initialRotation: {
54
- 1: [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST],
53
+ 1: [Role.MIDDLE_BLOCKER],
55
54
  2: [Role.SETTER],
56
55
  3: [Role.OUTSIDE_HITTER],
57
56
  4: [Role.MIDDLE_BLOCKER],
@@ -61,15 +60,15 @@ Formation['4-2'] = new Formation({
61
60
  base: {
62
61
  1: [Role.SETTER],
63
62
  2: [Role.OPPOSITE_HITTER, Role.SETTER],
64
- 3: [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST],
63
+ 3: [Role.MIDDLE_BLOCKER],
65
64
  4: [Role.OUTSIDE_HITTER],
66
65
  5: [Role.OUTSIDE_HITTER],
67
- 6: [Role.LIBERO, Role.DEFENSIVE_SPECIALIST]
66
+ 6: [Role.LIBERO]
68
67
  },
69
68
  draftingPriorities: [
70
69
  [Role.SETTER, Role.OPPOSITE_HITTER],
71
70
  [Role.SETTER],
72
- [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST],
71
+ [Role.MIDDLE_BLOCKER],
73
72
  [Role.MIDDLE_BLOCKER],
74
73
  [Role.OUTSIDE_HITTER],
75
74
  [Role.OUTSIDE_HITTER],
@@ -79,9 +78,8 @@ Formation['4-2'] = new Formation({
79
78
  MIDDLE_BLOCKER: 1,
80
79
  OUTSIDE_HITTER: 10,
81
80
  OPPOSITE_HITTER: 100,
82
- DEFENSIVE_SPECIALIST: 1000,
83
- SETTER: 10000,
84
- LIBERO: 100000
81
+ SETTER: 1000,
82
+ LIBERO: 10000
85
83
  }
86
84
  });
87
85
  Formation['6-2'] = new Formation({
@@ -89,7 +87,7 @@ Formation['6-2'] = new Formation({
89
87
  initialRotation: {
90
88
  1: [Role.OPPOSITE_HITTER, Role.SETTER],
91
89
  2: [Role.OUTSIDE_HITTER],
92
- 3: [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST],
90
+ 3: [Role.MIDDLE_BLOCKER],
93
91
  4: [Role.OPPOSITE_HITTER, Role.SETTER],
94
92
  5: [Role.OUTSIDE_HITTER],
95
93
  6: [Role.MIDDLE_BLOCKER]
@@ -97,16 +95,16 @@ Formation['6-2'] = new Formation({
97
95
  base: {
98
96
  1: [Role.SETTER],
99
97
  2: [Role.OPPOSITE_HITTER, Role.SETTER],
100
- 3: [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST],
98
+ 3: [Role.MIDDLE_BLOCKER],
101
99
  4: [Role.OUTSIDE_HITTER],
102
100
  5: [Role.OUTSIDE_HITTER],
103
- 6: [Role.LIBERO, Role.DEFENSIVE_SPECIALIST]
101
+ 6: [Role.LIBERO]
104
102
  },
105
103
  draftingPriorities: [
106
104
  [Role.SETTER, Role.OPPOSITE_HITTER],
107
105
  [Role.OPPOSITE_HITTER, Role.SETTER],
108
- [Role.MIDDLE_BLOCKER, Role.DEFENSIVE_SPECIALIST],
109
- [Role.DEFENSIVE_SPECIALIST, Role.MIDDLE_BLOCKER],
106
+ [Role.MIDDLE_BLOCKER],
107
+ [Role.MIDDLE_BLOCKER],
110
108
  [Role.OUTSIDE_HITTER],
111
109
  [Role.OUTSIDE_HITTER],
112
110
  [Role.LIBERO]
@@ -115,8 +113,7 @@ Formation['6-2'] = new Formation({
115
113
  MIDDLE_BLOCKER: 1,
116
114
  OUTSIDE_HITTER: 10,
117
115
  OPPOSITE_HITTER: 100,
118
- DEFENSIVE_SPECIALIST: 1000,
119
- SETTER: 10000,
120
- LIBERO: 100000
116
+ SETTER: 1000,
117
+ LIBERO: 10000
121
118
  }
122
119
  });
@@ -1,12 +1,4 @@
1
- export declare enum EventTypeEnum {
2
- LIBERO_REPLACEMENT = 0,
3
- SUBSTITUTION = 1,
4
- SERVE = 2,
5
- RECEPTION = 3,
6
- SET = 4,
7
- SPIKE = 5,
8
- BLOCK = 6
9
- }
1
+ import { EventTypeEnum } from '../../data';
10
2
  export interface RallyEventOpts {
11
3
  readonly player: string;
12
4
  readonly eventType: EventTypeEnum;
@@ -1,13 +1,3 @@
1
- export var EventTypeEnum;
2
- (function (EventTypeEnum) {
3
- EventTypeEnum[EventTypeEnum["LIBERO_REPLACEMENT"] = 0] = "LIBERO_REPLACEMENT";
4
- EventTypeEnum[EventTypeEnum["SUBSTITUTION"] = 1] = "SUBSTITUTION";
5
- EventTypeEnum[EventTypeEnum["SERVE"] = 2] = "SERVE";
6
- EventTypeEnum[EventTypeEnum["RECEPTION"] = 3] = "RECEPTION";
7
- EventTypeEnum[EventTypeEnum["SET"] = 4] = "SET";
8
- EventTypeEnum[EventTypeEnum["SPIKE"] = 5] = "SPIKE";
9
- EventTypeEnum[EventTypeEnum["BLOCK"] = 6] = "BLOCK";
10
- })(EventTypeEnum || (EventTypeEnum = {}));
11
1
  export class RallyEvent {
12
2
  constructor({ eventType, player }) {
13
3
  this.player = player;
@@ -6,7 +6,6 @@ export declare class Role {
6
6
  static readonly OUTSIDE_HITTER: Role;
7
7
  static readonly OPPOSITE_HITTER: Role;
8
8
  static readonly MIDDLE_BLOCKER: Role;
9
- static readonly DEFENSIVE_SPECIALIST: Role;
10
9
  private static readonly ROLES;
11
10
  readonly name: Roles;
12
11
  private constructor();
@@ -37,6 +37,4 @@ Role.LIBERO = new Role('LIBERO');
37
37
  Role.OUTSIDE_HITTER = new Role('OUTSIDE_HITTER');
38
38
  Role.OPPOSITE_HITTER = new Role('OPPOSITE_HITTER');
39
39
  Role.MIDDLE_BLOCKER = new Role('MIDDLE_BLOCKER');
40
- Role.DEFENSIVE_SPECIALIST = new Role('DEFENSIVE_SPECIALIST');
41
- Role.ROLES = [Role.LIBERO, Role.SETTER, Role.OPPOSITE_HITTER, Role.OUTSIDE_HITTER, Role.MIDDLE_BLOCKER,
42
- Role.DEFENSIVE_SPECIALIST];
40
+ Role.ROLES = [Role.LIBERO, Role.SETTER, Role.OPPOSITE_HITTER, Role.OUTSIDE_HITTER, Role.MIDDLE_BLOCKER];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volleyballsimtypes",
3
- "version": "0.0.150",
3
+ "version": "0.0.153",
4
4
  "description": "vbsim types",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",