@natrave/shared-entities 1.2.61 → 1.2.63

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.
@@ -6,7 +6,7 @@ export declare class Player {
6
6
  userId: number;
7
7
  createdAt: Date;
8
8
  updatedAt: Date;
9
- preferredLeg: PreferredLeg;
9
+ preferredLeg: PreferredLeg | null;
10
10
  user: User;
11
11
  positions: PlayerPosition[];
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"player.entity.d.ts","sourceRoot":"","sources":["../../../src/players/players/player.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBACa,MAAM;IAIjB,EAAE,EAAE,MAAM,CAAC;IAQX,MAAM,EAAE,MAAM,CAAC;IAOf,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,YAAY,EAAE,YAAY,CAAC;IAM3B,IAAI,EAAE,IAAI,CAAC;IAUX,SAAS,EAAE,cAAc,EAAE,CAAC;CAC7B"}
1
+ {"version":3,"file":"player.entity.d.ts","sourceRoot":"","sources":["../../../src/players/players/player.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBACa,MAAM;IAIjB,EAAE,EAAE,MAAM,CAAC;IAQX,MAAM,EAAE,MAAM,CAAC;IAOf,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAMlC,IAAI,EAAE,IAAI,CAAC;IAUX,SAAS,EAAE,cAAc,EAAE,CAAC;CAC7B"}
@@ -10,6 +10,7 @@ export declare class TournamentTeam implements ITournamentTeam {
10
10
  tournamentId: number;
11
11
  name: string;
12
12
  teamLogoUrl?: string;
13
+ abbreviation: string;
13
14
  description?: string;
14
15
  inviteCode: string;
15
16
  groupId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-team.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-teams/tournament-team.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAc3F,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAa5C,qBAOa,cAAe,YAAW,eAAe;IAEpD,EAAE,EAAE,MAAM,CAAC;IAGX,YAAY,EAAE,MAAM,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAQb,WAAW,CAAC,EAAE,MAAM,CAAC;IAQrB,WAAW,CAAC,EAAE,MAAM,CAAC;IASrB,UAAU,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAQjB,MAAM,EAAE,oBAAoB,CAAC;IAO7B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAMhB,UAAU,EAAE,UAAU,CAAC;IAOvB,eAAe,CAAC,EAAE,eAAe,CAAC;IAGlC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAG5B,WAAW,EAAE,eAAe,EAAE,CAAC;IAG/B,WAAW,EAAE,eAAe,EAAE,CAAC;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B,EAAE,CAAC;IAG7B,kBAAkB,IAAI,IAAI;CAG3B"}
@@ -50,6 +50,15 @@ __decorateClass([
50
50
  comment: "URL do logo do time (opcional)."
51
51
  })
52
52
  ], TournamentTeam.prototype, "teamLogoUrl", 2);
53
+ __decorateClass([
54
+ Column({
55
+ name: "abbreviation",
56
+ type: "char",
57
+ length: 3,
58
+ nullable: false,
59
+ comment: "Abrevia\xE7\xE3o de 3 letras do time (ex: COR para Corinthians)."
60
+ })
61
+ ], TournamentTeam.prototype, "abbreviation", 2);
53
62
  __decorateClass([
54
63
  Column({
55
64
  type: "varchar",
@@ -123,10 +132,7 @@ __decorateClass([
123
132
  ], TournamentTeam.prototype, "generateInviteCode", 1);
124
133
  TournamentTeam = __decorateClass([
125
134
  Entity("tournament_teams"),
126
- Index("UQ_tournament_team_tournament_id_name_non_default", ["tournamentId", "name"], {
127
- unique: true,
128
- where: `name <> 'Time n\xE3o definido'`
129
- }),
135
+ Index("UQ_tournament_team_tournament_id_name_non_default", ["tournamentId", "name"]),
130
136
  Index("IDX_tournament_team_tournament_id", ["tournamentId"]),
131
137
  Index("IDX_tournament_team_invite_code", ["inviteCode"])
132
138
  ], TournamentTeam);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.2.61",
3
+ "version": "1.2.63",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -26,13 +26,13 @@
26
26
  "private": false,
27
27
  "devDependencies": {
28
28
  "@changesets/cli": "^2.29.4",
29
- "@eslint/js": "^9.27.0",
30
- "@typescript-eslint/eslint-plugin": "^8.33.0",
31
- "@typescript-eslint/parser": "^8.33.0",
29
+ "@eslint/js": "^9.28.0",
30
+ "@typescript-eslint/eslint-plugin": "^8.33.1",
31
+ "@typescript-eslint/parser": "^8.33.1",
32
32
  "esbuild": "^0.25.5",
33
- "eslint": "^9.27.0",
33
+ "eslint": "^9.28.0",
34
34
  "eslint-config-prettier": "^10.1.5",
35
- "eslint-import-resolver-typescript": "^4.4.1",
35
+ "eslint-import-resolver-typescript": "^4.4.3",
36
36
  "eslint-plugin-import": "^2.31.0",
37
37
  "eslint-plugin-prettier": "^5.4.1",
38
38
  "eslint-plugin-unused-imports": "^4.1.4",
@@ -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.65",
49
- "@natrave/tournaments-service-types": "^1.1.95",
49
+ "@natrave/tournaments-service-types": "^1.1.102",
50
50
  "reflect-metadata": "^0.2.2",
51
51
  "typeorm": "^0.3.24"
52
52
  },