@natrave/shared-entities 8.6.0 → 8.7.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.
@@ -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, TournamentMatchSubstitution, 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, TournamentMatchTimeout, 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 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 BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | 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 TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | typeof TournamentTieBreakConfig | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof 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 BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | 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,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC9F,OAAO,EAAE,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,wzEA2F7B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACjD,OAA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1EA4F7B,CAAC"}
@@ -77,6 +77,7 @@ import {
77
77
  TournamentMatchRule,
78
78
  TournamentMatchSchema,
79
79
  TournamentMatchSubstitution,
80
+ TournamentMatchTimeout,
80
81
  TournamentPayment,
81
82
  TournamentPenaltyShootout,
82
83
  TournamentPlayer,
@@ -143,6 +144,7 @@ const DATABASE_ENTITIES = [
143
144
  TournamentMatchCard,
144
145
  TournamentMatchGoal,
145
146
  TournamentMatchSubstitution,
147
+ TournamentMatchTimeout,
146
148
  TournamentPenaltyShootout,
147
149
  TournamentMatchSchema,
148
150
  TournamentPayment,
@@ -0,0 +1,5 @@
1
+ export declare enum TimeoutScope {
2
+ PER_PERIOD = "per_period",
3
+ PER_MATCH = "per_match"
4
+ }
5
+ //# sourceMappingURL=timeout-scope.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeout-scope.enum.d.ts","sourceRoot":"","sources":["../../../src/tournaments/enums/timeout-scope.enum.ts"],"names":[],"mappings":"AAgBA,oBAAY,YAAY;IAEtB,UAAU,eAAe;IAGzB,SAAS,cAAc;CACxB"}
@@ -0,0 +1,8 @@
1
+ var TimeoutScope = /* @__PURE__ */ ((TimeoutScope2) => {
2
+ TimeoutScope2["PER_PERIOD"] = "per_period";
3
+ TimeoutScope2["PER_MATCH"] = "per_match";
4
+ return TimeoutScope2;
5
+ })(TimeoutScope || {});
6
+ export {
7
+ TimeoutScope
8
+ };
@@ -3,6 +3,7 @@ export type { GoalKind } from './enums/goal-method.enum';
3
3
  export { GOAL_METHODS_BY_KIND, GoalMethod, resolveGoalKind } from './enums/goal-method.enum';
4
4
  export { MatchEventType } from './enums/match-event-type.enum';
5
5
  export { DEFAULT_TIE_BREAK_ORDER, TieBreakCriterion } from './enums/tie-break-criterion.enum';
6
+ export { TimeoutScope } from './enums/timeout-scope.enum';
6
7
  export * from './regulation-extractions';
7
8
  export * from './tournament-allowed-phone';
8
9
  export * from './tournament-billing-outbox';
@@ -1 +1 @@
1
- {"version":3,"file":"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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"}
@@ -2,6 +2,7 @@ import { CARD_REASONS_BY_TYPE, CardReason } from "./enums/card-reason.enum.js";
2
2
  import { GOAL_METHODS_BY_KIND, GoalMethod, resolveGoalKind } from "./enums/goal-method.enum.js";
3
3
  import { MatchEventType } from "./enums/match-event-type.enum.js";
4
4
  import { DEFAULT_TIE_BREAK_ORDER, TieBreakCriterion } from "./enums/tie-break-criterion.enum.js";
5
+ import { TimeoutScope } from "./enums/timeout-scope.enum.js";
5
6
  export * from "./regulation-extractions/index.js";
6
7
  export * from "./tournament-allowed-phone/index.js";
7
8
  export * from "./tournament-billing-outbox/index.js";
@@ -47,5 +48,6 @@ export {
47
48
  GoalMethod,
48
49
  MatchEventType,
49
50
  TieBreakCriterion,
51
+ TimeoutScope,
50
52
  resolveGoalKind
51
53
  };
@@ -1,3 +1,4 @@
1
+ import { TimeoutScope } from '../enums/timeout-scope.enum';
1
2
  import { Tournament } from '../tournaments';
2
3
  export declare class TournamentMatchRule {
3
4
  id: number;
@@ -7,7 +8,8 @@ export declare class TournamentMatchRule {
7
8
  halftimeBreak: number | null;
8
9
  substitutionsUnlimited: boolean | null;
9
10
  maxSubstitutionsPerMatch: number | null;
10
- maxTimeoutsPerPeriod: number | null;
11
+ maxTimeouts: number | null;
12
+ timeoutsScope: TimeoutScope | null;
11
13
  createdAt: Date;
12
14
  updatedAt: Date;
13
15
  tournament: Tournament;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-match-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-rules/tournament-match-rule.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAEa,mBAAmB;IAI9B,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAQrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAS7B,sBAAsB,EAAE,OAAO,GAAG,IAAI,CAAC;IASvC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IASxC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOpC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"tournament-match-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-rules/tournament-match-rule.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAEa,mBAAmB;IAI9B,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAQrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAS7B,sBAAsB,EAAE,OAAO,GAAG,IAAI,CAAC;IASvC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IASxC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAU3B,aAAa,EAAE,YAAY,GAAG,IAAI,CAAC;IAOnC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -18,6 +18,7 @@ import {
18
18
  PrimaryGeneratedColumn,
19
19
  UpdateDateColumn
20
20
  } from "typeorm";
21
+ import { TimeoutScope } from "../enums/timeout-scope.enum.js";
21
22
  import { Tournament } from "../tournaments/index.js";
22
23
  let TournamentMatchRule = class {
23
24
  };
@@ -77,11 +78,20 @@ __decorateClass([
77
78
  __decorateClass([
78
79
  Column({
79
80
  type: "int",
80
- name: "max_timeouts_per_period",
81
+ name: "max_timeouts",
81
82
  nullable: true,
82
- comment: "M\xE1ximo de pausas t\xE9cnicas por equipe em CADA TEMPO (e n\xE3o por partida, como no futsal). Nulo = nunca foi perguntado; 0 = o campeonato n\xE3o tem pausa t\xE9cnica; N = N por tempo."
83
+ comment: "M\xE1ximo de pausas t\xE9cnicas por equipe. Nulo = nunca foi perguntado; 0 = o campeonato n\xE3o tem pausa t\xE9cnica; N = N pausas, contadas conforme timeouts_scope."
83
84
  })
84
- ], TournamentMatchRule.prototype, "maxTimeoutsPerPeriod", 2);
85
+ ], TournamentMatchRule.prototype, "maxTimeouts", 2);
86
+ __decorateClass([
87
+ Column({
88
+ type: "enum",
89
+ enum: TimeoutScope,
90
+ name: "timeouts_scope",
91
+ nullable: true,
92
+ comment: "Contra o que max_timeouts conta: por tempo (a conta reinicia no intervalo) ou pela partida inteira. Nulo quando n\xE3o h\xE1 teto a contar (nunca perguntado, ou zero pausas)."
93
+ })
94
+ ], TournamentMatchRule.prototype, "timeoutsScope", 2);
85
95
  __decorateClass([
86
96
  CreateDateColumn({
87
97
  name: "created_at",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "8.6.0",
3
+ "version": "8.7.1",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",