gemcap-be-common 1.3.2 → 1.3.4
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/db/collaterals.db.d.ts +1 -1
- package/models/AccountPayableItem.model.d.ts +6 -6
- package/models/AllocatedBankTransaction.model.d.ts +3 -0
- package/models/AllocatedBankTransaction.model.js +3 -3
- package/models/AllocatedBankTransaction.model.ts +1 -1
- package/models/AllocatedData.model.d.ts +3 -0
- package/models/AllocatedData.model.js +3 -3
- package/models/AllocatedData.model.ts +1 -1
- package/models/AvilabilitySignedData.model.d.ts +3 -0
- package/models/AvilabilitySignedData.model.js +4 -4
- package/models/AvilabilitySignedData.model.ts +2 -2
- package/models/BBCDate.model.js +1 -1
- package/models/BBCDate.model.ts +2 -1
- package/models/BBCSheet.model.d.ts +3 -3
- package/models/BBCSheet.model.js +2 -2
- package/models/BBCSheet.model.ts +2 -2
- package/models/Banks.model.d.ts +6 -6
- package/models/Borrower.model.d.ts +3 -3
- package/models/BorrowerCompliance.model.d.ts +188 -0
- package/models/BorrowerCompliance.model.js +4 -4
- package/models/BorrowerCompliance.model.ts +2 -2
- package/models/BorrowerData.model.d.ts +6 -6
- package/models/BorrowerDataInsurance.model.d.ts +3 -3
- package/models/BorrowerSettings.model.d.ts +18 -18
- package/models/BorrowerSummary.model.d.ts +3 -0
- package/models/BorrowerSummary.model.js +3 -3
- package/models/BorrowerSummary.model.ts +1 -1
- package/models/CalandarDay.model.d.ts +35 -0
- package/models/CalandarDay.model.js +3 -2
- package/models/CalandarDay.model.ts +1 -1
- package/models/CashAllocationProduct.model.d.ts +3 -0
- package/models/CashAllocationProduct.model.js +3 -3
- package/models/CashAllocationProduct.model.ts +1 -1
- package/models/CashAllocationReference.model.d.ts +3 -0
- package/models/CashAllocationReference.model.js +3 -3
- package/models/CashAllocationReference.model.ts +1 -1
- package/models/CollateralAdjustment.model.d.ts +3 -0
- package/models/CollateralAdjustment.model.js +4 -4
- package/models/CollateralAdjustment.model.ts +2 -2
- package/models/Company.model.d.ts +3 -0
- package/models/Company.model.js +3 -3
- package/models/Company.model.ts +1 -1
- package/models/ComplianceItem.model.js +2 -1
- package/models/ComplianceItem.model.ts +3 -1
- package/models/CustomerAPGroup.model.d.ts +29 -0
- package/models/CustomerAPGroup.model.js +4 -3
- package/models/CustomerAPGroup.model.ts +2 -2
- package/models/DeletedRecords.model.js +2 -1
- package/models/DeletedRecords.model.ts +3 -1
- package/models/Equipment.model.d.ts +170 -0
- package/models/Equipment.model.js +5 -4
- package/models/Equipment.model.ts +2 -2
- package/models/FinancialCompliance.model.d.ts +51 -0
- package/models/FinancialCompliance.model.js +4 -3
- package/models/FinancialCompliance.model.ts +2 -2
- package/models/FinancialComplianceBorrower.model.d.ts +51 -0
- package/models/FinancialComplianceBorrower.model.js +4 -3
- package/models/FinancialComplianceBorrower.model.ts +2 -2
- package/models/FinancialIndexes.model.d.ts +29 -0
- package/models/FinancialIndexes.model.js +3 -3
- package/models/FinancialIndexes.model.ts +2 -2
- package/models/FinancialSpreading.model.d.ts +3 -0
- package/models/FinancialSpreading.model.js +4 -4
- package/models/FinancialSpreading.model.ts +2 -2
- package/models/FinancialSpreadingSheet.model.d.ts +3 -0
- package/models/FinancialSpreadingSheet.model.js +4 -4
- package/models/FinancialSpreadingSheet.model.ts +2 -2
- package/models/Globals.model.js +1 -1
- package/models/Globals.model.ts +2 -1
- package/models/Inventory.model.d.ts +21 -21
- package/models/Inventory.model.js +2 -1
- package/models/Inventory.model.ts +3 -1
- package/models/InventoryAvailability.model.d.ts +21 -21
- package/models/InventoryAvailability.model.js +2 -2
- package/models/InventoryAvailability.model.ts +2 -2
- package/models/InventoryAvailabilityItem.model.d.ts +3 -3
- package/models/InventoryAvailabilityItem.model.js +1 -1
- package/models/InventoryAvailabilityItem.model.ts +2 -2
- package/models/InventoryItem.model.d.ts +24 -24
- package/models/InventoryItem.model.js +1 -1
- package/models/InventoryItem.model.ts +2 -2
- package/models/InventoryManualEntry.model.d.ts +9 -9
- package/models/LoanBroker.model.d.ts +3 -3
- package/models/LoanCharges.model.d.ts +9 -9
- package/models/LoanPayment.model.d.ts +3 -3
- package/models/LoanPayment.model.js +1 -1
- package/models/LoanPayment.model.ts +2 -1
- package/models/LoanProducts.model.d.ts +9 -9
- package/models/LoanStatementStatus.model.d.ts +38 -0
- package/models/LoanStatementStatus.model.js +3 -3
- package/models/LoanStatementStatus.model.ts +2 -2
- package/models/LoanStatementTransaction.model.d.ts +7 -7
- package/models/LoanStatementTransaction.model.js +1 -1
- package/models/LoanStatementTransaction.model.ts +3 -3
- package/models/LoanTransaction.model.js +1 -1
- package/models/LoanTransaction.model.ts +2 -2
- package/models/LoanTransactionFile.model.d.ts +38 -0
- package/models/LoanTransactionFile.model.js +3 -3
- package/models/LoanTransactionFile.model.ts +2 -2
- package/models/MappedGroup.model.d.ts +32 -0
- package/models/MappedGroup.model.js +4 -3
- package/models/MappedGroup.model.ts +1 -1
- package/models/MicroserviceTask.model.d.ts +3 -3
- package/models/MonthEndData.Model.d.ts +3 -0
- package/models/MonthEndData.Model.js +3 -3
- package/models/MonthEndData.Model.ts +2 -2
- package/models/OrganizationEmails.model.d.ts +3 -0
- package/models/OrganizationEmails.model.js +3 -3
- package/models/OrganizationEmails.model.ts +1 -1
- package/models/PostponedTransactions.model.d.ts +3 -3
- package/models/PostponedTransactions.model.js +1 -1
- package/models/PostponedTransactions.model.ts +2 -2
- package/models/ProspectIndustry.model.d.ts +4 -1
- package/models/ProspectIndustry.model.js +4 -4
- package/models/ProspectIndustry.model.ts +2 -2
- package/models/QueryResult.model.js +2 -2
- package/models/QueryResult.model.ts +2 -2
- package/models/QuickbooksAccount.model.d.ts +3 -0
- package/models/QuickbooksAccount.model.js +3 -3
- package/models/QuickbooksAccount.model.ts +1 -1
- package/models/Receivable.model.d.ts +9 -9
- package/models/Receivable.model.js +2 -1
- package/models/Receivable.model.ts +3 -1
- package/models/ReceivableAvailability.model.d.ts +27 -27
- package/models/ReceivableAvailabilityItem.model.d.ts +57 -57
- package/models/ReceivableItem.model.d.ts +6 -6
- package/models/ReceivableItem.model.js +1 -1
- package/models/ReceivableItem.model.ts +2 -2
- package/models/Reserve.model.d.ts +122 -0
- package/models/Reserve.model.js +5 -4
- package/models/Reserve.model.ts +3 -2
- package/models/TermLoan.model.d.ts +6 -6
- package/models/TermLoanCalculated.model.d.ts +9 -9
- package/models/TransactionAttachedFile.Model.d.ts +35 -0
- package/models/TransactionAttachedFile.Model.js +3 -3
- package/models/TransactionAttachedFile.Model.ts +1 -1
- package/models/UploadedBankTransaction.model.d.ts +3 -0
- package/models/UploadedBankTransaction.model.js +3 -3
- package/models/UploadedBankTransaction.model.ts +1 -1
- package/models/UploadedData.model.d.ts +29 -0
- package/models/UploadedData.model.js +4 -3
- package/models/UploadedData.model.ts +1 -1
- package/models/UploadedFile.model.d.ts +38 -0
- package/models/UploadedFile.model.js +4 -3
- package/models/UploadedFile.model.ts +2 -2
- package/models/UploadedSheet.model.d.ts +29 -0
- package/models/UploadedSheet.model.js +4 -3
- package/models/UploadedSheet.model.ts +2 -2
- package/models/User.model.js +2 -1
- package/models/User.model.ts +3 -1
- package/models/UserLog.model.js +1 -1
- package/models/UserLog.model.ts +1 -1
- package/models/UserMobileAccess.model.d.ts +3 -0
- package/models/UserMobileAccess.model.js +3 -3
- package/models/UserMobileAccess.model.ts +1 -1
- package/models/_index.d.ts +75 -0
- package/models/_index.js +166 -0
- package/models/_index.ts +164 -0
- package/models/_models.d.ts +2 -0
- package/models/_models.js +3 -1
- package/models/_models.ts +3 -1
- package/package.json +2 -2
- package/services/brokers.service.d.ts +2 -2
- package/services/loan-transactions.service.d.ts +1 -1
- package/services/loan-transactions.service.js +1 -1
- package/services/loan-transactions.service.ts +1 -1
- package/services/users.service.d.ts +2 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -64,12 +64,12 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
64
64
|
createdAt: NativeDate;
|
|
65
65
|
updatedAt: NativeDate;
|
|
66
66
|
} & {
|
|
67
|
-
order: number;
|
|
68
67
|
type: string;
|
|
69
68
|
name: string;
|
|
70
|
-
|
|
69
|
+
order: number;
|
|
71
70
|
active: boolean;
|
|
72
71
|
borrowerId: mongoose.Types.ObjectId;
|
|
72
|
+
code: string;
|
|
73
73
|
startDate: Date;
|
|
74
74
|
maturityDate: Date;
|
|
75
75
|
commitment: number;
|
|
@@ -78,24 +78,24 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
78
78
|
isParticipant: boolean;
|
|
79
79
|
isDefaultPaymentOrder: boolean;
|
|
80
80
|
__v?: number;
|
|
81
|
+
settlementCode?: string;
|
|
81
82
|
masterCode?: string;
|
|
82
83
|
payoffDate?: Date;
|
|
83
84
|
minPercent?: number;
|
|
84
85
|
maxPercent?: number;
|
|
85
86
|
prepaymentDate?: Date;
|
|
86
87
|
prepaymentTerms?: string;
|
|
87
|
-
settlementCode?: string;
|
|
88
88
|
deactivationDate?: Date;
|
|
89
89
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
90
90
|
createdAt: NativeDate;
|
|
91
91
|
updatedAt: NativeDate;
|
|
92
92
|
} & {
|
|
93
|
-
order: number;
|
|
94
93
|
type: string;
|
|
95
94
|
name: string;
|
|
96
|
-
|
|
95
|
+
order: number;
|
|
97
96
|
active: boolean;
|
|
98
97
|
borrowerId: mongoose.Types.ObjectId;
|
|
98
|
+
code: string;
|
|
99
99
|
startDate: Date;
|
|
100
100
|
maturityDate: Date;
|
|
101
101
|
commitment: number;
|
|
@@ -104,24 +104,24 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
104
104
|
isParticipant: boolean;
|
|
105
105
|
isDefaultPaymentOrder: boolean;
|
|
106
106
|
__v?: number;
|
|
107
|
+
settlementCode?: string;
|
|
107
108
|
masterCode?: string;
|
|
108
109
|
payoffDate?: Date;
|
|
109
110
|
minPercent?: number;
|
|
110
111
|
maxPercent?: number;
|
|
111
112
|
prepaymentDate?: Date;
|
|
112
113
|
prepaymentTerms?: string;
|
|
113
|
-
settlementCode?: string;
|
|
114
114
|
deactivationDate?: Date;
|
|
115
115
|
}>> & mongoose.FlatRecord<{
|
|
116
116
|
createdAt: NativeDate;
|
|
117
117
|
updatedAt: NativeDate;
|
|
118
118
|
} & {
|
|
119
|
-
order: number;
|
|
120
119
|
type: string;
|
|
121
120
|
name: string;
|
|
122
|
-
|
|
121
|
+
order: number;
|
|
123
122
|
active: boolean;
|
|
124
123
|
borrowerId: mongoose.Types.ObjectId;
|
|
124
|
+
code: string;
|
|
125
125
|
startDate: Date;
|
|
126
126
|
maturityDate: Date;
|
|
127
127
|
commitment: number;
|
|
@@ -130,13 +130,13 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
130
130
|
isParticipant: boolean;
|
|
131
131
|
isDefaultPaymentOrder: boolean;
|
|
132
132
|
__v?: number;
|
|
133
|
+
settlementCode?: string;
|
|
133
134
|
masterCode?: string;
|
|
134
135
|
payoffDate?: Date;
|
|
135
136
|
minPercent?: number;
|
|
136
137
|
maxPercent?: number;
|
|
137
138
|
prepaymentDate?: Date;
|
|
138
139
|
prepaymentTerms?: string;
|
|
139
|
-
settlementCode?: string;
|
|
140
140
|
deactivationDate?: Date;
|
|
141
141
|
}> & {
|
|
142
142
|
_id: mongoose.Types.ObjectId;
|
|
@@ -32,4 +32,42 @@ export interface ILoanStatementStatus extends ISelectedMonth {
|
|
|
32
32
|
}
|
|
33
33
|
export interface ILoanStatementStatusDoc extends ILoanStatementStatus, Document {
|
|
34
34
|
}
|
|
35
|
+
export declare const LoanStatementStatusSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
36
|
+
timestamps: true;
|
|
37
|
+
}, {
|
|
38
|
+
createdAt: NativeDate;
|
|
39
|
+
updatedAt: NativeDate;
|
|
40
|
+
} & {
|
|
41
|
+
productId: mongoose.Types.ObjectId;
|
|
42
|
+
year: number;
|
|
43
|
+
month: number;
|
|
44
|
+
__v?: number;
|
|
45
|
+
actual?: boolean;
|
|
46
|
+
locked?: boolean;
|
|
47
|
+
lastCalculated?: Date;
|
|
48
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
49
|
+
createdAt: NativeDate;
|
|
50
|
+
updatedAt: NativeDate;
|
|
51
|
+
} & {
|
|
52
|
+
productId: mongoose.Types.ObjectId;
|
|
53
|
+
year: number;
|
|
54
|
+
month: number;
|
|
55
|
+
__v?: number;
|
|
56
|
+
actual?: boolean;
|
|
57
|
+
locked?: boolean;
|
|
58
|
+
lastCalculated?: Date;
|
|
59
|
+
}>> & mongoose.FlatRecord<{
|
|
60
|
+
createdAt: NativeDate;
|
|
61
|
+
updatedAt: NativeDate;
|
|
62
|
+
} & {
|
|
63
|
+
productId: mongoose.Types.ObjectId;
|
|
64
|
+
year: number;
|
|
65
|
+
month: number;
|
|
66
|
+
__v?: number;
|
|
67
|
+
actual?: boolean;
|
|
68
|
+
locked?: boolean;
|
|
69
|
+
lastCalculated?: Date;
|
|
70
|
+
}> & {
|
|
71
|
+
_id: mongoose.Types.ObjectId;
|
|
72
|
+
}>;
|
|
35
73
|
export declare const LoanStatementStatusModel: mongoose.Model<ILoanStatementStatusDoc>;
|
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LoanStatementStatusModel = void 0;
|
|
6
|
+
exports.LoanStatementStatusModel = exports.LoanStatementStatusSchema = void 0;
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
const _models_1 = require("./_models");
|
|
9
|
-
|
|
9
|
+
exports.LoanStatementStatusSchema = new mongoose_1.default.Schema({
|
|
10
10
|
year: {
|
|
11
11
|
type: Number,
|
|
12
12
|
required: true,
|
|
@@ -31,4 +31,4 @@ const LoanStatementStatusSchema = new mongoose_1.default.Schema({
|
|
|
31
31
|
},
|
|
32
32
|
__v: { type: Number, select: false },
|
|
33
33
|
}, { timestamps: true });
|
|
34
|
-
exports.LoanStatementStatusModel = mongoose_1.default.model(_models_1.MODEL_NAMES.loanStatementStatus, LoanStatementStatusSchema);
|
|
34
|
+
exports.LoanStatementStatusModel = mongoose_1.default.model(_models_1.MODEL_NAMES.loanStatementStatus, exports.LoanStatementStatusSchema);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import mongoose, { Document } from 'mongoose';
|
|
2
2
|
|
|
3
|
-
import { ISelectedMonth } from '../helpers/date.helper';
|
|
4
3
|
import { MODEL_NAMES } from './_models';
|
|
4
|
+
import { ISelectedMonth } from '../helpers/date.helper';
|
|
5
5
|
|
|
6
6
|
export interface ILoanStatementStatus extends ISelectedMonth {
|
|
7
7
|
productId: mongoose.Types.ObjectId;
|
|
@@ -13,7 +13,7 @@ export interface ILoanStatementStatus extends ISelectedMonth {
|
|
|
13
13
|
export interface ILoanStatementStatusDoc extends ILoanStatementStatus, Document {
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
const LoanStatementStatusSchema = new mongoose.Schema(
|
|
16
|
+
export const LoanStatementStatusSchema = new mongoose.Schema(
|
|
17
17
|
{
|
|
18
18
|
year: {
|
|
19
19
|
type: Number,
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import mongoose, { Document } from 'mongoose';
|
|
26
|
-
import { ILoanChargeDoc } from './LoanCharges.model';
|
|
27
26
|
import dayjs from 'dayjs';
|
|
27
|
+
import { ILoanChargeDoc } from './LoanCharges.model';
|
|
28
28
|
export interface IStatementPeriod {
|
|
29
29
|
start: dayjs.Dayjs;
|
|
30
30
|
end: dayjs.Dayjs;
|
|
@@ -60,14 +60,14 @@ export declare const LoanStatementSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
60
60
|
} & {
|
|
61
61
|
date: Date;
|
|
62
62
|
order: number;
|
|
63
|
-
chargeId: mongoose.Types.ObjectId;
|
|
64
63
|
amount: number;
|
|
64
|
+
chargeId: mongoose.Types.ObjectId;
|
|
65
65
|
isSystem: boolean;
|
|
66
66
|
__v?: number;
|
|
67
|
+
memo?: string;
|
|
67
68
|
settlementCode?: string;
|
|
68
69
|
amountPaid?: number;
|
|
69
70
|
balance?: number;
|
|
70
|
-
memo?: string;
|
|
71
71
|
userId?: mongoose.Types.ObjectId;
|
|
72
72
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
73
73
|
createdAt: NativeDate;
|
|
@@ -75,14 +75,14 @@ export declare const LoanStatementSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
75
75
|
} & {
|
|
76
76
|
date: Date;
|
|
77
77
|
order: number;
|
|
78
|
-
chargeId: mongoose.Types.ObjectId;
|
|
79
78
|
amount: number;
|
|
79
|
+
chargeId: mongoose.Types.ObjectId;
|
|
80
80
|
isSystem: boolean;
|
|
81
81
|
__v?: number;
|
|
82
|
+
memo?: string;
|
|
82
83
|
settlementCode?: string;
|
|
83
84
|
amountPaid?: number;
|
|
84
85
|
balance?: number;
|
|
85
|
-
memo?: string;
|
|
86
86
|
userId?: mongoose.Types.ObjectId;
|
|
87
87
|
}>> & mongoose.FlatRecord<{
|
|
88
88
|
createdAt: NativeDate;
|
|
@@ -90,14 +90,14 @@ export declare const LoanStatementSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
90
90
|
} & {
|
|
91
91
|
date: Date;
|
|
92
92
|
order: number;
|
|
93
|
-
chargeId: mongoose.Types.ObjectId;
|
|
94
93
|
amount: number;
|
|
94
|
+
chargeId: mongoose.Types.ObjectId;
|
|
95
95
|
isSystem: boolean;
|
|
96
96
|
__v?: number;
|
|
97
|
+
memo?: string;
|
|
97
98
|
settlementCode?: string;
|
|
98
99
|
amountPaid?: number;
|
|
99
100
|
balance?: number;
|
|
100
|
-
memo?: string;
|
|
101
101
|
userId?: mongoose.Types.ObjectId;
|
|
102
102
|
}> & {
|
|
103
103
|
_id: mongoose.Types.ObjectId;
|
|
@@ -61,4 +61,4 @@ exports.LoanStatementSchema = new mongoose_1.default.Schema({
|
|
|
61
61
|
},
|
|
62
62
|
__v: { type: Number, select: false },
|
|
63
63
|
}, { timestamps: true });
|
|
64
|
-
exports.LoanStatementTransactionModel = mongoose_1.default.model(
|
|
64
|
+
exports.LoanStatementTransactionModel = mongoose_1.default.model(_models_1.MODEL_NAMES.loanStatements, exports.LoanStatementSchema);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import mongoose, { Document } from 'mongoose';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
2
3
|
|
|
3
|
-
import { ILoanChargeDoc } from './LoanCharges.model';
|
|
4
4
|
import { MODEL_NAMES } from './_models';
|
|
5
|
-
import
|
|
5
|
+
import { ILoanChargeDoc } from './LoanCharges.model';
|
|
6
6
|
|
|
7
7
|
export interface IStatementPeriod {
|
|
8
8
|
start: dayjs.Dayjs;
|
|
@@ -96,4 +96,4 @@ export const LoanStatementSchema = new mongoose.Schema(
|
|
|
96
96
|
{ timestamps: true },
|
|
97
97
|
);
|
|
98
98
|
|
|
99
|
-
export const LoanStatementTransactionModel: mongoose.Model<ILoanStatementTransactionDoc> = mongoose.model<ILoanStatementTransactionDoc>(
|
|
99
|
+
export const LoanStatementTransactionModel: mongoose.Model<ILoanStatementTransactionDoc> = mongoose.model<ILoanStatementTransactionDoc>(MODEL_NAMES.loanStatements, LoanStatementSchema);
|
|
@@ -161,4 +161,4 @@ exports.LoanTransactionSchema.pre(/^(updateOne|updateMany|findOneAndUpdate)/, as
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
|
-
exports.LoanTransaction = mongoose_1.default.model(
|
|
164
|
+
exports.LoanTransaction = mongoose_1.default.model(_models_1.MODEL_NAMES.loanTransactions, exports.LoanTransactionSchema);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import mongoose, { Document, Model } from 'mongoose';
|
|
2
2
|
|
|
3
|
-
import { ILoanProductDoc } from './LoanProducts.model';
|
|
4
3
|
import { MODEL_NAMES } from './_models';
|
|
4
|
+
import { ILoanProductDoc } from './LoanProducts.model';
|
|
5
5
|
import { ELogActionType, ELogType } from './UserLog.model';
|
|
6
6
|
import { IBankDoc } from './Banks.model';
|
|
7
7
|
import { DeletedRecord } from './DeletedRecords.model';
|
|
@@ -229,4 +229,4 @@ LoanTransactionSchema.pre(/^(updateOne|updateMany|findOneAndUpdate)/, async func
|
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
|
|
232
|
-
export const LoanTransaction: ILoanTransactionModel = mongoose.model<ILoanTransactionDoc, ILoanTransactionModel>(
|
|
232
|
+
export const LoanTransaction: ILoanTransactionModel = mongoose.model<ILoanTransactionDoc, ILoanTransactionModel>(MODEL_NAMES.loanTransactions, LoanTransactionSchema);
|
|
@@ -37,5 +37,43 @@ export interface ILoanTransactionFile {
|
|
|
37
37
|
}
|
|
38
38
|
export interface ILoanTransactionFileDoc extends ILoanTransactionFile, Document, IDateFields {
|
|
39
39
|
}
|
|
40
|
+
export declare const LoanTransactionFileSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
41
|
+
timestamps: true;
|
|
42
|
+
}, {
|
|
43
|
+
createdAt: NativeDate;
|
|
44
|
+
updatedAt: NativeDate;
|
|
45
|
+
} & {
|
|
46
|
+
fileName: string;
|
|
47
|
+
sheetName: string;
|
|
48
|
+
effectiveDate: string;
|
|
49
|
+
transactionsId: mongoose.Types.ObjectId[];
|
|
50
|
+
statementIds: mongoose.Types.ObjectId[];
|
|
51
|
+
__v?: number;
|
|
52
|
+
userUploaded?: string;
|
|
53
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
54
|
+
createdAt: NativeDate;
|
|
55
|
+
updatedAt: NativeDate;
|
|
56
|
+
} & {
|
|
57
|
+
fileName: string;
|
|
58
|
+
sheetName: string;
|
|
59
|
+
effectiveDate: string;
|
|
60
|
+
transactionsId: mongoose.Types.ObjectId[];
|
|
61
|
+
statementIds: mongoose.Types.ObjectId[];
|
|
62
|
+
__v?: number;
|
|
63
|
+
userUploaded?: string;
|
|
64
|
+
}>> & mongoose.FlatRecord<{
|
|
65
|
+
createdAt: NativeDate;
|
|
66
|
+
updatedAt: NativeDate;
|
|
67
|
+
} & {
|
|
68
|
+
fileName: string;
|
|
69
|
+
sheetName: string;
|
|
70
|
+
effectiveDate: string;
|
|
71
|
+
transactionsId: mongoose.Types.ObjectId[];
|
|
72
|
+
statementIds: mongoose.Types.ObjectId[];
|
|
73
|
+
__v?: number;
|
|
74
|
+
userUploaded?: string;
|
|
75
|
+
}> & {
|
|
76
|
+
_id: mongoose.Types.ObjectId;
|
|
77
|
+
}>;
|
|
40
78
|
export declare const LoanTransactionFileModel: mongoose.Model<ILoanTransactionFileDoc>;
|
|
41
79
|
export {};
|
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LoanTransactionFileModel = void 0;
|
|
6
|
+
exports.LoanTransactionFileModel = exports.LoanTransactionFileSchema = void 0;
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
const _models_1 = require("./_models");
|
|
9
|
-
|
|
9
|
+
exports.LoanTransactionFileSchema = new mongoose_1.default.Schema({
|
|
10
10
|
userUploaded: {
|
|
11
11
|
type: String,
|
|
12
12
|
trim: true,
|
|
@@ -41,4 +41,4 @@ const ILoanTransactionFileSchema = new mongoose_1.default.Schema({
|
|
|
41
41
|
select: false,
|
|
42
42
|
},
|
|
43
43
|
}, { timestamps: true });
|
|
44
|
-
exports.LoanTransactionFileModel = mongoose_1.default.model(_models_1.MODEL_NAMES.loanTransactionsFiles,
|
|
44
|
+
exports.LoanTransactionFileModel = mongoose_1.default.model(_models_1.MODEL_NAMES.loanTransactionsFiles, exports.LoanTransactionFileSchema);
|
|
@@ -19,7 +19,7 @@ export interface ILoanTransactionFile {
|
|
|
19
19
|
export interface ILoanTransactionFileDoc extends ILoanTransactionFile, Document, IDateFields {
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
export const LoanTransactionFileSchema = new mongoose.Schema(
|
|
23
23
|
{
|
|
24
24
|
userUploaded: {
|
|
25
25
|
type: String,
|
|
@@ -58,4 +58,4 @@ const ILoanTransactionFileSchema = new mongoose.Schema(
|
|
|
58
58
|
{ timestamps: true },
|
|
59
59
|
);
|
|
60
60
|
|
|
61
|
-
export const LoanTransactionFileModel: mongoose.Model<ILoanTransactionFileDoc> = mongoose.model<ILoanTransactionFileDoc>(MODEL_NAMES.loanTransactionsFiles,
|
|
61
|
+
export const LoanTransactionFileModel: mongoose.Model<ILoanTransactionFileDoc> = mongoose.model<ILoanTransactionFileDoc>(MODEL_NAMES.loanTransactionsFiles, LoanTransactionFileSchema);
|
|
@@ -31,6 +31,38 @@ export interface IMappedGroup {
|
|
|
31
31
|
}
|
|
32
32
|
export interface IMappedGroupDocument extends IMappedGroup, Document {
|
|
33
33
|
}
|
|
34
|
+
export declare const MappedGroupSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
35
|
+
timestamps: true;
|
|
36
|
+
}, {
|
|
37
|
+
createdAt: NativeDate;
|
|
38
|
+
updatedAt: NativeDate;
|
|
39
|
+
} & {
|
|
40
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
41
|
+
group1: string;
|
|
42
|
+
group2: string;
|
|
43
|
+
groupType: string;
|
|
44
|
+
__v?: number;
|
|
45
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
46
|
+
createdAt: NativeDate;
|
|
47
|
+
updatedAt: NativeDate;
|
|
48
|
+
} & {
|
|
49
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
50
|
+
group1: string;
|
|
51
|
+
group2: string;
|
|
52
|
+
groupType: string;
|
|
53
|
+
__v?: number;
|
|
54
|
+
}>> & mongoose.FlatRecord<{
|
|
55
|
+
createdAt: NativeDate;
|
|
56
|
+
updatedAt: NativeDate;
|
|
57
|
+
} & {
|
|
58
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
59
|
+
group1: string;
|
|
60
|
+
group2: string;
|
|
61
|
+
groupType: string;
|
|
62
|
+
__v?: number;
|
|
63
|
+
}> & {
|
|
64
|
+
_id: mongoose.Types.ObjectId;
|
|
65
|
+
}>;
|
|
34
66
|
declare const _default: mongoose.Model<IMappedGroupDocument, {}, {}, {}, mongoose.Document<unknown, {}, IMappedGroupDocument> & IMappedGroupDocument & {
|
|
35
67
|
_id: mongoose.Types.ObjectId;
|
|
36
68
|
}, any>;
|
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MappedGroupSchema = void 0;
|
|
6
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
7
8
|
const _models_1 = require("./_models");
|
|
8
9
|
const mongooseLeanId = require('../plugins/id.plugin');
|
|
9
|
-
|
|
10
|
+
exports.MappedGroupSchema = new mongoose_1.default.Schema({
|
|
10
11
|
borrowerId: {
|
|
11
12
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
12
13
|
ref: _models_1.MODEL_NAMES.borrowers,
|
|
@@ -29,5 +30,5 @@ const MappedGroupSchema = new mongoose_1.default.Schema({
|
|
|
29
30
|
},
|
|
30
31
|
__v: { type: Number, select: false },
|
|
31
32
|
}, { timestamps: true });
|
|
32
|
-
MappedGroupSchema.plugin(mongooseLeanId);
|
|
33
|
-
exports.default = mongoose_1.default.model(_models_1.MODEL_NAMES.mappedGroups, MappedGroupSchema);
|
|
33
|
+
exports.MappedGroupSchema.plugin(mongooseLeanId);
|
|
34
|
+
exports.default = mongoose_1.default.model(_models_1.MODEL_NAMES.mappedGroups, exports.MappedGroupSchema);
|
|
@@ -14,7 +14,7 @@ export interface IMappedGroup {
|
|
|
14
14
|
export interface IMappedGroupDocument extends IMappedGroup, Document {
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
const MappedGroupSchema = new mongoose.Schema(
|
|
17
|
+
export const MappedGroupSchema = new mongoose.Schema(
|
|
18
18
|
{
|
|
19
19
|
borrowerId: {
|
|
20
20
|
type: mongoose.Schema.Types.ObjectId,
|
|
@@ -43,8 +43,8 @@ export declare const MicroserviceTaskSchema: mongoose.Schema<any, mongoose.Model
|
|
|
43
43
|
cmd: string;
|
|
44
44
|
params: any;
|
|
45
45
|
__v?: number;
|
|
46
|
-
userId?: mongoose.Types.ObjectId;
|
|
47
46
|
status?: string;
|
|
47
|
+
userId?: mongoose.Types.ObjectId;
|
|
48
48
|
executeAt?: Date;
|
|
49
49
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
50
50
|
createdAt: NativeDate;
|
|
@@ -53,8 +53,8 @@ export declare const MicroserviceTaskSchema: mongoose.Schema<any, mongoose.Model
|
|
|
53
53
|
cmd: string;
|
|
54
54
|
params: any;
|
|
55
55
|
__v?: number;
|
|
56
|
-
userId?: mongoose.Types.ObjectId;
|
|
57
56
|
status?: string;
|
|
57
|
+
userId?: mongoose.Types.ObjectId;
|
|
58
58
|
executeAt?: Date;
|
|
59
59
|
}>> & mongoose.FlatRecord<{
|
|
60
60
|
createdAt: NativeDate;
|
|
@@ -63,8 +63,8 @@ export declare const MicroserviceTaskSchema: mongoose.Schema<any, mongoose.Model
|
|
|
63
63
|
cmd: string;
|
|
64
64
|
params: any;
|
|
65
65
|
__v?: number;
|
|
66
|
-
userId?: mongoose.Types.ObjectId;
|
|
67
66
|
status?: string;
|
|
67
|
+
userId?: mongoose.Types.ObjectId;
|
|
68
68
|
executeAt?: Date;
|
|
69
69
|
}> & {
|
|
70
70
|
_id: mongoose.Types.ObjectId;
|
|
@@ -37,5 +37,8 @@ export interface IMonthEndData {
|
|
|
37
37
|
dataValue: number;
|
|
38
38
|
}
|
|
39
39
|
type MonthEndDataModel = Model<IMonthEndData>;
|
|
40
|
+
export declare const MonthEndDataSchema: mongoose.Schema<IMonthEndData, MonthEndDataModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IMonthEndData, mongoose.Document<unknown, {}, mongoose.FlatRecord<IMonthEndData>> & mongoose.FlatRecord<IMonthEndData> & Required<{
|
|
41
|
+
_id: mongoose.Types.ObjectId;
|
|
42
|
+
}>>;
|
|
40
43
|
export declare const MonthEndData: MonthEndDataModel;
|
|
41
44
|
export {};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MonthEndData = exports.EMonthEndDataType = void 0;
|
|
6
|
+
exports.MonthEndData = exports.MonthEndDataSchema = exports.EMonthEndDataType = void 0;
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
const _models_1 = require("./_models");
|
|
9
9
|
var EMonthEndDataType;
|
|
@@ -12,7 +12,7 @@ var EMonthEndDataType;
|
|
|
12
12
|
EMonthEndDataType["FLOATED_BALANCE"] = "FLOATED_BALANCE";
|
|
13
13
|
EMonthEndDataType["STATEMENT_BALANCE"] = "STATEMENT_BALANCE";
|
|
14
14
|
})(EMonthEndDataType || (exports.EMonthEndDataType = EMonthEndDataType = {}));
|
|
15
|
-
|
|
15
|
+
exports.MonthEndDataSchema = new mongoose_1.default.Schema({
|
|
16
16
|
productId: {
|
|
17
17
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
18
18
|
ref: _models_1.MODEL_NAMES.loanProducts,
|
|
@@ -39,4 +39,4 @@ const MonthEndDataSchema = new mongoose_1.default.Schema({
|
|
|
39
39
|
}, {
|
|
40
40
|
timestamps: { createdAt: true, updatedAt: true },
|
|
41
41
|
});
|
|
42
|
-
exports.MonthEndData = mongoose_1.default.model(
|
|
42
|
+
exports.MonthEndData = mongoose_1.default.model(_models_1.MODEL_NAMES.monthEndData, exports.MonthEndDataSchema);
|
|
@@ -19,7 +19,7 @@ export interface IMonthEndData {
|
|
|
19
19
|
|
|
20
20
|
type MonthEndDataModel = Model<IMonthEndData>;
|
|
21
21
|
|
|
22
|
-
const MonthEndDataSchema = new mongoose.Schema<IMonthEndData, MonthEndDataModel>(
|
|
22
|
+
export const MonthEndDataSchema = new mongoose.Schema<IMonthEndData, MonthEndDataModel>(
|
|
23
23
|
{
|
|
24
24
|
productId: {
|
|
25
25
|
type: mongoose.Schema.Types.ObjectId,
|
|
@@ -50,4 +50,4 @@ const MonthEndDataSchema = new mongoose.Schema<IMonthEndData, MonthEndDataModel>
|
|
|
50
50
|
},
|
|
51
51
|
);
|
|
52
52
|
|
|
53
|
-
export const MonthEndData = mongoose.model<IMonthEndData, MonthEndDataModel>(
|
|
53
|
+
export const MonthEndData = mongoose.model<IMonthEndData, MonthEndDataModel>(MODEL_NAMES.monthEndData, MonthEndDataSchema);
|
|
@@ -40,5 +40,8 @@ export type IOrganizationEmailStringified = {
|
|
|
40
40
|
[K in keyof IOrganizationEmail]: K extends '_id' | 'productId' ? string : IOrganizationEmail[K];
|
|
41
41
|
};
|
|
42
42
|
type OrganizationEmailModel = Model<IOrganizationEmail>;
|
|
43
|
+
export declare const OrganizationEmailModelSchema: mongoose.Schema<IOrganizationEmail, OrganizationEmailModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IOrganizationEmail, mongoose.Document<unknown, {}, mongoose.FlatRecord<IOrganizationEmail>> & mongoose.FlatRecord<IOrganizationEmail> & Required<{
|
|
44
|
+
_id: mongoose.Types.ObjectId;
|
|
45
|
+
}>>;
|
|
43
46
|
export declare const OrganizationEmail: OrganizationEmailModel;
|
|
44
47
|
export {};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.OrganizationEmail = exports.OrganizationEmailsType = void 0;
|
|
6
|
+
exports.OrganizationEmail = exports.OrganizationEmailModelSchema = exports.OrganizationEmailsType = void 0;
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
const _models_1 = require("./_models");
|
|
9
9
|
var OrganizationEmailsType;
|
|
@@ -13,7 +13,7 @@ var OrganizationEmailsType;
|
|
|
13
13
|
OrganizationEmailsType["HIDDEN_RECIPIENT"] = "HIDDEN_RECIPIENT";
|
|
14
14
|
OrganizationEmailsType["FINANCIAL"] = "FINANCIAL";
|
|
15
15
|
})(OrganizationEmailsType || (exports.OrganizationEmailsType = OrganizationEmailsType = {}));
|
|
16
|
-
|
|
16
|
+
exports.OrganizationEmailModelSchema = new mongoose_1.default.Schema({
|
|
17
17
|
organizationId: {
|
|
18
18
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
19
19
|
ref: _models_1.MODEL_NAMES.organizations,
|
|
@@ -37,4 +37,4 @@ const OrganizationEmailModelSchema = new mongoose_1.default.Schema({
|
|
|
37
37
|
}, {
|
|
38
38
|
timestamps: { createdAt: true, updatedAt: false },
|
|
39
39
|
});
|
|
40
|
-
exports.OrganizationEmail = mongoose_1.default.model(_models_1.MODEL_NAMES.organizationEmails, OrganizationEmailModelSchema);
|
|
40
|
+
exports.OrganizationEmail = mongoose_1.default.model(_models_1.MODEL_NAMES.organizationEmails, exports.OrganizationEmailModelSchema);
|
|
@@ -23,7 +23,7 @@ export type IOrganizationEmailStringified = {
|
|
|
23
23
|
|
|
24
24
|
type OrganizationEmailModel = Model<IOrganizationEmail>;
|
|
25
25
|
|
|
26
|
-
const OrganizationEmailModelSchema = new mongoose.Schema<IOrganizationEmail, OrganizationEmailModel>(
|
|
26
|
+
export const OrganizationEmailModelSchema = new mongoose.Schema<IOrganizationEmail, OrganizationEmailModel>(
|
|
27
27
|
{
|
|
28
28
|
organizationId: {
|
|
29
29
|
type: mongoose.Schema.Types.ObjectId,
|
|
@@ -38,18 +38,18 @@ export declare const PostponedTransactionSchema: mongoose.Schema<any, mongoose.M
|
|
|
38
38
|
timestamps: false;
|
|
39
39
|
}, {
|
|
40
40
|
productId: mongoose.Types.ObjectId;
|
|
41
|
-
postponedToDate: string;
|
|
42
41
|
transactionId: mongoose.Types.ObjectId;
|
|
42
|
+
postponedToDate: string;
|
|
43
43
|
__v?: number;
|
|
44
44
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
45
45
|
productId: mongoose.Types.ObjectId;
|
|
46
|
-
postponedToDate: string;
|
|
47
46
|
transactionId: mongoose.Types.ObjectId;
|
|
47
|
+
postponedToDate: string;
|
|
48
48
|
__v?: number;
|
|
49
49
|
}>> & mongoose.FlatRecord<{
|
|
50
50
|
productId: mongoose.Types.ObjectId;
|
|
51
|
-
postponedToDate: string;
|
|
52
51
|
transactionId: mongoose.Types.ObjectId;
|
|
52
|
+
postponedToDate: string;
|
|
53
53
|
__v?: number;
|
|
54
54
|
}> & {
|
|
55
55
|
_id: mongoose.Types.ObjectId;
|
|
@@ -26,4 +26,4 @@ exports.PostponedTransactionSchema = new mongoose_1.default.Schema({
|
|
|
26
26
|
select: false
|
|
27
27
|
},
|
|
28
28
|
}, { timestamps: false });
|
|
29
|
-
exports.PostponedTransaction = mongoose_1.default.model(
|
|
29
|
+
exports.PostponedTransaction = mongoose_1.default.model(_models_1.MODEL_NAMES.postponedTransactions, exports.PostponedTransactionSchema);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import mongoose, { Document } from 'mongoose';
|
|
2
2
|
|
|
3
|
-
import { ILoanTransactionDoc } from './LoanTransaction.model';
|
|
4
3
|
import { MODEL_NAMES } from './_models';
|
|
4
|
+
import { ILoanTransactionDoc } from './LoanTransaction.model';
|
|
5
5
|
|
|
6
6
|
export interface IPostponedTransaction {
|
|
7
7
|
postponedToDate: string;
|
|
@@ -40,4 +40,4 @@ export const PostponedTransactionSchema = new mongoose.Schema(
|
|
|
40
40
|
{ timestamps: false }
|
|
41
41
|
);
|
|
42
42
|
|
|
43
|
-
export const PostponedTransaction = mongoose.model<IPostponedTransactionDoc>(
|
|
43
|
+
export const PostponedTransaction = mongoose.model<IPostponedTransactionDoc>(MODEL_NAMES.postponedTransactions, PostponedTransactionSchema);
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Model } from 'mongoose';
|
|
25
|
+
import mongoose, { Model } from 'mongoose';
|
|
26
26
|
export interface ICRMProspectIndustry {
|
|
27
27
|
code: string;
|
|
28
28
|
name: string;
|
|
@@ -32,4 +32,7 @@ export interface ICRMProspectIndustryWithId extends ICRMProspectIndustry {
|
|
|
32
32
|
_id: string;
|
|
33
33
|
}
|
|
34
34
|
export type CRMProspectIndustryModel = Model<ICRMProspectIndustry, object, object>;
|
|
35
|
+
export declare const CRMProspectIndustrySchema: mongoose.Schema<ICRMProspectIndustry, CRMProspectIndustryModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ICRMProspectIndustry, mongoose.Document<unknown, {}, mongoose.FlatRecord<ICRMProspectIndustry>> & mongoose.FlatRecord<ICRMProspectIndustry> & {
|
|
36
|
+
_id: mongoose.Types.ObjectId;
|
|
37
|
+
}>;
|
|
35
38
|
export declare const CRMProspectIndustry: CRMProspectIndustryModel;
|
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CRMProspectIndustry = void 0;
|
|
6
|
+
exports.CRMProspectIndustry = exports.CRMProspectIndustrySchema = void 0;
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
-
const _models_1 = require("
|
|
9
|
-
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
exports.CRMProspectIndustrySchema = new mongoose_1.default.Schema({
|
|
10
10
|
code: {
|
|
11
11
|
type: String,
|
|
12
12
|
required: true,
|
|
@@ -23,4 +23,4 @@ const CRMProspectIndustrySchema = new mongoose_1.default.Schema({
|
|
|
23
23
|
timestamps: { createdAt: true, updatedAt: true },
|
|
24
24
|
versionKey: false,
|
|
25
25
|
});
|
|
26
|
-
exports.CRMProspectIndustry = mongoose_1.default.model(_models_1.MODEL_NAMES.CRMProspectIndustries, CRMProspectIndustrySchema);
|
|
26
|
+
exports.CRMProspectIndustry = mongoose_1.default.model(_models_1.MODEL_NAMES.CRMProspectIndustries, exports.CRMProspectIndustrySchema);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import mongoose, { Model } from 'mongoose';
|
|
2
2
|
|
|
3
|
-
import { MODEL_NAMES } from '
|
|
3
|
+
import { MODEL_NAMES } from './_models';
|
|
4
4
|
|
|
5
5
|
export interface ICRMProspectIndustry {
|
|
6
6
|
code: string;
|
|
@@ -14,7 +14,7 @@ export interface ICRMProspectIndustryWithId extends ICRMProspectIndustry {
|
|
|
14
14
|
|
|
15
15
|
export type CRMProspectIndustryModel = Model<ICRMProspectIndustry, object, object>;
|
|
16
16
|
|
|
17
|
-
const CRMProspectIndustrySchema = new mongoose.Schema<ICRMProspectIndustry, CRMProspectIndustryModel>(
|
|
17
|
+
export const CRMProspectIndustrySchema = new mongoose.Schema<ICRMProspectIndustry, CRMProspectIndustryModel>(
|
|
18
18
|
{
|
|
19
19
|
code: {
|
|
20
20
|
type: String,
|