@natrave/shared-entities 7.27.0 → 7.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database-entities/index.d.ts +2 -2
- package/dist/database-entities/index.d.ts.map +1 -1
- package/dist/database-entities/index.js +2 -0
- package/dist/tournaments/index.d.ts +1 -0
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +1 -0
- package/dist/tournaments/tournament-match-substitutions/index.d.ts +2 -0
- package/dist/tournaments/tournament-match-substitutions/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-substitutions/index.js +4 -0
- package/dist/tournaments/tournament-match-substitutions/tournament-match-substitution.entity.d.ts +24 -0
- package/dist/tournaments/tournament-match-substitutions/tournament-match-substitution.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-substitutions/tournament-match-substitution.entity.js +156 -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/dist/tournaments/tournament-players/tournament-player.entity.d.ts +3 -0
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-players/tournament-player.entity.js +7 -0
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts +2 -0
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-teams/tournament-team.entity.js +4 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { Notification, NotificationDelivery, NotificationDispatchLog, PushDevice
|
|
|
9
9
|
import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
|
|
10
10
|
import { Player, PlayerPersonalData, PlayerPosition } from '../players';
|
|
11
11
|
import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamModality, TeamTrophy } from '../teams';
|
|
12
|
-
import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTieBreakConfig } from '../tournaments';
|
|
12
|
+
import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTieBreakConfig } from '../tournaments';
|
|
13
13
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
14
|
-
export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentPenaltyShootout | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | typeof TournamentTieBreakConfig | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamModality | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionItem | typeof BillingSubscription | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivitySubject | typeof FeedActivity | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
|
|
14
|
+
export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentMatchSubstitution | typeof TournamentPenaltyShootout | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | typeof TournamentTieBreakConfig | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamModality | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionItem | typeof BillingSubscription | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivitySubject | typeof FeedActivity | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBA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,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":[],"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,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,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,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,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,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,+vEAyF7B,CAAC"}
|
|
@@ -75,6 +75,7 @@ import {
|
|
|
75
75
|
TournamentMatchGoal,
|
|
76
76
|
TournamentMatchRule,
|
|
77
77
|
TournamentMatchSchema,
|
|
78
|
+
TournamentMatchSubstitution,
|
|
78
79
|
TournamentPayment,
|
|
79
80
|
TournamentPenaltyShootout,
|
|
80
81
|
TournamentPlayer,
|
|
@@ -138,6 +139,7 @@ const DATABASE_ENTITIES = [
|
|
|
138
139
|
TeamPlayerMergeHistory,
|
|
139
140
|
TournamentMatchCard,
|
|
140
141
|
TournamentMatchGoal,
|
|
142
|
+
TournamentMatchSubstitution,
|
|
141
143
|
TournamentPenaltyShootout,
|
|
142
144
|
TournamentMatchSchema,
|
|
143
145
|
TournamentPayment,
|
|
@@ -20,6 +20,7 @@ export * from './tournament-match-cards';
|
|
|
20
20
|
export * from './tournament-match-goals';
|
|
21
21
|
export * from './tournament-match-rules';
|
|
22
22
|
export * from './tournament-match-schemas';
|
|
23
|
+
export * from './tournament-match-substitutions';
|
|
23
24
|
export * from './tournament-matches';
|
|
24
25
|
export * from './tournament-matches-availability';
|
|
25
26
|
export * from './tournament-payments';
|
|
@@ -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,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC9F,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;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,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,cA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Ac,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"}
|
|
@@ -19,6 +19,7 @@ export * from "./tournament-match-cards/index.js";
|
|
|
19
19
|
export * from "./tournament-match-goals/index.js";
|
|
20
20
|
export * from "./tournament-match-rules/index.js";
|
|
21
21
|
export * from "./tournament-match-schemas/index.js";
|
|
22
|
+
export * from "./tournament-match-substitutions/index.js";
|
|
22
23
|
export * from "./tournament-matches/index.js";
|
|
23
24
|
export * from "./tournament-matches-availability/index.js";
|
|
24
25
|
export * from "./tournament-payments/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-substitutions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC"}
|
package/dist/tournaments/tournament-match-substitutions/tournament-match-substitution.entity.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MatchPeriod } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { TournamentMatch } from '../tournament-matches';
|
|
3
|
+
import { TournamentPlayer } from '../tournament-players';
|
|
4
|
+
import { TournamentTeam } from '../tournament-teams';
|
|
5
|
+
export declare class TournamentMatchSubstitution {
|
|
6
|
+
id: number;
|
|
7
|
+
matchId: number;
|
|
8
|
+
teamId: number;
|
|
9
|
+
minute?: number;
|
|
10
|
+
period?: MatchPeriod;
|
|
11
|
+
playerOutId: number | null;
|
|
12
|
+
playerOutName: string | null;
|
|
13
|
+
playerInId: number | null;
|
|
14
|
+
playerInName: string | null;
|
|
15
|
+
note: string | null;
|
|
16
|
+
deletedAt: Date | null;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
match?: TournamentMatch;
|
|
20
|
+
team?: TournamentTeam;
|
|
21
|
+
playerOut?: TournamentPlayer | null;
|
|
22
|
+
playerIn?: TournamentPlayer | null;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=tournament-match-substitution.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match-substitution.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-substitutions/tournament-match-substitution.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAajE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAqCrD,qBAiBa,2BAA2B;IAItC,EAAE,EAAE,MAAM,CAAC;IAOX,OAAO,EAAE,MAAM,CAAC;IAOhB,MAAM,EAAE,MAAM,CAAC;IAOf,MAAM,CAAC,EAAE,MAAM,CAAC;IAQhB,MAAM,CAAC,EAAE,WAAW,CAAC;IASrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAS3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAS7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAS1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ5B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAOvB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAMhB,KAAK,CAAC,EAAE,eAAe,CAAC;IAIxB,IAAI,CAAC,EAAE,cAAc,CAAC;IAItB,SAAS,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAIpC,QAAQ,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACpC"}
|
package/dist/tournaments/tournament-match-substitutions/tournament-match-substitution.entity.js
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
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 { MatchPeriod } from "@natrave/tournaments-service-types";
|
|
12
|
+
import {
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
DeleteDateColumn,
|
|
16
|
+
Entity,
|
|
17
|
+
Index,
|
|
18
|
+
JoinColumn,
|
|
19
|
+
ManyToOne,
|
|
20
|
+
PrimaryGeneratedColumn,
|
|
21
|
+
UpdateDateColumn
|
|
22
|
+
} from "typeorm";
|
|
23
|
+
import { TournamentMatch } from "../tournament-matches/index.js";
|
|
24
|
+
import { TournamentPlayer } from "../tournament-players/index.js";
|
|
25
|
+
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
26
|
+
let TournamentMatchSubstitution = class {
|
|
27
|
+
};
|
|
28
|
+
__decorateClass([
|
|
29
|
+
PrimaryGeneratedColumn({
|
|
30
|
+
comment: "Identificador \xFAnico do evento de substitui\xE7\xE3o."
|
|
31
|
+
})
|
|
32
|
+
], TournamentMatchSubstitution.prototype, "id", 2);
|
|
33
|
+
__decorateClass([
|
|
34
|
+
Column({
|
|
35
|
+
name: "match_id",
|
|
36
|
+
type: "int",
|
|
37
|
+
comment: "Identificador da partida em que a substitui\xE7\xE3o foi registrada."
|
|
38
|
+
})
|
|
39
|
+
], TournamentMatchSubstitution.prototype, "matchId", 2);
|
|
40
|
+
__decorateClass([
|
|
41
|
+
Column({
|
|
42
|
+
name: "team_id",
|
|
43
|
+
type: "int",
|
|
44
|
+
comment: "Identificador do time que fez a substitui\xE7\xE3o."
|
|
45
|
+
})
|
|
46
|
+
], TournamentMatchSubstitution.prototype, "teamId", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
Column({
|
|
49
|
+
type: "int",
|
|
50
|
+
nullable: true,
|
|
51
|
+
comment: "Minuto da partida em que a substitui\xE7\xE3o aconteceu (opcional)."
|
|
52
|
+
})
|
|
53
|
+
], TournamentMatchSubstitution.prototype, "minute", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
Column({
|
|
56
|
+
type: "enum",
|
|
57
|
+
enum: MatchPeriod,
|
|
58
|
+
nullable: true,
|
|
59
|
+
comment: "Per\xEDodo da partida em que a substitui\xE7\xE3o aconteceu (ex: 1\xBA tempo, 2\xBA tempo)."
|
|
60
|
+
})
|
|
61
|
+
], TournamentMatchSubstitution.prototype, "period", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
Column({
|
|
64
|
+
name: "player_out_id",
|
|
65
|
+
type: "int",
|
|
66
|
+
nullable: true,
|
|
67
|
+
comment: "Identificador do jogador convocado que saiu; nulo quando ningu\xE9m saiu ou quem saiu n\xE3o foi identificado. Mutuamente exclusivo com player_out_name (CHECK na migration)."
|
|
68
|
+
})
|
|
69
|
+
], TournamentMatchSubstitution.prototype, "playerOutId", 2);
|
|
70
|
+
__decorateClass([
|
|
71
|
+
Column({
|
|
72
|
+
name: "player_out_name",
|
|
73
|
+
type: "text",
|
|
74
|
+
nullable: true,
|
|
75
|
+
comment: "Nome digitado pelo organizador quando quem saiu n\xE3o est\xE1 no elenco. Mutuamente exclusivo com player_out_id (CHECK na migration). N\xE3o conta para nenhuma estat\xEDstica individual."
|
|
76
|
+
})
|
|
77
|
+
], TournamentMatchSubstitution.prototype, "playerOutName", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
Column({
|
|
80
|
+
name: "player_in_id",
|
|
81
|
+
type: "int",
|
|
82
|
+
nullable: true,
|
|
83
|
+
comment: "Identificador do jogador convocado que entrou; nulo quando ningu\xE9m entrou ou quem entrou n\xE3o foi identificado. Mutuamente exclusivo com player_in_name (CHECK na migration)."
|
|
84
|
+
})
|
|
85
|
+
], TournamentMatchSubstitution.prototype, "playerInId", 2);
|
|
86
|
+
__decorateClass([
|
|
87
|
+
Column({
|
|
88
|
+
name: "player_in_name",
|
|
89
|
+
type: "text",
|
|
90
|
+
nullable: true,
|
|
91
|
+
comment: "Nome digitado pelo organizador quando quem entrou n\xE3o est\xE1 no elenco. Mutuamente exclusivo com player_in_id (CHECK na migration). N\xE3o conta para nenhuma estat\xEDstica individual."
|
|
92
|
+
})
|
|
93
|
+
], TournamentMatchSubstitution.prototype, "playerInName", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
Column({
|
|
96
|
+
type: "text",
|
|
97
|
+
nullable: true,
|
|
98
|
+
comment: "Observa\xE7\xE3o livre do organizador sobre o lance. Vis\xEDvel apenas para a organiza\xE7\xE3o dona do campeonato."
|
|
99
|
+
})
|
|
100
|
+
], TournamentMatchSubstitution.prototype, "note", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
DeleteDateColumn({
|
|
103
|
+
name: "deleted_at",
|
|
104
|
+
type: "timestamptz",
|
|
105
|
+
nullable: true,
|
|
106
|
+
comment: "Data e hora em que a substitui\xE7\xE3o foi deletada (soft delete), se aplic\xE1vel."
|
|
107
|
+
})
|
|
108
|
+
], TournamentMatchSubstitution.prototype, "deletedAt", 2);
|
|
109
|
+
__decorateClass([
|
|
110
|
+
CreateDateColumn({
|
|
111
|
+
name: "created_at",
|
|
112
|
+
type: "timestamptz",
|
|
113
|
+
comment: "Data de cria\xE7\xE3o do registro da substitui\xE7\xE3o."
|
|
114
|
+
})
|
|
115
|
+
], TournamentMatchSubstitution.prototype, "createdAt", 2);
|
|
116
|
+
__decorateClass([
|
|
117
|
+
UpdateDateColumn({
|
|
118
|
+
name: "updated_at",
|
|
119
|
+
type: "timestamptz",
|
|
120
|
+
comment: "Data da \xFAltima atualiza\xE7\xE3o do registro da substitui\xE7\xE3o."
|
|
121
|
+
})
|
|
122
|
+
], TournamentMatchSubstitution.prototype, "updatedAt", 2);
|
|
123
|
+
__decorateClass([
|
|
124
|
+
ManyToOne(() => TournamentMatch, (match) => match.substitutions, { onDelete: "CASCADE" }),
|
|
125
|
+
JoinColumn({ name: "match_id" })
|
|
126
|
+
], TournamentMatchSubstitution.prototype, "match", 2);
|
|
127
|
+
__decorateClass([
|
|
128
|
+
ManyToOne(() => TournamentTeam, (team) => team.substitutions, { onDelete: "CASCADE" }),
|
|
129
|
+
JoinColumn({ name: "team_id" })
|
|
130
|
+
], TournamentMatchSubstitution.prototype, "team", 2);
|
|
131
|
+
__decorateClass([
|
|
132
|
+
ManyToOne(() => TournamentPlayer, (player) => player.substitutionsOut, { onDelete: "CASCADE" }),
|
|
133
|
+
JoinColumn({ name: "player_out_id" })
|
|
134
|
+
], TournamentMatchSubstitution.prototype, "playerOut", 2);
|
|
135
|
+
__decorateClass([
|
|
136
|
+
ManyToOne(() => TournamentPlayer, (player) => player.substitutionsIn, { onDelete: "CASCADE" }),
|
|
137
|
+
JoinColumn({ name: "player_in_id" })
|
|
138
|
+
], TournamentMatchSubstitution.prototype, "playerIn", 2);
|
|
139
|
+
TournamentMatchSubstitution = __decorateClass([
|
|
140
|
+
Entity("tournament_match_substitutions"),
|
|
141
|
+
Index(["matchId"]),
|
|
142
|
+
Index(["teamId"]),
|
|
143
|
+
Index("IDX_tournament_match_subs_match_team", ["matchId", "teamId", "deletedAt"]),
|
|
144
|
+
Index("idx_tournament_subs_active_only", ["matchId", "teamId"], {
|
|
145
|
+
where: '"deleted_at" IS NULL'
|
|
146
|
+
}),
|
|
147
|
+
Index("idx_tournament_subs_player_in_active", ["playerInId"], {
|
|
148
|
+
where: '"player_in_id" IS NOT NULL AND "deleted_at" IS NULL'
|
|
149
|
+
}),
|
|
150
|
+
Index("idx_tournament_subs_player_out_active", ["playerOutId"], {
|
|
151
|
+
where: '"player_out_id" IS NOT NULL AND "deleted_at" IS NULL'
|
|
152
|
+
})
|
|
153
|
+
], TournamentMatchSubstitution);
|
|
154
|
+
export {
|
|
155
|
+
TournamentMatchSubstitution
|
|
156
|
+
};
|
|
@@ -3,6 +3,7 @@ import { TournamentBracket } from '../tournament-brackets';
|
|
|
3
3
|
import { TournamentFacility } from '../tournament-facilities';
|
|
4
4
|
import { TournamentMatchCard } from '../tournament-match-cards';
|
|
5
5
|
import { TournamentMatchGoal } from '../tournament-match-goals';
|
|
6
|
+
import { TournamentMatchSubstitution } from '../tournament-match-substitutions';
|
|
6
7
|
import { TournamentPenaltyShootout } from '../tournament-penalty-shootouts';
|
|
7
8
|
import { TournamentTeam } from '../tournament-teams';
|
|
8
9
|
import { Tournament } from '../tournaments';
|
|
@@ -37,6 +38,7 @@ export declare class TournamentMatch implements ITournamentMatch {
|
|
|
37
38
|
forfeitedByTeam?: TournamentTeam;
|
|
38
39
|
goals: TournamentMatchGoal[];
|
|
39
40
|
cards: TournamentMatchCard[];
|
|
41
|
+
substitutions: TournamentMatchSubstitution[];
|
|
40
42
|
firstLegBrackets: TournamentBracket[];
|
|
41
43
|
secondLegBrackets: TournamentBracket[];
|
|
42
44
|
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,EACL,gBAAgB,EAChB,WAAW,EACX,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAe5C,OAAO,EAAE,i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import { TournamentBracket } from "../tournament-brackets/index.js";
|
|
|
29
29
|
import { TournamentFacility } from "../tournament-facilities/index.js";
|
|
30
30
|
import { TournamentMatchCard } from "../tournament-match-cards/index.js";
|
|
31
31
|
import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
|
|
32
|
+
import { TournamentMatchSubstitution } from "../tournament-match-substitutions/index.js";
|
|
32
33
|
import { TournamentPenaltyShootout } from "../tournament-penalty-shootouts/index.js";
|
|
33
34
|
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
34
35
|
import { Tournament } from "../tournaments/index.js";
|
|
@@ -238,6 +239,9 @@ __decorateClass([
|
|
|
238
239
|
__decorateClass([
|
|
239
240
|
OneToMany(() => TournamentMatchCard, (card) => card.match)
|
|
240
241
|
], TournamentMatch.prototype, "cards", 2);
|
|
242
|
+
__decorateClass([
|
|
243
|
+
OneToMany(() => TournamentMatchSubstitution, (substitution) => substitution.match)
|
|
244
|
+
], TournamentMatch.prototype, "substitutions", 2);
|
|
241
245
|
__decorateClass([
|
|
242
246
|
OneToMany(() => TournamentBracket, (bracket) => bracket.firstLegMatch)
|
|
243
247
|
], TournamentMatch.prototype, "firstLegBrackets", 2);
|
|
@@ -2,6 +2,7 @@ import { ITournamentPlayer } from '@natrave/tournaments-service-types';
|
|
|
2
2
|
import { PlayerTeam } from '../../teams';
|
|
3
3
|
import { TournamentMatchCard } from '../tournament-match-cards';
|
|
4
4
|
import { TournamentMatchGoal } from '../tournament-match-goals';
|
|
5
|
+
import { TournamentMatchSubstitution } from '../tournament-match-substitutions';
|
|
5
6
|
import { TournamentTeam } from '../tournament-teams';
|
|
6
7
|
import { CallUpSource } from './enums/call-up-source.enum';
|
|
7
8
|
export declare class TournamentPlayer implements ITournamentPlayer {
|
|
@@ -20,5 +21,7 @@ export declare class TournamentPlayer implements ITournamentPlayer {
|
|
|
20
21
|
goals: TournamentMatchGoal[];
|
|
21
22
|
assists: TournamentMatchGoal[];
|
|
22
23
|
cards: TournamentMatchCard[];
|
|
24
|
+
substitutionsIn: TournamentMatchSubstitution[];
|
|
25
|
+
substitutionsOut: TournamentMatchSubstitution[];
|
|
23
26
|
}
|
|
24
27
|
//# sourceMappingURL=tournament-player.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-player.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-players/tournament-player.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAevE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,qBAIa,gBAAiB,YAAW,iBAAiB;IAExD,EAAE,EAAE,MAAM,CAAC;IAIX,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;IASf,OAAO,EAAE,OAAO,CAAC;IAkBjB,UAAU,EAAE,YAAY,CAAC;IAczB,4BAA4B,EAAE,MAAM,GAAG,IAAI,CAAC;IAa5C,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;IAQvB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAOvB,IAAI,EAAE,cAAc,CAAC;IAGrB,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAG/B,KAAK,EAAE,mBAAmB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament-player.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-players/tournament-player.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAevE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,qBAIa,gBAAiB,YAAW,iBAAiB;IAExD,EAAE,EAAE,MAAM,CAAC;IAIX,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;IASf,OAAO,EAAE,OAAO,CAAC;IAkBjB,UAAU,EAAE,YAAY,CAAC;IAczB,4BAA4B,EAAE,MAAM,GAAG,IAAI,CAAC;IAa5C,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;IAQvB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAOvB,IAAI,EAAE,cAAc,CAAC;IAGrB,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAG/B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAI7B,eAAe,EAAE,2BAA2B,EAAE,CAAC;IAI/C,gBAAgB,EAAE,2BAA2B,EAAE,CAAC;CACjD"}
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
import { PlayerTeam } from "../../teams/index.js";
|
|
25
25
|
import { TournamentMatchCard } from "../tournament-match-cards/index.js";
|
|
26
26
|
import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
|
|
27
|
+
import { TournamentMatchSubstitution } from "../tournament-match-substitutions/index.js";
|
|
27
28
|
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
28
29
|
import { CallUpSource } from "./enums/call-up-source.enum.js";
|
|
29
30
|
let TournamentPlayer = class {
|
|
@@ -107,6 +108,12 @@ __decorateClass([
|
|
|
107
108
|
__decorateClass([
|
|
108
109
|
OneToMany(() => TournamentMatchCard, (c) => c.player)
|
|
109
110
|
], TournamentPlayer.prototype, "cards", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
OneToMany(() => TournamentMatchSubstitution, (s) => s.playerIn)
|
|
113
|
+
], TournamentPlayer.prototype, "substitutionsIn", 2);
|
|
114
|
+
__decorateClass([
|
|
115
|
+
OneToMany(() => TournamentMatchSubstitution, (s) => s.playerOut)
|
|
116
|
+
], TournamentPlayer.prototype, "substitutionsOut", 2);
|
|
110
117
|
TournamentPlayer = __decorateClass([
|
|
111
118
|
Entity("tournament_players"),
|
|
112
119
|
Unique(["playerTeamId", "teamId"]),
|
|
@@ -3,6 +3,7 @@ import { Team } from '../../teams';
|
|
|
3
3
|
import { TournamentGroup } from '../tournament-groups';
|
|
4
4
|
import { TournamentMatchCard } from '../tournament-match-cards';
|
|
5
5
|
import { TournamentMatchGoal } from '../tournament-match-goals';
|
|
6
|
+
import { TournamentMatchSubstitution } from '../tournament-match-substitutions';
|
|
6
7
|
import { TournamentMatch } from '../tournament-matches';
|
|
7
8
|
import { TournamentPenaltyShootout } from '../tournament-penalty-shootouts';
|
|
8
9
|
import { TournamentPlayer } from '../tournament-players';
|
|
@@ -24,6 +25,7 @@ export declare class TournamentTeam {
|
|
|
24
25
|
forfeitedMatches: TournamentMatch[];
|
|
25
26
|
goals: TournamentMatchGoal[];
|
|
26
27
|
cards: TournamentMatchCard[];
|
|
28
|
+
substitutions: TournamentMatchSubstitution[];
|
|
27
29
|
wonShootouts: TournamentPenaltyShootout[];
|
|
28
30
|
}
|
|
29
31
|
//# sourceMappingURL=tournament-team.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,CAAC;IAG7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,aAAa,EAAE,2BAA2B,EAAE,CAAC;IAG7C,YAAY,EAAE,yBAAyB,EAAE,CAAC;CAC3C"}
|
|
@@ -24,6 +24,7 @@ import { Team } from "../../teams/index.js";
|
|
|
24
24
|
import { TournamentGroup } from "../tournament-groups/index.js";
|
|
25
25
|
import { TournamentMatchCard } from "../tournament-match-cards/index.js";
|
|
26
26
|
import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
|
|
27
|
+
import { TournamentMatchSubstitution } from "../tournament-match-substitutions/index.js";
|
|
27
28
|
import { TournamentMatch } from "../tournament-matches/index.js";
|
|
28
29
|
import { TournamentPenaltyShootout } from "../tournament-penalty-shootouts/index.js";
|
|
29
30
|
import { TournamentPlayer } from "../tournament-players/index.js";
|
|
@@ -85,6 +86,9 @@ __decorateClass([
|
|
|
85
86
|
__decorateClass([
|
|
86
87
|
OneToMany(() => TournamentMatchCard, (c) => c.team)
|
|
87
88
|
], TournamentTeam.prototype, "cards", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
OneToMany(() => TournamentMatchSubstitution, (s) => s.team)
|
|
91
|
+
], TournamentTeam.prototype, "substitutions", 2);
|
|
88
92
|
__decorateClass([
|
|
89
93
|
OneToMany(() => TournamentPenaltyShootout, (s) => s.winnerTeam)
|
|
90
94
|
], TournamentTeam.prototype, "wonShootouts", 2);
|