easywork-common-lib 1.0.823 → 1.0.825
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/entities/helpers/index.d.ts +1 -1
- package/dist/entities/helpers/index.js +1 -1
- package/dist/entities/helpers/index.js.map +1 -1
- package/dist/entities/helpers/tools2/event_crm.entity.d.ts +23 -0
- package/dist/entities/helpers/tools2/event_crm.entity.js +166 -0
- package/dist/entities/helpers/tools2/event_crm.entity.js.map +1 -0
- package/dist/entities/helpers/tools2/index.d.ts +2 -0
- package/dist/entities/helpers/tools2/index.js +19 -0
- package/dist/entities/helpers/tools2/index.js.map +1 -0
- package/dist/entities/helpers/tools2/task_crm.entity.d.ts +34 -0
- package/dist/entities/helpers/tools2/task_crm.entity.js +242 -0
- package/dist/entities/helpers/tools2/task_crm.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event.entity.d.ts +4 -4
- package/dist/entities/tools/calendar/event.entity.js +32 -32
- package/dist/entities/tools/calendar/event.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/helpers/user/access_history.entity.d.ts +0 -9
- package/dist/entities/helpers/user/access_history.entity.js +0 -58
- package/dist/entities/helpers/user/access_history.entity.js.map +0 -1
- package/dist/entities/third-party/email-config.entity.d.ts +0 -14
- package/dist/entities/third-party/email-config.entity.js +0 -76
- package/dist/entities/third-party/email-config.entity.js.map +0 -1
- package/dist/entities/third-party/email.entity.d.ts +0 -17
- package/dist/entities/third-party/email.entity.js +0 -79
- package/dist/entities/third-party/email.entity.js.map +0 -1
- package/dist/entities/third-party/google-webhooks-config.entity.d.ts +0 -14
- package/dist/entities/third-party/google-webhooks-config.entity.js +0 -72
- package/dist/entities/third-party/google-webhooks-config.entity.js.map +0 -1
- package/dist/entities/third-party/oauth-v2.entity.d.ts +0 -22
- package/dist/entities/third-party/oauth-v2.entity.js +0 -75
- package/dist/entities/third-party/oauth-v2.entity.js.map +0 -1
- package/dist/entities/third-party/oauth.entity.d.ts +0 -21
- package/dist/entities/third-party/oauth.entity.js +0 -100
- package/dist/entities/third-party/oauth.entity.js.map +0 -1
- package/dist/entities/third-party/service.entity.d.ts +0 -8
- package/dist/entities/third-party/service.entity.js +0 -38
- package/dist/entities/third-party/service.entity.js.map +0 -1
- package/dist/entities/third-party/user-email-relation.entity.d.ts +0 -7
- package/dist/entities/third-party/user-email-relation.entity.js +0 -35
- package/dist/entities/third-party/user-email-relation.entity.js.map +0 -1
|
@@ -17,6 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./entity_file.entity"), exports);
|
|
18
18
|
__exportStar(require("./entity_folder.entity"), exports);
|
|
19
19
|
__exportStar(require("./sales"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./tools2"), exports);
|
|
21
21
|
__exportStar(require("./meeting_crm.entity"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,yDAAuC;AACvC,0CAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,yDAAuC;AACvC,0CAAwB;AACxB,2CAAyB;AACzB,uDAAqC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { EventCalendar, Task } from '../../tools';
|
|
3
|
+
import { EventCRMType } from '../../../common';
|
|
4
|
+
import { Agent, Contact, Lead, Poliza, Receipt } from '../../sales';
|
|
5
|
+
export declare class EventCRM extends BaseEntity {
|
|
6
|
+
id?: string;
|
|
7
|
+
type: EventCRMType;
|
|
8
|
+
eventId: string;
|
|
9
|
+
event: EventCalendar;
|
|
10
|
+
contactId?: string;
|
|
11
|
+
contact?: Contact;
|
|
12
|
+
polizaId?: string;
|
|
13
|
+
poliza?: Poliza;
|
|
14
|
+
leadId?: string;
|
|
15
|
+
lead?: Lead;
|
|
16
|
+
receiptId?: string;
|
|
17
|
+
receipt?: Receipt;
|
|
18
|
+
taskId?: string;
|
|
19
|
+
task?: Task;
|
|
20
|
+
agentId?: string;
|
|
21
|
+
agent?: Agent;
|
|
22
|
+
get crmEntity(): Contact | Poliza | Lead | Receipt | Task | Agent | undefined;
|
|
23
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
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.EventCRM = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const tools_1 = require("../../tools");
|
|
17
|
+
const common_1 = require("../../../common");
|
|
18
|
+
const sales_1 = require("../../sales");
|
|
19
|
+
let EventCRM = class EventCRM extends typeorm_1.BaseEntity {
|
|
20
|
+
id;
|
|
21
|
+
type;
|
|
22
|
+
eventId;
|
|
23
|
+
event;
|
|
24
|
+
contactId;
|
|
25
|
+
contact;
|
|
26
|
+
polizaId;
|
|
27
|
+
poliza;
|
|
28
|
+
leadId;
|
|
29
|
+
lead;
|
|
30
|
+
receiptId;
|
|
31
|
+
receipt;
|
|
32
|
+
taskId;
|
|
33
|
+
task;
|
|
34
|
+
agentId;
|
|
35
|
+
agent;
|
|
36
|
+
get crmEntity() {
|
|
37
|
+
switch (this.type) {
|
|
38
|
+
case common_1.EventCRMType.CONTACT:
|
|
39
|
+
return this.contact;
|
|
40
|
+
case common_1.EventCRMType.POLIZA:
|
|
41
|
+
return this.poliza;
|
|
42
|
+
case common_1.EventCRMType.LEAD:
|
|
43
|
+
return this.lead;
|
|
44
|
+
case common_1.EventCRMType.RECEIPT:
|
|
45
|
+
return this.receipt;
|
|
46
|
+
case common_1.EventCRMType.TASK:
|
|
47
|
+
return this.task;
|
|
48
|
+
case common_1.EventCRMType.AGENT:
|
|
49
|
+
return this.agent;
|
|
50
|
+
default:
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.EventCRM = EventCRM;
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({
|
|
58
|
+
type: String,
|
|
59
|
+
description: 'UUID del EventCRM',
|
|
60
|
+
format: 'uuid',
|
|
61
|
+
}),
|
|
62
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], EventCRM.prototype, "id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, swagger_1.ApiProperty)({
|
|
67
|
+
enum: common_1.EventCRMType,
|
|
68
|
+
description: 'Tipo de la entidad CRM relacionada',
|
|
69
|
+
}),
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: common_1.EventCRMType,
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], EventCRM.prototype, "type", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
type: String,
|
|
79
|
+
description: 'ID de la tarea asociada',
|
|
80
|
+
}),
|
|
81
|
+
(0, typeorm_1.Column)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], EventCRM.prototype, "eventId", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.ManyToOne)(() => tools_1.EventCalendar, event => event.crm, {
|
|
86
|
+
onDelete: 'CASCADE',
|
|
87
|
+
onUpdate: 'CASCADE',
|
|
88
|
+
}),
|
|
89
|
+
(0, typeorm_1.JoinColumn)({ name: 'eventId' }),
|
|
90
|
+
__metadata("design:type", tools_1.EventCalendar)
|
|
91
|
+
], EventCRM.prototype, "event", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_transformer_1.Exclude)(),
|
|
94
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], EventCRM.prototype, "contactId", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_transformer_1.Exclude)(),
|
|
99
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Contact, { nullable: true, onDelete: 'CASCADE' }),
|
|
100
|
+
(0, typeorm_1.JoinColumn)({ name: 'contactId' }),
|
|
101
|
+
__metadata("design:type", sales_1.Contact)
|
|
102
|
+
], EventCRM.prototype, "contact", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_transformer_1.Exclude)(),
|
|
105
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], EventCRM.prototype, "polizaId", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, class_transformer_1.Exclude)(),
|
|
110
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Poliza, { nullable: true, onDelete: 'CASCADE' }),
|
|
111
|
+
(0, typeorm_1.JoinColumn)({ name: 'polizaId' }),
|
|
112
|
+
__metadata("design:type", sales_1.Poliza)
|
|
113
|
+
], EventCRM.prototype, "poliza", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, class_transformer_1.Exclude)(),
|
|
116
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], EventCRM.prototype, "leadId", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, class_transformer_1.Exclude)(),
|
|
121
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Lead, { nullable: true, onDelete: 'CASCADE' }),
|
|
122
|
+
(0, typeorm_1.JoinColumn)({ name: 'leadId' }),
|
|
123
|
+
__metadata("design:type", sales_1.Lead)
|
|
124
|
+
], EventCRM.prototype, "lead", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_transformer_1.Exclude)(),
|
|
127
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], EventCRM.prototype, "receiptId", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, class_transformer_1.Exclude)(),
|
|
132
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Receipt, { nullable: true, onDelete: 'CASCADE' }),
|
|
133
|
+
(0, typeorm_1.JoinColumn)({ name: 'receiptId' }),
|
|
134
|
+
__metadata("design:type", sales_1.Receipt)
|
|
135
|
+
], EventCRM.prototype, "receipt", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, class_transformer_1.Exclude)(),
|
|
138
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], EventCRM.prototype, "taskId", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_transformer_1.Exclude)(),
|
|
143
|
+
(0, typeorm_1.ManyToOne)(() => tools_1.Task, { nullable: true, onDelete: 'CASCADE' }),
|
|
144
|
+
(0, typeorm_1.JoinColumn)({ name: 'taskId' }),
|
|
145
|
+
__metadata("design:type", tools_1.Task)
|
|
146
|
+
], EventCRM.prototype, "task", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, class_transformer_1.Exclude)(),
|
|
149
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], EventCRM.prototype, "agentId", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, class_transformer_1.Exclude)(),
|
|
154
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Agent, { nullable: true, onDelete: 'CASCADE' }),
|
|
155
|
+
(0, typeorm_1.JoinColumn)({ name: 'agentId' }),
|
|
156
|
+
__metadata("design:type", sales_1.Agent)
|
|
157
|
+
], EventCRM.prototype, "agent", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, class_transformer_1.Expose)(),
|
|
160
|
+
__metadata("design:type", Object),
|
|
161
|
+
__metadata("design:paramtypes", [])
|
|
162
|
+
], EventCRM.prototype, "crmEntity", null);
|
|
163
|
+
exports.EventCRM = EventCRM = __decorate([
|
|
164
|
+
(0, typeorm_1.Entity)()
|
|
165
|
+
], EventCRM);
|
|
166
|
+
//# sourceMappingURL=event_crm.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event_crm.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools2/event_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoG;AACpG,6CAA8C;AAC9C,yDAAoD;AAEpD,uCAAkD;AAClD,4CAA+C;AAC/C,uCAAoE;AAG7D,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,oBAAU;IAOtC,EAAE,CAAU;IAUZ,IAAI,CAAe;IAOnB,OAAO,CAAS;IAOhB,KAAK,CAAgB;IAKrB,SAAS,CAAU;IAKnB,OAAO,CAAW;IAIlB,QAAQ,CAAU;IAKlB,M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+
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("./task_crm.entity"), exports);
|
|
18
|
+
__exportStar(require("./event_crm.entity"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools2/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { TaskCRMType } from '../../../common';
|
|
3
|
+
import { Agent, Contact, Lead, Poliza, PolizaClaim, PolizaFundRecovery, PolizaReimbursement, PolizaScheduling, Receipt } from '../../sales';
|
|
4
|
+
import { Task } from '../../tools';
|
|
5
|
+
import { Policy } from '../../policy/policy.entity';
|
|
6
|
+
export declare class TaskCRM extends BaseEntity {
|
|
7
|
+
id?: string;
|
|
8
|
+
type: TaskCRMType;
|
|
9
|
+
taskId: string;
|
|
10
|
+
task: Task;
|
|
11
|
+
contactId?: string;
|
|
12
|
+
contact?: Contact;
|
|
13
|
+
polizaId?: string;
|
|
14
|
+
poliza?: Poliza;
|
|
15
|
+
renewalId?: string;
|
|
16
|
+
renewal?: Poliza;
|
|
17
|
+
leadId?: string;
|
|
18
|
+
lead?: Lead;
|
|
19
|
+
receiptId?: string;
|
|
20
|
+
receipt?: Receipt;
|
|
21
|
+
agentId?: string;
|
|
22
|
+
agent?: Agent;
|
|
23
|
+
polizaSchedulingId?: string;
|
|
24
|
+
polizaScheduling?: PolizaScheduling;
|
|
25
|
+
polizaReimbursementId?: string;
|
|
26
|
+
polizaReimbursement?: PolizaReimbursement;
|
|
27
|
+
polizaClaimId?: string;
|
|
28
|
+
polizaClaim?: PolizaClaim;
|
|
29
|
+
polizaFundRecoveryId?: string;
|
|
30
|
+
polizaFundRecovery?: PolizaFundRecovery;
|
|
31
|
+
policyId?: string;
|
|
32
|
+
policy?: Policy;
|
|
33
|
+
get crmEntity(): Contact | Poliza | Lead | Receipt | Agent | PolizaScheduling | PolizaReimbursement | PolizaFundRecovery | PolizaClaim | Policy | undefined;
|
|
34
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
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.TaskCRM = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const common_1 = require("../../../common");
|
|
17
|
+
const sales_1 = require("../../sales");
|
|
18
|
+
const tools_1 = require("../../tools");
|
|
19
|
+
const policy_entity_1 = require("../../policy/policy.entity");
|
|
20
|
+
let TaskCRM = class TaskCRM extends typeorm_1.BaseEntity {
|
|
21
|
+
id;
|
|
22
|
+
type;
|
|
23
|
+
taskId;
|
|
24
|
+
task;
|
|
25
|
+
contactId;
|
|
26
|
+
contact;
|
|
27
|
+
polizaId;
|
|
28
|
+
poliza;
|
|
29
|
+
renewalId;
|
|
30
|
+
renewal;
|
|
31
|
+
leadId;
|
|
32
|
+
lead;
|
|
33
|
+
receiptId;
|
|
34
|
+
receipt;
|
|
35
|
+
agentId;
|
|
36
|
+
agent;
|
|
37
|
+
polizaSchedulingId;
|
|
38
|
+
polizaScheduling;
|
|
39
|
+
polizaReimbursementId;
|
|
40
|
+
polizaReimbursement;
|
|
41
|
+
polizaClaimId;
|
|
42
|
+
polizaClaim;
|
|
43
|
+
polizaFundRecoveryId;
|
|
44
|
+
polizaFundRecovery;
|
|
45
|
+
policyId;
|
|
46
|
+
policy;
|
|
47
|
+
get crmEntity() {
|
|
48
|
+
switch (this.type) {
|
|
49
|
+
case common_1.TaskCRMType.CONTACT:
|
|
50
|
+
return this.contact;
|
|
51
|
+
case common_1.TaskCRMType.POLIZA:
|
|
52
|
+
return this.poliza;
|
|
53
|
+
case common_1.TaskCRMType.RENEWAL:
|
|
54
|
+
return this.renewal;
|
|
55
|
+
case common_1.TaskCRMType.LEAD:
|
|
56
|
+
return this.lead;
|
|
57
|
+
case common_1.TaskCRMType.RECEIPT:
|
|
58
|
+
return this.receipt;
|
|
59
|
+
case common_1.TaskCRMType.AGENT:
|
|
60
|
+
return this.agent;
|
|
61
|
+
case common_1.TaskCRMType.POLIZA_SCHEDULING:
|
|
62
|
+
return this.polizaScheduling;
|
|
63
|
+
case common_1.TaskCRMType.POLIZA_REIMBURSEMENT:
|
|
64
|
+
return this.polizaReimbursement;
|
|
65
|
+
case common_1.TaskCRMType.POLIZA_FUND_RECOVERY:
|
|
66
|
+
return this.polizaFundRecovery;
|
|
67
|
+
case common_1.TaskCRMType.POLIZA_CLAIM:
|
|
68
|
+
return this.polizaClaim;
|
|
69
|
+
case common_1.TaskCRMType.POLICY:
|
|
70
|
+
return this.policy;
|
|
71
|
+
default:
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
exports.TaskCRM = TaskCRM;
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiProperty)({
|
|
79
|
+
type: String,
|
|
80
|
+
description: 'UUID del TaskCRM',
|
|
81
|
+
format: 'uuid',
|
|
82
|
+
}),
|
|
83
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], TaskCRM.prototype, "id", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)({
|
|
88
|
+
enum: common_1.TaskCRMType,
|
|
89
|
+
description: 'Tipo de la entidad CRM relacionada',
|
|
90
|
+
}),
|
|
91
|
+
(0, typeorm_1.Column)({
|
|
92
|
+
type: 'enum',
|
|
93
|
+
enum: common_1.TaskCRMType,
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], TaskCRM.prototype, "type", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)({
|
|
99
|
+
type: String,
|
|
100
|
+
description: 'ID de la tarea asociada',
|
|
101
|
+
}),
|
|
102
|
+
(0, typeorm_1.Column)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], TaskCRM.prototype, "taskId", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.ManyToOne)(() => tools_1.Task, task => task.crm, {
|
|
107
|
+
onDelete: 'CASCADE',
|
|
108
|
+
onUpdate: 'CASCADE',
|
|
109
|
+
}),
|
|
110
|
+
(0, typeorm_1.JoinColumn)({ name: 'taskId' }),
|
|
111
|
+
__metadata("design:type", tools_1.Task)
|
|
112
|
+
], TaskCRM.prototype, "task", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, class_transformer_1.Exclude)(),
|
|
115
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], TaskCRM.prototype, "contactId", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, class_transformer_1.Exclude)(),
|
|
120
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Contact, { nullable: true, onDelete: 'CASCADE' }),
|
|
121
|
+
(0, typeorm_1.JoinColumn)({ name: 'contactId' }),
|
|
122
|
+
__metadata("design:type", sales_1.Contact)
|
|
123
|
+
], TaskCRM.prototype, "contact", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_transformer_1.Exclude)(),
|
|
126
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], TaskCRM.prototype, "polizaId", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, class_transformer_1.Exclude)(),
|
|
131
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Poliza, { nullable: true, onDelete: 'CASCADE' }),
|
|
132
|
+
(0, typeorm_1.JoinColumn)({ name: 'polizaId' }),
|
|
133
|
+
__metadata("design:type", sales_1.Poliza)
|
|
134
|
+
], TaskCRM.prototype, "poliza", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, class_transformer_1.Exclude)(),
|
|
137
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], TaskCRM.prototype, "renewalId", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, class_transformer_1.Exclude)(),
|
|
142
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Poliza, { nullable: true, onDelete: 'CASCADE' }),
|
|
143
|
+
(0, typeorm_1.JoinColumn)({ name: 'renewalId' }),
|
|
144
|
+
__metadata("design:type", sales_1.Poliza)
|
|
145
|
+
], TaskCRM.prototype, "renewal", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, class_transformer_1.Exclude)(),
|
|
148
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], TaskCRM.prototype, "leadId", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, class_transformer_1.Exclude)(),
|
|
153
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Lead, { nullable: true, onDelete: 'CASCADE' }),
|
|
154
|
+
(0, typeorm_1.JoinColumn)({ name: 'leadId' }),
|
|
155
|
+
__metadata("design:type", sales_1.Lead)
|
|
156
|
+
], TaskCRM.prototype, "lead", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, class_transformer_1.Exclude)(),
|
|
159
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
160
|
+
__metadata("design:type", String)
|
|
161
|
+
], TaskCRM.prototype, "receiptId", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, class_transformer_1.Exclude)(),
|
|
164
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Receipt, { nullable: true, onDelete: 'CASCADE' }),
|
|
165
|
+
(0, typeorm_1.JoinColumn)({ name: 'receiptId' }),
|
|
166
|
+
__metadata("design:type", sales_1.Receipt)
|
|
167
|
+
], TaskCRM.prototype, "receipt", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, class_transformer_1.Exclude)(),
|
|
170
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
171
|
+
__metadata("design:type", String)
|
|
172
|
+
], TaskCRM.prototype, "agentId", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, class_transformer_1.Exclude)(),
|
|
175
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Agent, { nullable: true, onDelete: 'CASCADE' }),
|
|
176
|
+
(0, typeorm_1.JoinColumn)({ name: 'agentId' }),
|
|
177
|
+
__metadata("design:type", sales_1.Agent)
|
|
178
|
+
], TaskCRM.prototype, "agent", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, class_transformer_1.Exclude)(),
|
|
181
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], TaskCRM.prototype, "polizaSchedulingId", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, class_transformer_1.Exclude)(),
|
|
186
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.PolizaScheduling, { nullable: true, onDelete: 'CASCADE' }),
|
|
187
|
+
(0, typeorm_1.JoinColumn)({ name: 'polizaSchedulingId' }),
|
|
188
|
+
__metadata("design:type", sales_1.PolizaScheduling)
|
|
189
|
+
], TaskCRM.prototype, "polizaScheduling", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, class_transformer_1.Exclude)(),
|
|
192
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
193
|
+
__metadata("design:type", String)
|
|
194
|
+
], TaskCRM.prototype, "polizaReimbursementId", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, class_transformer_1.Exclude)(),
|
|
197
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.PolizaReimbursement, { nullable: true, onDelete: 'CASCADE' }),
|
|
198
|
+
(0, typeorm_1.JoinColumn)({ name: 'polizaReimbursementId' }),
|
|
199
|
+
__metadata("design:type", sales_1.PolizaReimbursement)
|
|
200
|
+
], TaskCRM.prototype, "polizaReimbursement", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, class_transformer_1.Exclude)(),
|
|
203
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
204
|
+
__metadata("design:type", String)
|
|
205
|
+
], TaskCRM.prototype, "polizaClaimId", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, class_transformer_1.Exclude)(),
|
|
208
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.PolizaClaim, { nullable: true, onDelete: 'CASCADE' }),
|
|
209
|
+
(0, typeorm_1.JoinColumn)({ name: 'polizaClaimId' }),
|
|
210
|
+
__metadata("design:type", sales_1.PolizaClaim)
|
|
211
|
+
], TaskCRM.prototype, "polizaClaim", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, class_transformer_1.Exclude)(),
|
|
214
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
215
|
+
__metadata("design:type", String)
|
|
216
|
+
], TaskCRM.prototype, "polizaFundRecoveryId", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, class_transformer_1.Exclude)(),
|
|
219
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.PolizaFundRecovery, { nullable: true, onDelete: 'CASCADE' }),
|
|
220
|
+
(0, typeorm_1.JoinColumn)({ name: 'polizaFundRecoveryId' }),
|
|
221
|
+
__metadata("design:type", sales_1.PolizaFundRecovery)
|
|
222
|
+
], TaskCRM.prototype, "polizaFundRecovery", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, class_transformer_1.Exclude)(),
|
|
225
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
226
|
+
__metadata("design:type", String)
|
|
227
|
+
], TaskCRM.prototype, "policyId", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, class_transformer_1.Exclude)(),
|
|
230
|
+
(0, typeorm_1.ManyToOne)(() => policy_entity_1.Policy, { nullable: true, onDelete: 'CASCADE' }),
|
|
231
|
+
(0, typeorm_1.JoinColumn)({ name: 'policyId' }),
|
|
232
|
+
__metadata("design:type", policy_entity_1.Policy)
|
|
233
|
+
], TaskCRM.prototype, "policy", void 0);
|
|
234
|
+
__decorate([
|
|
235
|
+
(0, class_transformer_1.Expose)(),
|
|
236
|
+
__metadata("design:type", Object),
|
|
237
|
+
__metadata("design:paramtypes", [])
|
|
238
|
+
], TaskCRM.prototype, "crmEntity", null);
|
|
239
|
+
exports.TaskCRM = TaskCRM = __decorate([
|
|
240
|
+
(0, typeorm_1.Entity)()
|
|
241
|
+
], TaskCRM);
|
|
242
|
+
//# sourceMappingURL=task_crm.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task_crm.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools2/task_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoG;AACpG,yDAAoD;AACpD,6CAA8C;AAE9C,4CAA8C;AAC9C,uCAA4I;AAC5I,uCAAmC;AACnC,8DAAoD;AAG7C,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,oBAAU;IAOrC,EAAE,CAAU;IAUZ,IAAI,CAAc;IAOlB,MAAM,CAAS;IAOf,IAAI,CAAO;IAKX,SAAS,CAAU;IAKnB,OAAO,CAAW;IAIlB,QAAQ,CAAU;IAKlB,MAAM,CAAU;IAIhB,SAAS,CAAU;IAKnB,OAAO,CAAU;IAIjB,MAAM,CAAU;IAKhB,IAAI,CAAQ;IAIZ,SAAS,CAAU;IAKnB,OAAO,CAAW;IAIlB,OAAO,CAAU;IAKjB,KAAK,CAAS;IAId,kBAAkB,CAAU;IAK5B,gBAAgB,CAAoB;IAIpC,qBAAqB,CAAU;IAK/B,mBAAmB,CAAuB;IAI1C,aAAa,CAAU;IAKvB,WAAW,CAAe;IAI1B,oBAAoB,CAAU;IAK9B,kBAAkB,CAAsB;IAIxC,QAAQ,CAAU;IAKlB,MAAM,CAAU;IAEhB,IACI,SAAS;QACX,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,oBAAW,CAAC,OAAO;gBACtB,OAAO,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,oBAAW,CAAC,MAAM;gBACrB,OAAO,IAAI,CAAC,MAAM,CAAC;YACrB,KAAK,oBAAW,CAAC,OAAO;gBACtB,OAAO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EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAChE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BACxB,sBAAM;uCAAC;AAEhB;IAAC,IAAA,0BAAM,GAAE;;;wCA4BR;kBAjKU,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAkKnB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EntityBase } from
|
|
2
|
-
import { EventRepeatMode } from
|
|
3
|
-
import { User } from
|
|
4
|
-
import { EventCRM } from
|
|
1
|
+
import { EntityBase } from '../../../common/database/base.entity';
|
|
2
|
+
import { EventRepeatMode } from '../../../common';
|
|
3
|
+
import { User } from '../../user.entity';
|
|
4
|
+
import { EventCRM } from '../../helpers/tools2';
|
|
5
5
|
export declare class EventCalendar extends EntityBase {
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|