@natrave/shared-entities 1.12.0 → 1.14.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.
@@ -8,7 +8,7 @@ import { Notification, NotificationDelivery, NotificationDispatchLog, PushDevice
8
8
  import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
9
9
  import { Player, PlayerPersonalData, PlayerPosition } from '../players';
10
10
  import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamModality, TeamTrophy } from '../teams';
11
- import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamContactAttempt } from '../tournaments';
11
+ import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamContactAttempt, TournamentTeamInvitation } from '../tournaments';
12
12
  import { UserDomainEvent, UserEventView } from '../user-events';
13
- 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 TournamentPenaltyShootout | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | 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 TournamentTeamContactAttempt | typeof Address | typeof OrganizationUserBillingInfo | typeof Organization | 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 UserVerification | typeof FeedActivitySubject | typeof FeedActivity | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
13
+ 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 TournamentPenaltyShootout | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | 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 TournamentTeamContactAttempt | typeof TournamentTeamInvitation | typeof Address | typeof OrganizationUserBillingInfo | typeof Organization | 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 UserVerification | typeof FeedActivitySubject | typeof FeedActivity | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
14
14
  //# 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,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EACL,UAAU,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,YAAY,EACZ,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,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,+BAA+B,EAE/B,cAAc,EACd,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,+vDAuE7B,CAAC"}
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,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EACL,UAAU,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,YAAY,EACZ,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,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,+BAA+B,EAE/B,cAAc,EACd,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,iyDAwE7B,CAAC"}
@@ -56,7 +56,8 @@ import {
56
56
  TournamentRegulationFieldStatus,
57
57
  TournamentRule,
58
58
  TournamentTeam,
59
- TournamentTeamContactAttempt
59
+ TournamentTeamContactAttempt,
60
+ TournamentTeamInvitation
60
61
  } from "../tournaments/index.js";
61
62
  import { UserDomainEvent, UserEventView } from "../user-events/index.js";
62
63
  const DATABASE_ENTITIES = [
@@ -104,6 +105,7 @@ const DATABASE_ENTITIES = [
104
105
  TournamentRegulationFieldStatus,
105
106
  TournamentRule,
106
107
  TournamentTeam,
108
+ TournamentTeamInvitation,
107
109
  User,
108
110
  UserAuthProvider,
109
111
  UserPaymentProvider,
@@ -3,6 +3,7 @@ import { BrazilianState } from '../../common/enums/brazilian-state.enum';
3
3
  import { TeamPlayerMergeHistory } from '../../history-logs/team-player-merge-history/team-player-merge-history.entity';
4
4
  import { TournamentRegistrationRequest } from '../../tournaments/tournament-registration-requests/tournament-registration-request.entity';
5
5
  import { TournamentTeamContactAttempt } from '../../tournaments/tournament-team-contact-attempts/tournament-team-contact-attempt.entity';
6
+ import { TournamentTeamInvitation } from '../../tournaments/tournament-team-invitations/tournament-team-invitation.entity';
6
7
  import { TournamentTeam } from '../../tournaments/tournament-teams/tournament-team.entity';
7
8
  import { PlayerTeam } from '../player-team/player-team.entity';
8
9
  import { TeamAccessCode } from '../team-access-codes/team-access-code.entity';
@@ -13,8 +14,8 @@ export declare class Team {
13
14
  id: number;
14
15
  name: string;
15
16
  abbreviation: string;
16
- city: string;
17
- state: BrazilianState;
17
+ city: string | null;
18
+ state: BrazilianState | null;
18
19
  neighborhood?: string;
19
20
  instagramAccount?: string;
20
21
  teamLogoUrl?: string;
@@ -32,6 +33,7 @@ export declare class Team {
32
33
  tournamentContactAttempts: TournamentTeamContactAttempt[];
33
34
  trophies: TeamTrophy[];
34
35
  tournamentRegistrationRequests: TournamentRegistrationRequest[];
36
+ tournamentInvitations: TournamentTeamInvitation[];
35
37
  mergeHistory: TeamPlayerMergeHistory[];
36
38
  }
37
39
  //# sourceMappingURL=team.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"team.entity.d.ts","sourceRoot":"","sources":["../../../src/teams/teams/team.entity.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AAW,CAAC,EAAE,MAAM,CAAC;IAQrB,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAQhC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IASrB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,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,qBAAqB,EAAE,wBAAwB,EAAE,CAAC;IAGlD,YAAY,EAAE,sBAAsB,EAAE,CAAC;CACxC"}
@@ -23,6 +23,7 @@ import { BrazilianState } from "../../common/enums/brazilian-state.enum.js";
23
23
  import { TeamPlayerMergeHistory } from "../../history-logs/team-player-merge-history/team-player-merge-history.entity.js";
24
24
  import { TournamentRegistrationRequest } from "../../tournaments/tournament-registration-requests/tournament-registration-request.entity.js";
25
25
  import { TournamentTeamContactAttempt } from "../../tournaments/tournament-team-contact-attempts/tournament-team-contact-attempt.entity.js";
26
+ import { TournamentTeamInvitation } from "../../tournaments/tournament-team-invitations/tournament-team-invitation.entity.js";
26
27
  import { TournamentTeam } from "../../tournaments/tournament-teams/tournament-team.entity.js";
27
28
  import { PlayerTeam } from "../player-team/player-team.entity.js";
28
29
  import { TeamAccessCode } from "../team-access-codes/team-access-code.entity.js";
@@ -44,10 +45,10 @@ __decorateClass([
44
45
  Column({ type: "varchar", length: 3, comment: "Sigla (n\xE3o-\xFAnica)." })
45
46
  ], Team.prototype, "abbreviation", 2);
46
47
  __decorateClass([
47
- Column({ type: "varchar", length: 100 })
48
+ Column({ type: "varchar", length: 100, nullable: true })
48
49
  ], Team.prototype, "city", 2);
49
50
  __decorateClass([
50
- Column({ type: "enum", enum: BrazilianState })
51
+ Column({ type: "enum", enum: BrazilianState, nullable: true })
51
52
  ], Team.prototype, "state", 2);
52
53
  __decorateClass([
53
54
  Column({ type: "varchar", length: 100, nullable: true })
@@ -120,6 +121,9 @@ __decorateClass([
120
121
  __decorateClass([
121
122
  OneToMany(() => TournamentRegistrationRequest, (request) => request.team)
122
123
  ], Team.prototype, "tournamentRegistrationRequests", 2);
124
+ __decorateClass([
125
+ OneToMany(() => TournamentTeamInvitation, (invitation) => invitation.team)
126
+ ], Team.prototype, "tournamentInvitations", 2);
123
127
  __decorateClass([
124
128
  OneToMany(() => TeamPlayerMergeHistory, (t) => t.team)
125
129
  ], Team.prototype, "mergeHistory", 2);
@@ -26,6 +26,7 @@ export * from './tournament-regulation-field-statuses';
26
26
  export * from './tournament-regulation-fields';
27
27
  export * from './tournament-rules';
28
28
  export * from './tournament-team-contact-attempts';
29
+ export * from './tournament-team-invitations';
29
30
  export * from './tournament-teams';
30
31
  export * from './tournaments';
31
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA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;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
@@ -26,5 +26,6 @@ export * from "./tournament-regulation-field-statuses/index.js";
26
26
  export * from "./tournament-regulation-fields/index.js";
27
27
  export * from "./tournament-rules/index.js";
28
28
  export * from "./tournament-team-contact-attempts/index.js";
29
+ export * from "./tournament-team-invitations/index.js";
29
30
  export * from "./tournament-teams/index.js";
30
31
  export * from "./tournaments/index.js";
@@ -0,0 +1,3 @@
1
+ export { TournamentTeamInvitation } from './tournament-team-invitation.entity';
2
+ export { TournamentTeamInvitationStatus } from './tournament-team-invitation-status.enum';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-team-invitations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { TournamentTeamInvitation } from "./tournament-team-invitation.entity.js";
2
+ import { TournamentTeamInvitationStatus } from "./tournament-team-invitation-status.enum.js";
3
+ export {
4
+ TournamentTeamInvitation,
5
+ TournamentTeamInvitationStatus
6
+ };
@@ -0,0 +1,7 @@
1
+ export declare enum TournamentTeamInvitationStatus {
2
+ PENDING = "pending",
3
+ ACCEPTED = "accepted",
4
+ REJECTED = "rejected",
5
+ CANCELLED = "cancelled"
6
+ }
7
+ //# sourceMappingURL=tournament-team-invitation-status.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-team-invitation-status.enum.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-team-invitations/tournament-team-invitation-status.enum.ts"],"names":[],"mappings":"AAWA,oBAAY,8BAA8B;IACxC,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB"}
@@ -0,0 +1,10 @@
1
+ var TournamentTeamInvitationStatus = /* @__PURE__ */ ((TournamentTeamInvitationStatus2) => {
2
+ TournamentTeamInvitationStatus2["PENDING"] = "pending";
3
+ TournamentTeamInvitationStatus2["ACCEPTED"] = "accepted";
4
+ TournamentTeamInvitationStatus2["REJECTED"] = "rejected";
5
+ TournamentTeamInvitationStatus2["CANCELLED"] = "cancelled";
6
+ return TournamentTeamInvitationStatus2;
7
+ })(TournamentTeamInvitationStatus || {});
8
+ export {
9
+ TournamentTeamInvitationStatus
10
+ };
@@ -0,0 +1,17 @@
1
+ import { Team } from '../../teams';
2
+ import { Tournament } from '../tournaments';
3
+ import { TournamentTeamInvitationStatus } from './tournament-team-invitation-status.enum';
4
+ export declare class TournamentTeamInvitation {
5
+ id: number;
6
+ tournamentId: number;
7
+ teamId: number;
8
+ status: TournamentTeamInvitationStatus;
9
+ invitedByUserId: string | null;
10
+ message: string | null;
11
+ respondedAt: Date | null;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ tournament: Tournament;
15
+ team: Team;
16
+ }
17
+ //# sourceMappingURL=tournament-team-invitation.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-team-invitation.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-team-invitations/tournament-team-invitation.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAiB1F,qBAYa,wBAAwB;IAInC,EAAE,EAAE,MAAM,CAAC;IAGX,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;IAQf,MAAM,EAAE,8BAA8B,CAAC;IASvC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ/B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAQvB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAOzB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;IAMvB,IAAI,EAAE,IAAI,CAAC;CACZ"}
@@ -0,0 +1,107 @@
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
+ Entity,
15
+ Index,
16
+ JoinColumn,
17
+ ManyToOne,
18
+ PrimaryGeneratedColumn,
19
+ UpdateDateColumn
20
+ } from "typeorm";
21
+ import { Team } from "../../teams/index.js";
22
+ import { Tournament } from "../tournaments/index.js";
23
+ import { TournamentTeamInvitationStatus } from "./tournament-team-invitation-status.enum.js";
24
+ let TournamentTeamInvitation = class {
25
+ };
26
+ __decorateClass([
27
+ PrimaryGeneratedColumn({
28
+ comment: "Identificador \xFAnico do convite de time para o campeonato."
29
+ })
30
+ ], TournamentTeamInvitation.prototype, "id", 2);
31
+ __decorateClass([
32
+ Column({ name: "tournament_id", type: "int", comment: "FK tournaments.id" })
33
+ ], TournamentTeamInvitation.prototype, "tournamentId", 2);
34
+ __decorateClass([
35
+ Column({ name: "team_id", type: "int", comment: "FK teams.id (time existente convidado)" })
36
+ ], TournamentTeamInvitation.prototype, "teamId", 2);
37
+ __decorateClass([
38
+ Column({
39
+ type: "enum",
40
+ enum: TournamentTeamInvitationStatus,
41
+ default: TournamentTeamInvitationStatus.PENDING,
42
+ comment: "Status atual do convite."
43
+ })
44
+ ], TournamentTeamInvitation.prototype, "status", 2);
45
+ __decorateClass([
46
+ Column({
47
+ name: "invited_by_user_id",
48
+ type: "uuid",
49
+ nullable: true,
50
+ comment: "Organizador (central-auth organization_users.id) que enviou o convite. Sem FK por cruzar bounded contexts."
51
+ })
52
+ ], TournamentTeamInvitation.prototype, "invitedByUserId", 2);
53
+ __decorateClass([
54
+ Column({
55
+ type: "varchar",
56
+ length: 255,
57
+ nullable: true,
58
+ comment: "Mensagem opcional enviada pelo organizador junto ao convite."
59
+ })
60
+ ], TournamentTeamInvitation.prototype, "message", 2);
61
+ __decorateClass([
62
+ Column({
63
+ name: "responded_at",
64
+ type: "timestamptz",
65
+ nullable: true,
66
+ comment: "Data/hora em que o time respondeu (aceitou/recusou) ou o convite foi cancelado."
67
+ })
68
+ ], TournamentTeamInvitation.prototype, "respondedAt", 2);
69
+ __decorateClass([
70
+ CreateDateColumn({
71
+ name: "created_at",
72
+ type: "timestamptz",
73
+ comment: "Data de envio do convite."
74
+ })
75
+ ], TournamentTeamInvitation.prototype, "createdAt", 2);
76
+ __decorateClass([
77
+ UpdateDateColumn({
78
+ name: "updated_at",
79
+ type: "timestamptz",
80
+ comment: "Data da \xFAltima atualiza\xE7\xE3o do convite."
81
+ })
82
+ ], TournamentTeamInvitation.prototype, "updatedAt", 2);
83
+ __decorateClass([
84
+ ManyToOne(() => Tournament, (tournament) => tournament.teamInvitations, {
85
+ onDelete: "CASCADE"
86
+ }),
87
+ JoinColumn({ name: "tournament_id" })
88
+ ], TournamentTeamInvitation.prototype, "tournament", 2);
89
+ __decorateClass([
90
+ ManyToOne(() => Team, (team) => team.tournamentInvitations, {
91
+ onDelete: "CASCADE"
92
+ }),
93
+ JoinColumn({ name: "team_id" })
94
+ ], TournamentTeamInvitation.prototype, "team", 2);
95
+ TournamentTeamInvitation = __decorateClass([
96
+ Entity("tournament_team_invitations"),
97
+ Index("IDX_tti_tournament_status_team", ["tournamentId", "status", "teamId"]),
98
+ Index("IDX_tti_team_status", ["teamId", "status"]),
99
+ Index("IDX_tti_invited_by", ["invitedByUserId"]),
100
+ Index("UX_tti_pending_unique", ["tournamentId", "teamId"], {
101
+ unique: true,
102
+ where: "status = 'pending'"
103
+ })
104
+ ], TournamentTeamInvitation);
105
+ export {
106
+ TournamentTeamInvitation
107
+ };
@@ -21,6 +21,7 @@ import { TournamentRegistrationRequest } from '../tournament-registration-reques
21
21
  import { TournamentRegistrationRequirement } from '../tournament-registration-requirements';
22
22
  import { TournamentRule } from '../tournament-rules';
23
23
  import { TournamentTeamContactAttempt } from '../tournament-team-contact-attempts';
24
+ import { TournamentTeamInvitation } from '../tournament-team-invitations';
24
25
  import { TournamentTeam } from '../tournament-teams';
25
26
  import { TournamentPublicationStatus } from './enums/tournament-publication-status.enum';
26
27
  import { TournamentRegulationMode } from './enums/tournament-regulation-mode.enum';
@@ -73,6 +74,7 @@ export declare class Tournament implements TournamentContract {
73
74
  matchRules: TournamentMatchRule[];
74
75
  contacts: TournamentContact[];
75
76
  registrationRequests: TournamentRegistrationRequest[];
77
+ teamInvitations: TournamentTeamInvitation[];
76
78
  registrationRequirements: TournamentRegistrationRequirement[];
77
79
  contactAttempts: TournamentTeamContactAttempt[];
78
80
  allowedPhones: TournamentAllowedPhone[];
@@ -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,EA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IAMnC,SAAS,EAAE,YAAY,CAAC;IAGxB,KAAK,EAAE,cAAc,EAAE,CAAC;IAGxB,MAAM,EAAE,eAAe,EAAE,CAAC;IAG1B,IAAI,EAAE,cAAc,CAAC;IAGrB,UAAU,EAAE,oBAAoB,CAAC;IAGjC,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;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,eAAe,EAAE,wBAAwB,EAAE,CAAC;IAG5C,wBAAwB,EAAE,iCAAiC,EAAE,CAAC;IAG9D,eAAe,EAAE,4BAA4B,EAAE,CAAC;IAGhD,aAAa,EAAE,sBAAsB,EAAE,CAAC;IAKxC,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
@@ -48,6 +48,7 @@ import { TournamentRegistrationRequest } from "../tournament-registration-reques
48
48
  import { TournamentRegistrationRequirement } from "../tournament-registration-requirements/index.js";
49
49
  import { TournamentRule } from "../tournament-rules/index.js";
50
50
  import { TournamentTeamContactAttempt } from "../tournament-team-contact-attempts/index.js";
51
+ import { TournamentTeamInvitation } from "../tournament-team-invitations/index.js";
51
52
  import { TournamentTeam } from "../tournament-teams/index.js";
52
53
  import { TournamentPublicationStatus } from "./enums/tournament-publication-status.enum.js";
53
54
  import { TournamentRegulationMode } from "./enums/tournament-regulation-mode.enum.js";
@@ -312,6 +313,9 @@ __decorateClass([
312
313
  __decorateClass([
313
314
  OneToMany(() => TournamentRegistrationRequest, (request) => request.tournament)
314
315
  ], Tournament.prototype, "registrationRequests", 2);
316
+ __decorateClass([
317
+ OneToMany(() => TournamentTeamInvitation, (invitation) => invitation.tournament)
318
+ ], Tournament.prototype, "teamInvitations", 2);
315
319
  __decorateClass([
316
320
  OneToMany(() => TournamentRegistrationRequirement, (requirement) => requirement.tournament)
317
321
  ], Tournament.prototype, "registrationRequirements", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",