@natrave/shared-entities 1.2.54 → 1.2.56

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.
@@ -10,7 +10,7 @@ export declare class Address implements IAddress {
10
10
  complement: string | null;
11
11
  neighborhood: string;
12
12
  city: string;
13
- state: BrazilianState | null;
13
+ state: BrazilianState;
14
14
  postalCode: string;
15
15
  country: string;
16
16
  latitude: number;
@@ -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;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"}
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;IAOb,KAAK,EAAE,cAAc,CAAC;IAQtB,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"}
@@ -82,7 +82,6 @@ __decorateClass([
82
82
  Column({
83
83
  type: "enum",
84
84
  enum: BrazilianState,
85
- nullable: true,
86
85
  comment: "Estado (UF) onde o torneio ser\xE1 realizado."
87
86
  })
88
87
  ], Address.prototype, "state", 2);
@@ -5,7 +5,6 @@ export declare class TournamentFacility implements ITournamentFacility {
5
5
  id: number;
6
6
  facilityId: number;
7
7
  tournamentId: number;
8
- isPrimary: boolean;
9
8
  createdAt: Date;
10
9
  updatedAt: Date;
11
10
  tournament: Tournament;
@@ -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;AAe5C,qBAGa,kBAAmB,YAAW,mBAAmB;IAI5D,EAAE,EAAE,MAAM,CAAC;IAOX,UAAU,EAAE,MAAM,CAAC;IAOnB,YAAY,EAAE,MAAM,CAAC;IAQrB,SAAS,EAAE,OAAO,CAAC;IAOnB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;IAOvB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
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("tournament_is_primary_index", ["tournamentId", "isPrimary"])
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.54",
3
+ "version": "1.2.56",
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.5",
47
+ "@natrave/facility-service-types": "^0.0.9",
48
48
  "@natrave/notification-service-types": "^1.1.65",
49
- "@natrave/tournaments-service-types": "^1.1.80",
49
+ "@natrave/tournaments-service-types": "^1.1.84",
50
50
  "reflect-metadata": "^0.2.2",
51
51
  "typeorm": "^0.3.24"
52
52
  },