volleyballsimtypes 0.0.58 → 0.0.60
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 -5
- package/dist/cjs/src/data/index.js +4 -1
- package/dist/cjs/src/data/init-models.d.ts +2 -1
- package/dist/cjs/src/data/init-models.js +6 -0
- package/dist/cjs/src/data/models/index.d.ts +4 -2
- package/dist/cjs/src/data/models/index.js +3 -1
- package/dist/cjs/src/data/models/iteration.d.ts +37 -0
- package/dist/cjs/src/data/models/iteration.js +36 -0
- package/dist/cjs/src/data/models/season.d.ts +6 -2
- package/dist/cjs/src/data/models/season.js +8 -8
- package/dist/cjs/src/data/models/tournament.d.ts +6 -2
- package/dist/cjs/src/data/models/tournament.js +7 -5
- package/dist/cjs/src/data/transformers/index.d.ts +2 -1
- package/dist/cjs/src/data/transformers/index.js +5 -2
- package/dist/cjs/src/data/transformers/iteration.d.ts +5 -0
- package/dist/cjs/src/data/transformers/iteration.js +18 -0
- package/dist/cjs/src/data/transformers/season.js +2 -2
- package/dist/cjs/src/data/transformers/tournament.js +2 -2
- package/dist/cjs/src/index.d.ts +5 -5
- package/dist/cjs/src/index.js +7 -3
- package/dist/cjs/src/service/competition/index.d.ts +8 -0
- package/dist/cjs/src/service/competition/index.js +17 -0
- package/dist/cjs/src/service/competition/iteration.d.ts +9 -0
- package/dist/cjs/src/service/competition/iteration.js +12 -0
- package/dist/cjs/src/service/{league → competition}/season.d.ts +3 -2
- package/dist/{esm/src/service/tournament → cjs/src/service/competition}/tournament.d.ts +3 -2
- package/dist/cjs/src/service/index.d.ts +2 -3
- package/dist/cjs/src/service/index.js +9 -9
- package/dist/cjs/src/service/team/team.d.ts +1 -1
- package/dist/esm/src/data/index.d.ts +5 -5
- package/dist/esm/src/data/index.js +3 -3
- package/dist/esm/src/data/init-models.d.ts +2 -1
- package/dist/esm/src/data/init-models.js +7 -1
- package/dist/esm/src/data/models/index.d.ts +4 -2
- package/dist/esm/src/data/models/index.js +2 -1
- package/dist/esm/src/data/models/iteration.d.ts +37 -0
- package/dist/esm/src/data/models/iteration.js +32 -0
- package/dist/esm/src/data/models/season.d.ts +6 -2
- package/dist/esm/src/data/models/season.js +8 -8
- package/dist/esm/src/data/models/tournament.d.ts +6 -2
- package/dist/esm/src/data/models/tournament.js +7 -5
- 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/iteration.d.ts +5 -0
- package/dist/esm/src/data/transformers/iteration.js +14 -0
- package/dist/esm/src/data/transformers/season.js +3 -3
- package/dist/esm/src/data/transformers/tournament.js +3 -3
- package/dist/esm/src/index.d.ts +5 -5
- package/dist/esm/src/index.js +3 -3
- package/dist/esm/src/service/competition/index.d.ts +8 -0
- package/dist/esm/src/service/competition/index.js +8 -0
- package/dist/esm/src/service/competition/iteration.d.ts +9 -0
- package/dist/esm/src/service/competition/iteration.js +8 -0
- package/dist/esm/src/service/{league → competition}/season.d.ts +3 -2
- package/dist/{cjs/src/service/tournament → esm/src/service/competition}/tournament.d.ts +3 -2
- package/dist/esm/src/service/index.d.ts +2 -3
- package/dist/esm/src/service/index.js +2 -3
- package/dist/esm/src/service/team/team.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/src/service/league/index.d.ts +0 -4
- package/dist/cjs/src/service/league/index.js +0 -9
- package/dist/cjs/src/service/tournament/index.d.ts +0 -4
- package/dist/cjs/src/service/tournament/index.js +0 -9
- package/dist/esm/src/service/league/index.d.ts +0 -4
- package/dist/esm/src/service/league/index.js +0 -4
- package/dist/esm/src/service/tournament/index.d.ts +0 -4
- package/dist/esm/src/service/tournament/index.js +0 -4
- /package/dist/cjs/src/service/{league → competition}/league.d.ts +0 -0
- /package/dist/cjs/src/service/{league → competition}/league.js +0 -0
- /package/dist/cjs/src/service/{league → competition}/season.js +0 -0
- /package/dist/cjs/src/service/{tournament → competition}/stage.d.ts +0 -0
- /package/dist/cjs/src/service/{tournament → competition}/stage.js +0 -0
- /package/dist/cjs/src/service/{league → competition}/standing.d.ts +0 -0
- /package/dist/cjs/src/service/{league → competition}/standing.js +0 -0
- /package/dist/cjs/src/service/{tournament → competition}/tournament-match.d.ts +0 -0
- /package/dist/cjs/src/service/{tournament → competition}/tournament-match.js +0 -0
- /package/dist/cjs/src/service/{tournament → competition}/tournament.js +0 -0
- /package/dist/esm/src/service/{league → competition}/league.d.ts +0 -0
- /package/dist/esm/src/service/{league → competition}/league.js +0 -0
- /package/dist/esm/src/service/{league → competition}/season.js +0 -0
- /package/dist/esm/src/service/{tournament → competition}/stage.d.ts +0 -0
- /package/dist/esm/src/service/{tournament → competition}/stage.js +0 -0
- /package/dist/esm/src/service/{league → competition}/standing.d.ts +0 -0
- /package/dist/esm/src/service/{league → competition}/standing.js +0 -0
- /package/dist/esm/src/service/{tournament → competition}/tournament-match.d.ts +0 -0
- /package/dist/esm/src/service/{tournament → competition}/tournament-match.js +0 -0
- /package/dist/esm/src/service/{tournament → competition}/tournament.js +0 -0
package/dist/cjs/src/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateUUID = exports.getRandomEnumValue = exports.Trait = exports.shuffle = exports.Team = exports.SpikeTypeEnum = exports.SpikeFailureEnum = exports.ReceptionFailureEnum = exports.SetTypeEnum = exports.SetFailureEnum = exports.ServeTypeEnum = exports.ServeFailureEnum = exports.ReceptionTypeEnum = exports.randomNumber = exports.RallyState = exports.Player = exports.MatchTeam = exports.getKeys = exports.generateModifier = exports.formatNumber = exports.CourtTargetEnum = exports.CourtPosition = exports.CourtRow = exports.InPlayEvent = exports.Match = exports.MatchSetState = exports.BlockFailureEnum = exports.LiberoReplacementTypeEnum = exports.BlockTypeEnum = exports.Substitution = exports.Spike = exports.Set = exports.Serve = exports.Score = exports.Reception = exports.RallyEvent = exports.Rally = exports.MatchSet = exports.LiberoReplacement = exports.EventTypeEnum = exports.Block = exports.Formation = exports.PerformanceStats = exports.GeneralStat = exports.Role = exports.Coach = exports.Country = exports.Season = exports.Standing = exports.League = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.TournamentTeamsModel = exports.Tournament = exports.TournamentMatch = exports.Stage = exports.transformToTournamentMatch = exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = exports.transformToTournament = exports.transformToAPITournament = exports.transformFromTournament = void 0;
|
|
4
|
+
exports.transformFromMatchSet = exports.transformToSet = exports.transformToAPISet = exports.transformFromMatch = exports.transformFromFormation = exports.transformToScore = exports.transformToAPIScore = exports.transformToReception = exports.transformToAPIReception = exports.transformFromRally = exports.transformFromCountry = exports.transformFromCoach = exports.transformToBlock = exports.transformToAPIBlock = exports.transformFromBlock = exports.transformToIteration = exports.transformFromIteration = exports.Iteration = exports.IterationModel = exports.SeasonMatchModel = exports.TournamentMatchModel = exports.TournamentModel = exports.SubstitutionModel = exports.transformFromStage = exports.transformToStage = exports.TeamModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = exports.SeasonModel = exports.SeasonTeamsModel = exports.PlayerModel = exports.transformToAPICoach = exports.MatchModel = exports.LeagueModel = exports.RallyPositionModel = exports.CoachModel = exports.ScoreModel = exports.CountryModel = exports.ReceptionModel = exports.MatchSetStatsModel = exports.LiberoReplacementModel = exports.PerformanceStatsModel = exports.MatchSetModel = exports.EventModel = exports.RallyModel = exports.BlockModel = exports.initModels = exports.APITrait = exports.transformToAPILeague = void 0;
|
|
5
|
+
exports.transformToSeason = exports.transformToMatch = exports.transformToRally = exports.transformToPlayer = exports.transformToPerformanceStats = exports.transformToMatchSetStats = exports.transformToFormation = exports.transformToCourtTarget = exports.transformToCourtPosition = exports.transformToMatchSet = exports.transformToEventType = exports.transformToCountry = exports.transformToCoach = exports.transformToLiberoReplacement = exports.transformToAPILiberoReplacement = exports.transformFromLiberoReplacement = exports.transformToAPITrait = exports.transformToAPITeam = exports.transformToAPISeason = exports.transformFromSeasonMatch = exports.transformToAPIRally = exports.transformToAPIPlayer = exports.transformToAPIMatchSetStats = exports.transformToAPIMatchSet = exports.transformToAPIMatch = exports.transformFromTrait = exports.transformFromTeam = exports.transformToSubstitution = exports.transformToAPISubstitution = exports.transformFromSubstitution = exports.transformToSpike = exports.transformToAPISpike = exports.transformFromSpike = exports.transformFromSet = exports.transformToServe = exports.transformToAPIServe = exports.transformFromServe = exports.transformFromEventType = exports.transformFromSeason = exports.transformFromScore = exports.transformFromRole = exports.transformFromReception = exports.transformFromPerformanceStats = exports.transformFromCourtTarget = exports.transformFromCourtPosition = exports.transformToPlayerPosition = exports.transformFromPlayerPosition = exports.transformFromPlayer = exports.transformFromLeague = exports.transformFromMatchSetStats = void 0;
|
|
6
|
+
exports.TournamentTeamsModel = exports.Tournament = exports.TournamentMatch = exports.Stage = exports.transformToTournamentMatch = exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = exports.transformToTournament = exports.transformToAPITournament = exports.transformFromTournament = exports.transformToRole = exports.transformToLeague = exports.transformToTrait = exports.transformToTeam = void 0;
|
|
7
7
|
const service_1 = require("./service");
|
|
8
8
|
Object.defineProperty(exports, "Block", { enumerable: true, get: function () { return service_1.Block; } });
|
|
9
9
|
Object.defineProperty(exports, "BlockFailureEnum", { enumerable: true, get: function () { return service_1.BlockFailure; } });
|
|
@@ -21,6 +21,7 @@ Object.defineProperty(exports, "generateModifier", { enumerable: true, get: func
|
|
|
21
21
|
Object.defineProperty(exports, "getKeys", { enumerable: true, get: function () { return service_1.getKeys; } });
|
|
22
22
|
Object.defineProperty(exports, "getRandomEnumValue", { enumerable: true, get: function () { return service_1.getRandomEnumValue; } });
|
|
23
23
|
Object.defineProperty(exports, "InPlayEvent", { enumerable: true, get: function () { return service_1.InPlayEvent; } });
|
|
24
|
+
Object.defineProperty(exports, "Iteration", { enumerable: true, get: function () { return service_1.Iteration; } });
|
|
24
25
|
Object.defineProperty(exports, "League", { enumerable: true, get: function () { return service_1.League; } });
|
|
25
26
|
Object.defineProperty(exports, "LiberoReplacement", { enumerable: true, get: function () { return service_1.LiberoReplacement; } });
|
|
26
27
|
Object.defineProperty(exports, "LiberoReplacementTypeEnum", { enumerable: true, get: function () { return service_1.LiberoReplacementType; } });
|
|
@@ -66,6 +67,7 @@ Object.defineProperty(exports, "CoachModel", { enumerable: true, get: function (
|
|
|
66
67
|
Object.defineProperty(exports, "CountryModel", { enumerable: true, get: function () { return data_1.CountryModel; } });
|
|
67
68
|
Object.defineProperty(exports, "EventModel", { enumerable: true, get: function () { return data_1.EventModel; } });
|
|
68
69
|
Object.defineProperty(exports, "initModels", { enumerable: true, get: function () { return data_1.initModels; } });
|
|
70
|
+
Object.defineProperty(exports, "IterationModel", { enumerable: true, get: function () { return data_1.IterationModel; } });
|
|
69
71
|
Object.defineProperty(exports, "LeagueModel", { enumerable: true, get: function () { return data_1.LeagueModel; } });
|
|
70
72
|
Object.defineProperty(exports, "LiberoReplacementModel", { enumerable: true, get: function () { return data_1.LiberoReplacementModel; } });
|
|
71
73
|
Object.defineProperty(exports, "MatchModel", { enumerable: true, get: function () { return data_1.MatchModel; } });
|
|
@@ -89,6 +91,7 @@ Object.defineProperty(exports, "TournamentMatchModel", { enumerable: true, get:
|
|
|
89
91
|
Object.defineProperty(exports, "TournamentModel", { enumerable: true, get: function () { return data_1.TournamentModel; } });
|
|
90
92
|
Object.defineProperty(exports, "TournamentTeamsModel", { enumerable: true, get: function () { return data_1.TournamentTeamsModel; } });
|
|
91
93
|
Object.defineProperty(exports, "transformFromBlock", { enumerable: true, get: function () { return data_1.transformFromBlock; } });
|
|
94
|
+
Object.defineProperty(exports, "transformFromIteration", { enumerable: true, get: function () { return data_1.transformFromIteration; } });
|
|
92
95
|
Object.defineProperty(exports, "transformFromCoach", { enumerable: true, get: function () { return data_1.transformFromCoach; } });
|
|
93
96
|
Object.defineProperty(exports, "transformFromCountry", { enumerable: true, get: function () { return data_1.transformFromCountry; } });
|
|
94
97
|
Object.defineProperty(exports, "transformFromCourtPosition", { enumerable: true, get: function () { return data_1.transformFromCourtPosition; } });
|
|
@@ -145,6 +148,7 @@ Object.defineProperty(exports, "transformToCourtPosition", { enumerable: true, g
|
|
|
145
148
|
Object.defineProperty(exports, "transformToCourtTarget", { enumerable: true, get: function () { return data_1.transformToCourtTarget; } });
|
|
146
149
|
Object.defineProperty(exports, "transformToEventType", { enumerable: true, get: function () { return data_1.transformToEventType; } });
|
|
147
150
|
Object.defineProperty(exports, "transformToFormation", { enumerable: true, get: function () { return data_1.transformToFormation; } });
|
|
151
|
+
Object.defineProperty(exports, "transformToIteration", { enumerable: true, get: function () { return data_1.transformToIteration; } });
|
|
148
152
|
Object.defineProperty(exports, "transformToLeague", { enumerable: true, get: function () { return data_1.transformToLeague; } });
|
|
149
153
|
Object.defineProperty(exports, "transformToLiberoReplacement", { enumerable: true, get: function () { return data_1.transformToLiberoReplacement; } });
|
|
150
154
|
Object.defineProperty(exports, "transformToMatch", { enumerable: true, get: function () { return data_1.transformToMatch; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Standing, StandingOpts } from './standing';
|
|
2
|
+
import { Season, SeasonOpts } from './season';
|
|
3
|
+
import { League, LeagueOpts } from './league';
|
|
4
|
+
import { Iteration, IterationOpts } from './iteration';
|
|
5
|
+
import { Tournament, TournamentOpts } from './tournament';
|
|
6
|
+
import { TournamentMatch, TournamentStageOpts } from './tournament-match';
|
|
7
|
+
import { Stage } from './stage';
|
|
8
|
+
export { TournamentOpts, TournamentStageOpts, TournamentMatch, Stage, Tournament, StandingOpts, LeagueOpts, SeasonOpts, Season, Standing, League, Iteration, IterationOpts };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Iteration = exports.League = exports.Standing = exports.Season = exports.Tournament = exports.Stage = exports.TournamentMatch = void 0;
|
|
4
|
+
const standing_1 = require("./standing");
|
|
5
|
+
Object.defineProperty(exports, "Standing", { enumerable: true, get: function () { return standing_1.Standing; } });
|
|
6
|
+
const season_1 = require("./season");
|
|
7
|
+
Object.defineProperty(exports, "Season", { enumerable: true, get: function () { return season_1.Season; } });
|
|
8
|
+
const league_1 = require("./league");
|
|
9
|
+
Object.defineProperty(exports, "League", { enumerable: true, get: function () { return league_1.League; } });
|
|
10
|
+
const iteration_1 = require("./iteration");
|
|
11
|
+
Object.defineProperty(exports, "Iteration", { enumerable: true, get: function () { return iteration_1.Iteration; } });
|
|
12
|
+
const tournament_1 = require("./tournament");
|
|
13
|
+
Object.defineProperty(exports, "Tournament", { enumerable: true, get: function () { return tournament_1.Tournament; } });
|
|
14
|
+
const tournament_match_1 = require("./tournament-match");
|
|
15
|
+
Object.defineProperty(exports, "TournamentMatch", { enumerable: true, get: function () { return tournament_match_1.TournamentMatch; } });
|
|
16
|
+
const stage_1 = require("./stage");
|
|
17
|
+
Object.defineProperty(exports, "Stage", { enumerable: true, get: function () { return stage_1.Stage; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Iteration = void 0;
|
|
4
|
+
class Iteration {
|
|
5
|
+
constructor({ id, startDate }) {
|
|
6
|
+
if (id < 1)
|
|
7
|
+
throw new Error(`INVALID_ITERATION: ${id}`);
|
|
8
|
+
this.id = id;
|
|
9
|
+
this.startDate = startDate;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.Iteration = Iteration;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { Team } from '../team';
|
|
2
2
|
import { Match } from '../match';
|
|
3
3
|
import { Standing } from './standing';
|
|
4
|
+
import { Iteration } from './iteration';
|
|
4
5
|
export interface SeasonOpts {
|
|
5
6
|
readonly id: string;
|
|
6
7
|
readonly teams: Team[];
|
|
7
8
|
readonly matches: Match[];
|
|
8
|
-
readonly iteration:
|
|
9
|
+
readonly iteration: Iteration;
|
|
9
10
|
readonly champion?: Team;
|
|
10
11
|
}
|
|
11
12
|
export declare class Season {
|
|
12
13
|
readonly id: string;
|
|
13
14
|
readonly teams: Team[];
|
|
14
15
|
readonly matches: Match[];
|
|
15
|
-
readonly iteration:
|
|
16
|
+
readonly iteration: Iteration;
|
|
16
17
|
readonly standings: Standing[];
|
|
17
18
|
champion?: Team;
|
|
18
19
|
constructor({ id, iteration, teams, matches, champion }: SeasonOpts);
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { TournamentMatch } from './tournament-match';
|
|
2
2
|
import { Team } from '../team';
|
|
3
|
+
import { Iteration } from './iteration';
|
|
3
4
|
export interface TournamentOpts {
|
|
4
5
|
readonly id: string;
|
|
5
|
-
readonly iteration:
|
|
6
|
+
readonly iteration: Iteration;
|
|
6
7
|
readonly matches: TournamentMatch[];
|
|
7
8
|
readonly teams: Team[];
|
|
8
9
|
readonly champion?: Team;
|
|
9
10
|
}
|
|
10
11
|
export declare class Tournament {
|
|
11
12
|
readonly id: string;
|
|
12
|
-
readonly iteration:
|
|
13
|
+
readonly iteration: Iteration;
|
|
13
14
|
readonly matches: TournamentMatch[];
|
|
14
15
|
readonly teams: Team[];
|
|
15
16
|
champion?: Team;
|
|
@@ -13,7 +13,6 @@ import { Set, SetFailure, SetType } from './event/set';
|
|
|
13
13
|
import { Spike, SpikeFailure, SpikeType } from './event/spike';
|
|
14
14
|
import { Block, BlockFailure, BlockType } from './event/block';
|
|
15
15
|
import { GeneralStat, Name, PerformanceStats, PerformanceStatsOpts, Player, PlayerOpts, Role, Stat, Trait } from './player';
|
|
16
|
-
import { League, LeagueOpts, Season, SeasonOpts, Standing, StandingOpts } from './
|
|
17
|
-
import { Stage, Tournament, TournamentMatch, TournamentOpts, TournamentStageOpts } from './tournament';
|
|
16
|
+
import { League, LeagueOpts, Season, SeasonOpts, Standing, StandingOpts, Stage, Tournament, TournamentMatch, TournamentOpts, TournamentStageOpts, IterationOpts, Iteration } from './competition';
|
|
18
17
|
import { formatNumber, generateModifier, getKeys, getRandomEnumValue, randomNumber, shuffle, validateUUID } from './utils';
|
|
19
|
-
export { Stage, TournamentStageOpts, TournamentMatch, Tournament, TournamentOpts, Block, BlockFailure, BlockType, Coach, CoachOpts, Country, CountryOpts, CourtPosition, CourtRow, CourtTarget, EventStat, EventType, Formation, formatNumber, GeneralStat, generateModifier, getKeys, getRandomEnumValue, InPlayEvent, InPlayEventOpts, League, LeagueOpts, LiberoReplacement, LiberoReplacementOpts, LiberoReplacementType, Match, MatchSet, MatchSetOpts, MatchSetState, MatchTeam, Name, PerformanceStats, PerformanceStatsOpts, Player, PlayerOpts, PlayerPosition, Rally, RallyEvent, RallyEventOpts, RallyState, randomNumber, Reception, ReceptionFailure, ReceptionType, Role, Score, Season, SeasonOpts, Serve, ServeFailure, ServeType, Set, SetFailure, SetStatistics, SetType, shuffle, Spike, SpikeFailure, SpikeType, Standing, StandingOpts, Stat, SubPriority, Substitution, SubstitutionOpts, Team, TeamOpts, Trait, validateUUID };
|
|
18
|
+
export { Stage, TournamentStageOpts, TournamentMatch, Tournament, TournamentOpts, Block, BlockFailure, BlockType, Coach, CoachOpts, Country, CountryOpts, CourtPosition, CourtRow, CourtTarget, EventStat, EventType, Formation, formatNumber, GeneralStat, generateModifier, getKeys, getRandomEnumValue, InPlayEvent, InPlayEventOpts, League, LeagueOpts, LiberoReplacement, LiberoReplacementOpts, LiberoReplacementType, Match, MatchSet, MatchSetOpts, MatchSetState, MatchTeam, Name, PerformanceStats, PerformanceStatsOpts, Player, PlayerOpts, PlayerPosition, Rally, RallyEvent, RallyEventOpts, RallyState, randomNumber, Reception, ReceptionFailure, ReceptionType, Role, Score, Season, SeasonOpts, Serve, ServeFailure, ServeType, Set, SetFailure, SetStatistics, SetType, shuffle, Spike, SpikeFailure, SpikeType, Standing, StandingOpts, Stat, SubPriority, Substitution, SubstitutionOpts, Team, TeamOpts, Trait, IterationOpts, Iteration, validateUUID };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Substitution = exports.Standing = exports.SpikeType = exports.SpikeFailure = exports.Spike = exports.shuffle = exports.SetType = exports.SetFailure = exports.Set = exports.ServeType = exports.ServeFailure = exports.Serve = exports.Season = exports.Score = exports.Role = exports.ReceptionType = exports.ReceptionFailure = exports.Reception = exports.randomNumber = exports.RallyState = exports.RallyEvent = exports.Rally = exports.Player = exports.PerformanceStats = exports.MatchTeam = exports.MatchSetState = exports.MatchSet = exports.Match = exports.LiberoReplacementType = exports.LiberoReplacement = exports.League = exports.InPlayEvent = exports.getRandomEnumValue = exports.getKeys = exports.generateModifier = exports.GeneralStat = exports.formatNumber = exports.Formation = exports.EventType = exports.CourtTarget = exports.CourtRow = exports.CourtPosition = exports.Country = exports.Coach = exports.BlockType = exports.BlockFailure = exports.Block = exports.Tournament = exports.TournamentMatch = exports.Stage = void 0;
|
|
4
|
-
exports.validateUUID = exports.Trait = exports.Team = void 0;
|
|
4
|
+
exports.validateUUID = exports.Iteration = exports.Trait = exports.Team = void 0;
|
|
5
5
|
const match_1 = require("./match");
|
|
6
6
|
Object.defineProperty(exports, "CourtPosition", { enumerable: true, get: function () { return match_1.CourtPosition; } });
|
|
7
7
|
Object.defineProperty(exports, "CourtRow", { enumerable: true, get: function () { return match_1.CourtRow; } });
|
|
@@ -57,14 +57,14 @@ Object.defineProperty(exports, "PerformanceStats", { enumerable: true, get: func
|
|
|
57
57
|
Object.defineProperty(exports, "Player", { enumerable: true, get: function () { return player_1.Player; } });
|
|
58
58
|
Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return player_1.Role; } });
|
|
59
59
|
Object.defineProperty(exports, "Trait", { enumerable: true, get: function () { return player_1.Trait; } });
|
|
60
|
-
const
|
|
61
|
-
Object.defineProperty(exports, "League", { enumerable: true, get: function () { return
|
|
62
|
-
Object.defineProperty(exports, "Season", { enumerable: true, get: function () { return
|
|
63
|
-
Object.defineProperty(exports, "Standing", { enumerable: true, get: function () { return
|
|
64
|
-
|
|
65
|
-
Object.defineProperty(exports, "
|
|
66
|
-
Object.defineProperty(exports, "
|
|
67
|
-
Object.defineProperty(exports, "
|
|
60
|
+
const competition_1 = require("./competition");
|
|
61
|
+
Object.defineProperty(exports, "League", { enumerable: true, get: function () { return competition_1.League; } });
|
|
62
|
+
Object.defineProperty(exports, "Season", { enumerable: true, get: function () { return competition_1.Season; } });
|
|
63
|
+
Object.defineProperty(exports, "Standing", { enumerable: true, get: function () { return competition_1.Standing; } });
|
|
64
|
+
Object.defineProperty(exports, "Stage", { enumerable: true, get: function () { return competition_1.Stage; } });
|
|
65
|
+
Object.defineProperty(exports, "Tournament", { enumerable: true, get: function () { return competition_1.Tournament; } });
|
|
66
|
+
Object.defineProperty(exports, "TournamentMatch", { enumerable: true, get: function () { return competition_1.TournamentMatch; } });
|
|
67
|
+
Object.defineProperty(exports, "Iteration", { enumerable: true, get: function () { return competition_1.Iteration; } });
|
|
68
68
|
const utils_1 = require("./utils");
|
|
69
69
|
Object.defineProperty(exports, "formatNumber", { enumerable: true, get: function () { return utils_1.formatNumber; } });
|
|
70
70
|
Object.defineProperty(exports, "generateModifier", { enumerable: true, get: function () { return utils_1.generateModifier; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Coach } from '../coach';
|
|
2
2
|
import { Player } from '../player';
|
|
3
3
|
import { Country } from '../country';
|
|
4
|
-
import { League } from '../
|
|
4
|
+
import { League } from '../competition';
|
|
5
5
|
export interface TeamOpts {
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
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, IterationPk, IterationCreationAttributes, IterationId } 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, IterationModel, IterationAttributes } from './models';
|
|
3
|
+
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromSeasonMatch, transformFromServe, transformFromSet, transformFromSpike, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILeague, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait, transformToIteration, transformFromIteration } from './transformers';
|
|
4
4
|
import { initModels } from './init-models';
|
|
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,
|
|
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, };
|
|
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, transformToIteration, transformFromIteration, TournamentTeamsAttributes, TournamentTeamsModel, IterationModel, IterationAttributes, };
|
|
6
|
+
export type { TournamentOptionalAttributes, TournamentId, TournamentPk, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockId, BlockPk, CoachId, CoachPk, CountryId, CountryPk, SeasonMatchId, SeasonMatchPk, EventId, EventPk, LeagueId, LeaguePk, LiberoReplacementId, LiberoReplacementPk, MatchId, MatchPk, MatchSetId, MatchSetPk, MatchSetStatsId, MatchSetStatsPk, PerformanceStatsId, PerformanceStatsPk, PlayerId, PlayerPk, RallyId, RallyPk, RallyPositionId, RallyPositionPk, ReceptionId, ReceptionPk, RoleType, ScoreId, ScorePk, SeasonId, SeasonPk, SeasonTeamsId, SeasonTeamsPk, ServeId, ServePk, SetId, SetPk, SpikeId, SpikePk, SubstitutionId, SubstitutionPk, TeamId, TeamPk, TraitType, EventType, BlockFailure, BlockType, FormationType, ServeFailure, SpikeFailure, SpikeType, SetType, ReceptionFailure, SetFailure, ServeType, ReceptionType, CourtPositionType, Side, CourtTarget, LiberoReplacementType, TournamentTeamsId, TournamentTeamsPk, TournamentCreationAttributes, TournamentMatchCreationAttributes, BlockCreationAttributes, CoachCreationAttributes, CountryCreationAttributes, SeasonMatchCreationAttributes, EventCreationAttributes, LeagueCreationAttributes, LiberoReplacementCreationAttributes, MatchCreationAttributes, MatchSetCreationAttributes, MatchSetStatsCreationAttributes, PerformanceStatsCreationAttributes, PlayerCreationAttributes, RallyCreationAttributes, RallyPositionCreationAttributes, ReceptionCreationAttributes, ScoreCreationAttributes, SeasonCreationAttributes, SeasonTeamsCreationAttributes, ServeCreationAttributes, SetCreationAttributes, SpikeCreationAttributes, SubstitutionCreationAttributes, TeamCreationAttributes, TournamentTeamsCreationAttributes, IterationCreationAttributes, IterationId, IterationPk };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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';
|
|
2
|
-
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromSeasonMatch, transformFromServe, transformFromSet, transformFromSpike, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILeague, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait } from './transformers';
|
|
1
|
+
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, IterationModel } from './models';
|
|
2
|
+
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromSeasonMatch, transformFromServe, transformFromSet, transformFromSpike, transformFromStage, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, transformToAPILeague, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPISubstitution, transformToAPITeam, transformToAPITournament, transformToAPITournamentMatch, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToStage, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait, transformToIteration, transformFromIteration } from './transformers';
|
|
3
3
|
import { initModels } from './init-models';
|
|
4
|
-
export { initModels, transformToStage, transformFromStage, SeasonMatchModel, TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, 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, TournamentTeamsModel, };
|
|
4
|
+
export { initModels, transformToStage, transformFromStage, SeasonMatchModel, TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformFromSeasonMatch, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, transformToAPILeague, transformToAPISubstitution, transformToAPITeam, transformToAPITrait, transformToBlock, transformToCoach, transformToCountry, transformToCourtPosition, transformToCourtTarget, transformToEventType, transformToFormation, transformToLeague, transformToLiberoReplacement, transformToAPICoach, transformToMatch, transformToMatchSet, transformToMatchSetStats, transformToPerformanceStats, transformToPlayer, transformToPlayerPosition, transformToRally, transformToReception, transformToRole, transformToScore, transformToSeason, transformToServe, transformToSet, transformToSpike, transformToSubstitution, transformToTeam, transformToTrait, transformFromTournament, transformToAPITournament, transformToTournament, transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch, transformToIteration, transformFromIteration, TournamentTeamsModel, IterationModel, };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Sequelize } from 'sequelize';
|
|
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';
|
|
2
|
+
import { BlockModel, CoachModel, CountryModel, EventModel, IterationModel, 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;
|
|
6
6
|
Country: typeof CountryModel;
|
|
7
7
|
Event: typeof EventModel;
|
|
8
|
+
Iteration: typeof IterationModel;
|
|
8
9
|
League: typeof LeagueModel;
|
|
9
10
|
LiberoReplacement: typeof LiberoReplacementModel;
|
|
10
11
|
Match: typeof MatchModel;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
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';
|
|
1
|
+
import { BlockModel, CoachModel, CountryModel, EventModel, IterationModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonMatchModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchModel, TournamentModel, TournamentTeamsModel } from './models';
|
|
2
2
|
export function initModels(sequelize) {
|
|
3
3
|
const Block = BlockModel.initModel(sequelize);
|
|
4
4
|
const Coach = CoachModel.initModel(sequelize);
|
|
5
5
|
const Country = CountryModel.initModel(sequelize);
|
|
6
6
|
const Event = EventModel.initModel(sequelize);
|
|
7
|
+
const Iteration = IterationModel.initModel(sequelize);
|
|
7
8
|
const League = LeagueModel.initModel(sequelize);
|
|
8
9
|
const LiberoReplacement = LiberoReplacementModel.initModel(sequelize);
|
|
9
10
|
const Match = MatchModel.initModel(sequelize);
|
|
@@ -39,6 +40,8 @@ export function initModels(sequelize) {
|
|
|
39
40
|
Country.hasMany(Team, { as: 'Teams', foreignKey: 'country_id' });
|
|
40
41
|
Event.belongsTo(Player, { as: 'player', foreignKey: 'player_id' });
|
|
41
42
|
Event.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
|
|
43
|
+
Iteration.hasMany(Season, { as: 'Seasons', foreignKey: 'iteration' });
|
|
44
|
+
Iteration.hasMany(Tournament, { as: 'Tournaments', foreignKey: 'iteration' });
|
|
42
45
|
League.belongsTo(Country, { as: 'country', foreignKey: 'country_id' });
|
|
43
46
|
League.hasMany(Team, { as: 'Teams', foreignKey: 'league_id' });
|
|
44
47
|
League.hasMany(Season, { as: 'Seasons', foreignKey: 'league_id' });
|
|
@@ -123,6 +126,7 @@ export function initModels(sequelize) {
|
|
|
123
126
|
Score.belongsTo(Rally, { as: 'rally', foreignKey: 'rally_id' });
|
|
124
127
|
Score.belongsTo(Team, { as: 'team', foreignKey: 'team_id' });
|
|
125
128
|
Season.belongsTo(League, { as: 'league', foreignKey: 'league_id' });
|
|
129
|
+
Season.belongsTo(Iteration, { as: 'iteration_Iteration', foreignKey: 'iteration' });
|
|
126
130
|
Season.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
|
|
127
131
|
Season.hasMany(SeasonMatch, { as: 'SeasonMatches', foreignKey: 'season_id' });
|
|
128
132
|
Season.hasMany(SeasonTeams, { as: 'SeasonTeams', foreignKey: 'season_id' });
|
|
@@ -170,6 +174,7 @@ export function initModels(sequelize) {
|
|
|
170
174
|
otherKey: 'tournament_id'
|
|
171
175
|
});
|
|
172
176
|
Tournament.belongsTo(Team, { as: 'champion_Team', foreignKey: 'champion' });
|
|
177
|
+
Tournament.belongsTo(Iteration, { as: 'iteration_Iteration', foreignKey: 'iteration' });
|
|
173
178
|
Tournament.hasMany(TournamentMatch, { as: 'TournamentMatches', foreignKey: 'tournament_id' });
|
|
174
179
|
Tournament.hasMany(TournamentTeams, { as: 'TournamentTeams', foreignKey: 'tournament_id' });
|
|
175
180
|
Tournament.belongsToMany(Team, {
|
|
@@ -185,6 +190,7 @@ export function initModels(sequelize) {
|
|
|
185
190
|
Coach,
|
|
186
191
|
Country,
|
|
187
192
|
Event,
|
|
193
|
+
Iteration,
|
|
188
194
|
League,
|
|
189
195
|
LiberoReplacement,
|
|
190
196
|
Match,
|
|
@@ -6,6 +6,8 @@ import type { CountryCreationAttributes, CountryId, CountryPk } from './country'
|
|
|
6
6
|
import { CountryAttributes, CountryModel } from './country';
|
|
7
7
|
import type { CourtTarget, EventCreationAttributes, EventId, EventPk, EventType } from './event';
|
|
8
8
|
import { EventAttributes, EventModel } from './event';
|
|
9
|
+
import type { IterationCreationAttributes, IterationId, IterationPk } from './iteration';
|
|
10
|
+
import { IterationAttributes, IterationModel } from './iteration';
|
|
9
11
|
import type { LeagueCreationAttributes, LeagueId, LeaguePk } from './league';
|
|
10
12
|
import { LeagueAttributes, LeagueModel } from './league';
|
|
11
13
|
import type { LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementPk, LiberoReplacementType } from './libero-replacement';
|
|
@@ -48,5 +50,5 @@ import type { TournamentMatchCreationAttributes, TournamentMatchId, TournamentMa
|
|
|
48
50
|
import { TournamentMatchAttributes, TournamentMatchModel } from './tournament-match';
|
|
49
51
|
import type { TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsPk } from './tournament-teams';
|
|
50
52
|
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, };
|
|
53
|
+
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, IterationPk, IterationId, IterationCreationAttributes };
|
|
54
|
+
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, IterationAttributes, IterationModel };
|
|
@@ -2,6 +2,7 @@ import { BlockModel } from './block';
|
|
|
2
2
|
import { CoachModel } from './coach';
|
|
3
3
|
import { CountryModel } from './country';
|
|
4
4
|
import { EventModel } from './event';
|
|
5
|
+
import { IterationModel } from './iteration';
|
|
5
6
|
import { LeagueModel } from './league';
|
|
6
7
|
import { LiberoReplacementModel } from './libero-replacement';
|
|
7
8
|
import { MatchModel } from './match';
|
|
@@ -24,4 +25,4 @@ import { TeamModel } from './team';
|
|
|
24
25
|
import { TournamentModel } from './tournament';
|
|
25
26
|
import { TournamentMatchModel } from './tournament-match';
|
|
26
27
|
import { TournamentTeamsModel } from './tournament-teams';
|
|
27
|
-
export { 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, };
|
|
28
|
+
export { TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, SeasonMatchModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentTeamsModel, IterationModel };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model } from 'sequelize';
|
|
3
|
+
import { SeasonId, SeasonModel, TournamentId, TournamentModel } from '.';
|
|
4
|
+
export interface IterationAttributes {
|
|
5
|
+
iteration_id: number;
|
|
6
|
+
start_date: string;
|
|
7
|
+
}
|
|
8
|
+
export type IterationPk = "iteration_id";
|
|
9
|
+
export type IterationId = IterationModel[IterationPk];
|
|
10
|
+
export type IterationCreationAttributes = IterationAttributes;
|
|
11
|
+
export declare class IterationModel extends Model<IterationAttributes, IterationCreationAttributes> implements IterationAttributes {
|
|
12
|
+
iteration_id: number;
|
|
13
|
+
start_date: string;
|
|
14
|
+
Seasons: SeasonModel[];
|
|
15
|
+
getSeasons: Sequelize.HasManyGetAssociationsMixin<SeasonModel>;
|
|
16
|
+
setSeasons: Sequelize.HasManySetAssociationsMixin<SeasonModel, SeasonId>;
|
|
17
|
+
addSeason: Sequelize.HasManyAddAssociationMixin<SeasonModel, SeasonId>;
|
|
18
|
+
addSeasons: Sequelize.HasManyAddAssociationsMixin<SeasonModel, SeasonId>;
|
|
19
|
+
createSeason: Sequelize.HasManyCreateAssociationMixin<SeasonModel>;
|
|
20
|
+
removeSeason: Sequelize.HasManyRemoveAssociationMixin<SeasonModel, SeasonId>;
|
|
21
|
+
removeSeasons: Sequelize.HasManyRemoveAssociationsMixin<SeasonModel, SeasonId>;
|
|
22
|
+
hasSeason: Sequelize.HasManyHasAssociationMixin<SeasonModel, SeasonId>;
|
|
23
|
+
hasSeasons: Sequelize.HasManyHasAssociationsMixin<SeasonModel, SeasonId>;
|
|
24
|
+
countSeasons: Sequelize.HasManyCountAssociationsMixin;
|
|
25
|
+
Tournaments: TournamentModel[];
|
|
26
|
+
getTournaments: Sequelize.HasManyGetAssociationsMixin<TournamentModel>;
|
|
27
|
+
setTournaments: Sequelize.HasManySetAssociationsMixin<TournamentModel, TournamentId>;
|
|
28
|
+
addTournament: Sequelize.HasManyAddAssociationMixin<TournamentModel, TournamentId>;
|
|
29
|
+
addTournaments: Sequelize.HasManyAddAssociationsMixin<TournamentModel, TournamentId>;
|
|
30
|
+
createTournament: Sequelize.HasManyCreateAssociationMixin<TournamentModel>;
|
|
31
|
+
removeTournament: Sequelize.HasManyRemoveAssociationMixin<TournamentModel, TournamentId>;
|
|
32
|
+
removeTournaments: Sequelize.HasManyRemoveAssociationsMixin<TournamentModel, TournamentId>;
|
|
33
|
+
hasTournament: Sequelize.HasManyHasAssociationMixin<TournamentModel, TournamentId>;
|
|
34
|
+
hasTournaments: Sequelize.HasManyHasAssociationsMixin<TournamentModel, TournamentId>;
|
|
35
|
+
countTournaments: Sequelize.HasManyCountAssociationsMixin;
|
|
36
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof IterationModel;
|
|
37
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DataTypes, Model } from 'sequelize';
|
|
2
|
+
export class IterationModel extends Model {
|
|
3
|
+
static initModel(sequelize) {
|
|
4
|
+
return IterationModel.init({
|
|
5
|
+
iteration_id: {
|
|
6
|
+
autoIncrement: true,
|
|
7
|
+
autoIncrementIdentity: true,
|
|
8
|
+
type: DataTypes.INTEGER,
|
|
9
|
+
allowNull: false,
|
|
10
|
+
primaryKey: true
|
|
11
|
+
},
|
|
12
|
+
start_date: {
|
|
13
|
+
type: DataTypes.DATEONLY,
|
|
14
|
+
allowNull: false
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
sequelize,
|
|
18
|
+
tableName: 'Iteration',
|
|
19
|
+
schema: 'public',
|
|
20
|
+
timestamps: false,
|
|
21
|
+
indexes: [
|
|
22
|
+
{
|
|
23
|
+
name: "Iteration_pk",
|
|
24
|
+
unique: true,
|
|
25
|
+
fields: [
|
|
26
|
+
{ name: "iteration_id" },
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
|
-
import type { LeagueAttributes, LeagueId, LeagueModel, SeasonMatchAttributes, SeasonTeamsId, SeasonTeamsModel, TeamAttributes, TeamId, TeamModel } from '.';
|
|
4
|
-
import { SeasonMatchId, SeasonMatchModel } from '.';
|
|
3
|
+
import type { IterationId, LeagueAttributes, LeagueId, LeagueModel, SeasonMatchAttributes, SeasonTeamsId, SeasonTeamsModel, TeamAttributes, TeamId, TeamModel } from '.';
|
|
4
|
+
import { IterationModel, SeasonMatchId, SeasonMatchModel } from '.';
|
|
5
5
|
export interface SeasonAttributes {
|
|
6
6
|
season_id: string;
|
|
7
7
|
iteration: number;
|
|
@@ -18,6 +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
|
+
iteration_Iteration: IterationModel;
|
|
22
|
+
getIteration_Iteration: Sequelize.BelongsToGetAssociationMixin<IterationModel>;
|
|
23
|
+
setIteration_Iteration: Sequelize.BelongsToSetAssociationMixin<IterationModel, IterationId>;
|
|
24
|
+
createIteration_Iteration: Sequelize.BelongsToCreateAssociationMixin<IterationModel>;
|
|
21
25
|
league: LeagueModel;
|
|
22
26
|
getLeague: Sequelize.BelongsToGetAssociationMixin<LeagueModel>;
|
|
23
27
|
setLeague: Sequelize.BelongsToSetAssociationMixin<LeagueModel, LeagueId>;
|
|
@@ -9,7 +9,11 @@ export class SeasonModel extends Model {
|
|
|
9
9
|
},
|
|
10
10
|
iteration: {
|
|
11
11
|
type: DataTypes.INTEGER,
|
|
12
|
-
allowNull: false
|
|
12
|
+
allowNull: false,
|
|
13
|
+
references: {
|
|
14
|
+
model: 'Iteration',
|
|
15
|
+
key: 'iteration'
|
|
16
|
+
}
|
|
13
17
|
},
|
|
14
18
|
league_id: {
|
|
15
19
|
type: DataTypes.UUID,
|
|
@@ -32,15 +36,11 @@ export class SeasonModel extends Model {
|
|
|
32
36
|
tableName: 'Season',
|
|
33
37
|
schema: 'public',
|
|
34
38
|
timestamps: false,
|
|
35
|
-
indexes: [
|
|
36
|
-
{
|
|
39
|
+
indexes: [{
|
|
37
40
|
name: 'Season_pk',
|
|
38
41
|
unique: true,
|
|
39
|
-
fields: [
|
|
40
|
-
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
]
|
|
42
|
+
fields: [{ name: 'season_id' }]
|
|
43
|
+
}]
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
|
-
import type { TeamId, TeamModel, TournamentMatchAttributes, TournamentMatchId, TournamentMatchModel, TournamentTeamsId } from '.';
|
|
4
|
-
import { TeamAttributes, TournamentTeamsModel } from '.';
|
|
3
|
+
import type { IterationId, TeamId, TeamModel, TournamentMatchAttributes, TournamentMatchId, TournamentMatchModel, TournamentTeamsId } from '.';
|
|
4
|
+
import { IterationModel, TeamAttributes, TournamentTeamsModel } from '.';
|
|
5
5
|
export interface TournamentAttributes {
|
|
6
6
|
tournament_id: string;
|
|
7
7
|
iteration: number;
|
|
@@ -18,6 +18,10 @@ export declare class TournamentModel extends Model<TournamentAttributes, Tournam
|
|
|
18
18
|
iteration: number;
|
|
19
19
|
champion?: string;
|
|
20
20
|
tournamentTeams: TeamModel[];
|
|
21
|
+
iteration_Iteration: IterationModel;
|
|
22
|
+
getIteration_Iteration: Sequelize.BelongsToGetAssociationMixin<IterationModel>;
|
|
23
|
+
setIteration_Iteration: Sequelize.BelongsToSetAssociationMixin<IterationModel, IterationId>;
|
|
24
|
+
createIteration_Iteration: Sequelize.BelongsToCreateAssociationMixin<IterationModel>;
|
|
21
25
|
champion_Team: TeamModel;
|
|
22
26
|
getChampion_Team: Sequelize.BelongsToGetAssociationMixin<TeamModel>;
|
|
23
27
|
setChampion_Team: Sequelize.BelongsToSetAssociationMixin<TeamModel, TeamId>;
|
|
@@ -9,7 +9,11 @@ export class TournamentModel extends Model {
|
|
|
9
9
|
},
|
|
10
10
|
iteration: {
|
|
11
11
|
type: DataTypes.INTEGER,
|
|
12
|
-
allowNull: false
|
|
12
|
+
allowNull: false,
|
|
13
|
+
references: {
|
|
14
|
+
model: 'Iteration',
|
|
15
|
+
key: 'iteration'
|
|
16
|
+
}
|
|
13
17
|
},
|
|
14
18
|
champion: {
|
|
15
19
|
type: DataTypes.UUID,
|
|
@@ -24,13 +28,11 @@ export class TournamentModel extends Model {
|
|
|
24
28
|
tableName: 'Tournament',
|
|
25
29
|
schema: 'public',
|
|
26
30
|
timestamps: false,
|
|
27
|
-
indexes: [
|
|
28
|
-
{
|
|
31
|
+
indexes: [{
|
|
29
32
|
name: 'Tournament_pk',
|
|
30
33
|
unique: true,
|
|
31
34
|
fields: [{ name: 'tournament_id' }]
|
|
32
|
-
}
|
|
33
|
-
]
|
|
35
|
+
}]
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
38
|
}
|
|
@@ -5,6 +5,7 @@ import { transformFromCourtPosition, transformToCourtPosition } from './court-po
|
|
|
5
5
|
import { transformFromCourtTarget, transformToCourtTarget } from './court-target';
|
|
6
6
|
import { transformFromEventType, transformToEventType } from './event-type';
|
|
7
7
|
import { transformFromFormation, transformToFormation } from './formation';
|
|
8
|
+
import { transformFromIteration, transformToIteration } from './iteration';
|
|
8
9
|
import { transformFromLeague, transformToAPILeague, transformToLeague } from './league';
|
|
9
10
|
import { transformFromLiberoReplacement, transformToAPILiberoReplacement, transformToLiberoReplacement } from './libero-replacement';
|
|
10
11
|
import { transformFromTournament, transformToAPITournament, transformToTournament } from './tournament';
|
|
@@ -28,4 +29,4 @@ import { transformFromSpike, transformToAPISpike, transformToSpike } from './spi
|
|
|
28
29
|
import { transformFromSubstitution, transformToAPISubstitution, transformToSubstitution } from './substitution';
|
|
29
30
|
import { transformFromTeam, transformToAPITeam, transformToTeam } from './team';
|
|
30
31
|
import { transformFromTrait, transformToAPITrait, transformToTrait } from './trait';
|
|
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 };
|
|
32
|
+
export { transformFromIteration, transformToIteration, 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 };
|