@natrave/shared-entities 7.4.0 → 7.5.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 MatchScoresheetSource {
2
+ LIVE = "live",
3
+ POST_MATCH = "post_match"
4
+ }
5
+ //# sourceMappingURL=match-scoresheet-source.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-scoresheet-source.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-matches/enums/match-scoresheet-source.enum.ts"],"names":[],"mappings":"AASA,oBAAY,qBAAqB;IAI/B,IAAI,SAAS;IAKb,UAAU,eAAe;CAC1B"}
@@ -0,0 +1,8 @@
1
+ var MatchScoresheetSource = /* @__PURE__ */ ((MatchScoresheetSource2) => {
2
+ MatchScoresheetSource2["LIVE"] = "live";
3
+ MatchScoresheetSource2["POST_MATCH"] = "post_match";
4
+ return MatchScoresheetSource2;
5
+ })(MatchScoresheetSource || {});
6
+ export {
7
+ MatchScoresheetSource
8
+ };
@@ -1,2 +1,3 @@
1
+ export { MatchScoresheetSource } from './enums/match-scoresheet-source.enum';
1
2
  export { TournamentMatch } from './tournament-match.entity';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,4 +1,6 @@
1
+ import { MatchScoresheetSource } from "./enums/match-scoresheet-source.enum.js";
1
2
  import { TournamentMatch } from "./tournament-match.entity.js";
2
3
  export {
4
+ MatchScoresheetSource,
3
5
  TournamentMatch
4
6
  };
@@ -6,6 +6,7 @@ import { TournamentMatchGoal } from '../tournament-match-goals';
6
6
  import { TournamentPenaltyShootout } from '../tournament-penalty-shootouts';
7
7
  import { TournamentTeam } from '../tournament-teams';
8
8
  import { Tournament } from '../tournaments';
9
+ import { MatchScoresheetSource } from './enums/match-scoresheet-source.enum';
9
10
  export declare class TournamentMatch implements ITournamentMatch {
10
11
  id: number;
11
12
  tournamentId: number;
@@ -25,6 +26,7 @@ export declare class TournamentMatch implements ITournamentMatch {
25
26
  walkoverReason: string | null;
26
27
  broadcastUrl: string | null;
27
28
  startedAt: Date | null;
29
+ scoresheetSource: MatchScoresheetSource | null;
28
30
  facility?: TournamentFacility;
29
31
  tournament: Tournament;
30
32
  homeTeam: TournamentTeam;
@@ -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,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,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,qBAsCa,eAAgB,YAAW,gBAAgB;IAItD,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAQrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,UAAU,EAAE,M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AE,cAAc,CAAC;IAGjC,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IAGtC,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;IAGvC,eAAe,EAAE,yBAAyB,CAAC;CAC5C"}
@@ -32,6 +32,7 @@ import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
32
32
  import { TournamentPenaltyShootout } from "../tournament-penalty-shootouts/index.js";
33
33
  import { TournamentTeam } from "../tournament-teams/index.js";
34
34
  import { Tournament } from "../tournaments/index.js";
35
+ import { MatchScoresheetSource } from "./enums/match-scoresheet-source.enum.js";
35
36
  let TournamentMatch = class {
36
37
  };
37
38
  __decorateClass([
@@ -166,6 +167,16 @@ __decorateClass([
166
167
  comment: "Instante do apito inicial (SCHEDULED \u2192 IN_PROGRESS)."
167
168
  })
168
169
  ], TournamentMatch.prototype, "startedAt", 2);
170
+ __decorateClass([
171
+ Column({
172
+ name: "scoresheet_source",
173
+ type: "enum",
174
+ enum: MatchScoresheetSource,
175
+ nullable: true,
176
+ default: null,
177
+ comment: "Origem da s\xFAmula usada para finalizar a partida: ao vivo ou p\xF3s-jogo."
178
+ })
179
+ ], TournamentMatch.prototype, "scoresheetSource", 2);
169
180
  __decorateClass([
170
181
  ManyToOne(() => TournamentFacility, (facility) => facility.matches, {
171
182
  onDelete: "SET NULL"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",