easywork-common-lib 1.0.332 → 1.0.335
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.
|
@@ -7,9 +7,11 @@ export declare class TaskCRM extends BaseEntity {
|
|
|
7
7
|
type: TaskCRMType;
|
|
8
8
|
taskId: string;
|
|
9
9
|
task: Task;
|
|
10
|
-
|
|
10
|
+
contactId?: string;
|
|
11
11
|
contact?: Contact;
|
|
12
|
+
polizaId?: string;
|
|
12
13
|
poliza?: Poliza;
|
|
14
|
+
leadId?: string;
|
|
13
15
|
lead?: Lead;
|
|
14
16
|
get crmEntity(): Contact | Poliza | Lead | undefined;
|
|
15
17
|
}
|
|
@@ -21,9 +21,11 @@ let TaskCRM = class TaskCRM extends typeorm_1.BaseEntity {
|
|
|
21
21
|
type;
|
|
22
22
|
taskId;
|
|
23
23
|
task;
|
|
24
|
-
|
|
24
|
+
contactId;
|
|
25
25
|
contact;
|
|
26
|
+
polizaId;
|
|
26
27
|
poliza;
|
|
28
|
+
leadId;
|
|
27
29
|
lead;
|
|
28
30
|
get crmEntity() {
|
|
29
31
|
switch (this.type) {
|
|
@@ -42,7 +44,7 @@ exports.TaskCRM = TaskCRM;
|
|
|
42
44
|
__decorate([
|
|
43
45
|
(0, swagger_1.ApiProperty)({
|
|
44
46
|
type: String,
|
|
45
|
-
description: "UUID
|
|
47
|
+
description: "UUID del TaskCRM",
|
|
46
48
|
format: "uuid",
|
|
47
49
|
}),
|
|
48
50
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
@@ -51,7 +53,7 @@ __decorate([
|
|
|
51
53
|
__decorate([
|
|
52
54
|
(0, swagger_1.ApiProperty)({
|
|
53
55
|
enum: common_1.TaskCRMType,
|
|
54
|
-
description: "
|
|
56
|
+
description: "Tipo de la entidad CRM relacionada",
|
|
55
57
|
}),
|
|
56
58
|
(0, typeorm_1.Column)({
|
|
57
59
|
type: "enum",
|
|
@@ -62,13 +64,12 @@ __decorate([
|
|
|
62
64
|
__decorate([
|
|
63
65
|
(0, swagger_1.ApiProperty)({
|
|
64
66
|
type: String,
|
|
65
|
-
description: "ID
|
|
67
|
+
description: "ID de la tarea asociada",
|
|
66
68
|
}),
|
|
67
69
|
(0, typeorm_1.Column)(),
|
|
68
70
|
__metadata("design:type", String)
|
|
69
71
|
], TaskCRM.prototype, "taskId", void 0);
|
|
70
72
|
__decorate([
|
|
71
|
-
(0, class_transformer_1.Exclude)(),
|
|
72
73
|
(0, typeorm_1.ManyToOne)(() => tools_1.Task, (task) => task.crm, {
|
|
73
74
|
onDelete: "CASCADE",
|
|
74
75
|
onUpdate: "CASCADE",
|
|
@@ -77,33 +78,34 @@ __decorate([
|
|
|
77
78
|
__metadata("design:type", tools_1.Task)
|
|
78
79
|
], TaskCRM.prototype, "task", void 0);
|
|
79
80
|
__decorate([
|
|
80
|
-
(0,
|
|
81
|
-
type: String,
|
|
82
|
-
description: "ID of the associated CRM entity",
|
|
83
|
-
}),
|
|
84
|
-
(0, typeorm_1.Column)(),
|
|
81
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
85
82
|
__metadata("design:type", String)
|
|
86
|
-
], TaskCRM.prototype, "
|
|
83
|
+
], TaskCRM.prototype, "contactId", void 0);
|
|
87
84
|
__decorate([
|
|
88
85
|
(0, typeorm_1.ManyToOne)(() => sales_1.Contact, { nullable: true }),
|
|
89
|
-
(0, typeorm_1.JoinColumn)({ name: "
|
|
86
|
+
(0, typeorm_1.JoinColumn)({ name: "contactId" }),
|
|
90
87
|
__metadata("design:type", sales_1.Contact)
|
|
91
88
|
], TaskCRM.prototype, "contact", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], TaskCRM.prototype, "polizaId", void 0);
|
|
92
93
|
__decorate([
|
|
93
94
|
(0, typeorm_1.ManyToOne)(() => sales_1.Poliza, { nullable: true }),
|
|
94
|
-
(0, typeorm_1.JoinColumn)({ name: "
|
|
95
|
+
(0, typeorm_1.JoinColumn)({ name: "polizaId" }),
|
|
95
96
|
__metadata("design:type", sales_1.Poliza)
|
|
96
97
|
], TaskCRM.prototype, "poliza", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], TaskCRM.prototype, "leadId", void 0);
|
|
97
102
|
__decorate([
|
|
98
103
|
(0, typeorm_1.ManyToOne)(() => sales_1.Lead, { nullable: true }),
|
|
99
|
-
(0, typeorm_1.JoinColumn)({ name: "
|
|
104
|
+
(0, typeorm_1.JoinColumn)({ name: "leadId" }),
|
|
100
105
|
__metadata("design:type", sales_1.Lead)
|
|
101
106
|
], TaskCRM.prototype, "lead", void 0);
|
|
102
107
|
__decorate([
|
|
103
108
|
(0, class_transformer_1.Expose)(),
|
|
104
|
-
(0, swagger_1.ApiProperty)({
|
|
105
|
-
description: "Associated CRM entity (Contact, Poliza, or Lead)",
|
|
106
|
-
}),
|
|
107
109
|
__metadata("design:type", Object),
|
|
108
110
|
__metadata("design:paramtypes", [])
|
|
109
111
|
], TaskCRM.prototype, "crmEntity", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task_crm.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools/task_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,
|
|
1
|
+
{"version":3,"file":"task_crm.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools/task_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,yDAA2C;AAC3C,mDAA+C;AAC/C,4CAA8C;AAC9C,mDAAgE;AAChE,6CAA8C;AAGvC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,oBAAU;IAOrC,EAAE,CAAU;IAUZ,IAAI,CAAc;IAOlB,MAAM,CAAS;IAOf,IAAI,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