easywork-common-lib 1.0.56 → 1.0.60
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 +6 -0
- package/dist/common/database/base.entity.js +27 -1
- package/dist/common/database/base.entity.js.map +1 -1
- package/dist/entities/helpers/index.d.ts +0 -6
- package/dist/entities/helpers/index.js +0 -6
- package/dist/entities/helpers/index.js.map +1 -1
- package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js +61 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js +61 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js +33 -0
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/contact/contact_types.entity.js +33 -0
- package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/index.d.ts +4 -0
- package/dist/entities/helpers/sales/contact/index.js +21 -0
- package/dist/entities/helpers/sales/contact/index.js.map +1 -0
- package/dist/entities/helpers/sales/index.d.ts +6 -3
- package/dist/entities/helpers/sales/index.js +6 -3
- package/dist/entities/helpers/sales/index.js.map +1 -1
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +28 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +33 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +28 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/index.d.ts +5 -0
- package/dist/entities/helpers/sales/lead/index.js +22 -0
- package/dist/entities/helpers/sales/lead/index.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js +59 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js +59 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +35 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/index.d.ts +4 -0
- package/dist/entities/helpers/sales/poliza/index.js +21 -0
- package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
- package/dist/entities/imap-config.entity.d.ts +1 -0
- package/dist/entities/imap-config.entity.js +6 -1
- package/dist/entities/imap-config.entity.js.map +1 -1
- package/dist/entities/sales/contact.entity.d.ts +4 -4
- package/dist/entities/sales/contact.entity.js +4 -4
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/lead.entity.d.ts +6 -3
- package/dist/entities/sales/lead.entity.js +33 -7
- package/dist/entities/sales/lead.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.d.ts +2 -1
- package/dist/entities/sales/poliza.entity.js +9 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
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.LeadEmail = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const lead_entity_1 = require("../../../sales/lead.entity");
|
|
15
|
+
const email_entity_1 = require("../../../email.entity");
|
|
16
|
+
let LeadEmail = class LeadEmail extends typeorm_1.BaseEntity {
|
|
17
|
+
id;
|
|
18
|
+
leadId;
|
|
19
|
+
emailId;
|
|
20
|
+
relation;
|
|
21
|
+
lead;
|
|
22
|
+
email;
|
|
23
|
+
};
|
|
24
|
+
exports.LeadEmail = LeadEmail;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], LeadEmail.prototype, "id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], LeadEmail.prototype, "leadId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], LeadEmail.prototype, "emailId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LeadEmail.prototype, "relation", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, (lead) => lead.emails, {
|
|
43
|
+
onDelete: "CASCADE",
|
|
44
|
+
onUpdate: "CASCADE",
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", lead_entity_1.Lead)
|
|
47
|
+
], LeadEmail.prototype, "lead", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.ManyToOne)(() => email_entity_1.Email, {
|
|
50
|
+
onDelete: "CASCADE",
|
|
51
|
+
onUpdate: "CASCADE",
|
|
52
|
+
eager: true,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", email_entity_1.Email)
|
|
55
|
+
], LeadEmail.prototype, "email", void 0);
|
|
56
|
+
exports.LeadEmail = LeadEmail = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)()
|
|
58
|
+
], LeadEmail);
|
|
59
|
+
//# sourceMappingURL=lead_email.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lead_email.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/lead/lead_email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,4DAAkD;AAClD,wDAA8C;AAGvC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,oBAAU;IAEvC,EAAE,CAAU;IAGZ,MAAM,CAAS;IAGf,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAMV,IAAI,CAAO;IAOX,KAAK,CAAQ;CACrB,CAAA;AAzBY,8BAAS;AAEpB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;qCACnB;AAGZ;IADC,IAAA,gBAAM,GAAE;;yCACM;AAGf;IADC,IAAA,gBAAM,GAAE;;0CACO;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACV;AAMV;IAJN,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE;QAC5C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACW,kBAAI;uCAAC;AAOX;IALN,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;8BACY,oBAAK;wCAAC;oBAxBT,SAAS;IADrB,IAAA,gBAAM,GAAE;GACI,SAAS,CAyBrB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Lead } from "../../../sales/lead.entity";
|
|
3
|
+
import { Phone } from "../../../phone.entity";
|
|
4
|
+
export declare class LeadPhone extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
leadId: string;
|
|
7
|
+
phoneId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
lead: Lead;
|
|
10
|
+
phone: Phone;
|
|
11
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.LeadPhone = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const lead_entity_1 = require("../../../sales/lead.entity");
|
|
15
|
+
const phone_entity_1 = require("../../../phone.entity");
|
|
16
|
+
let LeadPhone = class LeadPhone extends typeorm_1.BaseEntity {
|
|
17
|
+
id;
|
|
18
|
+
leadId;
|
|
19
|
+
phoneId;
|
|
20
|
+
relation;
|
|
21
|
+
lead;
|
|
22
|
+
phone;
|
|
23
|
+
};
|
|
24
|
+
exports.LeadPhone = LeadPhone;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], LeadPhone.prototype, "id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], LeadPhone.prototype, "leadId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], LeadPhone.prototype, "phoneId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LeadPhone.prototype, "relation", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, (lead) => lead.phones, {
|
|
43
|
+
onDelete: "CASCADE",
|
|
44
|
+
onUpdate: "CASCADE",
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", lead_entity_1.Lead)
|
|
47
|
+
], LeadPhone.prototype, "lead", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.ManyToOne)(() => phone_entity_1.Phone, {
|
|
50
|
+
onDelete: "CASCADE",
|
|
51
|
+
onUpdate: "CASCADE",
|
|
52
|
+
eager: true,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", phone_entity_1.Phone)
|
|
55
|
+
], LeadPhone.prototype, "phone", void 0);
|
|
56
|
+
exports.LeadPhone = LeadPhone = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)()
|
|
58
|
+
], LeadPhone);
|
|
59
|
+
//# sourceMappingURL=lead_phone.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lead_phone.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/lead/lead_phone.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,4DAAkD;AAClD,wDAA8C;AAGvC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,oBAAU;IAEvC,EAAE,CAAU;IAGZ,MAAM,CAAS;IAGf,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAMV,IAAI,CAAO;IAOX,KAAK,CAAQ;CACrB,CAAA;AAzBY,8BAAS;AAEpB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;qCACnB;AAGZ;IADC,IAAA,gBAAM,GAAE;;yCACM;AAGf;IADC,IAAA,gBAAM,GAAE;;0CACO;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACV;AAMV;IAJN,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE;QAC5C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACW,kBAAI;uCAAC;AAOX;IALN,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;8BACY,oBAAK;wCAAC;oBAxBT,SAAS;IADrB,IAAA,gBAAM,GAAE;GACI,SAAS,CAyBrB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.PolizaCompany = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PolizaCompany = class PolizaCompany extends typeorm_1.BaseEntity {
|
|
15
|
+
id;
|
|
16
|
+
name;
|
|
17
|
+
};
|
|
18
|
+
exports.PolizaCompany = PolizaCompany;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], PolizaCompany.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PolizaCompany.prototype, "name", void 0);
|
|
27
|
+
exports.PolizaCompany = PolizaCompany = __decorate([
|
|
28
|
+
(0, typeorm_1.Entity)()
|
|
29
|
+
], PolizaCompany);
|
|
30
|
+
//# sourceMappingURL=h_poliza_company.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_company.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_company.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,oBAAU;IAEzC,EAAE,CAAU;IAGZ,IAAI,CAAS;CAChB,CAAA;AANY,sCAAa;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;2CACZ;wBALJ,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAMzB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.PolizaFormaCobro = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PolizaFormaCobro = class PolizaFormaCobro extends typeorm_1.BaseEntity {
|
|
15
|
+
id;
|
|
16
|
+
name;
|
|
17
|
+
};
|
|
18
|
+
exports.PolizaFormaCobro = PolizaFormaCobro;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], PolizaFormaCobro.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PolizaFormaCobro.prototype, "name", void 0);
|
|
27
|
+
exports.PolizaFormaCobro = PolizaFormaCobro = __decorate([
|
|
28
|
+
(0, typeorm_1.Entity)()
|
|
29
|
+
], PolizaFormaCobro);
|
|
30
|
+
//# sourceMappingURL=h_poliza_forma_cobro.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_forma_cobro.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;IAE5C,EAAE,CAAU;IAGZ,IAAI,CAAS;CAChB,CAAA;AANY,4CAAgB;AAEzB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;8CACZ;2BALJ,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAM5B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.PolizaFrecuenciaPago = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PolizaFrecuenciaPago = class PolizaFrecuenciaPago extends typeorm_1.BaseEntity {
|
|
15
|
+
id;
|
|
16
|
+
name;
|
|
17
|
+
cobrosEsperados;
|
|
18
|
+
};
|
|
19
|
+
exports.PolizaFrecuenciaPago = PolizaFrecuenciaPago;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], PolizaFrecuenciaPago.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PolizaFrecuenciaPago.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], PolizaFrecuenciaPago.prototype, "cobrosEsperados", void 0);
|
|
32
|
+
exports.PolizaFrecuenciaPago = PolizaFrecuenciaPago = __decorate([
|
|
33
|
+
(0, typeorm_1.Entity)()
|
|
34
|
+
], PolizaFrecuenciaPago);
|
|
35
|
+
//# sourceMappingURL=h_poliza_frecuencia_pago.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_frecuencia_pago.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IAEhD,EAAE,CAAU;IAGZ,IAAI,CAAS;IAGb,eAAe,CAAS;CAC3B,CAAA;AATY,oDAAoB;AAE7B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kDACZ;AAGb;IADC,IAAA,gBAAM,GAAE;;6DACe;+BARf,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CAShC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.PolizaType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PolizaType = class PolizaType extends typeorm_1.BaseEntity {
|
|
15
|
+
id;
|
|
16
|
+
name;
|
|
17
|
+
};
|
|
18
|
+
exports.PolizaType = PolizaType;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], PolizaType.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PolizaType.prototype, "name", void 0);
|
|
27
|
+
exports.PolizaType = PolizaType = __decorate([
|
|
28
|
+
(0, typeorm_1.Entity)()
|
|
29
|
+
], PolizaType);
|
|
30
|
+
//# sourceMappingURL=h_poliza_type.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_type.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;IAEtC,EAAE,CAAU;IAGZ,IAAI,CAAS;CAChB,CAAA;AANY,gCAAU;AAEnB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACZ;qBALJ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAMtB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./h_poliza_forma_cobro.entity"), exports);
|
|
18
|
+
__exportStar(require("./h_poliza_frecuencia_pago.entity"), exports);
|
|
19
|
+
__exportStar(require("./h_poliza_type.entity"), exports);
|
|
20
|
+
__exportStar(require("./h_poliza_company.entity"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,oEAAkD;AAClD,yDAAuC;AACvC,4DAA0C"}
|
|
@@ -17,6 +17,7 @@ let ImapConfig = class ImapConfig extends database_1.BaseEntity {
|
|
|
17
17
|
port;
|
|
18
18
|
user;
|
|
19
19
|
password;
|
|
20
|
+
mailName;
|
|
20
21
|
tls;
|
|
21
22
|
senderName;
|
|
22
23
|
userId;
|
|
@@ -38,6 +39,10 @@ __decorate([
|
|
|
38
39
|
(0, typeorm_1.Column)(),
|
|
39
40
|
__metadata("design:type", String)
|
|
40
41
|
], ImapConfig.prototype, "password", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ImapConfig.prototype, "mailName", void 0);
|
|
41
46
|
__decorate([
|
|
42
47
|
(0, typeorm_1.Column)(),
|
|
43
48
|
__metadata("design:type", Boolean)
|
|
@@ -47,7 +52,7 @@ __decorate([
|
|
|
47
52
|
__metadata("design:type", String)
|
|
48
53
|
], ImapConfig.prototype, "senderName", void 0);
|
|
49
54
|
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)(),
|
|
55
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
51
56
|
__metadata("design:type", String)
|
|
52
57
|
], ImapConfig.prototype, "userId", void 0);
|
|
53
58
|
exports.ImapConfig = ImapConfig = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imap-config.entity.js","sourceRoot":"","sources":["../../src/entities/imap-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAAyC;AAGlC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,qBAAU;IAExC,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,GAAG,CAAU;IAGb,UAAU,CAAS;IAGnB,MAAM,CAAS;CAChB,CAAA;
|
|
1
|
+
{"version":3,"file":"imap-config.entity.js","sourceRoot":"","sources":["../../src/entities/imap-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAAyC;AAGlC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,qBAAU;IAExC,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,QAAQ,CAAS;IAGjB,GAAG,CAAU;IAGb,UAAU,CAAS;IAGnB,MAAM,CAAS;CAChB,CAAA;AAxBY,gCAAU;AAErB;IADC,IAAA,gBAAM,GAAE;;wCACI;AAGb;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;wCACD;AAGb;IADC,IAAA,gBAAM,GAAE;;wCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;4CACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;4CACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;uCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;8CACU;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;0CACV;qBAvBJ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAwBtB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseEntityWithUser } from "../../common/database";
|
|
2
|
-
import { ContactEmail } from "../helpers/contact_email.entity";
|
|
3
|
-
import { ContactPhone } from "../helpers/contact_phone.entity";
|
|
4
|
-
import { ContactSource } from "../helpers/contact_sources.entity";
|
|
5
|
-
import { ContactType } from "../helpers/contact_types.entity";
|
|
2
|
+
import { ContactEmail } from "../helpers/sales/contact/contact_email.entity";
|
|
3
|
+
import { ContactPhone } from "../helpers/sales/contact/contact_phone.entity";
|
|
4
|
+
import { ContactSource } from "../helpers/sales/contact/contact_sources.entity";
|
|
5
|
+
import { ContactType } from "../helpers/sales/contact/contact_types.entity";
|
|
6
6
|
import { User } from "../user.entity";
|
|
7
7
|
import { Poliza } from "./poliza.entity";
|
|
8
8
|
export declare class Contact extends BaseEntityWithUser {
|
|
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Contact = void 0;
|
|
13
13
|
const database_1 = require("../../common/database");
|
|
14
|
-
const contact_email_entity_1 = require("../helpers/contact_email.entity");
|
|
15
|
-
const contact_phone_entity_1 = require("../helpers/contact_phone.entity");
|
|
16
|
-
const contact_sources_entity_1 = require("../helpers/contact_sources.entity");
|
|
17
|
-
const contact_types_entity_1 = require("../helpers/contact_types.entity");
|
|
14
|
+
const contact_email_entity_1 = require("../helpers/sales/contact/contact_email.entity");
|
|
15
|
+
const contact_phone_entity_1 = require("../helpers/sales/contact/contact_phone.entity");
|
|
16
|
+
const contact_sources_entity_1 = require("../helpers/sales/contact/contact_sources.entity");
|
|
17
|
+
const contact_types_entity_1 = require("../helpers/sales/contact/contact_types.entity");
|
|
18
18
|
const user_entity_1 = require("../user.entity");
|
|
19
19
|
const typeorm_1 = require("typeorm");
|
|
20
20
|
const poliza_entity_1 = require("./poliza.entity");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,wFAA6E;AAC7E,wFAA6E;AAC7E,4FAAgF;AAChF,wFAA4E;AAC5E,gDAAsC;AACtC,qCAA+D;AAC/D,mDAAyC;AAGlC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,6BAAkB;IAE7C,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,GAAG,CAAS;IAGZ,KAAK,CAAS;IAGd,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,IAAI,CAAS;IA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AmInB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BaseEntity } from "../../common/database";
|
|
2
|
-
import { LeadEmail } from "../helpers/lead_email.entity";
|
|
3
|
-
import { LeadPhone } from "../helpers/lead_phone.entity";
|
|
2
|
+
import { LeadEmail } from "../helpers/sales/lead/lead_email.entity";
|
|
3
|
+
import { LeadPhone } from "../helpers/sales/lead/lead_phone.entity";
|
|
4
4
|
import { User } from "../user.entity";
|
|
5
5
|
import { Contact } from "./contact.entity";
|
|
6
|
+
import { LeadSource, LeadStage, LeadType } from "../helpers";
|
|
6
7
|
export declare class Lead extends BaseEntity {
|
|
7
8
|
curp: string;
|
|
8
9
|
idBitrix: number;
|
|
@@ -33,7 +34,6 @@ export declare class Lead extends BaseEntity {
|
|
|
33
34
|
companyTitle: string;
|
|
34
35
|
accountCurrencyId: string;
|
|
35
36
|
title: string;
|
|
36
|
-
source: string;
|
|
37
37
|
sourceDescription: string;
|
|
38
38
|
isReturnCustomer: boolean;
|
|
39
39
|
isManualOpportunity: boolean;
|
|
@@ -41,6 +41,9 @@ export declare class Lead extends BaseEntity {
|
|
|
41
41
|
createdBy: User;
|
|
42
42
|
observador: User;
|
|
43
43
|
contact: Contact;
|
|
44
|
+
type: LeadType;
|
|
45
|
+
stage: LeadStage;
|
|
46
|
+
source: LeadSource;
|
|
44
47
|
phones?: LeadPhone[];
|
|
45
48
|
emails?: LeadEmail[];
|
|
46
49
|
}
|
|
@@ -11,11 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Lead = void 0;
|
|
13
13
|
const database_1 = require("../../common/database");
|
|
14
|
-
const lead_email_entity_1 = require("../helpers/lead_email.entity");
|
|
15
|
-
const lead_phone_entity_1 = require("../helpers/lead_phone.entity");
|
|
14
|
+
const lead_email_entity_1 = require("../helpers/sales/lead/lead_email.entity");
|
|
15
|
+
const lead_phone_entity_1 = require("../helpers/sales/lead/lead_phone.entity");
|
|
16
16
|
const user_entity_1 = require("../user.entity");
|
|
17
17
|
const typeorm_1 = require("typeorm");
|
|
18
18
|
const contact_entity_1 = require("./contact.entity");
|
|
19
|
+
const helpers_1 = require("../helpers");
|
|
19
20
|
let Lead = class Lead extends database_1.BaseEntity {
|
|
20
21
|
curp;
|
|
21
22
|
idBitrix;
|
|
@@ -46,7 +47,6 @@ let Lead = class Lead extends database_1.BaseEntity {
|
|
|
46
47
|
companyTitle;
|
|
47
48
|
accountCurrencyId;
|
|
48
49
|
title;
|
|
49
|
-
source;
|
|
50
50
|
sourceDescription;
|
|
51
51
|
isReturnCustomer;
|
|
52
52
|
isManualOpportunity;
|
|
@@ -54,6 +54,9 @@ let Lead = class Lead extends database_1.BaseEntity {
|
|
|
54
54
|
createdBy;
|
|
55
55
|
observador;
|
|
56
56
|
contact;
|
|
57
|
+
type;
|
|
58
|
+
stage;
|
|
59
|
+
source;
|
|
57
60
|
phones;
|
|
58
61
|
emails;
|
|
59
62
|
};
|
|
@@ -174,10 +177,6 @@ __decorate([
|
|
|
174
177
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
175
178
|
__metadata("design:type", String)
|
|
176
179
|
], Lead.prototype, "title", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
(0, typeorm_1.Column)({ name: "source", length: 50, nullable: true }),
|
|
179
|
-
__metadata("design:type", String)
|
|
180
|
-
], Lead.prototype, "source", void 0);
|
|
181
180
|
__decorate([
|
|
182
181
|
(0, typeorm_1.Column)({ name: "source_description", type: "text", nullable: true }),
|
|
183
182
|
__metadata("design:type", String)
|
|
@@ -222,6 +221,33 @@ __decorate([
|
|
|
222
221
|
}),
|
|
223
222
|
__metadata("design:type", contact_entity_1.Contact)
|
|
224
223
|
], Lead.prototype, "contact", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadType, {
|
|
226
|
+
onDelete: "SET NULL",
|
|
227
|
+
onUpdate: "CASCADE",
|
|
228
|
+
nullable: true,
|
|
229
|
+
eager: true,
|
|
230
|
+
}),
|
|
231
|
+
__metadata("design:type", helpers_1.LeadType)
|
|
232
|
+
], Lead.prototype, "type", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadStage, {
|
|
235
|
+
onDelete: "SET NULL",
|
|
236
|
+
onUpdate: "CASCADE",
|
|
237
|
+
nullable: true,
|
|
238
|
+
eager: true,
|
|
239
|
+
}),
|
|
240
|
+
__metadata("design:type", helpers_1.LeadStage)
|
|
241
|
+
], Lead.prototype, "stage", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadSource, {
|
|
244
|
+
onDelete: "SET NULL",
|
|
245
|
+
onUpdate: "CASCADE",
|
|
246
|
+
nullable: true,
|
|
247
|
+
eager: true,
|
|
248
|
+
}),
|
|
249
|
+
__metadata("design:type", helpers_1.LeadSource)
|
|
250
|
+
], Lead.prototype, "source", void 0);
|
|
225
251
|
__decorate([
|
|
226
252
|
(0, typeorm_1.OneToMany)(() => lead_phone_entity_1.LeadPhone, (leadPhone) => leadPhone.lead, {
|
|
227
253
|
onDelete: "CASCADE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lead.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD
|
|
1
|
+
{"version":3,"file":"lead.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,+EAAoE;AACpE,+EAAoE;AACpE,gDAAsC;AACtC,qCAAyE;AACzE,qDAA2C;AAC3C,wCAA6D;AAGtD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;IAElC,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,GAAG,CAAS;IAG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
2
2
|
import { User } from "../user.entity";
|
|
3
3
|
import { Contact } from "./contact.entity";
|
|
4
|
-
import { PolizaFormaCobro, PolizaType } from "../helpers";
|
|
4
|
+
import { PolizaCompany, PolizaFormaCobro, PolizaType } from "../helpers";
|
|
5
5
|
import { File } from "../drive";
|
|
6
6
|
import { PolizaSiniestro } from "./poliza_siniestro.entity";
|
|
7
7
|
export declare class Poliza extends BaseEntityWithUser {
|
|
@@ -43,6 +43,7 @@ export declare class Poliza extends BaseEntityWithUser {
|
|
|
43
43
|
product?: string;
|
|
44
44
|
sourceId: string;
|
|
45
45
|
sourceDescription: string;
|
|
46
|
+
company: PolizaCompany;
|
|
46
47
|
type: PolizaType;
|
|
47
48
|
formaCobro: PolizaFormaCobro;
|
|
48
49
|
frecuenciaCobro: PolizaFormaCobro;
|
|
@@ -57,6 +57,7 @@ let Poliza = class Poliza extends database_1.BaseEntityWithUser {
|
|
|
57
57
|
product;
|
|
58
58
|
sourceId;
|
|
59
59
|
sourceDescription;
|
|
60
|
+
company;
|
|
60
61
|
type;
|
|
61
62
|
formaCobro;
|
|
62
63
|
frecuenciaCobro;
|
|
@@ -239,6 +240,14 @@ __decorate([
|
|
|
239
240
|
(0, typeorm_1.Column)({ nullable: true, name: "source_description" }),
|
|
240
241
|
__metadata("design:type", String)
|
|
241
242
|
], Poliza.prototype, "sourceDescription", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaCompany, {
|
|
245
|
+
onDelete: "SET NULL",
|
|
246
|
+
onUpdate: "CASCADE",
|
|
247
|
+
nullable: true,
|
|
248
|
+
}),
|
|
249
|
+
__metadata("design:type", helpers_1.PolizaCompany)
|
|
250
|
+
], Poliza.prototype, "company", void 0);
|
|
242
251
|
__decorate([
|
|
243
252
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaType, {
|
|
244
253
|
onDelete: "SET NULL",
|