@natrave/shared-entities 8.18.0 → 8.20.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.
Files changed (34) hide show
  1. package/dist/database-entities/index.d.ts +2 -2
  2. package/dist/database-entities/index.d.ts.map +1 -1
  3. package/dist/database-entities/index.js +6 -0
  4. package/dist/tournaments/index.d.ts +3 -0
  5. package/dist/tournaments/index.d.ts.map +1 -1
  6. package/dist/tournaments/index.js +3 -0
  7. package/dist/tournaments/referees/index.d.ts +2 -0
  8. package/dist/tournaments/referees/index.d.ts.map +1 -0
  9. package/dist/tournaments/referees/index.js +4 -0
  10. package/dist/tournaments/referees/referee.entity.d.ts +12 -0
  11. package/dist/tournaments/referees/referee.entity.d.ts.map +1 -0
  12. package/dist/tournaments/referees/referee.entity.js +74 -0
  13. package/dist/tournaments/tournament-match-player-numbers/enums/match-player-number-source.enum.d.ts +6 -0
  14. package/dist/tournaments/tournament-match-player-numbers/enums/match-player-number-source.enum.d.ts.map +1 -0
  15. package/dist/tournaments/tournament-match-player-numbers/enums/match-player-number-source.enum.js +9 -0
  16. package/dist/tournaments/tournament-match-player-numbers/index.d.ts +3 -0
  17. package/dist/tournaments/tournament-match-player-numbers/index.d.ts.map +1 -0
  18. package/dist/tournaments/tournament-match-player-numbers/index.js +6 -0
  19. package/dist/tournaments/tournament-match-player-numbers/tournament-match-player-number.entity.d.ts +19 -0
  20. package/dist/tournaments/tournament-match-player-numbers/tournament-match-player-number.entity.d.ts.map +1 -0
  21. package/dist/tournaments/tournament-match-player-numbers/tournament-match-player-number.entity.js +108 -0
  22. package/dist/tournaments/tournament-match-referees/enums/referee-role.enum.d.ts +9 -0
  23. package/dist/tournaments/tournament-match-referees/enums/referee-role.enum.d.ts.map +1 -0
  24. package/dist/tournaments/tournament-match-referees/enums/referee-role.enum.js +12 -0
  25. package/dist/tournaments/tournament-match-referees/index.d.ts +3 -0
  26. package/dist/tournaments/tournament-match-referees/index.d.ts.map +1 -0
  27. package/dist/tournaments/tournament-match-referees/index.js +6 -0
  28. package/dist/tournaments/tournament-match-referees/tournament-match-referee.entity.d.ts +16 -0
  29. package/dist/tournaments/tournament-match-referees/tournament-match-referee.entity.d.ts.map +1 -0
  30. package/dist/tournaments/tournament-match-referees/tournament-match-referee.entity.js +100 -0
  31. package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +4 -0
  32. package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +1 -1
  33. package/dist/tournaments/tournament-matches/tournament-match.entity.js +8 -0
  34. package/package.json +1 -1
@@ -10,7 +10,7 @@ import { Notification, NotificationDelivery, NotificationDispatchLog, PushDevice
10
10
  import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
11
11
  import { Player, PlayerPersonalData, PlayerPosition } from '../players';
12
12
  import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamKit, TeamModality, TeamSponsor, TeamTrophy } from '../teams';
13
- import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTieBreakConfig } from '../tournaments';
13
+ import { Referee, RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTieBreakConfig } from '../tournaments';
14
14
  import { UserDomainEvent, UserEventView } from '../user-events';
15
- 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 TournamentMatchKit | 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 TeamKit | 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 FinanceAuditEvent | typeof FinanceEntryItem | typeof FinanceEntry | typeof FinanceLedger | typeof UserDomainEvent | typeof UserEventView)[];
15
+ 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 TournamentMatchKit | typeof TournamentMatchSubstitution | typeof TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof TournamentMatchReferee | typeof Referee | 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 TournamentMatchPlayerNumber | 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 TeamKit | 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 FinanceAuditEvent | typeof FinanceEntryItem | typeof FinanceEntry | typeof FinanceLedger | typeof UserDomainEvent | typeof UserEventView)[];
16
16
  //# 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,CAA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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,4/EAmG7B,CAAC"}
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,KAAK,EACL,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC9F,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,OAAO,EACP,YAAY,EACZ,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,OAAO,EACP,oBAAoB,EACpB,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,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,klFAsG7B,CAAC"}
@@ -58,6 +58,7 @@ import {
58
58
  TeamTrophy
59
59
  } from "../teams/index.js";
60
60
  import {
61
+ Referee,
61
62
  RegulationExtraction,
62
63
  Tournament,
63
64
  TournamentAllowedPhone,
@@ -78,6 +79,8 @@ import {
78
79
  TournamentMatchCard,
79
80
  TournamentMatchGoal,
80
81
  TournamentMatchKit,
82
+ TournamentMatchPlayerNumber,
83
+ TournamentMatchReferee,
81
84
  TournamentMatchRule,
82
85
  TournamentMatchSchema,
83
86
  TournamentMatchSubstitution,
@@ -133,6 +136,7 @@ const DATABASE_ENTITIES = [
133
136
  PasswordReset,
134
137
  Payment,
135
138
  PaymentProvider,
139
+ Referee,
136
140
  RefreshToken,
137
141
  RegulationExtraction,
138
142
  Tournament,
@@ -154,6 +158,8 @@ const DATABASE_ENTITIES = [
154
158
  TournamentMatchSubstitution,
155
159
  TournamentMatchTimeout,
156
160
  TournamentMatchKit,
161
+ TournamentMatchPlayerNumber,
162
+ TournamentMatchReferee,
157
163
  TournamentPenaltyShootout,
158
164
  TournamentMatchSchema,
159
165
  TournamentPayment,
@@ -4,6 +4,7 @@ export { GOAL_METHODS_BY_KIND, GoalMethod, resolveGoalKind } from './enums/goal-
4
4
  export { MatchEventType } from './enums/match-event-type.enum';
5
5
  export { DEFAULT_TIE_BREAK_ORDER, TieBreakCriterion } from './enums/tie-break-criterion.enum';
6
6
  export { TimeoutScope } from './enums/timeout-scope.enum';
7
+ export * from './referees';
7
8
  export * from './regulation-extractions';
8
9
  export * from './tournament-allowed-phone';
9
10
  export * from './tournament-billing-outbox';
@@ -21,6 +22,8 @@ export * from './tournament-groups';
21
22
  export * from './tournament-match-cards';
22
23
  export * from './tournament-match-goals';
23
24
  export * from './tournament-match-kits';
25
+ export * from './tournament-match-player-numbers';
26
+ export * from './tournament-match-referees';
24
27
  export * from './tournament-match-rules';
25
28
  export * from './tournament-match-schemas';
26
29
  export * from './tournament-match-substitutions';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC5E,YAAY,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,uBAA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wC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC"}
@@ -3,6 +3,7 @@ import { GOAL_METHODS_BY_KIND, GoalMethod, resolveGoalKind } from "./enums/goal-
3
3
  import { MatchEventType } from "./enums/match-event-type.enum.js";
4
4
  import { DEFAULT_TIE_BREAK_ORDER, TieBreakCriterion } from "./enums/tie-break-criterion.enum.js";
5
5
  import { TimeoutScope } from "./enums/timeout-scope.enum.js";
6
+ export * from "./referees/index.js";
6
7
  export * from "./regulation-extractions/index.js";
7
8
  export * from "./tournament-allowed-phone/index.js";
8
9
  export * from "./tournament-billing-outbox/index.js";
@@ -20,6 +21,8 @@ export * from "./tournament-groups/index.js";
20
21
  export * from "./tournament-match-cards/index.js";
21
22
  export * from "./tournament-match-goals/index.js";
22
23
  export * from "./tournament-match-kits/index.js";
24
+ export * from "./tournament-match-player-numbers/index.js";
25
+ export * from "./tournament-match-referees/index.js";
23
26
  export * from "./tournament-match-rules/index.js";
24
27
  export * from "./tournament-match-schemas/index.js";
25
28
  export * from "./tournament-match-substitutions/index.js";
@@ -0,0 +1,2 @@
1
+ export { Referee } from './referee.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/referees/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Referee } from "./referee.entity.js";
2
+ export {
3
+ Referee
4
+ };
@@ -0,0 +1,12 @@
1
+ import { TournamentMatchReferee } from '../tournament-match-referees/tournament-match-referee.entity';
2
+ export declare class Referee {
3
+ id: number;
4
+ organizationId: number;
5
+ name: string;
6
+ createdByOrganizationUserId: number | null;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ deletedAt: Date | null;
10
+ assignments?: TournamentMatchReferee[];
11
+ }
12
+ //# sourceMappingURL=referee.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referee.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/referees/referee.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAyBtG,qBAOa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAOvB,IAAI,EAAE,MAAM,CAAC;IAUb,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3C,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAKvB,WAAW,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACxC"}
@@ -0,0 +1,74 @@
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
+ DeleteDateColumn,
16
+ Entity,
17
+ Index,
18
+ OneToMany,
19
+ PrimaryGeneratedColumn,
20
+ UpdateDateColumn
21
+ } from "typeorm";
22
+ import { TournamentMatchReferee } from "../tournament-match-referees/tournament-match-referee.entity.js";
23
+ let Referee = class {
24
+ };
25
+ __decorateClass([
26
+ PrimaryGeneratedColumn({ comment: "Identificador \xFAnico da pessoa no cadastro." })
27
+ ], Referee.prototype, "id", 2);
28
+ __decorateClass([
29
+ Column({
30
+ name: "organization_id",
31
+ type: "int",
32
+ comment: "Organiza\xE7\xE3o dona do cadastro. Sem FK declarada (tabela de outro contexto)."
33
+ })
34
+ ], Referee.prototype, "organizationId", 2);
35
+ __decorateClass([
36
+ Column({
37
+ type: "varchar",
38
+ length: 80,
39
+ comment: "Nome como aparece na s\xFAmula. \xDAnico por organiza\xE7\xE3o entre os ativos."
40
+ })
41
+ ], Referee.prototype, "name", 2);
42
+ __decorateClass([
43
+ Column({
44
+ name: "created_by_organization_user_id",
45
+ type: "int",
46
+ nullable: true,
47
+ comment: "organization_users.id de quem cadastrou. Sem FK declarada (tabela de outro servi\xE7o), no mesmo padr\xE3o de tournament_matches.created_by_organization_user_id."
48
+ })
49
+ ], Referee.prototype, "createdByOrganizationUserId", 2);
50
+ __decorateClass([
51
+ CreateDateColumn({ name: "created_at", type: "timestamptz" })
52
+ ], Referee.prototype, "createdAt", 2);
53
+ __decorateClass([
54
+ UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
55
+ ], Referee.prototype, "updatedAt", 2);
56
+ __decorateClass([
57
+ DeleteDateColumn({
58
+ name: "deleted_at",
59
+ type: "timestamptz",
60
+ nullable: true,
61
+ comment: "Exclus\xE3o l\xF3gica: some do cadastro, mas a escala antiga continua apontando."
62
+ })
63
+ ], Referee.prototype, "deletedAt", 2);
64
+ __decorateClass([
65
+ OneToMany(() => TournamentMatchReferee, (assignment) => assignment.referee)
66
+ ], Referee.prototype, "assignments", 2);
67
+ Referee = __decorateClass([
68
+ Entity("referees"),
69
+ Index("UQ_referees_organization_name", { synchronize: false }),
70
+ Check("chk_referees_name_not_blank", `char_length(btrim(name)) >= 2`)
71
+ ], Referee);
72
+ export {
73
+ Referee
74
+ };
@@ -0,0 +1,6 @@
1
+ export declare enum MatchPlayerNumberSource {
2
+ ORGANIZER = "organizer",
3
+ TEAM = "team",
4
+ LAST_MATCH = "last_match"
5
+ }
6
+ //# sourceMappingURL=match-player-number-source.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-player-number-source.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-match-player-numbers/enums/match-player-number-source.enum.ts"],"names":[],"mappings":"AAYA,oBAAY,uBAAuB;IAEjC,SAAS,cAAc;IAGvB,IAAI,SAAS;IAGb,UAAU,eAAe;CAC1B"}
@@ -0,0 +1,9 @@
1
+ var MatchPlayerNumberSource = /* @__PURE__ */ ((MatchPlayerNumberSource2) => {
2
+ MatchPlayerNumberSource2["ORGANIZER"] = "organizer";
3
+ MatchPlayerNumberSource2["TEAM"] = "team";
4
+ MatchPlayerNumberSource2["LAST_MATCH"] = "last_match";
5
+ return MatchPlayerNumberSource2;
6
+ })(MatchPlayerNumberSource || {});
7
+ export {
8
+ MatchPlayerNumberSource
9
+ };
@@ -0,0 +1,3 @@
1
+ export { MatchPlayerNumberSource } from './enums/match-player-number-source.enum';
2
+ export { TournamentMatchPlayerNumber } from './tournament-match-player-number.entity';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-player-numbers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { MatchPlayerNumberSource } from "./enums/match-player-number-source.enum.js";
2
+ import { TournamentMatchPlayerNumber } from "./tournament-match-player-number.entity.js";
3
+ export {
4
+ MatchPlayerNumberSource,
5
+ TournamentMatchPlayerNumber
6
+ };
@@ -0,0 +1,19 @@
1
+ import { PlayerTeam } from '../../teams';
2
+ import { TournamentMatch } from '../tournament-matches';
3
+ import { TournamentTeam } from '../tournament-teams';
4
+ import { MatchPlayerNumberSource } from './enums/match-player-number-source.enum';
5
+ export declare class TournamentMatchPlayerNumber {
6
+ id: number;
7
+ matchId: number;
8
+ tournamentTeamId: number;
9
+ playerTeamId: number;
10
+ shirtNumber: number;
11
+ source: MatchPlayerNumberSource;
12
+ setByOrganizationUserId: number | null;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ match?: TournamentMatch;
16
+ team?: TournamentTeam;
17
+ playerTeam?: PlayerTeam;
18
+ }
19
+ //# sourceMappingURL=tournament-match-player-number.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-match-player-number.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-player-numbers/tournament-match-player-number.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AA2BlF,qBAQa,2BAA2B;IAEtC,EAAE,EAAE,MAAM,CAAC;IAGX,OAAO,EAAE,MAAM,CAAC;IAOhB,gBAAgB,EAAE,MAAM,CAAC;IAOzB,YAAY,EAAE,MAAM,CAAC;IAOrB,WAAW,EAAE,MAAM,CAAC;IAQpB,MAAM,EAAE,uBAAuB,CAAC;IAUhC,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvC,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,KAAK,CAAC,EAAE,eAAe,CAAC;IAOxB,IAAI,CAAC,EAAE,cAAc,CAAC;IAOtB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
@@ -0,0 +1,108 @@
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
+ Index,
17
+ JoinColumn,
18
+ ManyToOne,
19
+ PrimaryGeneratedColumn,
20
+ UpdateDateColumn
21
+ } from "typeorm";
22
+ import { PlayerTeam } from "../../teams/index.js";
23
+ import { TournamentMatch } from "../tournament-matches/index.js";
24
+ import { TournamentTeam } from "../tournament-teams/index.js";
25
+ import { MatchPlayerNumberSource } from "./enums/match-player-number-source.enum.js";
26
+ let TournamentMatchPlayerNumber = class {
27
+ };
28
+ __decorateClass([
29
+ PrimaryGeneratedColumn()
30
+ ], TournamentMatchPlayerNumber.prototype, "id", 2);
31
+ __decorateClass([
32
+ Column({ name: "match_id", type: "int", comment: "Partida em que o n\xFAmero \xE9 usado." })
33
+ ], TournamentMatchPlayerNumber.prototype, "matchId", 2);
34
+ __decorateClass([
35
+ Column({
36
+ name: "tournament_team_id",
37
+ type: "int",
38
+ comment: "Time (dentro da categoria) pelo qual o jogador joga a partida."
39
+ })
40
+ ], TournamentMatchPlayerNumber.prototype, "tournamentTeamId", 2);
41
+ __decorateClass([
42
+ Column({
43
+ name: "player_team_id",
44
+ type: "int",
45
+ comment: "V\xEDnculo do jogador com o time (player_teams.id)."
46
+ })
47
+ ], TournamentMatchPlayerNumber.prototype, "playerTeamId", 2);
48
+ __decorateClass([
49
+ Column({
50
+ name: "shirt_number",
51
+ type: "smallint",
52
+ comment: "N\xFAmero da camisa nesta partida, de 0 a 99."
53
+ })
54
+ ], TournamentMatchPlayerNumber.prototype, "shirtNumber", 2);
55
+ __decorateClass([
56
+ Column({
57
+ type: "enum",
58
+ enum: MatchPlayerNumberSource,
59
+ comment: "Quem gravou a linha: o organizador, ou o in\xEDcio/encerramento da partida herdando um n\xFAmero."
60
+ })
61
+ ], TournamentMatchPlayerNumber.prototype, "source", 2);
62
+ __decorateClass([
63
+ Column({
64
+ name: "set_by_organization_user_id",
65
+ type: "int",
66
+ nullable: true,
67
+ comment: "organization_users.id de quem definiu o n\xFAmero. Sem FK declarada (tabela de outro servi\xE7o), no mesmo padr\xE3o de tournament_match_kits. NULL quando a linha foi herdada."
68
+ })
69
+ ], TournamentMatchPlayerNumber.prototype, "setByOrganizationUserId", 2);
70
+ __decorateClass([
71
+ CreateDateColumn({ name: "created_at", type: "timestamptz" })
72
+ ], TournamentMatchPlayerNumber.prototype, "createdAt", 2);
73
+ __decorateClass([
74
+ UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
75
+ ], TournamentMatchPlayerNumber.prototype, "updatedAt", 2);
76
+ __decorateClass([
77
+ ManyToOne(() => TournamentMatch, (match) => match.playerNumbers, { onDelete: "CASCADE" }),
78
+ JoinColumn({
79
+ name: "match_id",
80
+ foreignKeyConstraintName: "fk_tournament_match_player_numbers_match"
81
+ })
82
+ ], TournamentMatchPlayerNumber.prototype, "match", 2);
83
+ __decorateClass([
84
+ ManyToOne(() => TournamentTeam, { onDelete: "CASCADE" }),
85
+ JoinColumn({
86
+ name: "tournament_team_id",
87
+ foreignKeyConstraintName: "fk_tournament_match_player_numbers_team"
88
+ })
89
+ ], TournamentMatchPlayerNumber.prototype, "team", 2);
90
+ __decorateClass([
91
+ ManyToOne(() => PlayerTeam, { onDelete: "CASCADE" }),
92
+ JoinColumn({
93
+ name: "player_team_id",
94
+ foreignKeyConstraintName: "fk_tournament_match_player_numbers_player_team"
95
+ })
96
+ ], TournamentMatchPlayerNumber.prototype, "playerTeam", 2);
97
+ TournamentMatchPlayerNumber = __decorateClass([
98
+ Entity("tournament_match_player_numbers"),
99
+ Index("UQ_tournament_match_player_numbers_match_player", ["matchId", "playerTeamId"], {
100
+ unique: true
101
+ }),
102
+ Index("IDX_tournament_match_player_numbers_player_match", ["playerTeamId", "matchId"]),
103
+ Index("IDX_tournament_match_player_numbers_team", ["tournamentTeamId"]),
104
+ Check("chk_tournament_match_player_numbers_range", `shirt_number BETWEEN 0 AND 99`)
105
+ ], TournamentMatchPlayerNumber);
106
+ export {
107
+ TournamentMatchPlayerNumber
108
+ };
@@ -0,0 +1,9 @@
1
+ export declare enum RefereeRole {
2
+ REFEREE = "referee",
3
+ ASSISTANT_REFEREE_1 = "assistant_referee_1",
4
+ ASSISTANT_REFEREE_2 = "assistant_referee_2",
5
+ FOURTH_OFFICIAL = "fourth_official",
6
+ SCOREKEEPER = "scorekeeper",
7
+ TIMEKEEPER = "timekeeper"
8
+ }
9
+ //# sourceMappingURL=referee-role.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referee-role.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-match-referees/enums/referee-role.enum.ts"],"names":[],"mappings":"AAWA,oBAAY,WAAW;IAErB,OAAO,YAAY;IAGnB,mBAAmB,wBAAwB;IAG3C,mBAAmB,wBAAwB;IAG3C,eAAe,oBAAoB;IAGnC,WAAW,gBAAgB;IAG3B,UAAU,eAAe;CAC1B"}
@@ -0,0 +1,12 @@
1
+ var RefereeRole = /* @__PURE__ */ ((RefereeRole2) => {
2
+ RefereeRole2["REFEREE"] = "referee";
3
+ RefereeRole2["ASSISTANT_REFEREE_1"] = "assistant_referee_1";
4
+ RefereeRole2["ASSISTANT_REFEREE_2"] = "assistant_referee_2";
5
+ RefereeRole2["FOURTH_OFFICIAL"] = "fourth_official";
6
+ RefereeRole2["SCOREKEEPER"] = "scorekeeper";
7
+ RefereeRole2["TIMEKEEPER"] = "timekeeper";
8
+ return RefereeRole2;
9
+ })(RefereeRole || {});
10
+ export {
11
+ RefereeRole
12
+ };
@@ -0,0 +1,3 @@
1
+ export { RefereeRole } from './enums/referee-role.enum';
2
+ export { TournamentMatchReferee } from './tournament-match-referee.entity';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-referees/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { RefereeRole } from "./enums/referee-role.enum.js";
2
+ import { TournamentMatchReferee } from "./tournament-match-referee.entity.js";
3
+ export {
4
+ RefereeRole,
5
+ TournamentMatchReferee
6
+ };
@@ -0,0 +1,16 @@
1
+ import { Referee } from '../referees/referee.entity';
2
+ import { TournamentMatch } from '../tournament-matches';
3
+ import { RefereeRole } from './enums/referee-role.enum';
4
+ export declare class TournamentMatchReferee {
5
+ id: number;
6
+ matchId: number;
7
+ role: RefereeRole;
8
+ refereeId: number | null;
9
+ refereeName: string;
10
+ setByOrganizationUserId: number | null;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ match?: TournamentMatch;
14
+ referee?: Referee | null;
15
+ }
16
+ //# sourceMappingURL=tournament-match-referee.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-match-referee.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-referees/tournament-match-referee.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAmBxD,qBAca,sBAAsB;IAEjC,EAAE,EAAE,MAAM,CAAC;IAGX,OAAO,EAAE,MAAM,CAAC;IAQhB,IAAI,EAAE,WAAW,CAAC;IAQlB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,WAAW,EAAE,MAAM,CAAC;IAUpB,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvC,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,KAAK,CAAC,EAAE,eAAe,CAAC;IAUxB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B"}
@@ -0,0 +1,100 @@
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 { Referee } from "../referees/referee.entity.js";
22
+ import { TournamentMatch } from "../tournament-matches/index.js";
23
+ import { RefereeRole } from "./enums/referee-role.enum.js";
24
+ let TournamentMatchReferee = class {
25
+ };
26
+ __decorateClass([
27
+ PrimaryGeneratedColumn({ comment: "Identificador \xFAnico da linha da escala." })
28
+ ], TournamentMatchReferee.prototype, "id", 2);
29
+ __decorateClass([
30
+ Column({ name: "match_id", type: "int", comment: "Partida escalada." })
31
+ ], TournamentMatchReferee.prototype, "matchId", 2);
32
+ __decorateClass([
33
+ Column({
34
+ type: "enum",
35
+ enum: RefereeRole,
36
+ enumName: "tournament_match_referees_role_enum",
37
+ comment: "Papel na partida. A ordem do enum \xE9 a ordem da escala na s\xFAmula."
38
+ })
39
+ ], TournamentMatchReferee.prototype, "role", 2);
40
+ __decorateClass([
41
+ Column({
42
+ name: "referee_id",
43
+ type: "int",
44
+ nullable: true,
45
+ comment: "Pessoa do cadastro (referees.id). NULL se a linha do cadastro deixar de existir."
46
+ })
47
+ ], TournamentMatchReferee.prototype, "refereeId", 2);
48
+ __decorateClass([
49
+ Column({
50
+ name: "referee_name",
51
+ type: "varchar",
52
+ length: 80,
53
+ comment: "C\xF3pia do nome na hora da escala; \xE9 o que a s\xFAmula mostra."
54
+ })
55
+ ], TournamentMatchReferee.prototype, "refereeName", 2);
56
+ __decorateClass([
57
+ Column({
58
+ name: "set_by_organization_user_id",
59
+ type: "int",
60
+ nullable: true,
61
+ comment: "organization_users.id de quem escalou. Sem FK declarada (tabela de outro servi\xE7o), no mesmo padr\xE3o de tournament_match_kits.set_by_organization_user_id."
62
+ })
63
+ ], TournamentMatchReferee.prototype, "setByOrganizationUserId", 2);
64
+ __decorateClass([
65
+ CreateDateColumn({ name: "created_at", type: "timestamptz" })
66
+ ], TournamentMatchReferee.prototype, "createdAt", 2);
67
+ __decorateClass([
68
+ UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
69
+ ], TournamentMatchReferee.prototype, "updatedAt", 2);
70
+ __decorateClass([
71
+ ManyToOne(() => TournamentMatch, (match) => match.referees, { onDelete: "CASCADE" }),
72
+ JoinColumn({
73
+ name: "match_id",
74
+ foreignKeyConstraintName: "fk_tournament_match_referees_match"
75
+ })
76
+ ], TournamentMatchReferee.prototype, "match", 2);
77
+ __decorateClass([
78
+ ManyToOne(() => Referee, (referee) => referee.assignments, {
79
+ onDelete: "SET NULL",
80
+ nullable: true
81
+ }),
82
+ JoinColumn({
83
+ name: "referee_id",
84
+ foreignKeyConstraintName: "fk_tournament_match_referees_referee"
85
+ })
86
+ ], TournamentMatchReferee.prototype, "referee", 2);
87
+ TournamentMatchReferee = __decorateClass([
88
+ Entity("tournament_match_referees"),
89
+ Index("UQ_tournament_match_referees_match_role", ["matchId", "role"], { unique: true }),
90
+ Index("UQ_tournament_match_referees_match_referee", ["matchId", "refereeId"], {
91
+ unique: true,
92
+ where: '"referee_id" IS NOT NULL'
93
+ }),
94
+ Index("IDX_tournament_match_referees_referee", ["refereeId"], {
95
+ where: '"referee_id" IS NOT NULL'
96
+ })
97
+ ], TournamentMatchReferee);
98
+ export {
99
+ TournamentMatchReferee
100
+ };
@@ -4,6 +4,8 @@ import { TournamentFacility } from '../tournament-facilities';
4
4
  import { TournamentMatchCard } from '../tournament-match-cards';
5
5
  import { TournamentMatchGoal } from '../tournament-match-goals';
6
6
  import { TournamentMatchKit } from '../tournament-match-kits';
7
+ import { TournamentMatchPlayerNumber } from '../tournament-match-player-numbers';
8
+ import { TournamentMatchReferee } from '../tournament-match-referees';
7
9
  import { TournamentMatchSubstitution } from '../tournament-match-substitutions';
8
10
  import { TournamentMatchTimeout } from '../tournament-match-timeouts';
9
11
  import { TournamentPenaltyShootout } from '../tournament-penalty-shootouts';
@@ -47,6 +49,8 @@ export declare class TournamentMatch {
47
49
  substitutions: TournamentMatchSubstitution[];
48
50
  timeouts: TournamentMatchTimeout[];
49
51
  kits: TournamentMatchKit[];
52
+ playerNumbers: TournamentMatchPlayerNumber[];
53
+ referees: TournamentMatchReferee[];
50
54
  firstLegBrackets: TournamentBracket[];
51
55
  secondLegBrackets: TournamentBracket[];
52
56
  penaltyShootout: TournamentPenaltyShootout;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-match.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/tournament-match.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAevF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAA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AAE,cAAc,CAAC;IAMzB,QAAQ,EAAE,cAAc,CAAC;IAIzB,eAAe,CAAC,EAAE,cAAc,CAAC;IAGjC,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,aAAa,EAAE,2BAA2B,EAAE,CAAC;IAG7C,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IAGnC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAG3B,aAAa,EAAE,2BAA2B,EAAE,CAAC;IAG7C,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IAGnC,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IAGtC,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;IAGvC,eAAe,EAAE,yBAAyB,CAAC;CAC5C"}
@@ -27,6 +27,8 @@ import { TournamentFacility } from "../tournament-facilities/index.js";
27
27
  import { TournamentMatchCard } from "../tournament-match-cards/index.js";
28
28
  import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
29
29
  import { TournamentMatchKit } from "../tournament-match-kits/index.js";
30
+ import { TournamentMatchPlayerNumber } from "../tournament-match-player-numbers/index.js";
31
+ import { TournamentMatchReferee } from "../tournament-match-referees/index.js";
30
32
  import { TournamentMatchSubstitution } from "../tournament-match-substitutions/index.js";
31
33
  import { TournamentMatchTimeout } from "../tournament-match-timeouts/index.js";
32
34
  import { TournamentPenaltyShootout } from "../tournament-penalty-shootouts/index.js";
@@ -273,6 +275,12 @@ __decorateClass([
273
275
  __decorateClass([
274
276
  OneToMany(() => TournamentMatchKit, (kit) => kit.match)
275
277
  ], TournamentMatch.prototype, "kits", 2);
278
+ __decorateClass([
279
+ OneToMany(() => TournamentMatchPlayerNumber, (number) => number.match)
280
+ ], TournamentMatch.prototype, "playerNumbers", 2);
281
+ __decorateClass([
282
+ OneToMany(() => TournamentMatchReferee, (assignment) => assignment.match)
283
+ ], TournamentMatch.prototype, "referees", 2);
276
284
  __decorateClass([
277
285
  OneToMany(() => TournamentBracket, (bracket) => bracket.firstLegMatch)
278
286
  ], TournamentMatch.prototype, "firstLegBrackets", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "8.18.0",
3
+ "version": "8.20.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",