@natrave/shared-entities 1.4.25 → 1.4.26

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,5 +1,6 @@
1
1
  export * from './player-team';
2
2
  export * from './team-join-requests';
3
3
  export * from './team-modality';
4
+ export * from './team-trophy';
4
5
  export * from './teams';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/teams/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/teams/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./player-team/index.js";
2
2
  export * from "./team-join-requests/index.js";
3
3
  export * from "./team-modality/index.js";
4
+ export * from "./team-trophy/index.js";
4
5
  export * from "./teams/index.js";
@@ -0,0 +1,2 @@
1
+ export { TeamTrophy } from './team-trophy.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/teams/team-trophy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TeamTrophy } from "./team-trophy.entity.js";
2
+ export {
3
+ TeamTrophy
4
+ };
@@ -0,0 +1,18 @@
1
+ import { Tournament } from '../../tournaments';
2
+ import { Team } from '../teams';
3
+ export declare class TeamTrophy {
4
+ id: number;
5
+ teamId: number;
6
+ tournamentId?: number | null;
7
+ rank: number;
8
+ title: string;
9
+ description?: string | null;
10
+ trophyImageUrl?: string | null;
11
+ awardedAt: Date;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ deletedAt?: Date | null;
15
+ team: Team;
16
+ tournament?: Tournament | null;
17
+ }
18
+ //# sourceMappingURL=team-trophy.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team-trophy.entity.d.ts","sourceRoot":"","sources":["../../../src/teams/team-trophy/team-trophy.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,qBAIa,UAAU;IAErB,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO7B,IAAI,EAAE,MAAM,CAAC;IAIb,KAAK,EAAE,MAAM,CAAC;IAId,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI5B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI/B,SAAS,EAAE,IAAI,CAAC;IAIhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAKxB,IAAI,EAAE,IAAI,CAAC;IAOX,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAChC"}
@@ -0,0 +1,78 @@
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 {
12
+ Column,
13
+ CreateDateColumn,
14
+ DeleteDateColumn,
15
+ Entity,
16
+ Index,
17
+ JoinColumn,
18
+ ManyToOne,
19
+ PrimaryGeneratedColumn,
20
+ UpdateDateColumn
21
+ } from "typeorm";
22
+ import { Tournament } from "../../tournaments/index.js";
23
+ import { Team } from "../teams/index.js";
24
+ let TeamTrophy = class {
25
+ };
26
+ __decorateClass([
27
+ PrimaryGeneratedColumn()
28
+ ], TeamTrophy.prototype, "id", 2);
29
+ __decorateClass([
30
+ Column({ name: "team_id", type: "int" })
31
+ ], TeamTrophy.prototype, "teamId", 2);
32
+ __decorateClass([
33
+ Column({ name: "tournament_id", type: "int", nullable: true })
34
+ ], TeamTrophy.prototype, "tournamentId", 2);
35
+ __decorateClass([
36
+ Column({ type: "smallint", comment: "1\u2011campe\xE3o, 2\u2011vice, 3\u2011terceiro" })
37
+ ], TeamTrophy.prototype, "rank", 2);
38
+ __decorateClass([
39
+ Column({ type: "varchar", length: 255 })
40
+ ], TeamTrophy.prototype, "title", 2);
41
+ __decorateClass([
42
+ Column({ type: "text", nullable: true })
43
+ ], TeamTrophy.prototype, "description", 2);
44
+ __decorateClass([
45
+ Column({ name: "trophy_image_url", type: "text", nullable: true })
46
+ ], TeamTrophy.prototype, "trophyImageUrl", 2);
47
+ __decorateClass([
48
+ Column({ name: "awarded_at", type: "timestamptz" })
49
+ ], TeamTrophy.prototype, "awardedAt", 2);
50
+ __decorateClass([
51
+ CreateDateColumn({ name: "created_at", type: "timestamptz" })
52
+ ], TeamTrophy.prototype, "createdAt", 2);
53
+ __decorateClass([
54
+ UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
55
+ ], TeamTrophy.prototype, "updatedAt", 2);
56
+ __decorateClass([
57
+ DeleteDateColumn({ name: "deleted_at", type: "timestamptz", nullable: true })
58
+ ], TeamTrophy.prototype, "deletedAt", 2);
59
+ __decorateClass([
60
+ ManyToOne(() => Team, (team) => team.trophies, { onDelete: "CASCADE" }),
61
+ JoinColumn({ name: "team_id" })
62
+ ], TeamTrophy.prototype, "team", 2);
63
+ __decorateClass([
64
+ ManyToOne(() => Tournament, (tournament) => tournament.trophies, {
65
+ nullable: true,
66
+ onDelete: "SET NULL"
67
+ }),
68
+ JoinColumn({ name: "tournament_id" })
69
+ ], TeamTrophy.prototype, "tournament", 2);
70
+ TeamTrophy = __decorateClass([
71
+ Entity("team_trophies"),
72
+ Index("IDX_team_trophies_team", ["teamId"]),
73
+ Index("IDX_team_trophies_tournament", ["tournamentId"]),
74
+ Index("UQ_team_trophy_unique", ["teamId", "tournamentId", "rank"], { unique: true })
75
+ ], TeamTrophy);
76
+ export {
77
+ TeamTrophy
78
+ };
@@ -1,6 +1,6 @@
1
1
  import { BrazilianState } from '@natrave/tournaments-service-types';
2
2
  import { Gender } from '../../app-auth';
3
- import { PlayerTeam, TeamJoinRequest, TeamModality } from '../../teams';
3
+ import { PlayerTeam, TeamJoinRequest, TeamModality, TeamTrophy } from '../../teams';
4
4
  import { TournamentTeam, TournamentTeamContactAttempt } from '../../tournaments';
5
5
  export declare class Team {
6
6
  id: number;
@@ -20,5 +20,6 @@ export declare class Team {
20
20
  teamModalities: TeamModality[];
21
21
  joinRequests: TeamJoinRequest[];
22
22
  tournamentContactAttempts: TournamentTeamContactAttempt[];
23
+ trophies: TeamTrophy[];
23
24
  }
24
25
  //# sourceMappingURL=team.entity.d.ts.map
@@ -1 +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,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAEjF,qBAEa,IAAI;IAEf,EAAE,EA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AAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAQtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,eAAe,EAAE,cAAc,EAAE,CAAC;IAGlC,iBAAiB,EAAE,UAAU,EAAE,CAAC;IAGhC,cAAc,EAAE,YAAY,EAAE,CAAC;IAG/B,YAAY,EAAE,eAAe,EAAE,CAAC;IAGhC,yBAAyB,EAAE,4BAA4B,EAAE,CAAC;IAG1D,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
@@ -19,7 +19,7 @@ import {
19
19
  UpdateDateColumn
20
20
  } from "typeorm";
21
21
  import { Gender } from "../../app-auth/index.js";
22
- import { PlayerTeam, TeamJoinRequest, TeamModality } from "../../teams/index.js";
22
+ import { PlayerTeam, TeamJoinRequest, TeamModality, TeamTrophy } from "../../teams/index.js";
23
23
  import { TournamentTeam, TournamentTeamContactAttempt } from "../../tournaments/index.js";
24
24
  let Team = class {
25
25
  };
@@ -84,6 +84,9 @@ __decorateClass([
84
84
  __decorateClass([
85
85
  OneToMany(() => TournamentTeamContactAttempt, (attempt) => attempt.tournament)
86
86
  ], Team.prototype, "tournamentContactAttempts", 2);
87
+ __decorateClass([
88
+ OneToMany(() => TeamTrophy, (t) => t.team)
89
+ ], Team.prototype, "trophies", 2);
87
90
  Team = __decorateClass([
88
91
  Entity("teams"),
89
92
  Index("IDX_team_name", ["name"])
@@ -1,22 +1,7 @@
1
1
  import { BrazilianState, ITournament, TournamentGender, TournamentModality, TournamentPublicationStatus } from '@natrave/tournaments-service-types';
2
2
  import { Organization } from '../../central-auth';
3
- import { TournamentAllowedPhone } from '../tournament-allowed-phone';
4
- import { TournamentBracket } from '../tournament-brackets';
5
- import { TournamentContact } from '../tournament-contacts';
6
- import { TournamentCoupon } from '../tournament-coupons';
7
- import { TournamentFacility } from '../tournament-facilities';
8
- import { TournamentFormatConfig } from '../tournament-format-configs';
9
- import { TournamentGroup } from '../tournament-groups';
10
- import { TournamentMatchRule } from '../tournament-match-rules';
11
- import { TournamentMatchSchema } from '../tournament-match-schemas';
12
- import { TournamentMatch } from '../tournament-matches';
13
- import { TournamentMatchAvailability } from '../tournament-matches-availability';
14
- import { TournamentPayment } from '../tournament-payments';
15
- import { TournamentPlayerRule } from '../tournament-player-rules';
16
- import { TournamentPrizeRule } from '../tournament-prize-rules';
17
- import { TournamentRule } from '../tournament-rules';
18
- import { TournamentTeamContactAttempt } from '../tournament-team-contact-attempts';
19
- import { TournamentTeam } from '../tournament-teams';
3
+ import { TeamTrophy } from '../../teams';
4
+ import { TournamentAllowedPhone, TournamentBracket, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPlayerRule, TournamentPrizeRule, TournamentRule, TournamentTeam, TournamentTeamContactAttempt } from '../../tournaments';
20
5
  export declare class Tournament implements ITournament {
21
6
  id: number;
22
7
  name: string;
@@ -57,5 +42,6 @@ export declare class Tournament implements ITournament {
57
42
  contacts: TournamentContact[];
58
43
  contactAttempts: TournamentTeamContactAttempt[];
59
44
  allowedPhones: TournamentAllowedPhone[];
45
+ trophies: TeamTrophy[];
60
46
  }
61
47
  //# sourceMappingURL=tournament.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tournament.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournaments/tournament.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,oCAAoC,CAAC;AAe5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EA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C,QAAQ,EAAE,kBAAkB,CAAC;IAU7B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUjC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpC,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAOvB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,WAAW,EAAE,qBAAqB,CAAC;IAMnC,SAAS,EAAE,YAAY,CAAC;IAGxB,KAAK,EAAE,cAAc,EAAE,CAAC;IAGxB,MAAM,EAAE,eAAe,EAAE,CAAC;IAG1B,IAAI,EAAE,cAAc,CAAC;IAGrB,UAAU,EAAE,oBAAoB,CAAC;IAGjC,MAAM,EAAE,sBAAsB,CAAC;IAG/B,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAGlC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAG9B,OAAO,EAAE,eAAe,EAAE,CAAC;IAG3B,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAG3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAG5B,mBAAmB,EAAE,2BAA2B,EAAE,CAAC;IAGnD,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAI9B,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAGlC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAG9B,eAAe,EAAE,4BAA4B,EAAE,CAAC;IAGhD,aAAa,EAAE,sBAAsB,EAAE,CAAC;IAKxC,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
@@ -28,23 +28,26 @@ import {
28
28
  UpdateDateColumn
29
29
  } from "typeorm";
30
30
  import { Organization } from "../../central-auth/index.js";
31
- import { TournamentAllowedPhone } from "../tournament-allowed-phone/index.js";
32
- import { TournamentBracket } from "../tournament-brackets/index.js";
33
- import { TournamentContact } from "../tournament-contacts/index.js";
34
- import { TournamentCoupon } from "../tournament-coupons/index.js";
35
- import { TournamentFacility } from "../tournament-facilities/index.js";
36
- import { TournamentFormatConfig } from "../tournament-format-configs/index.js";
37
- import { TournamentGroup } from "../tournament-groups/index.js";
38
- import { TournamentMatchRule } from "../tournament-match-rules/index.js";
39
- import { TournamentMatchSchema } from "../tournament-match-schemas/index.js";
40
- import { TournamentMatch } from "../tournament-matches/index.js";
41
- import { TournamentMatchAvailability } from "../tournament-matches-availability/index.js";
42
- import { TournamentPayment } from "../tournament-payments/index.js";
43
- import { TournamentPlayerRule } from "../tournament-player-rules/index.js";
44
- import { TournamentPrizeRule } from "../tournament-prize-rules/index.js";
45
- import { TournamentRule } from "../tournament-rules/index.js";
46
- import { TournamentTeamContactAttempt } from "../tournament-team-contact-attempts/index.js";
47
- import { TournamentTeam } from "../tournament-teams/index.js";
31
+ import { TeamTrophy } from "../../teams/index.js";
32
+ import {
33
+ TournamentAllowedPhone,
34
+ TournamentBracket,
35
+ TournamentContact,
36
+ TournamentCoupon,
37
+ TournamentFacility,
38
+ TournamentFormatConfig,
39
+ TournamentGroup,
40
+ TournamentMatch,
41
+ TournamentMatchAvailability,
42
+ TournamentMatchRule,
43
+ TournamentMatchSchema,
44
+ TournamentPayment,
45
+ TournamentPlayerRule,
46
+ TournamentPrizeRule,
47
+ TournamentRule,
48
+ TournamentTeam,
49
+ TournamentTeamContactAttempt
50
+ } from "../../tournaments";
48
51
  let Tournament = class {
49
52
  };
50
53
  __decorateClass([
@@ -264,6 +267,11 @@ __decorateClass([
264
267
  __decorateClass([
265
268
  OneToMany(() => TournamentAllowedPhone, (allowed) => allowed.tournament)
266
269
  ], Tournament.prototype, "allowedPhones", 2);
270
+ __decorateClass([
271
+ OneToMany(() => TeamTrophy, (trophy) => trophy.tournament, {
272
+ cascade: true
273
+ })
274
+ ], Tournament.prototype, "trophies", 2);
267
275
  Tournament = __decorateClass([
268
276
  Entity("tournaments"),
269
277
  Index("idx_tournaments_organization", ["organizationId"]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.4.25",
3
+ "version": "1.4.26",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",