easywork-common-lib 1.0.48 → 1.0.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.
Files changed (40) hide show
  1. package/dist/common/database/base.entity.d.ts +11 -0
  2. package/dist/common/database/base.entity.js +58 -1
  3. package/dist/common/database/base.entity.js.map +1 -1
  4. package/dist/common/enums/sales.enum.d.ts +6 -0
  5. package/dist/common/enums/sales.enum.js +11 -0
  6. package/dist/common/enums/sales.enum.js.map +1 -0
  7. package/dist/entities/helpers/index.d.ts +7 -0
  8. package/dist/entities/helpers/index.js +24 -0
  9. package/dist/entities/helpers/index.js.map +1 -0
  10. package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.d.ts +5 -0
  11. package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.js +30 -0
  12. package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.js.map +1 -0
  13. package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.d.ts +6 -0
  14. package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.js +35 -0
  15. package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.js.map +1 -0
  16. package/dist/entities/helpers/sales/h_poliza_type.entity.d.ts +5 -0
  17. package/dist/entities/helpers/sales/h_poliza_type.entity.js +30 -0
  18. package/dist/entities/helpers/sales/h_poliza_type.entity.js.map +1 -0
  19. package/dist/entities/helpers/sales/index.d.ts +3 -0
  20. package/dist/entities/helpers/sales/index.js +20 -0
  21. package/dist/entities/helpers/sales/index.js.map +1 -0
  22. package/dist/entities/index.d.ts +1 -6
  23. package/dist/entities/index.js +1 -6
  24. package/dist/entities/index.js.map +1 -1
  25. package/dist/entities/sales/contact.entity.d.ts +4 -3
  26. package/dist/entities/sales/contact.entity.js +11 -10
  27. package/dist/entities/sales/contact.entity.js.map +1 -1
  28. package/dist/entities/sales/poliza.entity.d.ts +10 -3
  29. package/dist/entities/sales/poliza.entity.js +44 -8
  30. package/dist/entities/sales/poliza.entity.js.map +1 -1
  31. package/dist/entities/sales/poliza_siniestro.entity.d.ts +11 -0
  32. package/dist/entities/sales/poliza_siniestro.entity.js +64 -0
  33. package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -0
  34. package/dist/entities/tools/task-comment.entity.d.ts +1 -0
  35. package/dist/entities/tools/task-comment.entity.js +5 -0
  36. package/dist/entities/tools/task-comment.entity.js.map +1 -1
  37. package/package.json +1 -1
  38. package/scripts/bump.sh +3 -1
  39. package/tsconfig.tsbuildinfo +1 -1
  40. package/package.old.json +0 -32
@@ -0,0 +1,11 @@
1
+ import { StatusSiniestro } from "../../common/enums/sales.enum";
2
+ import { BaseEntity } from "../../common/database";
3
+ import { Poliza } from "./poliza.entity";
4
+ export declare class PolizaSiniestro extends BaseEntity {
5
+ sigre: string;
6
+ numeroReclamacion: string;
7
+ fecha: Date;
8
+ status: StatusSiniestro;
9
+ poliza: Poliza;
10
+ finiquito: File;
11
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PolizaSiniestro = void 0;
13
+ const sales_enum_1 = require("../../common/enums/sales.enum");
14
+ const database_1 = require("../../common/database");
15
+ const typeorm_1 = require("typeorm");
16
+ const poliza_entity_1 = require("./poliza.entity");
17
+ let PolizaSiniestro = class PolizaSiniestro extends database_1.BaseEntity {
18
+ sigre;
19
+ numeroReclamacion;
20
+ fecha;
21
+ status;
22
+ poliza;
23
+ finiquito;
24
+ };
25
+ exports.PolizaSiniestro = PolizaSiniestro;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ unique: true }),
28
+ __metadata("design:type", String)
29
+ ], PolizaSiniestro.prototype, "sigre", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)(),
32
+ __metadata("design:type", String)
33
+ ], PolizaSiniestro.prototype, "numeroReclamacion", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)(),
36
+ __metadata("design:type", Date)
37
+ ], PolizaSiniestro.prototype, "fecha", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({
40
+ type: "enum",
41
+ enum: sales_enum_1.StatusSiniestro,
42
+ default: sales_enum_1.StatusSiniestro.VIGENTE
43
+ }),
44
+ __metadata("design:type", String)
45
+ ], PolizaSiniestro.prototype, "status", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, {
48
+ onDelete: "CASCADE",
49
+ onUpdate: "CASCADE",
50
+ }),
51
+ __metadata("design:type", poliza_entity_1.Poliza)
52
+ ], PolizaSiniestro.prototype, "poliza", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.OneToOne)(() => File, {
55
+ onDelete: "SET NULL",
56
+ onUpdate: "CASCADE"
57
+ }),
58
+ (0, typeorm_1.JoinColumn)(),
59
+ __metadata("design:type", File)
60
+ ], PolizaSiniestro.prototype, "finiquito", void 0);
61
+ exports.PolizaSiniestro = PolizaSiniestro = __decorate([
62
+ (0, typeorm_1.Entity)()
63
+ ], PolizaSiniestro);
64
+ //# sourceMappingURL=poliza_siniestro.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poliza_siniestro.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/poliza_siniestro.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAAgE;AAChE,oDAAmD;AACnD,qCAA0E;AAC1E,mDAAyC;AAGlC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,qBAAU;IAE7C,KAAK,CAAS;IAGd,iBAAiB,CAAS;IAG1B,KAAK,CAAO;IAOZ,MAAM,CAAkB;IAMxB,MAAM,CAAS;IAOf,SAAS,CAAM;CAChB,CAAA;AA7BY,0CAAe;AAE1B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;8CACX;AAGd;IADC,IAAA,gBAAM,GAAE;;0DACiB;AAG1B;IADC,IAAA,gBAAM,GAAE;8BACF,IAAI;8CAAC;AAOZ;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,4BAAe;QACrB,OAAO,EAAE,4BAAe,CAAC,OAAO;KACjC,CAAC;;+CACsB;AAMxB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE;QACvB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACM,sBAAM;+CAAC;AAOf;IALC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE;QACpB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACF,IAAI;kDAAA;0BA5BJ,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CA6B3B"}
@@ -3,6 +3,7 @@ import { User } from "../user.entity";
3
3
  import { Task } from "./task.entity";
4
4
  export declare class TaskComment extends BaseEntity {
5
5
  comment: string;
6
+ isSummary: boolean;
6
7
  createdBy: User;
7
8
  task: Task;
8
9
  }
@@ -17,6 +17,7 @@ const typeorm_1 = require("typeorm");
17
17
  const task_entity_1 = require("./task.entity");
18
18
  let TaskComment = class TaskComment extends database_1.BaseEntity {
19
19
  comment;
20
+ isSummary;
20
21
  createdBy;
21
22
  task;
22
23
  };
@@ -26,6 +27,10 @@ __decorate([
26
27
  (0, typeorm_1.Column)({ type: "text" }),
27
28
  __metadata("design:type", String)
28
29
  ], TaskComment.prototype, "comment", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ default: false }),
32
+ __metadata("design:type", Boolean)
33
+ ], TaskComment.prototype, "isSummary", void 0);
29
34
  __decorate([
30
35
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
31
36
  onDelete: "SET NULL",
@@ -1 +1 @@
1
- {"version":3,"file":"task-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,gDAAsC;AACtC,qCAAoD;AACpD,+CAAqC;AAG9B,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,qBAAU;IAGvC,OAAO,CAAS;IAOhB,SAAS,CAAO;IAMhB,IAAI,CAAO;CACd,CAAA;AAjBY,kCAAW;AAGpB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACT;AAOhB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACS,kBAAI;8CAAC;AAMhB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACI,kBAAI;yCAAC;sBAhBF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAiBvB"}
1
+ {"version":3,"file":"task-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,gDAAsC;AACtC,qCAAoD;AACpD,+CAAqC;AAG9B,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,qBAAU;IAGvC,OAAO,CAAS;IAGhB,SAAS,CAAU;IAOnB,SAAS,CAAO;IAMhB,IAAI,CAAO;CACd,CAAA;AApBY,kCAAW;AAGpB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CACR;AAOnB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACS,kBAAI;8CAAC;AAMhB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACI,kBAAI;yCAAC;sBAnBF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAoBvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.48",
3
+ "version": "1.0.53",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/scripts/bump.sh CHANGED
@@ -1,4 +1,6 @@
1
1
  git add .
2
2
  git commit -m "bump version"
3
3
  git push
4
- npm version patch
4
+ npm version patch
5
+ yarn build
6
+ npm publish