@cleardu/core 1.0.530 → 1.0.532
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/package.json
CHANGED
|
@@ -39,7 +39,7 @@ tslib_1.__decorate([
|
|
|
39
39
|
tslib_1.__metadata("design:type", users_1.default)
|
|
40
40
|
], LoanMappings.prototype, "mappingUser", void 0);
|
|
41
41
|
tslib_1.__decorate([
|
|
42
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN,
|
|
42
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.BOOLEAN, defaultValue: true }),
|
|
43
43
|
tslib_1.__metadata("design:type", Boolean)
|
|
44
44
|
], LoanMappings.prototype, "isLead", void 0);
|
|
45
45
|
LoanMappings = tslib_1.__decorate([
|
package/schemas/loans/index.d.ts
CHANGED
package/schemas/loans/index.js
CHANGED
|
@@ -32,6 +32,7 @@ const dncNumbers_1 = require("../dncNumbers");
|
|
|
32
32
|
const allocationTypes_1 = require("../allocationTypes");
|
|
33
33
|
const clientLoanContacts_1 = require("../clientLoanContacts");
|
|
34
34
|
const loanSummary_1 = require("../loanSummary");
|
|
35
|
+
const loanContacts_1 = require("../loanContacts");
|
|
35
36
|
let Loans = class Loans extends baseModel_1.default {
|
|
36
37
|
};
|
|
37
38
|
tslib_1.__decorate([
|
|
@@ -421,6 +422,10 @@ tslib_1.__decorate([
|
|
|
421
422
|
(0, sequelize_typescript_1.HasMany)(() => loanSummary_1.default, 'loanId'),
|
|
422
423
|
tslib_1.__metadata("design:type", Array)
|
|
423
424
|
], Loans.prototype, "loanSummary", void 0);
|
|
425
|
+
tslib_1.__decorate([
|
|
426
|
+
(0, sequelize_typescript_1.HasMany)(() => loanContacts_1.default, 'loanId'),
|
|
427
|
+
tslib_1.__metadata("design:type", Array)
|
|
428
|
+
], Loans.prototype, "loansContacts", void 0);
|
|
424
429
|
Loans = tslib_1.__decorate([
|
|
425
430
|
(0, sequelize_typescript_1.Scopes)(() => ({
|
|
426
431
|
defaultScope: {
|
|
@@ -597,7 +602,7 @@ Loans = tslib_1.__decorate([
|
|
|
597
602
|
},
|
|
598
603
|
{
|
|
599
604
|
model: loanMappings_1.default,
|
|
600
|
-
attributes: ['id', 'userId', 'campaignId'],
|
|
605
|
+
attributes: ['id', 'userId', 'campaignId', 'isLead'],
|
|
601
606
|
required: isRequired,
|
|
602
607
|
where: loanMappingCondition,
|
|
603
608
|
include: [
|
package/schemas/loans/index.ts
CHANGED
|
@@ -41,6 +41,7 @@ import DNCNumbers from '../dncNumbers';
|
|
|
41
41
|
import AllocationTypes from '../allocationTypes';
|
|
42
42
|
import ClientLoanContacts from '../clientLoanContacts';
|
|
43
43
|
import LoanSummary from '../loanSummary';
|
|
44
|
+
import LoanContacts from '../loanContacts';
|
|
44
45
|
|
|
45
46
|
@Scopes(() => ({
|
|
46
47
|
defaultScope: {
|
|
@@ -223,7 +224,7 @@ import LoanSummary from '../loanSummary';
|
|
|
223
224
|
},
|
|
224
225
|
{
|
|
225
226
|
model: LoanMappings,
|
|
226
|
-
attributes: ['id', 'userId', 'campaignId'],
|
|
227
|
+
attributes: ['id', 'userId', 'campaignId', 'isLead'],
|
|
227
228
|
required: isRequired,
|
|
228
229
|
where: loanMappingCondition,
|
|
229
230
|
include: [
|
|
@@ -613,4 +614,7 @@ export default class Loans extends BaseModel<ILoans> implements ILoans {
|
|
|
613
614
|
|
|
614
615
|
@HasMany(() => LoanSummary, 'loanId')
|
|
615
616
|
loanSummary: LoanSummary[];
|
|
617
|
+
|
|
618
|
+
@HasMany(() => LoanContacts, 'loanId')
|
|
619
|
+
loansContacts: DNCNumbers[];
|
|
616
620
|
}
|