volleyballsimtypes 0.0.74 → 0.0.76

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 (149) hide show
  1. package/dist/cjs/src/api/events.d.ts +14 -14
  2. package/dist/cjs/src/api/index.d.ts +7 -8
  3. package/dist/cjs/src/api/index.js +21 -3
  4. package/dist/cjs/src/data/index.d.ts +4 -6
  5. package/dist/cjs/src/data/index.js +18 -93
  6. package/dist/cjs/src/data/models/index.d.ts +62 -64
  7. package/dist/cjs/src/data/models/index.js +33 -33
  8. package/dist/cjs/src/data/transformers/block.js +12 -12
  9. package/dist/cjs/src/data/transformers/court-target.d.ts +3 -3
  10. package/dist/cjs/src/data/transformers/court-target.js +14 -14
  11. package/dist/cjs/src/data/transformers/event-type.d.ts +3 -3
  12. package/dist/cjs/src/data/transformers/event-type.js +9 -9
  13. package/dist/cjs/src/data/transformers/index.d.ts +35 -36
  14. package/dist/cjs/src/data/transformers/index.js +49 -124
  15. package/dist/cjs/src/data/transformers/libero-replacement.js +3 -3
  16. package/dist/cjs/src/data/transformers/rally.js +8 -8
  17. package/dist/cjs/src/data/transformers/reception.js +11 -11
  18. package/dist/cjs/src/data/transformers/serve.js +12 -12
  19. package/dist/cjs/src/data/transformers/set.js +11 -11
  20. package/dist/cjs/src/data/transformers/spike.js +13 -13
  21. package/dist/cjs/src/index.d.ts +4 -6
  22. package/dist/cjs/src/index.js +20 -65
  23. package/dist/cjs/src/service/coach/formation.d.ts +6 -6
  24. package/dist/cjs/src/service/coach/formation.js +1 -1
  25. package/dist/cjs/src/service/coach/index.d.ts +2 -3
  26. package/dist/cjs/src/service/coach/index.js +16 -5
  27. package/dist/cjs/src/service/competition/index.d.ts +7 -8
  28. package/dist/cjs/src/service/competition/index.js +21 -15
  29. package/dist/cjs/src/service/country/index.d.ts +1 -2
  30. package/dist/cjs/src/service/country/index.js +15 -3
  31. package/dist/cjs/src/service/draft/index.d.ts +2 -3
  32. package/dist/cjs/src/service/draft/index.js +16 -5
  33. package/dist/cjs/src/service/event/__stubs__/index.js +5 -5
  34. package/dist/cjs/src/service/event/block.d.ts +6 -6
  35. package/dist/cjs/src/service/event/block.js +22 -22
  36. package/dist/cjs/src/service/event/block.test.js +25 -25
  37. package/dist/cjs/src/service/event/in-play-event.d.ts +3 -3
  38. package/dist/cjs/src/service/event/index.d.ts +10 -11
  39. package/dist/cjs/src/service/event/index.js +24 -33
  40. package/dist/cjs/src/service/event/libero-replacement.d.ts +3 -3
  41. package/dist/cjs/src/service/event/libero-replacement.js +7 -7
  42. package/dist/cjs/src/service/event/libero-replacement.test.js +7 -7
  43. package/dist/cjs/src/service/event/rally-event.d.ts +3 -3
  44. package/dist/cjs/src/service/event/rally-event.js +12 -12
  45. package/dist/cjs/src/service/event/reception.d.ts +7 -7
  46. package/dist/cjs/src/service/event/reception.js +17 -17
  47. package/dist/cjs/src/service/event/reception.test.js +13 -13
  48. package/dist/cjs/src/service/event/score.test.js +2 -2
  49. package/dist/cjs/src/service/event/serve.d.ts +7 -7
  50. package/dist/cjs/src/service/event/serve.js +18 -18
  51. package/dist/cjs/src/service/event/serve.test.js +13 -13
  52. package/dist/cjs/src/service/event/set.d.ts +7 -7
  53. package/dist/cjs/src/service/event/set.js +17 -17
  54. package/dist/cjs/src/service/event/set.test.js +13 -13
  55. package/dist/cjs/src/service/event/spike.d.ts +7 -7
  56. package/dist/cjs/src/service/event/spike.js +20 -20
  57. package/dist/cjs/src/service/event/spike.test.js +20 -20
  58. package/dist/cjs/src/service/index.d.ts +9 -10
  59. package/dist/cjs/src/service/index.js +23 -68
  60. package/dist/cjs/src/service/match/{court-target.d.ts → court-target-enum.d.ts} +4 -4
  61. package/dist/cjs/src/service/match/court-target-enum.js +42 -0
  62. package/dist/cjs/src/service/match/court-target.test.js +18 -18
  63. package/dist/cjs/src/service/match/index.d.ts +7 -8
  64. package/dist/cjs/src/service/match/index.js +21 -18
  65. package/dist/cjs/src/service/match/rally.js +1 -1
  66. package/dist/cjs/src/service/match/rally.test.js +2 -2
  67. package/dist/cjs/src/service/player/index.d.ts +5 -6
  68. package/dist/cjs/src/service/player/index.js +19 -11
  69. package/dist/cjs/src/service/player/role.d.ts +13 -11
  70. package/dist/cjs/src/service/player/role.js +32 -20
  71. package/dist/cjs/src/service/player/trait.js +12 -5
  72. package/dist/cjs/src/service/team/index.d.ts +1 -2
  73. package/dist/cjs/src/service/team/index.js +15 -3
  74. package/dist/esm/src/api/events.d.ts +14 -14
  75. package/dist/esm/src/api/index.d.ts +7 -8
  76. package/dist/esm/src/api/index.js +7 -2
  77. package/dist/esm/src/data/index.d.ts +4 -6
  78. package/dist/esm/src/data/index.js +3 -4
  79. package/dist/esm/src/data/models/index.d.ts +62 -64
  80. package/dist/esm/src/data/models/index.js +32 -33
  81. package/dist/esm/src/data/transformers/block.js +13 -13
  82. package/dist/esm/src/data/transformers/court-target.d.ts +3 -3
  83. package/dist/esm/src/data/transformers/court-target.js +15 -15
  84. package/dist/esm/src/data/transformers/event-type.d.ts +3 -3
  85. package/dist/esm/src/data/transformers/event-type.js +10 -10
  86. package/dist/esm/src/data/transformers/index.d.ts +35 -36
  87. package/dist/esm/src/data/transformers/index.js +35 -36
  88. package/dist/esm/src/data/transformers/libero-replacement.js +4 -4
  89. package/dist/esm/src/data/transformers/rally.js +9 -9
  90. package/dist/esm/src/data/transformers/reception.js +12 -12
  91. package/dist/esm/src/data/transformers/serve.js +13 -13
  92. package/dist/esm/src/data/transformers/set.js +12 -12
  93. package/dist/esm/src/data/transformers/spike.js +14 -14
  94. package/dist/esm/src/index.d.ts +4 -6
  95. package/dist/esm/src/index.js +3 -4
  96. package/dist/esm/src/service/coach/formation.d.ts +6 -6
  97. package/dist/esm/src/service/coach/formation.js +1 -1
  98. package/dist/esm/src/service/coach/index.d.ts +2 -3
  99. package/dist/esm/src/service/coach/index.js +2 -3
  100. package/dist/esm/src/service/competition/index.d.ts +7 -8
  101. package/dist/esm/src/service/competition/index.js +7 -8
  102. package/dist/esm/src/service/country/index.d.ts +1 -2
  103. package/dist/esm/src/service/country/index.js +1 -2
  104. package/dist/esm/src/service/draft/index.d.ts +2 -3
  105. package/dist/esm/src/service/draft/index.js +2 -3
  106. package/dist/esm/src/service/event/__stubs__/index.js +8 -8
  107. package/dist/esm/src/service/event/block.d.ts +6 -6
  108. package/dist/esm/src/service/event/block.js +21 -21
  109. package/dist/esm/src/service/event/block.test.js +28 -28
  110. package/dist/esm/src/service/event/in-play-event.d.ts +3 -3
  111. package/dist/esm/src/service/event/index.d.ts +10 -11
  112. package/dist/esm/src/service/event/index.js +10 -11
  113. package/dist/esm/src/service/event/libero-replacement.d.ts +3 -3
  114. package/dist/esm/src/service/event/libero-replacement.js +7 -7
  115. package/dist/esm/src/service/event/libero-replacement.test.js +9 -9
  116. package/dist/esm/src/service/event/rally-event.d.ts +3 -3
  117. package/dist/esm/src/service/event/rally-event.js +11 -11
  118. package/dist/esm/src/service/event/reception.d.ts +7 -7
  119. package/dist/esm/src/service/event/reception.js +16 -16
  120. package/dist/esm/src/service/event/reception.test.js +16 -16
  121. package/dist/esm/src/service/event/score.test.js +3 -3
  122. package/dist/esm/src/service/event/serve.d.ts +7 -7
  123. package/dist/esm/src/service/event/serve.js +17 -17
  124. package/dist/esm/src/service/event/serve.test.js +16 -16
  125. package/dist/esm/src/service/event/set.d.ts +7 -7
  126. package/dist/esm/src/service/event/set.js +16 -16
  127. package/dist/esm/src/service/event/set.test.js +16 -16
  128. package/dist/esm/src/service/event/spike.d.ts +7 -7
  129. package/dist/esm/src/service/event/spike.js +19 -19
  130. package/dist/esm/src/service/event/spike.test.js +23 -23
  131. package/dist/esm/src/service/index.d.ts +9 -10
  132. package/dist/esm/src/service/index.js +9 -10
  133. package/dist/esm/src/service/match/{court-target.d.ts → court-target-enum.d.ts} +4 -4
  134. package/dist/esm/src/service/match/court-target-enum.js +39 -0
  135. package/dist/esm/src/service/match/court-target.test.js +18 -18
  136. package/dist/esm/src/service/match/index.d.ts +7 -8
  137. package/dist/esm/src/service/match/index.js +7 -8
  138. package/dist/esm/src/service/match/rally.js +2 -2
  139. package/dist/esm/src/service/match/rally.test.js +3 -3
  140. package/dist/esm/src/service/player/index.d.ts +5 -6
  141. package/dist/esm/src/service/player/index.js +5 -6
  142. package/dist/esm/src/service/player/role.d.ts +13 -11
  143. package/dist/esm/src/service/player/role.js +31 -20
  144. package/dist/esm/src/service/player/trait.js +12 -5
  145. package/dist/esm/src/service/team/index.d.ts +1 -2
  146. package/dist/esm/src/service/team/index.js +1 -2
  147. package/package.json +1 -1
  148. package/dist/cjs/src/service/match/court-target.js +0 -42
  149. package/dist/esm/src/service/match/court-target.js +0 -39
@@ -5,30 +5,42 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Role = void 0;
7
7
  const role_formula_json_1 = __importDefault(require("../../../data/role.formula.json"));
8
- var Role;
9
- (function (Role) {
10
- Role["SETTER"] = "Setter";
11
- Role["LIBERO"] = "Libero";
12
- Role["OUTSIDE_HITTER"] = "Outside Hitter";
13
- Role["OPPOSITE_HITTER"] = "Opposite Hitter";
14
- Role["MIDDLE_BLOCKER"] = "Middle Blocker";
15
- Role["DEFENSIVE_SPECIALIST"] = "Defensive Specialist";
16
- })(Role = exports.Role || (exports.Role = {}));
17
- // eslint-disable-next-line @typescript-eslint/no-namespace
18
- (function (Role) {
19
- const ROLES = [Role.LIBERO, Role.SETTER, Role.OPPOSITE_HITTER, Role.OUTSIDE_HITTER, Role.MIDDLE_BLOCKER,
20
- Role.DEFENSIVE_SPECIALIST];
21
- function getRoles() {
22
- return [...ROLES];
8
+ class Role {
9
+ constructor(name) {
10
+ this.name = name;
23
11
  }
24
- Role.getRoles = getRoles;
25
- function calculateScore(stats, role) {
26
- const weights = role_formula_json_1.default.find(r => r.role === role);
12
+ static getRoles() {
13
+ return [...Role.ROLES];
14
+ }
15
+ static calculateScore(stats, role) {
16
+ const weights = role_formula_json_1.default.find(r => r.role === role.name);
27
17
  if (weights == null)
28
18
  throw new Error('COULD_NOT_FIND_ROLE_WEIGHT');
29
19
  const score = Object.entries(weights.weight)
30
20
  .reduce((score, [key, value]) => score + (stats[key] * weights.weight[key]), 0);
31
21
  return Math.round(score);
32
22
  }
33
- Role.calculateScore = calculateScore;
34
- })(Role = exports.Role || (exports.Role = {}));
23
+ static assignRoles(stats) {
24
+ const scores = this.getRoles().map(role => ({
25
+ role,
26
+ score: this.calculateScore(stats, role)
27
+ })).sort((x, y) => y.score - x.score);
28
+ const out = [scores[0].role];
29
+ if (scores[1].score >= 60) {
30
+ out.push(scores[1].role);
31
+ }
32
+ if (scores[2].score >= 70) {
33
+ out.push(scores[2].role);
34
+ }
35
+ return out;
36
+ }
37
+ }
38
+ exports.Role = Role;
39
+ Role.SETTER = new Role('Setter');
40
+ Role.LIBERO = new Role('Libero');
41
+ Role.OUTSIDE_HITTER = new Role('Outside Hitter');
42
+ Role.OPPOSITE_HITTER = new Role('Opposite Hitter');
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];
@@ -41,15 +41,18 @@ class Trait {
41
41
  }
42
42
  }
43
43
  exports.Trait = Trait;
44
+ // A Setter gets a bonus to their score and the receiving attacker gets a bonus as well.
45
+ // Stacks with attacker bonus
44
46
  Trait.MASTER_MIND = new Trait({
45
47
  name: 'Master Mind',
46
48
  roles: [role_1.Role.SETTER],
47
49
  modifier: 1.25,
48
- chance: 0.15,
50
+ chance: 0.25,
49
51
  statThreshold: 80,
50
52
  stat: stats_1.GeneralStat.ATTACK,
51
53
  weight: 10
52
54
  });
55
+ // Will always participate in blocking regardless of chance
53
56
  Trait.MOVING_WALL = new Trait({
54
57
  name: 'Moving Wall',
55
58
  roles: [role_1.Role.MIDDLE_BLOCKER, role_1.Role.DEFENSIVE_SPECIALIST],
@@ -59,6 +62,7 @@ Trait.MOVING_WALL = new Trait({
59
62
  stat: stats_1.GeneralStat.DEFENSE,
60
63
  weight: 5
61
64
  });
65
+ // On attack, will always pick the worst receiver
62
66
  Trait.MARKSMAN = new Trait({
63
67
  name: 'Marksman',
64
68
  roles: [role_1.Role.OUTSIDE_HITTER, role_1.Role.OPPOSITE_HITTER, role_1.Role.SETTER],
@@ -68,15 +72,17 @@ Trait.MARKSMAN = new Trait({
68
72
  stat: stats_1.GeneralStat.ATTACK,
69
73
  weight: 5
70
74
  });
75
+ // Increases the score of the serve by 25% when serve type is Jumping.
71
76
  Trait.METEOR_SERVE = new Trait({
72
77
  name: 'Meteor Serve',
73
78
  roles: [role_1.Role.OUTSIDE_HITTER, role_1.Role.OPPOSITE_HITTER, role_1.Role.SETTER, role_1.Role.DEFENSIVE_SPECIALIST, role_1.Role.MIDDLE_BLOCKER],
74
- modifier: 1.33,
75
- chance: 0.25,
79
+ modifier: 1.25,
80
+ chance: 0.1,
76
81
  statThreshold: 75,
77
82
  stat: stats_1.GeneralStat.SERVE,
78
83
  weight: 10
79
84
  });
85
+ // Has a 50% chance of taking an action without decreasing energy.
80
86
  Trait.VIGOROUS = new Trait({
81
87
  name: 'Vigorous',
82
88
  roles: [],
@@ -86,12 +92,13 @@ Trait.VIGOROUS = new Trait({
86
92
  stat: stats_1.GeneralStat.PHYSICAL,
87
93
  weight: 1
88
94
  });
95
+ // Takes place of the receiver and increases reception score by 25%. Can only trigger in back-row.
89
96
  Trait.GUARDIAN = new Trait({
90
97
  name: 'Guardian',
91
98
  roles: [role_1.Role.DEFENSIVE_SPECIALIST, role_1.Role.LIBERO],
92
- chance: 0.33,
99
+ chance: 0.25,
93
100
  statThreshold: 75,
94
- modifier: 1.2,
101
+ modifier: 1.25,
95
102
  stat: stats_1.GeneralStat.DEFENSE,
96
103
  weight: 10
97
104
  });
@@ -1,2 +1 @@
1
- import { Team } from './team';
2
- export { Team };
1
+ export * from './team';
@@ -1,5 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Team = void 0;
4
- const team_1 = require("./team");
5
- Object.defineProperty(exports, "Team", { enumerable: true, get: function () { return team_1.Team; } });
17
+ __exportStar(require("./team"), exports);
@@ -1,19 +1,19 @@
1
- import { BlockFailure, BlockType, CourtTarget, EventType, LiberoReplacementType, ReceptionFailure, ReceptionType, ServeFailure, ServeType, SetFailure, SetType, SpikeFailure, SpikeType } from '../service';
1
+ import { BlockFailureEnum, BlockTypeEnum, CourtTargetEnum, EventTypeEnum, LiberoReplacementTypeEnum, ReceptionFailureEnum, ReceptionTypeEnum, ServeFailureEnum, ServeTypeEnum, SetFailureEnum, SetTypeEnum, SpikeFailureEnum, SpikeTypeEnum } from '../service';
2
2
  export interface APIEvent {
3
3
  readonly id: string;
4
4
  readonly order: number;
5
5
  readonly playerId: string;
6
- readonly eventType: EventType;
6
+ readonly eventType: EventTypeEnum;
7
7
  }
8
8
  export interface APILiberoReplacement extends APIEvent {
9
- readonly type: LiberoReplacementType;
9
+ readonly type: LiberoReplacementTypeEnum;
10
10
  readonly liberoId: string;
11
11
  }
12
12
  export interface APISubstitution extends APIEvent {
13
13
  readonly playerOutId: string;
14
14
  }
15
15
  export interface APIInPlayEvent extends APIEvent {
16
- readonly target: CourtTarget;
16
+ readonly target: CourtTargetEnum;
17
17
  readonly modifier: number;
18
18
  readonly score: number;
19
19
  }
@@ -21,23 +21,23 @@ export interface APIScore extends APIEvent {
21
21
  readonly teamId: string;
22
22
  }
23
23
  export interface APIServe extends APIInPlayEvent {
24
- readonly type: ServeType;
25
- readonly failure: ServeFailure;
24
+ readonly type: ServeTypeEnum;
25
+ readonly failure: ServeFailureEnum;
26
26
  }
27
27
  export interface APISet extends APIInPlayEvent {
28
- readonly type: SetType;
29
- readonly failure: SetFailure;
28
+ readonly type: SetTypeEnum;
29
+ readonly failure: SetFailureEnum;
30
30
  }
31
31
  export interface APISpike extends APIInPlayEvent {
32
- readonly failure: SpikeFailure;
33
- readonly type: SpikeType;
32
+ readonly failure: SpikeFailureEnum;
33
+ readonly type: SpikeTypeEnum;
34
34
  }
35
35
  export interface APIReception extends APIInPlayEvent {
36
- readonly type: ReceptionType;
37
- readonly failure: ReceptionFailure;
36
+ readonly type: ReceptionTypeEnum;
37
+ readonly failure: ReceptionFailureEnum;
38
38
  }
39
39
  export interface APIBlock extends APIInPlayEvent {
40
- readonly failure: BlockFailure;
41
- readonly type: BlockType;
40
+ readonly failure: BlockFailureEnum;
41
+ readonly type: BlockTypeEnum;
42
42
  readonly blockers: string[];
43
43
  }
@@ -1,8 +1,7 @@
1
- import { APIBlock, APIEvent, APIInPlayEvent, APILiberoReplacement, APIReception, APIScore, APIServe, APISet, APISpike, APISubstitution } from './events';
2
- import { APILeague, APISeason } from './league';
3
- import { APIMatch, APIMatchSet, APIRally, APISetStatistics } from './match';
4
- import { APIPlayer, APITrait } from './player';
5
- import { APITeam } from './team';
6
- import { APICoach } from './coach';
7
- import { APITournament, APITournamentMatch } from './tournament';
8
- export { APICoach, APITeam, APIReception, APIScore, APIServe, APISet, APISpike, APISubstitution, APIMatchSet, APISetStatistics, APIInPlayEvent, APILeague, APIMatch, APIPlayer, APISeason, APIEvent, APILiberoReplacement, APIBlock, APITrait, APIRally, APITournament, APITournamentMatch };
1
+ export * from './events';
2
+ export * from './league';
3
+ export * from './match';
4
+ export * from './player';
5
+ export * from './team';
6
+ export * from './coach';
7
+ export * from './tournament';
@@ -1,2 +1,7 @@
1
- import { APITrait } from './player';
2
- export { APITrait };
1
+ export * from './events';
2
+ export * from './league';
3
+ export * from './match';
4
+ export * from './player';
5
+ export * from './team';
6
+ export * from './coach';
7
+ export * from './tournament';
@@ -1,6 +1,4 @@
1
- import type { MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk, DraftPk, DraftId, DraftCreationAttributes, DraftPickCreationAttributes, DraftPickId, DraftPickPk, PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk, BlockCreationAttributes, BlockFailure, BlockId, BlockPk, BlockType, CoachCreationAttributes, CoachId, CoachPk, CountryCreationAttributes, CountryId, CountryPk, CourtPositionType, CourtTarget, EventCreationAttributes, EventId, EventPk, EventType, FormationType, LeagueCreationAttributes, LeagueId, LeaguePk, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementPk, LiberoReplacementType, MatchCreationAttributes, MatchId, MatchPk, MatchSetCreationAttributes, MatchSetId, MatchSetPk, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsPk, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsPk, PlayerCreationAttributes, PlayerId, PlayerPk, RallyCreationAttributes, RallyId, RallyPk, RallyPositionCreationAttributes, RallyPositionId, RallyPositionPk, ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionPk, ReceptionType, RoleType, ScoreCreationAttributes, ScoreId, ScorePk, SeasonCreationAttributes, SeasonId, SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchPk, SeasonPk, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsPk, ServeCreationAttributes, ServeFailure, ServeId, ServePk, ServeType, SetCreationAttributes, SetFailure, SetId, SetPk, SetType, Side, SpikeCreationAttributes, SpikeFailure, SpikeId, SpikePk, SpikeType, SubstitutionCreationAttributes, SubstitutionId, SubstitutionPk, TeamCreationAttributes, TeamId, TeamPk, TournamentCreationAttributes, TournamentId, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentPk, TournamentStage, TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsPk, TraitType, IterationPk, IterationCreationAttributes, IterationId, UserCreationAttributes, UserOptionalAttributes, UserRole, UserId, UserPk } from './models';
2
- import { UserAttributes, UserModel, MatchRatingModel, MatchRatingAttributes, DraftModel, DraftAttributes, DraftPickAttributes, DraftPickModel, PlayerTeamModel, PlayerTeamAttributes, BlockAttributes, BlockModel, BlockOptionalAttributes, CoachAttributes, CoachModel, CoachOptionalAttributes, CountryAttributes, CountryModel, EventAttributes, EventModel, LeagueAttributes, LeagueModel, LiberoReplacementAttributes, LiberoReplacementModel, MatchAttributes, MatchModel, MatchSetAttributes, MatchSetModel, MatchSetOptionalAttributes, MatchSetStatsAttributes, MatchSetStatsModel, MatchSetStatsOptionalAttributes, PerformanceStatsAttributes, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PlayerAttributes, PlayerModel, RallyAttributes, RallyModel, RallyPositionAttributes, RallyPositionModel, ReceptionAttributes, ReceptionModel, ScoreAttributes, ScoreModel, SeasonAttributes, SeasonMatchAttributes, SeasonMatchModel, SeasonModel, SeasonTeamsAttributes, SeasonTeamsModel, ServeAttributes, ServeModel, SetAttributes, SetModel, SpikeAttributes, SpikeModel, SubstitutionAttributes, SubstitutionModel, TeamAttributes, TeamModel, TournamentAttributes, TournamentMatchAttributes, TournamentMatchModel, TournamentModel, TournamentOptionalAttributes, TournamentTeamsAttributes, TournamentTeamsModel, IterationModel, IterationAttributes } from './models';
3
- import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromSeasonMatch, transformFromServe, transformFromSet, transformFromSpike, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILeague, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait, transformToIteration, transformFromIteration, transformFromPlayerTeam, transformFromMatchRating, transformFromDraft, transformToDraft, transformFromDraftPick, transformToDraftPick } from './transformers';
4
- import { initModels } from './init-models';
5
- export { initModels, transformToStage, transformFromDraft, transformToDraft, transformFromDraftPick, transformToDraftPick, transformFromStage, transformFromPlayerTeam, transformFromMatchRating, MatchRatingModel, MatchRatingAttributes, DraftModel, DraftAttributes, DraftPickAttributes, DraftPickModel, PlayerTeamModel, PlayerTeamAttributes, SeasonMatchModel, SeasonMatchAttributes, TournamentAttributes, TournamentModel, TournamentMatchAttributes, TournamentMatchModel, BlockAttributes, BlockModel, BlockOptionalAttributes, CoachAttributes, CoachModel, CoachOptionalAttributes, CountryAttributes, CountryModel, EventAttributes, EventModel, LeagueAttributes, LeagueModel, LiberoReplacementAttributes, LiberoReplacementModel, MatchAttributes, MatchModel, MatchSetAttributes, MatchSetModel, MatchSetOptionalAttributes, MatchSetStatsAttributes, MatchSetStatsModel, MatchSetStatsOptionalAttributes, PerformanceStatsAttributes, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PlayerAttributes, PlayerModel, RallyAttributes, RallyModel, RallyPositionAttributes, RallyPositionModel, ReceptionAttributes, ReceptionModel, ScoreAttributes, ScoreModel, SeasonAttributes, SeasonModel, SeasonTeamsAttributes, SeasonTeamsModel, ServeAttributes, ServeModel, SetAttributes, SetModel, SpikeAttributes, SpikeModel, SubstitutionAttributes, SubstitutionModel, TeamAttributes, TeamModel, UserAttributes, UserModel, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformFromSeasonMatch, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPILeague, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToAPICoach, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch, transformToIteration, transformFromIteration, TournamentTeamsAttributes, TournamentTeamsModel, IterationModel, IterationAttributes, };
6
- export type { UserCreationAttributes, UserOptionalAttributes, UserRole, UserId, UserPk, MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk, DraftPk, DraftId, DraftCreationAttributes, DraftPickCreationAttributes, DraftPickId, DraftPickPk, PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk, TournamentOptionalAttributes, TournamentId, TournamentPk, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockId, BlockPk, CoachId, CoachPk, CountryId, CountryPk, SeasonMatchId, SeasonMatchPk, EventId, EventPk, LeagueId, LeaguePk, LiberoReplacementId, LiberoReplacementPk, MatchId, MatchPk, MatchSetId, MatchSetPk, MatchSetStatsId, MatchSetStatsPk, PerformanceStatsId, PerformanceStatsPk, PlayerId, PlayerPk, RallyId, RallyPk, RallyPositionId, RallyPositionPk, ReceptionId, ReceptionPk, RoleType, ScoreId, ScorePk, SeasonId, SeasonPk, SeasonTeamsId, SeasonTeamsPk, ServeId, ServePk, SetId, SetPk, SpikeId, SpikePk, SubstitutionId, SubstitutionPk, TeamId, TeamPk, TraitType, EventType, BlockFailure, BlockType, FormationType, ServeFailure, SpikeFailure, SpikeType, SetType, ReceptionFailure, SetFailure, ServeType, ReceptionType, CourtPositionType, Side, CourtTarget, LiberoReplacementType, TournamentTeamsId, TournamentTeamsPk, TournamentCreationAttributes, TournamentMatchCreationAttributes, BlockCreationAttributes, CoachCreationAttributes, CountryCreationAttributes, SeasonMatchCreationAttributes, EventCreationAttributes, LeagueCreationAttributes, LiberoReplacementCreationAttributes, MatchCreationAttributes, MatchSetCreationAttributes, MatchSetStatsCreationAttributes, PerformanceStatsCreationAttributes, PlayerCreationAttributes, RallyCreationAttributes, RallyPositionCreationAttributes, ReceptionCreationAttributes, ScoreCreationAttributes, SeasonCreationAttributes, SeasonTeamsCreationAttributes, ServeCreationAttributes, SetCreationAttributes, SpikeCreationAttributes, SubstitutionCreationAttributes, TeamCreationAttributes, TournamentTeamsCreationAttributes, IterationCreationAttributes, IterationId, IterationPk };
1
+ export type { MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk, DraftPk, DraftId, DraftCreationAttributes, DraftPickCreationAttributes, DraftPickId, DraftPickPk, PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk, BlockCreationAttributes, BlockFailure, BlockId, BlockPk, BlockType, CoachCreationAttributes, CoachId, CoachPk, CountryCreationAttributes, CountryId, CountryPk, CourtPositionType, CourtTarget, EventCreationAttributes, EventId, EventPk, EventType, FormationType, LeagueCreationAttributes, LeagueId, LeaguePk, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementPk, LiberoReplacementType, MatchCreationAttributes, MatchId, MatchPk, MatchSetCreationAttributes, MatchSetId, MatchSetPk, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsPk, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsPk, PlayerCreationAttributes, PlayerId, PlayerPk, RallyCreationAttributes, RallyId, RallyPk, RallyPositionCreationAttributes, RallyPositionId, RallyPositionPk, ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionPk, ReceptionType, RoleType, ScoreCreationAttributes, ScoreId, ScorePk, SeasonCreationAttributes, SeasonId, SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchPk, SeasonPk, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsPk, ServeCreationAttributes, ServeFailure, ServeId, ServePk, ServeType, SetCreationAttributes, SetFailure, SetId, SetPk, SetType, Side, SpikeCreationAttributes, SpikeFailure, SpikeId, SpikePk, SpikeType, SubstitutionCreationAttributes, SubstitutionId, SubstitutionPk, TeamCreationAttributes, TeamId, TeamPk, TournamentCreationAttributes, TournamentId, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentPk, TournamentStage, TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsPk, TraitType, IterationPk, IterationCreationAttributes, IterationId, UserCreationAttributes, UserOptionalAttributes, UserRole, UserId, UserPk } from './models';
2
+ export { UserAttributes, UserModel, MatchRatingModel, MatchRatingAttributes, DraftModel, DraftAttributes, DraftPickAttributes, DraftPickModel, PlayerTeamModel, PlayerTeamAttributes, BlockAttributes, BlockModel, BlockOptionalAttributes, CoachAttributes, CoachModel, CoachOptionalAttributes, CountryAttributes, CountryModel, EventAttributes, EventModel, LeagueAttributes, LeagueModel, LiberoReplacementAttributes, LiberoReplacementModel, MatchAttributes, MatchModel, MatchSetAttributes, MatchSetModel, MatchSetOptionalAttributes, MatchSetStatsAttributes, MatchSetStatsModel, MatchSetStatsOptionalAttributes, PerformanceStatsAttributes, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PlayerAttributes, PlayerModel, RallyAttributes, RallyModel, RallyPositionAttributes, RallyPositionModel, ReceptionAttributes, ReceptionModel, ScoreAttributes, ScoreModel, SeasonAttributes, SeasonMatchAttributes, SeasonMatchModel, SeasonModel, SeasonTeamsAttributes, SeasonTeamsModel, ServeAttributes, ServeModel, SetAttributes, SetModel, SpikeAttributes, SpikeModel, SubstitutionAttributes, SubstitutionModel, TeamAttributes, TeamModel, TournamentAttributes, TournamentMatchAttributes, TournamentMatchModel, TournamentModel, TournamentOptionalAttributes, TournamentTeamsAttributes, TournamentTeamsModel, IterationModel, IterationAttributes } from './models';
3
+ export * from './transformers';
4
+ export { initModels } from './init-models';
@@ -1,4 +1,3 @@
1
- import { UserModel, MatchRatingModel, DraftModel, DraftPickModel, PlayerTeamModel, BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonMatchModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchModel, TournamentModel, TournamentTeamsModel, IterationModel } from './models';
2
- import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromSeasonMatch, transformFromServe, transformFromSet, transformFromSpike, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILeague, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait, transformToIteration, transformFromIteration, transformFromPlayerTeam, transformFromMatchRating, transformFromDraft, transformToDraft, transformFromDraftPick, transformToDraftPick, } from './transformers';
3
- import { initModels } from './init-models';
4
- export { initModels, transformToStage, transformFromDraft, transformToDraft, transformFromDraftPick, transformToDraftPick, transformFromStage, transformFromPlayerTeam, transformFromMatchRating, MatchRatingModel, DraftModel, DraftPickModel, PlayerTeamModel, SeasonMatchModel, TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, UserModel, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformFromSeasonMatch, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPILeague, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToAPICoach, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch, transformToIteration, transformFromIteration, TournamentTeamsModel, IterationModel, };
1
+ export { UserModel, MatchRatingModel, DraftModel, DraftPickModel, PlayerTeamModel, BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonMatchModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchModel, TournamentModel, TournamentTeamsModel, IterationModel } from './models';
2
+ export * from './transformers';
3
+ export { initModels } from './init-models';
@@ -1,64 +1,62 @@
1
- import type { BlockCreationAttributes, BlockFailure, BlockId, BlockOptionalAttributes, BlockPk, BlockType } from './block';
2
- import { BlockAttributes, BlockModel } from './block';
3
- import type { CoachCreationAttributes, CoachId, CoachOptionalAttributes, CoachPk, FormationType } from './coach';
4
- import { CoachAttributes, CoachModel } from './coach';
5
- import type { CountryCreationAttributes, CountryId, CountryPk } from './country';
6
- import { CountryAttributes, CountryModel } from './country';
7
- import type { DraftCreationAttributes, DraftId, DraftPk } from './draft';
8
- import { DraftAttributes, DraftModel } from './draft';
9
- import type { DraftPickCreationAttributes, DraftPickId, DraftPickPk } from './draft-pick';
10
- import { DraftPickAttributes, DraftPickModel } from './draft-pick';
11
- import type { PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk } from './player-team';
12
- import { PlayerTeamAttributes, PlayerTeamModel } from './player-team';
13
- import type { CourtTarget, EventCreationAttributes, EventId, EventPk, EventType } from './event';
14
- import { EventAttributes, EventModel } from './event';
15
- import type { IterationCreationAttributes, IterationId, IterationPk } from './iteration';
16
- import { IterationAttributes, IterationModel } from './iteration';
17
- import type { LeagueCreationAttributes, LeagueId, LeaguePk } from './league';
18
- import { LeagueAttributes, LeagueModel } from './league';
19
- import type { LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementPk, LiberoReplacementType } from './libero-replacement';
20
- import { LiberoReplacementAttributes, LiberoReplacementModel } from './libero-replacement';
21
- import type { MatchCreationAttributes, MatchId, MatchPk } from './match';
22
- import { MatchAttributes, MatchModel } from './match';
23
- import type { MatchSetCreationAttributes, MatchSetId, MatchSetOptionalAttributes, MatchSetPk } from './match-set';
24
- import { MatchSetAttributes, MatchSetModel } from './match-set';
25
- import type { MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsOptionalAttributes, MatchSetStatsPk } from './match-set-stats';
26
- import { MatchSetStatsAttributes, MatchSetStatsModel } from './match-set-stats';
27
- import type { PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsOptionalAttributes, PerformanceStatsPk } from './performance-stats';
28
- import { PerformanceStatsAttributes, PerformanceStatsModel } from './performance-stats';
29
- import type { PlayerCreationAttributes, PlayerId, PlayerPk, RoleType, TraitType } from './player';
30
- import { PlayerAttributes, PlayerModel } from './player';
31
- import { RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk } from './rally';
32
- import { CourtPositionType, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, Side } from './rally-position';
33
- import type { ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionPk, ReceptionType } from './reception';
34
- import { ReceptionAttributes, ReceptionModel } from './reception';
35
- import type { ScoreCreationAttributes, ScoreId, ScorePk } from './score';
36
- import { ScoreAttributes, ScoreModel } from './score';
37
- import type { SeasonCreationAttributes, SeasonId, SeasonPk } from './season';
38
- import { SeasonAttributes, SeasonModel } from './season';
39
- import type { SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsPk } from './season-teams';
40
- import { SeasonTeamsAttributes, SeasonTeamsModel } from './season-teams';
41
- import type { SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchPk } from './season-match';
42
- import { SeasonMatchAttributes, SeasonMatchModel } from './season-match';
43
- import type { ServeCreationAttributes, ServeFailure, ServeId, ServePk, ServeType } from './serve';
44
- import { ServeAttributes, ServeModel } from './serve';
45
- import type { SetCreationAttributes, SetFailure, SetId, SetPk, SetType } from './set';
46
- import { SetAttributes, SetModel } from './set';
47
- import type { SpikeCreationAttributes, SpikeFailure, SpikeId, SpikePk, SpikeType } from './spike';
48
- import { SpikeAttributes, SpikeModel } from './spike';
49
- import type { SubstitutionCreationAttributes, SubstitutionId, SubstitutionPk } from './substitution';
50
- import { SubstitutionAttributes, SubstitutionModel } from './substitution';
51
- import type { TeamCreationAttributes, TeamId, TeamPk } from './team';
52
- import { TeamAttributes, TeamModel } from './team';
53
- import type { TournamentCreationAttributes, TournamentId, TournamentOptionalAttributes, TournamentPk } from './tournament';
54
- import { TournamentAttributes, TournamentModel } from './tournament';
55
- import type { TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage } from './tournament-match';
56
- import { TournamentMatchAttributes, TournamentMatchModel } from './tournament-match';
57
- import type { TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsPk } from './tournament-teams';
58
- import { TournamentTeamsAttributes, TournamentTeamsModel } from './tournament-teams';
59
- import type { MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk } from './match-rating';
60
- import { MatchRatingAttributes, MatchRatingModel } from './match-rating';
61
- import type { UserCreationAttributes, UserId, UserOptionalAttributes, UserPk, UserRole } from './user';
62
- import { UserAttributes, UserModel } from './user';
63
- export type { MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk, DraftPk, DraftId, DraftCreationAttributes, DraftPickCreationAttributes, DraftPickId, DraftPickPk, PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk, TournamentId, TournamentPk, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockId, BlockPk, CoachId, CoachPk, CountryId, CountryPk, SeasonMatchId, SeasonMatchPk, EventId, EventPk, LeagueId, LeaguePk, LiberoReplacementId, LiberoReplacementPk, MatchId, MatchPk, MatchSetId, MatchSetPk, MatchSetStatsId, MatchSetStatsPk, PerformanceStatsId, PerformanceStatsPk, PlayerId, PlayerPk, RallyId, RallyPk, RallyPositionId, RallyPositionPk, ReceptionId, ReceptionPk, RoleType, ScoreId, ScorePk, SeasonId, SeasonPk, SeasonTeamsId, SeasonTeamsPk, ServeId, ServePk, SetId, SetPk, SpikeId, SpikePk, SubstitutionId, SubstitutionPk, TeamId, TeamPk, TraitType, EventType, BlockFailure, BlockType, FormationType, ServeFailure, SpikeFailure, SpikeType, SetType, ReceptionFailure, SetFailure, ServeType, ReceptionType, CourtPositionType, Side, CourtTarget, LiberoReplacementType, TournamentTeamsId, TournamentTeamsPk, TournamentCreationAttributes, TournamentMatchCreationAttributes, BlockCreationAttributes, CoachCreationAttributes, CountryCreationAttributes, SeasonMatchCreationAttributes, EventCreationAttributes, LeagueCreationAttributes, LiberoReplacementCreationAttributes, MatchCreationAttributes, MatchSetCreationAttributes, MatchSetStatsCreationAttributes, PerformanceStatsCreationAttributes, PlayerCreationAttributes, RallyCreationAttributes, RallyPositionCreationAttributes, ReceptionCreationAttributes, ScoreCreationAttributes, SeasonCreationAttributes, SeasonTeamsCreationAttributes, ServeCreationAttributes, SetCreationAttributes, SpikeCreationAttributes, SubstitutionCreationAttributes, TeamCreationAttributes, TournamentTeamsCreationAttributes, IterationPk, IterationId, IterationCreationAttributes, UserCreationAttributes, UserOptionalAttributes, UserRole, UserId, UserPk };
64
- export { UserAttributes, UserModel, MatchRatingModel, MatchRatingAttributes, DraftModel, DraftAttributes, DraftPickAttributes, DraftPickModel, PlayerTeamModel, PlayerTeamAttributes, TournamentAttributes, TournamentMatchAttributes, BlockAttributes, BlockOptionalAttributes, CoachAttributes, CoachOptionalAttributes, CountryAttributes, SeasonMatchAttributes, EventAttributes, LeagueAttributes, LiberoReplacementAttributes, MatchAttributes, MatchSetAttributes, MatchSetOptionalAttributes, MatchSetStatsAttributes, MatchSetStatsOptionalAttributes, PerformanceStatsAttributes, PerformanceStatsOptionalAttributes, PlayerAttributes, RallyAttributes, RallyPositionAttributes, ReceptionAttributes, ScoreAttributes, SeasonAttributes, SeasonTeamsAttributes, ServeAttributes, SetAttributes, SpikeAttributes, SubstitutionAttributes, TeamAttributes, TournamentOptionalAttributes, TournamentTeamsAttributes, TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, SeasonMatchModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentTeamsModel, IterationAttributes, IterationModel };
1
+ export type { BlockCreationAttributes, BlockFailure, BlockId, BlockOptionalAttributes, BlockPk, BlockType } from './block';
2
+ export { BlockAttributes, BlockModel } from './block';
3
+ export type { CoachCreationAttributes, CoachId, CoachOptionalAttributes, CoachPk, FormationType } from './coach';
4
+ export { CoachAttributes, CoachModel } from './coach';
5
+ export type { CountryCreationAttributes, CountryId, CountryPk } from './country';
6
+ export { CountryAttributes, CountryModel } from './country';
7
+ export type { DraftCreationAttributes, DraftId, DraftPk } from './draft';
8
+ export { DraftAttributes, DraftModel } from './draft';
9
+ export type { DraftPickCreationAttributes, DraftPickId, DraftPickPk } from './draft-pick';
10
+ export { DraftPickAttributes, DraftPickModel } from './draft-pick';
11
+ export type { PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk } from './player-team';
12
+ export { PlayerTeamAttributes, PlayerTeamModel } from './player-team';
13
+ export type { CourtTarget, EventCreationAttributes, EventId, EventPk, EventType } from './event';
14
+ export { EventAttributes, EventModel } from './event';
15
+ export type { IterationCreationAttributes, IterationId, IterationPk } from './iteration';
16
+ export { IterationAttributes, IterationModel } from './iteration';
17
+ export type { LeagueCreationAttributes, LeagueId, LeaguePk } from './league';
18
+ export { LeagueAttributes, LeagueModel } from './league';
19
+ export type { LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementPk, LiberoReplacementType } from './libero-replacement';
20
+ export { LiberoReplacementAttributes, LiberoReplacementModel } from './libero-replacement';
21
+ export type { MatchCreationAttributes, MatchId, MatchPk } from './match';
22
+ export { MatchAttributes, MatchModel } from './match';
23
+ export type { MatchSetCreationAttributes, MatchSetId, MatchSetOptionalAttributes, MatchSetPk } from './match-set';
24
+ export { MatchSetAttributes, MatchSetModel } from './match-set';
25
+ export type { MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsOptionalAttributes, MatchSetStatsPk } from './match-set-stats';
26
+ export { MatchSetStatsAttributes, MatchSetStatsModel } from './match-set-stats';
27
+ export type { PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsOptionalAttributes, PerformanceStatsPk } from './performance-stats';
28
+ export { PerformanceStatsAttributes, PerformanceStatsModel } from './performance-stats';
29
+ export type { PlayerCreationAttributes, PlayerId, PlayerPk, RoleType, TraitType } from './player';
30
+ export { PlayerAttributes, PlayerModel } from './player';
31
+ export { RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk } from './rally';
32
+ export { CourtPositionType, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, Side } from './rally-position';
33
+ export type { ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionPk, ReceptionType } from './reception';
34
+ export { ReceptionAttributes, ReceptionModel } from './reception';
35
+ export type { ScoreCreationAttributes, ScoreId, ScorePk } from './score';
36
+ export { ScoreAttributes, ScoreModel } from './score';
37
+ export type { SeasonCreationAttributes, SeasonId, SeasonPk } from './season';
38
+ export { SeasonAttributes, SeasonModel } from './season';
39
+ export type { SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsPk } from './season-teams';
40
+ export { SeasonTeamsAttributes, SeasonTeamsModel } from './season-teams';
41
+ export type { SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchPk } from './season-match';
42
+ export { SeasonMatchAttributes, SeasonMatchModel } from './season-match';
43
+ export type { ServeCreationAttributes, ServeFailure, ServeId, ServePk, ServeType } from './serve';
44
+ export { ServeAttributes, ServeModel } from './serve';
45
+ export type { SetCreationAttributes, SetFailure, SetId, SetPk, SetType } from './set';
46
+ export { SetAttributes, SetModel } from './set';
47
+ export type { SpikeCreationAttributes, SpikeFailure, SpikeId, SpikePk, SpikeType } from './spike';
48
+ export { SpikeAttributes, SpikeModel } from './spike';
49
+ export type { SubstitutionCreationAttributes, SubstitutionId, SubstitutionPk } from './substitution';
50
+ export { SubstitutionAttributes, SubstitutionModel } from './substitution';
51
+ export type { TeamCreationAttributes, TeamId, TeamPk } from './team';
52
+ export { TeamAttributes, TeamModel } from './team';
53
+ export type { TournamentCreationAttributes, TournamentId, TournamentOptionalAttributes, TournamentPk } from './tournament';
54
+ export { TournamentAttributes, TournamentModel } from './tournament';
55
+ export type { TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage } from './tournament-match';
56
+ export { TournamentMatchAttributes, TournamentMatchModel } from './tournament-match';
57
+ export type { TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsPk } from './tournament-teams';
58
+ export { TournamentTeamsAttributes, TournamentTeamsModel } from './tournament-teams';
59
+ export type { MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk } from './match-rating';
60
+ export { MatchRatingAttributes, MatchRatingModel } from './match-rating';
61
+ export type { UserCreationAttributes, UserId, UserOptionalAttributes, UserPk, UserRole } from './user';
62
+ export { UserAttributes, UserModel } from './user';
@@ -1,33 +1,32 @@
1
- import { BlockModel } from './block';
2
- import { CoachModel } from './coach';
3
- import { CountryModel } from './country';
4
- import { DraftModel } from './draft';
5
- import { DraftPickModel } from './draft-pick';
6
- import { PlayerTeamModel } from './player-team';
7
- import { EventModel } from './event';
8
- import { IterationModel } from './iteration';
9
- import { LeagueModel } from './league';
10
- import { LiberoReplacementModel } from './libero-replacement';
11
- import { MatchModel } from './match';
12
- import { MatchSetModel } from './match-set';
13
- import { MatchSetStatsModel } from './match-set-stats';
14
- import { PerformanceStatsModel } from './performance-stats';
15
- import { PlayerModel } from './player';
16
- import { RallyModel } from './rally';
17
- import { RallyPositionModel } from './rally-position';
18
- import { ReceptionModel } from './reception';
19
- import { ScoreModel } from './score';
20
- import { SeasonModel } from './season';
21
- import { SeasonTeamsModel } from './season-teams';
22
- import { SeasonMatchModel } from './season-match';
23
- import { ServeModel } from './serve';
24
- import { SetModel } from './set';
25
- import { SpikeModel } from './spike';
26
- import { SubstitutionModel } from './substitution';
27
- import { TeamModel } from './team';
28
- import { TournamentModel } from './tournament';
29
- import { TournamentMatchModel } from './tournament-match';
30
- import { TournamentTeamsModel } from './tournament-teams';
31
- import { MatchRatingModel } from './match-rating';
32
- import { UserModel } from './user';
33
- export { UserModel, MatchRatingModel, DraftModel, DraftPickModel, PlayerTeamModel, TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, SeasonMatchModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentTeamsModel, IterationModel };
1
+ export { BlockModel } from './block';
2
+ export { CoachModel } from './coach';
3
+ export { CountryModel } from './country';
4
+ export { DraftModel } from './draft';
5
+ export { DraftPickModel } from './draft-pick';
6
+ export { PlayerTeamModel } from './player-team';
7
+ export { EventModel } from './event';
8
+ export { IterationModel } from './iteration';
9
+ export { LeagueModel } from './league';
10
+ export { LiberoReplacementModel } from './libero-replacement';
11
+ export { MatchModel } from './match';
12
+ export { MatchSetModel } from './match-set';
13
+ export { MatchSetStatsModel } from './match-set-stats';
14
+ export { PerformanceStatsModel } from './performance-stats';
15
+ export { PlayerModel } from './player';
16
+ export { RallyModel } from './rally';
17
+ export { RallyPositionModel } from './rally-position';
18
+ export { ReceptionModel } from './reception';
19
+ export { ScoreModel } from './score';
20
+ export { SeasonModel } from './season';
21
+ export { SeasonTeamsModel } from './season-teams';
22
+ export { SeasonMatchModel } from './season-match';
23
+ export { ServeModel } from './serve';
24
+ export { SetModel } from './set';
25
+ export { SpikeModel } from './spike';
26
+ export { SubstitutionModel } from './substitution';
27
+ export { TeamModel } from './team';
28
+ export { TournamentModel } from './tournament';
29
+ export { TournamentMatchModel } from './tournament-match';
30
+ export { TournamentTeamsModel } from './tournament-teams';
31
+ export { MatchRatingModel } from './match-rating';
32
+ export { UserModel } from './user';
@@ -1,42 +1,42 @@
1
- import { Block, BlockFailure, BlockType } from '../../service';
1
+ import { Block, BlockFailureEnum, BlockTypeEnum } from '../../service';
2
2
  import { transformFromCourtTarget, transformFromEventType, transformToCourtTarget, transformToEventType, transformToPlayer } from '.';
3
3
  function transformToBlockFailure(failure) {
4
4
  switch (failure) {
5
- case BlockFailure.NO_FAILURE:
5
+ case BlockFailureEnum.NO_FAILURE:
6
6
  return 'NO_FAILURE';
7
- case BlockFailure.FAULT:
7
+ case BlockFailureEnum.FAULT:
8
8
  return 'FAULT';
9
- case BlockFailure.MISS:
9
+ case BlockFailureEnum.MISS:
10
10
  return 'MISS';
11
- case BlockFailure.OUT_OF_BOUNDS:
11
+ case BlockFailureEnum.OUT_OF_BOUNDS:
12
12
  return 'OUT_OF_BOUNDS';
13
- case BlockFailure.WIPE:
13
+ case BlockFailureEnum.WIPE:
14
14
  return 'WIPE';
15
- case BlockFailure.TOOL:
15
+ case BlockFailureEnum.TOOL:
16
16
  return 'TOOL';
17
17
  default:
18
18
  throw new Error('UNKNOWN_ROLE');
19
19
  }
20
20
  }
21
21
  function transformFromBlockFailure(failure) {
22
- return BlockFailure[failure];
22
+ return BlockFailureEnum[failure];
23
23
  }
24
24
  function transformToBlockType(type) {
25
25
  switch (type) {
26
- case BlockType.NO_BLOCKER:
26
+ case BlockTypeEnum.NO_BLOCKER:
27
27
  return 'NO_BLOCKER';
28
- case BlockType.SINGLE:
28
+ case BlockTypeEnum.SINGLE:
29
29
  return 'SINGLE';
30
- case BlockType.DOUBLE:
30
+ case BlockTypeEnum.DOUBLE:
31
31
  return 'DOUBLE';
32
- case BlockType.TRIPLE:
32
+ case BlockTypeEnum.TRIPLE:
33
33
  return 'TRIPLE';
34
34
  default:
35
35
  throw new Error('UNKNOWN_ROLE');
36
36
  }
37
37
  }
38
38
  function transformFromBlockType(type) {
39
- return BlockType[type];
39
+ return BlockTypeEnum[type];
40
40
  }
41
41
  function transformToAttributes(event, rallyId) {
42
42
  return {
@@ -1,5 +1,5 @@
1
- import { CourtTarget } from '../../service';
1
+ import { CourtTargetEnum } from '../../service';
2
2
  import { CourtTarget as CourtTargetType } from '../models';
3
- declare function transformToType(target: CourtTarget): CourtTargetType;
4
- declare function transformFromType(target: CourtTargetType): CourtTarget;
3
+ declare function transformToType(target: CourtTargetEnum): CourtTargetType;
4
+ declare function transformFromType(target: CourtTargetType): CourtTargetEnum;
5
5
  export { transformToType as transformFromCourtTarget, transformFromType as transformToCourtTarget };