@natrave/shared-entities 1.2.51 → 1.2.53
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 +5 -3
- package/dist/facilities/addresses/address.entity.d.ts.map +1 -1
- package/dist/facilities/addresses/address.entity.js +8 -4
- package/dist/facilities/facilities/facility.entity.d.ts.map +1 -1
- package/dist/facilities/facilities/facility.entity.js +1 -4
- package/package.json +2 -2
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import { IAddress } from '@natrave/facility-service-types';
|
|
2
|
+
import { BrazilianState } from '@natrave/tournaments-service-types';
|
|
1
3
|
import { Facility } from '../../facilities/facilities';
|
|
2
|
-
export declare class Address {
|
|
4
|
+
export declare class Address implements IAddress {
|
|
3
5
|
id: number;
|
|
4
6
|
createdAt: Date;
|
|
5
7
|
updatedAt: Date;
|
|
6
8
|
streetAddress: string;
|
|
7
9
|
number: string;
|
|
8
|
-
complement
|
|
10
|
+
complement: string | null;
|
|
9
11
|
neighborhood: string;
|
|
10
12
|
city: string;
|
|
11
|
-
state:
|
|
13
|
+
state: BrazilianState | null;
|
|
12
14
|
postalCode: string;
|
|
13
15
|
country: string;
|
|
14
16
|
latitude: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -8,10 +8,12 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
8
8
|
if (kind && result) __defProp(target, key, result);
|
|
9
9
|
return result;
|
|
10
10
|
};
|
|
11
|
+
import { BrazilianState } from "@natrave/tournaments-service-types";
|
|
11
12
|
import {
|
|
12
13
|
Column,
|
|
13
14
|
CreateDateColumn,
|
|
14
15
|
Entity,
|
|
16
|
+
Index,
|
|
15
17
|
OneToMany,
|
|
16
18
|
PrimaryGeneratedColumn,
|
|
17
19
|
UpdateDateColumn
|
|
@@ -78,9 +80,10 @@ __decorateClass([
|
|
|
78
80
|
], Address.prototype, "city", 2);
|
|
79
81
|
__decorateClass([
|
|
80
82
|
Column({
|
|
81
|
-
type: "
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
type: "enum",
|
|
84
|
+
enum: BrazilianState,
|
|
85
|
+
nullable: true,
|
|
86
|
+
comment: "Estado (UF) onde o torneio ser\xE1 realizado."
|
|
84
87
|
})
|
|
85
88
|
], Address.prototype, "state", 2);
|
|
86
89
|
__decorateClass([
|
|
@@ -122,7 +125,8 @@ __decorateClass([
|
|
|
122
125
|
})
|
|
123
126
|
], Address.prototype, "facilities", 2);
|
|
124
127
|
Address = __decorateClass([
|
|
125
|
-
Entity("addresses")
|
|
128
|
+
Entity("addresses"),
|
|
129
|
+
Index("idx_facility_postal_code", ["postalCode"])
|
|
126
130
|
], Address);
|
|
127
131
|
export {
|
|
128
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,CAAC;IAQ5B,YAAY,EAAE,MAAM,CAAC;IASrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpB,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";
|
|
@@ -127,10 +126,8 @@ __decorateClass([
|
|
|
127
126
|
], Facility.prototype, "sanitizeFields", 1);
|
|
128
127
|
Facility = __decorateClass([
|
|
129
128
|
Entity("facilities"),
|
|
130
|
-
Unique(["name", "facilityOwnerId"]),
|
|
131
|
-
Index("idx_facility_owner", ["facilityOwnerId"]),
|
|
132
129
|
Index("idx_facility_address", ["addressId"]),
|
|
133
|
-
Index("
|
|
130
|
+
Index("idx_facility_name", ["name"])
|
|
134
131
|
], Facility);
|
|
135
132
|
export {
|
|
136
133
|
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.53",
|
|
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.4",
|
|
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",
|