@natrave/shared-entities 8.25.0 → 8.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/billing/billing-subscription-grants/billing-subscription-grant.entity.d.ts +1 -0
  2. package/dist/billing/billing-subscription-grants/billing-subscription-grant.entity.d.ts.map +1 -1
  3. package/dist/billing/billing-subscription-grants/billing-subscription-grant.entity.js +12 -0
  4. package/dist/billing/billing-subscription-items/billing-subscription-item.entity.d.ts +3 -0
  5. package/dist/billing/billing-subscription-items/billing-subscription-item.entity.d.ts.map +1 -1
  6. package/dist/billing/billing-subscription-items/billing-subscription-item.entity.js +20 -0
  7. package/dist/database-entities/index.d.ts +2 -2
  8. package/dist/database-entities/index.d.ts.map +1 -1
  9. package/dist/database-entities/index.js +2 -0
  10. package/dist/tournaments/index.d.ts +1 -0
  11. package/dist/tournaments/index.d.ts.map +1 -1
  12. package/dist/tournaments/index.js +1 -0
  13. package/dist/tournaments/tournament-match-observations/enums/match-observation-moment.enum.d.ts +7 -0
  14. package/dist/tournaments/tournament-match-observations/enums/match-observation-moment.enum.d.ts.map +1 -0
  15. package/dist/tournaments/tournament-match-observations/enums/match-observation-moment.enum.js +10 -0
  16. package/dist/tournaments/tournament-match-observations/index.d.ts +3 -0
  17. package/dist/tournaments/tournament-match-observations/index.d.ts.map +1 -0
  18. package/dist/tournaments/tournament-match-observations/index.js +6 -0
  19. package/dist/tournaments/tournament-match-observations/tournament-match-observation.entity.d.ts +17 -0
  20. package/dist/tournaments/tournament-match-observations/tournament-match-observation.entity.d.ts.map +1 -0
  21. package/dist/tournaments/tournament-match-observations/tournament-match-observation.entity.js +130 -0
  22. package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +2 -0
  23. package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +1 -1
  24. package/dist/tournaments/tournament-matches/tournament-match.entity.js +4 -0
  25. package/package.json +1 -1
@@ -6,6 +6,7 @@ export declare class BillingSubscriptionGrant {
6
6
  reason: string;
7
7
  grantedBy: string;
8
8
  grantedAt: Date;
9
+ categoryLimit: number | null;
9
10
  expiresAt: Date | null;
10
11
  revokedAt: Date | null;
11
12
  revokedBy: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"billing-subscription-grant.entity.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-subscription-grants/billing-subscription-grant.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAkC/D,qBAaa,wBAAwB;IAInC,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAOvB,IAAI,EAAE,MAAM,CAAC;IAMb,MAAM,EAAE,MAAM,CAAC;IAQf,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAO5B,SAAS,EAAE,IAAI,CAAC;IAehB,YAAY,EAAE,mBAAmB,CAAC;CACnC"}
1
+ {"version":3,"file":"billing-subscription-grant.entity.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-subscription-grants/billing-subscription-grant.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAwC/D,qBAiBa,wBAAwB;IAInC,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAOvB,IAAI,EAAE,MAAM,CAAC;IAMb,MAAM,EAAE,MAAM,CAAC;IAQf,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAQhB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ7B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAO5B,SAAS,EAAE,IAAI,CAAC;IAehB,YAAY,EAAE,mBAAmB,CAAC;CACnC"}
@@ -62,6 +62,14 @@ __decorateClass([
62
62
  comment: "Quando a concess\xE3o foi dada (cria\xE7\xE3o = concess\xE3o)."
63
63
  })
64
64
  ], BillingSubscriptionGrant.prototype, "grantedAt", 2);
65
+ __decorateClass([
66
+ Column({
67
+ name: "category_limit",
68
+ type: "int",
69
+ nullable: true,
70
+ comment: "Quantas categorias a concess\xE3o cobre, contando a licen\xE7a. Nulo = todas."
71
+ })
72
+ ], BillingSubscriptionGrant.prototype, "categoryLimit", 2);
65
73
  __decorateClass([
66
74
  Column({
67
75
  name: "expires_at",
@@ -119,6 +127,10 @@ BillingSubscriptionGrant = __decorateClass([
119
127
  where: `"revoked_at" IS NULL`
120
128
  }),
121
129
  Check("CHK_billing_subscription_grants_reason_not_blank", `btrim("reason") <> ''`),
130
+ Check(
131
+ "CHK_billing_subscription_grants_category_limit_positive",
132
+ `"category_limit" IS NULL OR "category_limit" >= 1`
133
+ ),
122
134
  Check(
123
135
  "CHK_billing_subscription_grants_revocation_complete",
124
136
  `("revoked_at" IS NULL AND "revoked_by" IS NULL AND "revoke_reason" IS NULL)
@@ -1,4 +1,5 @@
1
1
  import { BillingPlan } from '../billing-plans';
2
+ import { BillingSubscriptionGrant } from '../billing-subscription-grants';
2
3
  import { BillingSubscription } from '../billing-subscriptions';
3
4
  import { BillingCoveredEntityType } from './enums/billing-covered-entity-type.enum';
4
5
  import { BillingSubscriptionItemStatus } from './enums/billing-subscription-item-status.enum';
@@ -9,6 +10,7 @@ export declare class BillingSubscriptionItem {
9
10
  coveredEntityType: BillingCoveredEntityType;
10
11
  coveredEntityId: number;
11
12
  status: BillingSubscriptionItemStatus;
13
+ coveredByGrantId: string | null;
12
14
  quantity: number;
13
15
  activatedAt: Date | null;
14
16
  canceledAt: Date | null;
@@ -16,5 +18,6 @@ export declare class BillingSubscriptionItem {
16
18
  updatedAt: Date;
17
19
  subscription: BillingSubscription;
18
20
  plan: BillingPlan;
21
+ coveredByGrant: BillingSubscriptionGrant | null;
19
22
  }
20
23
  //# sourceMappingURL=billing-subscription-item.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"billing-subscription-item.entity.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-subscription-items/billing-subscription-item.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAqB9F,qBAWa,uBAAuB;IAIlC,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAOvB,MAAM,EAAE,MAAM,CAAC;IASf,iBAAiB,EAAE,wBAAwB,CAAC;IAO5C,eAAe,EAAE,MAAM,CAAC;IASxB,MAAM,EAAE,6BAA6B,CAAC;IAOtC,QAAQ,EAAE,MAAM,CAAC;IAQjB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAQzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAOxB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAahB,YAAY,EAAE,mBAAmB,CAAC;IAUlC,IAAI,EAAE,WAAW,CAAC;CACnB"}
1
+ {"version":3,"file":"billing-subscription-item.entity.d.ts","sourceRoot":"","sources":["../../../src/billing/billing-subscription-items/billing-subscription-item.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AA2B9F,qBAaa,uBAAuB;IAIlC,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAOvB,MAAM,EAAE,MAAM,CAAC;IASf,iBAAiB,EAAE,wBAAwB,CAAC;IAO5C,eAAe,EAAE,MAAM,CAAC;IASxB,MAAM,EAAE,6BAA6B,CAAC;IAStC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOhC,QAAQ,EAAE,MAAM,CAAC;IAQjB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAQzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAOxB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAahB,YAAY,EAAE,mBAAmB,CAAC;IAUlC,IAAI,EAAE,WAAW,CAAC;IAclB,cAAc,EAAE,wBAAwB,GAAG,IAAI,CAAC;CACjD"}
@@ -20,6 +20,7 @@ import {
20
20
  UpdateDateColumn
21
21
  } from "typeorm";
22
22
  import { BillingPlan } from "../billing-plans/index.js";
23
+ import { BillingSubscriptionGrant } from "../billing-subscription-grants/index.js";
23
24
  import { BillingSubscription } from "../billing-subscriptions/index.js";
24
25
  import { BillingCoveredEntityType } from "./enums/billing-covered-entity-type.enum.js";
25
26
  import { BillingSubscriptionItemStatus } from "./enums/billing-subscription-item-status.enum.js";
@@ -69,6 +70,14 @@ __decorateClass([
69
70
  comment: "Estado do entitlement da categoria (pending_payment/active/canceled)."
70
71
  })
71
72
  ], BillingSubscriptionItem.prototype, "status", 2);
73
+ __decorateClass([
74
+ Column({
75
+ name: "covered_by_grant_id",
76
+ type: "uuid",
77
+ nullable: true,
78
+ comment: "Concess\xE3o (cortesia) que liberou esta categoria dentro do limite dela. Nulo = n\xE3o coberta."
79
+ })
80
+ ], BillingSubscriptionItem.prototype, "coveredByGrantId", 2);
72
81
  __decorateClass([
73
82
  Column({
74
83
  type: "int",
@@ -118,12 +127,23 @@ __decorateClass([
118
127
  }),
119
128
  JoinColumn({ name: "plan_id" })
120
129
  ], BillingSubscriptionItem.prototype, "plan", 2);
130
+ __decorateClass([
131
+ ManyToOne(() => BillingSubscriptionGrant, {
132
+ onDelete: "RESTRICT",
133
+ nullable: true
134
+ }),
135
+ JoinColumn({
136
+ name: "covered_by_grant_id",
137
+ foreignKeyConstraintName: "FK_billing_subscription_items_covered_by_grant"
138
+ })
139
+ ], BillingSubscriptionItem.prototype, "coveredByGrant", 2);
121
140
  BillingSubscriptionItem = __decorateClass([
122
141
  Entity("billing_subscription_items"),
123
142
  Check("CHK_billing_subscription_items_quantity_positive", '"quantity" >= 1'),
124
143
  Index("idx_billing_subscription_items_subscription", ["subscriptionId"]),
125
144
  Index("idx_billing_subscription_items_plan", ["planId"]),
126
145
  Index("idx_billing_subscription_items_covered", ["coveredEntityType", "coveredEntityId"]),
146
+ Index("idx_billing_subscription_items_covered_by_grant", ["coveredByGrantId"]),
127
147
  Index(
128
148
  "UQ_billing_subscription_items_live_covered",
129
149
  ["subscriptionId", "coveredEntityType", "coveredEntityId"],
@@ -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 { Referee, RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPointsAdjustment, 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, TournamentMatchObservation, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPointsAdjustment, 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 TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPointsAdjustment | 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 BillingSubscriptionGrant | 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 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 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 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 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,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,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EACL,UAAU,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,OAAO,EACP,YAAY,EACZ,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,OAAO,EACP,oBAAoB,EACpB,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,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,wpFAwG7B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,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,EACtB,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,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,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,4rFAyG7B,CAAC"}
@@ -80,6 +80,7 @@ import {
80
80
  TournamentMatchCard,
81
81
  TournamentMatchGoal,
82
82
  TournamentMatchKit,
83
+ TournamentMatchObservation,
83
84
  TournamentMatchPlayerNumber,
84
85
  TournamentMatchReferee,
85
86
  TournamentMatchRule,
@@ -161,6 +162,7 @@ const DATABASE_ENTITIES = [
161
162
  TournamentMatchSubstitution,
162
163
  TournamentMatchTimeout,
163
164
  TournamentMatchKit,
165
+ TournamentMatchObservation,
164
166
  TournamentMatchPlayerNumber,
165
167
  TournamentMatchReferee,
166
168
  TournamentPenaltyShootout,
@@ -22,6 +22,7 @@ export * from './tournament-groups';
22
22
  export * from './tournament-match-cards';
23
23
  export * from './tournament-match-goals';
24
24
  export * from './tournament-match-kits';
25
+ export * from './tournament-match-observations';
25
26
  export * from './tournament-match-player-numbers';
26
27
  export * from './tournament-match-referees';
27
28
  export * from './tournament-match-rules';
@@ -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,E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C3C,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,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,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC"}
@@ -21,6 +21,7 @@ export * from "./tournament-groups/index.js";
21
21
  export * from "./tournament-match-cards/index.js";
22
22
  export * from "./tournament-match-goals/index.js";
23
23
  export * from "./tournament-match-kits/index.js";
24
+ export * from "./tournament-match-observations/index.js";
24
25
  export * from "./tournament-match-player-numbers/index.js";
25
26
  export * from "./tournament-match-referees/index.js";
26
27
  export * from "./tournament-match-rules/index.js";
@@ -0,0 +1,7 @@
1
+ export declare enum MatchObservationMoment {
2
+ PRE_MATCH = "pre-match",
3
+ FIRST_HALF = "first-half",
4
+ SECOND_HALF = "second-half",
5
+ POST_MATCH = "post-match"
6
+ }
7
+ //# sourceMappingURL=match-observation-moment.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-observation-moment.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-match-observations/enums/match-observation-moment.enum.ts"],"names":[],"mappings":"AAcA,oBAAY,sBAAsB;IAEhC,SAAS,cAAc;IAGvB,UAAU,eAAe;IAGzB,WAAW,gBAAgB;IAG3B,UAAU,eAAe;CAC1B"}
@@ -0,0 +1,10 @@
1
+ var MatchObservationMoment = /* @__PURE__ */ ((MatchObservationMoment2) => {
2
+ MatchObservationMoment2["PRE_MATCH"] = "pre-match";
3
+ MatchObservationMoment2["FIRST_HALF"] = "first-half";
4
+ MatchObservationMoment2["SECOND_HALF"] = "second-half";
5
+ MatchObservationMoment2["POST_MATCH"] = "post-match";
6
+ return MatchObservationMoment2;
7
+ })(MatchObservationMoment || {});
8
+ export {
9
+ MatchObservationMoment
10
+ };
@@ -0,0 +1,3 @@
1
+ export { MatchObservationMoment } from './enums/match-observation-moment.enum';
2
+ export { TournamentMatchObservation } from './tournament-match-observation.entity';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-observations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { MatchObservationMoment } from "./enums/match-observation-moment.enum.js";
2
+ import { TournamentMatchObservation } from "./tournament-match-observation.entity.js";
3
+ export {
4
+ MatchObservationMoment,
5
+ TournamentMatchObservation
6
+ };
@@ -0,0 +1,17 @@
1
+ import { TournamentMatch } from '../tournament-matches';
2
+ import { MatchObservationMoment } from './enums/match-observation-moment.enum';
3
+ export declare class TournamentMatchObservation {
4
+ id: string;
5
+ matchId: number;
6
+ text: string;
7
+ moment: MatchObservationMoment;
8
+ minute: number | null;
9
+ createdByOrganizationUserId: number;
10
+ updatedByOrganizationUserId: number | null;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ deletedAt: Date | null;
14
+ deletedByOrganizationUserId: number | null;
15
+ match?: TournamentMatch;
16
+ }
17
+ //# sourceMappingURL=tournament-match-observation.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-match-observation.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-observations/tournament-match-observation.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAyC/E,qBAuBa,0BAA0B;IAKrC,EAAE,EAAE,MAAM,CAAC;IAGX,OAAO,EAAE,MAAM,CAAC;IAMhB,IAAI,EAAE,MAAM,CAAC;IAOb,MAAM,EAAE,sBAAsB,CAAC;IAO/B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAOtB,2BAA2B,EAAE,MAAM,CAAC;IAQpC,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAO3C,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAU3C,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB"}
@@ -0,0 +1,130 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
11
+ import {
12
+ Check,
13
+ Column,
14
+ CreateDateColumn,
15
+ Entity,
16
+ Index,
17
+ JoinColumn,
18
+ ManyToOne,
19
+ PrimaryGeneratedColumn,
20
+ UpdateDateColumn
21
+ } from "typeorm";
22
+ import { TournamentMatch } from "../tournament-matches/index.js";
23
+ import { MatchObservationMoment } from "./enums/match-observation-moment.enum.js";
24
+ const MOMENTS = Object.values(MatchObservationMoment).map((moment) => `'${moment}'`).join(", ");
25
+ let TournamentMatchObservation = class {
26
+ };
27
+ __decorateClass([
28
+ PrimaryGeneratedColumn("uuid", {
29
+ primaryKeyConstraintName: "PK_tournament_match_observations",
30
+ comment: "Identificador da observa\xE7\xE3o. Gerado pelo cliente para idempot\xEAncia."
31
+ })
32
+ ], TournamentMatchObservation.prototype, "id", 2);
33
+ __decorateClass([
34
+ Column({ name: "match_id", type: "int", comment: "Partida da observa\xE7\xE3o." })
35
+ ], TournamentMatchObservation.prototype, "matchId", 2);
36
+ __decorateClass([
37
+ Column({
38
+ type: "text",
39
+ comment: "Texto livre do organizador, at\xE9 2000 caracteres. Interno da organiza\xE7\xE3o."
40
+ })
41
+ ], TournamentMatchObservation.prototype, "text", 2);
42
+ __decorateClass([
43
+ Column({
44
+ type: "varchar",
45
+ length: 20,
46
+ comment: "Momento da partida: pre-match, first-half, second-half ou post-match."
47
+ })
48
+ ], TournamentMatchObservation.prototype, "moment", 2);
49
+ __decorateClass([
50
+ Column({
51
+ type: "smallint",
52
+ nullable: true,
53
+ comment: "Minuto dentro do tempo (1 a 120). Nulo fora dos tempos ou sem cron\xF4metro."
54
+ })
55
+ ], TournamentMatchObservation.prototype, "minute", 2);
56
+ __decorateClass([
57
+ Column({
58
+ name: "created_by_organization_user_id",
59
+ type: "int",
60
+ comment: "organization_users.id de quem escreveu."
61
+ })
62
+ ], TournamentMatchObservation.prototype, "createdByOrganizationUserId", 2);
63
+ __decorateClass([
64
+ Column({
65
+ name: "updated_by_organization_user_id",
66
+ type: "int",
67
+ nullable: true,
68
+ comment: "organization_users.id de quem editou o texto por \xFAltimo. Nulo se nunca editada."
69
+ })
70
+ ], TournamentMatchObservation.prototype, "updatedByOrganizationUserId", 2);
71
+ __decorateClass([
72
+ CreateDateColumn({
73
+ name: "created_at",
74
+ type: "timestamptz",
75
+ comment: "Quando a observa\xE7\xE3o foi escrita. Desempata a ordem dentro do mesmo momento."
76
+ })
77
+ ], TournamentMatchObservation.prototype, "createdAt", 2);
78
+ __decorateClass([
79
+ UpdateDateColumn({
80
+ name: "updated_at",
81
+ type: "timestamptz",
82
+ comment: "\xDAltima altera\xE7\xE3o da linha (edi\xE7\xE3o, remo\xE7\xE3o ou restaura\xE7\xE3o)."
83
+ })
84
+ ], TournamentMatchObservation.prototype, "updatedAt", 2);
85
+ __decorateClass([
86
+ Column({
87
+ name: "deleted_at",
88
+ type: "timestamptz",
89
+ nullable: true,
90
+ comment: "Quando a observa\xE7\xE3o foi removida. Nulo = observa\xE7\xE3o viva."
91
+ })
92
+ ], TournamentMatchObservation.prototype, "deletedAt", 2);
93
+ __decorateClass([
94
+ Column({
95
+ name: "deleted_by_organization_user_id",
96
+ type: "int",
97
+ nullable: true,
98
+ comment: "organization_users.id de quem removeu."
99
+ })
100
+ ], TournamentMatchObservation.prototype, "deletedByOrganizationUserId", 2);
101
+ __decorateClass([
102
+ ManyToOne(() => TournamentMatch, (match) => match.observations, { onDelete: "CASCADE" }),
103
+ JoinColumn({
104
+ name: "match_id",
105
+ foreignKeyConstraintName: "FK_tournament_match_observations_match"
106
+ })
107
+ ], TournamentMatchObservation.prototype, "match", 2);
108
+ TournamentMatchObservation = __decorateClass([
109
+ Entity("tournament_match_observations"),
110
+ Index("IDX_tournament_match_observations_match", ["matchId"]),
111
+ Check("CHK_tournament_match_observations_moment", `"moment" IN (${MOMENTS})`),
112
+ Check(
113
+ "CHK_tournament_match_observations_minute",
114
+ `"minute" IS NULL
115
+ OR ("moment" IN ('${MatchObservationMoment.FIRST_HALF}', '${MatchObservationMoment.SECOND_HALF}')
116
+ AND "minute" BETWEEN 1 AND 120)`
117
+ ),
118
+ Check(
119
+ "CHK_tournament_match_observations_text",
120
+ `btrim("text") <> '' AND char_length("text") <= 2000`
121
+ ),
122
+ Check(
123
+ "CHK_tournament_match_observations_deletion_complete",
124
+ `("deleted_at" IS NULL AND "deleted_by_organization_user_id" IS NULL)
125
+ OR ("deleted_at" IS NOT NULL AND "deleted_by_organization_user_id" IS NOT NULL)`
126
+ )
127
+ ], TournamentMatchObservation);
128
+ export {
129
+ TournamentMatchObservation
130
+ };
@@ -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 { TournamentMatchObservation } from '../tournament-match-observations';
7
8
  import { TournamentMatchPlayerNumber } from '../tournament-match-player-numbers';
8
9
  import { TournamentMatchReferee } from '../tournament-match-referees';
9
10
  import { TournamentMatchSubstitution } from '../tournament-match-substitutions';
@@ -53,6 +54,7 @@ export declare class TournamentMatch {
53
54
  kits: TournamentMatchKit[];
54
55
  playerNumbers: TournamentMatchPlayerNumber[];
55
56
  referees: TournamentMatchReferee[];
57
+ observations: TournamentMatchObservation[];
56
58
  firstLegBrackets: TournamentBracket[];
57
59
  secondLegBrackets: TournamentBracket[];
58
60
  penaltyShootout: TournamentPenaltyShootout;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-match.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/tournament-match.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAevF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE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I,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;IAa/C,eAAe,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAY7C,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,aAAa,EAAE,2BAA2B,EAAE,CAAC;IAG7C,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IAGnC,YAAY,EAAE,0BAA0B,EAAE,CAAC;IAG3C,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 { TournamentMatchObservation } from "../tournament-match-observations/index.js";
30
31
  import { TournamentMatchPlayerNumber } from "../tournament-match-player-numbers/index.js";
31
32
  import { TournamentMatchReferee } from "../tournament-match-referees/index.js";
32
33
  import { TournamentMatchSubstitution } from "../tournament-match-substitutions/index.js";
@@ -292,6 +293,9 @@ __decorateClass([
292
293
  __decorateClass([
293
294
  OneToMany(() => TournamentMatchReferee, (assignment) => assignment.match)
294
295
  ], TournamentMatch.prototype, "referees", 2);
296
+ __decorateClass([
297
+ OneToMany(() => TournamentMatchObservation, (observation) => observation.match)
298
+ ], TournamentMatch.prototype, "observations", 2);
295
299
  __decorateClass([
296
300
  OneToMany(() => TournamentBracket, (bracket) => bracket.firstLegMatch)
297
301
  ], TournamentMatch.prototype, "firstLegBrackets", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "8.25.0",
3
+ "version": "8.27.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",