easywork-common-lib 1.0.46 → 1.0.52
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/common/database/base.entity.d.ts +10 -1
- package/dist/common/database/base.entity.js +53 -6
- package/dist/common/database/base.entity.js.map +1 -1
- package/dist/common/enums/sales.enum.d.ts +6 -0
- package/dist/common/enums/sales.enum.js +11 -0
- package/dist/common/enums/sales.enum.js.map +1 -0
- package/dist/entities/helpers/index.d.ts +7 -0
- package/dist/entities/helpers/index.js +24 -0
- package/dist/entities/helpers/index.js.map +1 -0
- package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.js +30 -0
- package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.js.map +1 -0
- package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.js +35 -0
- package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/h_poliza_type.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/h_poliza_type.entity.js +30 -0
- package/dist/entities/helpers/sales/h_poliza_type.entity.js.map +1 -0
- package/dist/entities/helpers/sales/index.d.ts +3 -0
- package/dist/entities/helpers/sales/index.js +20 -0
- package/dist/entities/helpers/sales/index.js.map +1 -0
- package/dist/entities/index.d.ts +1 -6
- package/dist/entities/index.js +1 -6
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/sales/contact.entity.d.ts +4 -3
- package/dist/entities/sales/contact.entity.js +11 -10
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.d.ts +10 -3
- package/dist/entities/sales/poliza.entity.js +44 -8
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/dist/entities/sales/poliza_siniestro.entity.d.ts +11 -0
- package/dist/entities/sales/poliza_siniestro.entity.js +64 -0
- package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -0
- package/dist/entities/tools/task-comment.entity.d.ts +1 -0
- package/dist/entities/tools/task-comment.entity.js +5 -0
- package/dist/entities/tools/task-comment.entity.js.map +1 -1
- package/package.json +3 -2
- package/scripts/bump.sh +6 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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"}
|
|
@@ -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;
|
|
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,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easywork-common-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"description": "Librería común de Easywork",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "tsc"
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"bump": "./scripts/bump.sh"
|
|
8
9
|
},
|
|
9
10
|
"repository": {
|
|
10
11
|
"type": "git",
|