@natrave/shared-entities 1.2.52 → 1.2.54
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/addresses/address.entity.d.ts.map +1 -1
- package/dist/facilities/addresses/address.entity.js +3 -1
- 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 +5 -4
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAYpE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAWvD,qBAEa,OAAQ,YAAW,QAAQ;IAItC,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,aAAa,EAAE,MAAM,CAAC;IAOtB,MAAM,EAAE,MAAM,CAAC;IAQf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,YAAY,EAAE,MAAM,CAAC;IAOrB,IAAI,EAAE,MAAM,CAAC;IAQb,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAQ7B,UAAU,EAAE,MAAM,CAAC;IAOnB,OAAO,EAAE,MAAM,CAAC;IAShB,QAAQ,EAAE,MAAM,CAAC;IASjB,SAAS,EAAE,MAAM,CAAC;IAUlB,UAAU,EAAE,QAAQ,EAAE,CAAC;CACxB"}
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
Column,
|
|
14
14
|
CreateDateColumn,
|
|
15
15
|
Entity,
|
|
16
|
+
Index,
|
|
16
17
|
OneToMany,
|
|
17
18
|
PrimaryGeneratedColumn,
|
|
18
19
|
UpdateDateColumn
|
|
@@ -124,7 +125,8 @@ __decorateClass([
|
|
|
124
125
|
})
|
|
125
126
|
], Address.prototype, "facilities", 2);
|
|
126
127
|
Address = __decorateClass([
|
|
127
|
-
Entity("addresses")
|
|
128
|
+
Entity("addresses"),
|
|
129
|
+
Index("idx_facility_postal_code", ["postalCode"])
|
|
128
130
|
], Address);
|
|
129
131
|
export {
|
|
130
132
|
Address
|
|
@@ -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;
|
|
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"}
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
ManyToOne,
|
|
21
21
|
OneToMany,
|
|
22
22
|
PrimaryGeneratedColumn,
|
|
23
|
-
Unique,
|
|
24
23
|
UpdateDateColumn
|
|
25
24
|
} from "typeorm";
|
|
26
25
|
import { TournamentFacility } from "../../tournaments/index.js";
|
|
@@ -30,6 +29,9 @@ import { Field } from "../fields/index.js";
|
|
|
30
29
|
import { sanitizeFacility } from "./utils/sanititze.utils.js";
|
|
31
30
|
let Facility = class {
|
|
32
31
|
constructor() {
|
|
32
|
+
this.contactEmail = null;
|
|
33
|
+
this.contactPhone = null;
|
|
34
|
+
this.cnpj = null;
|
|
33
35
|
this.deletedAt = null;
|
|
34
36
|
}
|
|
35
37
|
sanitizeFields() {
|
|
@@ -84,6 +86,7 @@ __decorateClass([
|
|
|
84
86
|
name: "contact_phone",
|
|
85
87
|
type: "varchar",
|
|
86
88
|
length: 16,
|
|
89
|
+
nullable: true,
|
|
87
90
|
comment: "Telefone de contato do estabelecimento."
|
|
88
91
|
})
|
|
89
92
|
], Facility.prototype, "contactPhone", 2);
|
|
@@ -127,10 +130,8 @@ __decorateClass([
|
|
|
127
130
|
], Facility.prototype, "sanitizeFields", 1);
|
|
128
131
|
Facility = __decorateClass([
|
|
129
132
|
Entity("facilities"),
|
|
130
|
-
Unique(["name", "facilityOwnerId"]),
|
|
131
|
-
Index("idx_facility_owner", ["facilityOwnerId"]),
|
|
132
133
|
Index("idx_facility_address", ["addressId"]),
|
|
133
|
-
Index("
|
|
134
|
+
Index("idx_facility_name", ["name"])
|
|
134
135
|
], Facility);
|
|
135
136
|
export {
|
|
136
137
|
Facility
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@natrave/shared-entities",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.54",
|
|
4
4
|
"description": "Entidades compartilhadass da NaTrave",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
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.5",
|
|
48
48
|
"@natrave/notification-service-types": "^1.1.65",
|
|
49
49
|
"@natrave/tournaments-service-types": "^1.1.80",
|
|
50
50
|
"reflect-metadata": "^0.2.2",
|