@natrave/shared-entities 1.2.53 → 1.2.55
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.
- package/dist/facilities/facilities/facility.entity.d.ts +1 -1
- package/dist/facilities/facilities/facility.entity.d.ts.map +1 -1
- package/dist/facilities/facilities/facility.entity.js +4 -0
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts +0 -1
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.js +1 -9
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facility.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/facilities/facility.entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAgBjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIlC,qBAGa,QAAS,YAAW,SAAS;IAIxC,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,IAAI,EAAE,MAAM,CAAC;IASb,YAAY,EAAE,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"facility.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/facilities/facility.entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAgBjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIlC,qBAGa,QAAS,YAAW,SAAS;IAIxC,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,IAAI,EAAE,MAAM,CAAC;IASb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IASnC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IASnC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAQ;IAQ3B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAU9B,OAAO,EAAE,OAAO,CAAC;IAGjB,MAAM,EAAE,KAAK,EAAE,CAAC;IAGhB,cAAc,EAAE,aAAa,EAAE,CAAC;IAGhC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAO3C,cAAc,IAAI,IAAI;CAGvB"}
|
|
@@ -29,6 +29,9 @@ import { Field } from "../fields/index.js";
|
|
|
29
29
|
import { sanitizeFacility } from "./utils/sanititze.utils.js";
|
|
30
30
|
let Facility = class {
|
|
31
31
|
constructor() {
|
|
32
|
+
this.contactEmail = null;
|
|
33
|
+
this.contactPhone = null;
|
|
34
|
+
this.cnpj = null;
|
|
32
35
|
this.deletedAt = null;
|
|
33
36
|
}
|
|
34
37
|
sanitizeFields() {
|
|
@@ -83,6 +86,7 @@ __decorateClass([
|
|
|
83
86
|
name: "contact_phone",
|
|
84
87
|
type: "varchar",
|
|
85
88
|
length: 16,
|
|
89
|
+
nullable: true,
|
|
86
90
|
comment: "Telefone de contato do estabelecimento."
|
|
87
91
|
})
|
|
88
92
|
], Facility.prototype, "contactPhone", 2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-facility.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-facilities/tournament-facility.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAazE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament-facility.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-facilities/tournament-facility.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAazE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,qBAGa,kBAAmB,YAAW,mBAAmB;IAI5D,EAAE,EAAE,MAAM,CAAC;IAOX,UAAU,EAAE,MAAM,CAAC;IAOnB,YAAY,EAAE,MAAM,CAAC;IAOrB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;IAOvB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
|
@@ -42,14 +42,6 @@ __decorateClass([
|
|
|
42
42
|
comment: "Identificador do torneio associado ao estabelecimento."
|
|
43
43
|
})
|
|
44
44
|
], TournamentFacility.prototype, "tournamentId", 2);
|
|
45
|
-
__decorateClass([
|
|
46
|
-
Column({
|
|
47
|
-
name: "is_primary",
|
|
48
|
-
type: "boolean",
|
|
49
|
-
default: false,
|
|
50
|
-
comment: "Indica se o estabelecimento \xE9 o principal local do torneio."
|
|
51
|
-
})
|
|
52
|
-
], TournamentFacility.prototype, "isPrimary", 2);
|
|
53
45
|
__decorateClass([
|
|
54
46
|
CreateDateColumn({
|
|
55
47
|
name: "created_at",
|
|
@@ -81,7 +73,7 @@ __decorateClass([
|
|
|
81
73
|
TournamentFacility = __decorateClass([
|
|
82
74
|
Entity("tournament_facilities"),
|
|
83
75
|
Unique("tournament_facility_unique", ["tournamentId", "facilityId"]),
|
|
84
|
-
Index("
|
|
76
|
+
Index("tournament_facility_tournament_id_facility_id_idx", ["tournamentId", "facilityId"])
|
|
85
77
|
], TournamentFacility);
|
|
86
78
|
export {
|
|
87
79
|
TournamentFacility
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@natrave/shared-entities",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.55",
|
|
4
4
|
"description": "Entidades compartilhadass da NaTrave",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@natrave/auth-service-types": "^1.1.63",
|
|
47
|
-
"@natrave/facility-service-types": "^0.0.
|
|
47
|
+
"@natrave/facility-service-types": "^0.0.7",
|
|
48
48
|
"@natrave/notification-service-types": "^1.1.65",
|
|
49
|
-
"@natrave/tournaments-service-types": "^1.1.
|
|
49
|
+
"@natrave/tournaments-service-types": "^1.1.81",
|
|
50
50
|
"reflect-metadata": "^0.2.2",
|
|
51
51
|
"typeorm": "^0.3.24"
|
|
52
52
|
},
|