@natrave/shared-entities 8.3.0 → 8.4.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,11 +1,12 @@
1
- import { ITournamentMatchRule } from '@natrave/tournaments-service-types';
2
1
  import { Tournament } from '../tournaments';
3
- export declare class TournamentMatchRule implements ITournamentMatchRule {
2
+ export declare class TournamentMatchRule {
4
3
  id: number;
5
4
  tournamentId: number;
6
5
  playersPerTeam: number | null;
7
6
  halfDuration: number | null;
8
7
  halftimeBreak: number | null;
8
+ substitutionsUnlimited: boolean | null;
9
+ maxSubstitutionsPerMatch: number | null;
9
10
  createdAt: Date;
10
11
  updatedAt: Date;
11
12
  tournament: Tournament;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-match-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-rules/tournament-match-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAY1E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAEa,mBAAoB,YAAW,oBAAoB;IAI9D,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAQrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAO7B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"tournament-match-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-rules/tournament-match-rule.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAEa,mBAAmB;IAI9B,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAQrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAS7B,sBAAsB,EAAE,OAAO,GAAG,IAAI,CAAC;IASvC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOxC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -58,6 +58,22 @@ __decorateClass([
58
58
  comment: "Dura\xE7\xE3o do intervalo entre os tempos em minutos."
59
59
  })
60
60
  ], TournamentMatchRule.prototype, "halftimeBreak", 2);
61
+ __decorateClass([
62
+ Column({
63
+ type: "boolean",
64
+ name: "substitutions_unlimited",
65
+ nullable: true,
66
+ comment: "Se o organizador declarou substitui\xE7\xF5es ilimitadas. Nulo = nunca foi perguntado (o comportamento tamb\xE9m \xE9 ilimitado, mas a escolha n\xE3o foi feita)."
67
+ })
68
+ ], TournamentMatchRule.prototype, "substitutionsUnlimited", 2);
69
+ __decorateClass([
70
+ Column({
71
+ type: "int",
72
+ name: "max_substitutions_per_match",
73
+ nullable: true,
74
+ comment: "M\xE1ximo de substitui\xE7\xF5es por equipe em cada partida. Nulo quando n\xE3o h\xE1 teto (ilimitado, declarado ou n\xE3o)."
75
+ })
76
+ ], TournamentMatchRule.prototype, "maxSubstitutionsPerMatch", 2);
61
77
  __decorateClass([
62
78
  CreateDateColumn({
63
79
  name: "created_at",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "8.3.0",
3
+ "version": "8.4.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",