easywork-common-lib 1.0.397 → 1.0.399
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/comment.base.entity.d.ts +10 -0
- package/dist/common/database/comment.base.entity.js +70 -0
- package/dist/common/database/comment.base.entity.js.map +1 -0
- package/dist/common/database/index.d.ts +2 -0
- package/dist/common/database/index.js +19 -0
- package/dist/common/database/index.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +4 -0
- package/dist/common/enums/sales.enum.js +6 -1
- package/dist/common/enums/sales.enum.js.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/entities/drive/attached_object.entity.d.ts +1 -0
- package/dist/entities/drive/attached_object.entity.js +6 -0
- package/dist/entities/drive/attached_object.entity.js.map +1 -1
- package/dist/entities/sales/beneficiarios/index.d.ts +2 -0
- package/dist/entities/sales/beneficiarios/index.js +19 -0
- package/dist/entities/sales/beneficiarios/index.js.map +1 -0
- package/dist/entities/sales/contact-comment.entity.d.ts +2 -7
- package/dist/entities/sales/contact-comment.entity.js +2 -39
- package/dist/entities/sales/contact-comment.entity.js.map +1 -1
- package/dist/entities/sales/contact.entity.d.ts +3 -1
- package/dist/entities/sales/contact.entity.js +13 -5
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/index.d.ts +5 -6
- package/dist/entities/sales/index.js +5 -6
- package/dist/entities/sales/index.js.map +1 -1
- package/dist/entities/sales/lead-comment.entity.d.ts +2 -7
- package/dist/entities/sales/lead-comment.entity.js +2 -39
- package/dist/entities/sales/lead-comment.entity.js.map +1 -1
- package/dist/entities/sales/lead.entity.d.ts +3 -1
- package/dist/entities/sales/lead.entity.js +11 -3
- package/dist/entities/sales/lead.entity.js.map +1 -1
- package/dist/entities/sales/poliza-comment.entity.d.ts +2 -7
- package/dist/entities/sales/poliza-comment.entity.js +2 -39
- package/dist/entities/sales/poliza-comment.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.d.ts +3 -1
- package/dist/entities/sales/poliza.entity.js +10 -2
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/dist/entities/sales/receipt-comment.entity.d.ts +5 -0
- package/dist/entities/sales/receipt-comment.entity.js +32 -0
- package/dist/entities/sales/receipt-comment.entity.js.map +1 -0
- package/dist/entities/sales/receipt.entity.d.ts +2 -0
- package/dist/entities/sales/receipt.entity.js +8 -0
- package/dist/entities/sales/receipt.entity.js.map +1 -1
- package/dist/entities/tools/task-comment.entity.d.ts +2 -5
- package/dist/entities/tools/task-comment.entity.js +2 -21
- package/dist/entities/tools/task-comment.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { User } from "../../entities";
|
|
3
|
+
import { CommentType } from "../../common";
|
|
4
|
+
export declare class CommentBase extends EntityBase {
|
|
5
|
+
comment: string;
|
|
6
|
+
type: CommentType;
|
|
7
|
+
pinned: boolean;
|
|
8
|
+
createdBy?: User;
|
|
9
|
+
modifiedBy?: User;
|
|
10
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.CommentBase = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
const entities_1 = require("../../entities");
|
|
18
|
+
const common_1 = require("../../common");
|
|
19
|
+
let CommentBase = class CommentBase extends base_entity_1.EntityBase {
|
|
20
|
+
comment;
|
|
21
|
+
type;
|
|
22
|
+
pinned;
|
|
23
|
+
createdBy;
|
|
24
|
+
modifiedBy;
|
|
25
|
+
};
|
|
26
|
+
exports.CommentBase = CommentBase;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Comment text', minLength: 1 }),
|
|
29
|
+
(0, class_validator_1.MinLength)(1),
|
|
30
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CommentBase.prototype, "comment", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ enum: common_1.CommentType, description: 'Comment type', required: false }),
|
|
35
|
+
(0, typeorm_1.Column)({
|
|
36
|
+
type: "enum",
|
|
37
|
+
enum: common_1.CommentType,
|
|
38
|
+
nullable: true,
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CommentBase.prototype, "type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Pinned comment', default: false }),
|
|
44
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], CommentBase.prototype, "pinned", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ type: () => entities_1.User, description: 'User who created the comment', required: false }),
|
|
49
|
+
(0, typeorm_1.ManyToOne)(() => entities_1.User, {
|
|
50
|
+
onDelete: "SET NULL",
|
|
51
|
+
onUpdate: "CASCADE",
|
|
52
|
+
nullable: true,
|
|
53
|
+
}),
|
|
54
|
+
(0, typeorm_1.JoinColumn)(),
|
|
55
|
+
__metadata("design:type", entities_1.User)
|
|
56
|
+
], CommentBase.prototype, "createdBy", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({ type: () => entities_1.User, description: 'User who modified the comment', required: false }),
|
|
59
|
+
(0, typeorm_1.ManyToOne)(() => entities_1.User, {
|
|
60
|
+
onDelete: "SET NULL",
|
|
61
|
+
onUpdate: "CASCADE",
|
|
62
|
+
nullable: true,
|
|
63
|
+
}),
|
|
64
|
+
(0, typeorm_1.JoinColumn)(),
|
|
65
|
+
__metadata("design:type", entities_1.User)
|
|
66
|
+
], CommentBase.prototype, "modifiedBy", void 0);
|
|
67
|
+
exports.CommentBase = CommentBase = __decorate([
|
|
68
|
+
(0, typeorm_1.Entity)()
|
|
69
|
+
], CommentBase);
|
|
70
|
+
//# sourceMappingURL=comment.base.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.base.entity.js","sourceRoot":"","sources":["../../../src/common/database/comment.base.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAAgE;AAChE,qDAA4C;AAC5C,qCAAgE;AAChE,6CAA8C;AAC9C,6CAAsC;AACtC,yCAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,wBAAU;IAIvC,OAAO,CAAS;IAQhB,IAAI,CAAc;IAIlB,MAAM,CAAU;IAShB,SAAS,CAAQ;IASjB,UAAU,CAAQ;CACrB,CAAA;AAnCY,kCAAW;AAIpB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EA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GAAE;GACI,WAAW,CAmCvB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./base.entity"), exports);
|
|
18
|
+
__exportStar(require("./comment.base.entity"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/database/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,wDAAsC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PolizaDiasPlazoPago = exports.PersonType = exports.ReceiptMethodPayment = exports.ReceiptStatus = exports.PolizaStatus = exports.StatusSiniestro = void 0;
|
|
3
|
+
exports.CommentType = exports.PolizaDiasPlazoPago = exports.PersonType = exports.ReceiptMethodPayment = exports.ReceiptStatus = exports.PolizaStatus = exports.StatusSiniestro = void 0;
|
|
4
4
|
var StatusSiniestro;
|
|
5
5
|
(function (StatusSiniestro) {
|
|
6
6
|
StatusSiniestro["LIQUIDADO"] = "liquidado";
|
|
@@ -38,4 +38,9 @@ var PolizaDiasPlazoPago;
|
|
|
38
38
|
PolizaDiasPlazoPago["Day15"] = "15";
|
|
39
39
|
PolizaDiasPlazoPago["Day30"] = "30";
|
|
40
40
|
})(PolizaDiasPlazoPago || (exports.PolizaDiasPlazoPago = PolizaDiasPlazoPago = {}));
|
|
41
|
+
var CommentType;
|
|
42
|
+
(function (CommentType) {
|
|
43
|
+
CommentType["USER"] = "user";
|
|
44
|
+
CommentType["SYSTEM"] = "system";
|
|
45
|
+
})(CommentType || (exports.CommentType = CommentType = {}));
|
|
41
46
|
//# sourceMappingURL=sales.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales.enum.js","sourceRoot":"","sources":["../../../src/common/enums/sales.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACvB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,wCAAwB,CAAA;AAC5B,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AAC3B,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,2DAAmC,CAAA;IACnC,yDAAiC,CAAA;AACrC,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AACnB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,mCAAY,CAAA;IACZ,mCAAY,CAAA;AAChB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B"}
|
|
1
|
+
{"version":3,"file":"sales.enum.js","sourceRoot":"","sources":["../../../src/common/enums/sales.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACvB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,wCAAwB,CAAA;AAC5B,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AAC3B,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,2DAAmC,CAAA;IACnC,yDAAiC,CAAA;AACrC,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AACnB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,mCAAY,CAAA;IACZ,mCAAY,CAAA;AAChB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAa,WAGZ;AAHD,WAAa,WAAW;IACpB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AACrB,CAAC,EAHY,WAAW,2BAAX,WAAW,QAGvB"}
|
package/dist/common/index.d.ts
CHANGED
package/dist/common/index.js
CHANGED
|
@@ -21,4 +21,5 @@ __exportStar(require("./enums"), exports);
|
|
|
21
21
|
__exportStar(require("./helpers"), exports);
|
|
22
22
|
__exportStar(require("./interceptors"), exports);
|
|
23
23
|
__exportStar(require("./functions"), exports);
|
|
24
|
+
__exportStar(require("./database"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
package/dist/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,8CAA4B;AAC5B,6CAA2B"}
|
|
@@ -19,6 +19,7 @@ const common_1 = require("../../common");
|
|
|
19
19
|
const user_entity_1 = require("../user.entity");
|
|
20
20
|
let AttachedObject = class AttachedObject extends base_entity_1.EntityBase {
|
|
21
21
|
name;
|
|
22
|
+
number;
|
|
22
23
|
url;
|
|
23
24
|
size;
|
|
24
25
|
mimeType;
|
|
@@ -40,6 +41,11 @@ __decorate([
|
|
|
40
41
|
(0, typeorm_1.Column)(),
|
|
41
42
|
__metadata("design:type", String)
|
|
42
43
|
], AttachedObject.prototype, "name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)(),
|
|
46
|
+
(0, typeorm_1.Generated)("increment"),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], AttachedObject.prototype, "number", void 0);
|
|
43
49
|
__decorate([
|
|
44
50
|
(0, swagger_1.ApiProperty)({ type: String, description: 'URL of the file', required: false }),
|
|
45
51
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attached_object.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/attached_object.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qDAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"attached_object.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/attached_object.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qDAA4C;AAC5C,qCAA6F;AAC7F,sEAA2D;AAC3D,6CAA8C;AAC9C,yCAA8D;AAC9D,gDAAsC;AAI/B,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,wBAAU;IAI5C,IAAI,CAAS;IAIb,MAAM,CAAS;IAIf,GAAG,CAAS;IAIZ,IAAI,CAAS;IAIb,QAAQ,CAAS;IAIjB,KAAK,CAAS;IAId,SAAS,CAAU;IAWnB,MAAM,CAAe;IAYrB,UAAU,CAAmB;IAI7B,QAAQ,CAAS;IAIjB,WAAW,CAAU;IAWrB,QAAQ,CAAsB;IAQ9B,MAAM,CAAgB;IAStB,SAAS,CAAQ;IASjB,UAAU,CAAQ;CACnB,CAAA;AAjGY,wCAAc;AAIzB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACrE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,GAAE;;4CACI;AAIb;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,mBAAS,EAAC,WAAW,CAAC;;8CACR;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM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AG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACD,kBAAI;iDAAC;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;kDAAC;yBAhGP,cAAc;IAF1B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACzD,cAAc,CAiG1B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./vehicle.entity"), exports);
|
|
18
|
+
__exportStar(require("./person.entity"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/sales/beneficiarios/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,kDAAgC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { EntityBase } from "../../common/database/base.entity";
|
|
2
1
|
import { Contact } from "./contact.entity";
|
|
3
|
-
import {
|
|
4
|
-
export declare class ContactComment extends
|
|
5
|
-
comment: string;
|
|
6
|
-
pinned: boolean;
|
|
2
|
+
import { CommentBase } from "../../common";
|
|
3
|
+
export declare class ContactComment extends CommentBase {
|
|
7
4
|
contact: Contact;
|
|
8
|
-
createdBy?: User;
|
|
9
|
-
modifiedBy?: User;
|
|
10
5
|
}
|
|
@@ -10,31 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ContactComment = void 0;
|
|
13
|
-
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const contact_entity_1 = require("./contact.entity");
|
|
17
15
|
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
-
const
|
|
19
|
-
let ContactComment = class ContactComment extends
|
|
20
|
-
comment;
|
|
21
|
-
pinned;
|
|
16
|
+
const common_1 = require("../../common");
|
|
17
|
+
let ContactComment = class ContactComment extends common_1.CommentBase {
|
|
22
18
|
contact;
|
|
23
|
-
createdBy;
|
|
24
|
-
modifiedBy;
|
|
25
19
|
};
|
|
26
20
|
exports.ContactComment = ContactComment;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Comment text', minLength: 1 }),
|
|
29
|
-
(0, class_validator_1.MinLength)(1),
|
|
30
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], ContactComment.prototype, "comment", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Pinned comment', default: false }),
|
|
35
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
36
|
-
__metadata("design:type", Boolean)
|
|
37
|
-
], ContactComment.prototype, "pinned", void 0);
|
|
38
21
|
__decorate([
|
|
39
22
|
(0, swagger_1.ApiProperty)({ type: () => contact_entity_1.Contact, description: 'Contact associated with the comment' }),
|
|
40
23
|
(0, typeorm_1.ManyToOne)(() => contact_entity_1.Contact, {
|
|
@@ -43,26 +26,6 @@ __decorate([
|
|
|
43
26
|
}),
|
|
44
27
|
__metadata("design:type", contact_entity_1.Contact)
|
|
45
28
|
], ContactComment.prototype, "contact", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
|
|
48
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
49
|
-
onDelete: "SET NULL",
|
|
50
|
-
onUpdate: "CASCADE",
|
|
51
|
-
nullable: true,
|
|
52
|
-
}),
|
|
53
|
-
(0, typeorm_1.JoinColumn)(),
|
|
54
|
-
__metadata("design:type", user_entity_1.User)
|
|
55
|
-
], ContactComment.prototype, "createdBy", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
|
|
58
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
59
|
-
onDelete: "SET NULL",
|
|
60
|
-
onUpdate: "CASCADE",
|
|
61
|
-
nullable: true,
|
|
62
|
-
}),
|
|
63
|
-
(0, typeorm_1.JoinColumn)(),
|
|
64
|
-
__metadata("design:type", user_entity_1.User)
|
|
65
|
-
], ContactComment.prototype, "modifiedBy", void 0);
|
|
66
29
|
exports.ContactComment = ContactComment = __decorate([
|
|
67
30
|
(0, typeorm_1.Entity)()
|
|
68
31
|
], ContactComment);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"contact-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4C;AAC5C,qDAA2C;AAC3C,6CAA8C;AAC9C,yCAA2C;AAGpC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,oBAAW;IAM3C,OAAO,CAAU;CACpB,CAAA;AAPY,wCAAc;AAMvB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,wBAAO,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;IACxF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACO,wBAAO;+CAAC;yBANR,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAO1B"}
|
|
@@ -9,6 +9,7 @@ import { Lead } from "./lead.entity";
|
|
|
9
9
|
import { PersonType } from "../../common";
|
|
10
10
|
import { ContactInsurance } from "../helpers/sales/contact/contact_insurance.entity";
|
|
11
11
|
import { TaskCRM } from "../helpers";
|
|
12
|
+
import { ContactComment } from "./contact-comment.entity";
|
|
12
13
|
export declare class Contact extends EntityBase {
|
|
13
14
|
idBitrix?: number;
|
|
14
15
|
number: number;
|
|
@@ -37,11 +38,12 @@ export declare class Contact extends EntityBase {
|
|
|
37
38
|
cua?: string;
|
|
38
39
|
photo?: string;
|
|
39
40
|
post?: string;
|
|
40
|
-
|
|
41
|
+
observations?: string;
|
|
41
42
|
company?: string;
|
|
42
43
|
export?: boolean;
|
|
43
44
|
sourceDescription?: string;
|
|
44
45
|
polizas?: Poliza[];
|
|
45
46
|
createdBy?: User;
|
|
46
47
|
modifiedBy?: User;
|
|
48
|
+
comments: ContactComment[];
|
|
47
49
|
}
|
|
@@ -23,6 +23,7 @@ const lead_entity_1 = require("./lead.entity");
|
|
|
23
23
|
const common_1 = require("../../common");
|
|
24
24
|
const contact_insurance_entity_1 = require("../helpers/sales/contact/contact_insurance.entity");
|
|
25
25
|
const helpers_1 = require("../helpers");
|
|
26
|
+
const contact_comment_entity_1 = require("./contact-comment.entity");
|
|
26
27
|
let Contact = class Contact extends base_entity_1.EntityBase {
|
|
27
28
|
idBitrix;
|
|
28
29
|
number;
|
|
@@ -51,13 +52,14 @@ let Contact = class Contact extends base_entity_1.EntityBase {
|
|
|
51
52
|
cua;
|
|
52
53
|
photo;
|
|
53
54
|
post;
|
|
54
|
-
|
|
55
|
+
observations;
|
|
55
56
|
company;
|
|
56
57
|
export;
|
|
57
58
|
sourceDescription;
|
|
58
59
|
polizas;
|
|
59
60
|
createdBy;
|
|
60
61
|
modifiedBy;
|
|
62
|
+
comments;
|
|
61
63
|
};
|
|
62
64
|
exports.Contact = Contact;
|
|
63
65
|
__decorate([
|
|
@@ -243,9 +245,9 @@ __decorate([
|
|
|
243
245
|
], Contact.prototype, "post", void 0);
|
|
244
246
|
__decorate([
|
|
245
247
|
(0, swagger_1.ApiProperty)({ type: String, description: 'Comments about the contact', required: false }),
|
|
246
|
-
(0, typeorm_1.Column)({ name: "
|
|
248
|
+
(0, typeorm_1.Column)({ name: "observations", type: "text", nullable: true }),
|
|
247
249
|
__metadata("design:type", String)
|
|
248
|
-
], Contact.prototype, "
|
|
250
|
+
], Contact.prototype, "observations", void 0);
|
|
249
251
|
__decorate([
|
|
250
252
|
(0, swagger_1.ApiProperty)({ type: String, description: 'Company of the contact', required: false }),
|
|
251
253
|
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
@@ -270,7 +272,7 @@ __decorate([
|
|
|
270
272
|
__metadata("design:type", Array)
|
|
271
273
|
], Contact.prototype, "polizas", void 0);
|
|
272
274
|
__decorate([
|
|
273
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the
|
|
275
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the contact', required: false }),
|
|
274
276
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
275
277
|
onDelete: "SET NULL",
|
|
276
278
|
onUpdate: "CASCADE",
|
|
@@ -280,7 +282,7 @@ __decorate([
|
|
|
280
282
|
__metadata("design:type", user_entity_1.User)
|
|
281
283
|
], Contact.prototype, "createdBy", void 0);
|
|
282
284
|
__decorate([
|
|
283
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the
|
|
285
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the contact', required: false }),
|
|
284
286
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
285
287
|
onDelete: "SET NULL",
|
|
286
288
|
onUpdate: "CASCADE",
|
|
@@ -289,6 +291,12 @@ __decorate([
|
|
|
289
291
|
(0, typeorm_1.JoinColumn)(),
|
|
290
292
|
__metadata("design:type", user_entity_1.User)
|
|
291
293
|
], Contact.prototype, "modifiedBy", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
(0, swagger_1.ApiProperty)({ type: () => [contact_comment_entity_1.ContactComment], description: 'Comments on the contact' }),
|
|
296
|
+
(0, typeorm_1.OneToMany)(() => contact_comment_entity_1.ContactComment, contactComment => contactComment.contact),
|
|
297
|
+
(0, typeorm_1.JoinColumn)(),
|
|
298
|
+
__metadata("design:type", Array)
|
|
299
|
+
], Contact.prototype, "comments", void 0);
|
|
292
300
|
exports.Contact = Contact = __decorate([
|
|
293
301
|
(0, typeorm_1.Entity)()
|
|
294
302
|
], Contact);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAAgE;AAChE,wFAA6E;AAC7E,wFAA6E;AAC7E,yFAA6E;AAC7E,qFAAyE;AACzE,gDAAsC;AACtC,qCAAuH;AACvH,mDAAyC;AACzC,6CAA8C;AAC9C,+CAAqC;AACrC,yCAA0C;AAC1C,gGAAqF;AACrF,wCAAqC;
|
|
1
|
+
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAAgE;AAChE,wFAA6E;AAC7E,wFAA6E;AAC7E,yFAA6E;AAC7E,qFAAyE;AACzE,gDAAsC;AACtC,qCAAuH;AACvH,mDAAyC;AACzC,6CAA8C;AAC9C,+CAAqC;AACrC,yCAA0C;AAC1C,gGAAqF;AACrF,wCAAqC;AACrC,qEAA0D;AAGnD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,wBAAU;IAGrC,QAAQ,CAAU;IAIlB,MAAM,CAAS;IAYf,UAAU,CAAa;IAIvB,MAAM,CAAU;IAKhB,QAAQ,CAAU;IAIlB,IAAI,CAAU;IAId,QAAQ,CAAU;IAIlB,UAAU,CAAU;IASpB,OAAO,CAAsB;IAI7B,GAAG,CAAU;IAIb,OAAO,CAAU;IAQjB,MAAM,CAAkB;IAQxB,MAAM,CAAkB;IAIxB,KAAK,CAAU;IAIf,SAAS,CAAQ;IAIjB,MAAM,CAAU;IAShB,IAAI,CAAc;IASlB,MAAM,CAAgB;IAQtB,UAAU,CAAQ;IAIlB,KAAK,CAAY;IAQjB,UAAU,CAAQ;IAQlB,IAAI,CAAQ;IAQZ,SAAS,CAAa;IAItB,IAAI,CAAU;IAId,GAAG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AAC;IAC/F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACD,kBAAI;0CAAC;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;2CAAC;AAKlB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,uCAAc,CAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACrF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,cAAc,CAAC,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;IACzE,IAAA,oBAAU,GAAE;;yCACc;kBAzMhB,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA0MnB"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
export * from './poliza-comment.entity';
|
|
2
|
+
export * from './receipt.entity';
|
|
3
|
+
export * from './agente-intermediario.entity';
|
|
2
4
|
export * from './lead-comment.entity';
|
|
3
|
-
export * from './index';
|
|
4
5
|
export * from './contact.entity';
|
|
6
|
+
export * from './receipt-sub-agente.entity';
|
|
5
7
|
export * from './poliza_siniestro.entity';
|
|
6
8
|
export * from './lead.entity';
|
|
9
|
+
export * from './receipt-comment.entity';
|
|
7
10
|
export * from './poliza.entity';
|
|
8
11
|
export * from './contact-comment.entity';
|
|
9
|
-
export * from
|
|
10
|
-
export * from "./beneficiarios/person.entity";
|
|
11
|
-
export * from "./beneficiarios/vehicle.entity";
|
|
12
|
-
export * from "./receipt.entity";
|
|
13
|
-
export * from "./receipt-sub-agente.entity";
|
|
12
|
+
export * from "./beneficiarios";
|
|
@@ -15,16 +15,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./poliza-comment.entity"), exports);
|
|
18
|
+
__exportStar(require("./receipt.entity"), exports);
|
|
19
|
+
__exportStar(require("./agente-intermediario.entity"), exports);
|
|
18
20
|
__exportStar(require("./lead-comment.entity"), exports);
|
|
19
|
-
__exportStar(require("./index"), exports);
|
|
20
21
|
__exportStar(require("./contact.entity"), exports);
|
|
22
|
+
__exportStar(require("./receipt-sub-agente.entity"), exports);
|
|
21
23
|
__exportStar(require("./poliza_siniestro.entity"), exports);
|
|
22
24
|
__exportStar(require("./lead.entity"), exports);
|
|
25
|
+
__exportStar(require("./receipt-comment.entity"), exports);
|
|
23
26
|
__exportStar(require("./poliza.entity"), exports);
|
|
24
27
|
__exportStar(require("./contact-comment.entity"), exports);
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./beneficiarios/person.entity"), exports);
|
|
27
|
-
__exportStar(require("./beneficiarios/vehicle.entity"), exports);
|
|
28
|
-
__exportStar(require("./receipt.entity"), exports);
|
|
29
|
-
__exportStar(require("./receipt-sub-agente.entity"), exports);
|
|
28
|
+
__exportStar(require("./beneficiarios"), exports);
|
|
30
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/sales/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/sales/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mDAAiC;AACjC,gEAA8C;AAC9C,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,4DAA0C;AAC1C,gDAA8B;AAC9B,2DAAyC;AACzC,kDAAgC;AAChC,2DAAyC;AACzC,kDAA+B"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { EntityBase } from "../../common/database/base.entity";
|
|
2
1
|
import { Lead } from "./lead.entity";
|
|
3
|
-
import {
|
|
4
|
-
export declare class LeadComment extends
|
|
5
|
-
comment: string;
|
|
6
|
-
pinned: boolean;
|
|
2
|
+
import { CommentBase } from "../../common";
|
|
3
|
+
export declare class LeadComment extends CommentBase {
|
|
7
4
|
lead: Lead;
|
|
8
|
-
createdBy?: User;
|
|
9
|
-
modifiedBy?: User;
|
|
10
5
|
}
|
|
@@ -10,31 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LeadComment = void 0;
|
|
13
|
-
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
13
|
const typeorm_1 = require("typeorm");
|
|
16
14
|
const lead_entity_1 = require("./lead.entity");
|
|
17
15
|
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
-
const
|
|
19
|
-
let LeadComment = class LeadComment extends
|
|
20
|
-
comment;
|
|
21
|
-
pinned;
|
|
16
|
+
const common_1 = require("../../common");
|
|
17
|
+
let LeadComment = class LeadComment extends common_1.CommentBase {
|
|
22
18
|
lead;
|
|
23
|
-
createdBy;
|
|
24
|
-
modifiedBy;
|
|
25
19
|
};
|
|
26
20
|
exports.LeadComment = LeadComment;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Comment text', minLength: 1 }),
|
|
29
|
-
(0, class_validator_1.MinLength)(1),
|
|
30
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], LeadComment.prototype, "comment", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Pinned comment', default: false }),
|
|
35
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
36
|
-
__metadata("design:type", Boolean)
|
|
37
|
-
], LeadComment.prototype, "pinned", void 0);
|
|
38
21
|
__decorate([
|
|
39
22
|
(0, swagger_1.ApiProperty)({ type: () => lead_entity_1.Lead, description: 'Lead associated with the comment' }),
|
|
40
23
|
(0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, {
|
|
@@ -43,26 +26,6 @@ __decorate([
|
|
|
43
26
|
}),
|
|
44
27
|
__metadata("design:type", lead_entity_1.Lead)
|
|
45
28
|
], LeadComment.prototype, "lead", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
|
|
48
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
49
|
-
onDelete: "SET NULL",
|
|
50
|
-
onUpdate: "CASCADE",
|
|
51
|
-
nullable: true,
|
|
52
|
-
}),
|
|
53
|
-
(0, typeorm_1.JoinColumn)(),
|
|
54
|
-
__metadata("design:type", user_entity_1.User)
|
|
55
|
-
], LeadComment.prototype, "createdBy", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
|
|
58
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
59
|
-
onDelete: "SET NULL",
|
|
60
|
-
onUpdate: "CASCADE",
|
|
61
|
-
nullable: true,
|
|
62
|
-
}),
|
|
63
|
-
(0, typeorm_1.JoinColumn)(),
|
|
64
|
-
__metadata("design:type", user_entity_1.User)
|
|
65
|
-
], LeadComment.prototype, "modifiedBy", void 0);
|
|
66
29
|
exports.LeadComment = LeadComment = __decorate([
|
|
67
30
|
(0, typeorm_1.Entity)()
|
|
68
31
|
], LeadComment);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lead-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"lead-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4C;AAC5C,+CAAqC;AACrC,6CAA8C;AAC9C,yCAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,oBAAW;IAMxC,IAAI,CAAO;CACd,CAAA;AAPY,kCAAW;AAMpB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACI,kBAAI;yCAAC;sBANF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAOvB"}
|
|
@@ -5,6 +5,7 @@ import { User } from "../user.entity";
|
|
|
5
5
|
import { PersonType } from "../../common";
|
|
6
6
|
import { Contact } from "./contact.entity";
|
|
7
7
|
import { LeadStage, LeadCancelReazon, LeadEmail, LeadPhone } from "../helpers";
|
|
8
|
+
import { LeadComment } from "./lead-comment.entity";
|
|
8
9
|
export declare class Lead extends EntityBase {
|
|
9
10
|
idBitrix?: number;
|
|
10
11
|
number: number;
|
|
@@ -31,7 +32,7 @@ export declare class Lead extends EntityBase {
|
|
|
31
32
|
cua?: string;
|
|
32
33
|
photo?: string;
|
|
33
34
|
post?: string;
|
|
34
|
-
|
|
35
|
+
observations?: string;
|
|
35
36
|
company?: string;
|
|
36
37
|
export?: boolean;
|
|
37
38
|
sourceDescription?: string;
|
|
@@ -43,4 +44,5 @@ export declare class Lead extends EntityBase {
|
|
|
43
44
|
contact?: Contact;
|
|
44
45
|
createdBy?: User;
|
|
45
46
|
modifiedBy?: User;
|
|
47
|
+
comments: LeadComment[];
|
|
46
48
|
}
|