@natrave/shared-entities 8.38.0 → 8.40.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/backoffice/crm-message-templates/crm-message-template.entity.d.ts +8 -0
- package/dist/backoffice/crm-message-templates/crm-message-template.entity.d.ts.map +1 -0
- package/dist/backoffice/crm-message-templates/crm-message-template.entity.js +58 -0
- package/dist/backoffice/crm-message-templates/index.d.ts +2 -0
- package/dist/backoffice/crm-message-templates/index.d.ts.map +1 -0
- package/dist/backoffice/crm-message-templates/index.js +4 -0
- package/dist/backoffice/index.d.ts +1 -0
- package/dist/backoffice/index.d.ts.map +1 -1
- package/dist/backoffice/index.js +1 -0
- 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-rounds/enums/tournament-round-source.enum.d.ts +5 -0
- package/dist/tournaments/tournament-rounds/enums/tournament-round-source.enum.d.ts.map +1 -0
- package/dist/tournaments/tournament-rounds/enums/tournament-round-source.enum.js +8 -0
- package/dist/tournaments/tournament-rounds/index.d.ts +3 -0
- package/dist/tournaments/tournament-rounds/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-rounds/index.js +6 -0
- package/dist/tournaments/tournament-rounds/tournament-round.entity.d.ts +13 -0
- package/dist/tournaments/tournament-rounds/tournament-round.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-rounds/tournament-round.entity.js +88 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm-message-template.entity.d.ts","sourceRoot":"","sources":["../../../src/backoffice/crm-message-templates/crm-message-template.entity.ts"],"names":[],"mappings":"AA2BA,qBAEa,kBAAkB;IAM7B,GAAG,EAAE,MAAM,CAAC;IAOZ,IAAI,EAAE,MAAM,CAAC;IAQb,SAAS,EAAE,IAAI,CAAC;IAQhB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ/B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { Check, Column, Entity, PrimaryColumn } from "typeorm";
|
|
12
|
+
let CrmMessageTemplate = class {
|
|
13
|
+
};
|
|
14
|
+
__decorateClass([
|
|
15
|
+
PrimaryColumn({
|
|
16
|
+
name: "key",
|
|
17
|
+
type: "text",
|
|
18
|
+
comment: "Situa\xE7\xE3o da mensagem pronta (ex.: matches, payment_intent)."
|
|
19
|
+
})
|
|
20
|
+
], CrmMessageTemplate.prototype, "key", 2);
|
|
21
|
+
__decorateClass([
|
|
22
|
+
Column({
|
|
23
|
+
name: "body",
|
|
24
|
+
type: "text",
|
|
25
|
+
comment: "Texto da mensagem com as vari\xE1veis entre chaves, de 1 a 1000 caracteres."
|
|
26
|
+
})
|
|
27
|
+
], CrmMessageTemplate.prototype, "body", 2);
|
|
28
|
+
__decorateClass([
|
|
29
|
+
Column({
|
|
30
|
+
name: "updated_at",
|
|
31
|
+
type: "timestamptz",
|
|
32
|
+
default: () => "now()",
|
|
33
|
+
comment: "Quando o texto foi gravado pela \xFAltima vez."
|
|
34
|
+
})
|
|
35
|
+
], CrmMessageTemplate.prototype, "updatedAt", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({
|
|
38
|
+
name: "updated_by_user_id",
|
|
39
|
+
type: "text",
|
|
40
|
+
nullable: true,
|
|
41
|
+
comment: "Id (Clerk) de quem gravou o texto."
|
|
42
|
+
})
|
|
43
|
+
], CrmMessageTemplate.prototype, "updatedByUserId", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
Column({
|
|
46
|
+
name: "updated_by_name",
|
|
47
|
+
type: "text",
|
|
48
|
+
nullable: true,
|
|
49
|
+
comment: "Nome de quem gravou o texto, copiado na hora da grava\xE7\xE3o."
|
|
50
|
+
})
|
|
51
|
+
], CrmMessageTemplate.prototype, "updatedByName", 2);
|
|
52
|
+
CrmMessageTemplate = __decorateClass([
|
|
53
|
+
Entity("crm_message_templates"),
|
|
54
|
+
Check("chk_crm_message_templates_body_length", `char_length(body) BETWEEN 1 AND 1000`)
|
|
55
|
+
], CrmMessageTemplate);
|
|
56
|
+
export {
|
|
57
|
+
CrmMessageTemplate
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/backoffice/crm-message-templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backoffice/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backoffice/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/backoffice/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./app-downloads/index.js";
|
|
2
|
+
export * from "./crm-message-templates/index.js";
|
|
2
3
|
import { DownloadMetric } from "./enums/metric.enum.js";
|
|
3
4
|
import { DownloadPlatform } from "./enums/platform.enum.js";
|
|
4
5
|
import { DownloadSource } from "./enums/source.enum.js";
|
|
@@ -12,7 +12,7 @@ import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
|
|
|
12
12
|
import { Player, PlayerPersonalData, PlayerPosition } from '../players';
|
|
13
13
|
import { Promotion, PromotionAdvertiser, PromotionContact, PromotionCreative, PromotionEvent, PromotionTarget, PromotionUserState } from '../promotions';
|
|
14
14
|
import { PlayerTeam, Team, TeamAccessCode, TeamFollow, TeamJoinRequest, TeamKit, TeamModality, TeamSponsor, TeamTrophy } from '../teams';
|
|
15
|
-
import { CategoryBroadcastSetting, Referee, RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchObservation, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPointsAdjustment, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTeamMemberNote, TournamentTieBreakConfig } from '../tournaments';
|
|
15
|
+
import { CategoryBroadcastSetting, Referee, RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchObservation, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPointsAdjustment, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentRound, TournamentTeam, TournamentTeamInvitation, TournamentTeamMemberNote, TournamentTieBreakConfig } from '../tournaments';
|
|
16
16
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
17
|
-
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 CategoryBroadcastSetting | typeof Tournament | typeof TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | 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 TournamentMatchObservation | typeof TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPointsAdjustment | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | typeof TournamentTeamMemberNote | 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 TeamFollow | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserLocality | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionGrant | typeof BillingSubscription | typeof BillingSubscriptionItem | 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 FriendlyMatchExtra | typeof FriendlyMatch | typeof FriendlyMatchGoal | typeof FriendlyScoreEvent | typeof FriendlyChallenge | typeof FriendlyChallengeExtra | typeof FriendlyRequest | typeof PromotionContact | typeof Promotion | typeof PromotionCreative | typeof PromotionTarget | typeof PromotionAdvertiser | typeof PromotionEvent | typeof PromotionUserState | typeof UserDomainEvent | typeof UserEventView)[];
|
|
17
|
+
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 CategoryBroadcastSetting | typeof Tournament | typeof TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | 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 TournamentMatchObservation | typeof TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPointsAdjustment | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentRound | typeof TournamentTeamInvitation | typeof TournamentTeamMemberNote | 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 TeamFollow | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserLocality | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionGrant | typeof BillingSubscription | typeof BillingSubscriptionItem | 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 FriendlyMatchExtra | typeof FriendlyMatch | typeof FriendlyMatchGoal | typeof FriendlyScoreEvent | typeof FriendlyChallenge | typeof FriendlyChallengeExtra | typeof FriendlyRequest | typeof PromotionContact | typeof Promotion | typeof PromotionCreative | typeof PromotionTarget | typeof PromotionAdvertiser | typeof PromotionEvent | typeof PromotionUserState | typeof UserDomainEvent | typeof UserEventView)[];
|
|
18
18
|
//# 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,YAAY,EACZ,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,wBAAwB,EACxB,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;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BAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EAEjC,+BAA+B,
|
|
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,YAAY,EACZ,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,wBAAwB,EACxB,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,EACL,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,C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gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,mrGA4H7B,CAAC"}
|
|
@@ -119,6 +119,7 @@ import {
|
|
|
119
119
|
TournamentRegistrationRequirement,
|
|
120
120
|
TournamentRegulationField,
|
|
121
121
|
TournamentRegulationFieldStatus,
|
|
122
|
+
TournamentRound,
|
|
122
123
|
TournamentRule,
|
|
123
124
|
TournamentTeam,
|
|
124
125
|
TournamentTeamInvitation,
|
|
@@ -194,6 +195,7 @@ const DATABASE_ENTITIES = [
|
|
|
194
195
|
TournamentPlayer,
|
|
195
196
|
TournamentPlayerRule,
|
|
196
197
|
TournamentPointsAdjustment,
|
|
198
|
+
TournamentRound,
|
|
197
199
|
TournamentPublicationChargeRule,
|
|
198
200
|
TournamentRegistrationRequirement,
|
|
199
201
|
TournamentPrizeRule,
|
|
@@ -43,6 +43,7 @@ export * from './tournament-registration-requests';
|
|
|
43
43
|
export * from './tournament-registration-requirements';
|
|
44
44
|
export * from './tournament-regulation-field-statuses';
|
|
45
45
|
export * from './tournament-regulation-fields';
|
|
46
|
+
export * from './tournament-rounds';
|
|
46
47
|
export * from './tournament-rules';
|
|
47
48
|
export * from './tournament-team-invitations';
|
|
48
49
|
export * from './tournament-team-member-notes';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,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,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AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,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,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC"}
|
|
@@ -42,6 +42,7 @@ export * from "./tournament-registration-requests/index.js";
|
|
|
42
42
|
export * from "./tournament-registration-requirements/index.js";
|
|
43
43
|
export * from "./tournament-regulation-field-statuses/index.js";
|
|
44
44
|
export * from "./tournament-regulation-fields/index.js";
|
|
45
|
+
export * from "./tournament-rounds/index.js";
|
|
45
46
|
export * from "./tournament-rules/index.js";
|
|
46
47
|
export * from "./tournament-team-invitations/index.js";
|
|
47
48
|
export * from "./tournament-team-member-notes/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-round-source.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-rounds/enums/tournament-round-source.enum.ts"],"names":[],"mappings":"AAUA,oBAAY,qBAAqB;IAE/B,gBAAgB,qBAAqB;IAGrC,SAAS,cAAc;CACxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var TournamentRoundSource = /* @__PURE__ */ ((TournamentRoundSource2) => {
|
|
2
|
+
TournamentRoundSource2["TABLE_GENERATION"] = "table_generation";
|
|
3
|
+
TournamentRoundSource2["ORGANIZER"] = "organizer";
|
|
4
|
+
return TournamentRoundSource2;
|
|
5
|
+
})(TournamentRoundSource || {});
|
|
6
|
+
export {
|
|
7
|
+
TournamentRoundSource
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-rounds/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TournamentMatchPhase } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { Tournament } from '../tournaments';
|
|
3
|
+
import { TournamentRoundSource } from './enums/tournament-round-source.enum';
|
|
4
|
+
export declare class TournamentRound {
|
|
5
|
+
id: number;
|
|
6
|
+
tournamentId: number;
|
|
7
|
+
phase: TournamentMatchPhase;
|
|
8
|
+
roundIndicator: number;
|
|
9
|
+
source: TournamentRoundSource;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
tournament: Tournament;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=tournament-round.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-round.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-rounds/tournament-round.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAY1E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AA0B7E,qBAOa,eAAe;IAK1B,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAUrB,KAAK,EAAE,oBAAoB,CAAC;IAQ5B,cAAc,EAAE,MAAM,CAAC;IASvB,MAAM,EAAE,qBAAqB,CAAC;IAO9B,SAAS,EAAE,IAAI,CAAC;IAchB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { TournamentMatchPhase } from "@natrave/tournaments-service-types";
|
|
12
|
+
import {
|
|
13
|
+
Check,
|
|
14
|
+
Column,
|
|
15
|
+
CreateDateColumn,
|
|
16
|
+
Entity,
|
|
17
|
+
JoinColumn,
|
|
18
|
+
ManyToOne,
|
|
19
|
+
PrimaryGeneratedColumn,
|
|
20
|
+
Unique
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { Tournament } from "../tournaments/index.js";
|
|
23
|
+
import { TournamentRoundSource } from "./enums/tournament-round-source.enum.js";
|
|
24
|
+
let TournamentRound = class {
|
|
25
|
+
};
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn({
|
|
28
|
+
primaryKeyConstraintName: "PK_tournament_rounds",
|
|
29
|
+
comment: "Identificador da rodada."
|
|
30
|
+
})
|
|
31
|
+
], TournamentRound.prototype, "id", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({
|
|
34
|
+
name: "tournament_id",
|
|
35
|
+
type: "int",
|
|
36
|
+
comment: "Campeonato (categoria) da rodada."
|
|
37
|
+
})
|
|
38
|
+
], TournamentRound.prototype, "tournamentId", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({
|
|
41
|
+
type: "enum",
|
|
42
|
+
enum: TournamentMatchPhase,
|
|
43
|
+
// O MESMO tipo da fase das partidas, e não um novo: o banco recusa fase inválida, a ligação
|
|
44
|
+
// com tournament_matches compara direto, e uma fase nova é um ALTER TYPE só, para as duas.
|
|
45
|
+
enumName: "tournament_matches_phase_enum",
|
|
46
|
+
comment: "Fase: round-robin, group_stage, quarter-final... O mesmo tipo da fase das partidas."
|
|
47
|
+
})
|
|
48
|
+
], TournamentRound.prototype, "phase", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
Column({
|
|
51
|
+
name: "round_indicator",
|
|
52
|
+
type: "int",
|
|
53
|
+
comment: "N\xFAmero da rodada na fase, o mesmo round_indicator das partidas. A volta continua a contagem da ida."
|
|
54
|
+
})
|
|
55
|
+
], TournamentRound.prototype, "roundIndicator", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
Column({
|
|
58
|
+
type: "enum",
|
|
59
|
+
enum: TournamentRoundSource,
|
|
60
|
+
enumName: "tournament_rounds_source_enum",
|
|
61
|
+
default: TournamentRoundSource.TABLE_GENERATION,
|
|
62
|
+
comment: "Quem originou: table_generation (gera\xE7\xE3o de tabela) ou organizer (aberta \xE0 m\xE3o)."
|
|
63
|
+
})
|
|
64
|
+
], TournamentRound.prototype, "source", 2);
|
|
65
|
+
__decorateClass([
|
|
66
|
+
CreateDateColumn({
|
|
67
|
+
name: "created_at",
|
|
68
|
+
type: "timestamptz",
|
|
69
|
+
comment: "Quando a rodada foi gravada."
|
|
70
|
+
})
|
|
71
|
+
], TournamentRound.prototype, "createdAt", 2);
|
|
72
|
+
__decorateClass([
|
|
73
|
+
ManyToOne(() => Tournament, { onDelete: "CASCADE" }),
|
|
74
|
+
JoinColumn({
|
|
75
|
+
name: "tournament_id",
|
|
76
|
+
foreignKeyConstraintName: "FK_tournament_rounds_tournament"
|
|
77
|
+
})
|
|
78
|
+
], TournamentRound.prototype, "tournament", 2);
|
|
79
|
+
TournamentRound = __decorateClass([
|
|
80
|
+
Entity("tournament_rounds", {
|
|
81
|
+
comment: "Rodadas e fases de cada categoria. Existem mesmo sem partida."
|
|
82
|
+
}),
|
|
83
|
+
Unique("UQ_tournament_rounds_tournament_phase_round", ["tournamentId", "phase", "roundIndicator"]),
|
|
84
|
+
Check("CHK_tournament_rounds_round_indicator", `"round_indicator" >= 1`)
|
|
85
|
+
], TournamentRound);
|
|
86
|
+
export {
|
|
87
|
+
TournamentRound
|
|
88
|
+
};
|