@natrave/shared-entities 1.4.17 → 1.4.19

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.
@@ -10,6 +10,7 @@ export declare class TournamentMatchGoal implements ITournamentMatchGoal {
10
10
  period?: MatchPeriod;
11
11
  scorerId?: number;
12
12
  assistId?: number;
13
+ ownGoal: boolean;
13
14
  createdAt: Date;
14
15
  updatedAt: Date;
15
16
  team?: TournamentTeam;
@@ -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;AAYvF,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;IAOlB,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"}
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;AAYvF,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;IAOjB,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"}
@@ -74,6 +74,14 @@ __decorateClass([
74
74
  comment: "Identificador do jogador que fez a assist\xEAncia (opcional)."
75
75
  })
76
76
  ], TournamentMatchGoal.prototype, "assistId", 2);
77
+ __decorateClass([
78
+ Column({
79
+ name: "own_goal",
80
+ type: "boolean",
81
+ default: false,
82
+ comment: "Indica se o gol foi contra (a favor do advers\xE1rio)."
83
+ })
84
+ ], TournamentMatchGoal.prototype, "ownGoal", 2);
77
85
  __decorateClass([
78
86
  CreateDateColumn({
79
87
  name: "created_at",
@@ -5,7 +5,7 @@ import { TournamentMatchGoal } from '../tournament-match-goals';
5
5
  import { TournamentTeam } from '../tournament-teams';
6
6
  export declare class TournamentPlayer implements ITournamentPlayer {
7
7
  id: number;
8
- playerId: number;
8
+ playerTeamId: number;
9
9
  teamId: number;
10
10
  isOwner: boolean;
11
11
  createdAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-player.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-players/tournament-player.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAcvE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,qBAIa,gBAAiB,YAAW,iBAAiB;IAExD,EAAE,EAAE,MAAM,CAAC;IAIX,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IASf,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;IAOvB,IAAI,EAAE,cAAc,CAAC;IAGrB,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAG/B,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B"}
1
+ {"version":3,"file":"tournament-player.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-players/tournament-player.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAcvE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,qBAIa,gBAAiB,YAAW,iBAAiB;IAExD,EAAE,EAAE,MAAM,CAAC;IAIX,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;IASf,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;IAOvB,IAAI,EAAE,cAAc,CAAC;IAGrB,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAG/B,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B"}
@@ -30,8 +30,8 @@ __decorateClass([
30
30
  PrimaryGeneratedColumn({ comment: "ID \xFAnico." })
31
31
  ], TournamentPlayer.prototype, "id", 2);
32
32
  __decorateClass([
33
- Column({ name: "player_id", type: "int", comment: "FK para players.id" })
34
- ], TournamentPlayer.prototype, "playerId", 2);
33
+ Column({ name: "player_team_id", type: "int", comment: "FK para player_teams.id" })
34
+ ], TournamentPlayer.prototype, "playerTeamId", 2);
35
35
  __decorateClass([
36
36
  Column({ name: "team_id", type: "int", comment: "FK para tournament_teams.id" })
37
37
  ], TournamentPlayer.prototype, "teamId", 2);
@@ -74,8 +74,8 @@ __decorateClass([
74
74
  ], TournamentPlayer.prototype, "cards", 2);
75
75
  TournamentPlayer = __decorateClass([
76
76
  Entity("tournament_players"),
77
- Unique(["playerId", "teamId"]),
78
- Index("IDX_player_team_id", ["playerId"]),
77
+ Unique(["playerTeamId", "teamId"]),
78
+ Index("IDX_player_team_id", ["playerTeamId"]),
79
79
  Index("IDX_team_id", ["teamId"])
80
80
  ], TournamentPlayer);
81
81
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.4.17",
3
+ "version": "1.4.19",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -26,15 +26,15 @@
26
26
  "private": false,
27
27
  "devDependencies": {
28
28
  "@changesets/cli": "^2.29.5",
29
- "@eslint/js": "^9.30.1",
30
- "@typescript-eslint/eslint-plugin": "^8.36.0",
31
- "@typescript-eslint/parser": "^8.36.0",
32
- "esbuild": "^0.25.6",
33
- "eslint": "^9.30.1",
34
- "eslint-config-prettier": "^10.1.5",
29
+ "@eslint/js": "^9.31.0",
30
+ "@typescript-eslint/eslint-plugin": "^8.38.0",
31
+ "@typescript-eslint/parser": "^8.38.0",
32
+ "esbuild": "^0.25.8",
33
+ "eslint": "^9.31.0",
34
+ "eslint-config-prettier": "^10.1.8",
35
35
  "eslint-import-resolver-typescript": "^4.4.4",
36
36
  "eslint-plugin-import": "^2.32.0",
37
- "eslint-plugin-prettier": "^5.5.1",
37
+ "eslint-plugin-prettier": "^5.5.3",
38
38
  "eslint-plugin-unused-imports": "^4.1.4",
39
39
  "glob": "^11.0.3",
40
40
  "husky": "^9.1.7",
@@ -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.2.37",
49
+ "@natrave/tournaments-service-types": "^1.3.8",
50
50
  "reflect-metadata": "^0.2.2",
51
51
  "typeorm": "^0.3.25"
52
52
  },