@natrave/shared-entities 1.2.22 → 1.2.23
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,4 @@
|
|
|
1
|
-
import { ITournament, TournamentGender } from '@natrave/tournaments-service-types';
|
|
1
|
+
import { ITournament, TournamentGender, TournamentModality, TournamentStatus } from '@natrave/tournaments-service-types';
|
|
2
2
|
import { TournamentCoupon } from '../tournament-coupons/tournament-coupon.entity';
|
|
3
3
|
import { TournamentFacility } from '../tournament-facilities';
|
|
4
4
|
import { TournamentFormatConfig } from '../tournament-format-configs';
|
|
@@ -13,16 +13,18 @@ import { TournamentTeam } from '../tournament-teams';
|
|
|
13
13
|
export declare class Tournament implements ITournament {
|
|
14
14
|
id: number;
|
|
15
15
|
name: string;
|
|
16
|
-
initialDate
|
|
17
|
-
endDate
|
|
16
|
+
initialDate?: Date | null;
|
|
17
|
+
endDate?: Date | null;
|
|
18
18
|
description?: string | null;
|
|
19
19
|
tournamentImage?: string | null;
|
|
20
20
|
matchSchemaId?: number | null;
|
|
21
|
-
city
|
|
22
|
-
state
|
|
21
|
+
city?: string | null;
|
|
22
|
+
state?: string | null;
|
|
23
23
|
gender: TournamentGender;
|
|
24
|
-
registrationFee
|
|
25
|
-
refereeFee
|
|
24
|
+
registrationFee?: number | null;
|
|
25
|
+
refereeFee?: number | null;
|
|
26
|
+
status: TournamentStatus;
|
|
27
|
+
modality: TournamentModality;
|
|
26
28
|
deletedAt: Date | null;
|
|
27
29
|
createdAt: Date;
|
|
28
30
|
updatedAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournaments/tournament.entity.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"tournament.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournaments/tournament.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAC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AAM,EAAE,gBAAgB,CAAC;IAQzB,QAAQ,EAAE,kBAAkB,CAAC;IAQ7B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAOvB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,WAAW,EAAE,qBAAqB,CAAC;IAGnC,KAAK,EAAE,cAAc,EAAE,CAAC;IAGxB,MAAM,EAAE,eAAe,EAAE,CAAC;IAG1B,IAAI,EAAE,cAAc,CAAC;IAGrB,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;CACpD"}
|
|
@@ -8,7 +8,11 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
8
8
|
if (kind && result) __defProp(target, key, result);
|
|
9
9
|
return result;
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
TournamentGender,
|
|
13
|
+
TournamentModality,
|
|
14
|
+
TournamentStatus
|
|
15
|
+
} from "@natrave/tournaments-service-types";
|
|
12
16
|
import {
|
|
13
17
|
Column,
|
|
14
18
|
CreateDateColumn,
|
|
@@ -40,10 +44,20 @@ __decorateClass([
|
|
|
40
44
|
Column({ type: "varchar", length: 255, comment: "Nome do torneio." })
|
|
41
45
|
], Tournament.prototype, "name", 2);
|
|
42
46
|
__decorateClass([
|
|
43
|
-
Column({
|
|
47
|
+
Column({
|
|
48
|
+
name: "initial_date",
|
|
49
|
+
type: "timestamptz",
|
|
50
|
+
nullable: true,
|
|
51
|
+
comment: "Data de in\xEDcio do torneio."
|
|
52
|
+
})
|
|
44
53
|
], Tournament.prototype, "initialDate", 2);
|
|
45
54
|
__decorateClass([
|
|
46
|
-
Column({
|
|
55
|
+
Column({
|
|
56
|
+
name: "end_date",
|
|
57
|
+
type: "timestamptz",
|
|
58
|
+
nullable: true,
|
|
59
|
+
comment: "Data de t\xE9rmino do torneio."
|
|
60
|
+
})
|
|
47
61
|
], Tournament.prototype, "endDate", 2);
|
|
48
62
|
__decorateClass([
|
|
49
63
|
Column({ type: "text", nullable: true, comment: "Descri\xE7\xE3o do torneio (opcional)." })
|
|
@@ -65,10 +79,20 @@ __decorateClass([
|
|
|
65
79
|
})
|
|
66
80
|
], Tournament.prototype, "matchSchemaId", 2);
|
|
67
81
|
__decorateClass([
|
|
68
|
-
Column({
|
|
82
|
+
Column({
|
|
83
|
+
type: "varchar",
|
|
84
|
+
length: 100,
|
|
85
|
+
nullable: true,
|
|
86
|
+
comment: "Cidade onde o torneio ser\xE1 realizado."
|
|
87
|
+
})
|
|
69
88
|
], Tournament.prototype, "city", 2);
|
|
70
89
|
__decorateClass([
|
|
71
|
-
Column({
|
|
90
|
+
Column({
|
|
91
|
+
type: "varchar",
|
|
92
|
+
length: 2,
|
|
93
|
+
nullable: true,
|
|
94
|
+
comment: "Estado (UF) onde o torneio ser\xE1 realizado."
|
|
95
|
+
})
|
|
72
96
|
], Tournament.prototype, "state", 2);
|
|
73
97
|
__decorateClass([
|
|
74
98
|
Column({
|
|
@@ -82,6 +106,7 @@ __decorateClass([
|
|
|
82
106
|
name: "registration_fee",
|
|
83
107
|
type: "int",
|
|
84
108
|
default: 0,
|
|
109
|
+
nullable: true,
|
|
85
110
|
comment: "Valor da taxa de inscri\xE7\xE3o (em centavos)."
|
|
86
111
|
})
|
|
87
112
|
], Tournament.prototype, "registrationFee", 2);
|
|
@@ -90,9 +115,26 @@ __decorateClass([
|
|
|
90
115
|
name: "referee_fee",
|
|
91
116
|
type: "int",
|
|
92
117
|
default: 0,
|
|
118
|
+
nullable: true,
|
|
93
119
|
comment: "Valor da taxa de arbitragem (em centavos)."
|
|
94
120
|
})
|
|
95
121
|
], Tournament.prototype, "refereeFee", 2);
|
|
122
|
+
__decorateClass([
|
|
123
|
+
Column({
|
|
124
|
+
default: TournamentStatus.DRAFT,
|
|
125
|
+
type: "enum",
|
|
126
|
+
enum: Object.values(TournamentStatus),
|
|
127
|
+
comment: "Indica se o torneio est\xE1 em rascunho, criado (mas n\xE3o publicado) ou publicado para inscri\xE7\xF5es."
|
|
128
|
+
})
|
|
129
|
+
], Tournament.prototype, "status", 2);
|
|
130
|
+
__decorateClass([
|
|
131
|
+
Column({
|
|
132
|
+
default: TournamentModality.FUT7,
|
|
133
|
+
type: "enum",
|
|
134
|
+
enum: Object.values(TournamentModality),
|
|
135
|
+
comment: "Indica a modalidade do torneio (fut7, futsal, futebol de campo, etc.)."
|
|
136
|
+
})
|
|
137
|
+
], Tournament.prototype, "modality", 2);
|
|
96
138
|
__decorateClass([
|
|
97
139
|
Column({
|
|
98
140
|
name: "deleted_at",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@natrave/shared-entities",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.23",
|
|
4
4
|
"description": "Entidades compartilhadass da NaTrave",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"ts-node": "^10.9.2"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@natrave/tournaments-service-types": "^1.1.
|
|
46
|
+
"@natrave/tournaments-service-types": "^1.1.28",
|
|
47
47
|
"reflect-metadata": "^0.2.2",
|
|
48
48
|
"typeorm": "^0.3.22"
|
|
49
49
|
},
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"build": "pnpm run build:types && pnpm run build:js",
|
|
54
54
|
"clean": "rm -rf dist",
|
|
55
55
|
"lint": "eslint src --ext .ts",
|
|
56
|
-
"check:types": "tsc --noEmit"
|
|
56
|
+
"check:types": "tsc --noEmit",
|
|
57
|
+
"watch": "tsc --watch"
|
|
57
58
|
}
|
|
58
59
|
}
|