easywork-common-lib 1.0.5 → 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 +5 -0
- 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 +5 -0
- 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 +5 -0
- 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.d.ts +11 -0
- 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.d.ts +11 -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 +5 -0
- 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 +5 -0
- 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.d.ts +11 -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.d.ts +11 -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.d.ts +10 -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 +5 -0
- 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 +41 -0
- 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 +46 -0
- 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 +58 -0
- 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 +13 -0
- package/src/entities/drive/folder.entity.ts +13 -0
- package/src/entities/email.entity.ts +13 -0
- package/src/entities/group.entity.ts +1 -1
- package/src/entities/helpers/contact_email.entity.ts +33 -0
- package/src/entities/helpers/contact_phone.entity.ts +33 -0
- package/src/entities/helpers/contact_sources.entity.ts +13 -0
- package/src/entities/helpers/contact_types.entity.ts +13 -0
- package/src/entities/helpers/lead_email.entity.ts +31 -0
- package/src/entities/helpers/lead_phone.entity.ts +31 -0
- package/src/entities/index.ts +10 -0
- package/src/entities/otp-log.entity.ts +1 -1
- package/src/entities/permission.entity.ts +1 -1
- package/src/entities/phone.entity.ts +13 -0
- package/src/entities/profile.entity.ts +2 -2
- 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 +140 -0
- package/src/entities/sales/lead.entity.ts +151 -0
- package/src/entities/sales/poliza.entity.ts +220 -0
- package/src/entities/user.entity.ts +1 -1
- package/tsconfig.json +0 -4
- package/dist/index.js.LICENSE.txt +0 -19
|
@@ -0,0 +1,244 @@
|
|
|
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.Lead = void 0;
|
|
13
|
+
const database_1 = require("../../common/database");
|
|
14
|
+
const lead_email_entity_1 = require("../helpers/lead_email.entity");
|
|
15
|
+
const lead_phone_entity_1 = require("../helpers/lead_phone.entity");
|
|
16
|
+
const user_entity_1 = require("../user.entity");
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const contact_entity_1 = require("./contact.entity");
|
|
19
|
+
let Lead = class Lead extends database_1.BaseEntity {
|
|
20
|
+
curp;
|
|
21
|
+
idBitrix;
|
|
22
|
+
cua;
|
|
23
|
+
fullName;
|
|
24
|
+
name;
|
|
25
|
+
lastName;
|
|
26
|
+
secondName;
|
|
27
|
+
photo;
|
|
28
|
+
opportunity;
|
|
29
|
+
post;
|
|
30
|
+
address;
|
|
31
|
+
comments;
|
|
32
|
+
lead;
|
|
33
|
+
export;
|
|
34
|
+
originatorId;
|
|
35
|
+
originId;
|
|
36
|
+
originVersion;
|
|
37
|
+
birthdate;
|
|
38
|
+
honorific;
|
|
39
|
+
hasPhone;
|
|
40
|
+
hasEmail;
|
|
41
|
+
hasImol;
|
|
42
|
+
faceId;
|
|
43
|
+
opened;
|
|
44
|
+
company;
|
|
45
|
+
statusId;
|
|
46
|
+
companyTitle;
|
|
47
|
+
accountCurrencyId;
|
|
48
|
+
title;
|
|
49
|
+
source;
|
|
50
|
+
sourceDescription;
|
|
51
|
+
isReturnCustomer;
|
|
52
|
+
isManualOpportunity;
|
|
53
|
+
assignedBy;
|
|
54
|
+
createdBy;
|
|
55
|
+
observador;
|
|
56
|
+
contact;
|
|
57
|
+
phones;
|
|
58
|
+
emails;
|
|
59
|
+
};
|
|
60
|
+
exports.Lead = Lead;
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Lead.prototype, "curp", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ name: "id_bitrix" }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], Lead.prototype, "idBitrix", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], Lead.prototype, "cua", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ name: "full_name", length: 100, nullable: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Lead.prototype, "fullName", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ name: "name", length: 50, nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], Lead.prototype, "name", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ name: "last_name", length: 50, nullable: true }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], Lead.prototype, "lastName", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ name: "second_name", length: 50, nullable: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], Lead.prototype, "secondName", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], Lead.prototype, "photo", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: "decimal" }),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], Lead.prototype, "opportunity", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], Lead.prototype, "post", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], Lead.prototype, "address", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ name: "comments", type: "text", nullable: true }),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], Lead.prototype, "comments", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ name: "lead", nullable: true }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], Lead.prototype, "lead", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ name: "export", default: false }),
|
|
115
|
+
__metadata("design:type", Boolean)
|
|
116
|
+
], Lead.prototype, "export", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ name: "originator_id", length: 255, nullable: true }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], Lead.prototype, "originatorId", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ name: "origin_id", length: 255, nullable: true }),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], Lead.prototype, "originId", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ name: "origin_version", length: 255, nullable: true }),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], Lead.prototype, "originVersion", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
|
|
131
|
+
__metadata("design:type", Date)
|
|
132
|
+
], Lead.prototype, "birthdate", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, typeorm_1.Column)({ name: "honorific", length: 128, nullable: true }),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], Lead.prototype, "honorific", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ name: "has_phone", default: false }),
|
|
139
|
+
__metadata("design:type", Boolean)
|
|
140
|
+
], Lead.prototype, "hasPhone", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({ name: "has_email", default: false }),
|
|
143
|
+
__metadata("design:type", Boolean)
|
|
144
|
+
], Lead.prototype, "hasEmail", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ name: "has_imol", default: false }),
|
|
147
|
+
__metadata("design:type", Boolean)
|
|
148
|
+
], Lead.prototype, "hasImol", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.Column)({ name: "face_id", nullable: true }),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], Lead.prototype, "faceId", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.Column)({ name: "opened", default: false }),
|
|
155
|
+
__metadata("design:type", Boolean)
|
|
156
|
+
], Lead.prototype, "opened", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.Column)({ name: "company", nullable: true }),
|
|
159
|
+
__metadata("design:type", String)
|
|
160
|
+
], Lead.prototype, "company", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.Column)({ name: "status_id", nullable: true }),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], Lead.prototype, "statusId", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, typeorm_1.Column)({ name: "company_title", length: 255, nullable: true }),
|
|
167
|
+
__metadata("design:type", String)
|
|
168
|
+
], Lead.prototype, "companyTitle", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, typeorm_1.Column)({ name: "account_currency_id", nullable: true }),
|
|
171
|
+
__metadata("design:type", String)
|
|
172
|
+
], Lead.prototype, "accountCurrencyId", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], Lead.prototype, "title", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.Column)({ name: "source", length: 50, nullable: true }),
|
|
179
|
+
__metadata("design:type", String)
|
|
180
|
+
], Lead.prototype, "source", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.Column)({ name: "source_description", type: "text", nullable: true }),
|
|
183
|
+
__metadata("design:type", String)
|
|
184
|
+
], Lead.prototype, "sourceDescription", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, typeorm_1.Column)({ name: "is_return_customer", nullable: true }),
|
|
187
|
+
__metadata("design:type", Boolean)
|
|
188
|
+
], Lead.prototype, "isReturnCustomer", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, typeorm_1.Column)({ name: "is_manual_opportunity", nullable: true }),
|
|
191
|
+
__metadata("design:type", Boolean)
|
|
192
|
+
], Lead.prototype, "isManualOpportunity", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
195
|
+
onDelete: "SET NULL",
|
|
196
|
+
onUpdate: "CASCADE",
|
|
197
|
+
nullable: true,
|
|
198
|
+
}),
|
|
199
|
+
__metadata("design:type", user_entity_1.User)
|
|
200
|
+
], Lead.prototype, "assignedBy", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
203
|
+
onDelete: "SET NULL",
|
|
204
|
+
onUpdate: "CASCADE",
|
|
205
|
+
nullable: true,
|
|
206
|
+
}),
|
|
207
|
+
__metadata("design:type", user_entity_1.User)
|
|
208
|
+
], Lead.prototype, "createdBy", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
211
|
+
onDelete: "SET NULL",
|
|
212
|
+
onUpdate: "CASCADE",
|
|
213
|
+
nullable: true,
|
|
214
|
+
}),
|
|
215
|
+
__metadata("design:type", user_entity_1.User)
|
|
216
|
+
], Lead.prototype, "observador", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, typeorm_1.OneToOne)(() => contact_entity_1.Contact, {
|
|
219
|
+
onDelete: "SET NULL",
|
|
220
|
+
onUpdate: "CASCADE",
|
|
221
|
+
nullable: true,
|
|
222
|
+
}),
|
|
223
|
+
__metadata("design:type", contact_entity_1.Contact)
|
|
224
|
+
], Lead.prototype, "contact", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, typeorm_1.OneToMany)(() => lead_phone_entity_1.LeadPhone, (leadPhone) => leadPhone.lead, {
|
|
227
|
+
onDelete: "CASCADE",
|
|
228
|
+
onUpdate: "CASCADE",
|
|
229
|
+
eager: true,
|
|
230
|
+
}),
|
|
231
|
+
__metadata("design:type", Array)
|
|
232
|
+
], Lead.prototype, "phones", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, typeorm_1.OneToMany)(() => lead_email_entity_1.LeadEmail, (leadEmail) => leadEmail.lead, {
|
|
235
|
+
onDelete: "CASCADE",
|
|
236
|
+
onUpdate: "CASCADE",
|
|
237
|
+
eager: true,
|
|
238
|
+
}),
|
|
239
|
+
__metadata("design:type", Array)
|
|
240
|
+
], Lead.prototype, "emails", void 0);
|
|
241
|
+
exports.Lead = Lead = __decorate([
|
|
242
|
+
(0, typeorm_1.Entity)()
|
|
243
|
+
], Lead);
|
|
244
|
+
//# sourceMappingURL=lead.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lead.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,oEAAyD;AACzD,oEAAyD;AACzD,gDAAsC;AACtC,qCAAyE;AACzE,qDAA2C;AAGpC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;IAElC,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,GAAG,CAAS;IAGZ,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,IAAI,CAAS;IAGb,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAGb,MAAM,CAAU;IAGhB,YAAY,CAAS;IAGrB,QAAQ,CAAS;IAGjB,aAAa,CA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EAAE,CAAC,SAAS,CAAC,IAAI,EAAE;QACzD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;;oCACmB;AAOrB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAS,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE;QACzD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;;oCACmB;eA7IV,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA8IhB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BaseEntity } from "../../common/database";
|
|
2
|
+
import { User } from "../user.entity";
|
|
3
|
+
import { Contact } from "./contact.entity";
|
|
4
|
+
export declare class Poliza extends BaseEntity {
|
|
5
|
+
idBitrix: number;
|
|
6
|
+
noPoliza: string;
|
|
7
|
+
title: string;
|
|
8
|
+
version: string;
|
|
9
|
+
vigenciaDesde: Date;
|
|
10
|
+
vigenciaHasta: Date;
|
|
11
|
+
beginDate: Date;
|
|
12
|
+
closeDate: Date;
|
|
13
|
+
opened?: boolean;
|
|
14
|
+
stageSemantic?: string;
|
|
15
|
+
stage: string;
|
|
16
|
+
isNew: boolean;
|
|
17
|
+
primaNeta?: number;
|
|
18
|
+
recargoFraccionado?: number;
|
|
19
|
+
derechoPoliza?: number;
|
|
20
|
+
iva?: number;
|
|
21
|
+
importePagar?: number;
|
|
22
|
+
isRecurring?: boolean;
|
|
23
|
+
isReturnCustomer?: boolean;
|
|
24
|
+
isRepeatedApproach?: boolean;
|
|
25
|
+
closed?: boolean;
|
|
26
|
+
typeId?: string;
|
|
27
|
+
opportunity?: number;
|
|
28
|
+
isManualOpportunity?: boolean;
|
|
29
|
+
currencyId?: string;
|
|
30
|
+
taxValue?: number;
|
|
31
|
+
opportunityAccount?: number;
|
|
32
|
+
taxValueAccount?: number;
|
|
33
|
+
accountCurrencyId?: string;
|
|
34
|
+
probability?: number;
|
|
35
|
+
comments?: string;
|
|
36
|
+
eventDate?: Date;
|
|
37
|
+
eventId?: string;
|
|
38
|
+
eventDescription?: string;
|
|
39
|
+
exchRate?: number;
|
|
40
|
+
product?: string;
|
|
41
|
+
sourceId: string;
|
|
42
|
+
sourceDescription: string;
|
|
43
|
+
contact: Contact;
|
|
44
|
+
assignedBy?: User;
|
|
45
|
+
createdBy?: User;
|
|
46
|
+
descripcionMovimiento?: string;
|
|
47
|
+
especificacionesPlan: string;
|
|
48
|
+
agenteReclamo?: User;
|
|
49
|
+
agenteReembolso?: User;
|
|
50
|
+
agenteProgramaciones?: User;
|
|
51
|
+
agenteReembolsoSubsecuente?: User;
|
|
52
|
+
agenteRescateFondos?: User;
|
|
53
|
+
agenteSaludGMM?: User;
|
|
54
|
+
agenteVida?: User;
|
|
55
|
+
agenteAutos?: User;
|
|
56
|
+
fechaReferidaPago?: Date;
|
|
57
|
+
modifyBy?: User;
|
|
58
|
+
}
|
|
@@ -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,QAAQ,CAAS;IAIjB,QAAQ,CAAS;IAIjB,KAAK,CAAS;IAId,OAAO,CAAS;IAGhB,aAAa,CAAO;IAGpB,aAAa,CAAO;IAGpB,SAAS,CAAO;IAGhB,SAAS,CAAO;IAGhB,MAAM,CAAW;IAGjB,aAAa,CAAU;IAGvB,KAAK,CAAS;IAGd,KAAK,CAAU;IAGf,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,aAAa,CAAU;IAGvB,GAAG,CAAU;IAGb,YAAY,CAAU;IAGtB,WAAW,CAAW;IAGtB,gBAAgB,CAAW;IAG3B,kBAAkB,CAAW;IAG7B,MAAM,CAAW;IAGjB,MAAM,CAAU;IAGhB,WAAW,CAAU;IAGrB,mBAAmB,CAAW;IAG9B,UAAU,CAAU;IAGpB,QAAQ,CAAU;IAGlB,kBAAkB,CAAU;IAG5B,eAAe,CAAU;IAGzB,iBAAiB,CAAU;IAG3B,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAGlB,SAAS,CAAQ;IAGjB,OAAO,CAAU;IAGjB,gBAAgB,CAAU;IAS1B,QAAQ,CAAU;IAGlB,OAAO,CAAU;IAGjB,QAAQ,CAAS;IAGjB,iBAAiB,CAAS;IAO1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