@natrave/shared-entities 1.2.44 → 1.2.45

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,4 +1,5 @@
1
1
  export * from './tournament-brackets';
2
+ export * from './tournament-contacts';
2
3
  export * from './tournament-coupons';
3
4
  export * from './tournament-facilities';
4
5
  export * from './tournament-format-configs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./tournament-brackets/index.js";
2
+ export * from "./tournament-contacts/index.js";
2
3
  export * from "./tournament-coupons/index.js";
3
4
  export * from "./tournament-facilities/index.js";
4
5
  export * from "./tournament-format-configs/index.js";
@@ -0,0 +1,2 @@
1
+ export { TournamentContact } from './tournament-contact.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-contacts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TournamentContact } from "./tournament-contact.entity.js";
2
+ export {
3
+ TournamentContact
4
+ };
@@ -0,0 +1,16 @@
1
+ import { OrganizationType } from '@natrave/auth-service-types';
2
+ import { ITournamentContact } from '@natrave/tournaments-service-types';
3
+ import { Tournament } from '../tournaments';
4
+ export declare class TournamentContact implements ITournamentContact {
5
+ id: number;
6
+ tournamentId: number;
7
+ firstName: string;
8
+ lastName: string;
9
+ phone: string;
10
+ organizationName: string | null;
11
+ organizationType: OrganizationType | null;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ tournament: Tournament;
15
+ }
16
+ //# sourceMappingURL=tournament-contact.entity.d.ts.map
@@ -0,0 +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;IAO1C,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,106 @@
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 { OrganizationType } from "@natrave/auth-service-types";
12
+ import {
13
+ Column,
14
+ CreateDateColumn,
15
+ Entity,
16
+ Index,
17
+ JoinColumn,
18
+ ManyToOne,
19
+ PrimaryGeneratedColumn,
20
+ Unique,
21
+ UpdateDateColumn
22
+ } from "typeorm";
23
+ import { Tournament } from "../tournaments/index.js";
24
+ let TournamentContact = class {
25
+ };
26
+ __decorateClass([
27
+ PrimaryGeneratedColumn({
28
+ comment: "Identificador \xFAnico do contato."
29
+ })
30
+ ], TournamentContact.prototype, "id", 2);
31
+ __decorateClass([
32
+ Column({
33
+ name: "tournament_id",
34
+ type: "int",
35
+ comment: "Identificador do torneio ao qual o contato pertence."
36
+ })
37
+ ], TournamentContact.prototype, "tournamentId", 2);
38
+ __decorateClass([
39
+ Column({
40
+ name: "first_name",
41
+ type: "varchar",
42
+ length: 255,
43
+ comment: "Primeiro nome do usu\xE1rio."
44
+ })
45
+ ], TournamentContact.prototype, "firstName", 2);
46
+ __decorateClass([
47
+ Column({
48
+ name: "last_name",
49
+ type: "varchar",
50
+ length: 255,
51
+ comment: "\xDAltimo nome do usu\xE1rio."
52
+ })
53
+ ], TournamentContact.prototype, "lastName", 2);
54
+ __decorateClass([
55
+ Column({
56
+ name: "phone",
57
+ type: "varchar",
58
+ length: 16,
59
+ comment: "N\xFAmero de telefone do usu\xE1rio."
60
+ })
61
+ ], TournamentContact.prototype, "phone", 2);
62
+ __decorateClass([
63
+ Column({
64
+ type: "varchar",
65
+ length: 255,
66
+ nullable: true,
67
+ comment: "Nome da organiza\xE7\xE3o (empresa, pessoa ou grupo)."
68
+ })
69
+ ], TournamentContact.prototype, "organizationName", 2);
70
+ __decorateClass([
71
+ Column({
72
+ type: "enum",
73
+ enum: OrganizationType,
74
+ enumName: "OrganizationType",
75
+ nullable: true,
76
+ comment: "Tipo da organiza\xE7\xE3o, como escola de futebol, quadra, federa\xE7\xE3o, etc."
77
+ })
78
+ ], TournamentContact.prototype, "organizationType", 2);
79
+ __decorateClass([
80
+ CreateDateColumn({
81
+ name: "created_at",
82
+ type: "timestamptz",
83
+ comment: "Data de cria\xE7\xE3o do contato."
84
+ })
85
+ ], TournamentContact.prototype, "createdAt", 2);
86
+ __decorateClass([
87
+ UpdateDateColumn({
88
+ name: "updated_at",
89
+ type: "timestamptz",
90
+ comment: "Data da \xFAltima atualiza\xE7\xE3o do contato."
91
+ })
92
+ ], TournamentContact.prototype, "updatedAt", 2);
93
+ __decorateClass([
94
+ ManyToOne(() => Tournament, (tournament) => tournament.contacts, {
95
+ onDelete: "CASCADE"
96
+ }),
97
+ JoinColumn({ name: "tournament_id" })
98
+ ], TournamentContact.prototype, "tournament", 2);
99
+ TournamentContact = __decorateClass([
100
+ Entity("tournament_contacts"),
101
+ Index(["tournamentId", "phone"]),
102
+ Unique(["tournamentId"])
103
+ ], TournamentContact);
104
+ export {
105
+ TournamentContact
106
+ };
@@ -5,7 +5,10 @@ export declare class TournamentPrizeRule implements ITournamentPrizeRule {
5
5
  tournamentId: number;
6
6
  amount: number;
7
7
  rank: number;
8
- description?: string;
8
+ hasTrophy: boolean;
9
+ hasMedal: boolean;
10
+ hasOtherPrize: boolean;
11
+ otherPrizeType: string | null;
9
12
  createdAt: Date;
10
13
  updatedAt: Date;
11
14
  tournament: Tournament;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-prize-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-prize-rules/tournament-prize-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAa1E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,mBAAoB,YAAW,oBAAoB;IAI9D,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAMrB,MAAM,EAAE,MAAM,CAAC;IAMf,IAAI,EAAE,MAAM,CAAC;IAQb,WAAW,CAAC,EAAE,MAAM,CAAC;IAOrB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"tournament-prize-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-prize-rules/tournament-prize-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAa1E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,mBAAoB,YAAW,oBAAoB;IAI9D,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAMrB,MAAM,EAAE,MAAM,CAAC;IAMf,IAAI,EAAE,MAAM,CAAC;IAOb,SAAS,EAAE,OAAO,CAAC;IAOnB,QAAQ,EAAE,OAAO,CAAC;IAOlB,aAAa,EAAE,OAAO,CAAC;IAQvB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAO9B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -46,6 +46,27 @@ __decorateClass([
46
46
  comment: "Classifica\xE7\xE3o correspondente \xE0 premia\xE7\xE3o (ex: 1 para campe\xE3o)."
47
47
  })
48
48
  ], TournamentPrizeRule.prototype, "rank", 2);
49
+ __decorateClass([
50
+ Column({
51
+ type: "boolean",
52
+ default: false,
53
+ comment: "Indica se premia\xE7\xE3o inclui trof\xE9u."
54
+ })
55
+ ], TournamentPrizeRule.prototype, "hasTrophy", 2);
56
+ __decorateClass([
57
+ Column({
58
+ type: "boolean",
59
+ default: false,
60
+ comment: "Indica se premia\xE7\xE3o inclui medalha."
61
+ })
62
+ ], TournamentPrizeRule.prototype, "hasMedal", 2);
63
+ __decorateClass([
64
+ Column({
65
+ type: "boolean",
66
+ default: false,
67
+ comment: "Indica se premia\xE7\xE3o inclui outro tipo de pr\xEAmio."
68
+ })
69
+ ], TournamentPrizeRule.prototype, "hasOtherPrize", 2);
49
70
  __decorateClass([
50
71
  Column({
51
72
  type: "varchar",
@@ -53,7 +74,7 @@ __decorateClass([
53
74
  nullable: true,
54
75
  comment: "Descri\xE7\xE3o opcional da premia\xE7\xE3o."
55
76
  })
56
- ], TournamentPrizeRule.prototype, "description", 2);
77
+ ], TournamentPrizeRule.prototype, "otherPrizeType", 2);
57
78
  __decorateClass([
58
79
  CreateDateColumn({
59
80
  name: "created_at",
@@ -1,6 +1,7 @@
1
1
  import { BrazilianState, ITournament, TournamentGender, TournamentModality, TournamentStatus } from '@natrave/tournaments-service-types';
2
2
  import { Organization } from '../../central-auth';
3
3
  import { TournamentBracket } from '../tournament-brackets';
4
+ import { TournamentContact } from '../tournament-contacts';
4
5
  import { TournamentCoupon } from '../tournament-coupons';
5
6
  import { TournamentFacility } from '../tournament-facilities';
6
7
  import { TournamentFormatConfig } from '../tournament-format-configs';
@@ -49,5 +50,6 @@ export declare class Tournament implements ITournament {
49
50
  matchAvailabilities: TournamentMatchAvailability[];
50
51
  brackets: TournamentBracket[];
51
52
  matchRules: TournamentMatchRule[];
53
+ contacts: TournamentContact[];
52
54
  }
53
55
  //# 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,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAa5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,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B,EAAE,CAAC;IAG3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAG5B,mBAAmB,EAAE,2BAA2B,EAAE,CAAC;IAGnD,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAG9B,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAGlC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B"}
@@ -27,6 +27,7 @@ import {
27
27
  } from "typeorm";
28
28
  import { Organization } from "../../central-auth/index.js";
29
29
  import { TournamentBracket } from "../tournament-brackets/index.js";
30
+ import { TournamentContact } from "../tournament-contacts/index.js";
30
31
  import { TournamentCoupon } from "../tournament-coupons/index.js";
31
32
  import { TournamentFacility } from "../tournament-facilities/index.js";
32
33
  import { TournamentFormatConfig } from "../tournament-format-configs/index.js";
@@ -231,6 +232,9 @@ __decorateClass([
231
232
  __decorateClass([
232
233
  OneToMany(() => TournamentMatchRule, (matchRule) => matchRule.tournament)
233
234
  ], Tournament.prototype, "matchRules", 2);
235
+ __decorateClass([
236
+ OneToMany(() => TournamentContact, (contact) => contact.tournament)
237
+ ], Tournament.prototype, "contacts", 2);
234
238
  Tournament = __decorateClass([
235
239
  Entity("tournaments")
236
240
  ], Tournament);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.2.44",
3
+ "version": "1.2.45",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -27,8 +27,8 @@
27
27
  "devDependencies": {
28
28
  "@changesets/cli": "^2.29.4",
29
29
  "@eslint/js": "^9.26.0",
30
- "@typescript-eslint/eslint-plugin": "^8.32.0",
31
- "@typescript-eslint/parser": "^8.32.0",
30
+ "@typescript-eslint/eslint-plugin": "^8.32.1",
31
+ "@typescript-eslint/parser": "^8.32.1",
32
32
  "esbuild": "^0.25.4",
33
33
  "eslint": "^9.26.0",
34
34
  "eslint-config-prettier": "^10.1.5",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@natrave/auth-service-types": "^1.1.61",
47
47
  "@natrave/notification-service-types": "^1.1.65",
48
- "@natrave/tournaments-service-types": "^1.1.70",
48
+ "@natrave/tournaments-service-types": "^1.1.75",
49
49
  "reflect-metadata": "^0.2.2",
50
50
  "typeorm": "^0.3.23"
51
51
  },