volleyballsimtypes 0.0.76 → 0.0.77

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 (97) hide show
  1. package/dist/cjs/src/data/index.d.ts +1 -2
  2. package/dist/cjs/src/data/index.js +2 -34
  3. package/dist/cjs/src/data/models/block.d.ts +3 -1
  4. package/dist/cjs/src/data/models/block.js +8 -7
  5. package/dist/cjs/src/data/models/event.d.ts +3 -1
  6. package/dist/cjs/src/data/models/event.js +8 -7
  7. package/dist/cjs/src/data/models/index.d.ts +32 -62
  8. package/dist/cjs/src/data/models/index.js +46 -65
  9. package/dist/cjs/src/data/models/iteration.d.ts +1 -1
  10. package/dist/cjs/src/data/models/iteration.js +2 -2
  11. package/dist/cjs/src/data/models/reception.d.ts +3 -1
  12. package/dist/cjs/src/data/models/reception.js +8 -7
  13. package/dist/cjs/src/data/models/serve.d.ts +3 -1
  14. package/dist/cjs/src/data/models/serve.js +8 -7
  15. package/dist/cjs/src/data/models/set.d.ts +3 -1
  16. package/dist/cjs/src/data/models/set.js +8 -7
  17. package/dist/cjs/src/data/models/spike.d.ts +3 -1
  18. package/dist/cjs/src/data/models/spike.js +8 -7
  19. package/dist/cjs/src/data/transformers/block.js +4 -2
  20. package/dist/cjs/src/data/transformers/reception.js +4 -2
  21. package/dist/cjs/src/data/transformers/serve.js +4 -2
  22. package/dist/cjs/src/data/transformers/set.js +4 -2
  23. package/dist/cjs/src/data/transformers/spike.js +4 -2
  24. package/dist/cjs/src/index.d.ts +1 -2
  25. package/dist/cjs/src/index.js +1 -124
  26. package/dist/cjs/src/service/event/__stubs__/index.js +2 -1
  27. package/dist/cjs/src/service/event/block.d.ts +1 -1
  28. package/dist/cjs/src/service/event/block.js +2 -2
  29. package/dist/cjs/src/service/event/block.test.js +10 -5
  30. package/dist/cjs/src/service/event/in-play-event.d.ts +4 -2
  31. package/dist/cjs/src/service/event/in-play-event.js +6 -5
  32. package/dist/cjs/src/service/event/libero-replacement.d.ts +1 -1
  33. package/dist/cjs/src/service/event/libero-replacement.js +2 -2
  34. package/dist/cjs/src/service/event/reception.d.ts +1 -1
  35. package/dist/cjs/src/service/event/reception.js +2 -2
  36. package/dist/cjs/src/service/event/reception.test.js +4 -2
  37. package/dist/cjs/src/service/event/serve.d.ts +1 -1
  38. package/dist/cjs/src/service/event/serve.js +2 -2
  39. package/dist/cjs/src/service/event/serve.test.js +4 -2
  40. package/dist/cjs/src/service/event/set.d.ts +1 -1
  41. package/dist/cjs/src/service/event/set.js +2 -2
  42. package/dist/cjs/src/service/event/set.test.js +4 -2
  43. package/dist/cjs/src/service/event/spike.d.ts +1 -1
  44. package/dist/cjs/src/service/event/spike.js +2 -2
  45. package/dist/cjs/src/service/event/spike.test.js +6 -3
  46. package/dist/cjs/src/service/player/role.d.ts +1 -1
  47. package/dist/cjs/src/service/team/team.d.ts +3 -3
  48. package/dist/cjs/src/service/team/team.js +6 -6
  49. package/dist/esm/src/data/index.d.ts +1 -2
  50. package/dist/esm/src/data/index.js +1 -1
  51. package/dist/esm/src/data/models/block.d.ts +3 -1
  52. package/dist/esm/src/data/models/block.js +8 -7
  53. package/dist/esm/src/data/models/event.d.ts +3 -1
  54. package/dist/esm/src/data/models/event.js +8 -7
  55. package/dist/esm/src/data/models/index.d.ts +32 -62
  56. package/dist/esm/src/data/models/index.js +32 -32
  57. package/dist/esm/src/data/models/iteration.d.ts +1 -1
  58. package/dist/esm/src/data/models/iteration.js +2 -2
  59. package/dist/esm/src/data/models/reception.d.ts +3 -1
  60. package/dist/esm/src/data/models/reception.js +8 -7
  61. package/dist/esm/src/data/models/serve.d.ts +3 -1
  62. package/dist/esm/src/data/models/serve.js +8 -7
  63. package/dist/esm/src/data/models/set.d.ts +3 -1
  64. package/dist/esm/src/data/models/set.js +8 -7
  65. package/dist/esm/src/data/models/spike.d.ts +3 -1
  66. package/dist/esm/src/data/models/spike.js +8 -7
  67. package/dist/esm/src/data/transformers/block.js +5 -3
  68. package/dist/esm/src/data/transformers/reception.js +5 -3
  69. package/dist/esm/src/data/transformers/serve.js +5 -3
  70. package/dist/esm/src/data/transformers/set.js +5 -3
  71. package/dist/esm/src/data/transformers/spike.js +5 -3
  72. package/dist/esm/src/index.d.ts +1 -2
  73. package/dist/esm/src/index.js +1 -1
  74. package/dist/esm/src/service/event/__stubs__/index.js +2 -1
  75. package/dist/esm/src/service/event/block.d.ts +1 -1
  76. package/dist/esm/src/service/event/block.js +2 -2
  77. package/dist/esm/src/service/event/block.test.js +10 -5
  78. package/dist/esm/src/service/event/in-play-event.d.ts +4 -2
  79. package/dist/esm/src/service/event/in-play-event.js +6 -5
  80. package/dist/esm/src/service/event/libero-replacement.d.ts +1 -1
  81. package/dist/esm/src/service/event/libero-replacement.js +3 -3
  82. package/dist/esm/src/service/event/reception.d.ts +1 -1
  83. package/dist/esm/src/service/event/reception.js +2 -2
  84. package/dist/esm/src/service/event/reception.test.js +4 -2
  85. package/dist/esm/src/service/event/serve.d.ts +1 -1
  86. package/dist/esm/src/service/event/serve.js +2 -2
  87. package/dist/esm/src/service/event/serve.test.js +4 -2
  88. package/dist/esm/src/service/event/set.d.ts +1 -1
  89. package/dist/esm/src/service/event/set.js +2 -2
  90. package/dist/esm/src/service/event/set.test.js +4 -2
  91. package/dist/esm/src/service/event/spike.d.ts +1 -1
  92. package/dist/esm/src/service/event/spike.js +2 -2
  93. package/dist/esm/src/service/event/spike.test.js +6 -3
  94. package/dist/esm/src/service/player/role.d.ts +1 -1
  95. package/dist/esm/src/service/team/team.d.ts +3 -3
  96. package/dist/esm/src/service/team/team.js +6 -6
  97. package/package.json +1 -1
@@ -1,4 +1,3 @@
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';
1
+ export * from './models';
3
2
  export * from './transformers';
4
3
  export { initModels } from './init-models';
@@ -14,40 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.initModels = exports.IterationModel = exports.TournamentTeamsModel = exports.TournamentModel = exports.TournamentMatchModel = exports.TeamModel = exports.SubstitutionModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = exports.SeasonTeamsModel = exports.SeasonModel = exports.SeasonMatchModel = exports.ScoreModel = exports.ReceptionModel = exports.RallyPositionModel = exports.RallyModel = exports.PlayerModel = exports.PerformanceStatsModel = exports.MatchSetStatsModel = exports.MatchSetModel = exports.MatchModel = exports.LiberoReplacementModel = exports.LeagueModel = exports.EventModel = exports.CountryModel = exports.CoachModel = exports.BlockModel = exports.PlayerTeamModel = exports.DraftPickModel = exports.DraftModel = exports.MatchRatingModel = exports.UserModel = void 0;
18
- var models_1 = require("./models");
19
- Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return models_1.UserModel; } });
20
- Object.defineProperty(exports, "MatchRatingModel", { enumerable: true, get: function () { return models_1.MatchRatingModel; } });
21
- Object.defineProperty(exports, "DraftModel", { enumerable: true, get: function () { return models_1.DraftModel; } });
22
- Object.defineProperty(exports, "DraftPickModel", { enumerable: true, get: function () { return models_1.DraftPickModel; } });
23
- Object.defineProperty(exports, "PlayerTeamModel", { enumerable: true, get: function () { return models_1.PlayerTeamModel; } });
24
- Object.defineProperty(exports, "BlockModel", { enumerable: true, get: function () { return models_1.BlockModel; } });
25
- Object.defineProperty(exports, "CoachModel", { enumerable: true, get: function () { return models_1.CoachModel; } });
26
- Object.defineProperty(exports, "CountryModel", { enumerable: true, get: function () { return models_1.CountryModel; } });
27
- Object.defineProperty(exports, "EventModel", { enumerable: true, get: function () { return models_1.EventModel; } });
28
- Object.defineProperty(exports, "LeagueModel", { enumerable: true, get: function () { return models_1.LeagueModel; } });
29
- Object.defineProperty(exports, "LiberoReplacementModel", { enumerable: true, get: function () { return models_1.LiberoReplacementModel; } });
30
- Object.defineProperty(exports, "MatchModel", { enumerable: true, get: function () { return models_1.MatchModel; } });
31
- Object.defineProperty(exports, "MatchSetModel", { enumerable: true, get: function () { return models_1.MatchSetModel; } });
32
- Object.defineProperty(exports, "MatchSetStatsModel", { enumerable: true, get: function () { return models_1.MatchSetStatsModel; } });
33
- Object.defineProperty(exports, "PerformanceStatsModel", { enumerable: true, get: function () { return models_1.PerformanceStatsModel; } });
34
- Object.defineProperty(exports, "PlayerModel", { enumerable: true, get: function () { return models_1.PlayerModel; } });
35
- Object.defineProperty(exports, "RallyModel", { enumerable: true, get: function () { return models_1.RallyModel; } });
36
- Object.defineProperty(exports, "RallyPositionModel", { enumerable: true, get: function () { return models_1.RallyPositionModel; } });
37
- Object.defineProperty(exports, "ReceptionModel", { enumerable: true, get: function () { return models_1.ReceptionModel; } });
38
- Object.defineProperty(exports, "ScoreModel", { enumerable: true, get: function () { return models_1.ScoreModel; } });
39
- Object.defineProperty(exports, "SeasonMatchModel", { enumerable: true, get: function () { return models_1.SeasonMatchModel; } });
40
- Object.defineProperty(exports, "SeasonModel", { enumerable: true, get: function () { return models_1.SeasonModel; } });
41
- Object.defineProperty(exports, "SeasonTeamsModel", { enumerable: true, get: function () { return models_1.SeasonTeamsModel; } });
42
- Object.defineProperty(exports, "ServeModel", { enumerable: true, get: function () { return models_1.ServeModel; } });
43
- Object.defineProperty(exports, "SetModel", { enumerable: true, get: function () { return models_1.SetModel; } });
44
- Object.defineProperty(exports, "SpikeModel", { enumerable: true, get: function () { return models_1.SpikeModel; } });
45
- Object.defineProperty(exports, "SubstitutionModel", { enumerable: true, get: function () { return models_1.SubstitutionModel; } });
46
- Object.defineProperty(exports, "TeamModel", { enumerable: true, get: function () { return models_1.TeamModel; } });
47
- Object.defineProperty(exports, "TournamentMatchModel", { enumerable: true, get: function () { return models_1.TournamentMatchModel; } });
48
- Object.defineProperty(exports, "TournamentModel", { enumerable: true, get: function () { return models_1.TournamentModel; } });
49
- Object.defineProperty(exports, "TournamentTeamsModel", { enumerable: true, get: function () { return models_1.TournamentTeamsModel; } });
50
- Object.defineProperty(exports, "IterationModel", { enumerable: true, get: function () { return models_1.IterationModel; } });
17
+ exports.initModels = void 0;
18
+ __exportStar(require("./models"), exports);
51
19
  __exportStar(require("./transformers"), exports);
52
20
  var init_models_1 = require("./init-models");
53
21
  Object.defineProperty(exports, "initModels", { enumerable: true, get: function () { return init_models_1.initModels; } });
@@ -1,6 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
- import type { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel } from '.';
3
+ import { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel, TraitType } from '.';
4
4
  export interface BlockAttributes {
5
5
  event_id: string;
6
6
  rally_id: string;
@@ -15,6 +15,7 @@ export interface BlockAttributes {
15
15
  blocker_3?: string;
16
16
  modifier: number;
17
17
  score: number;
18
+ active_traits: TraitType[];
18
19
  }
19
20
  export type BlockType = 'NO_BLOCKER' | 'SINGLE' | 'DOUBLE' | 'TRIPLE';
20
21
  export type BlockFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'WIPE' | 'TOOL';
@@ -36,6 +37,7 @@ export declare class BlockModel extends Model<BlockAttributes, BlockCreationAttr
36
37
  blocker_3?: string;
37
38
  modifier: number;
38
39
  score: number;
40
+ active_traits: TraitType[];
39
41
  player: PlayerModel;
40
42
  getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
41
43
  setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
@@ -77,21 +77,22 @@ class BlockModel extends sequelize_1.Model {
77
77
  score: {
78
78
  type: sequelize_1.DataTypes.REAL,
79
79
  allowNull: false
80
+ },
81
+ active_traits: {
82
+ type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM('MARKSMAN', 'MOVING_WALL', 'MASTER_MIND', 'METEOR_SERVE', 'VIGOROUS', 'GUARDIAN')),
83
+ allowNull: false,
84
+ defaultValue: [[]]
80
85
  }
81
86
  }, {
82
87
  sequelize,
83
88
  tableName: 'Block',
84
89
  schema: 'public',
85
90
  timestamps: false,
86
- indexes: [
87
- {
91
+ indexes: [{
88
92
  name: 'Block_pk',
89
93
  unique: true,
90
- fields: [
91
- { name: 'event_id' }
92
- ]
93
- }
94
- ]
94
+ fields: [{ name: 'event_id' }]
95
+ }]
95
96
  });
96
97
  }
97
98
  }
@@ -1,12 +1,13 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { PlayerId, PlayerModel, RallyId, RallyModel } from '.';
3
+ import { PlayerId, PlayerModel, RallyId, RallyModel, TraitType } from '.';
4
4
  export interface EventAttributes {
5
5
  event_id: string;
6
6
  rally_id: string;
7
7
  event_type: EventType;
8
8
  order: number;
9
9
  player_id: string;
10
+ active_traits: TraitType[];
10
11
  }
11
12
  export type EventType = 'LIBERO_REPLACEMENT' | 'SUBSTITUTION' | 'SERVE' | 'RECEPTION' | 'SET' | 'SPIKE' | 'BLOCK' | 'SCORE';
12
13
  export type CourtTarget = 'NO_TARGET' | 'OPPONENT_RIGHT_BACK' | 'OPPONENT_MIDDLE_BACK' | 'OPPONENT_LEFT_BACK' | 'OPPONENT_RIGHT_FRONT' | 'OPPONENT_MIDDLE_FRONT' | 'OPPONENT_LEFT_FRONT' | 'TEAM_LEFT_FRONT' | 'TEAM_MIDDLE_FRONT' | 'TEAM_RIGHT_FRONT' | 'TEAM_LEFT_BACK' | 'TEAM_MIDDLE_BACK' | 'TEAM_RIGHT_BACK';
@@ -19,6 +20,7 @@ export declare class EventModel extends Model<EventAttributes, EventCreationAttr
19
20
  event_type: EventType;
20
21
  order: number;
21
22
  player_id: string;
23
+ active_traits: TraitType[];
22
24
  player: PlayerModel;
23
25
  getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
24
26
  setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
@@ -33,21 +33,22 @@ class EventModel extends sequelize_1.Model {
33
33
  model: 'Player',
34
34
  key: 'player_id'
35
35
  }
36
+ },
37
+ active_traits: {
38
+ type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM('MARKSMAN', 'MOVING_WALL', 'MASTER_MIND', 'METEOR_SERVE', 'VIGOROUS', 'GUARDIAN')),
39
+ allowNull: false,
40
+ defaultValue: [[]]
36
41
  }
37
42
  }, {
38
43
  sequelize,
39
44
  tableName: 'Event',
40
45
  schema: 'public',
41
46
  timestamps: false,
42
- indexes: [
43
- {
47
+ indexes: [{
44
48
  name: 'Event_pk',
45
49
  unique: true,
46
- fields: [
47
- { name: 'event_id' }
48
- ]
49
- }
50
- ]
50
+ fields: [{ name: 'event_id' }]
51
+ }]
51
52
  });
52
53
  }
53
54
  }
@@ -1,62 +1,32 @@
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
+ export * from './block';
2
+ export * from './coach';
3
+ export * from './country';
4
+ export * from './draft';
5
+ export * from './draft-pick';
6
+ export * from './event';
7
+ export * from './iteration';
8
+ export * from './league';
9
+ export * from './libero-replacement';
10
+ export * from './match';
11
+ export * from './match-rating';
12
+ export * from './match-set';
13
+ export * from './match-set-stats';
14
+ export * from './performance-stats';
15
+ export * from './player';
16
+ export * from './player-team';
17
+ export * from './rally';
18
+ export * from './rally-position';
19
+ export * from './reception';
20
+ export * from './score';
21
+ export * from './season';
22
+ export * from './season-match';
23
+ export * from './season-teams';
24
+ export * from './serve';
25
+ export * from './set';
26
+ export * from './spike';
27
+ export * from './substitution';
28
+ export * from './team';
29
+ export * from './tournament';
30
+ export * from './tournament-match';
31
+ export * from './tournament-teams';
32
+ export * from './user';
@@ -1,67 +1,48 @@
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.UserModel = exports.MatchRatingModel = exports.TournamentTeamsModel = exports.TournamentMatchModel = exports.TournamentModel = exports.TeamModel = exports.SubstitutionModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = exports.SeasonMatchModel = exports.SeasonTeamsModel = exports.SeasonModel = exports.ScoreModel = exports.ReceptionModel = exports.RallyPositionModel = exports.RallyModel = exports.PlayerModel = exports.PerformanceStatsModel = exports.MatchSetStatsModel = exports.MatchSetModel = exports.MatchModel = exports.LiberoReplacementModel = exports.LeagueModel = exports.IterationModel = exports.EventModel = exports.PlayerTeamModel = exports.DraftPickModel = exports.DraftModel = exports.CountryModel = exports.CoachModel = exports.BlockModel = void 0;
4
- var block_1 = require("./block");
5
- Object.defineProperty(exports, "BlockModel", { enumerable: true, get: function () { return block_1.BlockModel; } });
6
- var coach_1 = require("./coach");
7
- Object.defineProperty(exports, "CoachModel", { enumerable: true, get: function () { return coach_1.CoachModel; } });
8
- var country_1 = require("./country");
9
- Object.defineProperty(exports, "CountryModel", { enumerable: true, get: function () { return country_1.CountryModel; } });
10
- var draft_1 = require("./draft");
11
- Object.defineProperty(exports, "DraftModel", { enumerable: true, get: function () { return draft_1.DraftModel; } });
12
- var draft_pick_1 = require("./draft-pick");
13
- Object.defineProperty(exports, "DraftPickModel", { enumerable: true, get: function () { return draft_pick_1.DraftPickModel; } });
14
- var player_team_1 = require("./player-team");
15
- Object.defineProperty(exports, "PlayerTeamModel", { enumerable: true, get: function () { return player_team_1.PlayerTeamModel; } });
16
- var event_1 = require("./event");
17
- Object.defineProperty(exports, "EventModel", { enumerable: true, get: function () { return event_1.EventModel; } });
18
- var iteration_1 = require("./iteration");
19
- Object.defineProperty(exports, "IterationModel", { enumerable: true, get: function () { return iteration_1.IterationModel; } });
20
- var league_1 = require("./league");
21
- Object.defineProperty(exports, "LeagueModel", { enumerable: true, get: function () { return league_1.LeagueModel; } });
22
- var libero_replacement_1 = require("./libero-replacement");
23
- Object.defineProperty(exports, "LiberoReplacementModel", { enumerable: true, get: function () { return libero_replacement_1.LiberoReplacementModel; } });
24
- var match_1 = require("./match");
25
- Object.defineProperty(exports, "MatchModel", { enumerable: true, get: function () { return match_1.MatchModel; } });
26
- var match_set_1 = require("./match-set");
27
- Object.defineProperty(exports, "MatchSetModel", { enumerable: true, get: function () { return match_set_1.MatchSetModel; } });
28
- var match_set_stats_1 = require("./match-set-stats");
29
- Object.defineProperty(exports, "MatchSetStatsModel", { enumerable: true, get: function () { return match_set_stats_1.MatchSetStatsModel; } });
30
- var performance_stats_1 = require("./performance-stats");
31
- Object.defineProperty(exports, "PerformanceStatsModel", { enumerable: true, get: function () { return performance_stats_1.PerformanceStatsModel; } });
32
- var player_1 = require("./player");
33
- Object.defineProperty(exports, "PlayerModel", { enumerable: true, get: function () { return player_1.PlayerModel; } });
34
- var rally_1 = require("./rally");
35
- Object.defineProperty(exports, "RallyModel", { enumerable: true, get: function () { return rally_1.RallyModel; } });
36
- var rally_position_1 = require("./rally-position");
37
- Object.defineProperty(exports, "RallyPositionModel", { enumerable: true, get: function () { return rally_position_1.RallyPositionModel; } });
38
- var reception_1 = require("./reception");
39
- Object.defineProperty(exports, "ReceptionModel", { enumerable: true, get: function () { return reception_1.ReceptionModel; } });
40
- var score_1 = require("./score");
41
- Object.defineProperty(exports, "ScoreModel", { enumerable: true, get: function () { return score_1.ScoreModel; } });
42
- var season_1 = require("./season");
43
- Object.defineProperty(exports, "SeasonModel", { enumerable: true, get: function () { return season_1.SeasonModel; } });
44
- var season_teams_1 = require("./season-teams");
45
- Object.defineProperty(exports, "SeasonTeamsModel", { enumerable: true, get: function () { return season_teams_1.SeasonTeamsModel; } });
46
- var season_match_1 = require("./season-match");
47
- Object.defineProperty(exports, "SeasonMatchModel", { enumerable: true, get: function () { return season_match_1.SeasonMatchModel; } });
48
- var serve_1 = require("./serve");
49
- Object.defineProperty(exports, "ServeModel", { enumerable: true, get: function () { return serve_1.ServeModel; } });
50
- var set_1 = require("./set");
51
- Object.defineProperty(exports, "SetModel", { enumerable: true, get: function () { return set_1.SetModel; } });
52
- var spike_1 = require("./spike");
53
- Object.defineProperty(exports, "SpikeModel", { enumerable: true, get: function () { return spike_1.SpikeModel; } });
54
- var substitution_1 = require("./substitution");
55
- Object.defineProperty(exports, "SubstitutionModel", { enumerable: true, get: function () { return substitution_1.SubstitutionModel; } });
56
- var team_1 = require("./team");
57
- Object.defineProperty(exports, "TeamModel", { enumerable: true, get: function () { return team_1.TeamModel; } });
58
- var tournament_1 = require("./tournament");
59
- Object.defineProperty(exports, "TournamentModel", { enumerable: true, get: function () { return tournament_1.TournamentModel; } });
60
- var tournament_match_1 = require("./tournament-match");
61
- Object.defineProperty(exports, "TournamentMatchModel", { enumerable: true, get: function () { return tournament_match_1.TournamentMatchModel; } });
62
- var tournament_teams_1 = require("./tournament-teams");
63
- Object.defineProperty(exports, "TournamentTeamsModel", { enumerable: true, get: function () { return tournament_teams_1.TournamentTeamsModel; } });
64
- var match_rating_1 = require("./match-rating");
65
- Object.defineProperty(exports, "MatchRatingModel", { enumerable: true, get: function () { return match_rating_1.MatchRatingModel; } });
66
- var user_1 = require("./user");
67
- Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return user_1.UserModel; } });
17
+ __exportStar(require("./block"), exports);
18
+ __exportStar(require("./coach"), exports);
19
+ __exportStar(require("./country"), exports);
20
+ __exportStar(require("./draft"), exports);
21
+ __exportStar(require("./draft-pick"), exports);
22
+ __exportStar(require("./event"), exports);
23
+ __exportStar(require("./iteration"), exports);
24
+ __exportStar(require("./league"), exports);
25
+ __exportStar(require("./libero-replacement"), exports);
26
+ __exportStar(require("./match"), exports);
27
+ __exportStar(require("./match-rating"), exports);
28
+ __exportStar(require("./match-set"), exports);
29
+ __exportStar(require("./match-set-stats"), exports);
30
+ __exportStar(require("./performance-stats"), exports);
31
+ __exportStar(require("./player"), exports);
32
+ __exportStar(require("./player-team"), exports);
33
+ __exportStar(require("./rally"), exports);
34
+ __exportStar(require("./rally-position"), exports);
35
+ __exportStar(require("./reception"), exports);
36
+ __exportStar(require("./score"), exports);
37
+ __exportStar(require("./season"), exports);
38
+ __exportStar(require("./season-match"), exports);
39
+ __exportStar(require("./season-teams"), exports);
40
+ __exportStar(require("./serve"), exports);
41
+ __exportStar(require("./set"), exports);
42
+ __exportStar(require("./spike"), exports);
43
+ __exportStar(require("./substitution"), exports);
44
+ __exportStar(require("./team"), exports);
45
+ __exportStar(require("./tournament"), exports);
46
+ __exportStar(require("./tournament-match"), exports);
47
+ __exportStar(require("./tournament-teams"), exports);
48
+ __exportStar(require("./user"), exports);
@@ -5,7 +5,7 @@ export interface IterationAttributes {
5
5
  iteration_id: number;
6
6
  start_date: Date;
7
7
  }
8
- export type IterationPk = "iteration_id";
8
+ export type IterationPk = 'iteration_id';
9
9
  export type IterationId = IterationModel[IterationPk];
10
10
  export type IterationCreationAttributes = IterationAttributes;
11
11
  export declare class IterationModel extends Model<IterationAttributes, IterationCreationAttributes> implements IterationAttributes {
@@ -23,10 +23,10 @@ class IterationModel extends sequelize_1.Model {
23
23
  timestamps: false,
24
24
  indexes: [
25
25
  {
26
- name: "Iteration_pk",
26
+ name: 'Iteration_pk',
27
27
  unique: true,
28
28
  fields: [
29
- { name: "iteration_id" },
29
+ { name: 'iteration_id' },
30
30
  ]
31
31
  },
32
32
  ]
@@ -1,6 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel } from '.';
3
+ import { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel, TraitType } from '.';
4
4
  export interface ReceptionAttributes {
5
5
  event_id: string;
6
6
  rally_id: string;
@@ -12,6 +12,7 @@ export interface ReceptionAttributes {
12
12
  player_id: string;
13
13
  modifier: number;
14
14
  score: number;
15
+ active_traits: TraitType[];
15
16
  }
16
17
  export type ReceptionFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'BAD_PASS';
17
18
  export type ReceptionType = 'DIG' | 'OVERHAND' | 'ONE_HAND' | 'OTHER_BODY_PART';
@@ -29,6 +30,7 @@ export declare class ReceptionModel extends Model<ReceptionAttributes, Reception
29
30
  player_id: string;
30
31
  modifier: number;
31
32
  score: number;
33
+ active_traits: TraitType[];
32
34
  player: PlayerModel;
33
35
  getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
34
36
  setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
@@ -53,21 +53,22 @@ class ReceptionModel extends sequelize_1.Model {
53
53
  score: {
54
54
  type: sequelize_1.DataTypes.REAL,
55
55
  allowNull: false
56
+ },
57
+ active_traits: {
58
+ type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM('MARKSMAN', 'MOVING_WALL', 'MASTER_MIND', 'METEOR_SERVE', 'VIGOROUS', 'GUARDIAN')),
59
+ allowNull: false,
60
+ defaultValue: [[]]
56
61
  }
57
62
  }, {
58
63
  sequelize,
59
64
  tableName: 'Reception',
60
65
  schema: 'public',
61
66
  timestamps: false,
62
- indexes: [
63
- {
67
+ indexes: [{
64
68
  name: 'Reception_pk',
65
69
  unique: true,
66
- fields: [
67
- { name: 'event_id' }
68
- ]
69
- }
70
- ]
70
+ fields: [{ name: 'event_id' }]
71
+ }]
71
72
  });
72
73
  }
73
74
  }
@@ -1,6 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel } from '.';
3
+ import { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel, TraitType } from '.';
4
4
  export interface ServeAttributes {
5
5
  event_id: string;
6
6
  rally_id: string;
@@ -12,6 +12,7 @@ export interface ServeAttributes {
12
12
  modifier: number;
13
13
  score: number;
14
14
  type: ServeType;
15
+ active_traits: TraitType[];
15
16
  }
16
17
  export type ServeFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'NET' | 'OUT_OF_BOUNDS';
17
18
  export type ServeType = 'UNDERHAND' | 'OVERHAND_TOPSPIN' | 'OVERHAND_FLOAT' | 'JUMP_TOPSPIN' | 'JUMP_FLOAT';
@@ -29,6 +30,7 @@ export declare class ServeModel extends Model<ServeAttributes, ServeCreationAttr
29
30
  modifier: number;
30
31
  score: number;
31
32
  type: ServeType;
33
+ active_traits: TraitType[];
32
34
  player: PlayerModel;
33
35
  getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
34
36
  setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
@@ -53,21 +53,22 @@ class ServeModel extends sequelize_1.Model {
53
53
  type: {
54
54
  type: sequelize_1.DataTypes.ENUM('UNDERHAND', 'OVERHAND_TOPSPIN', 'OVERHAND_FLOAT', 'JUMP_TOPSPIN', 'JUMP_FLOAT'),
55
55
  allowNull: false
56
+ },
57
+ active_traits: {
58
+ type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM('MARKSMAN', 'MOVING_WALL', 'MASTER_MIND', 'METEOR_SERVE', 'VIGOROUS', 'GUARDIAN')),
59
+ allowNull: false,
60
+ defaultValue: [[]]
56
61
  }
57
62
  }, {
58
63
  sequelize,
59
64
  tableName: 'Serve',
60
65
  schema: 'public',
61
66
  timestamps: false,
62
- indexes: [
63
- {
67
+ indexes: [{
64
68
  name: 'Serve_pk',
65
69
  unique: true,
66
- fields: [
67
- { name: 'event_id' }
68
- ]
69
- }
70
- ]
70
+ fields: [{ name: 'event_id' }]
71
+ }]
71
72
  });
72
73
  }
73
74
  }
@@ -1,6 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel } from '.';
3
+ import { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel, TraitType } from '.';
4
4
  export interface SetAttributes {
5
5
  event_id: string;
6
6
  rally_id: string;
@@ -12,6 +12,7 @@ export interface SetAttributes {
12
12
  player_id: string;
13
13
  modifier: number;
14
14
  score: number;
15
+ active_traits: TraitType[];
15
16
  }
16
17
  export type SetFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'BAD_PASS';
17
18
  export type SetType = 'OVERHAND' | 'UNDERHAND' | 'SPIKE' | 'DUMP';
@@ -29,6 +30,7 @@ export declare class SetModel extends Model<SetAttributes, SetCreationAttributes
29
30
  player_id: string;
30
31
  modifier: number;
31
32
  score: number;
33
+ active_traits: TraitType[];
32
34
  player: PlayerModel;
33
35
  getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
34
36
  setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
@@ -53,21 +53,22 @@ class SetModel extends sequelize_1.Model {
53
53
  score: {
54
54
  type: sequelize_1.DataTypes.REAL,
55
55
  allowNull: false
56
+ },
57
+ active_traits: {
58
+ type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM('MARKSMAN', 'MOVING_WALL', 'MASTER_MIND', 'METEOR_SERVE', 'VIGOROUS', 'GUARDIAN')),
59
+ allowNull: false,
60
+ defaultValue: [[]]
56
61
  }
57
62
  }, {
58
63
  sequelize,
59
64
  tableName: 'Set',
60
65
  schema: 'public',
61
66
  timestamps: false,
62
- indexes: [
63
- {
67
+ indexes: [{
64
68
  name: 'Set_pk',
65
69
  unique: true,
66
- fields: [
67
- { name: 'event_id' }
68
- ]
69
- }
70
- ]
70
+ fields: [{ name: 'event_id' }]
71
+ }]
71
72
  });
72
73
  }
73
74
  }
@@ -1,6 +1,6 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model } from 'sequelize';
3
- import type { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel } from '.';
3
+ import { CourtTarget, EventType, PlayerId, PlayerModel, RallyId, RallyModel, TraitType } from '.';
4
4
  export interface SpikeAttributes {
5
5
  event_id: string;
6
6
  rally_id: string;
@@ -12,6 +12,7 @@ export interface SpikeAttributes {
12
12
  player_id: string;
13
13
  modifier: number;
14
14
  score: number;
15
+ active_traits: TraitType[];
15
16
  }
16
17
  export type SpikeType = 'CROSS_SHOT' | 'LINE_SHOT' | 'TOOL_SHOT' | 'TIP' | 'DOWN_BALL' | 'OVERHAND';
17
18
  export type SpikeFailure = 'NO_FAILURE' | 'FAULT' | 'MISS' | 'OUT_OF_BOUNDS' | 'NET';
@@ -29,6 +30,7 @@ export declare class SpikeModel extends Model<SpikeAttributes, SpikeCreationAttr
29
30
  player_id: string;
30
31
  modifier: number;
31
32
  score: number;
33
+ active_traits: TraitType[];
32
34
  player: PlayerModel;
33
35
  getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
34
36
  setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;