easywork-common-lib 1.0.576 → 1.0.577
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/enums/common.enum.d.ts +18 -0
- package/dist/common/enums/common.enum.js +25 -0
- package/dist/common/enums/common.enum.js.map +1 -0
- package/dist/common/enums/index.d.ts +5 -4
- package/dist/common/enums/index.js +1 -0
- package/dist/common/enums/index.js.map +1 -1
- package/dist/entities/helpers/index.d.ts +1 -0
- package/dist/entities/helpers/index.js +1 -0
- package/dist/entities/helpers/index.js.map +1 -1
- package/dist/entities/helpers/meeting_crm.entity.d.ts +23 -0
- package/dist/entities/helpers/meeting_crm.entity.js +166 -0
- package/dist/entities/helpers/meeting_crm.entity.js.map +1 -0
- package/dist/entities/index.d.ts +30 -28
- package/dist/entities/index.js +2 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/meeting-comment.entity.d.ts +8 -0
- package/dist/entities/meeting-comment.entity.js +46 -0
- package/dist/entities/meeting-comment.entity.js.map +1 -0
- package/dist/entities/meeting-list-field.d.ts +5 -0
- package/dist/entities/meeting-list-field.js +46 -0
- package/dist/entities/meeting-list-field.js.map +1 -0
- package/dist/entities/meeting.entity.d.ts +19 -0
- package/dist/entities/meeting.entity.js +157 -0
- package/dist/entities/meeting.entity.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum MeetingStatus {
|
|
2
|
+
CANCELLED = "cancelled",
|
|
3
|
+
ACTIVE = "active",
|
|
4
|
+
COMPLETED = "completed",
|
|
5
|
+
PENDING = "pending"
|
|
6
|
+
}
|
|
7
|
+
export declare enum MeetingType {
|
|
8
|
+
INDIVIDUAL = "individual",
|
|
9
|
+
GROUP = "group"
|
|
10
|
+
}
|
|
11
|
+
export declare enum MeetingCRMType {
|
|
12
|
+
CONTACT = "contact",
|
|
13
|
+
POLIZA = "poliza",
|
|
14
|
+
RENEWAL = "renewal",
|
|
15
|
+
LEAD = "lead",
|
|
16
|
+
RECEIPT = "receipt",
|
|
17
|
+
AGENT = "agent"
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MeetingCRMType = exports.MeetingType = exports.MeetingStatus = void 0;
|
|
4
|
+
var MeetingStatus;
|
|
5
|
+
(function (MeetingStatus) {
|
|
6
|
+
MeetingStatus["CANCELLED"] = "cancelled";
|
|
7
|
+
MeetingStatus["ACTIVE"] = "active";
|
|
8
|
+
MeetingStatus["COMPLETED"] = "completed";
|
|
9
|
+
MeetingStatus["PENDING"] = "pending";
|
|
10
|
+
})(MeetingStatus || (exports.MeetingStatus = MeetingStatus = {}));
|
|
11
|
+
var MeetingType;
|
|
12
|
+
(function (MeetingType) {
|
|
13
|
+
MeetingType["INDIVIDUAL"] = "individual";
|
|
14
|
+
MeetingType["GROUP"] = "group";
|
|
15
|
+
})(MeetingType || (exports.MeetingType = MeetingType = {}));
|
|
16
|
+
var MeetingCRMType;
|
|
17
|
+
(function (MeetingCRMType) {
|
|
18
|
+
MeetingCRMType["CONTACT"] = "contact";
|
|
19
|
+
MeetingCRMType["POLIZA"] = "poliza";
|
|
20
|
+
MeetingCRMType["RENEWAL"] = "renewal";
|
|
21
|
+
MeetingCRMType["LEAD"] = "lead";
|
|
22
|
+
MeetingCRMType["RECEIPT"] = "receipt";
|
|
23
|
+
MeetingCRMType["AGENT"] = "agent";
|
|
24
|
+
})(MeetingCRMType || (exports.MeetingCRMType = MeetingCRMType = {}));
|
|
25
|
+
//# sourceMappingURL=common.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,wCAAyB,CAAA;IACzB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,iCAAe,CAAA;AACjB,CAAC,EAPW,cAAc,8BAAd,cAAc,QAOzB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./notification.enum";
|
|
2
|
+
export * from "./sales.enum";
|
|
3
|
+
export * from "./tools.enum";
|
|
4
|
+
export * from "./drive.enum";
|
|
5
|
+
export * from "./common.enum";
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./notification.enum"), exports);
|
|
|
18
18
|
__exportStar(require("./sales.enum"), exports);
|
|
19
19
|
__exportStar(require("./tools.enum"), exports);
|
|
20
20
|
__exportStar(require("./drive.enum"), exports);
|
|
21
|
+
__exportStar(require("./common.enum"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B"}
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./entity_file.entity"), exports);
|
|
|
18
18
|
__exportStar(require("./entity_folder.entity"), exports);
|
|
19
19
|
__exportStar(require("./sales"), exports);
|
|
20
20
|
__exportStar(require("./tools"), exports);
|
|
21
|
+
__exportStar(require("./meeting_crm.entity"), exports);
|
|
21
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,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,yDAAuC;AACvC,0CAAwB;AACxB,0CAAwB;AACxB,uDAAqC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Meeting } from "../../entities";
|
|
3
|
+
import { MeetingCRMType } from "../../common";
|
|
4
|
+
import { Agent, Contact, Lead, Poliza, Receipt } from "../../entities/sales";
|
|
5
|
+
export declare class MeetingCRM extends BaseEntity {
|
|
6
|
+
id?: string;
|
|
7
|
+
type: MeetingCRMType;
|
|
8
|
+
meetingId: string;
|
|
9
|
+
meeting: Meeting;
|
|
10
|
+
contactId?: string;
|
|
11
|
+
contact?: Contact;
|
|
12
|
+
polizaId?: string;
|
|
13
|
+
poliza?: Poliza;
|
|
14
|
+
renewalId?: string;
|
|
15
|
+
renewal?: Poliza;
|
|
16
|
+
leadId?: string;
|
|
17
|
+
lead?: Lead;
|
|
18
|
+
receiptId?: string;
|
|
19
|
+
receipt?: Receipt;
|
|
20
|
+
agentId?: string;
|
|
21
|
+
agent?: Agent;
|
|
22
|
+
get crmEntity(): Contact | Poliza | Lead | Receipt | 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.MeetingCRM = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const entities_1 = require("../../entities");
|
|
16
|
+
const common_1 = require("../../common");
|
|
17
|
+
const sales_1 = require("../../entities/sales");
|
|
18
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
+
let MeetingCRM = class MeetingCRM extends typeorm_1.BaseEntity {
|
|
20
|
+
id;
|
|
21
|
+
type;
|
|
22
|
+
meetingId;
|
|
23
|
+
meeting;
|
|
24
|
+
contactId;
|
|
25
|
+
contact;
|
|
26
|
+
polizaId;
|
|
27
|
+
poliza;
|
|
28
|
+
renewalId;
|
|
29
|
+
renewal;
|
|
30
|
+
leadId;
|
|
31
|
+
lead;
|
|
32
|
+
receiptId;
|
|
33
|
+
receipt;
|
|
34
|
+
agentId;
|
|
35
|
+
agent;
|
|
36
|
+
get crmEntity() {
|
|
37
|
+
switch (this.type) {
|
|
38
|
+
case common_1.MeetingCRMType.CONTACT:
|
|
39
|
+
return this.contact;
|
|
40
|
+
case common_1.MeetingCRMType.POLIZA:
|
|
41
|
+
return this.poliza;
|
|
42
|
+
case common_1.MeetingCRMType.RENEWAL:
|
|
43
|
+
return this.renewal;
|
|
44
|
+
case common_1.MeetingCRMType.LEAD:
|
|
45
|
+
return this.lead;
|
|
46
|
+
case common_1.MeetingCRMType.RECEIPT:
|
|
47
|
+
return this.receipt;
|
|
48
|
+
case common_1.MeetingCRMType.AGENT:
|
|
49
|
+
return this.agent;
|
|
50
|
+
default:
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.MeetingCRM = MeetingCRM;
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({
|
|
58
|
+
type: String,
|
|
59
|
+
description: "UUID del MeetingCRM",
|
|
60
|
+
format: "uuid",
|
|
61
|
+
}),
|
|
62
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], MeetingCRM.prototype, "id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, swagger_1.ApiProperty)({
|
|
67
|
+
enum: common_1.MeetingCRMType,
|
|
68
|
+
description: "Tipo de la entidad CRM relacionada",
|
|
69
|
+
}),
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: common_1.MeetingCRMType,
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], MeetingCRM.prototype, "type", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
type: String,
|
|
79
|
+
description: "ID del meeting asociado",
|
|
80
|
+
}),
|
|
81
|
+
(0, typeorm_1.Column)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], MeetingCRM.prototype, "meetingId", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.ManyToOne)(() => entities_1.Meeting, (meeting) => meeting.crm, {
|
|
86
|
+
onDelete: "CASCADE",
|
|
87
|
+
onUpdate: "CASCADE",
|
|
88
|
+
}),
|
|
89
|
+
(0, typeorm_1.JoinColumn)({ name: "meetId" }),
|
|
90
|
+
__metadata("design:type", entities_1.Meeting)
|
|
91
|
+
], MeetingCRM.prototype, "meeting", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_transformer_1.Exclude)(),
|
|
94
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], MeetingCRM.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
|
+
], MeetingCRM.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
|
+
], MeetingCRM.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
|
+
], MeetingCRM.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
|
+
], MeetingCRM.prototype, "renewalId", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, class_transformer_1.Exclude)(),
|
|
121
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Poliza, { nullable: true, onDelete: "CASCADE" }),
|
|
122
|
+
(0, typeorm_1.JoinColumn)({ name: "renewalId" }),
|
|
123
|
+
__metadata("design:type", sales_1.Poliza)
|
|
124
|
+
], MeetingCRM.prototype, "renewal", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_transformer_1.Exclude)(),
|
|
127
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], MeetingCRM.prototype, "leadId", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, class_transformer_1.Exclude)(),
|
|
132
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Lead, { nullable: true, onDelete: "CASCADE" }),
|
|
133
|
+
(0, typeorm_1.JoinColumn)({ name: "leadId" }),
|
|
134
|
+
__metadata("design:type", sales_1.Lead)
|
|
135
|
+
], MeetingCRM.prototype, "lead", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, class_transformer_1.Exclude)(),
|
|
138
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], MeetingCRM.prototype, "receiptId", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_transformer_1.Exclude)(),
|
|
143
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Receipt, { nullable: true, onDelete: "CASCADE" }),
|
|
144
|
+
(0, typeorm_1.JoinColumn)({ name: "receiptId" }),
|
|
145
|
+
__metadata("design:type", sales_1.Receipt)
|
|
146
|
+
], MeetingCRM.prototype, "receipt", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, class_transformer_1.Exclude)(),
|
|
149
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], MeetingCRM.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
|
+
], MeetingCRM.prototype, "agent", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, class_transformer_1.Expose)(),
|
|
160
|
+
__metadata("design:type", Object),
|
|
161
|
+
__metadata("design:paramtypes", [])
|
|
162
|
+
], MeetingCRM.prototype, "crmEntity", null);
|
|
163
|
+
exports.MeetingCRM = MeetingCRM = __decorate([
|
|
164
|
+
(0, typeorm_1.Entity)()
|
|
165
|
+
], MeetingCRM);
|
|
166
|
+
//# sourceMappingURL=meeting_crm.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting_crm.entity.js","sourceRoot":"","sources":["../../../src/entities/helpers/meeting_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,yDAAoD;AACpD,6CAAyC;AACzC,yCAA8C;AAC9C,gDAA6E;AAC7E,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;IAOxC,EAAE,CAAU;IAUZ,IAAI,CAAiB;IAOrB,SAAS,CAAS;IAOlB,OAAO,CAAU;IAKjB,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;IAEd,IACI,SAAS;QACX,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,uBAAc,CAAC,OAAO;gBACzB,OAAO,IAAI,CAAC,OAAO,CAAC;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;8BACxB,YAAI;wCAAC;AAIZ;IAFC,IAAA,2BAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACR;AAKnB;IAHC,IAAA,2BAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,eAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACxB,eAAO;2CAAC;AAIlB;IAFC,IAAA,2BAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACV;AAKjB;IAHC,IAAA,2BAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,aAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC/D,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACxB,aAAK;yCAAC;AAEd;IAAC,IAAA,0BAAM,GAAE;;;2CAkBR;qBA1GU,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CA2GtB"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
1
|
+
export * from "./protocol.entity";
|
|
2
|
+
export * from "./otp-log.entity";
|
|
3
|
+
export * from "./refresh-token.entity";
|
|
4
|
+
export * from "./permission.entity";
|
|
5
|
+
export * from "./phone.entity";
|
|
6
|
+
export * from "./email.entity";
|
|
7
|
+
export * from "./app_config/app-config.entity";
|
|
8
|
+
export * from "./imap-config.entity";
|
|
9
|
+
export * from "./tag.entity";
|
|
10
|
+
export * from "./tools";
|
|
11
|
+
export * from "./drive";
|
|
12
|
+
export * from "./sales";
|
|
13
|
+
export * from "./helpers";
|
|
14
|
+
export * from "./notifications";
|
|
15
|
+
export * from "./capacitation";
|
|
16
|
+
export * from "./easyapp/filter-view.entity";
|
|
17
|
+
export * from "./thirdparty/oauth.entity";
|
|
18
|
+
export * from "./thirdparty/service.entity";
|
|
19
|
+
export * from "./thirdparty/email.entity";
|
|
20
|
+
export * from "./thirdparty/email-config.entity";
|
|
21
|
+
export * from "./thirdparty/user-email-relation.entity";
|
|
22
|
+
export * from "./currency.entity";
|
|
23
|
+
export * from "./user.entity";
|
|
24
|
+
export * from "./group.entity";
|
|
25
|
+
export * from "./menu-permissions.entity";
|
|
26
|
+
export * from "./profile.entity";
|
|
27
|
+
export * from "./role.entity";
|
|
28
|
+
export * from "./tools/calendar/event-list-calendars.entity";
|
|
29
|
+
export * from "./meeting-comment.entity";
|
|
30
|
+
export * from "./meeting.entity";
|
package/dist/entities/index.js
CHANGED
|
@@ -42,4 +42,6 @@ __exportStar(require("./menu-permissions.entity"), exports);
|
|
|
42
42
|
__exportStar(require("./profile.entity"), exports);
|
|
43
43
|
__exportStar(require("./role.entity"), exports);
|
|
44
44
|
__exportStar(require("./tools/calendar/event-list-calendars.entity"), exports);
|
|
45
|
+
__exportStar(require("./meeting-comment.entity"), exports);
|
|
46
|
+
__exportStar(require("./meeting.entity"), exports);
|
|
45
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,sDAAoC;AACpC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,uDAAqC;AACrC,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC;AAChC,iDAA+B;AAC/B,+DAA6C;AAC7C,4DAA0C;AAC1C,8DAA4C;AAC5C,4DAA0C;AAC1C,mEAAiD;AACjD,0EAAwD;AACxD,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,4DAA0C;AAC1C,mDAAiC;AACjC,gDAA8B;AAC9B,+EAA6D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,sDAAoC;AACpC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,uDAAqC;AACrC,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC;AAChC,iDAA+B;AAC/B,+DAA6C;AAC7C,4DAA0C;AAC1C,8DAA4C;AAC5C,4DAA0C;AAC1C,mEAAiD;AACjD,0EAAwD;AACxD,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,4DAA0C;AAC1C,mDAAiC;AACjC,gDAA8B;AAC9B,+EAA6D;AAC7D,2DAAyC;AACzC,mDAAiC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meeting } from "./meeting.entity";
|
|
2
|
+
import { CommentBase } from "../common";
|
|
3
|
+
import { AttachedObjectInterface } from "./drive";
|
|
4
|
+
export declare class MeetingComment extends CommentBase {
|
|
5
|
+
isSummary: boolean;
|
|
6
|
+
meeting: Meeting;
|
|
7
|
+
attachedObjects?: AttachedObjectInterface[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.MeetingComment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const meeting_entity_1 = require("./meeting.entity");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const common_1 = require("../common");
|
|
17
|
+
let MeetingComment = class MeetingComment extends common_1.CommentBase {
|
|
18
|
+
isSummary;
|
|
19
|
+
meeting;
|
|
20
|
+
attachedObjects;
|
|
21
|
+
};
|
|
22
|
+
exports.MeetingComment = MeetingComment;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({
|
|
25
|
+
type: Boolean,
|
|
26
|
+
description: "Is this comment a summary?",
|
|
27
|
+
default: false,
|
|
28
|
+
}),
|
|
29
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
30
|
+
__metadata("design:type", Boolean)
|
|
31
|
+
], MeetingComment.prototype, "isSummary", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({
|
|
34
|
+
type: () => meeting_entity_1.Meeting,
|
|
35
|
+
description: "Meeting associated with the comment",
|
|
36
|
+
}),
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => meeting_entity_1.Meeting, {
|
|
38
|
+
onDelete: "CASCADE",
|
|
39
|
+
onUpdate: "CASCADE",
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", meeting_entity_1.Meeting)
|
|
42
|
+
], MeetingComment.prototype, "meeting", void 0);
|
|
43
|
+
exports.MeetingComment = MeetingComment = __decorate([
|
|
44
|
+
(0, typeorm_1.Entity)()
|
|
45
|
+
], MeetingComment);
|
|
46
|
+
//# sourceMappingURL=meeting-comment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-comment.entity.js","sourceRoot":"","sources":["../../src/entities/meeting-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,qDAA2C;AAC3C,6CAA8C;AAC9C,sCAAwC;AAIjC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,oBAAW;IAO7C,SAAS,CAAU;IAUnB,OAAO,CAAU;IAEjB,eAAe,CAA6B;CAC7C,CAAA;AApBY,wCAAc;AAOzB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,4BAA4B;QACzC,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;iDACR;AAUnB;IARC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,wBAAO;QACnB,WAAW,EAAE,qCAAqC;KACnD,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE;QACxB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACO,wBAAO;+CAAC;yBAjBN,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAoB1B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.MeetingListField = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
class MeetingListField {
|
|
17
|
+
text;
|
|
18
|
+
completed;
|
|
19
|
+
child;
|
|
20
|
+
}
|
|
21
|
+
exports.MeetingListField = MeetingListField;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Text of the meeting list field" }),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], MeetingListField.prototype, "text", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({
|
|
29
|
+
type: Boolean,
|
|
30
|
+
description: "Completion status of the meeting list field",
|
|
31
|
+
}),
|
|
32
|
+
(0, class_validator_1.IsBoolean)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], MeetingListField.prototype, "completed", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
type: () => [MeetingListField],
|
|
38
|
+
description: "Child meeting list fields",
|
|
39
|
+
required: false,
|
|
40
|
+
}),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.ValidateNested)(),
|
|
43
|
+
(0, class_transformer_1.Type)(() => MeetingListField),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], MeetingListField.prototype, "child", void 0);
|
|
46
|
+
//# sourceMappingURL=meeting-list-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-list-field.js","sourceRoot":"","sources":["../../src/entities/meeting-list-field.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAKyB;AACzB,6CAA8C;AAE9C,MAAa,gBAAgB;IAG3B,IAAI,CAAS;IAOb,SAAS,CAAU;IAUnB,KAAK,CAAqB;CAC3B;AArBD,4CAqBC;AAlBC;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;IAC5E,IAAA,0BAAQ,GAAE;;8CACE;AAOb;IALC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,6CAA6C;KAC3D,CAAC;IACD,IAAA,2BAAS,GAAE;;mDACO;AAUnB;IARC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,gBAAgB,CAAC;QAC9B,WAAW,EAAE,2BAA2B;QACxC,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC;;+CACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EntityBase, MeetingStatus, MeetingType } from "../common";
|
|
2
|
+
import { User } from "./user.entity";
|
|
3
|
+
import { MeetingComment } from "./meeting-comment.entity";
|
|
4
|
+
import { MeetingListField } from "./meeting-list-field";
|
|
5
|
+
import { MeetingCRM } from "./helpers";
|
|
6
|
+
export declare class Meeting extends EntityBase {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
startTime: Date;
|
|
10
|
+
duration: string;
|
|
11
|
+
status: MeetingStatus;
|
|
12
|
+
type: MeetingType;
|
|
13
|
+
developmentManager: User;
|
|
14
|
+
agents: User[];
|
|
15
|
+
comments: MeetingComment[];
|
|
16
|
+
listField: MeetingListField[];
|
|
17
|
+
crm?: MeetingCRM[];
|
|
18
|
+
metadata: Record<string, any>;
|
|
19
|
+
}
|