@natrave/shared-entities 7.15.0 → 7.16.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([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "7.15.0",
3
+ "version": "7.16.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",