volleyballsimtypes 0.0.46 → 0.0.48
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 +5 -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 -6
- package/dist/cjs/src/data/models/coach.d.ts +3 -3
- package/dist/cjs/src/data/models/index.d.ts +50 -25
- 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/formation.d.ts +1 -1
- 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 +4 -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 +5 -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 -7
- package/dist/esm/src/data/models/coach.d.ts +3 -3
- package/dist/esm/src/data/models/index.d.ts +50 -25
- 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/formation.d.ts +1 -1
- 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 +4 -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,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { 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 } from './models';
|
|
2
|
+
import { 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 } from './models';
|
|
3
|
+
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromSeasonMatch, transformFromServe, transformFromSet, transformFromSpike, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILeague, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait } from './transformers';
|
|
3
4
|
import { initModels } from './init-models';
|
|
4
|
-
export { initModels, transformToStage, transformFromStage,
|
|
5
|
+
export { initModels, transformToStage, transformFromStage, SeasonMatchModel, SeasonMatchAttributes, TournamentAttributes, TournamentModel, TournamentMatchAttributes, TournamentMatchModel, BlockAttributes, BlockModel, BlockOptionalAttributes, CoachAttributes, CoachModel, CoachOptionalAttributes, CountryAttributes, CountryModel, EventAttributes, EventModel, LeagueAttributes, LeagueModel, LiberoReplacementAttributes, LiberoReplacementModel, MatchAttributes, MatchModel, MatchSetAttributes, MatchSetModel, MatchSetOptionalAttributes, MatchSetStatsAttributes, MatchSetStatsModel, MatchSetStatsOptionalAttributes, PerformanceStatsAttributes, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PlayerAttributes, PlayerModel, RallyAttributes, RallyModel, RallyPositionAttributes, RallyPositionModel, ReceptionAttributes, ReceptionModel, ScoreAttributes, ScoreModel, SeasonAttributes, SeasonModel, SeasonTeamsAttributes, SeasonTeamsModel, ServeAttributes, ServeModel, SetAttributes, SetModel, SpikeAttributes, SpikeModel, SubstitutionAttributes, SubstitutionModel, TeamAttributes, TeamModel, 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, TournamentOptionalAttributes, TournamentTeamsAttributes, TournamentTeamsModel, };
|
|
6
|
+
export type { TournamentId, TournamentPk, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockId, BlockPk, CoachId, CoachPk, CountryId, CountryPk, SeasonMatchId, SeasonMatchPk, EventId, EventPk, LeagueId, LeaguePk, LiberoReplacementId, LiberoReplacementPk, MatchId, MatchPk, MatchSetId, MatchSetPk, MatchSetStatsId, MatchSetStatsPk, PerformanceStatsId, PerformanceStatsPk, PlayerId, PlayerPk, RallyId, RallyPk, RallyPositionId, RallyPositionPk, ReceptionId, ReceptionPk, RoleType, ScoreId, ScorePk, SeasonId, SeasonPk, SeasonTeamsId, SeasonTeamsPk, ServeId, ServePk, SetId, SetPk, SpikeId, SpikePk, SubstitutionId, SubstitutionPk, TeamId, TeamPk, TraitType, EventType, BlockFailure, BlockType, FormationType, ServeFailure, SpikeFailure, SpikeType, SetType, ReceptionFailure, SetFailure, ServeType, ReceptionType, CourtPositionType, Side, CourtTarget, LiberoReplacementType, TournamentTeamsId, TournamentTeamsPk, TournamentCreationAttributes, TournamentMatchCreationAttributes, BlockCreationAttributes, CoachCreationAttributes, CountryCreationAttributes, SeasonMatchCreationAttributes, EventCreationAttributes, LeagueCreationAttributes, LiberoReplacementCreationAttributes, MatchCreationAttributes, MatchSetCreationAttributes, MatchSetStatsCreationAttributes, PerformanceStatsCreationAttributes, PlayerCreationAttributes, RallyCreationAttributes, RallyPositionCreationAttributes, ReceptionCreationAttributes, ScoreCreationAttributes, SeasonCreationAttributes, SeasonTeamsCreationAttributes, ServeCreationAttributes, SetCreationAttributes, SpikeCreationAttributes, SubstitutionCreationAttributes, TeamCreationAttributes, TournamentTeamsCreationAttributes, };
|
|
@@ -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; } });
|
|
@@ -51,6 +51,7 @@ Object.defineProperty(exports, "transformFromReception", { enumerable: true, get
|
|
|
51
51
|
Object.defineProperty(exports, "transformFromRole", { enumerable: true, get: function () { return transformers_1.transformFromRole; } });
|
|
52
52
|
Object.defineProperty(exports, "transformFromScore", { enumerable: true, get: function () { return transformers_1.transformFromScore; } });
|
|
53
53
|
Object.defineProperty(exports, "transformFromSeason", { enumerable: true, get: function () { return transformers_1.transformFromSeason; } });
|
|
54
|
+
Object.defineProperty(exports, "transformFromSeasonMatch", { enumerable: true, get: function () { return transformers_1.transformFromSeasonMatch; } });
|
|
54
55
|
Object.defineProperty(exports, "transformFromServe", { enumerable: true, get: function () { return transformers_1.transformFromServe; } });
|
|
55
56
|
Object.defineProperty(exports, "transformFromSet", { enumerable: true, get: function () { return transformers_1.transformFromSet; } });
|
|
56
57
|
Object.defineProperty(exports, "transformFromSpike", { enumerable: true, get: function () { return transformers_1.transformFromSpike; } });
|
|
@@ -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,7 +51,7 @@ 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.hasOne(
|
|
54
|
+
Match.hasOne(SeasonMatch, { as: 'SeasonMatch', foreignKey: 'match_id' });
|
|
55
55
|
Match.hasOne(TournamentMatch, { as: 'TournamentMatch', foreignKey: 'match_id' });
|
|
56
56
|
MatchSet.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
|
|
57
57
|
MatchSet.belongsTo(Player, { as: 'away_libero_Player', foreignKey: 'away_libero' });
|
|
@@ -127,7 +127,7 @@ function initModels(sequelize) {
|
|
|
127
127
|
Score.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
|
|
128
128
|
Season.belongsTo(League, { as: 'league', foreignKey: 'league_id' });
|
|
129
129
|
Season.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
|
|
130
|
-
Season.hasMany(
|
|
130
|
+
Season.hasMany(SeasonMatch, { as: 'SeasonMatches', foreignKey: 'season_id' });
|
|
131
131
|
Season.hasMany(SeasonTeams, { as: 'SeasonTeams', foreignKey: 'season_id' });
|
|
132
132
|
Season.belongsToMany(Team, {
|
|
133
133
|
as: 'seasonTeams',
|
|
@@ -135,8 +135,8 @@ function initModels(sequelize) {
|
|
|
135
135
|
foreignKey: 'season_id',
|
|
136
136
|
otherKey: 'team_id'
|
|
137
137
|
});
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
SeasonMatch.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
|
|
139
|
+
SeasonMatch.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
|
|
140
140
|
SeasonTeams.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
|
|
141
141
|
SeasonTeams.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
|
|
142
142
|
Serve.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
|
|
@@ -201,7 +201,7 @@ function initModels(sequelize) {
|
|
|
201
201
|
Score,
|
|
202
202
|
Season,
|
|
203
203
|
SeasonTeams,
|
|
204
|
-
|
|
204
|
+
SeasonMatch,
|
|
205
205
|
Serve,
|
|
206
206
|
Set,
|
|
207
207
|
Spike,
|
|
@@ -3,7 +3,7 @@ import { Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { CountryId, CountryModel, TeamId, TeamModel } from '.';
|
|
4
4
|
export interface CoachAttributes {
|
|
5
5
|
coach_id: string;
|
|
6
|
-
formation:
|
|
6
|
+
formation: FormationType;
|
|
7
7
|
substitution_tolerance: number;
|
|
8
8
|
first_name: string;
|
|
9
9
|
last_name: string;
|
|
@@ -11,12 +11,12 @@ export interface CoachAttributes {
|
|
|
11
11
|
}
|
|
12
12
|
export type CoachPk = 'coach_id';
|
|
13
13
|
export type CoachId = CoachModel[CoachPk];
|
|
14
|
-
export type
|
|
14
|
+
export type FormationType = '4-2' | '6-2' | '5-1';
|
|
15
15
|
export type CoachOptionalAttributes = 'substitution_tolerance';
|
|
16
16
|
export type CoachCreationAttributes = Optional<CoachAttributes, CoachOptionalAttributes>;
|
|
17
17
|
export declare class CoachModel extends Model<CoachAttributes, CoachCreationAttributes> implements CoachAttributes {
|
|
18
18
|
coach_id: string;
|
|
19
|
-
formation:
|
|
19
|
+
formation: FormationType;
|
|
20
20
|
substitution_tolerance: number;
|
|
21
21
|
first_name: string;
|
|
22
22
|
last_name: string;
|
|
@@ -1,27 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import type { BlockCreationAttributes, BlockFailure, BlockId, BlockOptionalAttributes, BlockPk, BlockType } from './block';
|
|
2
|
+
import { BlockAttributes, BlockModel } from './block';
|
|
3
|
+
import type { CoachCreationAttributes, CoachId, CoachOptionalAttributes, CoachPk, FormationType } from './coach';
|
|
4
|
+
import { CoachAttributes, CoachModel } from './coach';
|
|
5
|
+
import type { CountryCreationAttributes, CountryId, CountryPk } from './country';
|
|
6
|
+
import { CountryAttributes, CountryModel } from './country';
|
|
7
|
+
import type { CourtTarget, EventCreationAttributes, EventId, EventPk, EventType } from './event';
|
|
8
|
+
import { EventAttributes, EventModel } from './event';
|
|
9
|
+
import type { LeagueCreationAttributes, LeagueId, LeaguePk } from './league';
|
|
10
|
+
import { LeagueAttributes, LeagueModel } from './league';
|
|
11
|
+
import type { LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementPk, LiberoReplacementType } from './libero-replacement';
|
|
12
|
+
import { LiberoReplacementAttributes, LiberoReplacementModel } from './libero-replacement';
|
|
13
|
+
import type { MatchCreationAttributes, MatchId, MatchPk } from './match';
|
|
14
|
+
import { MatchAttributes, MatchModel } from './match';
|
|
15
|
+
import type { MatchSetCreationAttributes, MatchSetId, MatchSetOptionalAttributes, MatchSetPk } from './match-set';
|
|
16
|
+
import { MatchSetAttributes, MatchSetModel } from './match-set';
|
|
17
|
+
import type { MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsOptionalAttributes, MatchSetStatsPk } from './match-set-stats';
|
|
18
|
+
import { MatchSetStatsAttributes, MatchSetStatsModel } from './match-set-stats';
|
|
19
|
+
import type { PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsOptionalAttributes, PerformanceStatsPk } from './performance-stats';
|
|
20
|
+
import { PerformanceStatsAttributes, PerformanceStatsModel } from './performance-stats';
|
|
21
|
+
import type { PlayerCreationAttributes, PlayerId, PlayerPk, RoleType, TraitType } from './player';
|
|
22
|
+
import { PlayerAttributes, PlayerModel } from './player';
|
|
12
23
|
import { RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk } from './rally';
|
|
13
24
|
import { CourtPositionType, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, Side } from './rally-position';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
25
|
+
import type { ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionPk, ReceptionType } from './reception';
|
|
26
|
+
import { ReceptionAttributes, ReceptionModel } from './reception';
|
|
27
|
+
import type { ScoreCreationAttributes, ScoreId, ScorePk } from './score';
|
|
28
|
+
import { ScoreAttributes, ScoreModel } from './score';
|
|
29
|
+
import type { SeasonCreationAttributes, SeasonId, SeasonPk } from './season';
|
|
30
|
+
import { SeasonAttributes, SeasonModel } from './season';
|
|
31
|
+
import type { SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsPk } from './season-teams';
|
|
32
|
+
import { SeasonTeamsAttributes, SeasonTeamsModel } from './season-teams';
|
|
33
|
+
import type { SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchPk } from './season-match';
|
|
34
|
+
import { SeasonMatchAttributes, SeasonMatchModel } from './season-match';
|
|
35
|
+
import type { ServeCreationAttributes, ServeFailure, ServeId, ServePk, ServeType } from './serve';
|
|
36
|
+
import { ServeAttributes, ServeModel } from './serve';
|
|
37
|
+
import type { SetCreationAttributes, SetFailure, SetId, SetPk, SetType } from './set';
|
|
38
|
+
import { SetAttributes, SetModel } from './set';
|
|
39
|
+
import type { SpikeCreationAttributes, SpikeFailure, SpikeId, SpikePk, SpikeType } from './spike';
|
|
40
|
+
import { SpikeAttributes, SpikeModel } from './spike';
|
|
41
|
+
import type { SubstitutionCreationAttributes, SubstitutionId, SubstitutionPk } from './substitution';
|
|
42
|
+
import { SubstitutionAttributes, SubstitutionModel } from './substitution';
|
|
43
|
+
import type { TeamCreationAttributes, TeamId, TeamPk } from './team';
|
|
44
|
+
import { TeamAttributes, TeamModel } from './team';
|
|
45
|
+
import type { TournamentCreationAttributes, TournamentId, TournamentOptionalAttributes, TournamentPk } from './tournament';
|
|
46
|
+
import { TournamentAttributes, TournamentModel } from './tournament';
|
|
47
|
+
import type { TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage } from './tournament-match';
|
|
48
|
+
import { TournamentMatchAttributes, TournamentMatchModel } from './tournament-match';
|
|
49
|
+
import type { TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsPk } from './tournament-teams';
|
|
50
|
+
import { TournamentTeamsAttributes, TournamentTeamsModel } from './tournament-teams';
|
|
51
|
+
export type { TournamentId, TournamentPk, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockId, BlockPk, CoachId, CoachPk, CountryId, CountryPk, SeasonMatchId, SeasonMatchPk, EventId, EventPk, LeagueId, LeaguePk, LiberoReplacementId, LiberoReplacementPk, MatchId, MatchPk, MatchSetId, MatchSetPk, MatchSetStatsId, MatchSetStatsPk, PerformanceStatsId, PerformanceStatsPk, PlayerId, PlayerPk, RallyId, RallyPk, RallyPositionId, RallyPositionPk, ReceptionId, ReceptionPk, RoleType, ScoreId, ScorePk, SeasonId, SeasonPk, SeasonTeamsId, SeasonTeamsPk, ServeId, ServePk, SetId, SetPk, SpikeId, SpikePk, SubstitutionId, SubstitutionPk, TeamId, TeamPk, TraitType, EventType, BlockFailure, BlockType, FormationType, ServeFailure, SpikeFailure, SpikeType, SetType, ReceptionFailure, SetFailure, ServeType, ReceptionType, CourtPositionType, Side, CourtTarget, LiberoReplacementType, TournamentTeamsId, TournamentTeamsPk, TournamentCreationAttributes, TournamentMatchCreationAttributes, BlockCreationAttributes, CoachCreationAttributes, CountryCreationAttributes, SeasonMatchCreationAttributes, EventCreationAttributes, LeagueCreationAttributes, LiberoReplacementCreationAttributes, MatchCreationAttributes, MatchSetCreationAttributes, MatchSetStatsCreationAttributes, PerformanceStatsCreationAttributes, PlayerCreationAttributes, RallyCreationAttributes, RallyPositionCreationAttributes, ReceptionCreationAttributes, ScoreCreationAttributes, SeasonCreationAttributes, SeasonTeamsCreationAttributes, ServeCreationAttributes, SetCreationAttributes, SpikeCreationAttributes, SubstitutionCreationAttributes, TeamCreationAttributes, TournamentTeamsCreationAttributes, };
|
|
52
|
+
export { TournamentAttributes, TournamentMatchAttributes, BlockAttributes, BlockOptionalAttributes, CoachAttributes, CoachOptionalAttributes, CountryAttributes, SeasonMatchAttributes, EventAttributes, LeagueAttributes, LiberoReplacementAttributes, MatchAttributes, MatchSetAttributes, MatchSetOptionalAttributes, MatchSetStatsAttributes, MatchSetStatsOptionalAttributes, PerformanceStatsAttributes, PerformanceStatsOptionalAttributes, PlayerAttributes, RallyAttributes, RallyPositionAttributes, ReceptionAttributes, ScoreAttributes, SeasonAttributes, SeasonTeamsAttributes, ServeAttributes, SetAttributes, SpikeAttributes, SubstitutionAttributes, TeamAttributes, TournamentOptionalAttributes, TournamentTeamsAttributes, TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, SeasonMatchModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentTeamsModel, };
|
|
@@ -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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Formation } from '../../service';
|
|
2
|
-
import {
|
|
2
|
+
import { FormationType as TeamFormation } from '../models';
|
|
3
3
|
declare function transformToType(_formation: Formation): TeamFormation;
|
|
4
4
|
declare function transformFromType(_formation: TeamFormation): Formation;
|
|
5
5
|
export { transformToType as transformFromFormation, transformFromType as transformToFormation };
|
|
@@ -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;
|