@cleardu/core 1.0.526 → 1.0.528
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
|
@@ -9,13 +9,11 @@ let LoanContacts = class LoanContacts extends baseModel_1.default {
|
|
|
9
9
|
};
|
|
10
10
|
tslib_1.__decorate([
|
|
11
11
|
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.STRING(100), allowNull: false }),
|
|
12
|
-
(0, sequelize_typescript_1.Index)('idx_loan_contacts_phone_number'),
|
|
13
12
|
tslib_1.__metadata("design:type", String)
|
|
14
13
|
], LoanContacts.prototype, "phoneNumber", void 0);
|
|
15
14
|
tslib_1.__decorate([
|
|
16
15
|
(0, sequelize_typescript_1.ForeignKey)(() => loans_1.default),
|
|
17
16
|
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER }),
|
|
18
|
-
(0, sequelize_typescript_1.Index)('idx_loan_contacts_loanId'),
|
|
19
17
|
tslib_1.__metadata("design:type", Number)
|
|
20
18
|
], LoanContacts.prototype, "loanId", void 0);
|
|
21
19
|
tslib_1.__decorate([
|
|
@@ -27,7 +25,6 @@ tslib_1.__decorate([
|
|
|
27
25
|
type: sequelize_typescript_1.DataType.ENUM(...Object.values(types_1.preferenceTypes)),
|
|
28
26
|
allowNull: true,
|
|
29
27
|
}),
|
|
30
|
-
(0, sequelize_typescript_1.Index)('idx_loan_contacts_number_type'),
|
|
31
28
|
tslib_1.__metadata("design:type", String)
|
|
32
29
|
], LoanContacts.prototype, "numberType", void 0);
|
|
33
30
|
LoanContacts = tslib_1.__decorate([
|
|
@@ -19,26 +19,22 @@ import { preferenceTypes } from '@cleardu/types';
|
|
|
19
19
|
},
|
|
20
20
|
],
|
|
21
21
|
})
|
|
22
|
-
|
|
23
22
|
export default class LoanContacts
|
|
24
23
|
extends BaseModel<ILoanContacts>
|
|
25
24
|
implements ILoanContacts
|
|
26
25
|
{
|
|
27
26
|
@Column({ type: DataType.STRING(100), allowNull: false })
|
|
28
|
-
@Index('idx_loan_contacts_phone_number')
|
|
29
27
|
declare phoneNumber: string;
|
|
30
28
|
|
|
31
29
|
@ForeignKey(() => Loans)
|
|
32
30
|
@Column({ type: DataType.INTEGER })
|
|
33
|
-
@Index('idx_loan_contacts_loanId')
|
|
34
31
|
public loanId: number;
|
|
35
32
|
@BelongsTo(() => Loans)
|
|
36
33
|
loanContactsPhoneNumber: Loans;
|
|
37
34
|
|
|
38
35
|
@Column({
|
|
39
|
-
type: DataType.ENUM(...Object.values(preferenceTypes) as string[]),
|
|
36
|
+
type: DataType.ENUM(...(Object.values(preferenceTypes) as string[])),
|
|
40
37
|
allowNull: true,
|
|
41
38
|
})
|
|
42
|
-
@Index('idx_loan_contacts_number_type')
|
|
43
39
|
public numberType: preferenceTypes;
|
|
44
40
|
}
|
|
@@ -10,7 +10,6 @@ let LoanSummary = class LoanSummary extends baseModel_1.default {
|
|
|
10
10
|
tslib_1.__decorate([
|
|
11
11
|
(0, sequelize_typescript_1.ForeignKey)(() => loans_1.default),
|
|
12
12
|
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER, allowNull: true, unique: true }),
|
|
13
|
-
(0, sequelize_typescript_1.Index)({ name: 'uniq_loan_number_type' }),
|
|
14
13
|
tslib_1.__metadata("design:type", Number)
|
|
15
14
|
], LoanSummary.prototype, "loanId", void 0);
|
|
16
15
|
tslib_1.__decorate([
|
|
@@ -19,7 +18,6 @@ tslib_1.__decorate([
|
|
|
19
18
|
], LoanSummary.prototype, "loanSummary", void 0);
|
|
20
19
|
tslib_1.__decorate([
|
|
21
20
|
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.ENUM(...Object.values(types_1.autoCallableNumberTypes))),
|
|
22
|
-
(0, sequelize_typescript_1.Index)({ name: 'uniq_loan_number_type' }),
|
|
23
21
|
tslib_1.__metadata("design:type", String)
|
|
24
22
|
], LoanSummary.prototype, "leadNumberType", void 0);
|
|
25
23
|
tslib_1.__decorate([
|
|
@@ -17,13 +17,11 @@ export default class LoanSummary
|
|
|
17
17
|
{
|
|
18
18
|
@ForeignKey(() => Loans)
|
|
19
19
|
@Column({ type: DataType.INTEGER, allowNull: true, unique: true })
|
|
20
|
-
@Index({ name: 'uniq_loan_number_type' })
|
|
21
20
|
loanId: number;
|
|
22
21
|
@BelongsTo(() => Loans)
|
|
23
22
|
loanSummary: Loans;
|
|
24
23
|
|
|
25
24
|
@Column(DataType.ENUM(...Object.values(autoCallableNumberTypes)))
|
|
26
|
-
@Index({ name: 'uniq_loan_number_type'})
|
|
27
25
|
public leadNumberType: autoCallableNumberTypes;
|
|
28
26
|
|
|
29
27
|
@Column({ type: DataType.BOOLEAN, defaultValue: false })
|