@natrave/shared-entities 1.2.21 → 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.
- package/dist/tournaments/index.d.ts +1 -0
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +1 -0
- package/dist/tournaments/tournament-matches-availability/index.d.ts +2 -0
- package/dist/tournaments/tournament-matches-availability/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-matches-availability/index.js +4 -0
- package/dist/tournaments/tournament-matches-availability/tournament-match-availability.entity.d.ts +13 -0
- package/dist/tournaments/tournament-matches-availability/tournament-match-availability.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-matches-availability/tournament-match-availability.entity.js +82 -0
- package/dist/tournaments/tournaments/tournament.entity.d.ts +11 -10
- package/dist/tournaments/tournaments/tournament.entity.d.ts.map +1 -1
- package/dist/tournaments/tournaments/tournament.entity.js +49 -18
- package/package.json +6 -5
|
@@ -6,6 +6,7 @@ export * from './tournament-match-cards';
|
|
|
6
6
|
export * from './tournament-match-goals';
|
|
7
7
|
export * from './tournament-match-schemas';
|
|
8
8
|
export * from './tournament-matches';
|
|
9
|
+
export * from './tournament-matches-availability';
|
|
9
10
|
export * from './tournament-payments';
|
|
10
11
|
export * from './tournament-players';
|
|
11
12
|
export * from './tournament-prize-rules';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,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,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,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,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,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,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
|
@@ -6,6 +6,7 @@ export * from "./tournament-match-cards/index.js";
|
|
|
6
6
|
export * from "./tournament-match-goals/index.js";
|
|
7
7
|
export * from "./tournament-match-schemas/index.js";
|
|
8
8
|
export * from "./tournament-matches/index.js";
|
|
9
|
+
export * from "./tournament-matches-availability/index.js";
|
|
9
10
|
export * from "./tournament-payments/index.js";
|
|
10
11
|
export * from "./tournament-players/index.js";
|
|
11
12
|
export * from "./tournament-prize-rules/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches-availability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC"}
|
package/dist/tournaments/tournament-matches-availability/tournament-match-availability.entity.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DayOfWeek, ITournamentMatchAvailability } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { Tournament } from '../tournaments';
|
|
3
|
+
export declare class TournamentMatchAvailability implements ITournamentMatchAvailability {
|
|
4
|
+
id: number;
|
|
5
|
+
day: DayOfWeek;
|
|
6
|
+
startTime: string;
|
|
7
|
+
endTime: string;
|
|
8
|
+
tournamentId: number;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
tournament: Tournament;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=tournament-match-availability.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match-availability.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches-availability/tournament-match-availability.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAW7F,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAW5C,qBACa,2BAA4B,YAAW,4BAA4B;IAI9E,EAAE,EAAE,MAAM,CAAC;IAOX,GAAG,EAAE,SAAS,CAAC;IAOf,SAAS,EAAE,MAAM,CAAC;IAOlB,OAAO,EAAE,MAAM,CAAC;IAOhB,YAAY,EAAE,MAAM,CAAC;IAOrB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
package/dist/tournaments/tournament-matches-availability/tournament-match-availability.entity.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
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 { DayOfWeek } from "@natrave/tournaments-service-types";
|
|
12
|
+
import {
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
JoinColumn,
|
|
17
|
+
ManyToOne,
|
|
18
|
+
PrimaryGeneratedColumn,
|
|
19
|
+
UpdateDateColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { Tournament } from "../tournaments/index.js";
|
|
22
|
+
let TournamentMatchAvailability = class {
|
|
23
|
+
};
|
|
24
|
+
__decorateClass([
|
|
25
|
+
PrimaryGeneratedColumn({
|
|
26
|
+
comment: "Identificador \xFAnico do per\xEDodo de disponibilidade para jogos."
|
|
27
|
+
})
|
|
28
|
+
], TournamentMatchAvailability.prototype, "id", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({
|
|
31
|
+
type: "enum",
|
|
32
|
+
enum: DayOfWeek,
|
|
33
|
+
comment: "Dia da semana em que o per\xEDodo est\xE1 dispon\xEDvel para partidas."
|
|
34
|
+
})
|
|
35
|
+
], TournamentMatchAvailability.prototype, "day", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({
|
|
38
|
+
name: "start_time",
|
|
39
|
+
type: "time",
|
|
40
|
+
comment: 'Hor\xE1rio de in\xEDcio do per\xEDodo (formato "HH:mm").'
|
|
41
|
+
})
|
|
42
|
+
], TournamentMatchAvailability.prototype, "startTime", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
Column({
|
|
45
|
+
name: "end_time",
|
|
46
|
+
type: "time",
|
|
47
|
+
comment: 'Hor\xE1rio de t\xE9rmino do per\xEDodo (formato "HH:mm").'
|
|
48
|
+
})
|
|
49
|
+
], TournamentMatchAvailability.prototype, "endTime", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
Column({
|
|
52
|
+
name: "tournament_id",
|
|
53
|
+
type: "int",
|
|
54
|
+
comment: "Identificador do torneio ao qual este per\xEDodo pertence."
|
|
55
|
+
})
|
|
56
|
+
], TournamentMatchAvailability.prototype, "tournamentId", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
CreateDateColumn({
|
|
59
|
+
name: "created_at",
|
|
60
|
+
type: "timestamptz",
|
|
61
|
+
comment: "Data em que este registro foi criado."
|
|
62
|
+
})
|
|
63
|
+
], TournamentMatchAvailability.prototype, "createdAt", 2);
|
|
64
|
+
__decorateClass([
|
|
65
|
+
UpdateDateColumn({
|
|
66
|
+
name: "updated_at",
|
|
67
|
+
type: "timestamptz",
|
|
68
|
+
comment: "Data da \xFAltima atualiza\xE7\xE3o deste registro."
|
|
69
|
+
})
|
|
70
|
+
], TournamentMatchAvailability.prototype, "updatedAt", 2);
|
|
71
|
+
__decorateClass([
|
|
72
|
+
ManyToOne(() => Tournament, (tournament) => tournament.matchAvailabilities, {
|
|
73
|
+
onDelete: "CASCADE"
|
|
74
|
+
}),
|
|
75
|
+
JoinColumn({ name: "tournament_id" })
|
|
76
|
+
], TournamentMatchAvailability.prototype, "tournament", 2);
|
|
77
|
+
TournamentMatchAvailability = __decorateClass([
|
|
78
|
+
Entity("tournament_match_availabilities")
|
|
79
|
+
], TournamentMatchAvailability);
|
|
80
|
+
export {
|
|
81
|
+
TournamentMatchAvailability
|
|
82
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
5
5
|
import { TournamentGroup } from '../tournament-groups/';
|
|
6
6
|
import { TournamentMatchSchema } from '../tournament-match-schemas';
|
|
7
7
|
import { TournamentMatch } from '../tournament-matches';
|
|
8
|
+
import { TournamentMatchAvailability } from '../tournament-matches-availability/tournament-match-availability.entity';
|
|
8
9
|
import { TournamentPayment } from '../tournament-payments';
|
|
9
10
|
import { TournamentPrizeRule } from '../tournament-prize-rules';
|
|
10
11
|
import { TournamentRule } from '../tournament-rules';
|
|
@@ -12,19 +13,18 @@ import { TournamentTeam } from '../tournament-teams';
|
|
|
12
13
|
export declare class Tournament implements ITournament {
|
|
13
14
|
id: number;
|
|
14
15
|
name: string;
|
|
15
|
-
initialDate
|
|
16
|
-
endDate
|
|
16
|
+
initialDate?: Date | null;
|
|
17
|
+
endDate?: Date | null;
|
|
17
18
|
description?: string | null;
|
|
18
19
|
tournamentImage?: string | null;
|
|
19
20
|
matchSchemaId?: number | null;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
matchEndTime: string;
|
|
23
|
-
city: string;
|
|
24
|
-
state: string;
|
|
21
|
+
city?: string | null;
|
|
22
|
+
state?: string | null;
|
|
25
23
|
gender: TournamentGender;
|
|
26
|
-
registrationFee
|
|
27
|
-
refereeFee
|
|
24
|
+
registrationFee?: number | null;
|
|
25
|
+
refereeFee?: number | null;
|
|
26
|
+
status: TournamentStatus;
|
|
27
|
+
modality: TournamentModality;
|
|
28
28
|
deletedAt: Date | null;
|
|
29
29
|
createdAt: Date;
|
|
30
30
|
updatedAt: Date;
|
|
@@ -38,5 +38,6 @@ export declare class Tournament implements ITournament {
|
|
|
38
38
|
matches: TournamentMatch[];
|
|
39
39
|
tournamentFacilities: TournamentFacility[];
|
|
40
40
|
coupons: TournamentCoupon[];
|
|
41
|
+
matchAvailabilities: TournamentMatchAvailability[];
|
|
41
42
|
}
|
|
42
43
|
//# 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,
|
|
1
|
+
{"version":3,"file":"tournament.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournaments/tournament.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAa5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,yEAAyE,CAAC;AACtH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAWrD,qBACa,UAAW,YAAW,WAAW;IAE5C,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAQb,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAQ1B,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQhC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ9B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOtB,MAAM,EAAE,gBAAgB,CAAC;IASzB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAS3B,MAAM,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,
|
|
@@ -26,6 +30,7 @@ import { TournamentFormatConfig } from "../tournament-format-configs/index.js";
|
|
|
26
30
|
import { TournamentGroup } from "../tournament-groups//index.js";
|
|
27
31
|
import { TournamentMatchSchema } from "../tournament-match-schemas/index.js";
|
|
28
32
|
import { TournamentMatch } from "../tournament-matches/index.js";
|
|
33
|
+
import { TournamentMatchAvailability } from "../tournament-matches-availability/tournament-match-availability.entity.js";
|
|
29
34
|
import { TournamentPayment } from "../tournament-payments/index.js";
|
|
30
35
|
import { TournamentPrizeRule } from "../tournament-prize-rules/index.js";
|
|
31
36
|
import { TournamentRule } from "../tournament-rules/index.js";
|
|
@@ -39,10 +44,20 @@ __decorateClass([
|
|
|
39
44
|
Column({ type: "varchar", length: 255, comment: "Nome do torneio." })
|
|
40
45
|
], Tournament.prototype, "name", 2);
|
|
41
46
|
__decorateClass([
|
|
42
|
-
Column({
|
|
47
|
+
Column({
|
|
48
|
+
name: "initial_date",
|
|
49
|
+
type: "timestamptz",
|
|
50
|
+
nullable: true,
|
|
51
|
+
comment: "Data de in\xEDcio do torneio."
|
|
52
|
+
})
|
|
43
53
|
], Tournament.prototype, "initialDate", 2);
|
|
44
54
|
__decorateClass([
|
|
45
|
-
Column({
|
|
55
|
+
Column({
|
|
56
|
+
name: "end_date",
|
|
57
|
+
type: "timestamptz",
|
|
58
|
+
nullable: true,
|
|
59
|
+
comment: "Data de t\xE9rmino do torneio."
|
|
60
|
+
})
|
|
46
61
|
], Tournament.prototype, "endDate", 2);
|
|
47
62
|
__decorateClass([
|
|
48
63
|
Column({ type: "text", nullable: true, comment: "Descri\xE7\xE3o do torneio (opcional)." })
|
|
@@ -65,24 +80,19 @@ __decorateClass([
|
|
|
65
80
|
], Tournament.prototype, "matchSchemaId", 2);
|
|
66
81
|
__decorateClass([
|
|
67
82
|
Column({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
comment: "Dias da semana em que ocorrer\xE3o as partidas."
|
|
83
|
+
type: "varchar",
|
|
84
|
+
length: 100,
|
|
85
|
+
nullable: true,
|
|
86
|
+
comment: "Cidade onde o torneio ser\xE1 realizado."
|
|
73
87
|
})
|
|
74
|
-
], Tournament.prototype, "matchDays", 2);
|
|
75
|
-
__decorateClass([
|
|
76
|
-
Column({ name: "match_start_time", type: "time", comment: "Hor\xE1rio de in\xEDcio das partidas." })
|
|
77
|
-
], Tournament.prototype, "matchStartTime", 2);
|
|
78
|
-
__decorateClass([
|
|
79
|
-
Column({ name: "match_end_time", type: "time", comment: "Hor\xE1rio de t\xE9rmino das partidas." })
|
|
80
|
-
], Tournament.prototype, "matchEndTime", 2);
|
|
81
|
-
__decorateClass([
|
|
82
|
-
Column({ type: "varchar", length: 100, comment: "Cidade onde o torneio ser\xE1 realizado." })
|
|
83
88
|
], Tournament.prototype, "city", 2);
|
|
84
89
|
__decorateClass([
|
|
85
|
-
Column({
|
|
90
|
+
Column({
|
|
91
|
+
type: "varchar",
|
|
92
|
+
length: 2,
|
|
93
|
+
nullable: true,
|
|
94
|
+
comment: "Estado (UF) onde o torneio ser\xE1 realizado."
|
|
95
|
+
})
|
|
86
96
|
], Tournament.prototype, "state", 2);
|
|
87
97
|
__decorateClass([
|
|
88
98
|
Column({
|
|
@@ -96,6 +106,7 @@ __decorateClass([
|
|
|
96
106
|
name: "registration_fee",
|
|
97
107
|
type: "int",
|
|
98
108
|
default: 0,
|
|
109
|
+
nullable: true,
|
|
99
110
|
comment: "Valor da taxa de inscri\xE7\xE3o (em centavos)."
|
|
100
111
|
})
|
|
101
112
|
], Tournament.prototype, "registrationFee", 2);
|
|
@@ -104,9 +115,26 @@ __decorateClass([
|
|
|
104
115
|
name: "referee_fee",
|
|
105
116
|
type: "int",
|
|
106
117
|
default: 0,
|
|
118
|
+
nullable: true,
|
|
107
119
|
comment: "Valor da taxa de arbitragem (em centavos)."
|
|
108
120
|
})
|
|
109
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);
|
|
110
138
|
__decorateClass([
|
|
111
139
|
Column({
|
|
112
140
|
name: "deleted_at",
|
|
@@ -162,6 +190,9 @@ __decorateClass([
|
|
|
162
190
|
__decorateClass([
|
|
163
191
|
OneToMany(() => TournamentCoupon, (coupon) => coupon.tournament)
|
|
164
192
|
], Tournament.prototype, "coupons", 2);
|
|
193
|
+
__decorateClass([
|
|
194
|
+
OneToMany(() => TournamentMatchAvailability, (availability) => availability.tournament)
|
|
195
|
+
], Tournament.prototype, "matchAvailabilities", 2);
|
|
165
196
|
Tournament = __decorateClass([
|
|
166
197
|
Entity("tournaments")
|
|
167
198
|
], Tournament);
|
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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"eslint-config-prettier": "^10.1.1",
|
|
35
35
|
"eslint-import-resolver-typescript": "^4.3.1",
|
|
36
36
|
"eslint-plugin-import": "^2.31.0",
|
|
37
|
-
"eslint-plugin-prettier": "^5.2.
|
|
37
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
38
38
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
39
39
|
"glob": "^11.0.1",
|
|
40
40
|
"husky": "^9.1.7",
|
|
@@ -43,9 +43,9 @@
|
|
|
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
|
-
"typeorm": "^0.3.
|
|
48
|
+
"typeorm": "^0.3.22"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build:types": "tsc --emitDeclarationOnly",
|
|
@@ -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
|
}
|