volleyballsimtypes 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/data/index.d.ts +3 -3
- package/dist/cjs/src/data/index.js +10 -2
- package/dist/cjs/src/data/init-models.d.ts +3 -1
- package/dist/cjs/src/data/init-models.js +8 -1
- package/dist/cjs/src/data/models/index.d.ts +3 -1
- package/dist/cjs/src/data/models/index.js +5 -1
- package/dist/cjs/src/data/models/rally-position.d.ts +3 -2
- package/dist/cjs/src/data/models/tournament-match.d.ts +29 -0
- package/dist/cjs/src/data/models/tournament-match.js +47 -0
- package/dist/cjs/src/data/models/tournament.d.ts +34 -0
- package/dist/cjs/src/data/models/tournament.js +42 -0
- package/dist/cjs/src/data/transformers/index.d.ts +3 -1
- package/dist/cjs/src/data/transformers/index.js +10 -2
- package/dist/cjs/src/data/transformers/tournament-match.d.ts +7 -0
- package/dist/cjs/src/data/transformers/tournament-match.js +43 -0
- package/dist/cjs/src/data/transformers/tournament.d.ts +7 -0
- package/dist/cjs/src/data/transformers/tournament.js +28 -0
- package/dist/cjs/src/index.d.ts +4 -4
- package/dist/cjs/src/index.js +14 -2
- package/dist/cjs/src/routing/index.d.ts +3 -1
- package/dist/cjs/src/routing/tournament.d.ts +4 -0
- package/dist/cjs/src/routing/tournament.js +2 -0
- package/dist/cjs/src/service/index.d.ts +2 -1
- package/dist/cjs/src/service/index.js +6 -1
- package/dist/cjs/src/service/tournament/index.d.ts +3 -0
- package/dist/cjs/src/service/tournament/index.js +8 -0
- package/dist/cjs/src/service/tournament/tournament-match.d.ts +18 -0
- package/dist/cjs/src/service/tournament/tournament-match.js +20 -0
- package/dist/cjs/src/service/tournament/tournament.d.ts +15 -0
- package/dist/cjs/src/service/tournament/tournament.js +12 -0
- package/dist/esm/src/data/index.d.ts +3 -3
- package/dist/esm/src/data/index.js +3 -3
- package/dist/esm/src/data/init-models.d.ts +3 -1
- package/dist/esm/src/data/init-models.js +9 -2
- package/dist/esm/src/data/models/index.d.ts +3 -1
- package/dist/esm/src/data/models/index.js +3 -1
- package/dist/esm/src/data/models/rally-position.d.ts +3 -2
- package/dist/esm/src/data/models/tournament-match.d.ts +29 -0
- package/dist/esm/src/data/models/tournament-match.js +43 -0
- package/dist/esm/src/data/models/tournament.d.ts +34 -0
- package/dist/esm/src/data/models/tournament.js +38 -0
- package/dist/esm/src/data/transformers/index.d.ts +3 -1
- package/dist/esm/src/data/transformers/index.js +3 -1
- package/dist/esm/src/data/transformers/tournament-match.d.ts +7 -0
- package/dist/esm/src/data/transformers/tournament-match.js +38 -0
- package/dist/esm/src/data/transformers/tournament.d.ts +7 -0
- package/dist/esm/src/data/transformers/tournament.js +23 -0
- package/dist/esm/src/index.d.ts +4 -4
- package/dist/esm/src/index.js +3 -3
- package/dist/esm/src/routing/index.d.ts +3 -1
- package/dist/esm/src/routing/tournament.d.ts +4 -0
- package/dist/esm/src/routing/tournament.js +1 -0
- package/dist/esm/src/service/index.d.ts +2 -1
- package/dist/esm/src/service/index.js +2 -1
- package/dist/esm/src/service/tournament/index.d.ts +3 -0
- package/dist/esm/src/service/tournament/index.js +3 -0
- package/dist/esm/src/service/tournament/tournament-match.d.ts +18 -0
- package/dist/esm/src/service/tournament/tournament-match.js +16 -0
- package/dist/esm/src/service/tournament/tournament.d.ts +15 -0
- package/dist/esm/src/service/tournament/tournament.js +8 -0
- package/package.json +1 -1
package/dist/cjs/src/index.js
CHANGED
|
@@ -1,8 +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.SpikeType = exports.SpikeFailure = exports.ReceptionFailure = exports.SetType = exports.SetFailure = exports.ServeType = exports.ServeFailure = exports.ReceptionType = exports.randomNumber = exports.RallyState = exports.Player = exports.MatchTeam = exports.getKeys = exports.generateModifier = exports.formatNumber = exports.CourtTarget = exports.CourtPosition = exports.CourtRow = exports.InPlayEvent = exports.Match = exports.MatchSetState = exports.BlockFailure = exports.LiberoReplacementType = exports.BlockType = exports.Substitution = exports.Spike = exports.Set = exports.Serve = exports.Score = exports.Reception = exports.RallyEvent = exports.Rally = exports.MatchSet = exports.LiberoReplacement = exports.EventType = 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.transformToRole = exports.transformToLeague = exports.transformToTrait = exports.transformToTeam = 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.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 = void 0;
|
|
4
|
+
exports.transformFromPerformanceStats = exports.transformFromCourtTarget = exports.transformFromCourtPosition = exports.transformToPlayerPosition = exports.transformFromPlayerPosition = exports.transformFromPlayer = exports.transformFromLeague = exports.transformFromMatchSetStats = 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.TournamentMatchModel = exports.TournamentModel = exports.SubstitutionModel = 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 = void 0;
|
|
5
|
+
exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = exports.transformToTournament = exports.transformToAPITournament = exports.transformFromTournament = exports.transformToRole = exports.transformToLeague = exports.transformToTrait = exports.transformToTeam = 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.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 = void 0;
|
|
6
|
+
exports.Tournament = exports.TournamentMatch = exports.Stage = exports.transformToTournamentMatch = void 0;
|
|
6
7
|
const service_1 = require("./service");
|
|
7
8
|
Object.defineProperty(exports, "Block", { enumerable: true, get: function () { return service_1.Block; } });
|
|
8
9
|
Object.defineProperty(exports, "BlockFailure", { enumerable: true, get: function () { return service_1.BlockFailure; } });
|
|
@@ -49,9 +50,12 @@ Object.defineProperty(exports, "shuffle", { enumerable: true, get: function () {
|
|
|
49
50
|
Object.defineProperty(exports, "Spike", { enumerable: true, get: function () { return service_1.Spike; } });
|
|
50
51
|
Object.defineProperty(exports, "SpikeFailure", { enumerable: true, get: function () { return service_1.SpikeFailure; } });
|
|
51
52
|
Object.defineProperty(exports, "SpikeType", { enumerable: true, get: function () { return service_1.SpikeType; } });
|
|
53
|
+
Object.defineProperty(exports, "Stage", { enumerable: true, get: function () { return service_1.Stage; } });
|
|
52
54
|
Object.defineProperty(exports, "Standing", { enumerable: true, get: function () { return service_1.Standing; } });
|
|
53
55
|
Object.defineProperty(exports, "Substitution", { enumerable: true, get: function () { return service_1.Substitution; } });
|
|
54
56
|
Object.defineProperty(exports, "Team", { enumerable: true, get: function () { return service_1.Team; } });
|
|
57
|
+
Object.defineProperty(exports, "Tournament", { enumerable: true, get: function () { return service_1.Tournament; } });
|
|
58
|
+
Object.defineProperty(exports, "TournamentMatch", { enumerable: true, get: function () { return service_1.TournamentMatch; } });
|
|
55
59
|
Object.defineProperty(exports, "Trait", { enumerable: true, get: function () { return service_1.Trait; } });
|
|
56
60
|
Object.defineProperty(exports, "validateUUID", { enumerable: true, get: function () { return service_1.validateUUID; } });
|
|
57
61
|
const routing_1 = require("./routing");
|
|
@@ -80,6 +84,8 @@ Object.defineProperty(exports, "SetModel", { enumerable: true, get: function ()
|
|
|
80
84
|
Object.defineProperty(exports, "SpikeModel", { enumerable: true, get: function () { return data_1.SpikeModel; } });
|
|
81
85
|
Object.defineProperty(exports, "SubstitutionModel", { enumerable: true, get: function () { return data_1.SubstitutionModel; } });
|
|
82
86
|
Object.defineProperty(exports, "TeamModel", { enumerable: true, get: function () { return data_1.TeamModel; } });
|
|
87
|
+
Object.defineProperty(exports, "TournamentMatchModel", { enumerable: true, get: function () { return data_1.TournamentMatchModel; } });
|
|
88
|
+
Object.defineProperty(exports, "TournamentModel", { enumerable: true, get: function () { return data_1.TournamentModel; } });
|
|
83
89
|
Object.defineProperty(exports, "transformFromBlock", { enumerable: true, get: function () { return data_1.transformFromBlock; } });
|
|
84
90
|
Object.defineProperty(exports, "transformFromCoach", { enumerable: true, get: function () { return data_1.transformFromCoach; } });
|
|
85
91
|
Object.defineProperty(exports, "transformFromCountry", { enumerable: true, get: function () { return data_1.transformFromCountry; } });
|
|
@@ -105,6 +111,8 @@ Object.defineProperty(exports, "transformFromSet", { enumerable: true, get: func
|
|
|
105
111
|
Object.defineProperty(exports, "transformFromSpike", { enumerable: true, get: function () { return data_1.transformFromSpike; } });
|
|
106
112
|
Object.defineProperty(exports, "transformFromSubstitution", { enumerable: true, get: function () { return data_1.transformFromSubstitution; } });
|
|
107
113
|
Object.defineProperty(exports, "transformFromTeam", { enumerable: true, get: function () { return data_1.transformFromTeam; } });
|
|
114
|
+
Object.defineProperty(exports, "transformFromTournament", { enumerable: true, get: function () { return data_1.transformFromTournament; } });
|
|
115
|
+
Object.defineProperty(exports, "transformFromTournamentMatch", { enumerable: true, get: function () { return data_1.transformFromTournamentMatch; } });
|
|
108
116
|
Object.defineProperty(exports, "transformFromTrait", { enumerable: true, get: function () { return data_1.transformFromTrait; } });
|
|
109
117
|
Object.defineProperty(exports, "transformToAPIBlock", { enumerable: true, get: function () { return data_1.transformToAPIBlock; } });
|
|
110
118
|
Object.defineProperty(exports, "transformToAPICoach", { enumerable: true, get: function () { return data_1.transformToAPICoach; } });
|
|
@@ -122,6 +130,8 @@ Object.defineProperty(exports, "transformToAPISet", { enumerable: true, get: fun
|
|
|
122
130
|
Object.defineProperty(exports, "transformToAPISpike", { enumerable: true, get: function () { return data_1.transformToAPISpike; } });
|
|
123
131
|
Object.defineProperty(exports, "transformToAPISubstitution", { enumerable: true, get: function () { return data_1.transformToAPISubstitution; } });
|
|
124
132
|
Object.defineProperty(exports, "transformToAPITeam", { enumerable: true, get: function () { return data_1.transformToAPITeam; } });
|
|
133
|
+
Object.defineProperty(exports, "transformToAPITournament", { enumerable: true, get: function () { return data_1.transformToAPITournament; } });
|
|
134
|
+
Object.defineProperty(exports, "transformToAPITournamentMatch", { enumerable: true, get: function () { return data_1.transformToAPITournamentMatch; } });
|
|
125
135
|
Object.defineProperty(exports, "transformToAPITrait", { enumerable: true, get: function () { return data_1.transformToAPITrait; } });
|
|
126
136
|
Object.defineProperty(exports, "transformToBlock", { enumerable: true, get: function () { return data_1.transformToBlock; } });
|
|
127
137
|
Object.defineProperty(exports, "transformToCoach", { enumerable: true, get: function () { return data_1.transformToCoach; } });
|
|
@@ -148,4 +158,6 @@ Object.defineProperty(exports, "transformToSet", { enumerable: true, get: functi
|
|
|
148
158
|
Object.defineProperty(exports, "transformToSpike", { enumerable: true, get: function () { return data_1.transformToSpike; } });
|
|
149
159
|
Object.defineProperty(exports, "transformToSubstitution", { enumerable: true, get: function () { return data_1.transformToSubstitution; } });
|
|
150
160
|
Object.defineProperty(exports, "transformToTeam", { enumerable: true, get: function () { return data_1.transformToTeam; } });
|
|
161
|
+
Object.defineProperty(exports, "transformToTournament", { enumerable: true, get: function () { return data_1.transformToTournament; } });
|
|
162
|
+
Object.defineProperty(exports, "transformToTournamentMatch", { enumerable: true, get: function () { return data_1.transformToTournamentMatch; } });
|
|
151
163
|
Object.defineProperty(exports, "transformToTrait", { enumerable: true, get: function () { return data_1.transformToTrait; } });
|
|
@@ -4,4 +4,6 @@ import { APIMatch, APIMatchSet, APIRally, APISetStatistics } from './match';
|
|
|
4
4
|
import { APIPlayer, APITrait } from './player';
|
|
5
5
|
import { APITeam } from './team';
|
|
6
6
|
import { APICoach } from './coach';
|
|
7
|
-
|
|
7
|
+
import { APITournament } from './tournament';
|
|
8
|
+
import { APITournamentMatch } from './tournament';
|
|
9
|
+
export { APICoach, APITeam, APIReception, APIScore, APIServe, APISet, APISpike, APISubstitution, APIMatchSet, APISetStatistics, APIInPlayEvent, APILeague, APIMatch, APIPlayer, APISeason, APIEvent, APILiberoReplacement, APIBlock, APITrait, APIRally, APITournament, APITournamentMatch };
|
|
@@ -14,5 +14,6 @@ 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
16
|
import { League, LeagueOpts, Season, SeasonOpts, Standing, StandingOpts } from './league';
|
|
17
|
+
import { Stage, Tournament, TournamentMatch, TournamentOpts, TournamentStageOpts } from './tournament';
|
|
17
18
|
import { formatNumber, generateModifier, getKeys, getRandomEnumValue, randomNumber, shuffle, validateUUID } from './utils';
|
|
18
|
-
export { 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 };
|
|
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 };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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
5
|
const match_1 = require("./match");
|
|
5
6
|
Object.defineProperty(exports, "CourtPosition", { enumerable: true, get: function () { return match_1.CourtPosition; } });
|
|
6
7
|
Object.defineProperty(exports, "CourtRow", { enumerable: true, get: function () { return match_1.CourtRow; } });
|
|
@@ -60,6 +61,10 @@ const league_1 = require("./league");
|
|
|
60
61
|
Object.defineProperty(exports, "League", { enumerable: true, get: function () { return league_1.League; } });
|
|
61
62
|
Object.defineProperty(exports, "Season", { enumerable: true, get: function () { return league_1.Season; } });
|
|
62
63
|
Object.defineProperty(exports, "Standing", { enumerable: true, get: function () { return league_1.Standing; } });
|
|
64
|
+
const tournament_1 = require("./tournament");
|
|
65
|
+
Object.defineProperty(exports, "Stage", { enumerable: true, get: function () { return tournament_1.Stage; } });
|
|
66
|
+
Object.defineProperty(exports, "Tournament", { enumerable: true, get: function () { return tournament_1.Tournament; } });
|
|
67
|
+
Object.defineProperty(exports, "TournamentMatch", { enumerable: true, get: function () { return tournament_1.TournamentMatch; } });
|
|
63
68
|
const utils_1 = require("./utils");
|
|
64
69
|
Object.defineProperty(exports, "formatNumber", { enumerable: true, get: function () { return utils_1.formatNumber; } });
|
|
65
70
|
Object.defineProperty(exports, "generateModifier", { enumerable: true, get: function () { return utils_1.generateModifier; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Tournament = exports.Stage = exports.TournamentMatch = void 0;
|
|
4
|
+
const tournament_1 = require("./tournament");
|
|
5
|
+
Object.defineProperty(exports, "Tournament", { enumerable: true, get: function () { return tournament_1.Tournament; } });
|
|
6
|
+
const tournament_match_1 = require("./tournament-match");
|
|
7
|
+
Object.defineProperty(exports, "Stage", { enumerable: true, get: function () { return tournament_match_1.Stage; } });
|
|
8
|
+
Object.defineProperty(exports, "TournamentMatch", { enumerable: true, get: function () { return tournament_match_1.TournamentMatch; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Match } from '../match';
|
|
2
|
+
export declare enum Stage {
|
|
3
|
+
ROUND_OF_8 = 8,
|
|
4
|
+
QUARTERFINALS = 4,
|
|
5
|
+
SEMIFINALS = 2,
|
|
6
|
+
FINAL = 1
|
|
7
|
+
}
|
|
8
|
+
export interface TournamentStageOpts {
|
|
9
|
+
readonly stage: Stage;
|
|
10
|
+
readonly match: Match;
|
|
11
|
+
readonly index: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class TournamentMatch {
|
|
14
|
+
readonly stage: Stage;
|
|
15
|
+
readonly match: Match;
|
|
16
|
+
readonly index: number;
|
|
17
|
+
constructor({ stage, match, index }: TournamentStageOpts);
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TournamentMatch = exports.Stage = void 0;
|
|
4
|
+
var Stage;
|
|
5
|
+
(function (Stage) {
|
|
6
|
+
Stage[Stage["ROUND_OF_8"] = 8] = "ROUND_OF_8";
|
|
7
|
+
Stage[Stage["QUARTERFINALS"] = 4] = "QUARTERFINALS";
|
|
8
|
+
Stage[Stage["SEMIFINALS"] = 2] = "SEMIFINALS";
|
|
9
|
+
Stage[Stage["FINAL"] = 1] = "FINAL";
|
|
10
|
+
})(Stage = exports.Stage || (exports.Stage = {}));
|
|
11
|
+
class TournamentMatch {
|
|
12
|
+
constructor({ stage, match, index }) {
|
|
13
|
+
if (index > stage || index < 0)
|
|
14
|
+
throw new Error('INDEX_OUT_OF_BOUNDS');
|
|
15
|
+
this.stage = stage;
|
|
16
|
+
this.match = match;
|
|
17
|
+
this.index = index;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.TournamentMatch = TournamentMatch;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TournamentMatch } from './tournament-match';
|
|
2
|
+
import { Team } from '../team';
|
|
3
|
+
export interface TournamentOpts {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly iteration: number;
|
|
6
|
+
readonly matches: TournamentMatch[];
|
|
7
|
+
readonly champion?: Team;
|
|
8
|
+
}
|
|
9
|
+
export declare class Tournament {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly iteration: number;
|
|
12
|
+
readonly matches: TournamentMatch[];
|
|
13
|
+
champion?: Team;
|
|
14
|
+
constructor({ id, iteration, matches, champion }: TournamentOpts);
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Tournament = void 0;
|
|
4
|
+
class Tournament {
|
|
5
|
+
constructor({ id, iteration, matches, champion }) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.iteration = iteration;
|
|
8
|
+
this.matches = matches;
|
|
9
|
+
this.champion = champion;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.Tournament = Tournament;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType } from './models';
|
|
2
|
-
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPICoach, 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 } from './transformers';
|
|
1
|
+
import { BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentModel, TournamentPk, TournamentStage, TraitType } from './models';
|
|
2
|
+
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, 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, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait } from './transformers';
|
|
3
3
|
import { initModels } from './init-models';
|
|
4
|
-
export { initModels, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, 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 };
|
|
4
|
+
export { initModels, TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchModel, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType, transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, } from './models';
|
|
2
|
-
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTrait, transformToAPIBlock, transformToAPICoach, 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 } from './transformers';
|
|
1
|
+
import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchModel, TournamentModel, } from './models';
|
|
2
|
+
import { transformFromBlock, transformFromCoach, transformFromCountry, transformFromCourtPosition, transformFromCourtTarget, transformFromEventType, transformFromFormation, transformFromLeague, transformFromLiberoReplacement, transformFromMatch, transformFromMatchSet, transformFromMatchSetStats, transformFromPerformanceStats, transformFromPlayer, transformFromPlayerPosition, transformFromRally, transformFromReception, transformFromRole, transformFromScore, transformFromSeason, transformFromServe, transformFromSet, transformFromSpike, transformFromSubstitution, transformFromTeam, transformFromTournament, transformFromTournamentMatch, transformFromTrait, transformToAPIBlock, transformToAPICoach, 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, transformToSubstitution, transformToTeam, transformToTournament, transformToTournamentMatch, transformToTrait } from './transformers';
|
|
3
3
|
import { initModels } from './init-models';
|
|
4
|
-
export { initModels, 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, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, 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 };
|
|
4
|
+
export { initModels, 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, transformToAPILiberoReplacement, transformToAPIMatch, transformToAPIMatchSet, transformToAPIMatchSetStats, transformToAPIPlayer, transformToAPIRally, transformToAPIReception, transformToAPIScore, transformToAPISeason, transformToAPIServe, transformToAPISet, transformToAPISpike, 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 };
|
|
@@ -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, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel } from './models';
|
|
2
|
+
import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchModel, TournamentModel } from './models';
|
|
3
3
|
export declare function initModels(sequelize: Sequelize): {
|
|
4
4
|
Block: typeof BlockModel;
|
|
5
5
|
Coach: typeof CoachModel;
|
|
@@ -23,4 +23,6 @@ export declare function initModels(sequelize: Sequelize): {
|
|
|
23
23
|
Spike: typeof SpikeModel;
|
|
24
24
|
Substitution: typeof SubstitutionModel;
|
|
25
25
|
Team: typeof TeamModel;
|
|
26
|
+
Tournament: typeof TournamentModel;
|
|
27
|
+
TournamentMatch: typeof TournamentMatchModel;
|
|
26
28
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel } from './models';
|
|
1
|
+
import { BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, TournamentMatchModel, TournamentModel } from './models';
|
|
2
2
|
export function initModels(sequelize) {
|
|
3
3
|
const Block = BlockModel.initModel(sequelize);
|
|
4
4
|
const Coach = CoachModel.initModel(sequelize);
|
|
@@ -22,6 +22,8 @@ export function initModels(sequelize) {
|
|
|
22
22
|
const Spike = SpikeModel.initModel(sequelize);
|
|
23
23
|
const Substitution = SubstitutionModel.initModel(sequelize);
|
|
24
24
|
const Team = TeamModel.initModel(sequelize);
|
|
25
|
+
const Tournament = TournamentModel.initModel(sequelize);
|
|
26
|
+
const TournamentMatch = TournamentMatchModel.initModel(sequelize);
|
|
25
27
|
MatchSet.belongsToMany(Player, {
|
|
26
28
|
as: 'player_id_Players',
|
|
27
29
|
through: MatchSetStats,
|
|
@@ -154,6 +156,9 @@ export function initModels(sequelize) {
|
|
|
154
156
|
League.hasMany(League, { as: 'Teams', foreignKey: 'league_id' });
|
|
155
157
|
Season.belongsTo(Team, { as: 'champion', foreignKey: 'champion' });
|
|
156
158
|
Team.hasMany(Season, { as: 'titles', foreignKey: 'champion' });
|
|
159
|
+
Tournament.hasMany(TournamentMatch, { as: 'Matches', foreignKey: 'tournament_id' });
|
|
160
|
+
TournamentMatch.belongsTo(Tournament, { as: 'tournament', foreignKey: 'tournament_id' });
|
|
161
|
+
TournamentMatch.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
|
|
157
162
|
return {
|
|
158
163
|
Block,
|
|
159
164
|
Coach,
|
|
@@ -176,6 +181,8 @@ export function initModels(sequelize) {
|
|
|
176
181
|
Set,
|
|
177
182
|
Spike,
|
|
178
183
|
Substitution,
|
|
179
|
-
Team
|
|
184
|
+
Team,
|
|
185
|
+
Tournament,
|
|
186
|
+
TournamentMatch
|
|
180
187
|
};
|
|
181
188
|
}
|
|
@@ -20,4 +20,6 @@ import { SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk } from './
|
|
|
20
20
|
import { SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk } from './spike';
|
|
21
21
|
import { SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk } from './substitution';
|
|
22
22
|
import { TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk } from './team';
|
|
23
|
-
|
|
23
|
+
import { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk } from './tournament';
|
|
24
|
+
import { TournamentMatchAttributes, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchModel, TournamentMatchPk, TournamentStage } from './tournament-match';
|
|
25
|
+
export { TournamentAttributes, TournamentCreationAttributes, TournamentId, TournamentModel, TournamentPk, TournamentMatchAttributes, TournamentMatchModel, TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockAttributes, BlockCreationAttributes, BlockId, BlockModel, BlockOptionalAttributes, BlockPk, CoachAttributes, CoachCreationAttributes, CoachId, CoachModel, CoachOptionalAttributes, CoachPk, CountryAttributes, CountryCreationAttributes, CountryId, CountryModel, CountryPk, EventAttributes, EventCreationAttributes, EventId, EventModel, EventPk, LeagueAttributes, LeagueCreationAttributes, LeagueId, LeagueModel, LeaguePk, LiberoReplacementAttributes, LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementModel, LiberoReplacementPk, MatchAttributes, MatchCreationAttributes, MatchId, MatchModel, MatchPk, MatchSetAttributes, MatchSetCreationAttributes, MatchSetId, MatchSetModel, MatchSetOptionalAttributes, MatchSetPk, MatchSetStatsAttributes, MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsModel, MatchSetStatsOptionalAttributes, MatchSetStatsPk, PerformanceStatsAttributes, PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsModel, PerformanceStatsOptionalAttributes, PerformanceStatsPk, PlayerAttributes, PlayerCreationAttributes, PlayerId, PlayerModel, PlayerPk, RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, ReceptionAttributes, ReceptionCreationAttributes, ReceptionId, ReceptionModel, ReceptionPk, RoleType, ScoreAttributes, ScoreCreationAttributes, ScoreId, ScoreModel, ScorePk, SeasonAttributes, SeasonCreationAttributes, SeasonId, SeasonModel, SeasonPk, SeasonTeamsAttributes, SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsModel, SeasonTeamsPk, ServeAttributes, ServeCreationAttributes, ServeId, ServeModel, ServePk, SetAttributes, SetCreationAttributes, SetId, SetModel, SetPk, SpikeAttributes, SpikeCreationAttributes, SpikeId, SpikeModel, SpikePk, SubstitutionAttributes, SubstitutionCreationAttributes, SubstitutionId, SubstitutionModel, SubstitutionPk, TeamAttributes, TeamCreationAttributes, TeamId, TeamModel, TeamPk, TraitType, };
|
|
@@ -20,4 +20,6 @@ import { SetModel, } from './set';
|
|
|
20
20
|
import { SpikeModel } from './spike';
|
|
21
21
|
import { SubstitutionModel, } from './substitution';
|
|
22
22
|
import { TeamModel, } from './team';
|
|
23
|
-
|
|
23
|
+
import { TournamentModel } from './tournament';
|
|
24
|
+
import { TournamentMatchModel } from './tournament-match';
|
|
25
|
+
export { TournamentModel, TournamentMatchModel, BlockModel, CoachModel, CountryModel, EventModel, LeagueModel, LiberoReplacementModel, MatchModel, MatchSetModel, MatchSetStatsModel, PerformanceStatsModel, PlayerModel, RallyModel, RallyPositionModel, ReceptionModel, ScoreModel, SeasonModel, SeasonTeamsModel, ServeModel, SetModel, SpikeModel, SubstitutionModel, TeamModel, };
|
|
@@ -6,16 +6,17 @@ export interface RallyPositionAttributes {
|
|
|
6
6
|
player_id: string;
|
|
7
7
|
rally_id: string;
|
|
8
8
|
side: 'Home' | 'Away';
|
|
9
|
-
court_position:
|
|
9
|
+
court_position: CourtPositionType;
|
|
10
10
|
}
|
|
11
11
|
export type RallyPositionPk = 'player_id' | 'rally_id';
|
|
12
|
+
export type CourtPositionType = 'NOT_IN_COURT' | 'LIBERO_ZONE' | 'LEFT_FRONT' | 'MIDDLE_FRONT' | 'RIGHT_FRONT' | 'LEFT_BACK' | 'MIDDLE_BACK' | 'RIGHT_BACK';
|
|
12
13
|
export type RallyPositionId = RallyPositionModel[RallyPositionPk];
|
|
13
14
|
export type RallyPositionCreationAttributes = RallyPositionAttributes;
|
|
14
15
|
export declare class RallyPositionModel extends Model<RallyPositionAttributes, RallyPositionCreationAttributes> implements RallyPositionAttributes {
|
|
15
16
|
player_id: string;
|
|
16
17
|
rally_id: string;
|
|
17
18
|
side: 'Home' | 'Away';
|
|
18
|
-
court_position:
|
|
19
|
+
court_position: CourtPositionType;
|
|
19
20
|
player: PlayerModel;
|
|
20
21
|
getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
|
|
21
22
|
setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model } from 'sequelize';
|
|
3
|
+
import type { TournamentId, TournamentModel } from './tournament';
|
|
4
|
+
import type { MatchId, MatchModel } from './match';
|
|
5
|
+
export interface TournamentMatchAttributes {
|
|
6
|
+
tournament_id: string;
|
|
7
|
+
match_id: string;
|
|
8
|
+
index: number;
|
|
9
|
+
stage: TournamentStage;
|
|
10
|
+
}
|
|
11
|
+
export type TournamentMatchPk = 'tournament_id' | 'match_id';
|
|
12
|
+
export type TournamentMatchId = TournamentMatchModel[TournamentMatchPk];
|
|
13
|
+
export type TournamentStage = 'ROUND_OF_8' | 'QUARTERFINALS' | 'SEMIFINALS' | 'FINAL';
|
|
14
|
+
export type TournamentMatchCreationAttributes = TournamentMatchAttributes;
|
|
15
|
+
export declare class TournamentMatchModel extends Model<TournamentMatchAttributes, TournamentMatchCreationAttributes> implements TournamentMatchAttributes {
|
|
16
|
+
tournament_id: string;
|
|
17
|
+
index: number;
|
|
18
|
+
match_id: string;
|
|
19
|
+
stage: TournamentStage;
|
|
20
|
+
tournament: TournamentModel;
|
|
21
|
+
getTournament: Sequelize.BelongsToGetAssociationMixin<TournamentModel>;
|
|
22
|
+
setTournament: Sequelize.BelongsToSetAssociationMixin<TournamentModel, TournamentId>;
|
|
23
|
+
createTournament: Sequelize.BelongsToCreateAssociationMixin<TournamentModel>;
|
|
24
|
+
match: MatchModel;
|
|
25
|
+
getMatch: Sequelize.BelongsToGetAssociationMixin<MatchModel>;
|
|
26
|
+
setMatch: Sequelize.BelongsToSetAssociationMixin<MatchModel, MatchId>;
|
|
27
|
+
createMatch: Sequelize.BelongsToCreateAssociationMixin<MatchModel>;
|
|
28
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof TournamentMatchModel;
|
|
29
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DataTypes, Model } from 'sequelize';
|
|
2
|
+
export class TournamentMatchModel extends Model {
|
|
3
|
+
static initModel(sequelize) {
|
|
4
|
+
return TournamentMatchModel.init({
|
|
5
|
+
tournament_id: {
|
|
6
|
+
type: DataTypes.UUID,
|
|
7
|
+
allowNull: false,
|
|
8
|
+
primaryKey: true
|
|
9
|
+
},
|
|
10
|
+
index: {
|
|
11
|
+
type: DataTypes.INTEGER,
|
|
12
|
+
allowNull: false
|
|
13
|
+
},
|
|
14
|
+
match_id: {
|
|
15
|
+
type: DataTypes.UUID,
|
|
16
|
+
allowNull: false,
|
|
17
|
+
references: {
|
|
18
|
+
model: 'Match',
|
|
19
|
+
key: 'match_id'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
stage: {
|
|
23
|
+
type: DataTypes.ARRAY(DataTypes.ENUM('ROUND_OF_8', 'QUARTERFINALS', 'SEMIFINALS', 'FINAL')),
|
|
24
|
+
allowNull: false
|
|
25
|
+
},
|
|
26
|
+
}, {
|
|
27
|
+
sequelize,
|
|
28
|
+
tableName: 'TournamentMatch',
|
|
29
|
+
schema: 'public',
|
|
30
|
+
timestamps: false,
|
|
31
|
+
indexes: [
|
|
32
|
+
{
|
|
33
|
+
name: 'TournamentMatch_pk',
|
|
34
|
+
unique: true,
|
|
35
|
+
fields: [
|
|
36
|
+
{ name: 'tournament_id' },
|
|
37
|
+
{ name: 'match_id' },
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model } from 'sequelize';
|
|
3
|
+
import { TournamentMatch } from '../../service/tournament/tournament-match';
|
|
4
|
+
import { TournamentMatchId, TournamentMatchModel } from './tournament-match';
|
|
5
|
+
import { TeamId, TeamModel } from './team';
|
|
6
|
+
export interface TournamentAttributes {
|
|
7
|
+
tournament_id: string;
|
|
8
|
+
iteration: number;
|
|
9
|
+
matches?: TournamentMatch[];
|
|
10
|
+
champion?: string;
|
|
11
|
+
}
|
|
12
|
+
export type TournamentPk = 'tournament_id';
|
|
13
|
+
export type TournamentId = TournamentModel[TournamentPk];
|
|
14
|
+
export type TournamentCreationAttributes = TournamentAttributes;
|
|
15
|
+
export declare class TournamentModel extends Model<TournamentAttributes, TournamentCreationAttributes> implements TournamentAttributes {
|
|
16
|
+
tournament_id: string;
|
|
17
|
+
iteration: number;
|
|
18
|
+
Matches: TournamentMatchModel[];
|
|
19
|
+
getMatches: Sequelize.HasManyGetAssociationsMixin<TournamentMatchModel>;
|
|
20
|
+
setMatches: Sequelize.HasManySetAssociationsMixin<TournamentMatchModel, TournamentMatchId>;
|
|
21
|
+
addMatch: Sequelize.HasManyAddAssociationMixin<TournamentMatchModel, TournamentMatchId>;
|
|
22
|
+
addMatches: Sequelize.HasManyAddAssociationsMixin<TournamentMatchModel, TournamentMatchId>;
|
|
23
|
+
createMatch: Sequelize.HasManyCreateAssociationMixin<TournamentMatchModel>;
|
|
24
|
+
removeMatch: Sequelize.HasManyRemoveAssociationMixin<TournamentMatchModel, TournamentMatchId>;
|
|
25
|
+
removeMatches: Sequelize.HasManyRemoveAssociationsMixin<TournamentMatchModel, TournamentMatchId>;
|
|
26
|
+
hasMatch: Sequelize.HasManyHasAssociationMixin<TournamentMatchModel, TournamentMatchId>;
|
|
27
|
+
hasMatches: Sequelize.HasManyHasAssociationsMixin<TournamentMatchModel, TournamentMatchId>;
|
|
28
|
+
countMatches: Sequelize.HasManyCountAssociationsMixin;
|
|
29
|
+
Champion: TeamModel;
|
|
30
|
+
getChampion: Sequelize.BelongsToGetAssociationMixin<TeamModel>;
|
|
31
|
+
setChampion: Sequelize.BelongsToSetAssociationMixin<TeamModel, TeamId>;
|
|
32
|
+
createChampion: Sequelize.BelongsToCreateAssociationMixin<TeamModel>;
|
|
33
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof TournamentModel;
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DataTypes, Model } from 'sequelize';
|
|
2
|
+
export class TournamentModel extends Model {
|
|
3
|
+
static initModel(sequelize) {
|
|
4
|
+
return TournamentModel.init({
|
|
5
|
+
tournament_id: {
|
|
6
|
+
type: DataTypes.UUID,
|
|
7
|
+
allowNull: false,
|
|
8
|
+
primaryKey: true
|
|
9
|
+
},
|
|
10
|
+
iteration: {
|
|
11
|
+
type: DataTypes.INTEGER,
|
|
12
|
+
allowNull: false
|
|
13
|
+
},
|
|
14
|
+
champion: {
|
|
15
|
+
type: DataTypes.UUID,
|
|
16
|
+
allowNull: true,
|
|
17
|
+
references: {
|
|
18
|
+
model: 'Team',
|
|
19
|
+
key: 'team_id'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, {
|
|
23
|
+
sequelize,
|
|
24
|
+
tableName: 'Tournament',
|
|
25
|
+
schema: 'public',
|
|
26
|
+
timestamps: false,
|
|
27
|
+
indexes: [
|
|
28
|
+
{
|
|
29
|
+
name: 'Tournament_pk',
|
|
30
|
+
unique: true,
|
|
31
|
+
fields: [
|
|
32
|
+
{ name: 'tournament_id' }
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -7,6 +7,8 @@ import { transformFromEventType, transformToEventType } from './event-type';
|
|
|
7
7
|
import { transformFromFormation, transformToFormation } from './formation';
|
|
8
8
|
import { transformFromLeague, transformToLeague } from './league';
|
|
9
9
|
import { transformFromLiberoReplacement, transformToAPILiberoReplacement, transformToLiberoReplacement } from './libero-replacement';
|
|
10
|
+
import { transformFromTournament, transformToAPITournament, transformToTournament } from './tournament';
|
|
11
|
+
import { transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch } from './tournament-match';
|
|
10
12
|
import { transformFromMatch, transformToAPIMatch, transformToMatch } from './match';
|
|
11
13
|
import { transformFromMatchSet, transformToAPIMatchSet, transformToMatchSet } from './match-set';
|
|
12
14
|
import { transformFromMatchSetStats, transformToAPIMatchSetStats, transformToMatchSetStats } from './match-set-stats';
|
|
@@ -24,4 +26,4 @@ import { transformFromSpike, transformToAPISpike, transformToSpike } from './spi
|
|
|
24
26
|
import { transformFromSubstitution, transformToAPISubstitution, transformToSubstitution } from './substitution';
|
|
25
27
|
import { transformFromTeam, transformToAPITeam, transformToTeam } from './team';
|
|
26
28
|
import { transformFromTrait, transformToAPITrait, transformToTrait } from './trait';
|
|
27
|
-
export { transformFromBlock, transformToAPICoach, 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, 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 };
|
|
29
|
+
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, transformFromScore, transformFromSeason, transformFromServe, 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 };
|
|
@@ -7,6 +7,8 @@ import { transformFromEventType, transformToEventType } from './event-type';
|
|
|
7
7
|
import { transformFromFormation, transformToFormation } from './formation';
|
|
8
8
|
import { transformFromLeague, transformToLeague, } from './league';
|
|
9
9
|
import { transformFromLiberoReplacement, transformToAPILiberoReplacement, transformToLiberoReplacement } from './libero-replacement';
|
|
10
|
+
import { transformFromTournament, transformToAPITournament, transformToTournament } from './tournament';
|
|
11
|
+
import { transformFromTournamentMatch, transformToAPITournamentMatch, transformToTournamentMatch, } from './tournament-match';
|
|
10
12
|
import { transformFromMatch, transformToAPIMatch, transformToMatch } from './match';
|
|
11
13
|
import { transformFromMatchSet, transformToAPIMatchSet, transformToMatchSet } from './match-set';
|
|
12
14
|
import { transformFromMatchSetStats, transformToAPIMatchSetStats, transformToMatchSetStats } from './match-set-stats';
|
|
@@ -24,4 +26,4 @@ import { transformFromSpike, transformToAPISpike, transformToSpike } from './spi
|
|
|
24
26
|
import { transformFromSubstitution, transformToAPISubstitution, transformToSubstitution } from './substitution';
|
|
25
27
|
import { transformFromTeam, transformToAPITeam, transformToTeam } from './team';
|
|
26
28
|
import { transformFromTrait, transformToAPITrait, transformToTrait } from './trait';
|
|
27
|
-
export { transformFromBlock, transformToAPICoach, 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, 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 };
|
|
29
|
+
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, transformFromScore, transformFromSeason, transformFromServe, 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 };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TournamentMatchAttributes, TournamentMatchModel } from '../models';
|
|
2
|
+
import { Tournament, TournamentMatch } from '../../service';
|
|
3
|
+
import { APITournamentMatch } from '../../routing';
|
|
4
|
+
declare function transformToAttributes(match: TournamentMatch, tournament: Tournament): TournamentMatchAttributes;
|
|
5
|
+
declare function transformToObject(model: TournamentMatchModel): TournamentMatch;
|
|
6
|
+
declare function transformToAPIObject(model: TournamentMatchModel): APITournamentMatch;
|
|
7
|
+
export { transformToObject as transformToTournamentMatch, transformToAPIObject as transformToAPITournamentMatch, transformToAttributes as transformFromTournamentMatch };
|