easywork-common-lib 1.0.321 → 1.0.322
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.
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { BaseEntity } from "typeorm";
|
|
2
2
|
import { Task } from "../../../entities/tools";
|
|
3
3
|
import { TaskCRMType } from "../../../common";
|
|
4
|
-
import { Contact, Poliza } from "../../../entities/sales";
|
|
4
|
+
import { Contact, Lead, Poliza } from "../../../entities/sales";
|
|
5
5
|
export declare class TaskCRM extends BaseEntity {
|
|
6
6
|
id?: string;
|
|
7
7
|
type: TaskCRMType;
|
|
8
8
|
taskId: string;
|
|
9
|
-
contactId: string;
|
|
10
|
-
polizaId: string;
|
|
11
9
|
task: Task;
|
|
10
|
+
contactId: string;
|
|
12
11
|
contact: Contact;
|
|
12
|
+
polizaId: string;
|
|
13
13
|
poliza: Poliza;
|
|
14
|
+
leadId: string;
|
|
15
|
+
lead: Lead;
|
|
14
16
|
}
|
|
@@ -20,11 +20,13 @@ let TaskCRM = class TaskCRM extends typeorm_1.BaseEntity {
|
|
|
20
20
|
id;
|
|
21
21
|
type;
|
|
22
22
|
taskId;
|
|
23
|
-
contactId;
|
|
24
|
-
polizaId;
|
|
25
23
|
task;
|
|
24
|
+
contactId;
|
|
26
25
|
contact;
|
|
26
|
+
polizaId;
|
|
27
27
|
poliza;
|
|
28
|
+
leadId;
|
|
29
|
+
lead;
|
|
28
30
|
};
|
|
29
31
|
exports.TaskCRM = TaskCRM;
|
|
30
32
|
__decorate([
|
|
@@ -45,20 +47,6 @@ __decorate([
|
|
|
45
47
|
(0, typeorm_1.Column)(),
|
|
46
48
|
__metadata("design:type", String)
|
|
47
49
|
], TaskCRM.prototype, "taskId", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated contact', required: false }),
|
|
50
|
-
(0, typeorm_1.Column)({
|
|
51
|
-
nullable: true,
|
|
52
|
-
}),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], TaskCRM.prototype, "contactId", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated policy', required: false }),
|
|
57
|
-
(0, typeorm_1.Column)({
|
|
58
|
-
nullable: true,
|
|
59
|
-
}),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], TaskCRM.prototype, "polizaId", void 0);
|
|
62
50
|
__decorate([
|
|
63
51
|
(0, class_transformer_1.Exclude)(),
|
|
64
52
|
(0, swagger_1.ApiProperty)({ type: () => tools_1.Task, description: 'Task entity associated' }),
|
|
@@ -68,6 +56,13 @@ __decorate([
|
|
|
68
56
|
}),
|
|
69
57
|
__metadata("design:type", tools_1.Task)
|
|
70
58
|
], TaskCRM.prototype, "task", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated contact', required: false }),
|
|
61
|
+
(0, typeorm_1.Column)({
|
|
62
|
+
nullable: true,
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], TaskCRM.prototype, "contactId", void 0);
|
|
71
66
|
__decorate([
|
|
72
67
|
(0, swagger_1.ApiProperty)({ type: () => sales_1.Contact, description: 'Contact entity associated', required: false }),
|
|
73
68
|
(0, typeorm_1.ManyToOne)(() => sales_1.Contact, {
|
|
@@ -78,6 +73,13 @@ __decorate([
|
|
|
78
73
|
}),
|
|
79
74
|
__metadata("design:type", sales_1.Contact)
|
|
80
75
|
], TaskCRM.prototype, "contact", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated policy', required: false }),
|
|
78
|
+
(0, typeorm_1.Column)({
|
|
79
|
+
nullable: true,
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], TaskCRM.prototype, "polizaId", void 0);
|
|
81
83
|
__decorate([
|
|
82
84
|
(0, swagger_1.ApiProperty)({ type: () => sales_1.Poliza, description: 'Policy entity associated', required: false }),
|
|
83
85
|
(0, typeorm_1.ManyToOne)(() => sales_1.Poliza, {
|
|
@@ -88,6 +90,23 @@ __decorate([
|
|
|
88
90
|
}),
|
|
89
91
|
__metadata("design:type", sales_1.Poliza)
|
|
90
92
|
], TaskCRM.prototype, "poliza", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated lead', required: false }),
|
|
95
|
+
(0, typeorm_1.Column)({
|
|
96
|
+
nullable: true,
|
|
97
|
+
}),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], TaskCRM.prototype, "leadId", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, swagger_1.ApiProperty)({ type: () => sales_1.Lead, description: 'Lead entity associated', required: false }),
|
|
102
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Lead, {
|
|
103
|
+
onDelete: "CASCADE",
|
|
104
|
+
onUpdate: "CASCADE",
|
|
105
|
+
eager: true,
|
|
106
|
+
nullable: true,
|
|
107
|
+
}),
|
|
108
|
+
__metadata("design:type", sales_1.Lead)
|
|
109
|
+
], TaskCRM.prototype, "lead", void 0);
|
|
91
110
|
exports.TaskCRM = TaskCRM = __decorate([
|
|
92
111
|
(0, typeorm_1.Entity)()
|
|
93
112
|
], TaskCRM);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task_crm.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools/task_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,mDAA+C;AAC/C,4CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"task_crm.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools/task_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,mDAA+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