easywork-common-lib 1.0.6 → 1.0.7
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/index.js +18 -1
- package/dist/entities/app_config/app-config.entity.d.ts +1 -1
- package/dist/entities/app_config/app-config.entity.js +33 -0
- package/dist/entities/app_config/app-config.entity.js.map +1 -0
- package/dist/entities/drive/folder.entity.d.ts +1 -1
- package/dist/entities/drive/folder.entity.js +33 -0
- package/dist/entities/drive/folder.entity.js.map +1 -0
- package/dist/entities/email.entity.d.ts +1 -1
- package/dist/entities/email.entity.js +33 -0
- package/dist/entities/email.entity.js.map +1 -0
- package/dist/entities/group.entity.d.ts +1 -1
- package/dist/entities/group.entity.js +1 -1
- package/dist/entities/group.entity.js.map +1 -1
- package/dist/entities/helpers/contact_email.entity.js +61 -0
- package/dist/entities/helpers/contact_email.entity.js.map +1 -0
- package/dist/entities/helpers/contact_phone.entity.js +61 -0
- package/dist/entities/helpers/contact_phone.entity.js.map +1 -0
- package/dist/entities/helpers/contact_sources.entity.d.ts +1 -1
- package/dist/entities/helpers/contact_sources.entity.js +33 -0
- package/dist/entities/helpers/contact_sources.entity.js.map +1 -0
- package/dist/entities/helpers/contact_types.entity.d.ts +1 -1
- package/dist/entities/helpers/contact_types.entity.js +33 -0
- package/dist/entities/helpers/contact_types.entity.js.map +1 -0
- package/dist/entities/helpers/lead_email.entity.js +59 -0
- package/dist/entities/helpers/lead_email.entity.js.map +1 -0
- package/dist/entities/helpers/lead_phone.entity.js +59 -0
- package/dist/entities/helpers/lead_phone.entity.js.map +1 -0
- package/dist/entities/index.js +34 -1
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/otp-log.entity.d.ts +1 -1
- package/dist/entities/otp-log.entity.js +1 -1
- package/dist/entities/otp-log.entity.js.map +1 -1
- package/dist/entities/permission.entity.d.ts +1 -1
- package/dist/entities/permission.entity.js +1 -1
- package/dist/entities/permission.entity.js.map +1 -1
- package/dist/entities/phone.entity.d.ts +1 -1
- package/dist/entities/phone.entity.js +33 -0
- package/dist/entities/phone.entity.js.map +1 -0
- package/dist/entities/profile.entity.d.ts +1 -1
- package/dist/entities/profile.entity.js +2 -2
- package/dist/entities/profile.entity.js.map +1 -1
- package/dist/entities/protocol.entity.d.ts +1 -1
- package/dist/entities/protocol.entity.js +1 -1
- package/dist/entities/protocol.entity.js.map +1 -1
- package/dist/entities/refresh-token.entity.d.ts +1 -1
- package/dist/entities/refresh-token.entity.js +1 -1
- package/dist/entities/refresh-token.entity.js.map +1 -1
- package/dist/entities/role.entity.d.ts +1 -1
- package/dist/entities/role.entity.js +1 -1
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/sales/contact.entity.d.ts +1 -1
- package/dist/entities/sales/contact.entity.js +221 -0
- package/dist/entities/sales/contact.entity.js.map +1 -0
- package/dist/entities/sales/lead.entity.d.ts +1 -1
- package/dist/entities/sales/lead.entity.js +244 -0
- package/dist/entities/sales/lead.entity.js.map +1 -0
- package/dist/entities/sales/poliza.entity.d.ts +1 -1
- package/dist/entities/sales/poliza.entity.js +342 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +1 -1
- package/dist/entities/user.entity.js +1 -1
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/eslint.config.js +47 -1
- package/dist/index.js +18 -2
- package/package.json +3 -2
- package/src/entities/app_config/app-config.entity.ts +1 -1
- package/src/entities/drive/folder.entity.ts +6 -6
- package/src/entities/email.entity.ts +1 -1
- package/src/entities/group.entity.ts +1 -1
- package/src/entities/helpers/contact_sources.entity.ts +1 -1
- package/src/entities/helpers/contact_types.entity.ts +1 -1
- package/src/entities/otp-log.entity.ts +1 -1
- package/src/entities/permission.entity.ts +1 -1
- package/src/entities/phone.entity.ts +1 -1
- package/src/entities/profile.entity.ts +1 -1
- package/src/entities/protocol.entity.ts +1 -1
- package/src/entities/refresh-token.entity.ts +1 -1
- package/src/entities/role.entity.ts +1 -1
- package/src/entities/sales/contact.entity.ts +1 -1
- package/src/entities/sales/lead.entity.ts +1 -1
- package/src/entities/sales/poliza.entity.ts +1 -1
- package/src/entities/user.entity.ts +1 -1
- package/tsconfig.json +0 -4
- package/dist/index.js.LICENSE.txt +0 -19
|
@@ -0,0 +1,342 @@
|
|
|
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.Poliza = void 0;
|
|
13
|
+
const database_1 = require("../../common/database");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const user_entity_1 = require("../user.entity");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const contact_entity_1 = require("./contact.entity");
|
|
18
|
+
let Poliza = class Poliza extends database_1.BaseEntity {
|
|
19
|
+
idBitrix;
|
|
20
|
+
noPoliza;
|
|
21
|
+
title;
|
|
22
|
+
version;
|
|
23
|
+
vigenciaDesde;
|
|
24
|
+
vigenciaHasta;
|
|
25
|
+
beginDate;
|
|
26
|
+
closeDate;
|
|
27
|
+
opened;
|
|
28
|
+
stageSemantic;
|
|
29
|
+
stage;
|
|
30
|
+
isNew;
|
|
31
|
+
primaNeta;
|
|
32
|
+
recargoFraccionado;
|
|
33
|
+
derechoPoliza;
|
|
34
|
+
iva;
|
|
35
|
+
importePagar;
|
|
36
|
+
isRecurring;
|
|
37
|
+
isReturnCustomer;
|
|
38
|
+
isRepeatedApproach;
|
|
39
|
+
closed;
|
|
40
|
+
typeId;
|
|
41
|
+
opportunity;
|
|
42
|
+
isManualOpportunity;
|
|
43
|
+
currencyId;
|
|
44
|
+
taxValue;
|
|
45
|
+
opportunityAccount;
|
|
46
|
+
taxValueAccount;
|
|
47
|
+
accountCurrencyId;
|
|
48
|
+
probability;
|
|
49
|
+
comments;
|
|
50
|
+
eventDate;
|
|
51
|
+
eventId;
|
|
52
|
+
eventDescription;
|
|
53
|
+
exchRate;
|
|
54
|
+
product;
|
|
55
|
+
sourceId;
|
|
56
|
+
sourceDescription;
|
|
57
|
+
contact;
|
|
58
|
+
assignedBy;
|
|
59
|
+
createdBy;
|
|
60
|
+
descripcionMovimiento;
|
|
61
|
+
especificacionesPlan;
|
|
62
|
+
agenteReclamo;
|
|
63
|
+
agenteReembolso;
|
|
64
|
+
agenteProgramaciones;
|
|
65
|
+
agenteReembolsoSubsecuente;
|
|
66
|
+
agenteRescateFondos;
|
|
67
|
+
agenteSaludGMM;
|
|
68
|
+
agenteVida;
|
|
69
|
+
agenteAutos;
|
|
70
|
+
fechaReferidaPago;
|
|
71
|
+
modifyBy;
|
|
72
|
+
};
|
|
73
|
+
exports.Poliza = Poliza;
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], Poliza.prototype, "idBitrix", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.MinLength)(3),
|
|
80
|
+
(0, typeorm_1.Column)({ length: 15, nullable: true, name: "no_poliza" }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Poliza.prototype, "noPoliza", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.MinLength)(3),
|
|
85
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Poliza.prototype, "title", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.MinLength)(3),
|
|
90
|
+
(0, typeorm_1.Column)({ length: 5, nullable: true }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], Poliza.prototype, "version", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ nullable: true, name: "vigencia_desde" }),
|
|
95
|
+
__metadata("design:type", Date)
|
|
96
|
+
], Poliza.prototype, "vigenciaDesde", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ nullable: true, name: "vigencia_hasta" }),
|
|
99
|
+
__metadata("design:type", Date)
|
|
100
|
+
], Poliza.prototype, "vigenciaHasta", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ nullable: true, name: "begin_date" }),
|
|
103
|
+
__metadata("design:type", Date)
|
|
104
|
+
], Poliza.prototype, "beginDate", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ nullable: true, name: "close_date" }),
|
|
107
|
+
__metadata("design:type", Date)
|
|
108
|
+
], Poliza.prototype, "closeDate", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
111
|
+
__metadata("design:type", Boolean)
|
|
112
|
+
], Poliza.prototype, "opened", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ name: "stage_semantic_id", nullable: true }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], Poliza.prototype, "stageSemantic", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ nullable: true, name: "stage_id" }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], Poliza.prototype, "stage", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ name: "is_new", nullable: true }),
|
|
123
|
+
__metadata("design:type", Boolean)
|
|
124
|
+
], Poliza.prototype, "isNew", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ type: "float", name: "prima_neta", default: 0 }),
|
|
127
|
+
__metadata("design:type", Number)
|
|
128
|
+
], Poliza.prototype, "primaNeta", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.Column)({ type: "float", name: "recargo_fraccionado", default: 0 }),
|
|
131
|
+
__metadata("design:type", Number)
|
|
132
|
+
], Poliza.prototype, "recargoFraccionado", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, typeorm_1.Column)({ type: "float", name: "derecho_poliza", default: 0 }),
|
|
135
|
+
__metadata("design:type", Number)
|
|
136
|
+
], Poliza.prototype, "derechoPoliza", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
139
|
+
__metadata("design:type", Number)
|
|
140
|
+
], Poliza.prototype, "iva", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({ type: "float", name: "importe_pagar", nullable: true }),
|
|
143
|
+
__metadata("design:type", Number)
|
|
144
|
+
], Poliza.prototype, "importePagar", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ default: false, name: "is_recurring" }),
|
|
147
|
+
__metadata("design:type", Boolean)
|
|
148
|
+
], Poliza.prototype, "isRecurring", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.Column)({ default: false, name: "is_return_customer" }),
|
|
151
|
+
__metadata("design:type", Boolean)
|
|
152
|
+
], Poliza.prototype, "isReturnCustomer", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.Column)({ default: false, name: "is_repeated_approach" }),
|
|
155
|
+
__metadata("design:type", Boolean)
|
|
156
|
+
], Poliza.prototype, "isRepeatedApproach", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
159
|
+
__metadata("design:type", Boolean)
|
|
160
|
+
], Poliza.prototype, "closed", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.Column)({ length: 50, nullable: true, name: "type_id" }),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], Poliza.prototype, "typeId", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, typeorm_1.Column)({ type: "float", nullable: true }),
|
|
167
|
+
__metadata("design:type", Number)
|
|
168
|
+
], Poliza.prototype, "opportunity", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, typeorm_1.Column)({ default: false, name: "is_manual_opportunity" }),
|
|
171
|
+
__metadata("design:type", Boolean)
|
|
172
|
+
], Poliza.prototype, "isManualOpportunity", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, typeorm_1.Column)({ name: "currency_id", nullable: true }),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], Poliza.prototype, "currencyId", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.Column)({ name: "tax_value", type: "float", nullable: true }),
|
|
179
|
+
__metadata("design:type", Number)
|
|
180
|
+
], Poliza.prototype, "taxValue", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.Column)({ type: "float", default: 0, name: "opportunity_account" }),
|
|
183
|
+
__metadata("design:type", Number)
|
|
184
|
+
], Poliza.prototype, "opportunityAccount", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, typeorm_1.Column)({ type: "float", default: 0, name: "tax_value_account" }),
|
|
187
|
+
__metadata("design:type", Number)
|
|
188
|
+
], Poliza.prototype, "taxValueAccount", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, typeorm_1.Column)({ name: "account_currency_id", nullable: true }),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], Poliza.prototype, "accountCurrencyId", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
195
|
+
__metadata("design:type", Number)
|
|
196
|
+
], Poliza.prototype, "probability", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
199
|
+
__metadata("design:type", String)
|
|
200
|
+
], Poliza.prototype, "comments", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, typeorm_1.Column)({ name: "event_date", nullable: true }),
|
|
203
|
+
__metadata("design:type", Date)
|
|
204
|
+
], Poliza.prototype, "eventDate", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true, name: "event_id" }),
|
|
207
|
+
__metadata("design:type", String)
|
|
208
|
+
], Poliza.prototype, "eventId", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true, name: "event_description" }),
|
|
211
|
+
__metadata("design:type", String)
|
|
212
|
+
], Poliza.prototype, "eventDescription", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, typeorm_1.Column)({
|
|
215
|
+
type: "decimal",
|
|
216
|
+
precision: 20,
|
|
217
|
+
scale: 4,
|
|
218
|
+
default: 1.0,
|
|
219
|
+
name: "exch_rate",
|
|
220
|
+
}),
|
|
221
|
+
__metadata("design:type", Number)
|
|
222
|
+
], Poliza.prototype, "exchRate", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
225
|
+
__metadata("design:type", String)
|
|
226
|
+
], Poliza.prototype, "product", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, typeorm_1.Column)({ nullable: true, name: "source_id" }),
|
|
229
|
+
__metadata("design:type", String)
|
|
230
|
+
], Poliza.prototype, "sourceId", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, typeorm_1.Column)({ nullable: true, name: "source_description" }),
|
|
233
|
+
__metadata("design:type", String)
|
|
234
|
+
], Poliza.prototype, "sourceDescription", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
237
|
+
onDelete: "SET NULL",
|
|
238
|
+
onUpdate: "CASCADE",
|
|
239
|
+
nullable: true,
|
|
240
|
+
}),
|
|
241
|
+
__metadata("design:type", contact_entity_1.Contact)
|
|
242
|
+
], Poliza.prototype, "contact", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
245
|
+
onDelete: "SET NULL",
|
|
246
|
+
onUpdate: "CASCADE",
|
|
247
|
+
nullable: true,
|
|
248
|
+
}),
|
|
249
|
+
__metadata("design:type", user_entity_1.User)
|
|
250
|
+
], Poliza.prototype, "assignedBy", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
253
|
+
onDelete: "SET NULL",
|
|
254
|
+
onUpdate: "CASCADE",
|
|
255
|
+
nullable: true,
|
|
256
|
+
}),
|
|
257
|
+
__metadata("design:type", user_entity_1.User)
|
|
258
|
+
], Poliza.prototype, "createdBy", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true, name: "descripcion_movimiento" }),
|
|
261
|
+
__metadata("design:type", String)
|
|
262
|
+
], Poliza.prototype, "descripcionMovimiento", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
265
|
+
__metadata("design:type", String)
|
|
266
|
+
], Poliza.prototype, "especificacionesPlan", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
269
|
+
onDelete: "SET NULL",
|
|
270
|
+
onUpdate: "CASCADE",
|
|
271
|
+
nullable: true,
|
|
272
|
+
}),
|
|
273
|
+
__metadata("design:type", user_entity_1.User)
|
|
274
|
+
], Poliza.prototype, "agenteReclamo", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
277
|
+
onDelete: "SET NULL",
|
|
278
|
+
onUpdate: "CASCADE",
|
|
279
|
+
nullable: true,
|
|
280
|
+
}),
|
|
281
|
+
__metadata("design:type", user_entity_1.User)
|
|
282
|
+
], Poliza.prototype, "agenteReembolso", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
285
|
+
onDelete: "SET NULL",
|
|
286
|
+
onUpdate: "CASCADE",
|
|
287
|
+
nullable: true,
|
|
288
|
+
}),
|
|
289
|
+
__metadata("design:type", user_entity_1.User)
|
|
290
|
+
], Poliza.prototype, "agenteProgramaciones", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
293
|
+
onDelete: "SET NULL",
|
|
294
|
+
onUpdate: "CASCADE",
|
|
295
|
+
nullable: true,
|
|
296
|
+
}),
|
|
297
|
+
__metadata("design:type", user_entity_1.User)
|
|
298
|
+
], Poliza.prototype, "agenteReembolsoSubsecuente", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
301
|
+
onDelete: "SET NULL",
|
|
302
|
+
onUpdate: "CASCADE",
|
|
303
|
+
nullable: true,
|
|
304
|
+
}),
|
|
305
|
+
__metadata("design:type", user_entity_1.User)
|
|
306
|
+
], Poliza.prototype, "agenteRescateFondos", void 0);
|
|
307
|
+
__decorate([
|
|
308
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
309
|
+
onDelete: "SET NULL",
|
|
310
|
+
onUpdate: "CASCADE",
|
|
311
|
+
nullable: true,
|
|
312
|
+
}),
|
|
313
|
+
__metadata("design:type", user_entity_1.User)
|
|
314
|
+
], Poliza.prototype, "agenteSaludGMM", void 0);
|
|
315
|
+
__decorate([
|
|
316
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
317
|
+
onDelete: "SET NULL",
|
|
318
|
+
onUpdate: "CASCADE",
|
|
319
|
+
nullable: true,
|
|
320
|
+
}),
|
|
321
|
+
__metadata("design:type", user_entity_1.User)
|
|
322
|
+
], Poliza.prototype, "agenteVida", void 0);
|
|
323
|
+
__decorate([
|
|
324
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
325
|
+
onDelete: "SET NULL",
|
|
326
|
+
onUpdate: "CASCADE",
|
|
327
|
+
nullable: true,
|
|
328
|
+
}),
|
|
329
|
+
__metadata("design:type", user_entity_1.User)
|
|
330
|
+
], Poliza.prototype, "agenteAutos", void 0);
|
|
331
|
+
__decorate([
|
|
332
|
+
(0, typeorm_1.Column)({ name: "fecha_referida_pago", nullable: true }),
|
|
333
|
+
__metadata("design:type", Date)
|
|
334
|
+
], Poliza.prototype, "fechaReferidaPago", void 0);
|
|
335
|
+
__decorate([
|
|
336
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.id, { nullable: true }),
|
|
337
|
+
__metadata("design:type", user_entity_1.User)
|
|
338
|
+
], Poliza.prototype, "modifyBy", void 0);
|
|
339
|
+
exports.Poliza = Poliza = __decorate([
|
|
340
|
+
(0, typeorm_1.Entity)()
|
|
341
|
+
], Poliza);
|
|
342
|
+
//# sourceMappingURL=poliza.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poliza.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/poliza.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,gDAAsC;AACtC,qCAAoD;AACpD,qDAA2C;AAGpC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,qBAAU;IAEpC,QA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Q,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;8BACY,kBAAI;2CAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,IAAI;iDAAC;AAGzB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClD,kBAAI;wCAAC;iBAnNL,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAoNlB"}
|
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.User = void 0;
|
|
13
|
-
const database_1 = require("
|
|
13
|
+
const database_1 = require("../common/database");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
16
|
const profile_entity_1 = require("./profile.entity");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAAsF;AACtF,yDAA4C;AAC5C,qDAA2C;AAC3C,+CAAqC;AAG9B,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;IAElC,QAAQ,CAAU;IAGlB,KAAK,CAAU;IAGf,GAAG,CAAU;IAGb,MAAM,CAAU;IAIhB,IAAI,CAAU;IAId,eAAe,CAAU;IAGzB,kBAAkB,CAAW;IAG7B,KAAK,CAA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;IACD,IAAA,mBAAS,GAAE;;mCACG;eA7CJ,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA8ChB"}
|
package/dist/eslint.config.js
CHANGED
|
@@ -1 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const rubiin = require("@antfu/eslint-config").default;
|
|
4
|
+
module.exports = rubiin({
|
|
5
|
+
stylistic: {
|
|
6
|
+
semi: true,
|
|
7
|
+
quotes: "double",
|
|
8
|
+
},
|
|
9
|
+
yaml: true,
|
|
10
|
+
jsonc: true,
|
|
11
|
+
markdown: false,
|
|
12
|
+
gitignore: true,
|
|
13
|
+
typescript: {
|
|
14
|
+
tsconfigPath: "tsconfig.json",
|
|
15
|
+
},
|
|
16
|
+
overrides: {
|
|
17
|
+
test: {
|
|
18
|
+
"ts/unbound-method": "off",
|
|
19
|
+
},
|
|
20
|
+
typescript: {
|
|
21
|
+
"ts/no-misused-promises": [
|
|
22
|
+
"error",
|
|
23
|
+
{
|
|
24
|
+
checksVoidReturn: false,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
"ts/no-floating-promises": [
|
|
28
|
+
"error",
|
|
29
|
+
{
|
|
30
|
+
ignoreIIFE: true,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
"unicorn/prefer-top-level-await": "off",
|
|
34
|
+
"unicorn/prevent-abbreviations": [
|
|
35
|
+
"error",
|
|
36
|
+
{
|
|
37
|
+
ignore: ["\\.e2e*", "\\.spec*", "\\.decorator*", "\\*idx*"],
|
|
38
|
+
allowList: {
|
|
39
|
+
ProcessEnv: true,
|
|
40
|
+
UUIDParam: true,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=eslint.config.js.map
|