volleyballsimtypes 0.0.45 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/data/index.d.ts +3 -3
- package/dist/cjs/src/data/index.js +5 -4
- package/dist/cjs/src/data/init-models.d.ts +2 -2
- package/dist/cjs/src/data/init-models.js +6 -18
- package/dist/cjs/src/data/models/index.d.ts +2 -2
- package/dist/cjs/src/data/models/index.js +3 -3
- package/dist/cjs/src/data/models/match.d.ts +10 -13
- package/dist/cjs/src/data/models/{season-matches.d.ts → season-match.d.ts} +9 -8
- package/dist/cjs/src/data/models/{season-matches.js → season-match.js} +9 -14
- package/dist/cjs/src/data/models/season.d.ts +14 -35
- package/dist/cjs/src/data/models/tournament-match.js +3 -7
- package/dist/cjs/src/data/transformers/index.d.ts +2 -1
- package/dist/cjs/src/data/transformers/index.js +4 -2
- package/dist/cjs/src/data/transformers/season-match.d.ts +4 -0
- package/dist/cjs/src/data/transformers/season-match.js +12 -0
- package/dist/cjs/src/data/transformers/season.js +8 -4
- package/dist/cjs/src/index.d.ts +2 -2
- package/dist/cjs/src/index.js +5 -4
- package/dist/cjs/src/service/tournament/tournament.d.ts +1 -1
- package/dist/esm/src/data/index.d.ts +3 -3
- package/dist/esm/src/data/index.js +3 -3
- package/dist/esm/src/data/init-models.d.ts +2 -2
- package/dist/esm/src/data/init-models.js +7 -19
- package/dist/esm/src/data/models/index.d.ts +2 -2
- package/dist/esm/src/data/models/index.js +2 -2
- package/dist/esm/src/data/models/match.d.ts +10 -13
- package/dist/esm/src/data/models/{season-matches.d.ts → season-match.d.ts} +9 -8
- package/dist/esm/src/data/models/{season-matches.js → season-match.js} +7 -12
- package/dist/esm/src/data/models/season.d.ts +14 -35
- package/dist/esm/src/data/models/tournament-match.js +3 -7
- package/dist/esm/src/data/transformers/index.d.ts +2 -1
- package/dist/esm/src/data/transformers/index.js +2 -1
- package/dist/esm/src/data/transformers/season-match.d.ts +4 -0
- package/dist/esm/src/data/transformers/season-match.js +9 -0
- package/dist/esm/src/data/transformers/season.js +9 -5
- package/dist/esm/src/index.d.ts +2 -2
- package/dist/esm/src/index.js +2 -2
- package/dist/esm/src/service/tournament/tournament.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockAttributes, BlockCreationAttributes, BlockFailure, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, BlockType, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, CourtPositionType, CourtTarget, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, EventType, Formation, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, LiberoReplacementType, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionModel, ReceptionPk, ReceptionType, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId,
|
|
2
|
-
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, 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 } from './transformers';
|
|
1
|
+
import { BlockAttributes, BlockCreationAttributes, BlockFailure, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, BlockType, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, CourtPositionType, CourtTarget, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, EventType, Formation, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, LiberoReplacementType, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionModel, ReceptionPk, ReceptionType, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonMatchAttributes, SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchModel, SeasonMatchPk, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeFailure, ServeId, ServeModel, ServePk, ServeType, SetAttributes, SetCreationAttributes, SetFailure, SetId, SetModel, SetPk, SetType, Side, SpikeAttributes, SpikeCreationAttributes, SpikeFailure, SpikeId, SpikeModel, SpikePk, SpikeType, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentModel, TournamentOptionalAttributes, TournamentPk, TournamentStage, TournamentTeamsAttributes, TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsModel, TournamentTeamsPk, TraitType } from './models';
|
|
2
|
+
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromSeasonMatch, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, 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 } from './transformers';
|
|
3
3
|
import { initModels } from './init-models';
|
|
4
|
-
export { initModels, transformToStage, transformFromStage,
|
|
4
|
+
export { initModels, transformToStage, transformFromStage, SeasonMatchModel, SeasonMatchAttributes, SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchPk, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchModel, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType, 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, SpikeFailure, SetFailure, EventType, CourtTarget, ServeFailure, TournamentOptionalAttributes, LiberoReplacementType, CourtPositionType, SpikeType, SetType, BlockType, BlockFailure, ReceptionFailure, ServeType, ReceptionType, Side, Formation, TournamentTeamsAttributes, TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsModel, TournamentTeamsPk };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transformFromSet = exports.transformFromServe = exports.transformFromSeason = exports.transformFromScore = exports.transformFromRole = exports.transformFromReception = exports.transformFromRally = exports.transformFromPlayerPosition = exports.transformFromPlayer = exports.transformFromPerformanceStats = exports.transformFromMatchSetStats = exports.transformFromMatchSet = exports.transformFromMatch = exports.transformFromLiberoReplacement = exports.transformFromLeague = exports.transformFromFormation = exports.transformFromEventType = exports.transformFromCourtTarget = exports.transformFromCourtPosition = exports.transformFromCountry = exports.transformFromCoach = exports.transformFromBlock = exports.TeamModel = exports.SubstitutionModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = 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.EventModel = exports.CountryModel = exports.CoachModel = exports.BlockModel = exports.TournamentMatchModel = exports.TournamentModel = exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.TournamentTeamsModel = exports.transformToTournamentMatch = exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = exports.transformToTournament = void 0;
|
|
3
|
+
exports.transformFromSet = exports.transformFromServe = exports.transformFromSeason = exports.transformFromScore = exports.transformFromRole = exports.transformFromReception = exports.transformFromRally = exports.transformFromPlayerPosition = exports.transformFromPlayer = exports.transformFromPerformanceStats = exports.transformFromMatchSetStats = exports.transformFromMatchSet = exports.transformFromMatch = exports.transformFromLiberoReplacement = exports.transformFromLeague = exports.transformFromFormation = exports.transformFromEventType = exports.transformFromCourtTarget = exports.transformFromCourtPosition = exports.transformFromCountry = exports.transformFromCoach = exports.transformFromBlock = exports.TeamModel = exports.SubstitutionModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = 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.EventModel = exports.CountryModel = exports.CoachModel = exports.BlockModel = exports.TournamentMatchModel = exports.TournamentModel = exports.SeasonMatchModel = exports.transformFromStage = exports.transformToStage = exports.initModels = void 0;
|
|
4
|
+
exports.transformFromTournament = exports.transformToTrait = exports.transformToTeam = exports.transformToSubstitution = exports.transformToSpike = exports.transformToSet = exports.transformToServe = exports.transformToSeason = exports.transformToScore = exports.transformToRole = exports.transformToReception = exports.transformToRally = exports.transformToPlayerPosition = exports.transformToPlayer = exports.transformToPerformanceStats = exports.transformToMatchSetStats = exports.transformToMatchSet = exports.transformToMatch = exports.transformToAPICoach = exports.transformToLiberoReplacement = exports.transformToLeague = exports.transformToFormation = exports.transformToEventType = exports.transformToCourtTarget = exports.transformToCourtPosition = exports.transformToCountry = exports.transformToCoach = exports.transformToBlock = exports.transformToAPITrait = exports.transformToAPITeam = exports.transformToAPISubstitution = exports.transformToAPILeague = exports.transformToAPISpike = exports.transformToAPISet = exports.transformToAPIServe = exports.transformToAPISeason = exports.transformToAPIScore = exports.transformToAPIReception = exports.transformToAPIRally = exports.transformToAPIPlayer = exports.transformToAPIMatchSetStats = exports.transformToAPIMatchSet = exports.transformToAPIMatch = exports.transformToAPILiberoReplacement = exports.transformFromSeasonMatch = exports.transformToAPIBlock = exports.transformFromTrait = exports.transformFromTeam = exports.transformFromSubstitution = exports.transformFromSpike = void 0;
|
|
5
|
+
exports.TournamentTeamsModel = exports.transformToTournamentMatch = exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = exports.transformToTournament = exports.transformToAPITournament = void 0;
|
|
6
6
|
const models_1 = require("./models");
|
|
7
7
|
Object.defineProperty(exports, "BlockModel", { enumerable: true, get: function () { return models_1.BlockModel; } });
|
|
8
8
|
Object.defineProperty(exports, "CoachModel", { enumerable: true, get: function () { return models_1.CoachModel; } });
|
|
@@ -19,7 +19,7 @@ Object.defineProperty(exports, "RallyModel", { enumerable: true, get: function (
|
|
|
19
19
|
Object.defineProperty(exports, "RallyPositionModel", { enumerable: true, get: function () { return models_1.RallyPositionModel; } });
|
|
20
20
|
Object.defineProperty(exports, "ReceptionModel", { enumerable: true, get: function () { return models_1.ReceptionModel; } });
|
|
21
21
|
Object.defineProperty(exports, "ScoreModel", { enumerable: true, get: function () { return models_1.ScoreModel; } });
|
|
22
|
-
Object.defineProperty(exports, "
|
|
22
|
+
Object.defineProperty(exports, "SeasonMatchModel", { enumerable: true, get: function () { return models_1.SeasonMatchModel; } });
|
|
23
23
|
Object.defineProperty(exports, "SeasonModel", { enumerable: true, get: function () { return models_1.SeasonModel; } });
|
|
24
24
|
Object.defineProperty(exports, "SeasonTeamsModel", { enumerable: true, get: function () { return models_1.SeasonTeamsModel; } });
|
|
25
25
|
Object.defineProperty(exports, "ServeModel", { enumerable: true, get: function () { return models_1.ServeModel; } });
|
|
@@ -40,6 +40,7 @@ Object.defineProperty(exports, "transformFromEventType", { enumerable: true, get
|
|
|
40
40
|
Object.defineProperty(exports, "transformFromFormation", { enumerable: true, get: function () { return transformers_1.transformFromFormation; } });
|
|
41
41
|
Object.defineProperty(exports, "transformFromLeague", { enumerable: true, get: function () { return transformers_1.transformFromLeague; } });
|
|
42
42
|
Object.defineProperty(exports, "transformFromLiberoReplacement", { enumerable: true, get: function () { return transformers_1.transformFromLiberoReplacement; } });
|
|
43
|
+
Object.defineProperty(exports, "transformFromSeasonMatch", { enumerable: true, get: function () { return transformers_1.transformFromSeasonMatch; } });
|
|
43
44
|
Object.defineProperty(exports, "transformFromMatch", { enumerable: true, get: function () { return transformers_1.transformFromMatch; } });
|
|
44
45
|
Object.defineProperty(exports, "transformFromMatchSet", { enumerable: true, get: function () { return transformers_1.transformFromMatchSet; } });
|
|
45
46
|
Object.defineProperty(exports, "transformFromMatchSetStats", { enumerable: true, get: function () { return transformers_1.transformFromMatchSetStats; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Sequelize } from 'sequelize';
|
|
2
|
-
import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel,
|
|
2
|
+
import { 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 } from './models';
|
|
3
3
|
export declare function initModels(sequelize: Sequelize): {
|
|
4
4
|
Block: typeof BlockModel;
|
|
5
5
|
Coach: typeof CoachModel;
|
|
@@ -18,7 +18,7 @@ export declare function initModels(sequelize: Sequelize): {
|
|
|
18
18
|
Score: typeof ScoreModel;
|
|
19
19
|
Season: typeof SeasonModel;
|
|
20
20
|
SeasonTeams: typeof SeasonTeamsModel;
|
|
21
|
-
|
|
21
|
+
SeasonMatch: typeof SeasonMatchModel;
|
|
22
22
|
Serve: typeof ServeModel;
|
|
23
23
|
Set: typeof SetModel;
|
|
24
24
|
Spike: typeof SpikeModel;
|
|
@@ -19,7 +19,7 @@ function initModels(sequelize) {
|
|
|
19
19
|
const Reception = models_1.ReceptionModel.initModel(sequelize);
|
|
20
20
|
const Score = models_1.ScoreModel.initModel(sequelize);
|
|
21
21
|
const Season = models_1.SeasonModel.initModel(sequelize);
|
|
22
|
-
const
|
|
22
|
+
const SeasonMatch = models_1.SeasonMatchModel.initModel(sequelize);
|
|
23
23
|
const SeasonTeams = models_1.SeasonTeamsModel.initModel(sequelize);
|
|
24
24
|
const Serve = models_1.ServeModel.initModel(sequelize);
|
|
25
25
|
const Set = models_1.SetModel.initModel(sequelize);
|
|
@@ -51,14 +51,8 @@ function initModels(sequelize) {
|
|
|
51
51
|
Match.belongsTo(Team, { as: 'awayTeam', foreignKey: 'away_team' });
|
|
52
52
|
Match.belongsTo(Team, { as: 'homeTeam', foreignKey: 'home_team' });
|
|
53
53
|
Match.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'match_id' });
|
|
54
|
-
Match.
|
|
54
|
+
Match.hasOne(SeasonMatch, { as: 'SeasonMatch', foreignKey: 'match_id' });
|
|
55
55
|
Match.hasOne(TournamentMatch, { as: 'TournamentMatch', foreignKey: 'match_id' });
|
|
56
|
-
Match.belongsToMany(Season, {
|
|
57
|
-
as: 'season_id_Seasons',
|
|
58
|
-
through: SeasonMatches,
|
|
59
|
-
foreignKey: 'match_id',
|
|
60
|
-
otherKey: 'season_id'
|
|
61
|
-
});
|
|
62
56
|
MatchSet.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
|
|
63
57
|
MatchSet.belongsTo(Player, { as: 'away_libero_Player', foreignKey: 'away_libero' });
|
|
64
58
|
MatchSet.belongsTo(Player, { as: 'home_libero_Player', foreignKey: 'home_libero' });
|
|
@@ -133,7 +127,7 @@ function initModels(sequelize) {
|
|
|
133
127
|
Score.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
|
|
134
128
|
Season.belongsTo(League, { as: 'league', foreignKey: 'league_id' });
|
|
135
129
|
Season.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
|
|
136
|
-
Season.hasMany(
|
|
130
|
+
Season.hasMany(SeasonMatch, { as: 'SeasonMatch', foreignKey: 'season_id' });
|
|
137
131
|
Season.hasMany(SeasonTeams, { as: 'SeasonTeams', foreignKey: 'season_id' });
|
|
138
132
|
Season.belongsToMany(Team, {
|
|
139
133
|
as: 'seasonTeams',
|
|
@@ -141,14 +135,8 @@ function initModels(sequelize) {
|
|
|
141
135
|
foreignKey: 'season_id',
|
|
142
136
|
otherKey: 'team_id'
|
|
143
137
|
});
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
through: SeasonMatches,
|
|
147
|
-
foreignKey: 'season_id',
|
|
148
|
-
otherKey: 'match_id'
|
|
149
|
-
});
|
|
150
|
-
SeasonMatches.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
|
|
151
|
-
SeasonMatches.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
|
|
138
|
+
SeasonMatch.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
|
|
139
|
+
SeasonMatch.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
|
|
152
140
|
SeasonTeams.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
|
|
153
141
|
SeasonTeams.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
|
|
154
142
|
Serve.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
|
|
@@ -213,7 +201,7 @@ function initModels(sequelize) {
|
|
|
213
201
|
Score,
|
|
214
202
|
Season,
|
|
215
203
|
SeasonTeams,
|
|
216
|
-
|
|
204
|
+
SeasonMatch,
|
|
217
205
|
Serve,
|
|
218
206
|
Set,
|
|
219
207
|
Spike,
|
|
@@ -15,7 +15,7 @@ import { ReceptionAttributes, ReceptionCreationAttributes, ReceptionFailure, Rec
|
|
|
15
15
|
import { ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk } from './score';
|
|
16
16
|
import { SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk } from './season';
|
|
17
17
|
import { SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk } from './season-teams';
|
|
18
|
-
import {
|
|
18
|
+
import { SeasonMatchAttributes, SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchModel, SeasonMatchPk } from './season-match';
|
|
19
19
|
import { ServeAttributes, ServeCreationAttributes, ServeFailure, ServeId, ServeModel, ServePk, ServeType } from './serve';
|
|
20
20
|
import { SetAttributes, SetCreationAttributes, SetFailure, SetId, SetModel, SetPk, SetType } from './set';
|
|
21
21
|
import { SpikeAttributes, SpikeCreationAttributes, SpikeFailure, SpikeId, SpikeModel, SpikePk, SpikeType } from './spike';
|
|
@@ -24,4 +24,4 @@ import { TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk } fro
|
|
|
24
24
|
import { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentOptionalAttributes, TournamentPk } from './tournament';
|
|
25
25
|
import { TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentStage } from './tournament-match';
|
|
26
26
|
import { TournamentTeamsAttributes, TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsModel, TournamentTeamsPk } from './tournament-teams';
|
|
27
|
-
export { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentStage, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk,
|
|
27
|
+
export { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentStage, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, SeasonMatchAttributes, SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchModel, SeasonMatchPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType, EventType, BlockFailure, BlockType, Formation, ServeFailure, SpikeFailure, SpikeType, SetType, ReceptionFailure, SetFailure, ServeType, ReceptionType, CourtPositionType, TournamentOptionalAttributes, Side, CourtTarget, LiberoReplacementType, TournamentTeamsAttributes, TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsModel, TournamentTeamsPk };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TournamentTeamsModel = exports.TeamModel = exports.SubstitutionModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = 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.EventModel = exports.
|
|
3
|
+
exports.TournamentTeamsModel = exports.TeamModel = exports.SubstitutionModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = 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.EventModel = exports.SeasonMatchModel = exports.CountryModel = exports.CoachModel = exports.BlockModel = exports.TournamentMatchModel = exports.TournamentModel = void 0;
|
|
4
4
|
const block_1 = require("./block");
|
|
5
5
|
Object.defineProperty(exports, "BlockModel", { enumerable: true, get: function () { return block_1.BlockModel; } });
|
|
6
6
|
const coach_1 = require("./coach");
|
|
@@ -35,8 +35,8 @@ const season_1 = require("./season");
|
|
|
35
35
|
Object.defineProperty(exports, "SeasonModel", { enumerable: true, get: function () { return season_1.SeasonModel; } });
|
|
36
36
|
const season_teams_1 = require("./season-teams");
|
|
37
37
|
Object.defineProperty(exports, "SeasonTeamsModel", { enumerable: true, get: function () { return season_teams_1.SeasonTeamsModel; } });
|
|
38
|
-
const
|
|
39
|
-
Object.defineProperty(exports, "
|
|
38
|
+
const season_match_1 = require("./season-match");
|
|
39
|
+
Object.defineProperty(exports, "SeasonMatchModel", { enumerable: true, get: function () { return season_match_1.SeasonMatchModel; } });
|
|
40
40
|
const serve_1 = require("./serve");
|
|
41
41
|
Object.defineProperty(exports, "ServeModel", { enumerable: true, get: function () { return serve_1.ServeModel; } });
|
|
42
42
|
const set_1 = require("./set");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
|
-
import type { MatchSetAttributes, MatchSetId, MatchSetModel, SeasonId, SeasonModel, TeamId, TeamModel } from '.';
|
|
4
|
-
import {
|
|
3
|
+
import type { MatchSetAttributes, MatchSetId, MatchSetModel, SeasonId, SeasonModel, TeamId, TeamModel, TournamentMatchId } from '.';
|
|
4
|
+
import { SeasonMatchId, SeasonMatchModel, TournamentMatchModel } from '.';
|
|
5
5
|
export interface MatchAttributes {
|
|
6
6
|
match_id: string;
|
|
7
7
|
home_team: string;
|
|
@@ -50,16 +50,13 @@ export declare class MatchModel extends Model<MatchAttributes, MatchCreationAttr
|
|
|
50
50
|
hasSeason_id_Season: Sequelize.BelongsToManyHasAssociationMixin<SeasonModel, SeasonId>;
|
|
51
51
|
hasSeason_id_Seasons: Sequelize.BelongsToManyHasAssociationsMixin<SeasonModel, SeasonId>;
|
|
52
52
|
countSeason_id_Seasons: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
hasSeasonMatch: Sequelize.HasManyHasAssociationMixin<SeasonMatchesModel, SeasonMatchesId>;
|
|
62
|
-
hasSeasonMatches: Sequelize.HasManyHasAssociationsMixin<SeasonMatchesModel, SeasonMatchesId>;
|
|
63
|
-
countSeasonMatches: Sequelize.HasManyCountAssociationsMixin;
|
|
53
|
+
SeasonMatch: SeasonMatchModel;
|
|
54
|
+
getSeasonMatch: Sequelize.HasOneGetAssociationMixin<SeasonMatchModel>;
|
|
55
|
+
setSeasonMatch: Sequelize.HasOneSetAssociationMixin<SeasonMatchModel, SeasonMatchId>;
|
|
56
|
+
createSeasonMatch: Sequelize.HasOneCreateAssociationMixin<SeasonMatchModel>;
|
|
57
|
+
TournamentMatch: TournamentMatchModel;
|
|
58
|
+
getTournamentMatch: Sequelize.HasOneGetAssociationMixin<TournamentMatchModel>;
|
|
59
|
+
setTournamentMatch: Sequelize.HasOneSetAssociationMixin<TournamentMatchModel, TournamentMatchId>;
|
|
60
|
+
createTournamentMatch: Sequelize.HasOneCreateAssociationMixin<TournamentMatchModel>;
|
|
64
61
|
static initModel(sequelize: Sequelize.Sequelize): typeof MatchModel;
|
|
65
62
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
|
-
import type { MatchId, MatchModel, SeasonId, SeasonModel } from '.';
|
|
4
|
-
export interface
|
|
3
|
+
import type { MatchAttributes, MatchId, MatchModel, SeasonId, SeasonModel } from '.';
|
|
4
|
+
export interface SeasonMatchAttributes {
|
|
5
5
|
season_id: string;
|
|
6
6
|
match_id: string;
|
|
7
|
+
match?: MatchAttributes;
|
|
7
8
|
}
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
export declare class
|
|
9
|
+
export type SeasonMatchPk = 'match_id';
|
|
10
|
+
export type SeasonMatchId = SeasonMatchModel[SeasonMatchPk];
|
|
11
|
+
export type SeasonMatchCreationAttributes = SeasonMatchAttributes;
|
|
12
|
+
export declare class SeasonMatchModel extends Model<SeasonMatchAttributes, SeasonMatchCreationAttributes> implements SeasonMatchAttributes {
|
|
12
13
|
season_id: string;
|
|
13
14
|
match_id: string;
|
|
14
15
|
season: SeasonModel;
|
|
15
16
|
getSeason: Sequelize.BelongsToGetAssociationMixin<SeasonModel>;
|
|
16
17
|
setSeason: Sequelize.BelongsToSetAssociationMixin<SeasonModel, SeasonId>;
|
|
17
18
|
createSeason: Sequelize.BelongsToCreateAssociationMixin<SeasonModel>;
|
|
18
|
-
|
|
19
|
+
match: MatchModel;
|
|
19
20
|
getMatch: Sequelize.BelongsToGetAssociationMixin<MatchModel>;
|
|
20
21
|
setMatch: Sequelize.BelongsToSetAssociationMixin<MatchModel, MatchId>;
|
|
21
22
|
createMatch: Sequelize.BelongsToCreateAssociationMixin<MatchModel>;
|
|
22
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof
|
|
23
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof SeasonMatchModel;
|
|
23
24
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SeasonMatchModel = void 0;
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
|
-
class
|
|
5
|
+
class SeasonMatchModel extends sequelize_1.Model {
|
|
6
6
|
static initModel(sequelize) {
|
|
7
|
-
return
|
|
7
|
+
return SeasonMatchModel.init({
|
|
8
8
|
season_id: {
|
|
9
9
|
type: sequelize_1.DataTypes.UUID,
|
|
10
10
|
allowNull: false,
|
|
@@ -25,20 +25,15 @@ class SeasonMatchesModel extends sequelize_1.Model {
|
|
|
25
25
|
}
|
|
26
26
|
}, {
|
|
27
27
|
sequelize,
|
|
28
|
-
tableName: '
|
|
28
|
+
tableName: 'SeasonMatch',
|
|
29
29
|
schema: 'public',
|
|
30
30
|
timestamps: false,
|
|
31
|
-
indexes: [
|
|
32
|
-
|
|
33
|
-
name: 'SeasonMatches_pk',
|
|
31
|
+
indexes: [{
|
|
32
|
+
name: 'SeasonMatch_pk',
|
|
34
33
|
unique: true,
|
|
35
|
-
fields: [
|
|
36
|
-
|
|
37
|
-
{ name: 'match_id' }
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
]
|
|
34
|
+
fields: [{ name: 'match_id' }]
|
|
35
|
+
}]
|
|
41
36
|
});
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
|
-
exports.
|
|
39
|
+
exports.SeasonMatchModel = SeasonMatchModel;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
|
-
import type { LeagueAttributes, LeagueId, LeagueModel,
|
|
4
|
-
import {
|
|
3
|
+
import type { LeagueAttributes, LeagueId, LeagueModel, SeasonMatchAttributes, SeasonTeamsId, SeasonTeamsModel, TeamAttributes, TeamId, TeamModel } from '.';
|
|
4
|
+
import { SeasonMatchId, SeasonMatchModel } from '.';
|
|
5
5
|
export interface SeasonAttributes {
|
|
6
6
|
season_id: string;
|
|
7
7
|
iteration: number;
|
|
8
8
|
league_id: string;
|
|
9
9
|
seasonTeams?: TeamAttributes[];
|
|
10
|
-
|
|
10
|
+
SeasonMatches?: SeasonMatchAttributes[];
|
|
11
11
|
league?: LeagueAttributes;
|
|
12
12
|
champion?: string;
|
|
13
13
|
}
|
|
@@ -18,22 +18,10 @@ export declare class SeasonModel extends Model<SeasonAttributes, SeasonCreationA
|
|
|
18
18
|
season_id: string;
|
|
19
19
|
iteration: number;
|
|
20
20
|
league_id: string;
|
|
21
|
-
seasonTeams: TeamModel[];
|
|
22
|
-
seasonMatches: MatchModel[];
|
|
23
21
|
league: LeagueModel;
|
|
24
22
|
getLeague: Sequelize.BelongsToGetAssociationMixin<LeagueModel>;
|
|
25
23
|
setLeague: Sequelize.BelongsToSetAssociationMixin<LeagueModel, LeagueId>;
|
|
26
24
|
createLeague: Sequelize.BelongsToCreateAssociationMixin<LeagueModel>;
|
|
27
|
-
getMatches: Sequelize.HasManyGetAssociationsMixin<MatchModel>;
|
|
28
|
-
setMatches: Sequelize.HasManySetAssociationsMixin<MatchModel, MatchId>;
|
|
29
|
-
addMatch: Sequelize.HasManyAddAssociationMixin<MatchModel, MatchId>;
|
|
30
|
-
addMatches: Sequelize.HasManyAddAssociationsMixin<MatchModel, MatchId>;
|
|
31
|
-
createMatch: Sequelize.HasManyCreateAssociationMixin<MatchModel>;
|
|
32
|
-
removeMatch: Sequelize.HasManyRemoveAssociationMixin<MatchModel, MatchId>;
|
|
33
|
-
removeMatches: Sequelize.HasManyRemoveAssociationsMixin<MatchModel, MatchId>;
|
|
34
|
-
hasMatch: Sequelize.HasManyHasAssociationMixin<MatchModel, MatchId>;
|
|
35
|
-
hasMatches: Sequelize.HasManyHasAssociationsMixin<MatchModel, MatchId>;
|
|
36
|
-
countMatches: Sequelize.HasManyCountAssociationsMixin;
|
|
37
25
|
SeasonTeams: SeasonTeamsModel[];
|
|
38
26
|
getSeasonTeams: Sequelize.HasManyGetAssociationsMixin<SeasonTeamsModel>;
|
|
39
27
|
setSeasonTeams: Sequelize.HasManySetAssociationsMixin<SeasonTeamsModel, SeasonTeamsId>;
|
|
@@ -45,6 +33,7 @@ export declare class SeasonModel extends Model<SeasonAttributes, SeasonCreationA
|
|
|
45
33
|
hasSeasonTeam: Sequelize.HasManyHasAssociationMixin<SeasonTeamsModel, SeasonTeamsId>;
|
|
46
34
|
hasSeasonTeams: Sequelize.HasManyHasAssociationsMixin<SeasonTeamsModel, SeasonTeamsId>;
|
|
47
35
|
countSeasonTeams: Sequelize.HasManyCountAssociationsMixin;
|
|
36
|
+
seasonTeams: TeamModel[];
|
|
48
37
|
getseasonTeams: Sequelize.BelongsToManyGetAssociationsMixin<TeamModel>;
|
|
49
38
|
setseasonTeams: Sequelize.BelongsToManySetAssociationsMixin<TeamModel, TeamId>;
|
|
50
39
|
addTeam_id_Team: Sequelize.BelongsToManyAddAssociationMixin<TeamModel, TeamId>;
|
|
@@ -55,27 +44,17 @@ export declare class SeasonModel extends Model<SeasonAttributes, SeasonCreationA
|
|
|
55
44
|
hasTeam_id_Team: Sequelize.BelongsToManyHasAssociationMixin<TeamModel, TeamId>;
|
|
56
45
|
hasseasonTeams: Sequelize.BelongsToManyHasAssociationsMixin<TeamModel, TeamId>;
|
|
57
46
|
countseasonTeams: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
58
|
-
SeasonMatches:
|
|
59
|
-
getSeasonMatches: Sequelize.HasManyGetAssociationsMixin<
|
|
60
|
-
setSeasonMatches: Sequelize.HasManySetAssociationsMixin<
|
|
61
|
-
addSeasonMatch: Sequelize.HasManyAddAssociationMixin<
|
|
62
|
-
addSeasonMatches: Sequelize.HasManyAddAssociationsMixin<
|
|
63
|
-
createSeasonMatch: Sequelize.HasManyCreateAssociationMixin<
|
|
64
|
-
removeSeasonMatch: Sequelize.HasManyRemoveAssociationMixin<
|
|
65
|
-
removeSeasonMatches: Sequelize.HasManyRemoveAssociationsMixin<
|
|
66
|
-
hasSeasonMatch: Sequelize.HasManyHasAssociationMixin<
|
|
67
|
-
hasSeasonMatches: Sequelize.HasManyHasAssociationsMixin<
|
|
47
|
+
SeasonMatches: SeasonMatchModel[];
|
|
48
|
+
getSeasonMatches: Sequelize.HasManyGetAssociationsMixin<SeasonMatchModel>;
|
|
49
|
+
setSeasonMatches: Sequelize.HasManySetAssociationsMixin<SeasonMatchModel, SeasonMatchId>;
|
|
50
|
+
addSeasonMatch: Sequelize.HasManyAddAssociationMixin<SeasonMatchModel, SeasonMatchId>;
|
|
51
|
+
addSeasonMatches: Sequelize.HasManyAddAssociationsMixin<SeasonMatchModel, SeasonMatchId>;
|
|
52
|
+
createSeasonMatch: Sequelize.HasManyCreateAssociationMixin<SeasonMatchModel>;
|
|
53
|
+
removeSeasonMatch: Sequelize.HasManyRemoveAssociationMixin<SeasonMatchModel, SeasonMatchId>;
|
|
54
|
+
removeSeasonMatches: Sequelize.HasManyRemoveAssociationsMixin<SeasonMatchModel, SeasonMatchId>;
|
|
55
|
+
hasSeasonMatch: Sequelize.HasManyHasAssociationMixin<SeasonMatchModel, SeasonMatchId>;
|
|
56
|
+
hasSeasonMatches: Sequelize.HasManyHasAssociationsMixin<SeasonMatchModel, SeasonMatchId>;
|
|
68
57
|
countSeasonMatches: Sequelize.HasManyCountAssociationsMixin;
|
|
69
|
-
getseasonMatches: Sequelize.BelongsToManyGetAssociationsMixin<MatchModel>;
|
|
70
|
-
setseasonMatches: Sequelize.BelongsToManySetAssociationsMixin<MatchModel, MatchId>;
|
|
71
|
-
addMatch_id_Match: Sequelize.BelongsToManyAddAssociationMixin<MatchModel, MatchId>;
|
|
72
|
-
addseasonMatches: Sequelize.BelongsToManyAddAssociationsMixin<MatchModel, MatchId>;
|
|
73
|
-
createMatch_id_Match: Sequelize.BelongsToManyCreateAssociationMixin<MatchModel>;
|
|
74
|
-
removeMatch_id_Match: Sequelize.BelongsToManyRemoveAssociationMixin<MatchModel, MatchId>;
|
|
75
|
-
removeseasonMatches: Sequelize.BelongsToManyRemoveAssociationsMixin<MatchModel, MatchId>;
|
|
76
|
-
hasMatch_id_Match: Sequelize.BelongsToManyHasAssociationMixin<MatchModel, MatchId>;
|
|
77
|
-
hasseasonMatches: Sequelize.BelongsToManyHasAssociationsMixin<MatchModel, MatchId>;
|
|
78
|
-
countseasonMatches: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
79
58
|
Champion: TeamModel;
|
|
80
59
|
getChampion: Sequelize.BelongsToGetAssociationMixin<TeamModel>;
|
|
81
60
|
setChampion: Sequelize.BelongsToSetAssociationMixin<TeamModel, TeamId>;
|
|
@@ -35,15 +35,11 @@ class TournamentMatchModel extends sequelize_1.Model {
|
|
|
35
35
|
tableName: 'TournamentMatch',
|
|
36
36
|
schema: 'public',
|
|
37
37
|
timestamps: false,
|
|
38
|
-
indexes: [
|
|
39
|
-
{
|
|
38
|
+
indexes: [{
|
|
40
39
|
name: 'TournamentMatch_match_id_uindex',
|
|
41
40
|
unique: true,
|
|
42
|
-
fields: [
|
|
43
|
-
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
]
|
|
41
|
+
fields: [{ name: 'match_id' }]
|
|
42
|
+
}]
|
|
47
43
|
});
|
|
48
44
|
}
|
|
49
45
|
}
|
|
@@ -21,10 +21,11 @@ import { transformFromReception, transformToAPIReception, transformToReception }
|
|
|
21
21
|
import { transformFromRole, transformToRole } from './role';
|
|
22
22
|
import { transformFromScore, transformToAPIScore, transformToScore } from './score';
|
|
23
23
|
import { transformFromSeason, transformToAPISeason, transformToSeason } from './season';
|
|
24
|
+
import { transformFromSeasonMatch } from './season-match';
|
|
24
25
|
import { transformFromServe, transformToAPIServe, transformToServe } from './serve';
|
|
25
26
|
import { transformFromSet, transformToAPISet, transformToSet } from './set';
|
|
26
27
|
import { transformFromSpike, transformToAPISpike, transformToSpike } from './spike';
|
|
27
28
|
import { transformFromSubstitution, transformToAPISubstitution, transformToSubstitution } from './substitution';
|
|
28
29
|
import { transformFromTeam, transformToAPITeam, transformToTeam } from './team';
|
|
29
30
|
import { transformFromTrait, transformToAPITrait, transformToTrait } from './trait';
|
|
30
|
-
export { transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch, transformFromBlock, transformToAPICoach, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformToStage, transformFromStage, transformFromScore, transformFromSeason, transformFromServe, transformToAPILeague, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
31
|
+
export { transformFromTournament, transformFromSeasonMatch, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch, transformFromBlock, transformToAPICoach, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformToStage, transformFromStage, transformFromScore, transformFromSeason, transformFromServe, transformToAPILeague, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.transformToTrait = exports.transformToTeam = exports.transformToSubstitution = exports.transformToSpike = exports.transformToSet = exports.transformToServe = exports.transformToSeason = exports.transformToScore = exports.transformToRole = exports.transformToReception = exports.transformToRally = exports.transformToPlayerPosition = exports.transformToPlayer = exports.transformToPerformanceStats = exports.transformToMatchSetStats = exports.transformToMatchSet = exports.transformToMatch = exports.transformToLiberoReplacement = exports.transformToLeague = exports.transformToFormation = exports.transformToEventType = exports.transformToCourtTarget = exports.transformToCourtPosition = exports.transformToCountry = exports.transformToCoach = exports.transformToBlock = exports.transformToAPITrait = exports.transformToAPITeam = void 0;
|
|
3
|
+
exports.transformToAPISpike = exports.transformToAPISet = exports.transformToAPIServe = exports.transformToAPISeason = exports.transformToAPIScore = exports.transformToAPIReception = exports.transformToAPIRally = exports.transformToAPIPlayer = exports.transformToAPIMatchSetStats = exports.transformToAPIMatchSet = exports.transformToAPIMatch = exports.transformToAPILiberoReplacement = exports.transformToAPIBlock = exports.transformFromTrait = exports.transformFromTeam = exports.transformFromSubstitution = exports.transformFromSpike = exports.transformFromSet = exports.transformToAPILeague = exports.transformFromServe = exports.transformFromSeason = exports.transformFromScore = exports.transformFromStage = exports.transformToStage = exports.transformFromRole = exports.transformFromReception = exports.transformFromRally = exports.transformFromPlayerPosition = exports.transformFromPlayer = exports.transformFromPerformanceStats = exports.transformFromMatchSetStats = exports.transformFromMatchSet = exports.transformFromMatch = exports.transformFromLiberoReplacement = exports.transformFromLeague = exports.transformFromFormation = exports.transformFromEventType = exports.transformFromCourtTarget = exports.transformFromCourtPosition = exports.transformFromCountry = exports.transformFromCoach = exports.transformToAPICoach = exports.transformFromBlock = exports.transformToTournamentMatch = exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = exports.transformToTournament = exports.transformToAPITournament = exports.transformFromSeasonMatch = exports.transformFromTournament = void 0;
|
|
4
|
+
exports.transformToTrait = exports.transformToTeam = exports.transformToSubstitution = exports.transformToSpike = exports.transformToSet = exports.transformToServe = exports.transformToSeason = exports.transformToScore = exports.transformToRole = exports.transformToReception = exports.transformToRally = exports.transformToPlayerPosition = exports.transformToPlayer = exports.transformToPerformanceStats = exports.transformToMatchSetStats = exports.transformToMatchSet = exports.transformToMatch = exports.transformToLiberoReplacement = exports.transformToLeague = exports.transformToFormation = exports.transformToEventType = exports.transformToCourtTarget = exports.transformToCourtPosition = exports.transformToCountry = exports.transformToCoach = exports.transformToBlock = exports.transformToAPITrait = exports.transformToAPITeam = exports.transformToAPISubstitution = void 0;
|
|
5
5
|
const block_1 = require("./block");
|
|
6
6
|
Object.defineProperty(exports, "transformFromBlock", { enumerable: true, get: function () { return block_1.transformFromBlock; } });
|
|
7
7
|
Object.defineProperty(exports, "transformToAPIBlock", { enumerable: true, get: function () { return block_1.transformToAPIBlock; } });
|
|
@@ -85,6 +85,8 @@ const season_1 = require("./season");
|
|
|
85
85
|
Object.defineProperty(exports, "transformFromSeason", { enumerable: true, get: function () { return season_1.transformFromSeason; } });
|
|
86
86
|
Object.defineProperty(exports, "transformToAPISeason", { enumerable: true, get: function () { return season_1.transformToAPISeason; } });
|
|
87
87
|
Object.defineProperty(exports, "transformToSeason", { enumerable: true, get: function () { return season_1.transformToSeason; } });
|
|
88
|
+
const season_match_1 = require("./season-match");
|
|
89
|
+
Object.defineProperty(exports, "transformFromSeasonMatch", { enumerable: true, get: function () { return season_match_1.transformFromSeasonMatch; } });
|
|
88
90
|
const serve_1 = require("./serve");
|
|
89
91
|
Object.defineProperty(exports, "transformFromServe", { enumerable: true, get: function () { return serve_1.transformFromServe; } });
|
|
90
92
|
Object.defineProperty(exports, "transformToAPIServe", { enumerable: true, get: function () { return serve_1.transformToAPIServe; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transformFromSeasonMatch = void 0;
|
|
4
|
+
const match_1 = require("./match");
|
|
5
|
+
function transformToAttributes(seasonId, match) {
|
|
6
|
+
return {
|
|
7
|
+
season_id: seasonId,
|
|
8
|
+
match_id: match.id,
|
|
9
|
+
match: (0, match_1.transformFromMatch)(match)
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
exports.transformFromSeasonMatch = transformToAttributes;
|
|
@@ -4,20 +4,24 @@ exports.transformFromSeason = exports.transformToAPISeason = exports.transformTo
|
|
|
4
4
|
const _1 = require(".");
|
|
5
5
|
const service_1 = require("../../service");
|
|
6
6
|
function transformToAttributes(season, leagueId) {
|
|
7
|
+
const seasonMatches = season.matches != null ?
|
|
8
|
+
season.matches.map(match => (0, _1.transformFromSeasonMatch)(season.id, match)) : [];
|
|
7
9
|
return {
|
|
8
10
|
season_id: season.id,
|
|
9
11
|
iteration: season.iteration,
|
|
10
12
|
league_id: leagueId,
|
|
11
13
|
champion: season.champion != null ? season.champion.id : undefined,
|
|
12
14
|
seasonTeams: season.teams != null ? season.teams.map(_1.transformFromTeam) : [],
|
|
13
|
-
|
|
15
|
+
SeasonMatches: seasonMatches
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
18
|
exports.transformFromSeason = transformToAttributes;
|
|
17
19
|
function transformToObject(model) {
|
|
20
|
+
const matches = model.SeasonMatches != null ?
|
|
21
|
+
model.SeasonMatches.map(matches => (0, _1.transformToMatch)(matches.match)) : [];
|
|
18
22
|
return new service_1.Season({
|
|
19
23
|
id: model.season_id,
|
|
20
|
-
matches
|
|
24
|
+
matches,
|
|
21
25
|
iteration: model.iteration,
|
|
22
26
|
teams: model.seasonTeams != null ? model.seasonTeams.map(_1.transformToTeam) : [],
|
|
23
27
|
champion: model.Champion != null ? (0, _1.transformToTeam)(model.Champion) : undefined
|
|
@@ -26,8 +30,8 @@ function transformToObject(model) {
|
|
|
26
30
|
exports.transformToSeason = transformToObject;
|
|
27
31
|
function transformToAPIObject(model) {
|
|
28
32
|
const season = transformToObject(model);
|
|
29
|
-
const matches = model.
|
|
30
|
-
model.
|
|
33
|
+
const matches = model.SeasonMatches != null ?
|
|
34
|
+
model.SeasonMatches.map(seasonMatch => (0, _1.transformToAPIMatch)(seasonMatch.match, model.league)) : [];
|
|
31
35
|
return {
|
|
32
36
|
id: model.season_id,
|
|
33
37
|
matches: matches,
|
package/dist/cjs/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Block, BlockFailure as BlockFailureEnum, BlockType as BlockTypeEnum, Coach, CoachOpts, Country, CountryOpts, CourtPosition, CourtRow, CourtTarget as CourtTargetEnum, EventStat, EventType as EventTypeEnum, Formation, formatNumber, GeneralStat, generateModifier, getKeys, getRandomEnumValue, InPlayEvent, InPlayEventOpts, League, LeagueOpts, LiberoReplacement, LiberoReplacementOpts, LiberoReplacementType as LiberoReplacementTypeEnum, Match, MatchSet, MatchSetOpts, MatchSetState, MatchTeam, Name, PerformanceStats, PerformanceStatsOpts, Player, PlayerOpts, PlayerPosition, Rally, RallyEvent, RallyEventOpts, RallyState, randomNumber, Reception, ReceptionFailure as ReceptionFailureEnum, ReceptionType as ReceptionTypeEnum, Role, Score, Season, SeasonOpts, Serve, ServeFailure as ServeFailureEnum, ServeType as ServeTypeEnum, Set, SetFailure as SetFailureEnum, SetStatistics, SetType as SetTypeEnum, shuffle, Spike, SpikeFailure as SpikeFailureEnum, SpikeType as SpikeTypeEnum, Stage, Standing, StandingOpts, Stat, SubPriority, Substitution, SubstitutionOpts, Team, TeamOpts, Tournament, TournamentMatch, TournamentOpts, TournamentStageOpts, Trait, validateUUID } from './service';
|
|
2
2
|
import { APIBlock, APICoach, APIEvent, APIInPlayEvent, APILeague, APILiberoReplacement, APIMatch, APIMatchSet, APIPlayer, APIRally, APIReception, APIScore, APISeason, APIServe, APISet, APISetStatistics, APISpike, APISubstitution, APITeam, APITournament, APITournamentMatch, APITrait } from './api';
|
|
3
|
-
import { BlockAttributes, BlockCreationAttributes, BlockFailure, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, BlockType, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, CourtPositionType, CourtTarget, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, EventType, Formation as FormationOpts, initModels, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, LiberoReplacementType, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionModel, ReceptionPk, ReceptionType, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId,
|
|
4
|
-
export { League, Standing, LeagueOpts, CountryOpts, SeasonOpts, Season, StandingOpts, Country, CoachOpts, Coach, Role, SubPriority, GeneralStat, PerformanceStats, Formation, Stat, PerformanceStatsOpts, Block, EventTypeEnum, LiberoReplacement, MatchSet, Rally, RallyEvent, Reception, Score, Serve, Set, Spike, Substitution, BlockTypeEnum, LiberoReplacementTypeEnum, BlockFailureEnum, MatchSetState, MatchSetOpts, LiberoReplacementOpts, RallyEventOpts, InPlayEventOpts, EventStat, Match, InPlayEvent, CourtRow, CourtPosition, CourtTargetEnum, formatNumber, generateModifier, getKeys, MatchTeam, Name, PlayerOpts, Player, RallyState, PlayerPosition, randomNumber, ReceptionTypeEnum, ServeFailureEnum, ServeTypeEnum, SetFailureEnum, SetStatistics, SetTypeEnum, ReceptionFailureEnum, SpikeFailureEnum, SpikeTypeEnum, SubstitutionOpts, Team, shuffle, TeamOpts, Trait, getRandomEnumValue, validateUUID, APIBlock, APICoach, APIEvent, APILiberoReplacement, APIRally, APIReception, transformToAPILeague, APIScore, APIServe, APISet, APISpike, APISubstitution, APILeague, APIMatch, APIInPlayEvent, APIMatchSet, APIPlayer, APISeason, APITeam, APITrait, APITournament, APITournamentMatch, APISetStatistics, initModels, BlockId, BlockModel, RallyModel, RallyId, EventId, EventModel, MatchSetId, MatchSetModel, PerformanceStatsModel, PerformanceStatsId, BlockAttributes, LiberoReplacementId, LiberoReplacementModel, BlockPk, MatchSetStatsId, MatchSetStatsModel, BlockCreationAttributes, ReceptionId, ReceptionModel, BlockOptionalAttributes, CoachAttributes, CoachId, CountryId, CountryModel, CoachCreationAttributes, CoachPk, ScoreId, ScoreModel, CoachModel, RallyPositionId, RallyPositionModel, CoachOptionalAttributes, CountryAttributes, CountryCreationAttributes, CountryPk, EventAttributes, EventPk, EventCreationAttributes, LeagueAttributes, LeagueId, LeagueCreationAttributes, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementPk, MatchAttributes, MatchId, MatchPk, MatchCreationAttributes, MatchModel, MatchSetAttributes, MatchSetCreationAttributes, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsOptionalAttributes, transformToAPICoach, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerCreationAttributes, PlayerAttributes, PlayerId, PlayerPk, RallyCreationAttributes, RallyAttributes, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPk, RallyPositionPk, ReceptionCreationAttributes, ReceptionAttributes, ReceptionPk, ScoreCreationAttributes, ScoreAttributes, ScorePk, SeasonCreationAttributes, SeasonAttributes, SeasonId, SeasonTeamsAttributes, PlayerModel, SeasonPk, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonModel, SeasonTeamsPk, ServeCreationAttributes, ServeAttributes, ServeId, ServeModel, SetAttributes, ServePk, SetId, SetModel, SetPk, SetCreationAttributes, SpikeCreationAttributes, SpikeAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionCreationAttributes, SubstitutionAttributes, TeamAttributes, TeamId, TeamModel, TeamPk, transformToStage, transformFromStage, SubstitutionId, SubstitutionModel, TeamCreationAttributes, SubstitutionPk, RoleType, TraitType, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentStage,
|
|
3
|
+
import { BlockAttributes, BlockCreationAttributes, BlockFailure, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, BlockType, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, CourtPositionType, CourtTarget, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, EventType, Formation as FormationOpts, initModels, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, LiberoReplacementType, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionModel, ReceptionPk, ReceptionType, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonMatchAttributes, SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchModel, SeasonMatchPk, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeFailure, ServeId, ServeModel, ServePk, ServeType, SetAttributes, SetCreationAttributes, SetFailure, SetId, SetModel, SetPk, SetType, Side, SpikeAttributes, SpikeCreationAttributes, SpikeFailure, SpikeId, SpikeModel, SpikePk, SpikeType, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentModel, TournamentOptionalAttributes, TournamentPk, TournamentStage, TournamentTeamsAttributes, TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsModel, TournamentTeamsPk, TraitType, 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 } from './data';
|
|
4
|
+
export { League, Standing, LeagueOpts, CountryOpts, SeasonOpts, Season, StandingOpts, Country, CoachOpts, Coach, Role, SubPriority, GeneralStat, PerformanceStats, Formation, Stat, PerformanceStatsOpts, Block, EventTypeEnum, LiberoReplacement, MatchSet, Rally, RallyEvent, Reception, Score, Serve, Set, Spike, Substitution, BlockTypeEnum, LiberoReplacementTypeEnum, BlockFailureEnum, MatchSetState, MatchSetOpts, LiberoReplacementOpts, RallyEventOpts, InPlayEventOpts, EventStat, Match, InPlayEvent, CourtRow, CourtPosition, CourtTargetEnum, formatNumber, generateModifier, getKeys, MatchTeam, Name, PlayerOpts, Player, RallyState, PlayerPosition, randomNumber, ReceptionTypeEnum, ServeFailureEnum, ServeTypeEnum, SetFailureEnum, SetStatistics, SetTypeEnum, ReceptionFailureEnum, SpikeFailureEnum, SpikeTypeEnum, SubstitutionOpts, Team, shuffle, TeamOpts, Trait, getRandomEnumValue, validateUUID, APIBlock, APICoach, APIEvent, APILiberoReplacement, APIRally, APIReception, transformToAPILeague, APIScore, APIServe, APISet, APISpike, APISubstitution, APILeague, APIMatch, APIInPlayEvent, APIMatchSet, APIPlayer, APISeason, APITeam, APITrait, APITournament, APITournamentMatch, APISetStatistics, initModels, BlockId, BlockModel, RallyModel, RallyId, EventId, EventModel, MatchSetId, MatchSetModel, PerformanceStatsModel, PerformanceStatsId, BlockAttributes, LiberoReplacementId, LiberoReplacementModel, BlockPk, MatchSetStatsId, MatchSetStatsModel, BlockCreationAttributes, ReceptionId, ReceptionModel, BlockOptionalAttributes, CoachAttributes, CoachId, CountryId, CountryModel, CoachCreationAttributes, CoachPk, ScoreId, ScoreModel, CoachModel, RallyPositionId, RallyPositionModel, CoachOptionalAttributes, CountryAttributes, CountryCreationAttributes, CountryPk, EventAttributes, EventPk, EventCreationAttributes, LeagueAttributes, LeagueId, LeagueCreationAttributes, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementPk, MatchAttributes, MatchId, MatchPk, MatchCreationAttributes, MatchModel, MatchSetAttributes, MatchSetCreationAttributes, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsOptionalAttributes, transformToAPICoach, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerCreationAttributes, PlayerAttributes, PlayerId, PlayerPk, RallyCreationAttributes, RallyAttributes, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPk, RallyPositionPk, ReceptionCreationAttributes, ReceptionAttributes, ReceptionPk, ScoreCreationAttributes, ScoreAttributes, ScorePk, SeasonCreationAttributes, SeasonAttributes, SeasonId, SeasonTeamsAttributes, PlayerModel, SeasonPk, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonModel, SeasonTeamsPk, ServeCreationAttributes, ServeAttributes, ServeId, ServeModel, SetAttributes, ServePk, SetId, SetModel, SetPk, SetCreationAttributes, SpikeCreationAttributes, SpikeAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionCreationAttributes, SubstitutionAttributes, TeamAttributes, TeamId, TeamModel, TeamPk, transformToStage, transformFromStage, SubstitutionId, SubstitutionModel, TeamCreationAttributes, SubstitutionPk, RoleType, TraitType, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentStage, SeasonMatchModel, SeasonMatchAttributes, SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchPk, transformFromBlock, transformToAPIBlock, transformToBlock, transformFromCoach, transformFromCountry, transformFromRally, transformToAPIReception, transformToReception, transformToAPIScore, transformToScore, transformFromFormation, transformFromMatch, transformToAPISet, transformToSet, transformFromMatchSet, transformFromMatchSetStats, transformFromLeague, transformFromPlayer, transformFromPlayerPosition, transformToPlayerPosition, transformFromCourtPosition, transformFromCourtTarget, transformFromPerformanceStats, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromEventType, transformFromServe, transformToAPIServe, transformToServe, transformFromSet, transformFromSpike, transformToAPISpike, transformToSpike, transformFromSubstitution, transformToAPISubstitution, transformToSubstitution, transformFromTeam, transformFromTrait, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformFromSeasonMatch, transformToAPISeason, transformToAPITeam, transformToAPITrait, transformFromLiberoReplacement, transformToAPILiberoReplacement, transformToLiberoReplacement, transformToCoach, transformToCountry, transformToEventType, transformToMatchSet, transformToCourtPosition, transformToCourtTarget, transformToFormation, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToRally, transformToMatch, transformToSeason, transformToTeam, transformToTrait, transformToLeague, transformToRole, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch, Stage, TournamentStageOpts, TournamentMatch, Tournament, TournamentOpts, LiberoReplacementType, BlockFailure, BlockType, EventType, FormationOpts, ReceptionType, ServeFailure, ServeType, SetFailure, SetType, ReceptionFailure, SpikeFailure, SpikeType, CourtTarget, Side, CourtPositionType, TournamentOptionalAttributes, TournamentTeamsPk, TournamentTeamsModel, TournamentTeamsAttributes, TournamentTeamsCreationAttributes, TournamentTeamsId, };
|