@natrave/shared-entities 1.5.5 → 1.6.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/database-entities/index.d.ts +2 -2
- package/dist/database-entities/index.d.ts.map +1 -1
- package/dist/database-entities/index.js +9 -1
- package/dist/teams/index.d.ts +1 -0
- package/dist/teams/index.d.ts.map +1 -1
- package/dist/teams/index.js +1 -0
- package/dist/teams/team-access-codes/index.d.ts +2 -0
- package/dist/teams/team-access-codes/index.d.ts.map +1 -0
- package/dist/teams/team-access-codes/index.js +4 -0
- package/dist/teams/team-access-codes/team-access-code.entity.d.ts +16 -0
- package/dist/teams/team-access-codes/team-access-code.entity.d.ts.map +1 -0
- package/dist/teams/team-access-codes/team-access-code.entity.js +116 -0
- package/dist/teams/teams/team.entity.d.ts +10 -3
- package/dist/teams/teams/team.entity.d.ts.map +1 -1
- package/dist/teams/teams/team.entity.js +12 -7
- package/dist/tournaments/tournament-match-rules/tournament-match-rule.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-match-rules/tournament-match-rule.entity.js +1 -0
- package/dist/tournaments/tournaments/tournament.entity.d.ts +2 -0
- package/dist/tournaments/tournaments/tournament.entity.d.ts.map +1 -1
- package/dist/tournaments/tournaments/tournament.entity.js +6 -0
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ import { TeamPlayerMergeHistory } from '../history-logs';
|
|
|
6
6
|
import { Notification, NotificationDelivery, NotificationDispatchLog, PushDeviceToken, UserNotificationPreference } from '../notifications';
|
|
7
7
|
import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
|
|
8
8
|
import { Player, PlayerPersonalData, PlayerPosition } from '../players';
|
|
9
|
-
import { PlayerTeam, Team, TeamJoinRequest, TeamModality, TeamTrophy } from '../teams';
|
|
9
|
+
import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamModality, TeamTrophy } from '../teams';
|
|
10
10
|
import { Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentTeam, TournamentTeamContactAttempt } from '../tournaments';
|
|
11
11
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
12
|
-
export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof FacilityImage | typeof Facility | typeof FieldImage | typeof Field | typeof Address | typeof TournamentFacility | typeof OrganizationUserBillingInfo | typeof PhoneNumber | typeof Organization | typeof TournamentAllowedPhone | typeof OrganizationUser | typeof Tournament | typeof TournamentPayment | typeof FacilityOwner | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentFormatConfig | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentMatchCard | typeof TournamentPenaltyShootout | typeof TournamentGroup | typeof TournamentBracketSlot | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentTeamContactAttempt | typeof TournamentBracket | typeof TeamTrophy | typeof TournamentPublicationChargeRule | typeof TeamJoinRequest | typeof TeamModality | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserVerification | typeof UserDomainEvent | typeof UserEventView)[];
|
|
12
|
+
export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof FacilityImage | typeof Facility | typeof FieldImage | typeof Field | typeof Address | typeof TournamentFacility | typeof OrganizationUserBillingInfo | typeof PhoneNumber | typeof Organization | typeof TournamentAllowedPhone | typeof OrganizationUser | typeof Tournament | typeof TournamentPayment | typeof FacilityOwner | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentFormatConfig | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentMatchCard | typeof TournamentPenaltyShootout | typeof TournamentGroup | typeof TournamentBracketSlot | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentTeamContactAttempt | typeof TournamentBracket | typeof TeamTrophy | typeof TournamentPublicationChargeRule | typeof TeamJoinRequest | typeof TeamModality | typeof TeamAccessCode | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserVerification | typeof UserDomainEvent | typeof UserEventView)[];
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW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ACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,YAAY,EACZ,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EAEjC,cAAc,EACd,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,ulDAgE7B,CAAC"}
|
|
@@ -17,7 +17,14 @@ import {
|
|
|
17
17
|
} from "../notifications/index.js";
|
|
18
18
|
import { Payment, PaymentProvider, UserPaymentProvider } from "../payments/index.js";
|
|
19
19
|
import { Player, PlayerPersonalData, PlayerPosition } from "../players/index.js";
|
|
20
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
PlayerTeam,
|
|
22
|
+
Team,
|
|
23
|
+
TeamAccessCode,
|
|
24
|
+
TeamJoinRequest,
|
|
25
|
+
TeamModality,
|
|
26
|
+
TeamTrophy
|
|
27
|
+
} from "../teams/index.js";
|
|
21
28
|
import {
|
|
22
29
|
Tournament,
|
|
23
30
|
TournamentAllowedPhone,
|
|
@@ -96,6 +103,7 @@ const DATABASE_ENTITIES = [
|
|
|
96
103
|
PlayerPersonalData,
|
|
97
104
|
PlayerPosition,
|
|
98
105
|
Team,
|
|
106
|
+
TeamAccessCode,
|
|
99
107
|
PlayerTeam,
|
|
100
108
|
TeamModality,
|
|
101
109
|
TeamJoinRequest,
|
package/dist/teams/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/teams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/teams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
package/dist/teams/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TeamJoinRequestStatus } from "./enums/request-status.enum.js";
|
|
2
2
|
export * from "./player-team/index.js";
|
|
3
|
+
export * from "./team-access-codes/index.js";
|
|
3
4
|
export * from "./team-join-requests/index.js";
|
|
4
5
|
export * from "./team-modality/index.js";
|
|
5
6
|
export * from "./team-trophy/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/teams/team-access-codes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Team } from '../teams/team.entity';
|
|
2
|
+
export declare class TeamAccessCode {
|
|
3
|
+
id: number;
|
|
4
|
+
teamId: number;
|
|
5
|
+
code: string;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
expiresAt: Date | null;
|
|
8
|
+
maxUses: number | null;
|
|
9
|
+
usedCount: number;
|
|
10
|
+
lastUsedAt: Date | null;
|
|
11
|
+
revokedAt: Date | null;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
team: Team;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=team-access-code.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-access-code.entity.d.ts","sourceRoot":"","sources":["../../../src/teams/team-access-codes/team-access-code.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,qBAOa,cAAc;IAIzB,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAOf,IAAI,EAAE,MAAM,CAAC;IASb,QAAQ,EAAE,OAAO,CAAC;IAQlB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAQvB,SAAS,EAAE,MAAM,CAAC;IAQlB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAQxB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAOvB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAIhB,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
Check,
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
JoinColumn,
|
|
17
|
+
ManyToOne,
|
|
18
|
+
PrimaryGeneratedColumn,
|
|
19
|
+
UpdateDateColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { Team } from "../teams/team.entity.js";
|
|
22
|
+
let TeamAccessCode = class {
|
|
23
|
+
};
|
|
24
|
+
__decorateClass([
|
|
25
|
+
PrimaryGeneratedColumn({
|
|
26
|
+
comment: "Identificador unico do codigo de acesso do time."
|
|
27
|
+
})
|
|
28
|
+
], TeamAccessCode.prototype, "id", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({ name: "team_id", type: "int", comment: "FK teams.id" })
|
|
31
|
+
], TeamAccessCode.prototype, "teamId", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({
|
|
34
|
+
type: "varchar",
|
|
35
|
+
length: 7,
|
|
36
|
+
comment: "Codigo de acesso unico utilizado para entrada no time."
|
|
37
|
+
})
|
|
38
|
+
], TeamAccessCode.prototype, "code", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({
|
|
41
|
+
name: "is_active",
|
|
42
|
+
type: "boolean",
|
|
43
|
+
default: true,
|
|
44
|
+
comment: "Indica se o codigo esta disponivel para uso. A migration deve garantir no maximo um ativo por time."
|
|
45
|
+
})
|
|
46
|
+
], TeamAccessCode.prototype, "isActive", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
Column({
|
|
49
|
+
name: "expires_at",
|
|
50
|
+
type: "timestamptz",
|
|
51
|
+
nullable: true,
|
|
52
|
+
comment: "Data limite de validade do codigo, quando aplicavel."
|
|
53
|
+
})
|
|
54
|
+
], TeamAccessCode.prototype, "expiresAt", 2);
|
|
55
|
+
__decorateClass([
|
|
56
|
+
Column({
|
|
57
|
+
name: "max_uses",
|
|
58
|
+
type: "int",
|
|
59
|
+
nullable: true,
|
|
60
|
+
comment: "Quantidade maxima de usos permitidos para o codigo."
|
|
61
|
+
})
|
|
62
|
+
], TeamAccessCode.prototype, "maxUses", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
Column({
|
|
65
|
+
name: "used_count",
|
|
66
|
+
type: "int",
|
|
67
|
+
default: 0,
|
|
68
|
+
comment: "Quantidade de vezes em que o codigo foi utilizado."
|
|
69
|
+
})
|
|
70
|
+
], TeamAccessCode.prototype, "usedCount", 2);
|
|
71
|
+
__decorateClass([
|
|
72
|
+
Column({
|
|
73
|
+
name: "last_used_at",
|
|
74
|
+
type: "timestamptz",
|
|
75
|
+
nullable: true,
|
|
76
|
+
comment: "Data do ultimo uso bem-sucedido do codigo."
|
|
77
|
+
})
|
|
78
|
+
], TeamAccessCode.prototype, "lastUsedAt", 2);
|
|
79
|
+
__decorateClass([
|
|
80
|
+
Column({
|
|
81
|
+
name: "revoked_at",
|
|
82
|
+
type: "timestamptz",
|
|
83
|
+
nullable: true,
|
|
84
|
+
comment: "Data em que o codigo foi revogado manualmente."
|
|
85
|
+
})
|
|
86
|
+
], TeamAccessCode.prototype, "revokedAt", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
CreateDateColumn({
|
|
89
|
+
name: "created_at",
|
|
90
|
+
type: "timestamptz",
|
|
91
|
+
comment: "Data de criacao do codigo de acesso."
|
|
92
|
+
})
|
|
93
|
+
], TeamAccessCode.prototype, "createdAt", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
UpdateDateColumn({
|
|
96
|
+
name: "updated_at",
|
|
97
|
+
type: "timestamptz",
|
|
98
|
+
comment: "Data da ultima atualizacao do codigo de acesso."
|
|
99
|
+
})
|
|
100
|
+
], TeamAccessCode.prototype, "updatedAt", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
ManyToOne(() => Team, (team) => team.accessCodes, { onDelete: "CASCADE" }),
|
|
103
|
+
JoinColumn({ name: "team_id" })
|
|
104
|
+
], TeamAccessCode.prototype, "team", 2);
|
|
105
|
+
TeamAccessCode = __decorateClass([
|
|
106
|
+
Entity("team_access_codes"),
|
|
107
|
+
Check("CHK_team_access_codes_used_count_non_negative", '"used_count" >= 0'),
|
|
108
|
+
Check("CHK_team_access_codes_max_uses_positive", '"max_uses" IS NULL OR "max_uses" > 0'),
|
|
109
|
+
Check(
|
|
110
|
+
"CHK_team_access_codes_used_count_within_limit",
|
|
111
|
+
'"max_uses" IS NULL OR "used_count" <= "max_uses"'
|
|
112
|
+
)
|
|
113
|
+
], TeamAccessCode);
|
|
114
|
+
export {
|
|
115
|
+
TeamAccessCode
|
|
116
|
+
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { TournamentGender } from '@natrave/tournaments-service-types';
|
|
2
2
|
import { BrazilianState } from '../../common/enums/brazilian-state.enum';
|
|
3
|
-
import { TeamPlayerMergeHistory } from '../../history-logs';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { TeamPlayerMergeHistory } from '../../history-logs/team-player-merge-history/team-player-merge-history.entity';
|
|
4
|
+
import { TournamentRegistrationRequest } from '../../tournaments/tournament-registration-requests/tournament-registration-request.entity';
|
|
5
|
+
import { TournamentTeamContactAttempt } from '../../tournaments/tournament-team-contact-attempts/tournament-team-contact-attempt.entity';
|
|
6
|
+
import { TournamentTeam } from '../../tournaments/tournament-teams/tournament-team.entity';
|
|
7
|
+
import { PlayerTeam } from '../player-team/player-team.entity';
|
|
8
|
+
import { TeamAccessCode } from '../team-access-codes/team-access-code.entity';
|
|
9
|
+
import { TeamJoinRequest } from '../team-join-requests/team-join-request.entity';
|
|
10
|
+
import { TeamModality } from '../team-modality/team-modality.entity';
|
|
11
|
+
import { TeamTrophy } from '../team-trophy/team-trophy.entity';
|
|
6
12
|
export declare class Team {
|
|
7
13
|
id: number;
|
|
8
14
|
name: string;
|
|
@@ -19,6 +25,7 @@ export declare class Team {
|
|
|
19
25
|
updatedAt: Date;
|
|
20
26
|
tournamentTeams: TournamentTeam[];
|
|
21
27
|
playerMemberships: PlayerTeam[];
|
|
28
|
+
accessCodes: TeamAccessCode[];
|
|
22
29
|
teamModalities: TeamModality[];
|
|
23
30
|
joinRequests: TeamJoinRequest[];
|
|
24
31
|
tournamentContactAttempts: TournamentTeamContactAttempt[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.entity.d.ts","sourceRoot":"","sources":["../../../src/teams/teams/team.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAYtE,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"team.entity.d.ts","sourceRoot":"","sources":["../../../src/teams/teams/team.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAYtE,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+EAA+E,CAAC;AACvH,OAAO,EAAE,6BAA6B,EAAE,MAAM,2FAA2F,CAAC;AAC1I,OAAO,EAAE,4BAA4B,EAAE,MAAM,2FAA2F,CAAC;AACzI,OAAO,EAAE,cAAc,EAAE,MAAM,2DAA2D,CAAC;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,qBAMa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,YAAY,EAAE,MAAM,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,cAAc,CAAC;IAGtB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAQrB,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAQhC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAQrB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAG9B,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,eAAe,EAAE,cAAc,EAAE,CAAC;IAGlC,iBAAiB,EAAE,UAAU,EAAE,CAAC;IAGhC,WAAW,EAAE,cAAc,EAAE,CAAC;IAG9B,cAAc,EAAE,YAAY,EAAE,CAAC;IAG/B,YAAY,EAAE,eAAe,EAAE,CAAC;IAGhC,yBAAyB,EAAE,4BAA4B,EAAE,CAAC;IAG1D,QAAQ,EAAE,UAAU,EAAE,CAAC;IAGvB,8BAA8B,EAAE,6BAA6B,EAAE,CAAC;IAGhE,YAAY,EAAE,sBAAsB,EAAE,CAAC;CACxC"}
|
|
@@ -20,13 +20,15 @@ import {
|
|
|
20
20
|
UpdateDateColumn
|
|
21
21
|
} from "typeorm";
|
|
22
22
|
import { BrazilianState } from "../../common/enums/brazilian-state.enum.js";
|
|
23
|
-
import { TeamPlayerMergeHistory } from "../../history-logs/
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "
|
|
23
|
+
import { TeamPlayerMergeHistory } from "../../history-logs/team-player-merge-history/team-player-merge-history.entity.js";
|
|
24
|
+
import { TournamentRegistrationRequest } from "../../tournaments/tournament-registration-requests/tournament-registration-request.entity.js";
|
|
25
|
+
import { TournamentTeamContactAttempt } from "../../tournaments/tournament-team-contact-attempts/tournament-team-contact-attempt.entity.js";
|
|
26
|
+
import { TournamentTeam } from "../../tournaments/tournament-teams/tournament-team.entity.js";
|
|
27
|
+
import { PlayerTeam } from "../player-team/player-team.entity.js";
|
|
28
|
+
import { TeamAccessCode } from "../team-access-codes/team-access-code.entity.js";
|
|
29
|
+
import { TeamJoinRequest } from "../team-join-requests/team-join-request.entity.js";
|
|
30
|
+
import { TeamModality } from "../team-modality/team-modality.entity.js";
|
|
31
|
+
import { TeamTrophy } from "../team-trophy/team-trophy.entity.js";
|
|
30
32
|
let Team = class {
|
|
31
33
|
constructor() {
|
|
32
34
|
this.deletedAt = null;
|
|
@@ -92,6 +94,9 @@ __decorateClass([
|
|
|
92
94
|
__decorateClass([
|
|
93
95
|
OneToMany(() => PlayerTeam, (pt) => pt.team)
|
|
94
96
|
], Team.prototype, "playerMemberships", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
OneToMany(() => TeamAccessCode, (accessCode) => accessCode.team)
|
|
99
|
+
], Team.prototype, "accessCodes", 2);
|
|
95
100
|
__decorateClass([
|
|
96
101
|
OneToMany(() => TeamModality, (tm) => tm.team)
|
|
97
102
|
], Team.prototype, "teamModalities", 2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-match-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-rules/tournament-match-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAY1E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAEa,mBAAoB,YAAW,oBAAoB;IAI9D,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament-match-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-rules/tournament-match-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAY1E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAEa,mBAAoB,YAAW,oBAAoB;IAI9D,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAQrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAO7B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -48,6 +48,8 @@ export declare class Tournament implements TournamentContract {
|
|
|
48
48
|
modality: TournamentModality;
|
|
49
49
|
regulationPdfUrl?: string | null;
|
|
50
50
|
defaultRegulationUrl: string | null;
|
|
51
|
+
defaultRegulationChecksum: string | null;
|
|
52
|
+
defaultRegulationGeneratedAt: Date | null;
|
|
51
53
|
deletedAt: Date | null;
|
|
52
54
|
createdAt: Date;
|
|
53
55
|
updatedAt: Date;
|
|
@@ -1 +1 @@
|
|
|
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,EACnB,MAAM,oCAAoC,CAAC;AAgB5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,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,CAA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AG3B,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAG3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAG5B,mBAAmB,EAAE,2BAA2B,EAAE,CAAC;IAGnD,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAG9B,YAAY,EAAE,qBAAqB,EAAE,CAAC;IAItC,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAGlC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAG9B,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IAGtD,wBAAwB,EAAE,iCAAiC,EAAE,CAAC;IAG9D,eAAe,EAAE,4BAA4B,EAAE,CAAC;IAGhD,aAAa,EAAE,sBAAsB,EAAE,CAAC;IAKxC,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
|
|
@@ -213,6 +213,12 @@ __decorateClass([
|
|
|
213
213
|
comment: "URL do PDF com o regulamento default (opcional)."
|
|
214
214
|
})
|
|
215
215
|
], Tournament.prototype, "defaultRegulationUrl", 2);
|
|
216
|
+
__decorateClass([
|
|
217
|
+
Column({ name: "default_regulation_checksum", type: "text", nullable: true })
|
|
218
|
+
], Tournament.prototype, "defaultRegulationChecksum", 2);
|
|
219
|
+
__decorateClass([
|
|
220
|
+
Column({ name: "default_regulation_generated_at", type: "timestamptz", nullable: true })
|
|
221
|
+
], Tournament.prototype, "defaultRegulationGeneratedAt", 2);
|
|
216
222
|
__decorateClass([
|
|
217
223
|
DeleteDateColumn({
|
|
218
224
|
name: "deleted_at",
|