@cleardu/core 1.0.531 → 1.0.534
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 +1 -1
- package/schemas/borrowersDispositions/index.js +2 -2
- package/schemas/borrowersDispositions/index.ts +2 -2
- package/schemas/cdr/index.js +1 -1
- package/schemas/cdr/index.ts +1 -1
- package/schemas/loans/index.d.ts +1 -0
- package/schemas/loans/index.js +5 -0
- package/schemas/loans/index.ts +4 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -60,8 +60,8 @@ tslib_1.__decorate([
|
|
|
60
60
|
], BorrowersDispositions.prototype, "comments", void 0);
|
|
61
61
|
tslib_1.__decorate([
|
|
62
62
|
(0, sequelize_typescript_1.ForeignKey)(() => cdr_1.default),
|
|
63
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.
|
|
64
|
-
(0, sequelize_typescript_1.Index)('
|
|
63
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUIDV4, allowNull: true }),
|
|
64
|
+
(0, sequelize_typescript_1.Index)('idx_callRefNo_uuId'),
|
|
65
65
|
tslib_1.__metadata("design:type", String)
|
|
66
66
|
], BorrowersDispositions.prototype, "callRefNo", void 0);
|
|
67
67
|
tslib_1.__decorate([
|
|
@@ -57,8 +57,8 @@ export default class BorrowersDispositions
|
|
|
57
57
|
public comments: string;
|
|
58
58
|
|
|
59
59
|
@ForeignKey(() => CdrSchema)
|
|
60
|
-
@Column({ type: DataType.
|
|
61
|
-
@Index('
|
|
60
|
+
@Column({ type: DataType.UUIDV4, allowNull: true })
|
|
61
|
+
@Index('idx_callRefNo_uuId')
|
|
62
62
|
public callRefNo: string;
|
|
63
63
|
@BelongsTo(() => CdrSchema, {
|
|
64
64
|
targetKey: 'referenceId',
|
package/schemas/cdr/index.js
CHANGED
|
@@ -77,7 +77,7 @@ tslib_1.__decorate([
|
|
|
77
77
|
tslib_1.__metadata("design:type", Number)
|
|
78
78
|
], CdrSchema.prototype, "loanId", void 0);
|
|
79
79
|
tslib_1.__decorate([
|
|
80
|
-
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.
|
|
80
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.UUIDV4, unique: true }),
|
|
81
81
|
tslib_1.__metadata("design:type", String)
|
|
82
82
|
], CdrSchema.prototype, "referenceId", void 0);
|
|
83
83
|
tslib_1.__decorate([
|
package/schemas/cdr/index.ts
CHANGED
|
@@ -127,7 +127,7 @@ export default class CdrSchema extends BaseModel<ICdr> implements ICdr {
|
|
|
127
127
|
@Column(DataType.INTEGER)
|
|
128
128
|
public loanId: number;
|
|
129
129
|
|
|
130
|
-
@Column({ type: DataType.
|
|
130
|
+
@Column({ type: DataType.UUIDV4, unique: true })
|
|
131
131
|
public referenceId: string;
|
|
132
132
|
|
|
133
133
|
@Column(DataType.STRING(50))
|
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: {
|
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: {
|
|
@@ -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
|
}
|