@natrave/shared-entities 1.2.23 → 1.2.25

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.
@@ -4,10 +4,11 @@ export declare class TournamentFormatConfig implements ITournamentFormatConfig {
4
4
  id: number;
5
5
  tournamentId: number;
6
6
  format: TournamentFormat;
7
- numberOfGroups: number | null;
8
- initialPhaseMatchMode: MatchLegMode | null;
9
- knockoutStartPhase: KnockoutPhase | null;
10
- knockoutMatchMode: MatchLegMode | null;
7
+ numberOfGroups?: number | null;
8
+ initialPhaseMatchMode?: MatchLegMode | null;
9
+ knockoutStartPhase?: KnockoutPhase | null;
10
+ knockoutMatchMode?: MatchLegMode | null;
11
+ teamCount: number;
11
12
  createdAt: Date;
12
13
  updatedAt: Date;
13
14
  tournament: Tournament;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-format-config.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/tournament-format-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,KAAK,uBAAuB,EAC7B,MAAM,oCAAoC,CAAC;AAW5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAc5C,qBACa,sBAAuB,YAAW,uBAAuB;IAIpE,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAOrB,MAAM,EAAE,gBAAgB,CAAC;IAQzB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAU9B,qBAAqB,EAAE,YAAY,GAAG,IAAI,CAAC;IAU3C,kBAAkB,EAAE,aAAa,GAAG,IAAI,CAAC;IAUzC,iBAAiB,EAAE,YAAY,GAAG,IAAI,CAAC;IAOvC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"tournament-format-config.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/tournament-format-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,KAAK,uBAAuB,EAC7B,MAAM,oCAAoC,CAAC;AAW5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAc5C,qBACa,sBAAuB,YAAW,uBAAuB;IAIpE,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAOrB,MAAM,EAAE,gBAAgB,CAAC;IAQzB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAU/B,qBAAqB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAU5C,kBAAkB,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAU1C,iBAAiB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAGxC,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -83,6 +83,9 @@ __decorateClass([
83
83
  comment: "Modo de disputa da fase knockout (ida \xFAnica ou ida e volta), se aplic\xE1vel."
84
84
  })
85
85
  ], TournamentFormatConfig.prototype, "knockoutMatchMode", 2);
86
+ __decorateClass([
87
+ Column({ name: "team_count", type: "int", comment: "N\xFAmero esperado de times no torneio." })
88
+ ], TournamentFormatConfig.prototype, "teamCount", 2);
86
89
  __decorateClass([
87
90
  CreateDateColumn({
88
91
  name: "created_at",
@@ -3,13 +3,13 @@ import { Tournament } from '../tournaments';
3
3
  export declare class TournamentRule implements ITournamentRule {
4
4
  id: number;
5
5
  tournamentId: number;
6
- maxPlayerPerTeam: number;
7
- minPlayerPerTeam: number;
8
- minAge: number;
9
- maxAge?: number;
6
+ maxPlayerPerTeam?: number | null;
7
+ minPlayerPerTeam?: number | null;
8
+ minAge?: number | null;
9
+ maxAge?: number | null;
10
10
  expectedTeams: number;
11
- notes?: string;
12
- regulationPdfUrl?: string;
11
+ notes?: string | null;
12
+ regulationPdfUrl?: string | null;
13
13
  createdAt: Date;
14
14
  updatedAt: Date;
15
15
  tournament: Tournament;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-rules/tournament-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAYrE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAW5C,qBAIa,cAAe,YAAW,eAAe;IAEpD,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAOrB,gBAAgB,EAAE,MAAM,CAAC;IAOzB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,MAAM,EAAE,MAAM,CAAC;IAQf,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,aAAa,EAAE,MAAM,CAAC;IAQtB,KAAK,CAAC,EAAE,MAAM,CAAC;IASf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAO1B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAKhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"tournament-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-rules/tournament-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAYrE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAW5C,qBAIa,cAAe,YAAW,eAAe;IAEpD,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAQrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,aAAa,EAAE,MAAM,CAAC;IAQtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAStB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOjC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAKhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -36,6 +36,7 @@ __decorateClass([
36
36
  Column({
37
37
  name: "max_player_per_team",
38
38
  type: "int",
39
+ nullable: true,
39
40
  comment: "N\xFAmero m\xE1ximo de jogadores por time."
40
41
  })
41
42
  ], TournamentRule.prototype, "maxPlayerPerTeam", 2);
@@ -43,11 +44,17 @@ __decorateClass([
43
44
  Column({
44
45
  name: "min_player_per_team",
45
46
  type: "int",
47
+ nullable: true,
46
48
  comment: "N\xFAmero m\xEDnimo de jogadores por time."
47
49
  })
48
50
  ], TournamentRule.prototype, "minPlayerPerTeam", 2);
49
51
  __decorateClass([
50
- Column({ name: "min_age", type: "int", comment: "Idade m\xEDnima permitida para participa\xE7\xE3o." })
52
+ Column({
53
+ name: "min_age",
54
+ type: "int",
55
+ nullable: true,
56
+ comment: "Idade m\xEDnima permitida para participa\xE7\xE3o."
57
+ })
51
58
  ], TournamentRule.prototype, "minAge", 2);
52
59
  __decorateClass([
53
60
  Column({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -26,11 +26,11 @@
26
26
  "private": false,
27
27
  "devDependencies": {
28
28
  "@changesets/cli": "^2.28.1",
29
- "@eslint/js": "^9.23.0",
29
+ "@eslint/js": "^9.24.0",
30
30
  "@typescript-eslint/eslint-plugin": "^8.29.0",
31
31
  "@typescript-eslint/parser": "^8.29.0",
32
32
  "esbuild": "^0.25.2",
33
- "eslint": "^9.23.0",
33
+ "eslint": "^9.24.0",
34
34
  "eslint-config-prettier": "^10.1.1",
35
35
  "eslint-import-resolver-typescript": "^4.3.1",
36
36
  "eslint-plugin-import": "^2.31.0",
@@ -43,7 +43,7 @@
43
43
  "ts-node": "^10.9.2"
44
44
  },
45
45
  "dependencies": {
46
- "@natrave/tournaments-service-types": "^1.1.28",
46
+ "@natrave/tournaments-service-types": "^1.1.34",
47
47
  "reflect-metadata": "^0.2.2",
48
48
  "typeorm": "^0.3.22"
49
49
  },