easywork-common-lib 1.0.265 → 1.0.267

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.
Files changed (59) hide show
  1. package/.gitattributes +2 -2
  2. package/.github/workflows/npm-publish.yml +33 -33
  3. package/.vscode/settings.json +12 -12
  4. package/dist/common/constants/app.contants.js.map +1 -1
  5. package/dist/common/enums/sales.enum.d.ts +8 -0
  6. package/dist/common/enums/sales.enum.js +11 -1
  7. package/dist/common/enums/sales.enum.js.map +1 -1
  8. package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +5 -0
  9. package/dist/entities/helpers/sales/common/client_sources.entity.js +36 -0
  10. package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -0
  11. package/dist/entities/helpers/sales/common/client_types.entity.d.ts +5 -0
  12. package/dist/entities/helpers/sales/common/client_types.entity.js +36 -0
  13. package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -0
  14. package/dist/entities/helpers/sales/contact/index.d.ts +2 -2
  15. package/dist/entities/helpers/sales/contact/index.js +2 -2
  16. package/dist/entities/helpers/sales/contact/index.js.map +1 -1
  17. package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.d.ts +12 -0
  18. package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.js +73 -0
  19. package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.js.map +1 -0
  20. package/dist/entities/sales/beneficiarios/person.entity.d.ts +10 -0
  21. package/dist/entities/sales/beneficiarios/person.entity.js +64 -0
  22. package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -0
  23. package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +15 -0
  24. package/dist/entities/sales/beneficiarios/vehicle.entity.js +93 -0
  25. package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -0
  26. package/dist/entities/sales/contact.entity.d.ts +21 -24
  27. package/dist/entities/sales/contact.entity.js +124 -137
  28. package/dist/entities/sales/contact.entity.js.map +1 -1
  29. package/dist/entities/sales/poliza.entity.d.ts +27 -19
  30. package/dist/entities/sales/poliza.entity.js +151 -106
  31. package/dist/entities/sales/poliza.entity.js.map +1 -1
  32. package/dist/grpc/drive/drive.proto +69 -69
  33. package/dist/modules/notifier/notifier.module.js +4 -1
  34. package/dist/modules/notifier/notifier.module.js.map +1 -1
  35. package/dist/modules/notifier/notifier.service.js +3 -3
  36. package/dist/modules/notifier/notifier.service.js.map +1 -1
  37. package/dist/modules/notifier/scheduler.service.d.ts +9 -0
  38. package/dist/modules/notifier/scheduler.service.js +40 -0
  39. package/dist/modules/notifier/scheduler.service.js.map +1 -0
  40. package/dist/modules/queue/subservices/calendar.service.d.ts +2 -0
  41. package/dist/modules/queue/subservices/calendar.service.js +17 -0
  42. package/dist/modules/queue/subservices/calendar.service.js.map +1 -0
  43. package/dist/modules/queue/subservices/contact.service.d.ts +7 -0
  44. package/dist/modules/queue/subservices/contact.service.js +49 -0
  45. package/dist/modules/queue/subservices/contact.service.js.map +1 -0
  46. package/dist/modules/queue/subservices/index.d.ts +3 -0
  47. package/dist/{entities/easyapp → modules/queue/subservices}/index.js +3 -1
  48. package/dist/modules/queue/subservices/index.js.map +1 -0
  49. package/dist/modules/queue/subservices/task.service.d.ts +12 -0
  50. package/dist/modules/queue/subservices/task.service.js +173 -0
  51. package/dist/modules/queue/subservices/task.service.js.map +1 -0
  52. package/package.json +41 -41
  53. package/scripts/bump.sh +5 -5
  54. package/test.bat +15 -15
  55. package/tsconfig.build.json +4 -4
  56. package/tsconfig.json +26 -26
  57. package/tsconfig.tsbuildinfo +1 -1
  58. package/dist/entities/easyapp/index.d.ts +0 -1
  59. package/dist/entities/easyapp/index.js.map +0 -1
@@ -13,68 +13,63 @@ exports.Contact = void 0;
13
13
  const database_1 = require("../../common/database");
14
14
  const contact_email_entity_1 = require("../helpers/sales/contact/contact_email.entity");
15
15
  const contact_phone_entity_1 = require("../helpers/sales/contact/contact_phone.entity");
16
- const contact_sources_entity_1 = require("../helpers/sales/contact/contact_sources.entity");
17
- const contact_types_entity_1 = require("../helpers/sales/contact/contact_types.entity");
16
+ const client_sources_entity_1 = require("../helpers/sales/common/client_sources.entity");
17
+ const client_types_entity_1 = require("../helpers/sales/common/client_types.entity");
18
18
  const user_entity_1 = require("../user.entity");
19
19
  const typeorm_1 = require("typeorm");
20
20
  const poliza_entity_1 = require("./poliza.entity");
21
21
  const swagger_1 = require("@nestjs/swagger");
22
+ const lead_entity_1 = require("./lead.entity");
23
+ const common_1 = require("../../common");
22
24
  let Contact = class Contact extends database_1.BaseEntityWithUser {
23
- curp;
24
25
  idBitrix;
25
- cua;
26
- cargo;
26
+ typePerson;
27
27
  fullName;
28
28
  name;
29
29
  lastName;
30
30
  secondName;
31
+ codigo;
32
+ rfc;
33
+ address;
34
+ phones;
35
+ emails;
36
+ cargo;
37
+ birthdate;
38
+ gender;
39
+ type;
40
+ source;
41
+ assignedBy;
42
+ observador;
43
+ lead;
44
+ relations;
45
+ curp;
46
+ cua;
31
47
  photo;
32
48
  post;
33
- address;
34
49
  comments;
35
- lead;
36
50
  export;
37
- originatorId;
38
- originId;
39
- originVersion;
40
- birthdate;
41
- honorific;
42
- hasPhone;
43
- hasEmail;
44
- hasImol;
45
- faceId;
46
- opened;
47
- company;
48
51
  sourceDescription;
49
- assignedBy;
50
- observador;
51
- type;
52
- source;
53
52
  polizas;
54
- phones;
55
- emails;
56
53
  };
57
54
  exports.Contact = Contact;
58
- __decorate([
59
- (0, swagger_1.ApiProperty)({ type: String, description: 'CURP of the contact', required: false }),
60
- (0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
61
- __metadata("design:type", String)
62
- ], Contact.prototype, "curp", void 0);
63
55
  __decorate([
64
56
  (0, swagger_1.ApiProperty)({ type: Number, description: 'Bitrix ID of the contact', required: false }),
65
57
  (0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
66
58
  __metadata("design:type", Number)
67
59
  ], Contact.prototype, "idBitrix", void 0);
68
60
  __decorate([
69
- (0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the contact', required: false }),
70
- (0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
71
- __metadata("design:type", String)
72
- ], Contact.prototype, "cua", void 0);
73
- __decorate([
74
- (0, swagger_1.ApiProperty)({ type: String, description: 'Cargo of the contact', required: false }),
75
- (0, typeorm_1.Column)({ name: "cargo", length: 50, nullable: true }),
61
+ (0, swagger_1.ApiProperty)({
62
+ enum: common_1.PersonType,
63
+ description: 'Type of person',
64
+ default: common_1.PersonType.FISICA
65
+ }),
66
+ (0, typeorm_1.Column)({
67
+ type: "enum",
68
+ enum: common_1.PersonType,
69
+ default: common_1.PersonType.FISICA
70
+ }),
76
71
  __metadata("design:type", String)
77
- ], Contact.prototype, "cargo", void 0);
72
+ ], Contact.prototype, "typePerson", void 0);
78
73
  __decorate([
79
74
  (0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the contact', required: false }),
80
75
  (0, typeorm_1.Column)({ name: "full_name", length: 100, nullable: true }),
@@ -96,95 +91,73 @@ __decorate([
96
91
  __metadata("design:type", String)
97
92
  ], Contact.prototype, "secondName", void 0);
98
93
  __decorate([
99
- (0, swagger_1.ApiProperty)({ type: String, description: 'Photo URL of the contact', required: false }),
100
- (0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
101
- __metadata("design:type", String)
102
- ], Contact.prototype, "photo", void 0);
94
+ (0, swagger_1.ApiProperty)({ type: Number, description: 'Codigo de cliente', required: false }),
95
+ (0, typeorm_1.Column)({ name: "codigo", nullable: true }),
96
+ __metadata("design:type", Number)
97
+ ], Contact.prototype, "codigo", void 0);
103
98
  __decorate([
104
- (0, swagger_1.ApiProperty)({ type: String, description: 'Post of the contact', required: false }),
105
- (0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
99
+ (0, swagger_1.ApiProperty)({ type: String, description: 'RFC of the contact', required: false }),
100
+ (0, typeorm_1.Column)({ name: "rfc", length: 50, nullable: true }),
106
101
  __metadata("design:type", String)
107
- ], Contact.prototype, "post", void 0);
102
+ ], Contact.prototype, "rfc", void 0);
108
103
  __decorate([
109
104
  (0, swagger_1.ApiProperty)({ type: String, description: 'Address of the contact', required: false }),
110
105
  (0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
111
106
  __metadata("design:type", String)
112
107
  ], Contact.prototype, "address", void 0);
113
108
  __decorate([
114
- (0, swagger_1.ApiProperty)({ type: String, description: 'Comments about the contact', required: false }),
115
- (0, typeorm_1.Column)({ name: "comments", type: "text", nullable: true }),
116
- __metadata("design:type", String)
117
- ], Contact.prototype, "comments", void 0);
118
- __decorate([
119
- (0, swagger_1.ApiProperty)({ type: String, description: 'Lead of the contact', required: false }),
120
- (0, typeorm_1.Column)({ name: "lead", nullable: true }),
121
- __metadata("design:type", String)
122
- ], Contact.prototype, "lead", void 0);
123
- __decorate([
124
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the contact exported?', default: false }),
125
- (0, typeorm_1.Column)({ name: "export", default: false }),
126
- __metadata("design:type", Boolean)
127
- ], Contact.prototype, "export", void 0);
128
- __decorate([
129
- (0, swagger_1.ApiProperty)({ type: String, description: 'Originator ID of the contact', required: false }),
130
- (0, typeorm_1.Column)({ name: "originator_id", length: 255, nullable: true }),
131
- __metadata("design:type", String)
132
- ], Contact.prototype, "originatorId", void 0);
109
+ (0, swagger_1.ApiProperty)({ type: () => [contact_phone_entity_1.ContactPhone], description: 'Phones associated with the contact' }),
110
+ (0, typeorm_1.OneToMany)(() => contact_phone_entity_1.ContactPhone, (contactPhone) => contactPhone.contact, {
111
+ onDelete: "CASCADE",
112
+ onUpdate: "CASCADE",
113
+ eager: true,
114
+ }),
115
+ __metadata("design:type", Array)
116
+ ], Contact.prototype, "phones", void 0);
133
117
  __decorate([
134
- (0, swagger_1.ApiProperty)({ type: String, description: 'Origin ID of the contact', required: false }),
135
- (0, typeorm_1.Column)({ name: "origin_id", length: 255, nullable: true }),
136
- __metadata("design:type", String)
137
- ], Contact.prototype, "originId", void 0);
118
+ (0, swagger_1.ApiProperty)({ type: () => [contact_email_entity_1.ContactEmail], description: 'Emails associated with the contact' }),
119
+ (0, typeorm_1.OneToMany)(() => contact_email_entity_1.ContactEmail, (contactEmail) => contactEmail.contact, {
120
+ onDelete: "CASCADE",
121
+ onUpdate: "CASCADE",
122
+ eager: true,
123
+ }),
124
+ __metadata("design:type", Array)
125
+ ], Contact.prototype, "emails", void 0);
138
126
  __decorate([
139
- (0, swagger_1.ApiProperty)({ type: String, description: 'Origin version of the contact', required: false }),
140
- (0, typeorm_1.Column)({ name: "origin_version", length: 255, nullable: true }),
127
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Cargo of the contact', required: false }),
128
+ (0, typeorm_1.Column)({ name: "cargo", length: 50, nullable: true }),
141
129
  __metadata("design:type", String)
142
- ], Contact.prototype, "originVersion", void 0);
130
+ ], Contact.prototype, "cargo", void 0);
143
131
  __decorate([
144
132
  (0, swagger_1.ApiProperty)({ type: Date, description: 'Birthdate of the contact', required: false }),
145
133
  (0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
146
134
  __metadata("design:type", Date)
147
135
  ], Contact.prototype, "birthdate", void 0);
148
136
  __decorate([
149
- (0, swagger_1.ApiProperty)({ type: String, description: 'Honorific of the contact', required: false }),
150
- (0, typeorm_1.Column)({ name: "honorific", length: 128, nullable: true }),
137
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Gender of the contact', required: false }),
138
+ (0, typeorm_1.Column)({ name: "gender", length: 10, nullable: true }),
151
139
  __metadata("design:type", String)
152
- ], Contact.prototype, "honorific", void 0);
140
+ ], Contact.prototype, "gender", void 0);
153
141
  __decorate([
154
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the contact have a phone?', default: false }),
155
- (0, typeorm_1.Column)({ name: "has_phone", default: false }),
156
- __metadata("design:type", Boolean)
157
- ], Contact.prototype, "hasPhone", void 0);
158
- __decorate([
159
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the contact have an email?', default: false }),
160
- (0, typeorm_1.Column)({ name: "has_email", default: false }),
161
- __metadata("design:type", Boolean)
162
- ], Contact.prototype, "hasEmail", void 0);
163
- __decorate([
164
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the contact have IMOL?', default: false }),
165
- (0, typeorm_1.Column)({ name: "has_imol", default: false }),
166
- __metadata("design:type", Boolean)
167
- ], Contact.prototype, "hasImol", void 0);
168
- __decorate([
169
- (0, swagger_1.ApiProperty)({ type: String, description: 'Face ID of the contact', required: false }),
170
- (0, typeorm_1.Column)({ name: "face_id", nullable: true }),
171
- __metadata("design:type", String)
172
- ], Contact.prototype, "faceId", void 0);
173
- __decorate([
174
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the contact opened?', default: false }),
175
- (0, typeorm_1.Column)({ name: "opened", default: false }),
176
- __metadata("design:type", Boolean)
177
- ], Contact.prototype, "opened", void 0);
178
- __decorate([
179
- (0, swagger_1.ApiProperty)({ type: String, description: 'Company of the contact', required: false }),
180
- (0, typeorm_1.Column)({ name: "company", nullable: true }),
181
- __metadata("design:type", String)
182
- ], Contact.prototype, "company", void 0);
142
+ (0, swagger_1.ApiProperty)({ type: () => client_types_entity_1.ClientType, description: 'Contact type', required: true }),
143
+ (0, typeorm_1.ManyToOne)(() => client_types_entity_1.ClientType, {
144
+ onDelete: "SET NULL",
145
+ onUpdate: "CASCADE",
146
+ nullable: true,
147
+ eager: true,
148
+ }),
149
+ __metadata("design:type", client_types_entity_1.ClientType)
150
+ ], Contact.prototype, "type", void 0);
183
151
  __decorate([
184
- (0, swagger_1.ApiProperty)({ type: String, description: 'Source description of the contact', required: false }),
185
- (0, typeorm_1.Column)({ name: "source_description", type: "text", nullable: true }),
186
- __metadata("design:type", String)
187
- ], Contact.prototype, "sourceDescription", void 0);
152
+ (0, swagger_1.ApiProperty)({ type: () => client_sources_entity_1.ClientSource, description: 'Contact source', required: true }),
153
+ (0, typeorm_1.ManyToOne)(() => client_sources_entity_1.ClientSource, {
154
+ onDelete: "SET NULL",
155
+ onUpdate: "CASCADE",
156
+ nullable: true,
157
+ eager: true,
158
+ }),
159
+ __metadata("design:type", client_sources_entity_1.ClientSource)
160
+ ], Contact.prototype, "source", void 0);
188
161
  __decorate([
189
162
  (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User assigned to the contact', required: false }),
190
163
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
@@ -204,52 +177,66 @@ __decorate([
204
177
  __metadata("design:type", user_entity_1.User)
205
178
  ], Contact.prototype, "observador", void 0);
206
179
  __decorate([
207
- (0, swagger_1.ApiProperty)({ type: () => contact_types_entity_1.ContactType, description: 'Contact type', required: true }),
208
- (0, typeorm_1.ManyToOne)(() => contact_types_entity_1.ContactType, {
180
+ (0, swagger_1.ApiProperty)({ type: () => lead_entity_1.Lead, description: 'Lead', required: false }),
181
+ (0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, {
209
182
  onDelete: "SET NULL",
210
183
  onUpdate: "CASCADE",
211
184
  nullable: true,
212
- eager: true,
213
185
  }),
214
- __metadata("design:type", contact_types_entity_1.ContactType)
215
- ], Contact.prototype, "type", void 0);
216
- __decorate([
217
- (0, swagger_1.ApiProperty)({ type: () => contact_sources_entity_1.ContactSource, description: 'Contact source', required: true }),
218
- (0, typeorm_1.ManyToOne)(() => contact_sources_entity_1.ContactSource, {
219
- onDelete: "SET NULL",
220
- onUpdate: "CASCADE",
221
- nullable: true,
222
- eager: true,
223
- }),
224
- __metadata("design:type", contact_sources_entity_1.ContactSource)
225
- ], Contact.prototype, "source", void 0);
186
+ __metadata("design:type", lead_entity_1.Lead)
187
+ ], Contact.prototype, "lead", void 0);
226
188
  __decorate([
227
- (0, swagger_1.ApiProperty)({ type: () => [poliza_entity_1.Poliza], description: 'Polizas associated with the contact' }),
228
- (0, typeorm_1.OneToMany)(() => poliza_entity_1.Poliza, (poliza) => poliza.contact, {
189
+ (0, swagger_1.ApiProperty)({ type: () => [Contact], description: 'Contacts related' }),
190
+ (0, typeorm_1.ManyToMany)(() => Contact, {
229
191
  onDelete: "CASCADE",
230
192
  onUpdate: "CASCADE",
231
- eager: true,
232
193
  }),
194
+ (0, typeorm_1.JoinTable)(),
233
195
  __metadata("design:type", Array)
234
- ], Contact.prototype, "polizas", void 0);
196
+ ], Contact.prototype, "relations", void 0);
235
197
  __decorate([
236
- (0, swagger_1.ApiProperty)({ type: () => [contact_phone_entity_1.ContactPhone], description: 'Phones associated with the contact' }),
237
- (0, typeorm_1.OneToMany)(() => contact_phone_entity_1.ContactPhone, (contactPhone) => contactPhone.contact, {
238
- onDelete: "CASCADE",
239
- onUpdate: "CASCADE",
240
- eager: true,
241
- }),
242
- __metadata("design:type", Array)
243
- ], Contact.prototype, "phones", void 0);
198
+ (0, swagger_1.ApiProperty)({ type: String, description: 'CURP of the contact', required: false }),
199
+ (0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
200
+ __metadata("design:type", String)
201
+ ], Contact.prototype, "curp", void 0);
244
202
  __decorate([
245
- (0, swagger_1.ApiProperty)({ type: () => [contact_email_entity_1.ContactEmail], description: 'Emails associated with the contact' }),
246
- (0, typeorm_1.OneToMany)(() => contact_email_entity_1.ContactEmail, (contactEmail) => contactEmail.contact, {
203
+ (0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the contact', required: false }),
204
+ (0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
205
+ __metadata("design:type", String)
206
+ ], Contact.prototype, "cua", void 0);
207
+ __decorate([
208
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Photo URL of the contact', required: false }),
209
+ (0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
210
+ __metadata("design:type", String)
211
+ ], Contact.prototype, "photo", void 0);
212
+ __decorate([
213
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Post of the contact', required: false }),
214
+ (0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
215
+ __metadata("design:type", String)
216
+ ], Contact.prototype, "post", void 0);
217
+ __decorate([
218
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Comments about the contact', required: false }),
219
+ (0, typeorm_1.Column)({ name: "comments", type: "text", nullable: true }),
220
+ __metadata("design:type", String)
221
+ ], Contact.prototype, "comments", void 0);
222
+ __decorate([
223
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the contact exported?', default: false }),
224
+ (0, typeorm_1.Column)({ name: "export", default: false }),
225
+ __metadata("design:type", Boolean)
226
+ ], Contact.prototype, "export", void 0);
227
+ __decorate([
228
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Source description of the contact', required: false }),
229
+ (0, typeorm_1.Column)({ name: "source_description", type: "text", nullable: true }),
230
+ __metadata("design:type", String)
231
+ ], Contact.prototype, "sourceDescription", void 0);
232
+ __decorate([
233
+ (0, swagger_1.ApiProperty)({ type: () => [poliza_entity_1.Poliza], description: 'Polizas associated with the contact' }),
234
+ (0, typeorm_1.OneToMany)(() => poliza_entity_1.Poliza, (poliza) => poliza.contact, {
247
235
  onDelete: "CASCADE",
248
236
  onUpdate: "CASCADE",
249
- eager: true,
250
237
  }),
251
238
  __metadata("design:type", Array)
252
- ], Contact.prototype, "emails", void 0);
239
+ ], Contact.prototype, "polizas", void 0);
253
240
  exports.Contact = Contact = __decorate([
254
241
  (0, typeorm_1.Entity)()
255
242
  ], Contact);
@@ -1 +1 @@
1
- {"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,wFAA6E;AAC7E,wFAA6E;AAC7E,4FAAgF;AAChF,wFAA4E;AAC5E,gDAAsC;AACtC,qCAA+D;AAC/D,mDAAyC;AACzC,6CAA8C;AAGvC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,6BAAkB;IAG7C,IAAI,CAAU;IAId,QAAQ,CAAU;IAIlB,GAAG,CAAU;IAIb,KAAK,CAAU;IAIf,QAAQ,CAAU;IAIlB,IAAI,CAAU;I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zC;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACzF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACzC;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACvF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uCAC1B;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,mCAAmC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC1C;AAO3B;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,sBAAM,CAAC,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;IACzF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;QACnD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;;wCACiB;kBA9JR,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA+JnB"}
@@ -2,36 +2,44 @@ import { User } from "../user.entity";
2
2
  import { Contact } from "./contact.entity";
3
3
  import { PolizaCompany, PolizaFormaCobro, PolizaType, PolizaFile, PolizaFrecuenciaPago } from "../helpers";
4
4
  import { PolizaSiniestro } from "./poliza_siniestro.entity";
5
- import { PolizaStatus } from "../../common/enums";
5
+ import { PolizaDiasPlazoPago, PolizaStatus } from "../../common/enums";
6
6
  import { BaseEntityWithUser } from "../../common";
7
7
  import { Currency } from "../currency.entity";
8
8
  import { Receipt } from "./receipt.entity";
9
+ import { BeneficiaryPerson } from "./beneficiarios/person.entity";
10
+ import { BeneficiaryVehicle } from "./beneficiarios/vehicle.entity";
9
11
  export declare class Poliza extends BaseEntityWithUser {
10
12
  idBitrix: number;
11
- noPoliza: string;
12
- title: string;
13
- version: string;
13
+ numero: string;
14
+ version: number;
15
+ renovacion: number;
14
16
  vigenciaDesde: Date;
15
17
  vigenciaHasta: Date;
16
- beginDate: Date;
17
- closeDate: Date;
18
- opened?: boolean;
19
- stageSemantic?: string;
20
- stage: string;
21
- isNew: boolean;
18
+ vigenciaDesdeVersion: Date;
19
+ vigenciaHastaVersion: Date;
20
+ description: string;
22
21
  primaNeta?: number;
23
22
  recargoFraccionado?: number;
24
23
  derechoPoliza?: number;
25
24
  iva?: number;
26
25
  importePagar?: number;
27
- isRecurring?: boolean;
28
- isReturnCustomer?: boolean;
29
- isRepeatedApproach?: boolean;
30
- closed?: boolean;
31
- typeId?: string;
26
+ primaNetaMovimiento?: number;
27
+ recargoFraccionadoMovimiento?: number;
28
+ derechoPolizaMovimiento?: number;
29
+ ivaMovimiento?: number;
30
+ importePagarMovimiento?: number;
31
+ conductoPago: string;
32
+ frecuenciaCobro: PolizaFrecuenciaPago;
33
+ currency: Currency;
34
+ plazoPago: PolizaDiasPlazoPago;
35
+ expeditionDate: Date;
36
+ plan: string;
37
+ movementDescription: string;
38
+ agentText: string;
39
+ name: string;
40
+ opened?: boolean;
32
41
  opportunity?: number;
33
42
  isManualOpportunity?: boolean;
34
- currency: Currency;
35
43
  taxValue?: number;
36
44
  opportunityAccount?: number;
37
45
  taxValueAccount?: number;
@@ -48,7 +56,6 @@ export declare class Poliza extends BaseEntityWithUser {
48
56
  company: PolizaCompany;
49
57
  type: PolizaType;
50
58
  formaCobro: PolizaFormaCobro;
51
- frecuenciaCobro: PolizaFrecuenciaPago;
52
59
  contact: Contact;
53
60
  files?: PolizaFile[];
54
61
  status: PolizaStatus;
@@ -61,10 +68,11 @@ export declare class Poliza extends BaseEntityWithUser {
61
68
  agenteProgramaciones?: User;
62
69
  agenteReembolsoSubsecuente?: User;
63
70
  agenteRescateFondos?: User;
64
- agenteSaludGMM?: User;
71
+ agenteGMM?: User;
65
72
  agenteVida?: User;
66
73
  agenteAutos?: User;
67
74
  fechaReferidaPago?: Date;
68
- modifyBy?: User;
69
75
  receipts?: Receipt[];
76
+ beneficiaries?: BeneficiaryPerson[];
77
+ vehicle?: BeneficiaryVehicle[];
70
78
  }