easywork-common-lib 1.0.549 → 1.0.550
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/sales/poliza/poliza_file.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +68 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
- package/dist/entities/sales/agent.entity.d.ts +5 -0
- package/dist/entities/sales/agent.entity.js +42 -0
- package/dist/entities/sales/agent.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Poliza } from "../../../sales/poliza.entity";
|
|
3
|
+
import { File } from "../../../drive";
|
|
4
|
+
export declare class PolizaFile extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
polizaId: string;
|
|
7
|
+
fileId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
poliza: Poliza;
|
|
10
|
+
file: File;
|
|
11
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.PolizaFile = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const poliza_entity_1 = require("../../../sales/poliza.entity");
|
|
16
|
+
const drive_1 = require("../../../drive");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
let PolizaFile = class PolizaFile extends typeorm_1.BaseEntity {
|
|
19
|
+
id;
|
|
20
|
+
polizaId;
|
|
21
|
+
fileId;
|
|
22
|
+
relation;
|
|
23
|
+
poliza;
|
|
24
|
+
file;
|
|
25
|
+
};
|
|
26
|
+
exports.PolizaFile = PolizaFile;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'UUID of the policy file', format: 'uuid' }),
|
|
29
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], PolizaFile.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated policy' }),
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PolizaFile.prototype, "polizaId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated file', format: 'uuid' }),
|
|
39
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], PolizaFile.prototype, "fileId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Relation description or type', required: false }),
|
|
44
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], PolizaFile.prototype, "relation", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Exclude)(),
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Policy entity associated' }),
|
|
50
|
+
(0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, poliza => poliza.files, {
|
|
51
|
+
onDelete: "CASCADE",
|
|
52
|
+
onUpdate: "CASCADE",
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", poliza_entity_1.Poliza)
|
|
55
|
+
], PolizaFile.prototype, "poliza", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({ type: () => drive_1.File, description: 'File entity associated' }),
|
|
58
|
+
(0, typeorm_1.ManyToOne)(() => drive_1.File, {
|
|
59
|
+
onDelete: "CASCADE",
|
|
60
|
+
onUpdate: "CASCADE",
|
|
61
|
+
eager: true,
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", drive_1.File)
|
|
64
|
+
], PolizaFile.prototype, "file", void 0);
|
|
65
|
+
exports.PolizaFile = PolizaFile = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)()
|
|
67
|
+
], PolizaFile);
|
|
68
|
+
//# sourceMappingURL=poliza_file.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poliza_file.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/poliza_file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,gEAAsD;AACtD,0CAAsC;AACtC,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;IAGxC,EAAE,CAAU;IAIZ,QAAQ,CAAS;IAIjB,MAAM,CAAS;IAIf,QAAQ,CAAS;IAQV,MAAM,CAAS;IAQf,IAAI,CAAO;CACnB,CAAA;AAhCY,gCAAU;AAGrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,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B"}
|
|
@@ -18,6 +18,11 @@ let Agent = class Agent extends base_entity_1.BaseEntitySimple {
|
|
|
18
18
|
name;
|
|
19
19
|
cua;
|
|
20
20
|
user;
|
|
21
|
+
children;
|
|
22
|
+
recruitmentManager;
|
|
23
|
+
developmentManager;
|
|
24
|
+
observer;
|
|
25
|
+
observations;
|
|
21
26
|
};
|
|
22
27
|
exports.Agent = Agent;
|
|
23
28
|
__decorate([
|
|
@@ -46,6 +51,43 @@ __decorate([
|
|
|
46
51
|
(0, typeorm_1.JoinColumn)(),
|
|
47
52
|
__metadata("design:type", user_entity_1.User)
|
|
48
53
|
], Agent.prototype, "user", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Number of children" }),
|
|
56
|
+
(0, typeorm_1.Column)({ type: "int", default: 0 }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], Agent.prototype, "children", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({
|
|
61
|
+
type: () => user_entity_1.User,
|
|
62
|
+
description: "Recruitment manager (User)",
|
|
63
|
+
}),
|
|
64
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
|
|
65
|
+
(0, typeorm_1.JoinColumn)({ name: "recruitmentManagerId" }),
|
|
66
|
+
__metadata("design:type", user_entity_1.User)
|
|
67
|
+
], Agent.prototype, "recruitmentManager", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({
|
|
70
|
+
type: () => user_entity_1.User,
|
|
71
|
+
description: "Development manager (User)",
|
|
72
|
+
}),
|
|
73
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
|
|
74
|
+
(0, typeorm_1.JoinColumn)({ name: "developmentManagerId" }),
|
|
75
|
+
__metadata("design:type", user_entity_1.User)
|
|
76
|
+
], Agent.prototype, "developmentManager", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiProperty)({
|
|
79
|
+
type: () => user_entity_1.User,
|
|
80
|
+
description: "Observer (User)",
|
|
81
|
+
}),
|
|
82
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
|
|
83
|
+
(0, typeorm_1.JoinColumn)({ name: "observerId" }),
|
|
84
|
+
__metadata("design:type", user_entity_1.User)
|
|
85
|
+
], Agent.prototype, "observer", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Comments related to the agent" }),
|
|
88
|
+
(0, typeorm_1.Column)({ length: 1000, nullable: true }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], Agent.prototype, "observations", void 0);
|
|
49
91
|
exports.Agent = Agent = __decorate([
|
|
50
92
|
(0, typeorm_1.Entity)()
|
|
51
93
|
], Agent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,mEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,mEAAqE;AACrE,qCAA0E;AAC1E,gDAAsC;AAG/B,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,8BAAgB;IAGzC,IAAI,CAAS;IAQb,GAAG,CAAS;IAWZ,IAAI,CAAO;IAIX,QAAQ,CAAS;IAQjB,kBAAkB,CAAO;IAQzB,kBAAkB,CAAO;IAQzB,QAAQ,CAAO;IAIf,YAAY,CAAS;CACtB,CAAA;AAvDY,sBAAK;AAGhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;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