@natrave/shared-entities 1.8.0 → 1.10.0

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.
@@ -9,6 +9,7 @@ export declare class Facility implements IFacility {
9
9
  createdAt: Date;
10
10
  updatedAt: Date;
11
11
  name: string;
12
+ googlePlaceId: string | null;
12
13
  contactEmail: string | null;
13
14
  contactPhone: string | null;
14
15
  cnpj: string | null;
@@ -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;AAGlC,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"}
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;AAGlC,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;IAWb,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IASpC,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,7 @@ 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.googlePlaceId = null;
32
33
  this.contactEmail = null;
33
34
  this.contactPhone = null;
34
35
  this.cnpj = null;
@@ -72,6 +73,16 @@ __decorateClass([
72
73
  comment: "Nome do estabelecimento."
73
74
  })
74
75
  ], Facility.prototype, "name", 2);
76
+ __decorateClass([
77
+ Column({
78
+ name: "google_place_id",
79
+ type: "varchar",
80
+ length: 512,
81
+ nullable: true,
82
+ unique: true,
83
+ comment: "Google Place ID \u2014 identidade can\xF4nica do lugar. Null para registros legados/manuais ainda n\xE3o resolvidos."
84
+ })
85
+ ], Facility.prototype, "googlePlaceId", 2);
75
86
  __decorateClass([
76
87
  Column({
77
88
  name: "contact_email",
@@ -25,7 +25,6 @@ export declare class RegulationExtraction {
25
25
  queuedAt: Date;
26
26
  startedAt: Date | null;
27
27
  completedAt: Date | null;
28
- reviewedAt: Date | null;
29
28
  cancelledAt: Date | null;
30
29
  createdAt: Date;
31
30
  updatedAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"regulation-extraction.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/regulation-extractions/regulation-extraction.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAgB5C,qBAUa,oBAAoB;IAM/B,EAAE,EAAE,MAAM,CAAC;IAQX,kBAAkB,EAAE,MAAM,CAAC;IAO3B,YAAY,EAAE,MAAM,CAAC;IAQrB,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IASpE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3B,eAAe,EAAE,MAAM,CAAC;IAQxB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAQ1D,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAS9B,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAQ/B,gBAAgB,EAAE,OAAO,GAAG,IAAI,CAAC;IAOjC,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAS/B,gBAAgB,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;IAQ/C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAS1B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IASvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3B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AC;IAOjC,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAS/B,gBAAgB,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;IAQ/C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAS1B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IASvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ7B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ9B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAWpC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IASzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ5B,UAAU,EAAE,MAAM,CAAC;IAQnB,QAAQ,EAAE,IAAI,CAAC;IAQf,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IASzB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAOzB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAKhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -225,14 +225,6 @@ __decorateClass([
225
225
  comment: "Quando o processamento foi finalizado (com sucesso ou falha)."
226
226
  })
227
227
  ], RegulationExtraction.prototype, "completedAt", 2);
228
- __decorateClass([
229
- Column({
230
- name: "reviewed_at",
231
- type: "timestamptz",
232
- nullable: true,
233
- comment: 'Quando o usu\xE1rio confirmou a review da extra\xE7\xE3o (clicou "Continuar" na Tela A). One-way: setada uma vez, n\xE3o reseta. NULL = ainda n\xE3o revisada.'
234
- })
235
- ], RegulationExtraction.prototype, "reviewedAt", 2);
236
228
  __decorateClass([
237
229
  Column({
238
230
  name: "cancelled_at",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",