@natrave/shared-entities 8.7.1 → 8.8.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 +2 -0
- 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-sponsor/enums/team-sponsor-tier.enum.d.ts +5 -0
- package/dist/teams/team-sponsor/enums/team-sponsor-tier.enum.d.ts.map +1 -0
- package/dist/teams/team-sponsor/enums/team-sponsor-tier.enum.js +8 -0
- package/dist/teams/team-sponsor/index.d.ts +3 -0
- package/dist/teams/team-sponsor/index.d.ts.map +1 -0
- package/dist/teams/team-sponsor/index.js +6 -0
- package/dist/teams/team-sponsor/team-sponsor.entity.d.ts +17 -0
- package/dist/teams/team-sponsor/team-sponsor.entity.d.ts.map +1 -0
- package/dist/teams/team-sponsor/team-sponsor.entity.js +70 -0
- package/dist/teams/teams/team.entity.d.ts +2 -0
- package/dist/teams/teams/team.entity.d.ts.map +1 -1
- package/dist/teams/teams/team.entity.js +4 -0
- package/package.json +1 -1
|
@@ -8,8 +8,8 @@ import { TeamPlayerMergeHistory } from '../history-logs';
|
|
|
8
8
|
import { Notification, NotificationDelivery, NotificationDispatchLog, PushDeviceToken, UserNotificationPreference } from '../notifications';
|
|
9
9
|
import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
|
|
10
10
|
import { Player, PlayerPersonalData, PlayerPosition } from '../players';
|
|
11
|
-
import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamModality, TeamTrophy } from '../teams';
|
|
11
|
+
import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamModality, TeamSponsor, TeamTrophy } from '../teams';
|
|
12
12
|
import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTieBreakConfig } from '../tournaments';
|
|
13
13
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
14
|
-
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 TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentMatchSubstitution | typeof TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | typeof TournamentTieBreakConfig | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamModality | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionItem | typeof BillingSubscription | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
|
|
14
|
+
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 TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentMatchSubstitution | typeof TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | typeof TournamentTieBreakConfig | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamModality | typeof TeamSponsor | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionItem | typeof BillingSubscription | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
|
|
15
15
|
//# 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,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,KAA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B,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EAEjC,+BAA+B,EAE/B,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,62EA6F7B,CAAC"}
|
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
TeamAccessCode,
|
|
53
53
|
TeamJoinRequest,
|
|
54
54
|
TeamModality,
|
|
55
|
+
TeamSponsor,
|
|
55
56
|
TeamTrophy
|
|
56
57
|
} from "../teams/index.js";
|
|
57
58
|
import {
|
|
@@ -183,6 +184,7 @@ const DATABASE_ENTITIES = [
|
|
|
183
184
|
PhoneNumber,
|
|
184
185
|
TournamentAllowedPhone,
|
|
185
186
|
TeamTrophy,
|
|
187
|
+
TeamSponsor,
|
|
186
188
|
TournamentBracketSlot,
|
|
187
189
|
UserDomainEvent,
|
|
188
190
|
UserEventView
|
package/dist/teams/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './player-team';
|
|
|
3
3
|
export * from './team-access-codes';
|
|
4
4
|
export * from './team-join-requests';
|
|
5
5
|
export * from './team-modality';
|
|
6
|
+
export * from './team-sponsor';
|
|
6
7
|
export * from './team-trophy';
|
|
7
8
|
export * from './teams';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,qBAAqB,CAAC;AACpC,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,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
|
package/dist/teams/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./player-team/index.js";
|
|
|
3
3
|
export * from "./team-access-codes/index.js";
|
|
4
4
|
export * from "./team-join-requests/index.js";
|
|
5
5
|
export * from "./team-modality/index.js";
|
|
6
|
+
export * from "./team-sponsor/index.js";
|
|
6
7
|
export * from "./team-trophy/index.js";
|
|
7
8
|
export * from "./teams/index.js";
|
|
8
9
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-sponsor-tier.enum.d.ts","sourceRoot":"","sources":["../../../../src/teams/team-sponsor/enums/team-sponsor-tier.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/teams/team-sponsor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Team } from '../teams';
|
|
2
|
+
import { TeamSponsorTier } from './enums/team-sponsor-tier.enum';
|
|
3
|
+
export declare class TeamSponsor {
|
|
4
|
+
id: number;
|
|
5
|
+
teamId: number;
|
|
6
|
+
name: string;
|
|
7
|
+
instagramAccount: string | null;
|
|
8
|
+
logoUrl: string;
|
|
9
|
+
tier: TeamSponsorTier;
|
|
10
|
+
position: number;
|
|
11
|
+
createdByOrganizationId: number | null;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
deletedAt: Date | null;
|
|
15
|
+
team: Team;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=team-sponsor.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-sponsor.entity.d.ts","sourceRoot":"","sources":["../../../src/teams/team-sponsor/team-sponsor.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAWjE,qBAGa,WAAW;IAEtB,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;IAIb,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAIhC,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,eAAe,CAAC;IAItB,QAAQ,EAAE,MAAM,CAAC;IASjB,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAIvC,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAKvB,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
DeleteDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
Index,
|
|
17
|
+
JoinColumn,
|
|
18
|
+
ManyToOne,
|
|
19
|
+
PrimaryGeneratedColumn,
|
|
20
|
+
UpdateDateColumn
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { Team } from "../teams/index.js";
|
|
23
|
+
import { TeamSponsorTier } from "./enums/team-sponsor-tier.enum.js";
|
|
24
|
+
let TeamSponsor = class {
|
|
25
|
+
};
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn()
|
|
28
|
+
], TeamSponsor.prototype, "id", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({ name: "team_id", type: "int" })
|
|
31
|
+
], TeamSponsor.prototype, "teamId", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({ type: "varchar", length: 24 })
|
|
34
|
+
], TeamSponsor.prototype, "name", 2);
|
|
35
|
+
__decorateClass([
|
|
36
|
+
Column({ name: "instagram_account", type: "varchar", length: 100, nullable: true })
|
|
37
|
+
], TeamSponsor.prototype, "instagramAccount", 2);
|
|
38
|
+
__decorateClass([
|
|
39
|
+
Column({ name: "logo_url", type: "text" })
|
|
40
|
+
], TeamSponsor.prototype, "logoUrl", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
Column({ type: "enum", enum: TeamSponsorTier, default: TeamSponsorTier.SUPPORT })
|
|
43
|
+
], TeamSponsor.prototype, "tier", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
Column({ type: "smallint", default: 0 })
|
|
46
|
+
], TeamSponsor.prototype, "position", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
Column({ name: "created_by_organization_id", type: "int", nullable: true })
|
|
49
|
+
], TeamSponsor.prototype, "createdByOrganizationId", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
52
|
+
], TeamSponsor.prototype, "createdAt", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
55
|
+
], TeamSponsor.prototype, "updatedAt", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
DeleteDateColumn({ name: "deleted_at", type: "timestamptz", nullable: true })
|
|
58
|
+
], TeamSponsor.prototype, "deletedAt", 2);
|
|
59
|
+
__decorateClass([
|
|
60
|
+
ManyToOne(() => Team, (team) => team.sponsors, { onDelete: "CASCADE" }),
|
|
61
|
+
JoinColumn({ name: "team_id" })
|
|
62
|
+
], TeamSponsor.prototype, "team", 2);
|
|
63
|
+
TeamSponsor = __decorateClass([
|
|
64
|
+
Entity("team_sponsors"),
|
|
65
|
+
Index("IDX_team_sponsors_team", ["teamId"]),
|
|
66
|
+
Index("IDX_team_sponsors_team_position", ["teamId", "position"])
|
|
67
|
+
], TeamSponsor);
|
|
68
|
+
export {
|
|
69
|
+
TeamSponsor
|
|
70
|
+
};
|
|
@@ -8,6 +8,7 @@ import { PlayerTeam } from '../player-team/player-team.entity';
|
|
|
8
8
|
import { TeamAccessCode } from '../team-access-codes/team-access-code.entity';
|
|
9
9
|
import { TeamJoinRequest } from '../team-join-requests/team-join-request.entity';
|
|
10
10
|
import { TeamModality } from '../team-modality/team-modality.entity';
|
|
11
|
+
import { TeamSponsor } from '../team-sponsor/team-sponsor.entity';
|
|
11
12
|
import { TeamTrophy } from '../team-trophy/team-trophy.entity';
|
|
12
13
|
export declare class Team {
|
|
13
14
|
id: number;
|
|
@@ -31,6 +32,7 @@ export declare class Team {
|
|
|
31
32
|
teamModalities: TeamModality[];
|
|
32
33
|
joinRequests: TeamJoinRequest[];
|
|
33
34
|
trophies: TeamTrophy[];
|
|
35
|
+
sponsors: TeamSponsor[];
|
|
34
36
|
tournamentRegistrationRequests: TournamentRegistrationRequest[];
|
|
35
37
|
tournamentInvitations: TournamentTeamInvitation[];
|
|
36
38
|
mergeHistory: TeamPlayerMergeHistory[];
|
|
@@ -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,+EAA+E,CAAC;AACvH,OAAO,EAAE,6BAA6B,EAAE,MAAM,2FAA2F,CAAC;AAC1I,OAAO,EAAE,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AAC3H,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,qBAOa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,YAAY,EAAE,MAAM,CAAC;IAGrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpB,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAG7B,YAAY,CAAC,EAAE,MAAM,CAAC;IAG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-team/player-team.entity.js";
|
|
|
28
28
|
import { TeamAccessCode } from "../team-access-codes/team-access-code.entity.js";
|
|
29
29
|
import { TeamJoinRequest } from "../team-join-requests/team-join-request.entity.js";
|
|
30
30
|
import { TeamModality } from "../team-modality/team-modality.entity.js";
|
|
31
|
+
import { TeamSponsor } from "../team-sponsor/team-sponsor.entity.js";
|
|
31
32
|
import { TeamTrophy } from "../team-trophy/team-trophy.entity.js";
|
|
32
33
|
let Team = class {
|
|
33
34
|
constructor() {
|
|
@@ -122,6 +123,9 @@ __decorateClass([
|
|
|
122
123
|
__decorateClass([
|
|
123
124
|
OneToMany(() => TeamTrophy, (t) => t.team)
|
|
124
125
|
], Team.prototype, "trophies", 2);
|
|
126
|
+
__decorateClass([
|
|
127
|
+
OneToMany(() => TeamSponsor, (sponsor) => sponsor.team)
|
|
128
|
+
], Team.prototype, "sponsors", 2);
|
|
125
129
|
__decorateClass([
|
|
126
130
|
OneToMany(() => TournamentRegistrationRequest, (request) => request.team)
|
|
127
131
|
], Team.prototype, "tournamentRegistrationRequests", 2);
|