@natrave/shared-entities 1.3.7 → 1.3.8
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.
- package/dist/app-auth/users/user.entity.d.ts +0 -2
- package/dist/app-auth/users/user.entity.d.ts.map +1 -1
- package/dist/app-auth/users/user.entity.js +0 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/players/players/player.entity.d.ts +2 -0
- package/dist/players/players/player.entity.d.ts.map +1 -1
- package/dist/players/players/player.entity.js +10 -21
- package/dist/teams/index.d.ts +2 -0
- package/dist/teams/index.d.ts.map +1 -0
- package/dist/teams/index.js +1 -0
- package/dist/teams/teams/index.d.ts +2 -0
- package/dist/teams/teams/index.d.ts.map +1 -0
- package/dist/teams/teams/index.js +4 -0
- package/dist/teams/teams/team.entity.d.ts +16 -0
- package/dist/teams/teams/team.entity.d.ts.map +1 -0
- package/dist/teams/teams/team.entity.js +63 -0
- package/dist/tournaments/tournament-contacts/tournament-contact.entity.d.ts +2 -0
- package/dist/tournaments/tournament-contacts/tournament-contact.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-contacts/tournament-contact.entity.js +18 -0
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts +3 -3
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-players/tournament-player.entity.js +18 -47
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts +8 -11
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-teams/tournament-team.entity.js +27 -73
- package/package.json +12 -12
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Player } from '../../players';
|
|
2
|
-
import { TournamentPlayer } from '../../tournaments';
|
|
3
2
|
import { RefreshToken } from '../refresh-tokens';
|
|
4
3
|
import { UserAuthProvider } from '../user-auth-providers';
|
|
5
4
|
import { Gender } from './enums/gender.enum';
|
|
@@ -20,7 +19,6 @@ export declare class User {
|
|
|
20
19
|
imageUrl: string | null;
|
|
21
20
|
refreshTokens: RefreshToken[];
|
|
22
21
|
userAuthProviders: UserAuthProvider[];
|
|
23
|
-
tournamentPlayers: TournamentPlayer[];
|
|
24
22
|
player: Player;
|
|
25
23
|
prepareData(): void;
|
|
26
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAa7C,qBAIa,IAAI;IAIf,EAAE,EAAE,MAAM,CAAC;IAUX,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3B,KAAK,EAAE,MAAM,CAAC;IAQd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAQxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAStB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAUnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IASrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,aAAa,EAAE,YAAY,EAAE,CAAC;IAK9B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAGtC,MAAM,EAAE,MAAM,CAAC;IAMf,WAAW,IAAI,IAAI;CAGpB"}
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
UpdateDateColumn
|
|
22
22
|
} from "typeorm";
|
|
23
23
|
import { Player } from "../../players/index.js";
|
|
24
|
-
import { TournamentPlayer } from "../../tournaments/index.js";
|
|
25
24
|
import { RefreshToken } from "../refresh-tokens/index.js";
|
|
26
25
|
import { UserAuthProvider } from "../user-auth-providers/index.js";
|
|
27
26
|
import { Gender } from "./enums/gender.enum.js";
|
|
@@ -153,11 +152,6 @@ __decorateClass([
|
|
|
153
152
|
cascade: true
|
|
154
153
|
})
|
|
155
154
|
], User.prototype, "userAuthProviders", 2);
|
|
156
|
-
__decorateClass([
|
|
157
|
-
OneToMany(() => TournamentPlayer, (tournamentPlayer) => tournamentPlayer.user, {
|
|
158
|
-
cascade: true
|
|
159
|
-
})
|
|
160
|
-
], User.prototype, "tournamentPlayers", 2);
|
|
161
155
|
__decorateClass([
|
|
162
156
|
OneToOne(() => Player, (player) => player.user, { onDelete: "CASCADE" })
|
|
163
157
|
], User.prototype, "player", 2);
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAE3B,cAAc,cAAc,CAAC;AAE7B,cAAc,WAAW,CAAC;AAE1B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAE3B,cAAc,cAAc,CAAC;AAE7B,cAAc,WAAW,CAAC;AAE1B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,WAAW,CAAC;AAE1B,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { User } from '../../app-auth';
|
|
2
|
+
import { TournamentPlayer } from '../../tournaments';
|
|
2
3
|
import { PlayerPosition } from '../player-position';
|
|
3
4
|
import { PreferredLeg } from './enums/preferred-leg.enum';
|
|
4
5
|
export declare class Player {
|
|
@@ -9,5 +10,6 @@ export declare class Player {
|
|
|
9
10
|
preferredLeg: PreferredLeg | null;
|
|
10
11
|
user: User;
|
|
11
12
|
positions: PlayerPosition[];
|
|
13
|
+
tournamentPlayers: TournamentPlayer[];
|
|
12
14
|
}
|
|
13
15
|
//# sourceMappingURL=player.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player.entity.d.ts","sourceRoot":"","sources":["../../../src/players/players/player.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"player.entity.d.ts","sourceRoot":"","sources":["../../../src/players/players/player.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBACa,MAAM;IAEjB,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAQhB,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAMlC,IAAI,EAAE,IAAI,CAAC;IAUX,SAAS,EAAE,cAAc,EAAE,CAAC;IAG5B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;CACvC"}
|
|
@@ -15,48 +15,35 @@ import {
|
|
|
15
15
|
JoinColumn,
|
|
16
16
|
JoinTable,
|
|
17
17
|
ManyToMany,
|
|
18
|
+
OneToMany,
|
|
18
19
|
OneToOne,
|
|
19
20
|
PrimaryGeneratedColumn,
|
|
20
21
|
UpdateDateColumn
|
|
21
22
|
} from "typeorm";
|
|
22
23
|
import { User } from "../../app-auth/index.js";
|
|
24
|
+
import { TournamentPlayer } from "../../tournaments/index.js";
|
|
23
25
|
import { PlayerPosition } from "../player-position/index.js";
|
|
24
26
|
import { PreferredLeg } from "./enums/preferred-leg.enum.js";
|
|
25
27
|
let Player = class {
|
|
26
28
|
};
|
|
27
29
|
__decorateClass([
|
|
28
|
-
PrimaryGeneratedColumn(
|
|
29
|
-
comment: "Identificador \xFAnico da posi\xE7\xE3o."
|
|
30
|
-
})
|
|
30
|
+
PrimaryGeneratedColumn()
|
|
31
31
|
], Player.prototype, "id", 2);
|
|
32
32
|
__decorateClass([
|
|
33
|
-
Column({
|
|
34
|
-
name: "user_id",
|
|
35
|
-
type: "int",
|
|
36
|
-
unique: true,
|
|
37
|
-
comment: "Identificador do usu\xE1rio associado a este jogador."
|
|
38
|
-
})
|
|
33
|
+
Column({ name: "user_id", type: "int", unique: true })
|
|
39
34
|
], Player.prototype, "userId", 2);
|
|
40
35
|
__decorateClass([
|
|
41
|
-
CreateDateColumn({
|
|
42
|
-
name: "created_at",
|
|
43
|
-
type: "timestamptz",
|
|
44
|
-
comment: "Data e hora em que a posi\xE7\xE3o foi criado."
|
|
45
|
-
})
|
|
36
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
46
37
|
], Player.prototype, "createdAt", 2);
|
|
47
38
|
__decorateClass([
|
|
48
|
-
UpdateDateColumn({
|
|
49
|
-
name: "updated_at",
|
|
50
|
-
type: "timestamptz",
|
|
51
|
-
comment: "Data e hora da \xFAltima atualiza\xE7\xE3o dos dados da posi\xE7\xE3o."
|
|
52
|
-
})
|
|
39
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
53
40
|
], Player.prototype, "updatedAt", 2);
|
|
54
41
|
__decorateClass([
|
|
55
42
|
Column({
|
|
56
43
|
type: "enum",
|
|
57
44
|
nullable: true,
|
|
58
45
|
enum: Object.values(PreferredLeg),
|
|
59
|
-
comment: "Perna preferencial do jogador
|
|
46
|
+
comment: "Perna preferencial do jogador."
|
|
60
47
|
})
|
|
61
48
|
], Player.prototype, "preferredLeg", 2);
|
|
62
49
|
__decorateClass([
|
|
@@ -69,11 +56,13 @@ __decorateClass([
|
|
|
69
56
|
}),
|
|
70
57
|
JoinTable({
|
|
71
58
|
name: "player_player_positions",
|
|
72
|
-
// nome da tabela de junção (join table)
|
|
73
59
|
joinColumn: { name: "player_id", referencedColumnName: "id" },
|
|
74
60
|
inverseJoinColumn: { name: "position_id", referencedColumnName: "id" }
|
|
75
61
|
})
|
|
76
62
|
], Player.prototype, "positions", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
OneToMany(() => TournamentPlayer, (tp) => tp.player)
|
|
65
|
+
], Player.prototype, "tournamentPlayers", 2);
|
|
77
66
|
Player = __decorateClass([
|
|
78
67
|
Entity("players")
|
|
79
68
|
], Player);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/teams/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./teams/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/teams/teams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BrazilianState } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { TournamentTeam } from '../../tournaments';
|
|
3
|
+
export declare class Team {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
abbreviation: string;
|
|
7
|
+
city: string;
|
|
8
|
+
state: BrazilianState;
|
|
9
|
+
neighborhood?: string;
|
|
10
|
+
instagramAccount?: string;
|
|
11
|
+
teamLogoUrl?: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
tournamentTeams: TournamentTeam[];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=team.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.entity.d.ts","sourceRoot":"","sources":["../../../src/teams/teams/team.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAWpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAEa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,YAAY,EAAE,MAAM,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,cAAc,CAAC;IAGtB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,eAAe,EAAE,cAAc,EAAE,CAAC;CACnC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
import { BrazilianState } from "@natrave/tournaments-service-types";
|
|
12
|
+
import {
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
Index,
|
|
17
|
+
OneToMany,
|
|
18
|
+
PrimaryGeneratedColumn,
|
|
19
|
+
UpdateDateColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { TournamentTeam } from "../../tournaments/index.js";
|
|
22
|
+
let Team = class {
|
|
23
|
+
};
|
|
24
|
+
__decorateClass([
|
|
25
|
+
PrimaryGeneratedColumn()
|
|
26
|
+
], Team.prototype, "id", 2);
|
|
27
|
+
__decorateClass([
|
|
28
|
+
Column({ length: 100 })
|
|
29
|
+
], Team.prototype, "name", 2);
|
|
30
|
+
__decorateClass([
|
|
31
|
+
Column({ length: 3, comment: "Sigla (n\xE3o-\xFAnica)." })
|
|
32
|
+
], Team.prototype, "abbreviation", 2);
|
|
33
|
+
__decorateClass([
|
|
34
|
+
Column({ length: 100 })
|
|
35
|
+
], Team.prototype, "city", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({ type: "enum", enum: BrazilianState })
|
|
38
|
+
], Team.prototype, "state", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({ length: 100, nullable: true })
|
|
41
|
+
], Team.prototype, "neighborhood", 2);
|
|
42
|
+
__decorateClass([
|
|
43
|
+
Column({ name: "instagram_account", length: 100, nullable: true })
|
|
44
|
+
], Team.prototype, "instagramAccount", 2);
|
|
45
|
+
__decorateClass([
|
|
46
|
+
Column({ name: "team_logo_url", type: "text", nullable: true })
|
|
47
|
+
], Team.prototype, "teamLogoUrl", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
50
|
+
], Team.prototype, "createdAt", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
53
|
+
], Team.prototype, "updatedAt", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
OneToMany(() => TournamentTeam, (tt) => tt.team)
|
|
56
|
+
], Team.prototype, "tournamentTeams", 2);
|
|
57
|
+
Team = __decorateClass([
|
|
58
|
+
Entity("teams"),
|
|
59
|
+
Index("UQ_team_name", ["name"], { unique: true })
|
|
60
|
+
], Team);
|
|
61
|
+
export {
|
|
62
|
+
Team
|
|
63
|
+
};
|
|
@@ -9,6 +9,8 @@ export declare class TournamentContact implements ITournamentContact {
|
|
|
9
9
|
phone: string;
|
|
10
10
|
organizationName: string | null;
|
|
11
11
|
organizationType: OrganizationType | null;
|
|
12
|
+
profilePictureUrl: string | null;
|
|
13
|
+
instagramAccount: string | null;
|
|
12
14
|
createdAt: Date;
|
|
13
15
|
updatedAt: Date;
|
|
14
16
|
tournament: Tournament;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-contact.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-contacts/tournament-contact.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAaxE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,iBAAkB,YAAW,kBAAkB;IAI1D,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAQrB,SAAS,EAAE,MAAM,CAAC;IAQlB,QAAQ,EAAE,MAAM,CAAC;IAQjB,KAAK,EAAE,MAAM,CAAC;IAQd,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament-contact.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-contacts/tournament-contact.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAaxE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,iBAAkB,YAAW,kBAAkB;IAI1D,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAQrB,SAAS,EAAE,MAAM,CAAC;IAQlB,QAAQ,EAAE,MAAM,CAAC;IAQjB,KAAK,EAAE,MAAM,CAAC;IAQd,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAU1C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IASjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOhC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -76,6 +76,24 @@ __decorateClass([
|
|
|
76
76
|
comment: "Tipo da organiza\xE7\xE3o, como escola de futebol, quadra, federa\xE7\xE3o, etc."
|
|
77
77
|
})
|
|
78
78
|
], TournamentContact.prototype, "organizationType", 2);
|
|
79
|
+
__decorateClass([
|
|
80
|
+
Column({
|
|
81
|
+
name: "profile_picture_url",
|
|
82
|
+
type: "varchar",
|
|
83
|
+
length: 2048,
|
|
84
|
+
nullable: true,
|
|
85
|
+
comment: "URL da foto de perfil do contato."
|
|
86
|
+
})
|
|
87
|
+
], TournamentContact.prototype, "profilePictureUrl", 2);
|
|
88
|
+
__decorateClass([
|
|
89
|
+
Column({
|
|
90
|
+
name: "instagram_account",
|
|
91
|
+
type: "varchar",
|
|
92
|
+
length: 255,
|
|
93
|
+
nullable: true,
|
|
94
|
+
comment: "Conta do Instagram do contato (ex.: @usuario)."
|
|
95
|
+
})
|
|
96
|
+
], TournamentContact.prototype, "instagramAccount", 2);
|
|
79
97
|
__decorateClass([
|
|
80
98
|
CreateDateColumn({
|
|
81
99
|
name: "created_at",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ITournamentPlayer } from '@natrave/tournaments-service-types';
|
|
2
|
-
import {
|
|
2
|
+
import { Player } from '../../players';
|
|
3
3
|
import { TournamentMatchCard } from '../tournament-match-cards';
|
|
4
4
|
import { TournamentMatchGoal } from '../tournament-match-goals';
|
|
5
5
|
import { TournamentTeam } from '../tournament-teams';
|
|
6
6
|
export declare class TournamentPlayer implements ITournamentPlayer {
|
|
7
7
|
id: number;
|
|
8
|
-
|
|
8
|
+
playerId: number;
|
|
9
9
|
teamId: number;
|
|
10
10
|
isOwner: boolean;
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
updatedAt: Date;
|
|
13
|
+
player: Player;
|
|
13
14
|
team: TournamentTeam;
|
|
14
|
-
user: User;
|
|
15
15
|
goals: TournamentMatchGoal[];
|
|
16
16
|
assists: TournamentMatchGoal[];
|
|
17
17
|
cards: TournamentMatchCard[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-player.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-players/tournament-player.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAcvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tournament-player.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-players/tournament-player.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAcvE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,qBAIa,gBAAiB,YAAW,iBAAiB;IAExD,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAKhB,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,cAAc,CAAC;IAGrB,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAG/B,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B"}
|
|
@@ -20,80 +20,51 @@ import {
|
|
|
20
20
|
Unique,
|
|
21
21
|
UpdateDateColumn
|
|
22
22
|
} from "typeorm";
|
|
23
|
-
import {
|
|
23
|
+
import { Player } from "../../players/index.js";
|
|
24
24
|
import { TournamentMatchCard } from "../tournament-match-cards/index.js";
|
|
25
25
|
import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
|
|
26
26
|
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
27
27
|
let TournamentPlayer = class {
|
|
28
28
|
};
|
|
29
29
|
__decorateClass([
|
|
30
|
-
PrimaryGeneratedColumn(
|
|
31
|
-
comment: "Identificador \xFAnico do jogador no torneio."
|
|
32
|
-
})
|
|
30
|
+
PrimaryGeneratedColumn()
|
|
33
31
|
], TournamentPlayer.prototype, "id", 2);
|
|
34
32
|
__decorateClass([
|
|
35
|
-
Column({
|
|
36
|
-
|
|
37
|
-
type: "uuid",
|
|
38
|
-
comment: "Identificador do usu\xE1rio associado ao jogador."
|
|
39
|
-
})
|
|
40
|
-
], TournamentPlayer.prototype, "userId", 2);
|
|
33
|
+
Column({ name: "player_id", type: "int" })
|
|
34
|
+
], TournamentPlayer.prototype, "playerId", 2);
|
|
41
35
|
__decorateClass([
|
|
42
|
-
Column({
|
|
43
|
-
name: "team_id",
|
|
44
|
-
type: "int",
|
|
45
|
-
comment: "Identificador do time ao qual o jogador pertence."
|
|
46
|
-
})
|
|
36
|
+
Column({ name: "team_id", type: "int" })
|
|
47
37
|
], TournamentPlayer.prototype, "teamId", 2);
|
|
48
38
|
__decorateClass([
|
|
49
|
-
Column({
|
|
50
|
-
name: "is_owner",
|
|
51
|
-
type: "boolean",
|
|
52
|
-
default: false,
|
|
53
|
-
comment: "Indica se o jogador \xE9 o dono do time."
|
|
54
|
-
})
|
|
39
|
+
Column({ name: "is_owner", type: "boolean", default: false })
|
|
55
40
|
], TournamentPlayer.prototype, "isOwner", 2);
|
|
56
41
|
__decorateClass([
|
|
57
|
-
CreateDateColumn({
|
|
58
|
-
name: "created_at",
|
|
59
|
-
type: "timestamptz",
|
|
60
|
-
comment: "Data de cria\xE7\xE3o do registro do jogador."
|
|
61
|
-
})
|
|
42
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
62
43
|
], TournamentPlayer.prototype, "createdAt", 2);
|
|
63
44
|
__decorateClass([
|
|
64
|
-
UpdateDateColumn({
|
|
65
|
-
name: "updated_at",
|
|
66
|
-
type: "timestamptz",
|
|
67
|
-
comment: "Data da \xFAltima atualiza\xE7\xE3o do jogador."
|
|
68
|
-
})
|
|
45
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
69
46
|
], TournamentPlayer.prototype, "updatedAt", 2);
|
|
70
47
|
__decorateClass([
|
|
71
|
-
ManyToOne(() =>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
48
|
+
ManyToOne(() => Player, (p) => p.tournamentPlayers, { eager: true, onDelete: "CASCADE" }),
|
|
49
|
+
JoinColumn({ name: "player_id" })
|
|
50
|
+
], TournamentPlayer.prototype, "player", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
ManyToOne(() => TournamentTeam, (t) => t.players, { eager: true, onDelete: "CASCADE" }),
|
|
75
53
|
JoinColumn({ name: "team_id" })
|
|
76
54
|
], TournamentPlayer.prototype, "team", 2);
|
|
77
55
|
__decorateClass([
|
|
78
|
-
|
|
79
|
-
onDelete: "CASCADE",
|
|
80
|
-
eager: true
|
|
81
|
-
}),
|
|
82
|
-
JoinColumn({ name: "user_id" })
|
|
83
|
-
], TournamentPlayer.prototype, "user", 2);
|
|
84
|
-
__decorateClass([
|
|
85
|
-
OneToMany(() => TournamentMatchGoal, (goal) => goal.scorer)
|
|
56
|
+
OneToMany(() => TournamentMatchGoal, (g) => g.scorer)
|
|
86
57
|
], TournamentPlayer.prototype, "goals", 2);
|
|
87
58
|
__decorateClass([
|
|
88
|
-
OneToMany(() => TournamentMatchGoal, (
|
|
59
|
+
OneToMany(() => TournamentMatchGoal, (g) => g.assist)
|
|
89
60
|
], TournamentPlayer.prototype, "assists", 2);
|
|
90
61
|
__decorateClass([
|
|
91
|
-
OneToMany(() => TournamentMatchCard, (
|
|
62
|
+
OneToMany(() => TournamentMatchCard, (c) => c.player)
|
|
92
63
|
], TournamentPlayer.prototype, "cards", 2);
|
|
93
64
|
TournamentPlayer = __decorateClass([
|
|
94
65
|
Entity("tournament_players"),
|
|
95
|
-
Unique(["
|
|
96
|
-
Index("
|
|
66
|
+
Unique(["playerId", "teamId"]),
|
|
67
|
+
Index("IDX_player_id", ["playerId"]),
|
|
97
68
|
Index("IDX_team_id", ["teamId"])
|
|
98
69
|
], TournamentPlayer);
|
|
99
70
|
export {
|
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TournamentTeamStatus } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { Team } from '../../teams';
|
|
3
|
+
import { TournamentGroup } from '../tournament-groups';
|
|
3
4
|
import { TournamentMatchCard } from '../tournament-match-cards';
|
|
4
5
|
import { TournamentMatchGoal } from '../tournament-match-goals';
|
|
5
6
|
import { TournamentMatch } from '../tournament-matches';
|
|
6
7
|
import { TournamentPlayer } from '../tournament-players';
|
|
7
8
|
import { Tournament } from '../tournaments';
|
|
8
|
-
export declare class TournamentTeam
|
|
9
|
+
export declare class TournamentTeam {
|
|
9
10
|
id: number;
|
|
11
|
+
teamId: number | null;
|
|
10
12
|
tournamentId: number;
|
|
11
|
-
|
|
12
|
-
teamLogoUrl?: string;
|
|
13
|
-
abbreviation: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
inviteCode: string;
|
|
16
|
-
groupId?: number;
|
|
13
|
+
groupId?: number | null;
|
|
17
14
|
status: TournamentTeamStatus;
|
|
18
15
|
createdAt: Date;
|
|
19
16
|
updatedAt: Date;
|
|
17
|
+
team?: Team | null;
|
|
20
18
|
tournament: Tournament;
|
|
21
|
-
tournamentGroup?: TournamentGroup;
|
|
19
|
+
tournamentGroup?: TournamentGroup | null;
|
|
22
20
|
players: TournamentPlayer[];
|
|
23
21
|
homeMatches: TournamentMatch[];
|
|
24
22
|
awayMatches: TournamentMatch[];
|
|
25
23
|
goals: TournamentMatchGoal[];
|
|
26
24
|
cards: TournamentMatchCard[];
|
|
27
|
-
generateInviteCode(): void;
|
|
28
25
|
}
|
|
29
26
|
//# sourceMappingURL=tournament-team.entity.d.ts.map
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"tournament-team.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-teams/tournament-team.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAa1E,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,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;AAE5C,qBAOa,cAAc;IAEzB,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,YAAY,EAAE,MAAM,CAAC;IAGrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOxB,MAAM,EAAE,oBAAoB,CAAC;IAG7B,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAKhB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAInB,UAAU,EAAE,UAAU,CAAC;IAIvB,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAGzC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAG5B,WAAW,EAAE,eAAe,EAAE,CAAC;IAG/B,WAAW,EAAE,eAAe,EAAE,CAAC;IAG/B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B"}
|
|
@@ -10,7 +10,6 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
10
10
|
};
|
|
11
11
|
import { TournamentTeamStatus } from "@natrave/tournaments-service-types";
|
|
12
12
|
import {
|
|
13
|
-
BeforeInsert,
|
|
14
13
|
Column,
|
|
15
14
|
CreateDateColumn,
|
|
16
15
|
Entity,
|
|
@@ -21,120 +20,75 @@ import {
|
|
|
21
20
|
PrimaryGeneratedColumn,
|
|
22
21
|
UpdateDateColumn
|
|
23
22
|
} from "typeorm";
|
|
24
|
-
import {
|
|
23
|
+
import { Team } from "../../teams/index.js";
|
|
24
|
+
import { TournamentGroup } from "../tournament-groups/index.js";
|
|
25
25
|
import { TournamentMatchCard } from "../tournament-match-cards/index.js";
|
|
26
26
|
import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
|
|
27
27
|
import { TournamentMatch } from "../tournament-matches/index.js";
|
|
28
28
|
import { TournamentPlayer } from "../tournament-players/index.js";
|
|
29
29
|
import { Tournament } from "../tournaments/index.js";
|
|
30
|
-
import { generateRandomInviteCode } from "./utils/invite-code-generator.js";
|
|
31
30
|
let TournamentTeam = class {
|
|
32
|
-
generateInviteCode() {
|
|
33
|
-
this.inviteCode = generateRandomInviteCode();
|
|
34
|
-
}
|
|
35
31
|
};
|
|
36
32
|
__decorateClass([
|
|
37
|
-
PrimaryGeneratedColumn(
|
|
33
|
+
PrimaryGeneratedColumn()
|
|
38
34
|
], TournamentTeam.prototype, "id", 2);
|
|
39
35
|
__decorateClass([
|
|
40
|
-
Column({ name: "
|
|
41
|
-
], TournamentTeam.prototype, "
|
|
42
|
-
__decorateClass([
|
|
43
|
-
Column({ type: "varchar", length: 100, comment: "Nome do time." })
|
|
44
|
-
], TournamentTeam.prototype, "name", 2);
|
|
45
|
-
__decorateClass([
|
|
46
|
-
Column({
|
|
47
|
-
name: "team_logo_url",
|
|
48
|
-
type: "text",
|
|
49
|
-
nullable: true,
|
|
50
|
-
comment: "URL do logo do time (opcional)."
|
|
51
|
-
})
|
|
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);
|
|
62
|
-
__decorateClass([
|
|
63
|
-
Column({
|
|
64
|
-
type: "varchar",
|
|
65
|
-
length: 255,
|
|
66
|
-
nullable: true,
|
|
67
|
-
comment: "Descri\xE7\xE3o do time (opcional)."
|
|
68
|
-
})
|
|
69
|
-
], TournamentTeam.prototype, "description", 2);
|
|
36
|
+
Column({ name: "team_id", type: "int", nullable: true })
|
|
37
|
+
], TournamentTeam.prototype, "teamId", 2);
|
|
70
38
|
__decorateClass([
|
|
71
|
-
Column({
|
|
72
|
-
|
|
73
|
-
type: "varchar",
|
|
74
|
-
length: 5,
|
|
75
|
-
unique: true,
|
|
76
|
-
comment: "C\xF3digo \xFAnico de convite do time."
|
|
77
|
-
})
|
|
78
|
-
], TournamentTeam.prototype, "inviteCode", 2);
|
|
39
|
+
Column({ name: "tournament_id", type: "int" })
|
|
40
|
+
], TournamentTeam.prototype, "tournamentId", 2);
|
|
79
41
|
__decorateClass([
|
|
80
|
-
Column({ name: "group_id", type: "int", nullable: true
|
|
42
|
+
Column({ name: "group_id", type: "int", nullable: true })
|
|
81
43
|
], TournamentTeam.prototype, "groupId", 2);
|
|
82
44
|
__decorateClass([
|
|
83
45
|
Column({
|
|
84
46
|
type: "enum",
|
|
85
47
|
enum: TournamentTeamStatus,
|
|
86
|
-
default: TournamentTeamStatus.DEFAULT
|
|
87
|
-
comment: "Status do time dentro do torneio."
|
|
48
|
+
default: TournamentTeamStatus.DEFAULT
|
|
88
49
|
})
|
|
89
50
|
], TournamentTeam.prototype, "status", 2);
|
|
90
51
|
__decorateClass([
|
|
91
|
-
CreateDateColumn({
|
|
92
|
-
name: "created_at",
|
|
93
|
-
type: "timestamptz",
|
|
94
|
-
comment: "Data de cria\xE7\xE3o do time."
|
|
95
|
-
})
|
|
52
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
96
53
|
], TournamentTeam.prototype, "createdAt", 2);
|
|
97
54
|
__decorateClass([
|
|
98
|
-
UpdateDateColumn({
|
|
99
|
-
name: "updated_at",
|
|
100
|
-
type: "timestamptz",
|
|
101
|
-
comment: "Data da \xFAltima atualiza\xE7\xE3o do time."
|
|
102
|
-
})
|
|
55
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
103
56
|
], TournamentTeam.prototype, "updatedAt", 2);
|
|
104
57
|
__decorateClass([
|
|
105
|
-
ManyToOne(() =>
|
|
58
|
+
ManyToOne(() => Team, (t) => t.tournamentTeams, { nullable: true, onDelete: "SET NULL" }),
|
|
59
|
+
JoinColumn({ name: "team_id" })
|
|
60
|
+
], TournamentTeam.prototype, "team", 2);
|
|
61
|
+
__decorateClass([
|
|
62
|
+
ManyToOne(() => Tournament, (t) => t.teams, { onDelete: "CASCADE" }),
|
|
106
63
|
JoinColumn({ name: "tournament_id" })
|
|
107
64
|
], TournamentTeam.prototype, "tournament", 2);
|
|
108
65
|
__decorateClass([
|
|
109
|
-
ManyToOne(() => TournamentGroup, (
|
|
110
|
-
onDelete: "SET NULL",
|
|
111
|
-
nullable: true
|
|
112
|
-
}),
|
|
66
|
+
ManyToOne(() => TournamentGroup, (g) => g.teams, { nullable: true, onDelete: "SET NULL" }),
|
|
113
67
|
JoinColumn({ name: "group_id" })
|
|
114
68
|
], TournamentTeam.prototype, "tournamentGroup", 2);
|
|
115
69
|
__decorateClass([
|
|
116
|
-
OneToMany(() => TournamentPlayer, (
|
|
70
|
+
OneToMany(() => TournamentPlayer, (p) => p.team)
|
|
117
71
|
], TournamentTeam.prototype, "players", 2);
|
|
118
72
|
__decorateClass([
|
|
119
|
-
OneToMany(() => TournamentMatch, (
|
|
73
|
+
OneToMany(() => TournamentMatch, (m) => m.homeTeam)
|
|
120
74
|
], TournamentTeam.prototype, "homeMatches", 2);
|
|
121
75
|
__decorateClass([
|
|
122
|
-
OneToMany(() => TournamentMatch, (
|
|
76
|
+
OneToMany(() => TournamentMatch, (m) => m.awayTeam)
|
|
123
77
|
], TournamentTeam.prototype, "awayMatches", 2);
|
|
124
78
|
__decorateClass([
|
|
125
|
-
OneToMany(() => TournamentMatchGoal, (
|
|
79
|
+
OneToMany(() => TournamentMatchGoal, (g) => g.team)
|
|
126
80
|
], TournamentTeam.prototype, "goals", 2);
|
|
127
81
|
__decorateClass([
|
|
128
|
-
OneToMany(() => TournamentMatchCard, (
|
|
82
|
+
OneToMany(() => TournamentMatchCard, (c) => c.team)
|
|
129
83
|
], TournamentTeam.prototype, "cards", 2);
|
|
130
|
-
__decorateClass([
|
|
131
|
-
BeforeInsert()
|
|
132
|
-
], TournamentTeam.prototype, "generateInviteCode", 1);
|
|
133
84
|
TournamentTeam = __decorateClass([
|
|
134
85
|
Entity("tournament_teams"),
|
|
135
|
-
Index("
|
|
86
|
+
Index("UQ_tournament_team_team_not_null", ["tournamentId", "teamId"], {
|
|
87
|
+
unique: true,
|
|
88
|
+
where: '"team_id" IS NOT NULL'
|
|
89
|
+
}),
|
|
136
90
|
Index("IDX_tournament_team_tournament_id", ["tournamentId"]),
|
|
137
|
-
Index("
|
|
91
|
+
Index("IDX_tournament_team_team_id", ["teamId"])
|
|
138
92
|
], TournamentTeam);
|
|
139
93
|
export {
|
|
140
94
|
TournamentTeam
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@natrave/shared-entities",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "Entidades compartilhadass da NaTrave",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,30 +25,30 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"private": false,
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@changesets/cli": "^2.29.
|
|
29
|
-
"@eslint/js": "^9.
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
31
|
-
"@typescript-eslint/parser": "^8.
|
|
28
|
+
"@changesets/cli": "^2.29.5",
|
|
29
|
+
"@eslint/js": "^9.30.0",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^8.35.1",
|
|
31
|
+
"@typescript-eslint/parser": "^8.35.1",
|
|
32
32
|
"esbuild": "^0.25.5",
|
|
33
|
-
"eslint": "^9.
|
|
33
|
+
"eslint": "^9.30.0",
|
|
34
34
|
"eslint-config-prettier": "^10.1.5",
|
|
35
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
36
|
-
"eslint-plugin-import": "^2.
|
|
37
|
-
"eslint-plugin-prettier": "^5.5.
|
|
35
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
36
|
+
"eslint-plugin-import": "^2.32.0",
|
|
37
|
+
"eslint-plugin-prettier": "^5.5.1",
|
|
38
38
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
39
39
|
"glob": "^11.0.3",
|
|
40
40
|
"husky": "^9.1.7",
|
|
41
41
|
"lint-staged": "^16.1.2",
|
|
42
|
-
"prettier": "^3.
|
|
42
|
+
"prettier": "^3.6.2",
|
|
43
43
|
"ts-node": "^10.9.2"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
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.2.
|
|
49
|
+
"@natrave/tournaments-service-types": "^1.2.24",
|
|
50
50
|
"reflect-metadata": "^0.2.2",
|
|
51
|
-
"typeorm": "^0.3.
|
|
51
|
+
"typeorm": "^0.3.25"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build:types": "tsc --emitDeclarationOnly",
|