volleyballsimtypes 0.0.43 → 0.0.44
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.
|
@@ -6,7 +6,7 @@ export interface TournamentAttributes {
|
|
|
6
6
|
tournament_id: string;
|
|
7
7
|
iteration: number;
|
|
8
8
|
champion?: string;
|
|
9
|
-
|
|
9
|
+
TournamentMatches?: TournamentMatchAttributes[];
|
|
10
10
|
tournamentTeams?: TeamAttributes[];
|
|
11
11
|
}
|
|
12
12
|
export type TournamentPk = 'tournament_id';
|
|
@@ -23,7 +23,6 @@ export declare class TournamentModel extends Model<TournamentAttributes, Tournam
|
|
|
23
23
|
setChampion_Team: Sequelize.BelongsToSetAssociationMixin<TeamModel, TeamId>;
|
|
24
24
|
createChampion_Team: Sequelize.BelongsToCreateAssociationMixin<TeamModel>;
|
|
25
25
|
TournamentMatches: TournamentMatchModel[];
|
|
26
|
-
tournamentMatches: TournamentMatchModel[];
|
|
27
26
|
getTournamentMatches: Sequelize.HasManyGetAssociationsMixin<TournamentMatchModel>;
|
|
28
27
|
setTournamentMatches: Sequelize.HasManySetAssociationsMixin<TournamentMatchModel, TournamentMatchId>;
|
|
29
28
|
addTournamentMatch: Sequelize.HasManyAddAssociationMixin<TournamentMatchModel, TournamentMatchId>;
|
|
@@ -11,7 +11,7 @@ function transformToAttributes(tournament) {
|
|
|
11
11
|
iteration: tournament.iteration,
|
|
12
12
|
champion: tournament.champion != null ? tournament.champion.id : undefined,
|
|
13
13
|
tournamentTeams: tournament.teams != null ? tournament.teams.map(_1.transformFromTeam) : [],
|
|
14
|
-
tournamentMatches
|
|
14
|
+
TournamentMatches: tournamentMatches
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
exports.transformFromTournament = transformToAttributes;
|
|
@@ -6,7 +6,7 @@ export interface TournamentAttributes {
|
|
|
6
6
|
tournament_id: string;
|
|
7
7
|
iteration: number;
|
|
8
8
|
champion?: string;
|
|
9
|
-
|
|
9
|
+
TournamentMatches?: TournamentMatchAttributes[];
|
|
10
10
|
tournamentTeams?: TeamAttributes[];
|
|
11
11
|
}
|
|
12
12
|
export type TournamentPk = 'tournament_id';
|
|
@@ -23,7 +23,6 @@ export declare class TournamentModel extends Model<TournamentAttributes, Tournam
|
|
|
23
23
|
setChampion_Team: Sequelize.BelongsToSetAssociationMixin<TeamModel, TeamId>;
|
|
24
24
|
createChampion_Team: Sequelize.BelongsToCreateAssociationMixin<TeamModel>;
|
|
25
25
|
TournamentMatches: TournamentMatchModel[];
|
|
26
|
-
tournamentMatches: TournamentMatchModel[];
|
|
27
26
|
getTournamentMatches: Sequelize.HasManyGetAssociationsMixin<TournamentMatchModel>;
|
|
28
27
|
setTournamentMatches: Sequelize.HasManySetAssociationsMixin<TournamentMatchModel, TournamentMatchId>;
|
|
29
28
|
addTournamentMatch: Sequelize.HasManyAddAssociationMixin<TournamentMatchModel, TournamentMatchId>;
|
|
@@ -8,7 +8,7 @@ function transformToAttributes(tournament) {
|
|
|
8
8
|
iteration: tournament.iteration,
|
|
9
9
|
champion: tournament.champion != null ? tournament.champion.id : undefined,
|
|
10
10
|
tournamentTeams: tournament.teams != null ? tournament.teams.map(transformFromTeam) : [],
|
|
11
|
-
tournamentMatches
|
|
11
|
+
TournamentMatches: tournamentMatches
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
function transformToObject(model) {
|