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