@natrave/shared-entities 8.6.0 → 8.7.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.
@@ -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":"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;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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.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",