volleyballsimtypes 0.0.75 → 0.0.76
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/api/events.d.ts +14 -14
- package/dist/cjs/src/api/index.d.ts +7 -8
- package/dist/cjs/src/api/index.js +21 -3
- package/dist/cjs/src/data/index.d.ts +4 -6
- package/dist/cjs/src/data/index.js +18 -93
- package/dist/cjs/src/data/models/index.d.ts +62 -64
- package/dist/cjs/src/data/models/index.js +33 -33
- package/dist/cjs/src/data/transformers/block.js +12 -12
- package/dist/cjs/src/data/transformers/court-target.d.ts +3 -3
- package/dist/cjs/src/data/transformers/court-target.js +14 -14
- package/dist/cjs/src/data/transformers/event-type.d.ts +3 -3
- package/dist/cjs/src/data/transformers/event-type.js +9 -9
- package/dist/cjs/src/data/transformers/index.d.ts +35 -36
- package/dist/cjs/src/data/transformers/index.js +49 -124
- package/dist/cjs/src/data/transformers/libero-replacement.js +3 -3
- package/dist/cjs/src/data/transformers/rally.js +8 -8
- package/dist/cjs/src/data/transformers/reception.js +11 -11
- package/dist/cjs/src/data/transformers/serve.js +12 -12
- package/dist/cjs/src/data/transformers/set.js +11 -11
- package/dist/cjs/src/data/transformers/spike.js +13 -13
- package/dist/cjs/src/index.d.ts +4 -6
- package/dist/cjs/src/index.js +20 -65
- package/dist/cjs/src/service/event/__stubs__/index.js +5 -5
- package/dist/cjs/src/service/event/block.d.ts +6 -6
- package/dist/cjs/src/service/event/block.js +22 -22
- package/dist/cjs/src/service/event/block.test.js +25 -25
- package/dist/cjs/src/service/event/in-play-event.d.ts +3 -3
- package/dist/cjs/src/service/event/libero-replacement.d.ts +3 -3
- package/dist/cjs/src/service/event/libero-replacement.js +7 -7
- package/dist/cjs/src/service/event/libero-replacement.test.js +7 -7
- package/dist/cjs/src/service/event/rally-event.d.ts +3 -3
- package/dist/cjs/src/service/event/rally-event.js +12 -12
- package/dist/cjs/src/service/event/reception.d.ts +7 -7
- package/dist/cjs/src/service/event/reception.js +17 -17
- package/dist/cjs/src/service/event/reception.test.js +13 -13
- package/dist/cjs/src/service/event/score.test.js +2 -2
- package/dist/cjs/src/service/event/serve.d.ts +7 -7
- package/dist/cjs/src/service/event/serve.js +18 -18
- package/dist/cjs/src/service/event/serve.test.js +13 -13
- package/dist/cjs/src/service/event/set.d.ts +7 -7
- package/dist/cjs/src/service/event/set.js +17 -17
- package/dist/cjs/src/service/event/set.test.js +13 -13
- package/dist/cjs/src/service/event/spike.d.ts +7 -7
- package/dist/cjs/src/service/event/spike.js +20 -20
- package/dist/cjs/src/service/event/spike.test.js +20 -20
- package/dist/cjs/src/service/match/{court-target.d.ts → court-target-enum.d.ts} +4 -4
- package/dist/cjs/src/service/match/court-target-enum.js +42 -0
- package/dist/cjs/src/service/match/court-target.test.js +18 -18
- package/dist/cjs/src/service/match/index.d.ts +1 -1
- package/dist/cjs/src/service/match/index.js +1 -1
- package/dist/cjs/src/service/match/rally.js +1 -1
- package/dist/cjs/src/service/match/rally.test.js +2 -2
- package/dist/esm/src/api/events.d.ts +14 -14
- package/dist/esm/src/api/index.d.ts +7 -8
- package/dist/esm/src/api/index.js +7 -2
- package/dist/esm/src/data/index.d.ts +4 -6
- package/dist/esm/src/data/index.js +3 -4
- package/dist/esm/src/data/models/index.d.ts +62 -64
- package/dist/esm/src/data/models/index.js +32 -33
- package/dist/esm/src/data/transformers/block.js +13 -13
- package/dist/esm/src/data/transformers/court-target.d.ts +3 -3
- package/dist/esm/src/data/transformers/court-target.js +15 -15
- package/dist/esm/src/data/transformers/event-type.d.ts +3 -3
- package/dist/esm/src/data/transformers/event-type.js +10 -10
- package/dist/esm/src/data/transformers/index.d.ts +35 -36
- package/dist/esm/src/data/transformers/index.js +35 -36
- package/dist/esm/src/data/transformers/libero-replacement.js +4 -4
- package/dist/esm/src/data/transformers/rally.js +9 -9
- package/dist/esm/src/data/transformers/reception.js +12 -12
- package/dist/esm/src/data/transformers/serve.js +13 -13
- package/dist/esm/src/data/transformers/set.js +12 -12
- package/dist/esm/src/data/transformers/spike.js +14 -14
- package/dist/esm/src/index.d.ts +4 -6
- package/dist/esm/src/index.js +3 -4
- package/dist/esm/src/service/event/__stubs__/index.js +8 -8
- package/dist/esm/src/service/event/block.d.ts +6 -6
- package/dist/esm/src/service/event/block.js +21 -21
- package/dist/esm/src/service/event/block.test.js +28 -28
- package/dist/esm/src/service/event/in-play-event.d.ts +3 -3
- package/dist/esm/src/service/event/libero-replacement.d.ts +3 -3
- package/dist/esm/src/service/event/libero-replacement.js +7 -7
- package/dist/esm/src/service/event/libero-replacement.test.js +9 -9
- package/dist/esm/src/service/event/rally-event.d.ts +3 -3
- package/dist/esm/src/service/event/rally-event.js +11 -11
- package/dist/esm/src/service/event/reception.d.ts +7 -7
- package/dist/esm/src/service/event/reception.js +16 -16
- package/dist/esm/src/service/event/reception.test.js +16 -16
- package/dist/esm/src/service/event/score.test.js +3 -3
- package/dist/esm/src/service/event/serve.d.ts +7 -7
- package/dist/esm/src/service/event/serve.js +17 -17
- package/dist/esm/src/service/event/serve.test.js +16 -16
- package/dist/esm/src/service/event/set.d.ts +7 -7
- package/dist/esm/src/service/event/set.js +16 -16
- package/dist/esm/src/service/event/set.test.js +16 -16
- package/dist/esm/src/service/event/spike.d.ts +7 -7
- package/dist/esm/src/service/event/spike.js +19 -19
- package/dist/esm/src/service/event/spike.test.js +23 -23
- package/dist/esm/src/service/match/{court-target.d.ts → court-target-enum.d.ts} +4 -4
- package/dist/esm/src/service/match/court-target-enum.js +39 -0
- package/dist/esm/src/service/match/court-target.test.js +18 -18
- package/dist/esm/src/service/match/index.d.ts +1 -1
- package/dist/esm/src/service/match/index.js +1 -1
- package/dist/esm/src/service/match/rally.js +2 -2
- package/dist/esm/src/service/match/rally.test.js +3 -3
- package/package.json +1 -1
- package/dist/cjs/src/service/match/court-target.js +0 -42
- package/dist/esm/src/service/match/court-target.js +0 -39
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BlockFailureEnum, BlockTypeEnum, CourtTargetEnum, EventTypeEnum, LiberoReplacementTypeEnum, ReceptionFailureEnum, ReceptionTypeEnum, ServeFailureEnum, ServeTypeEnum, SetFailureEnum, SetTypeEnum, SpikeFailureEnum, SpikeTypeEnum } from '../service';
|
|
2
2
|
export interface APIEvent {
|
|
3
3
|
readonly id: string;
|
|
4
4
|
readonly order: number;
|
|
5
5
|
readonly playerId: string;
|
|
6
|
-
readonly eventType:
|
|
6
|
+
readonly eventType: EventTypeEnum;
|
|
7
7
|
}
|
|
8
8
|
export interface APILiberoReplacement extends APIEvent {
|
|
9
|
-
readonly type:
|
|
9
|
+
readonly type: LiberoReplacementTypeEnum;
|
|
10
10
|
readonly liberoId: string;
|
|
11
11
|
}
|
|
12
12
|
export interface APISubstitution extends APIEvent {
|
|
13
13
|
readonly playerOutId: string;
|
|
14
14
|
}
|
|
15
15
|
export interface APIInPlayEvent extends APIEvent {
|
|
16
|
-
readonly target:
|
|
16
|
+
readonly target: CourtTargetEnum;
|
|
17
17
|
readonly modifier: number;
|
|
18
18
|
readonly score: number;
|
|
19
19
|
}
|
|
@@ -21,23 +21,23 @@ export interface APIScore extends APIEvent {
|
|
|
21
21
|
readonly teamId: string;
|
|
22
22
|
}
|
|
23
23
|
export interface APIServe extends APIInPlayEvent {
|
|
24
|
-
readonly type:
|
|
25
|
-
readonly failure:
|
|
24
|
+
readonly type: ServeTypeEnum;
|
|
25
|
+
readonly failure: ServeFailureEnum;
|
|
26
26
|
}
|
|
27
27
|
export interface APISet extends APIInPlayEvent {
|
|
28
|
-
readonly type:
|
|
29
|
-
readonly failure:
|
|
28
|
+
readonly type: SetTypeEnum;
|
|
29
|
+
readonly failure: SetFailureEnum;
|
|
30
30
|
}
|
|
31
31
|
export interface APISpike extends APIInPlayEvent {
|
|
32
|
-
readonly failure:
|
|
33
|
-
readonly type:
|
|
32
|
+
readonly failure: SpikeFailureEnum;
|
|
33
|
+
readonly type: SpikeTypeEnum;
|
|
34
34
|
}
|
|
35
35
|
export interface APIReception extends APIInPlayEvent {
|
|
36
|
-
readonly type:
|
|
37
|
-
readonly failure:
|
|
36
|
+
readonly type: ReceptionTypeEnum;
|
|
37
|
+
readonly failure: ReceptionFailureEnum;
|
|
38
38
|
}
|
|
39
39
|
export interface APIBlock extends APIInPlayEvent {
|
|
40
|
-
readonly failure:
|
|
41
|
-
readonly type:
|
|
40
|
+
readonly failure: BlockFailureEnum;
|
|
41
|
+
readonly type: BlockTypeEnum;
|
|
42
42
|
readonly blockers: string[];
|
|
43
43
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { APICoach, APITeam, APIReception, APIScore, APIServe, APISet, APISpike, APISubstitution, APIMatchSet, APISetStatistics, APIInPlayEvent, APILeague, APIMatch, APIPlayer, APISeason, APIEvent, APILiberoReplacement, APIBlock, APITrait, APIRally, APITournament, APITournamentMatch };
|
|
1
|
+
export * from './events';
|
|
2
|
+
export * from './league';
|
|
3
|
+
export * from './match';
|
|
4
|
+
export * from './player';
|
|
5
|
+
export * from './team';
|
|
6
|
+
export * from './coach';
|
|
7
|
+
export * from './tournament';
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports
|
|
4
|
-
|
|
5
|
-
|
|
17
|
+
__exportStar(require("./events"), exports);
|
|
18
|
+
__exportStar(require("./league"), exports);
|
|
19
|
+
__exportStar(require("./match"), exports);
|
|
20
|
+
__exportStar(require("./player"), exports);
|
|
21
|
+
__exportStar(require("./team"), exports);
|
|
22
|
+
__exportStar(require("./coach"), exports);
|
|
23
|
+
__exportStar(require("./tournament"), exports);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { initModels, transformToStage, transformFromDraft, transformToDraft, transformFromDraftPick, transformToDraftPick, transformFromStage, transformFromPlayerTeam, transformFromMatchRating, MatchRatingModel, MatchRatingAttributes, DraftModel, DraftAttributes, DraftPickAttributes, DraftPickModel, PlayerTeamModel, PlayerTeamAttributes, 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, UserAttributes, UserModel, 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 { UserCreationAttributes, UserOptionalAttributes, UserRole, UserId, UserPk, MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk, DraftPk, DraftId, DraftCreationAttributes, DraftPickCreationAttributes, DraftPickId, DraftPickPk, PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk, 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
|
+
export type { MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk, DraftPk, DraftId, DraftCreationAttributes, DraftPickCreationAttributes, DraftPickId, DraftPickPk, PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk, 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, UserCreationAttributes, UserOptionalAttributes, UserRole, UserId, UserPk } from './models';
|
|
2
|
+
export { UserAttributes, UserModel, MatchRatingModel, MatchRatingAttributes, DraftModel, DraftAttributes, DraftPickAttributes, DraftPickModel, PlayerTeamModel, PlayerTeamAttributes, 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
|
+
export * from './transformers';
|
|
4
|
+
export { initModels } from './init-models';
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
exports.IterationModel = exports.TournamentTeamsModel = exports.transformFromIteration = exports.transformToIteration = exports.transformToTournamentMatch = exports.transformToAPITournamentMatch = exports.transformFromTournamentMatch = exports.transformToTournament = exports.transformToAPITournament = exports.transformFromTournament = exports.transformToTrait = exports.transformToTeam = exports.transformToSubstitution = exports.transformToSpike = exports.transformToSet = exports.transformToServe = exports.transformToSeason = exports.transformToScore = exports.transformToRole = exports.transformToReception = void 0;
|
|
6
|
-
const models_1 = require("./models");
|
|
17
|
+
exports.initModels = exports.IterationModel = exports.TournamentTeamsModel = exports.TournamentModel = exports.TournamentMatchModel = exports.TeamModel = exports.SubstitutionModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = exports.SeasonTeamsModel = exports.SeasonModel = exports.SeasonMatchModel = exports.ScoreModel = exports.ReceptionModel = exports.RallyPositionModel = exports.RallyModel = exports.PlayerModel = exports.PerformanceStatsModel = exports.MatchSetStatsModel = exports.MatchSetModel = exports.MatchModel = exports.LiberoReplacementModel = exports.LeagueModel = exports.EventModel = exports.CountryModel = exports.CoachModel = exports.BlockModel = exports.PlayerTeamModel = exports.DraftPickModel = exports.DraftModel = exports.MatchRatingModel = exports.UserModel = void 0;
|
|
18
|
+
var models_1 = require("./models");
|
|
7
19
|
Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return models_1.UserModel; } });
|
|
8
20
|
Object.defineProperty(exports, "MatchRatingModel", { enumerable: true, get: function () { return models_1.MatchRatingModel; } });
|
|
9
21
|
Object.defineProperty(exports, "DraftModel", { enumerable: true, get: function () { return models_1.DraftModel; } });
|
|
@@ -36,93 +48,6 @@ Object.defineProperty(exports, "TournamentMatchModel", { enumerable: true, get:
|
|
|
36
48
|
Object.defineProperty(exports, "TournamentModel", { enumerable: true, get: function () { return models_1.TournamentModel; } });
|
|
37
49
|
Object.defineProperty(exports, "TournamentTeamsModel", { enumerable: true, get: function () { return models_1.TournamentTeamsModel; } });
|
|
38
50
|
Object.defineProperty(exports, "IterationModel", { enumerable: true, get: function () { return models_1.IterationModel; } });
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Object.defineProperty(exports, "transformFromCoach", { enumerable: true, get: function () { return transformers_1.transformFromCoach; } });
|
|
42
|
-
Object.defineProperty(exports, "transformFromCountry", { enumerable: true, get: function () { return transformers_1.transformFromCountry; } });
|
|
43
|
-
Object.defineProperty(exports, "transformFromCourtPosition", { enumerable: true, get: function () { return transformers_1.transformFromCourtPosition; } });
|
|
44
|
-
Object.defineProperty(exports, "transformFromCourtTarget", { enumerable: true, get: function () { return transformers_1.transformFromCourtTarget; } });
|
|
45
|
-
Object.defineProperty(exports, "transformFromEventType", { enumerable: true, get: function () { return transformers_1.transformFromEventType; } });
|
|
46
|
-
Object.defineProperty(exports, "transformFromFormation", { enumerable: true, get: function () { return transformers_1.transformFromFormation; } });
|
|
47
|
-
Object.defineProperty(exports, "transformFromLeague", { enumerable: true, get: function () { return transformers_1.transformFromLeague; } });
|
|
48
|
-
Object.defineProperty(exports, "transformFromLiberoReplacement", { enumerable: true, get: function () { return transformers_1.transformFromLiberoReplacement; } });
|
|
49
|
-
Object.defineProperty(exports, "transformFromMatch", { enumerable: true, get: function () { return transformers_1.transformFromMatch; } });
|
|
50
|
-
Object.defineProperty(exports, "transformFromMatchSet", { enumerable: true, get: function () { return transformers_1.transformFromMatchSet; } });
|
|
51
|
-
Object.defineProperty(exports, "transformFromMatchSetStats", { enumerable: true, get: function () { return transformers_1.transformFromMatchSetStats; } });
|
|
52
|
-
Object.defineProperty(exports, "transformFromPerformanceStats", { enumerable: true, get: function () { return transformers_1.transformFromPerformanceStats; } });
|
|
53
|
-
Object.defineProperty(exports, "transformFromPlayer", { enumerable: true, get: function () { return transformers_1.transformFromPlayer; } });
|
|
54
|
-
Object.defineProperty(exports, "transformFromPlayerPosition", { enumerable: true, get: function () { return transformers_1.transformFromPlayerPosition; } });
|
|
55
|
-
Object.defineProperty(exports, "transformFromRally", { enumerable: true, get: function () { return transformers_1.transformFromRally; } });
|
|
56
|
-
Object.defineProperty(exports, "transformFromReception", { enumerable: true, get: function () { return transformers_1.transformFromReception; } });
|
|
57
|
-
Object.defineProperty(exports, "transformFromRole", { enumerable: true, get: function () { return transformers_1.transformFromRole; } });
|
|
58
|
-
Object.defineProperty(exports, "transformFromScore", { enumerable: true, get: function () { return transformers_1.transformFromScore; } });
|
|
59
|
-
Object.defineProperty(exports, "transformFromSeason", { enumerable: true, get: function () { return transformers_1.transformFromSeason; } });
|
|
60
|
-
Object.defineProperty(exports, "transformFromSeasonMatch", { enumerable: true, get: function () { return transformers_1.transformFromSeasonMatch; } });
|
|
61
|
-
Object.defineProperty(exports, "transformFromServe", { enumerable: true, get: function () { return transformers_1.transformFromServe; } });
|
|
62
|
-
Object.defineProperty(exports, "transformFromSet", { enumerable: true, get: function () { return transformers_1.transformFromSet; } });
|
|
63
|
-
Object.defineProperty(exports, "transformFromSpike", { enumerable: true, get: function () { return transformers_1.transformFromSpike; } });
|
|
64
|
-
Object.defineProperty(exports, "transformFromStage", { enumerable: true, get: function () { return transformers_1.transformFromStage; } });
|
|
65
|
-
Object.defineProperty(exports, "transformFromSubstitution", { enumerable: true, get: function () { return transformers_1.transformFromSubstitution; } });
|
|
66
|
-
Object.defineProperty(exports, "transformFromTeam", { enumerable: true, get: function () { return transformers_1.transformFromTeam; } });
|
|
67
|
-
Object.defineProperty(exports, "transformFromTournament", { enumerable: true, get: function () { return transformers_1.transformFromTournament; } });
|
|
68
|
-
Object.defineProperty(exports, "transformFromTournamentMatch", { enumerable: true, get: function () { return transformers_1.transformFromTournamentMatch; } });
|
|
69
|
-
Object.defineProperty(exports, "transformFromTrait", { enumerable: true, get: function () { return transformers_1.transformFromTrait; } });
|
|
70
|
-
Object.defineProperty(exports, "transformToAPIBlock", { enumerable: true, get: function () { return transformers_1.transformToAPIBlock; } });
|
|
71
|
-
Object.defineProperty(exports, "transformToAPICoach", { enumerable: true, get: function () { return transformers_1.transformToAPICoach; } });
|
|
72
|
-
Object.defineProperty(exports, "transformToAPILeague", { enumerable: true, get: function () { return transformers_1.transformToAPILeague; } });
|
|
73
|
-
Object.defineProperty(exports, "transformToAPILiberoReplacement", { enumerable: true, get: function () { return transformers_1.transformToAPILiberoReplacement; } });
|
|
74
|
-
Object.defineProperty(exports, "transformToAPIMatch", { enumerable: true, get: function () { return transformers_1.transformToAPIMatch; } });
|
|
75
|
-
Object.defineProperty(exports, "transformToAPIMatchSet", { enumerable: true, get: function () { return transformers_1.transformToAPIMatchSet; } });
|
|
76
|
-
Object.defineProperty(exports, "transformToAPIMatchSetStats", { enumerable: true, get: function () { return transformers_1.transformToAPIMatchSetStats; } });
|
|
77
|
-
Object.defineProperty(exports, "transformToAPIPlayer", { enumerable: true, get: function () { return transformers_1.transformToAPIPlayer; } });
|
|
78
|
-
Object.defineProperty(exports, "transformToAPIRally", { enumerable: true, get: function () { return transformers_1.transformToAPIRally; } });
|
|
79
|
-
Object.defineProperty(exports, "transformToAPIReception", { enumerable: true, get: function () { return transformers_1.transformToAPIReception; } });
|
|
80
|
-
Object.defineProperty(exports, "transformToAPIScore", { enumerable: true, get: function () { return transformers_1.transformToAPIScore; } });
|
|
81
|
-
Object.defineProperty(exports, "transformToAPISeason", { enumerable: true, get: function () { return transformers_1.transformToAPISeason; } });
|
|
82
|
-
Object.defineProperty(exports, "transformToAPIServe", { enumerable: true, get: function () { return transformers_1.transformToAPIServe; } });
|
|
83
|
-
Object.defineProperty(exports, "transformToAPISet", { enumerable: true, get: function () { return transformers_1.transformToAPISet; } });
|
|
84
|
-
Object.defineProperty(exports, "transformToAPISpike", { enumerable: true, get: function () { return transformers_1.transformToAPISpike; } });
|
|
85
|
-
Object.defineProperty(exports, "transformToAPISubstitution", { enumerable: true, get: function () { return transformers_1.transformToAPISubstitution; } });
|
|
86
|
-
Object.defineProperty(exports, "transformToAPITeam", { enumerable: true, get: function () { return transformers_1.transformToAPITeam; } });
|
|
87
|
-
Object.defineProperty(exports, "transformToAPITournament", { enumerable: true, get: function () { return transformers_1.transformToAPITournament; } });
|
|
88
|
-
Object.defineProperty(exports, "transformToAPITournamentMatch", { enumerable: true, get: function () { return transformers_1.transformToAPITournamentMatch; } });
|
|
89
|
-
Object.defineProperty(exports, "transformToAPITrait", { enumerable: true, get: function () { return transformers_1.transformToAPITrait; } });
|
|
90
|
-
Object.defineProperty(exports, "transformToBlock", { enumerable: true, get: function () { return transformers_1.transformToBlock; } });
|
|
91
|
-
Object.defineProperty(exports, "transformToCoach", { enumerable: true, get: function () { return transformers_1.transformToCoach; } });
|
|
92
|
-
Object.defineProperty(exports, "transformToCountry", { enumerable: true, get: function () { return transformers_1.transformToCountry; } });
|
|
93
|
-
Object.defineProperty(exports, "transformToCourtPosition", { enumerable: true, get: function () { return transformers_1.transformToCourtPosition; } });
|
|
94
|
-
Object.defineProperty(exports, "transformToCourtTarget", { enumerable: true, get: function () { return transformers_1.transformToCourtTarget; } });
|
|
95
|
-
Object.defineProperty(exports, "transformToEventType", { enumerable: true, get: function () { return transformers_1.transformToEventType; } });
|
|
96
|
-
Object.defineProperty(exports, "transformToFormation", { enumerable: true, get: function () { return transformers_1.transformToFormation; } });
|
|
97
|
-
Object.defineProperty(exports, "transformToLeague", { enumerable: true, get: function () { return transformers_1.transformToLeague; } });
|
|
98
|
-
Object.defineProperty(exports, "transformToLiberoReplacement", { enumerable: true, get: function () { return transformers_1.transformToLiberoReplacement; } });
|
|
99
|
-
Object.defineProperty(exports, "transformToMatch", { enumerable: true, get: function () { return transformers_1.transformToMatch; } });
|
|
100
|
-
Object.defineProperty(exports, "transformToMatchSet", { enumerable: true, get: function () { return transformers_1.transformToMatchSet; } });
|
|
101
|
-
Object.defineProperty(exports, "transformToMatchSetStats", { enumerable: true, get: function () { return transformers_1.transformToMatchSetStats; } });
|
|
102
|
-
Object.defineProperty(exports, "transformToPerformanceStats", { enumerable: true, get: function () { return transformers_1.transformToPerformanceStats; } });
|
|
103
|
-
Object.defineProperty(exports, "transformToPlayer", { enumerable: true, get: function () { return transformers_1.transformToPlayer; } });
|
|
104
|
-
Object.defineProperty(exports, "transformToPlayerPosition", { enumerable: true, get: function () { return transformers_1.transformToPlayerPosition; } });
|
|
105
|
-
Object.defineProperty(exports, "transformToRally", { enumerable: true, get: function () { return transformers_1.transformToRally; } });
|
|
106
|
-
Object.defineProperty(exports, "transformToReception", { enumerable: true, get: function () { return transformers_1.transformToReception; } });
|
|
107
|
-
Object.defineProperty(exports, "transformToRole", { enumerable: true, get: function () { return transformers_1.transformToRole; } });
|
|
108
|
-
Object.defineProperty(exports, "transformToScore", { enumerable: true, get: function () { return transformers_1.transformToScore; } });
|
|
109
|
-
Object.defineProperty(exports, "transformToSeason", { enumerable: true, get: function () { return transformers_1.transformToSeason; } });
|
|
110
|
-
Object.defineProperty(exports, "transformToServe", { enumerable: true, get: function () { return transformers_1.transformToServe; } });
|
|
111
|
-
Object.defineProperty(exports, "transformToSet", { enumerable: true, get: function () { return transformers_1.transformToSet; } });
|
|
112
|
-
Object.defineProperty(exports, "transformToSpike", { enumerable: true, get: function () { return transformers_1.transformToSpike; } });
|
|
113
|
-
Object.defineProperty(exports, "transformToStage", { enumerable: true, get: function () { return transformers_1.transformToStage; } });
|
|
114
|
-
Object.defineProperty(exports, "transformToSubstitution", { enumerable: true, get: function () { return transformers_1.transformToSubstitution; } });
|
|
115
|
-
Object.defineProperty(exports, "transformToTeam", { enumerable: true, get: function () { return transformers_1.transformToTeam; } });
|
|
116
|
-
Object.defineProperty(exports, "transformToTournament", { enumerable: true, get: function () { return transformers_1.transformToTournament; } });
|
|
117
|
-
Object.defineProperty(exports, "transformToTournamentMatch", { enumerable: true, get: function () { return transformers_1.transformToTournamentMatch; } });
|
|
118
|
-
Object.defineProperty(exports, "transformToTrait", { enumerable: true, get: function () { return transformers_1.transformToTrait; } });
|
|
119
|
-
Object.defineProperty(exports, "transformToIteration", { enumerable: true, get: function () { return transformers_1.transformToIteration; } });
|
|
120
|
-
Object.defineProperty(exports, "transformFromIteration", { enumerable: true, get: function () { return transformers_1.transformFromIteration; } });
|
|
121
|
-
Object.defineProperty(exports, "transformFromPlayerTeam", { enumerable: true, get: function () { return transformers_1.transformFromPlayerTeam; } });
|
|
122
|
-
Object.defineProperty(exports, "transformFromMatchRating", { enumerable: true, get: function () { return transformers_1.transformFromMatchRating; } });
|
|
123
|
-
Object.defineProperty(exports, "transformFromDraft", { enumerable: true, get: function () { return transformers_1.transformFromDraft; } });
|
|
124
|
-
Object.defineProperty(exports, "transformToDraft", { enumerable: true, get: function () { return transformers_1.transformToDraft; } });
|
|
125
|
-
Object.defineProperty(exports, "transformFromDraftPick", { enumerable: true, get: function () { return transformers_1.transformFromDraftPick; } });
|
|
126
|
-
Object.defineProperty(exports, "transformToDraftPick", { enumerable: true, get: function () { return transformers_1.transformToDraftPick; } });
|
|
127
|
-
const init_models_1 = require("./init-models");
|
|
51
|
+
__exportStar(require("./transformers"), exports);
|
|
52
|
+
var init_models_1 = require("./init-models");
|
|
128
53
|
Object.defineProperty(exports, "initModels", { enumerable: true, get: function () { return init_models_1.initModels; } });
|
|
@@ -1,64 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
export type { MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk, DraftPk, DraftId, DraftCreationAttributes, DraftPickCreationAttributes, DraftPickId, DraftPickPk, PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk, 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, UserCreationAttributes, UserOptionalAttributes, UserRole, UserId, UserPk };
|
|
64
|
-
export { UserAttributes, UserModel, MatchRatingModel, MatchRatingAttributes, DraftModel, DraftAttributes, DraftPickAttributes, DraftPickModel, PlayerTeamModel, PlayerTeamAttributes, 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 };
|
|
1
|
+
export type { BlockCreationAttributes, BlockFailure, BlockId, BlockOptionalAttributes, BlockPk, BlockType } from './block';
|
|
2
|
+
export { BlockAttributes, BlockModel } from './block';
|
|
3
|
+
export type { CoachCreationAttributes, CoachId, CoachOptionalAttributes, CoachPk, FormationType } from './coach';
|
|
4
|
+
export { CoachAttributes, CoachModel } from './coach';
|
|
5
|
+
export type { CountryCreationAttributes, CountryId, CountryPk } from './country';
|
|
6
|
+
export { CountryAttributes, CountryModel } from './country';
|
|
7
|
+
export type { DraftCreationAttributes, DraftId, DraftPk } from './draft';
|
|
8
|
+
export { DraftAttributes, DraftModel } from './draft';
|
|
9
|
+
export type { DraftPickCreationAttributes, DraftPickId, DraftPickPk } from './draft-pick';
|
|
10
|
+
export { DraftPickAttributes, DraftPickModel } from './draft-pick';
|
|
11
|
+
export type { PlayerTeamCreationAttributes, PlayerTeamId, PlayerTeamOptionalAttributes, PlayerTeamPk } from './player-team';
|
|
12
|
+
export { PlayerTeamAttributes, PlayerTeamModel } from './player-team';
|
|
13
|
+
export type { CourtTarget, EventCreationAttributes, EventId, EventPk, EventType } from './event';
|
|
14
|
+
export { EventAttributes, EventModel } from './event';
|
|
15
|
+
export type { IterationCreationAttributes, IterationId, IterationPk } from './iteration';
|
|
16
|
+
export { IterationAttributes, IterationModel } from './iteration';
|
|
17
|
+
export type { LeagueCreationAttributes, LeagueId, LeaguePk } from './league';
|
|
18
|
+
export { LeagueAttributes, LeagueModel } from './league';
|
|
19
|
+
export type { LiberoReplacementCreationAttributes, LiberoReplacementId, LiberoReplacementPk, LiberoReplacementType } from './libero-replacement';
|
|
20
|
+
export { LiberoReplacementAttributes, LiberoReplacementModel } from './libero-replacement';
|
|
21
|
+
export type { MatchCreationAttributes, MatchId, MatchPk } from './match';
|
|
22
|
+
export { MatchAttributes, MatchModel } from './match';
|
|
23
|
+
export type { MatchSetCreationAttributes, MatchSetId, MatchSetOptionalAttributes, MatchSetPk } from './match-set';
|
|
24
|
+
export { MatchSetAttributes, MatchSetModel } from './match-set';
|
|
25
|
+
export type { MatchSetStatsCreationAttributes, MatchSetStatsId, MatchSetStatsOptionalAttributes, MatchSetStatsPk } from './match-set-stats';
|
|
26
|
+
export { MatchSetStatsAttributes, MatchSetStatsModel } from './match-set-stats';
|
|
27
|
+
export type { PerformanceStatsCreationAttributes, PerformanceStatsId, PerformanceStatsOptionalAttributes, PerformanceStatsPk } from './performance-stats';
|
|
28
|
+
export { PerformanceStatsAttributes, PerformanceStatsModel } from './performance-stats';
|
|
29
|
+
export type { PlayerCreationAttributes, PlayerId, PlayerPk, RoleType, TraitType } from './player';
|
|
30
|
+
export { PlayerAttributes, PlayerModel } from './player';
|
|
31
|
+
export { RallyAttributes, RallyCreationAttributes, RallyId, RallyModel, RallyPk } from './rally';
|
|
32
|
+
export { CourtPositionType, RallyPositionAttributes, RallyPositionCreationAttributes, RallyPositionId, RallyPositionModel, RallyPositionPk, Side } from './rally-position';
|
|
33
|
+
export type { ReceptionCreationAttributes, ReceptionFailure, ReceptionId, ReceptionPk, ReceptionType } from './reception';
|
|
34
|
+
export { ReceptionAttributes, ReceptionModel } from './reception';
|
|
35
|
+
export type { ScoreCreationAttributes, ScoreId, ScorePk } from './score';
|
|
36
|
+
export { ScoreAttributes, ScoreModel } from './score';
|
|
37
|
+
export type { SeasonCreationAttributes, SeasonId, SeasonPk } from './season';
|
|
38
|
+
export { SeasonAttributes, SeasonModel } from './season';
|
|
39
|
+
export type { SeasonTeamsCreationAttributes, SeasonTeamsId, SeasonTeamsPk } from './season-teams';
|
|
40
|
+
export { SeasonTeamsAttributes, SeasonTeamsModel } from './season-teams';
|
|
41
|
+
export type { SeasonMatchCreationAttributes, SeasonMatchId, SeasonMatchPk } from './season-match';
|
|
42
|
+
export { SeasonMatchAttributes, SeasonMatchModel } from './season-match';
|
|
43
|
+
export type { ServeCreationAttributes, ServeFailure, ServeId, ServePk, ServeType } from './serve';
|
|
44
|
+
export { ServeAttributes, ServeModel } from './serve';
|
|
45
|
+
export type { SetCreationAttributes, SetFailure, SetId, SetPk, SetType } from './set';
|
|
46
|
+
export { SetAttributes, SetModel } from './set';
|
|
47
|
+
export type { SpikeCreationAttributes, SpikeFailure, SpikeId, SpikePk, SpikeType } from './spike';
|
|
48
|
+
export { SpikeAttributes, SpikeModel } from './spike';
|
|
49
|
+
export type { SubstitutionCreationAttributes, SubstitutionId, SubstitutionPk } from './substitution';
|
|
50
|
+
export { SubstitutionAttributes, SubstitutionModel } from './substitution';
|
|
51
|
+
export type { TeamCreationAttributes, TeamId, TeamPk } from './team';
|
|
52
|
+
export { TeamAttributes, TeamModel } from './team';
|
|
53
|
+
export type { TournamentCreationAttributes, TournamentId, TournamentOptionalAttributes, TournamentPk } from './tournament';
|
|
54
|
+
export { TournamentAttributes, TournamentModel } from './tournament';
|
|
55
|
+
export type { TournamentMatchCreationAttributes, TournamentMatchId, TournamentMatchPk, TournamentStage } from './tournament-match';
|
|
56
|
+
export { TournamentMatchAttributes, TournamentMatchModel } from './tournament-match';
|
|
57
|
+
export type { TournamentTeamsCreationAttributes, TournamentTeamsId, TournamentTeamsPk } from './tournament-teams';
|
|
58
|
+
export { TournamentTeamsAttributes, TournamentTeamsModel } from './tournament-teams';
|
|
59
|
+
export type { MatchRatingCreationAttributes, MatchRatingId, MatchRatingPk } from './match-rating';
|
|
60
|
+
export { MatchRatingAttributes, MatchRatingModel } from './match-rating';
|
|
61
|
+
export type { UserCreationAttributes, UserId, UserOptionalAttributes, UserPk, UserRole } from './user';
|
|
62
|
+
export { UserAttributes, UserModel } from './user';
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.UserModel = exports.MatchRatingModel = exports.TournamentTeamsModel = exports.TournamentMatchModel = exports.TournamentModel = exports.TeamModel = exports.SubstitutionModel = exports.SpikeModel = exports.SetModel = exports.ServeModel = exports.SeasonMatchModel = exports.SeasonTeamsModel = exports.SeasonModel = exports.ScoreModel = exports.ReceptionModel = exports.RallyPositionModel = exports.RallyModel = exports.PlayerModel = exports.PerformanceStatsModel = exports.MatchSetStatsModel = exports.MatchSetModel = exports.MatchModel = exports.LiberoReplacementModel = exports.LeagueModel = exports.IterationModel = exports.EventModel = exports.PlayerTeamModel = exports.DraftPickModel = exports.DraftModel = exports.CountryModel = exports.CoachModel = exports.BlockModel = void 0;
|
|
4
|
+
var block_1 = require("./block");
|
|
5
5
|
Object.defineProperty(exports, "BlockModel", { enumerable: true, get: function () { return block_1.BlockModel; } });
|
|
6
|
-
|
|
6
|
+
var coach_1 = require("./coach");
|
|
7
7
|
Object.defineProperty(exports, "CoachModel", { enumerable: true, get: function () { return coach_1.CoachModel; } });
|
|
8
|
-
|
|
8
|
+
var country_1 = require("./country");
|
|
9
9
|
Object.defineProperty(exports, "CountryModel", { enumerable: true, get: function () { return country_1.CountryModel; } });
|
|
10
|
-
|
|
10
|
+
var draft_1 = require("./draft");
|
|
11
11
|
Object.defineProperty(exports, "DraftModel", { enumerable: true, get: function () { return draft_1.DraftModel; } });
|
|
12
|
-
|
|
12
|
+
var draft_pick_1 = require("./draft-pick");
|
|
13
13
|
Object.defineProperty(exports, "DraftPickModel", { enumerable: true, get: function () { return draft_pick_1.DraftPickModel; } });
|
|
14
|
-
|
|
14
|
+
var player_team_1 = require("./player-team");
|
|
15
15
|
Object.defineProperty(exports, "PlayerTeamModel", { enumerable: true, get: function () { return player_team_1.PlayerTeamModel; } });
|
|
16
|
-
|
|
16
|
+
var event_1 = require("./event");
|
|
17
17
|
Object.defineProperty(exports, "EventModel", { enumerable: true, get: function () { return event_1.EventModel; } });
|
|
18
|
-
|
|
18
|
+
var iteration_1 = require("./iteration");
|
|
19
19
|
Object.defineProperty(exports, "IterationModel", { enumerable: true, get: function () { return iteration_1.IterationModel; } });
|
|
20
|
-
|
|
20
|
+
var league_1 = require("./league");
|
|
21
21
|
Object.defineProperty(exports, "LeagueModel", { enumerable: true, get: function () { return league_1.LeagueModel; } });
|
|
22
|
-
|
|
22
|
+
var libero_replacement_1 = require("./libero-replacement");
|
|
23
23
|
Object.defineProperty(exports, "LiberoReplacementModel", { enumerable: true, get: function () { return libero_replacement_1.LiberoReplacementModel; } });
|
|
24
|
-
|
|
24
|
+
var match_1 = require("./match");
|
|
25
25
|
Object.defineProperty(exports, "MatchModel", { enumerable: true, get: function () { return match_1.MatchModel; } });
|
|
26
|
-
|
|
26
|
+
var match_set_1 = require("./match-set");
|
|
27
27
|
Object.defineProperty(exports, "MatchSetModel", { enumerable: true, get: function () { return match_set_1.MatchSetModel; } });
|
|
28
|
-
|
|
28
|
+
var match_set_stats_1 = require("./match-set-stats");
|
|
29
29
|
Object.defineProperty(exports, "MatchSetStatsModel", { enumerable: true, get: function () { return match_set_stats_1.MatchSetStatsModel; } });
|
|
30
|
-
|
|
30
|
+
var performance_stats_1 = require("./performance-stats");
|
|
31
31
|
Object.defineProperty(exports, "PerformanceStatsModel", { enumerable: true, get: function () { return performance_stats_1.PerformanceStatsModel; } });
|
|
32
|
-
|
|
32
|
+
var player_1 = require("./player");
|
|
33
33
|
Object.defineProperty(exports, "PlayerModel", { enumerable: true, get: function () { return player_1.PlayerModel; } });
|
|
34
|
-
|
|
34
|
+
var rally_1 = require("./rally");
|
|
35
35
|
Object.defineProperty(exports, "RallyModel", { enumerable: true, get: function () { return rally_1.RallyModel; } });
|
|
36
|
-
|
|
36
|
+
var rally_position_1 = require("./rally-position");
|
|
37
37
|
Object.defineProperty(exports, "RallyPositionModel", { enumerable: true, get: function () { return rally_position_1.RallyPositionModel; } });
|
|
38
|
-
|
|
38
|
+
var reception_1 = require("./reception");
|
|
39
39
|
Object.defineProperty(exports, "ReceptionModel", { enumerable: true, get: function () { return reception_1.ReceptionModel; } });
|
|
40
|
-
|
|
40
|
+
var score_1 = require("./score");
|
|
41
41
|
Object.defineProperty(exports, "ScoreModel", { enumerable: true, get: function () { return score_1.ScoreModel; } });
|
|
42
|
-
|
|
42
|
+
var season_1 = require("./season");
|
|
43
43
|
Object.defineProperty(exports, "SeasonModel", { enumerable: true, get: function () { return season_1.SeasonModel; } });
|
|
44
|
-
|
|
44
|
+
var season_teams_1 = require("./season-teams");
|
|
45
45
|
Object.defineProperty(exports, "SeasonTeamsModel", { enumerable: true, get: function () { return season_teams_1.SeasonTeamsModel; } });
|
|
46
|
-
|
|
46
|
+
var season_match_1 = require("./season-match");
|
|
47
47
|
Object.defineProperty(exports, "SeasonMatchModel", { enumerable: true, get: function () { return season_match_1.SeasonMatchModel; } });
|
|
48
|
-
|
|
48
|
+
var serve_1 = require("./serve");
|
|
49
49
|
Object.defineProperty(exports, "ServeModel", { enumerable: true, get: function () { return serve_1.ServeModel; } });
|
|
50
|
-
|
|
50
|
+
var set_1 = require("./set");
|
|
51
51
|
Object.defineProperty(exports, "SetModel", { enumerable: true, get: function () { return set_1.SetModel; } });
|
|
52
|
-
|
|
52
|
+
var spike_1 = require("./spike");
|
|
53
53
|
Object.defineProperty(exports, "SpikeModel", { enumerable: true, get: function () { return spike_1.SpikeModel; } });
|
|
54
|
-
|
|
54
|
+
var substitution_1 = require("./substitution");
|
|
55
55
|
Object.defineProperty(exports, "SubstitutionModel", { enumerable: true, get: function () { return substitution_1.SubstitutionModel; } });
|
|
56
|
-
|
|
56
|
+
var team_1 = require("./team");
|
|
57
57
|
Object.defineProperty(exports, "TeamModel", { enumerable: true, get: function () { return team_1.TeamModel; } });
|
|
58
|
-
|
|
58
|
+
var tournament_1 = require("./tournament");
|
|
59
59
|
Object.defineProperty(exports, "TournamentModel", { enumerable: true, get: function () { return tournament_1.TournamentModel; } });
|
|
60
|
-
|
|
60
|
+
var tournament_match_1 = require("./tournament-match");
|
|
61
61
|
Object.defineProperty(exports, "TournamentMatchModel", { enumerable: true, get: function () { return tournament_match_1.TournamentMatchModel; } });
|
|
62
|
-
|
|
62
|
+
var tournament_teams_1 = require("./tournament-teams");
|
|
63
63
|
Object.defineProperty(exports, "TournamentTeamsModel", { enumerable: true, get: function () { return tournament_teams_1.TournamentTeamsModel; } });
|
|
64
|
-
|
|
64
|
+
var match_rating_1 = require("./match-rating");
|
|
65
65
|
Object.defineProperty(exports, "MatchRatingModel", { enumerable: true, get: function () { return match_rating_1.MatchRatingModel; } });
|
|
66
|
-
|
|
66
|
+
var user_1 = require("./user");
|
|
67
67
|
Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return user_1.UserModel; } });
|
|
@@ -5,41 +5,41 @@ const service_1 = require("../../service");
|
|
|
5
5
|
const _1 = require(".");
|
|
6
6
|
function transformToBlockFailure(failure) {
|
|
7
7
|
switch (failure) {
|
|
8
|
-
case service_1.
|
|
8
|
+
case service_1.BlockFailureEnum.NO_FAILURE:
|
|
9
9
|
return 'NO_FAILURE';
|
|
10
|
-
case service_1.
|
|
10
|
+
case service_1.BlockFailureEnum.FAULT:
|
|
11
11
|
return 'FAULT';
|
|
12
|
-
case service_1.
|
|
12
|
+
case service_1.BlockFailureEnum.MISS:
|
|
13
13
|
return 'MISS';
|
|
14
|
-
case service_1.
|
|
14
|
+
case service_1.BlockFailureEnum.OUT_OF_BOUNDS:
|
|
15
15
|
return 'OUT_OF_BOUNDS';
|
|
16
|
-
case service_1.
|
|
16
|
+
case service_1.BlockFailureEnum.WIPE:
|
|
17
17
|
return 'WIPE';
|
|
18
|
-
case service_1.
|
|
18
|
+
case service_1.BlockFailureEnum.TOOL:
|
|
19
19
|
return 'TOOL';
|
|
20
20
|
default:
|
|
21
21
|
throw new Error('UNKNOWN_ROLE');
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
function transformFromBlockFailure(failure) {
|
|
25
|
-
return service_1.
|
|
25
|
+
return service_1.BlockFailureEnum[failure];
|
|
26
26
|
}
|
|
27
27
|
function transformToBlockType(type) {
|
|
28
28
|
switch (type) {
|
|
29
|
-
case service_1.
|
|
29
|
+
case service_1.BlockTypeEnum.NO_BLOCKER:
|
|
30
30
|
return 'NO_BLOCKER';
|
|
31
|
-
case service_1.
|
|
31
|
+
case service_1.BlockTypeEnum.SINGLE:
|
|
32
32
|
return 'SINGLE';
|
|
33
|
-
case service_1.
|
|
33
|
+
case service_1.BlockTypeEnum.DOUBLE:
|
|
34
34
|
return 'DOUBLE';
|
|
35
|
-
case service_1.
|
|
35
|
+
case service_1.BlockTypeEnum.TRIPLE:
|
|
36
36
|
return 'TRIPLE';
|
|
37
37
|
default:
|
|
38
38
|
throw new Error('UNKNOWN_ROLE');
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
function transformFromBlockType(type) {
|
|
42
|
-
return service_1.
|
|
42
|
+
return service_1.BlockTypeEnum[type];
|
|
43
43
|
}
|
|
44
44
|
function transformToAttributes(event, rallyId) {
|
|
45
45
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CourtTargetEnum } from '../../service';
|
|
2
2
|
import { CourtTarget as CourtTargetType } from '../models';
|
|
3
|
-
declare function transformToType(target:
|
|
4
|
-
declare function transformFromType(target: CourtTargetType):
|
|
3
|
+
declare function transformToType(target: CourtTargetEnum): CourtTargetType;
|
|
4
|
+
declare function transformFromType(target: CourtTargetType): CourtTargetEnum;
|
|
5
5
|
export { transformToType as transformFromCourtTarget, transformFromType as transformToCourtTarget };
|