@natrave/shared-entities 8.37.0 → 8.38.0
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/tournament-format-configs/enums/group-matchups.enum.d.ts +5 -0
- package/dist/tournaments/tournament-format-configs/enums/group-matchups.enum.d.ts.map +1 -0
- package/dist/tournaments/tournament-format-configs/enums/group-matchups.enum.js +8 -0
- package/dist/tournaments/tournament-format-configs/index.d.ts +1 -0
- package/dist/tournaments/tournament-format-configs/index.d.ts.map +1 -1
- package/dist/tournaments/tournament-format-configs/index.js +2 -0
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts +2 -0
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-matchups.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-format-configs/enums/group-matchups.enum.ts"],"names":[],"mappings":"AAaA,oBAAY,aAAa;IAEvB,MAAM,WAAW;IAGjB,MAAM,WAAW;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ITournamentFormatConfig, KnockoutPhase, MatchLegMode, TournamentFormat } from '@natrave/tournaments-service-types';
|
|
2
2
|
import { Tournament } from '../tournaments';
|
|
3
|
+
import { GroupMatchups } from './enums/group-matchups.enum';
|
|
3
4
|
export declare class TournamentFormatConfig implements ITournamentFormatConfig {
|
|
4
5
|
id: number;
|
|
5
6
|
tournamentId: number;
|
|
@@ -8,6 +9,7 @@ export declare class TournamentFormatConfig implements ITournamentFormatConfig {
|
|
|
8
9
|
initialPhaseMatchMode?: MatchLegMode | null;
|
|
9
10
|
knockoutStartPhase?: KnockoutPhase | null;
|
|
10
11
|
knockoutMatchMode?: MatchLegMode | null;
|
|
12
|
+
groupMatchups: GroupMatchups;
|
|
11
13
|
teamCount: number;
|
|
12
14
|
createdAt: Date;
|
|
13
15
|
updatedAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-format-config.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/tournament-format-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,aAAa,EACb,YAAY,EACZ,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAW5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament-format-config.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/tournament-format-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,aAAa,EACb,YAAY,EACZ,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAW5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAc5D,qBACa,sBAAuB,YAAW,uBAAuB;IAIpE,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAOrB,MAAM,EAAE,gBAAgB,CAAC;IAQzB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAU/B,qBAAqB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAU5C,kBAAkB,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAU1C,iBAAiB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAWxC,aAAa,EAAE,aAAa,CAAC;IAG7B,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
UpdateDateColumn
|
|
24
24
|
} from "typeorm";
|
|
25
25
|
import { Tournament } from "../tournaments/index.js";
|
|
26
|
+
import { GroupMatchups } from "./enums/group-matchups.enum.js";
|
|
26
27
|
let TournamentFormatConfig = class {
|
|
27
28
|
};
|
|
28
29
|
__decorateClass([
|
|
@@ -83,6 +84,16 @@ __decorateClass([
|
|
|
83
84
|
comment: "Modo de disputa da fase knockout (ida \xFAnica ou ida e volta), se aplic\xE1vel."
|
|
84
85
|
})
|
|
85
86
|
], TournamentFormatConfig.prototype, "knockoutMatchMode", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
Column({
|
|
89
|
+
name: "group_matchups",
|
|
90
|
+
type: "enum",
|
|
91
|
+
enum: GroupMatchups,
|
|
92
|
+
enumName: "tournament_format_configs_group_matchups_enum",
|
|
93
|
+
default: GroupMatchups.WITHIN,
|
|
94
|
+
comment: "Contra quem cada time joga na fase de grupos: dentro do grupo ou contra os outros grupos."
|
|
95
|
+
})
|
|
96
|
+
], TournamentFormatConfig.prototype, "groupMatchups", 2);
|
|
86
97
|
__decorateClass([
|
|
87
98
|
Column({ name: "team_count", type: "int", comment: "N\xFAmero esperado de times no torneio." })
|
|
88
99
|
], TournamentFormatConfig.prototype, "teamCount", 2);
|