@natrave/shared-entities 1.3.3 → 1.3.4

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.
@@ -1,4 +1,4 @@
1
- import { DayPeriod, ITournamentMatch, TournamentMatchPhase } from '@natrave/tournaments-service-types';
1
+ import { ITournamentMatch, TournamentMatchPhase } from '@natrave/tournaments-service-types';
2
2
  import { TournamentFacility } from '../tournament-facilities';
3
3
  import { TournamentMatchCard } from '../tournament-match-cards';
4
4
  import { TournamentMatchGoal } from '../tournament-match-goals';
@@ -12,7 +12,7 @@ export declare class TournamentMatch implements ITournamentMatch {
12
12
  facilityId?: number;
13
13
  matchDate: string | null;
14
14
  leg: number;
15
- period: DayPeriod | null;
15
+ time: string | null;
16
16
  phase: TournamentMatchPhase;
17
17
  roundIndicator: number;
18
18
  createdAt: Date;
@@ -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,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAa5C,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,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAKa,eAAgB,YAAW,gBAAgB;IAItD,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAQrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ1B,UAAU,CAAC,EAAE,MAAM,CAAC;IASpB,SAAS,EAAE,MAAM,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,oBAAoB,CAAC;IAQ5B,cAAc,EAAE,MAAM,CAAC;IAOvB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAM9B,UAAU,EAAE,UAAU,CAAC;IAMvB,QAAQ,EAAE,cAAc,CAAC;IAMzB,QAAQ,EAAE,cAAc,CAAC;IAGzB,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAG7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B"}
@@ -8,10 +8,7 @@ var __decorateClass = (decorators, target, key, kind) => {
8
8
  if (kind && result) __defProp(target, key, result);
9
9
  return result;
10
10
  };
11
- import {
12
- DayPeriod,
13
- TournamentMatchPhase
14
- } from "@natrave/tournaments-service-types";
11
+ import { TournamentMatchPhase } from "@natrave/tournaments-service-types";
15
12
  import {
16
13
  Column,
17
14
  CreateDateColumn,
@@ -85,12 +82,14 @@ __decorateClass([
85
82
  ], TournamentMatch.prototype, "leg", 2);
86
83
  __decorateClass([
87
84
  Column({
88
- type: "enum",
89
- enum: DayPeriod,
85
+ name: "match_time",
86
+ type: "time",
87
+ // ⬅️ armazena só o horário (HH:MM:SS)
90
88
  nullable: true,
91
- comment: "Per\xEDodo do dia em que a partida est\xE1 dispon\xEDvel."
89
+ default: null,
90
+ comment: "Hor\xE1rio previsto para o in\xEDcio da partida (HH:MM:SS)."
92
91
  })
93
- ], TournamentMatch.prototype, "period", 2);
92
+ ], TournamentMatch.prototype, "time", 2);
94
93
  __decorateClass([
95
94
  Column({
96
95
  type: "enum",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -26,11 +26,11 @@
26
26
  "private": false,
27
27
  "devDependencies": {
28
28
  "@changesets/cli": "^2.29.4",
29
- "@eslint/js": "^9.28.0",
29
+ "@eslint/js": "^9.29.0",
30
30
  "@typescript-eslint/eslint-plugin": "^8.34.0",
31
31
  "@typescript-eslint/parser": "^8.34.0",
32
32
  "esbuild": "^0.25.5",
33
- "eslint": "^9.28.0",
33
+ "eslint": "^9.29.0",
34
34
  "eslint-config-prettier": "^10.1.5",
35
35
  "eslint-import-resolver-typescript": "^4.4.3",
36
36
  "eslint-plugin-import": "^2.31.0",
@@ -38,7 +38,7 @@
38
38
  "eslint-plugin-unused-imports": "^4.1.4",
39
39
  "glob": "^11.0.3",
40
40
  "husky": "^9.1.7",
41
- "lint-staged": "^16.1.0",
41
+ "lint-staged": "^16.1.2",
42
42
  "prettier": "^3.5.3",
43
43
  "ts-node": "^10.9.2"
44
44
  },
@@ -46,7 +46,7 @@
46
46
  "@natrave/auth-service-types": "^1.1.63",
47
47
  "@natrave/facility-service-types": "^0.0.9",
48
48
  "@natrave/notification-service-types": "^1.1.65",
49
- "@natrave/tournaments-service-types": "^1.2.9",
49
+ "@natrave/tournaments-service-types": "^1.2.12",
50
50
  "reflect-metadata": "^0.2.2",
51
51
  "typeorm": "^0.3.24"
52
52
  },