@natrave/shared-entities 1.4.19 → 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.
- package/dist/tournaments/index.d.ts +1 -0
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +1 -0
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts +1 -0
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js +9 -0
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts +1 -0
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js +9 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +2 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-matches/tournament-match.entity.js +5 -0
- package/dist/tournaments/tournament-penalty-shootouts/index.d.ts +2 -0
- package/dist/tournaments/tournament-penalty-shootouts/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-penalty-shootouts/index.js +4 -0
- package/dist/tournaments/tournament-penalty-shootouts/tournament-penalty-shootout.entity.d.ts +10 -0
- package/dist/tournaments/tournament-penalty-shootouts/tournament-penalty-shootout.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-penalty-shootouts/tournament-penalty-shootout.entity.js +41 -0
- package/package.json +2 -2
|
@@ -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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-match-card.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-cards/tournament-match-card.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,oBAAoB,EAC1B,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament-match-card.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-cards/tournament-match-card.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,oBAAoB,EAC1B,MAAM,oCAAoC,CAAC;AAa5C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAarD,qBAIa,mBAAoB,YAAW,oBAAoB;IAI9D,EAAE,EAAE,MAAM,CAAC;IAOX,MAAM,CAAC,EAAE,MAAM,CAAC;IAQhB,MAAM,CAAC,EAAE,WAAW,CAAC;IAOrB,QAAQ,EAAE,MAAM,CAAC;IAOjB,MAAM,EAAE,MAAM,CAAC;IAOf,OAAO,EAAE,MAAM,CAAC;IAOhB,QAAQ,EAAE,QAAQ,CAAC;IAQnB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAOvB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,IAAI,EAAE,cAAc,CAAC;IAOrB,KAAK,EAAE,eAAe,CAAC;IAOvB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
Column,
|
|
17
17
|
CreateDateColumn,
|
|
18
|
+
DeleteDateColumn,
|
|
18
19
|
Entity,
|
|
19
20
|
Index,
|
|
20
21
|
JoinColumn,
|
|
@@ -75,6 +76,14 @@ __decorateClass([
|
|
|
75
76
|
comment: "Tipo de cart\xE3o emitido (ex: amarelo, vermelho)."
|
|
76
77
|
})
|
|
77
78
|
], TournamentMatchCard.prototype, "cardType", 2);
|
|
79
|
+
__decorateClass([
|
|
80
|
+
DeleteDateColumn({
|
|
81
|
+
name: "deleted_at",
|
|
82
|
+
type: "timestamptz",
|
|
83
|
+
nullable: true,
|
|
84
|
+
comment: "Data e hora em que o cart\xE3o foi deletado (soft delete), se aplic\xE1vel."
|
|
85
|
+
})
|
|
86
|
+
], TournamentMatchCard.prototype, "deletedAt", 2);
|
|
78
87
|
__decorateClass([
|
|
79
88
|
CreateDateColumn({
|
|
80
89
|
name: "created_at",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-match-goal.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-goals/tournament-match-goal.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament-match-goal.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-goals/tournament-match-goal.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAavF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOrD,qBAGa,mBAAoB,YAAW,oBAAoB;IAI9D,EAAE,EAAE,MAAM,CAAC;IAOX,MAAM,EAAE,MAAM,CAAC;IAOf,OAAO,EAAE,MAAM,CAAC;IAOhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAQhB,MAAM,CAAC,EAAE,WAAW,CAAC;IAQrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAQlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAQlB,OAAO,EAAE,OAAO,CAAC;IAQjB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAOvB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAMhB,IAAI,CAAC,EAAE,cAAc,CAAC;IAItB,KAAK,CAAC,EAAE,eAAe,CAAC;IAIxB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAI1B,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
|
|
@@ -12,6 +12,7 @@ import { MatchPeriod } from "@natrave/tournaments-service-types";
|
|
|
12
12
|
import {
|
|
13
13
|
Column,
|
|
14
14
|
CreateDateColumn,
|
|
15
|
+
DeleteDateColumn,
|
|
15
16
|
Entity,
|
|
16
17
|
Index,
|
|
17
18
|
JoinColumn,
|
|
@@ -82,6 +83,14 @@ __decorateClass([
|
|
|
82
83
|
comment: "Indica se o gol foi contra (a favor do advers\xE1rio)."
|
|
83
84
|
})
|
|
84
85
|
], TournamentMatchGoal.prototype, "ownGoal", 2);
|
|
86
|
+
__decorateClass([
|
|
87
|
+
DeleteDateColumn({
|
|
88
|
+
name: "deleted_at",
|
|
89
|
+
type: "timestamptz",
|
|
90
|
+
nullable: true,
|
|
91
|
+
comment: "Data e hora em que o gol foi deletado (soft delete), se aplic\xE1vel."
|
|
92
|
+
})
|
|
93
|
+
], TournamentMatchGoal.prototype, "deletedAt", 2);
|
|
85
94
|
__decorateClass([
|
|
86
95
|
CreateDateColumn({
|
|
87
96
|
name: "created_at",
|
|
@@ -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,MAAM,oCAAoC,CAAC;
|
|
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,MAAM,oCAAoC,CAAC;AAc5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAKa,eAAgB,YAAW,gBAAgB;IAItD,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAQrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,UAAU,CAAC,EAAE,MAAM,CAAC;IASpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,GAAG,EAAE,MAAM,CAAC;IASZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpB,MAAM,EAAE,WAAW,CAAC;IAOpB,KAAK,EAAE,oBAAoB,CAAC;IAQ5B,cAAc,EAAE,MAAM,CAAC;IAOvB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAM9B,UAAU,EAAE,UAAU,CAAC;IAMvB,QAAQ,EAAE,cAAc,CAAC;IAMzB,QAAQ,EAAE,cAAc,CAAC;IAGzB,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IAGtC,iBAAiB,EAAE,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 @@
|
|
|
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,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
|
package/dist/tournaments/tournament-penalty-shootouts/tournament-penalty-shootout.entity.d.ts.map
ADDED
|
@@ -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.
|
|
3
|
+
"version": "1.4.21",
|
|
4
4
|
"description": "Entidades compartilhadass da NaTrave",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@natrave/auth-service-types": "^1.1.63",
|
|
47
47
|
"@natrave/facility-service-types": "^0.0.9",
|
|
48
48
|
"@natrave/notification-service-types": "^1.1.71",
|
|
49
|
-
"@natrave/tournaments-service-types": "^1.3.
|
|
49
|
+
"@natrave/tournaments-service-types": "^1.3.11",
|
|
50
50
|
"reflect-metadata": "^0.2.2",
|
|
51
51
|
"typeorm": "^0.3.25"
|
|
52
52
|
},
|