@natrave/shared-entities 7.15.0 → 7.17.0

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.
@@ -1,12 +1,12 @@
1
- import { CardType, type ITournamentMatchCard, MatchPeriod } from '@natrave/tournaments-service-types';
1
+ import { CardType, MatchPeriod } from '@natrave/tournaments-service-types';
2
2
  import { TournamentMatch } from '../tournament-matches';
3
3
  import { TournamentPlayer } from '../tournament-players';
4
4
  import { TournamentTeam } from '../tournament-teams';
5
- export declare class TournamentMatchCard implements ITournamentMatchCard {
5
+ export declare class TournamentMatchCard {
6
6
  id: number;
7
7
  minute?: number;
8
8
  period?: MatchPeriod;
9
- playerId: number;
9
+ playerId: number | null;
10
10
  teamId: number;
11
11
  matchId: number;
12
12
  cardType: CardType;
@@ -15,6 +15,6 @@ export declare class TournamentMatchCard implements ITournamentMatchCard {
15
15
  updatedAt: Date;
16
16
  team: TournamentTeam;
17
17
  match: TournamentMatch;
18
- player: TournamentPlayer;
18
+ player?: TournamentPlayer | null;
19
19
  }
20
20
  //# sourceMappingURL=tournament-match-card.entity.d.ts.map
@@ -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,KAAK,oBAAoB,EACzB,WAAW,EACZ,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,qBAca,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;IAQhB,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"}
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,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAa3E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAcrD,qBAiBa,mBAAmB;IAI9B,EAAE,EAAE,MAAM,CAAC;IAOX,MAAM,CAAC,EAAE,MAAM,CAAC;IAQhB,MAAM,CAAC,EAAE,WAAW,CAAC;IASrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAOxB,MAAM,EAAE,MAAM,CAAC;IAOf,OAAO,EAAE,MAAM,CAAC;IAQhB,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,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAClC"}
@@ -8,10 +8,7 @@ var __decorateClass = (decorators, target, key, kind) => {
8
8
  if (kind && result) __defProp(target, key, result);
9
9
  return result;
10
10
  };
11
- import {
12
- CardType,
13
- MatchPeriod
14
- } from "@natrave/tournaments-service-types";
11
+ import { CardType, MatchPeriod } from "@natrave/tournaments-service-types";
15
12
  import {
16
13
  Column,
17
14
  CreateDateColumn,
@@ -52,7 +49,8 @@ __decorateClass([
52
49
  Column({
53
50
  name: "player_id",
54
51
  type: "int",
55
- comment: "Identificador do jogador que recebeu o cart\xE3o."
52
+ nullable: true,
53
+ comment: "Identificador do jogador que recebeu o cart\xE3o; nulo quando o autor n\xE3o foi identificado."
56
54
  })
57
55
  ], TournamentMatchCard.prototype, "playerId", 2);
58
56
  __decorateClass([
@@ -1,22 +1,22 @@
1
- import { ITournamentMatchGoal, MatchPeriod } from '@natrave/tournaments-service-types';
1
+ import { MatchPeriod } from '@natrave/tournaments-service-types';
2
2
  import { TournamentMatch } from '../tournament-matches';
3
3
  import { TournamentPlayer } from '../tournament-players';
4
4
  import { TournamentTeam } from '../tournament-teams';
5
- export declare class TournamentMatchGoal implements ITournamentMatchGoal {
5
+ export declare class TournamentMatchGoal {
6
6
  id: number;
7
7
  teamId: number;
8
8
  matchId: number;
9
9
  minute?: number;
10
10
  period?: MatchPeriod;
11
- scorerId?: number;
12
- assistId?: number;
11
+ scorerId: number | null;
12
+ assistId: number | null;
13
13
  ownGoal: boolean;
14
14
  deletedAt: Date | null;
15
15
  createdAt: Date;
16
16
  updatedAt: Date;
17
17
  team?: TournamentTeam;
18
18
  match?: TournamentMatch;
19
- scorer?: TournamentPlayer;
20
- assist?: TournamentPlayer;
19
+ scorer?: TournamentPlayer | null;
20
+ assist?: TournamentPlayer | null;
21
21
  }
22
22
  //# sourceMappingURL=tournament-match-goal.entity.d.ts.map
@@ -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;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,qBAaa,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"}
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,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAajE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOrD,qBAiBa,mBAAmB;IAI9B,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,EAAE,MAAM,GAAG,IAAI,CAAC;IASxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAQxB,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,GAAG,IAAI,CAAC;IAIjC,MAAM,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAClC"}
@@ -64,7 +64,7 @@ __decorateClass([
64
64
  name: "scorer_id",
65
65
  type: "int",
66
66
  nullable: true,
67
- comment: "Identificador do jogador que marcou o gol (opcional)."
67
+ comment: "Identificador do jogador que marcou o gol; nulo quando o autor n\xE3o foi identificado."
68
68
  })
69
69
  ], TournamentMatchGoal.prototype, "scorerId", 2);
70
70
  __decorateClass([
@@ -72,7 +72,7 @@ __decorateClass([
72
72
  name: "assist_id",
73
73
  type: "int",
74
74
  nullable: true,
75
- comment: "Identificador do jogador que fez a assist\xEAncia (opcional)."
75
+ comment: "Identificador do jogador que fez a assist\xEAncia; nulo quando o autor n\xE3o foi identificado."
76
76
  })
77
77
  ], TournamentMatchGoal.prototype, "assistId", 2);
78
78
  __decorateClass([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "7.15.0",
3
+ "version": "7.17.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",