@natrave/shared-entities 8.17.0 → 8.19.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 +4 -0
- package/dist/finance/enums/finance-entry-category.enum.d.ts +7 -0
- package/dist/finance/enums/finance-entry-category.enum.d.ts.map +1 -1
- package/dist/finance/enums/finance-entry-category.enum.js +7 -0
- package/dist/finance/finance-entries/finance-entry.entity.d.ts +1 -0
- package/dist/finance/finance-entries/finance-entry.entity.d.ts.map +1 -1
- package/dist/finance/finance-entries/finance-entry.entity.js +9 -0
- package/dist/tournaments/index.d.ts +2 -0
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +2 -0
- package/dist/tournaments/referees/index.d.ts +2 -0
- package/dist/tournaments/referees/index.d.ts.map +1 -0
- package/dist/tournaments/referees/index.js +4 -0
- package/dist/tournaments/referees/referee.entity.d.ts +12 -0
- package/dist/tournaments/referees/referee.entity.d.ts.map +1 -0
- package/dist/tournaments/referees/referee.entity.js +74 -0
- package/dist/tournaments/tournament-match-referees/enums/referee-role.enum.d.ts +9 -0
- package/dist/tournaments/tournament-match-referees/enums/referee-role.enum.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-referees/enums/referee-role.enum.js +12 -0
- package/dist/tournaments/tournament-match-referees/index.d.ts +3 -0
- package/dist/tournaments/tournament-match-referees/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-referees/index.js +6 -0
- package/dist/tournaments/tournament-match-referees/tournament-match-referee.entity.d.ts +16 -0
- package/dist/tournaments/tournament-match-referees/tournament-match-referee.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-referees/tournament-match-referee.entity.js +100 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +2 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-matches/tournament-match.entity.js +4 -0
- 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, 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 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,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,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,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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"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,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,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,6iFAqG7B,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,7 @@ import {
|
|
|
78
79
|
TournamentMatchCard,
|
|
79
80
|
TournamentMatchGoal,
|
|
80
81
|
TournamentMatchKit,
|
|
82
|
+
TournamentMatchReferee,
|
|
81
83
|
TournamentMatchRule,
|
|
82
84
|
TournamentMatchSchema,
|
|
83
85
|
TournamentMatchSubstitution,
|
|
@@ -133,6 +135,7 @@ const DATABASE_ENTITIES = [
|
|
|
133
135
|
PasswordReset,
|
|
134
136
|
Payment,
|
|
135
137
|
PaymentProvider,
|
|
138
|
+
Referee,
|
|
136
139
|
RefreshToken,
|
|
137
140
|
RegulationExtraction,
|
|
138
141
|
Tournament,
|
|
@@ -154,6 +157,7 @@ const DATABASE_ENTITIES = [
|
|
|
154
157
|
TournamentMatchSubstitution,
|
|
155
158
|
TournamentMatchTimeout,
|
|
156
159
|
TournamentMatchKit,
|
|
160
|
+
TournamentMatchReferee,
|
|
157
161
|
TournamentPenaltyShootout,
|
|
158
162
|
TournamentMatchSchema,
|
|
159
163
|
TournamentPayment,
|
|
@@ -4,14 +4,21 @@ export declare enum FinanceEntryCategory {
|
|
|
4
4
|
REFEREE = "referee",
|
|
5
5
|
SPONSORSHIP = "sponsorship",
|
|
6
6
|
RAFFLE = "raffle",
|
|
7
|
+
DONATION = "donation",
|
|
7
8
|
BAR = "bar",
|
|
8
9
|
TICKET = "ticket",
|
|
10
|
+
FEE = "fee",
|
|
9
11
|
FIELD_RENTAL = "field_rental",
|
|
10
12
|
PRIZE = "prize",
|
|
11
13
|
TROPHIES = "trophies",
|
|
12
14
|
UNIFORMS = "uniforms",
|
|
13
15
|
EQUIPMENT = "equipment",
|
|
14
16
|
MARKETING = "marketing",
|
|
17
|
+
SECURITY = "security",
|
|
18
|
+
MEDICAL = "medical",
|
|
19
|
+
BANNERS = "banners",
|
|
20
|
+
TRANSPORT = "transport",
|
|
21
|
+
BROADCAST = "broadcast",
|
|
15
22
|
PLATFORM_LICENSE = "platform_license",
|
|
16
23
|
OTHER = "other"
|
|
17
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance-entry-category.enum.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/finance-entry-category.enum.ts"],"names":[],"mappings":"AAUA,oBAAY,oBAAoB;IAE9B,YAAY,iBAAiB;IAE7B,mBAAmB,wBAAwB;IAE3C,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"finance-entry-category.enum.d.ts","sourceRoot":"","sources":["../../../src/finance/enums/finance-entry-category.enum.ts"],"names":[],"mappings":"AAUA,oBAAY,oBAAoB;IAE9B,YAAY,iBAAiB;IAE7B,mBAAmB,wBAAwB;IAE3C,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IAEjB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,MAAM,WAAW;IAEjB,GAAG,QAAQ;IAEX,YAAY,iBAAiB;IAE7B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,QAAQ,aAAa;IAErB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;IAEvB,SAAS,cAAc;IAEvB,gBAAgB,qBAAqB;IAErC,KAAK,UAAU;CAChB"}
|
|
@@ -4,14 +4,21 @@ var FinanceEntryCategory = /* @__PURE__ */ ((FinanceEntryCategory2) => {
|
|
|
4
4
|
FinanceEntryCategory2["REFEREE"] = "referee";
|
|
5
5
|
FinanceEntryCategory2["SPONSORSHIP"] = "sponsorship";
|
|
6
6
|
FinanceEntryCategory2["RAFFLE"] = "raffle";
|
|
7
|
+
FinanceEntryCategory2["DONATION"] = "donation";
|
|
7
8
|
FinanceEntryCategory2["BAR"] = "bar";
|
|
8
9
|
FinanceEntryCategory2["TICKET"] = "ticket";
|
|
10
|
+
FinanceEntryCategory2["FEE"] = "fee";
|
|
9
11
|
FinanceEntryCategory2["FIELD_RENTAL"] = "field_rental";
|
|
10
12
|
FinanceEntryCategory2["PRIZE"] = "prize";
|
|
11
13
|
FinanceEntryCategory2["TROPHIES"] = "trophies";
|
|
12
14
|
FinanceEntryCategory2["UNIFORMS"] = "uniforms";
|
|
13
15
|
FinanceEntryCategory2["EQUIPMENT"] = "equipment";
|
|
14
16
|
FinanceEntryCategory2["MARKETING"] = "marketing";
|
|
17
|
+
FinanceEntryCategory2["SECURITY"] = "security";
|
|
18
|
+
FinanceEntryCategory2["MEDICAL"] = "medical";
|
|
19
|
+
FinanceEntryCategory2["BANNERS"] = "banners";
|
|
20
|
+
FinanceEntryCategory2["TRANSPORT"] = "transport";
|
|
21
|
+
FinanceEntryCategory2["BROADCAST"] = "broadcast";
|
|
15
22
|
FinanceEntryCategory2["PLATFORM_LICENSE"] = "platform_license";
|
|
16
23
|
FinanceEntryCategory2["OTHER"] = "other";
|
|
17
24
|
return FinanceEntryCategory2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance-entry.entity.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-entries/finance-entry.entity.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AA0BzE,qBAgBa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAOX,eAAe,EAAE,MAAM,CAAC;IAQxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"finance-entry.entity.d.ts","sourceRoot":"","sources":["../../../src/finance/finance-entries/finance-entry.entity.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AA0BzE,qBAgBa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAOX,eAAe,EAAE,MAAM,CAAC;IAQxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAW1B,WAAW,EAAE,MAAM,EAAE,CAAC;IAGtB,SAAS,EAAE,gBAAgB,CAAC;IAG5B,QAAQ,EAAE,oBAAoB,CAAC;IAG/B,MAAM,EAAE,kBAAkB,CAAC;IAS3B,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAC;IASrC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,aAAa,EAAE,MAAM,CAAC;IAQtB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ/B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAS7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,OAAO,EAAE,MAAM,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,MAAM,CAAC,EAAE,aAAa,CAAC;IAGvB,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC5B"}
|
|
@@ -51,6 +51,15 @@ __decorateClass([
|
|
|
51
51
|
comment: "Categoria (tournaments.id), sem FK. Nulo = vale para o campeonato todo."
|
|
52
52
|
})
|
|
53
53
|
], FinanceEntry.prototype, "categoryId", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
Column({
|
|
56
|
+
name: "category_ids",
|
|
57
|
+
type: "int",
|
|
58
|
+
array: true,
|
|
59
|
+
default: () => "'{}'",
|
|
60
|
+
comment: "Categorias de um lan\xE7amento manual (tournaments.id), sem FK. Vazio = usa category_id; com uma s\xF3, category_id tamb\xE9m a guarda."
|
|
61
|
+
})
|
|
62
|
+
], FinanceEntry.prototype, "categoryIds", 2);
|
|
54
63
|
__decorateClass([
|
|
55
64
|
Column({ type: "varchar", length: 16, comment: "income | expense." })
|
|
56
65
|
], FinanceEntry.prototype, "direction", 2);
|
|
@@ -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,7 @@ 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-referees';
|
|
24
26
|
export * from './tournament-match-rules';
|
|
25
27
|
export * from './tournament-match-schemas';
|
|
26
28
|
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,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AAC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Ac,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,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,7 @@ 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-referees/index.js";
|
|
23
25
|
export * from "./tournament-match-rules/index.js";
|
|
24
26
|
export * from "./tournament-match-schemas/index.js";
|
|
25
27
|
export * from "./tournament-match-substitutions/index.js";
|
|
@@ -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,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,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 @@
|
|
|
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,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,7 @@ 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 { TournamentMatchReferee } from '../tournament-match-referees';
|
|
7
8
|
import { TournamentMatchSubstitution } from '../tournament-match-substitutions';
|
|
8
9
|
import { TournamentMatchTimeout } from '../tournament-match-timeouts';
|
|
9
10
|
import { TournamentPenaltyShootout } from '../tournament-penalty-shootouts';
|
|
@@ -47,6 +48,7 @@ export declare class TournamentMatch {
|
|
|
47
48
|
substitutions: TournamentMatchSubstitution[];
|
|
48
49
|
timeouts: TournamentMatchTimeout[];
|
|
49
50
|
kits: TournamentMatchKit[];
|
|
51
|
+
referees: TournamentMatchReferee[];
|
|
50
52
|
firstLegBrackets: TournamentBracket[];
|
|
51
53
|
secondLegBrackets: TournamentBracket[];
|
|
52
54
|
penaltyShootout: TournamentPenaltyShootout;
|
|
@@ -1 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G,IAAI,CAAC;IAGjC,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAG3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAS9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAU5B,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC;IAS/B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAUvB,mBAAmB,EAAE,OAAO,CAAC;IAW7B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAU/B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAUjC,gBAAgB,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAY/C,cAAc,EAAE,mBAAmB,CAAC;IAWpC,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAM9B,UAAU,EAAE,UAAU,CAAC;IAMvB,QAAQ,EAAE,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,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,7 @@ 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 { TournamentMatchReferee } from "../tournament-match-referees/index.js";
|
|
30
31
|
import { TournamentMatchSubstitution } from "../tournament-match-substitutions/index.js";
|
|
31
32
|
import { TournamentMatchTimeout } from "../tournament-match-timeouts/index.js";
|
|
32
33
|
import { TournamentPenaltyShootout } from "../tournament-penalty-shootouts/index.js";
|
|
@@ -273,6 +274,9 @@ __decorateClass([
|
|
|
273
274
|
__decorateClass([
|
|
274
275
|
OneToMany(() => TournamentMatchKit, (kit) => kit.match)
|
|
275
276
|
], TournamentMatch.prototype, "kits", 2);
|
|
277
|
+
__decorateClass([
|
|
278
|
+
OneToMany(() => TournamentMatchReferee, (assignment) => assignment.match)
|
|
279
|
+
], TournamentMatch.prototype, "referees", 2);
|
|
276
280
|
__decorateClass([
|
|
277
281
|
OneToMany(() => TournamentBracket, (bracket) => bracket.firstLegMatch)
|
|
278
282
|
], TournamentMatch.prototype, "firstLegBrackets", 2);
|