@natrave/shared-entities 1.4.20 → 1.4.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,7 @@ export * from './tournament-match-schemas';
11
11
  export * from './tournament-matches';
12
12
  export * from './tournament-matches-availability';
13
13
  export * from './tournament-payments';
14
+ export * from './tournament-penalty-shootouts';
14
15
  export * from './tournament-player-rules';
15
16
  export * from './tournament-players';
16
17
  export * from './tournament-prize-rules';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
@@ -11,6 +11,7 @@ export * from "./tournament-match-schemas/index.js";
11
11
  export * from "./tournament-matches/index.js";
12
12
  export * from "./tournament-matches-availability/index.js";
13
13
  export * from "./tournament-payments/index.js";
14
+ export * from "./tournament-penalty-shootouts/index.js";
14
15
  export * from "./tournament-player-rules/index.js";
15
16
  export * from "./tournament-players/index.js";
16
17
  export * from "./tournament-prize-rules/index.js";
@@ -3,6 +3,7 @@ import { TournamentBracket } from '../tournament-brackets';
3
3
  import { TournamentFacility } from '../tournament-facilities';
4
4
  import { TournamentMatchCard } from '../tournament-match-cards';
5
5
  import { TournamentMatchGoal } from '../tournament-match-goals';
6
+ import { TournamentPenaltyShootout } from '../tournament-penalty-shootouts';
6
7
  import { TournamentTeam } from '../tournament-teams';
7
8
  import { Tournament } from '../tournaments';
8
9
  export declare class TournamentMatch implements ITournamentMatch {
@@ -27,5 +28,6 @@ export declare class TournamentMatch implements ITournamentMatch {
27
28
  cards: TournamentMatchCard[];
28
29
  firstLegBrackets: TournamentBracket[];
29
30
  secondLegBrackets: TournamentBracket[];
31
+ penaltyShootout: TournamentPenaltyShootout;
30
32
  }
31
33
  //# sourceMappingURL=tournament-match.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-match.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/tournament-match.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,oBAAoB,EACrB,M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AE,iBAAiB,EAAE,CAAC;IAGvC,eAAe,EAAE,yBAAyB,CAAC;CAC5C"}
@@ -20,6 +20,7 @@ import {
20
20
  JoinColumn,
21
21
  ManyToOne,
22
22
  OneToMany,
23
+ OneToOne,
23
24
  PrimaryGeneratedColumn,
24
25
  UpdateDateColumn
25
26
  } from "typeorm";
@@ -27,6 +28,7 @@ import { TournamentBracket } from "../tournament-brackets/index.js";
27
28
  import { TournamentFacility } from "../tournament-facilities/index.js";
28
29
  import { TournamentMatchCard } from "../tournament-match-cards/index.js";
29
30
  import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
31
+ import { TournamentPenaltyShootout } from "../tournament-penalty-shootouts/index.js";
30
32
  import { TournamentTeam } from "../tournament-teams/index.js";
31
33
  import { Tournament } from "../tournaments/index.js";
32
34
  let TournamentMatch = class {
@@ -167,6 +169,9 @@ __decorateClass([
167
169
  __decorateClass([
168
170
  OneToMany(() => TournamentBracket, (bracket) => bracket.secondLegMatch)
169
171
  ], TournamentMatch.prototype, "secondLegBrackets", 2);
172
+ __decorateClass([
173
+ OneToOne(() => TournamentPenaltyShootout, (ps) => ps.match, { cascade: true })
174
+ ], TournamentMatch.prototype, "penaltyShootout", 2);
170
175
  TournamentMatch = __decorateClass([
171
176
  Index("idx_tournament_phase_round", ["tournamentId", "phase", "roundIndicator"]),
172
177
  Index("idx_tournament_id", ["tournamentId"]),
@@ -0,0 +1,2 @@
1
+ export { TournamentPenaltyShootout } from './tournament-penalty-shootout.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-penalty-shootouts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TournamentPenaltyShootout } from "./tournament-penalty-shootout.entity.js";
2
+ export {
3
+ TournamentPenaltyShootout
4
+ };
@@ -0,0 +1,10 @@
1
+ import { TournamentMatch } from '../tournament-matches';
2
+ export declare class TournamentPenaltyShootout {
3
+ id: number;
4
+ matchId: number;
5
+ match: TournamentMatch;
6
+ winnerTeamId: number;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ }
10
+ //# sourceMappingURL=tournament-penalty-shootout.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-penalty-shootout.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-penalty-shootouts/tournament-penalty-shootout.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,qBACa,yBAAyB;IAEpC,EAAE,EAAE,MAAM,CAAC;IAIX,OAAO,EAAE,MAAM,CAAC;IAIhB,KAAK,EAAE,eAAe,CAAC;IAIvB,YAAY,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,41 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
11
+ import { Column, Entity, Index, JoinColumn, OneToOne, PrimaryGeneratedColumn } from "typeorm";
12
+ import { TournamentMatch } from "../tournament-matches/index.js";
13
+ let TournamentPenaltyShootout = class {
14
+ };
15
+ __decorateClass([
16
+ PrimaryGeneratedColumn()
17
+ ], TournamentPenaltyShootout.prototype, "id", 2);
18
+ __decorateClass([
19
+ Index({ unique: true }),
20
+ Column("int", { name: "match_id" })
21
+ ], TournamentPenaltyShootout.prototype, "matchId", 2);
22
+ __decorateClass([
23
+ OneToOne(() => TournamentMatch, (m) => m.penaltyShootout, { onDelete: "CASCADE" }),
24
+ JoinColumn({ name: "match_id" })
25
+ ], TournamentPenaltyShootout.prototype, "match", 2);
26
+ __decorateClass([
27
+ Index(),
28
+ Column("int", { name: "winner_team_id" })
29
+ ], TournamentPenaltyShootout.prototype, "winnerTeamId", 2);
30
+ __decorateClass([
31
+ Column({ name: "created_at", type: "timestamptz", default: () => "CURRENT_TIMESTAMP" })
32
+ ], TournamentPenaltyShootout.prototype, "createdAt", 2);
33
+ __decorateClass([
34
+ Column({ name: "updated_at", type: "timestamptz", default: () => "CURRENT_TIMESTAMP" })
35
+ ], TournamentPenaltyShootout.prototype, "updatedAt", 2);
36
+ TournamentPenaltyShootout = __decorateClass([
37
+ Entity("tournament_penalty_shootouts")
38
+ ], TournamentPenaltyShootout);
39
+ export {
40
+ TournamentPenaltyShootout
41
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.4.20",
3
+ "version": "1.4.21",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",