@natrave/shared-entities 1.2.53 → 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.
@@ -10,7 +10,7 @@ export declare class Facility implements IFacility {
10
10
  updatedAt: Date;
11
11
  name: string;
12
12
  contactEmail: string | null;
13
- contactPhone: string;
13
+ contactPhone: string | null;
14
14
  cnpj: string | null;
15
15
  deletedAt: Date | null;
16
16
  address: 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;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"}
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.2.53",
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.4",
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",