volleyballsimtypes 0.0.58 → 0.0.59

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.
Files changed (87) hide show
  1. package/dist/cjs/src/data/index.d.ts +5 -5
  2. package/dist/cjs/src/data/index.js +4 -1
  3. package/dist/cjs/src/data/init-models.d.ts +2 -1
  4. package/dist/cjs/src/data/init-models.js +6 -0
  5. package/dist/cjs/src/data/models/index.d.ts +4 -2
  6. package/dist/cjs/src/data/models/index.js +3 -1
  7. package/dist/cjs/src/data/models/iteration.d.ts +37 -0
  8. package/dist/cjs/src/data/models/iteration.js +36 -0
  9. package/dist/cjs/src/data/models/season.d.ts +6 -2
  10. package/dist/cjs/src/data/models/season.js +8 -8
  11. package/dist/cjs/src/data/models/tournament.d.ts +6 -2
  12. package/dist/cjs/src/data/models/tournament.js +7 -5
  13. package/dist/cjs/src/data/transformers/index.d.ts +2 -1
  14. package/dist/cjs/src/data/transformers/index.js +5 -2
  15. package/dist/cjs/src/data/transformers/iteration.d.ts +5 -0
  16. package/dist/cjs/src/data/transformers/iteration.js +18 -0
  17. package/dist/cjs/src/data/transformers/season.js +2 -2
  18. package/dist/cjs/src/data/transformers/tournament.js +2 -2
  19. package/dist/cjs/src/index.d.ts +5 -5
  20. package/dist/cjs/src/index.js +6 -3
  21. package/dist/cjs/src/service/competition/index.d.ts +8 -0
  22. package/dist/cjs/src/service/competition/index.js +17 -0
  23. package/dist/cjs/src/service/competition/iteration.d.ts +9 -0
  24. package/dist/cjs/src/service/competition/iteration.js +12 -0
  25. package/dist/cjs/src/service/{league → competition}/season.d.ts +3 -2
  26. package/dist/{esm/src/service/tournament → cjs/src/service/competition}/tournament.d.ts +3 -2
  27. package/dist/cjs/src/service/index.d.ts +2 -3
  28. package/dist/cjs/src/service/index.js +9 -9
  29. package/dist/cjs/src/service/team/team.d.ts +1 -1
  30. package/dist/esm/src/data/index.d.ts +5 -5
  31. package/dist/esm/src/data/index.js +3 -3
  32. package/dist/esm/src/data/init-models.d.ts +2 -1
  33. package/dist/esm/src/data/init-models.js +7 -1
  34. package/dist/esm/src/data/models/index.d.ts +4 -2
  35. package/dist/esm/src/data/models/index.js +2 -1
  36. package/dist/esm/src/data/models/iteration.d.ts +37 -0
  37. package/dist/esm/src/data/models/iteration.js +32 -0
  38. package/dist/esm/src/data/models/season.d.ts +6 -2
  39. package/dist/esm/src/data/models/season.js +8 -8
  40. package/dist/esm/src/data/models/tournament.d.ts +6 -2
  41. package/dist/esm/src/data/models/tournament.js +7 -5
  42. package/dist/esm/src/data/transformers/index.d.ts +2 -1
  43. package/dist/esm/src/data/transformers/index.js +2 -1
  44. package/dist/esm/src/data/transformers/iteration.d.ts +5 -0
  45. package/dist/esm/src/data/transformers/iteration.js +14 -0
  46. package/dist/esm/src/data/transformers/season.js +3 -3
  47. package/dist/esm/src/data/transformers/tournament.js +3 -3
  48. package/dist/esm/src/index.d.ts +5 -5
  49. package/dist/esm/src/index.js +3 -3
  50. package/dist/esm/src/service/competition/index.d.ts +8 -0
  51. package/dist/esm/src/service/competition/index.js +8 -0
  52. package/dist/esm/src/service/competition/iteration.d.ts +9 -0
  53. package/dist/esm/src/service/competition/iteration.js +8 -0
  54. package/dist/esm/src/service/{league → competition}/season.d.ts +3 -2
  55. package/dist/{cjs/src/service/tournament → esm/src/service/competition}/tournament.d.ts +3 -2
  56. package/dist/esm/src/service/index.d.ts +2 -3
  57. package/dist/esm/src/service/index.js +2 -3
  58. package/dist/esm/src/service/team/team.d.ts +1 -1
  59. package/package.json +1 -1
  60. package/dist/cjs/src/service/league/index.d.ts +0 -4
  61. package/dist/cjs/src/service/league/index.js +0 -9
  62. package/dist/cjs/src/service/tournament/index.d.ts +0 -4
  63. package/dist/cjs/src/service/tournament/index.js +0 -9
  64. package/dist/esm/src/service/league/index.d.ts +0 -4
  65. package/dist/esm/src/service/league/index.js +0 -4
  66. package/dist/esm/src/service/tournament/index.d.ts +0 -4
  67. package/dist/esm/src/service/tournament/index.js +0 -4
  68. /package/dist/cjs/src/service/{league → competition}/league.d.ts +0 -0
  69. /package/dist/cjs/src/service/{league → competition}/league.js +0 -0
  70. /package/dist/cjs/src/service/{league → competition}/season.js +0 -0
  71. /package/dist/cjs/src/service/{tournament → competition}/stage.d.ts +0 -0
  72. /package/dist/cjs/src/service/{tournament → competition}/stage.js +0 -0
  73. /package/dist/cjs/src/service/{league → competition}/standing.d.ts +0 -0
  74. /package/dist/cjs/src/service/{league → competition}/standing.js +0 -0
  75. /package/dist/cjs/src/service/{tournament → competition}/tournament-match.d.ts +0 -0
  76. /package/dist/cjs/src/service/{tournament → competition}/tournament-match.js +0 -0
  77. /package/dist/cjs/src/service/{tournament → competition}/tournament.js +0 -0
  78. /package/dist/esm/src/service/{league → competition}/league.d.ts +0 -0
  79. /package/dist/esm/src/service/{league → competition}/league.js +0 -0
  80. /package/dist/esm/src/service/{league → competition}/season.js +0 -0
  81. /package/dist/esm/src/service/{tournament → competition}/stage.d.ts +0 -0
  82. /package/dist/esm/src/service/{tournament → competition}/stage.js +0 -0
  83. /package/dist/esm/src/service/{league → competition}/standing.d.ts +0 -0
  84. /package/dist/esm/src/service/{league → competition}/standing.js +0 -0
  85. /package/dist/esm/src/service/{tournament → competition}/tournament-match.d.ts +0 -0
  86. /package/dist/esm/src/service/{tournament → competition}/tournament-match.js +0 -0
  87. /package/dist/esm/src/service/{tournament → competition}/tournament.js +0 -0
@@ -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,9 @@
1
+ export interface IterationOpts {
2
+ readonly id: number;
3
+ readonly startDate: Date;
4
+ }
5
+ export declare class Iteration {
6
+ readonly id: number;
7
+ readonly startDate: Date;
8
+ constructor({ id, startDate }: IterationOpts);
9
+ }
@@ -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 < 0)
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: number;
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: number;
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: number;
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: number;
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 './league';
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 league_1 = require("./league");
61
- Object.defineProperty(exports, "League", { enumerable: true, get: function () { return league_1.League; } });
62
- Object.defineProperty(exports, "Season", { enumerable: true, get: function () { return league_1.Season; } });
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; } });
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 '../league';
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, TournamentOptionalAttributes, TournamentTeamsAttributes, TournamentTeamsModel, };
6
- export type { TournamentId, TournamentPk, TournamentMatchId, TournamentMatchPk, TournamentStage, BlockId, BlockPk, CoachId, CoachPk, CountryId, CountryPk, SeasonMatchId, SeasonMatchPk, EventId, EventPk, LeagueId, LeaguePk, LiberoReplacementId, LiberoReplacementPk, MatchId, MatchPk, MatchSetId, MatchSetPk, MatchSetStatsId, MatchSetStatsPk, PerformanceStatsId, PerformanceStatsPk, PlayerId, PlayerPk, RallyId, RallyPk, RallyPositionId, RallyPositionPk, ReceptionId, ReceptionPk, RoleType, ScoreId, ScorePk, SeasonId, SeasonPk, SeasonTeamsId, SeasonTeamsPk, ServeId, ServePk, SetId, SetPk, SpikeId, SpikePk, SubstitutionId, SubstitutionPk, TeamId, TeamPk, TraitType, EventType, BlockFailure, BlockType, FormationType, ServeFailure, SpikeFailure, SpikeType, SetType, ReceptionFailure, SetFailure, ServeType, ReceptionType, CourtPositionType, Side, CourtTarget, LiberoReplacementType, TournamentTeamsId, TournamentTeamsPk, TournamentCreationAttributes, TournamentMatchCreationAttributes, BlockCreationAttributes, CoachCreationAttributes, CountryCreationAttributes, SeasonMatchCreationAttributes, EventCreationAttributes, LeagueCreationAttributes, LiberoReplacementCreationAttributes, MatchCreationAttributes, MatchSetCreationAttributes, MatchSetStatsCreationAttributes, PerformanceStatsCreationAttributes, PlayerCreationAttributes, RallyCreationAttributes, RallyPositionCreationAttributes, ReceptionCreationAttributes, ScoreCreationAttributes, SeasonCreationAttributes, SeasonTeamsCreationAttributes, ServeCreationAttributes, SetCreationAttributes, SpikeCreationAttributes, SubstitutionCreationAttributes, TeamCreationAttributes, TournamentTeamsCreationAttributes, };
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
- { name: 'season_id' }
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 };
@@ -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 };
@@ -0,0 +1,5 @@
1
+ import { IterationAttributes, IterationModel } from '../models';
2
+ import { Iteration } from '../../service';
3
+ declare function transformToAttributes(iteration: Iteration): IterationAttributes;
4
+ declare function transformToObject(model: IterationModel): Iteration;
5
+ export { transformToObject as transformToIteration, transformToAttributes as transformFromIteration };
@@ -0,0 +1,14 @@
1
+ import { Iteration } from '../../service';
2
+ function transformToAttributes(iteration) {
3
+ return {
4
+ iteration_id: iteration.id,
5
+ start_date: iteration.startDate.toISOString()
6
+ };
7
+ }
8
+ function transformToObject(model) {
9
+ return new Iteration({
10
+ id: model.iteration_id,
11
+ startDate: new Date(model.start_date)
12
+ });
13
+ }
14
+ export { transformToObject as transformToIteration, transformToAttributes as transformFromIteration };
@@ -1,11 +1,11 @@
1
- import { transformFromSeasonMatch, transformFromTeam, transformToAPIMatch, transformToAPITeam, transformToLeague, transformToMatch, transformToTeam } from '.';
1
+ import { transformFromSeasonMatch, transformFromTeam, transformToAPIMatch, transformToAPITeam, transformToIteration, transformToLeague, transformToMatch, transformToTeam } from '.';
2
2
  import { Season } from '../../service';
3
3
  function transformToAttributes(season, leagueId) {
4
4
  const seasonMatches = season.matches != null ?
5
5
  season.matches.map(match => transformFromSeasonMatch(season.id, match)) : [];
6
6
  return {
7
7
  season_id: season.id,
8
- iteration: season.iteration,
8
+ iteration: season.iteration.id,
9
9
  league_id: leagueId,
10
10
  champion: season.champion != null ? season.champion.id : undefined,
11
11
  seasonTeams: season.teams != null ? season.teams.map(transformFromTeam) : [],
@@ -18,7 +18,7 @@ function transformToObject(model) {
18
18
  return new Season({
19
19
  id: model.season_id,
20
20
  matches,
21
- iteration: model.iteration,
21
+ iteration: transformToIteration(model.iteration_Iteration),
22
22
  teams: model.seasonTeams != null ? model.seasonTeams.map(transformToTeam) : [],
23
23
  champion: model.Champion != null ? transformToTeam(model.Champion) : undefined
24
24
  });