gemcap-be-common 1.5.29 → 1.5.32

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.
Files changed (37) hide show
  1. package/db/collaterals.db.d.ts +1 -1
  2. package/microservice/events.constants.d.ts +1 -0
  3. package/microservice/events.constants.js +1 -0
  4. package/microservice/events.constants.ts +1 -0
  5. package/microservice/queues.constants.d.ts +3 -0
  6. package/microservice/queues.constants.js +4 -1
  7. package/microservice/queues.constants.ts +4 -1
  8. package/models/AccountPayableItem.model.d.ts +6 -6
  9. package/models/BankIncomingPaymentNotificationRule.model.d.ts +48 -0
  10. package/models/BankIncomingPaymentNotificationRule.model.js +28 -0
  11. package/models/BankIncomingPaymentNotificationRule.model.ts +51 -0
  12. package/models/Borrower.model.d.ts +3 -3
  13. package/models/Equipment.model.d.ts +3 -3
  14. package/models/InventoryAvailability.model.d.ts +9 -9
  15. package/models/InventoryItem.model.d.ts +15 -15
  16. package/models/LoanBroker.model.d.ts +3 -3
  17. package/models/LoanCharges.model.d.ts +15 -15
  18. package/models/LoanProducts.model.d.ts +18 -18
  19. package/models/LoanStatementStatus.model.d.ts +6 -6
  20. package/models/LoanStatementTransaction.model.d.ts +3 -3
  21. package/models/ProductBroker.model.d.ts +3 -3
  22. package/models/ReceivableAvailability.model.d.ts +27 -27
  23. package/models/ReceivableAvailabilityItem.model.d.ts +57 -57
  24. package/models/ReceivableItem.model.d.ts +6 -6
  25. package/models/Reserve.model.d.ts +3 -3
  26. package/models/TermLoanCalculated.model.d.ts +18 -18
  27. package/models/_index.d.ts +3 -3
  28. package/models/_models.d.ts +1 -0
  29. package/models/_models.js +1 -0
  30. package/models/_models.ts +3 -0
  31. package/package.json +1 -1
  32. package/services/bank-uploaded-transactions.service.d.ts +1 -1
  33. package/services/bank-uploaded-transactions.service.js +1 -0
  34. package/services/bank-uploaded-transactions.service.ts +1 -0
  35. package/services/borrowers.service.d.ts +2 -2
  36. package/services/brokers.service.d.ts +2 -2
  37. package/tsconfig.tsbuildinfo +1 -1
@@ -75,7 +75,7 @@ export declare const createQuery: (groupFields: {
75
75
  };
76
76
  };
77
77
  itemQueries: any;
78
- enumKey: "INVENTORY" | "OTHER" | "RECEIVABLE" | "ACCOUNT_PAYABLE" | "CASH" | "LOAN_TRANSACTIONS" | "QUICKBOOKS" | "UPLOADED_BANK_TRANSACTIONS";
78
+ enumKey: "INVENTORY" | "RECEIVABLE" | "ACCOUNT_PAYABLE" | "OTHER" | "CASH" | "LOAN_TRANSACTIONS" | "QUICKBOOKS" | "UPLOADED_BANK_TRANSACTIONS";
79
79
  };
80
80
  export declare const ITEMS_PAGINATION: (paginatorOptions: IPaginatorOptions) => ({
81
81
  $skip: number;
@@ -35,6 +35,7 @@ export declare const EVENT_KEYS: {
35
35
  readonly REPORT_PER_ACCOUNT_REQUESTED: "finance.report.account.requested";
36
36
  readonly REPORT_CONSOLIDATED_REQUESTED: "finance.report.consolidated.requested";
37
37
  readonly YIELD_RECALCULATION_REQUESTED: "finance.yield.recalculation.requested";
38
+ readonly INCOMING_PAYMENT_DETECTED: "finance.incoming-payment.detected";
38
39
  };
39
40
  /**
40
41
  * ========= PORTFOLIO DOMAIN EVENTS =========
@@ -38,6 +38,7 @@ exports.EVENT_KEYS = {
38
38
  REPORT_PER_ACCOUNT_REQUESTED: 'finance.report.account.requested',
39
39
  REPORT_CONSOLIDATED_REQUESTED: 'finance.report.consolidated.requested',
40
40
  YIELD_RECALCULATION_REQUESTED: 'finance.yield.recalculation.requested',
41
+ INCOMING_PAYMENT_DETECTED: 'finance.incoming-payment.detected',
41
42
  },
42
43
  /**
43
44
  * ========= PORTFOLIO DOMAIN EVENTS =========
@@ -39,6 +39,7 @@ export const EVENT_KEYS = {
39
39
  REPORT_PER_ACCOUNT_REQUESTED: 'finance.report.account.requested',
40
40
  REPORT_CONSOLIDATED_REQUESTED: 'finance.report.consolidated.requested',
41
41
  YIELD_RECALCULATION_REQUESTED: 'finance.yield.recalculation.requested',
42
+ INCOMING_PAYMENT_DETECTED: 'finance.incoming-payment.detected',
42
43
  },
43
44
 
44
45
  /**
@@ -34,6 +34,9 @@ export declare const QUEUES: {
34
34
  readonly yield: {
35
35
  readonly recalculation: "finance.yield.recalculation";
36
36
  };
37
+ readonly incomingPayments: {
38
+ readonly detected: "finance.incoming-payment.detected";
39
+ };
37
40
  };
38
41
  readonly portfolio: {
39
42
  readonly email: {
@@ -36,7 +36,10 @@ exports.QUEUES = {
36
36
  },
37
37
  yield: {
38
38
  recalculation: 'finance.yield.recalculation',
39
- }
39
+ },
40
+ incomingPayments: {
41
+ detected: 'finance.incoming-payment.detected',
42
+ },
40
43
  },
41
44
  portfolio: {
42
45
  email: {
@@ -33,7 +33,10 @@ export const QUEUES = {
33
33
  },
34
34
  yield: {
35
35
  recalculation: 'finance.yield.recalculation',
36
- }
36
+ },
37
+ incomingPayments: {
38
+ detected: 'finance.incoming-payment.detected',
39
+ },
37
40
  },
38
41
  portfolio: {
39
42
  email: {
@@ -43,10 +43,10 @@ export declare const AccountPayableItemSchema: mongoose.Schema<any, mongoose.Mod
43
43
  createdAt: NativeDate;
44
44
  updatedAt: NativeDate;
45
45
  } & {
46
- order: number;
47
- amount: number;
48
46
  bbcSheetId: mongoose.Types.ObjectId;
47
+ order: number;
49
48
  apDate: Date;
49
+ amount: number;
50
50
  __v?: number;
51
51
  poNumber?: string;
52
52
  customerName?: string;
@@ -57,10 +57,10 @@ export declare const AccountPayableItemSchema: mongoose.Schema<any, mongoose.Mod
57
57
  createdAt: NativeDate;
58
58
  updatedAt: NativeDate;
59
59
  } & {
60
- order: number;
61
- amount: number;
62
60
  bbcSheetId: mongoose.Types.ObjectId;
61
+ order: number;
63
62
  apDate: Date;
63
+ amount: number;
64
64
  __v?: number;
65
65
  poNumber?: string;
66
66
  customerName?: string;
@@ -71,10 +71,10 @@ export declare const AccountPayableItemSchema: mongoose.Schema<any, mongoose.Mod
71
71
  createdAt: NativeDate;
72
72
  updatedAt: NativeDate;
73
73
  } & {
74
- order: number;
75
- amount: number;
76
74
  bbcSheetId: mongoose.Types.ObjectId;
75
+ order: number;
77
76
  apDate: Date;
77
+ amount: number;
78
78
  __v?: number;
79
79
  poNumber?: string;
80
80
  customerName?: string;
@@ -0,0 +1,48 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import mongoose from 'mongoose';
26
+ import Joi from 'joi';
27
+ export interface IBankIncomingPaymentNotificationRule {
28
+ bankId: mongoose.Types.ObjectId;
29
+ deletedAt?: Date;
30
+ }
31
+ export type IBankIncomingPaymentNotificationRuleDoc = mongoose.HydratedDocument<IBankIncomingPaymentNotificationRule>;
32
+ export interface IBankIncomingPaymentNotificationRuleLean extends IBankIncomingPaymentNotificationRule {
33
+ _id: mongoose.Types.ObjectId;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ }
37
+ export interface IBankIncomingPaymentNotificationRulePlain extends Omit<IBankIncomingPaymentNotificationRule, 'bankId'> {
38
+ _id: string;
39
+ bankAccountId: string;
40
+ createdAt: Date;
41
+ updatedAt: Date;
42
+ }
43
+ export declare const BankIncomingPaymentNotificationRuleValidationSchema: Joi.ObjectSchema<any>;
44
+ export type BankIncomingPaymentNotificationRuleModel = mongoose.Model<IBankIncomingPaymentNotificationRule>;
45
+ export declare const BankIncomingPaymentNotificationRuleSchema: mongoose.Schema<IBankIncomingPaymentNotificationRule, BankIncomingPaymentNotificationRuleModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IBankIncomingPaymentNotificationRule, mongoose.Document<unknown, {}, mongoose.FlatRecord<IBankIncomingPaymentNotificationRule>> & mongoose.FlatRecord<IBankIncomingPaymentNotificationRule> & {
46
+ _id: mongoose.Types.ObjectId;
47
+ }>;
48
+ export declare const BankIncomingPaymentNotificationRule: BankIncomingPaymentNotificationRuleModel;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BankIncomingPaymentNotificationRule = exports.BankIncomingPaymentNotificationRuleSchema = exports.BankIncomingPaymentNotificationRuleValidationSchema = void 0;
7
+ const mongoose_1 = __importDefault(require("mongoose"));
8
+ const joi_1 = __importDefault(require("joi"));
9
+ const _models_1 = require("./_models");
10
+ exports.BankIncomingPaymentNotificationRuleValidationSchema = joi_1.default.object({
11
+ _id: joi_1.default.string(),
12
+ bankId: joi_1.default.string(),
13
+ active: joi_1.default.boolean(),
14
+ });
15
+ exports.BankIncomingPaymentNotificationRuleSchema = new mongoose_1.default.Schema({
16
+ bankId: {
17
+ type: mongoose_1.default.Schema.Types.ObjectId,
18
+ ref: _models_1.MODEL_NAMES.banks,
19
+ required: true,
20
+ },
21
+ deletedAt: {
22
+ type: Date,
23
+ },
24
+ }, {
25
+ timestamps: { createdAt: true, updatedAt: true },
26
+ versionKey: false,
27
+ });
28
+ exports.BankIncomingPaymentNotificationRule = mongoose_1.default.model(_models_1.MODEL_NAMES.bankIncomingPaymentNotificationRules, exports.BankIncomingPaymentNotificationRuleSchema);
@@ -0,0 +1,51 @@
1
+ import mongoose from 'mongoose';
2
+ import Joi from 'joi';
3
+
4
+ import { MODEL_NAMES } from './_models';
5
+
6
+ export interface IBankIncomingPaymentNotificationRule {
7
+ bankId: mongoose.Types.ObjectId;
8
+ deletedAt?: Date;
9
+ }
10
+
11
+ export type IBankIncomingPaymentNotificationRuleDoc = mongoose.HydratedDocument<IBankIncomingPaymentNotificationRule>;
12
+
13
+ export interface IBankIncomingPaymentNotificationRuleLean extends IBankIncomingPaymentNotificationRule {
14
+ _id: mongoose.Types.ObjectId;
15
+ createdAt: Date;
16
+ updatedAt: Date;
17
+ }
18
+
19
+ export interface IBankIncomingPaymentNotificationRulePlain extends Omit<IBankIncomingPaymentNotificationRule, 'bankId'> {
20
+ _id: string;
21
+ bankAccountId: string;
22
+ createdAt: Date;
23
+ updatedAt: Date;
24
+ }
25
+
26
+ export const BankIncomingPaymentNotificationRuleValidationSchema = Joi.object({
27
+ _id: Joi.string(),
28
+ bankId: Joi.string(),
29
+ active: Joi.boolean(),
30
+ });
31
+
32
+ export type BankIncomingPaymentNotificationRuleModel = mongoose.Model<IBankIncomingPaymentNotificationRule>;
33
+
34
+ export const BankIncomingPaymentNotificationRuleSchema = new mongoose.Schema<IBankIncomingPaymentNotificationRule, BankIncomingPaymentNotificationRuleModel>(
35
+ {
36
+ bankId: {
37
+ type: mongoose.Schema.Types.ObjectId,
38
+ ref: MODEL_NAMES.banks,
39
+ required: true,
40
+ },
41
+ deletedAt: {
42
+ type: Date,
43
+ },
44
+ },
45
+ {
46
+ timestamps: { createdAt: true, updatedAt: true },
47
+ versionKey: false,
48
+ },
49
+ );
50
+
51
+ export const BankIncomingPaymentNotificationRule = mongoose.model<IBankIncomingPaymentNotificationRule, BankIncomingPaymentNotificationRuleModel>(MODEL_NAMES.bankIncomingPaymentNotificationRules, BankIncomingPaymentNotificationRuleSchema);
@@ -64,8 +64,8 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
64
64
  createdAt: NativeDate;
65
65
  updatedAt: NativeDate;
66
66
  } & {
67
- name: string;
68
67
  active: boolean;
68
+ name: string;
69
69
  code: string;
70
70
  title: string;
71
71
  accrualStatus: boolean;
@@ -83,8 +83,8 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
83
83
  createdAt: NativeDate;
84
84
  updatedAt: NativeDate;
85
85
  } & {
86
- name: string;
87
86
  active: boolean;
87
+ name: string;
88
88
  code: string;
89
89
  title: string;
90
90
  accrualStatus: boolean;
@@ -102,8 +102,8 @@ export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, an
102
102
  createdAt: NativeDate;
103
103
  updatedAt: NativeDate;
104
104
  } & {
105
- name: string;
106
105
  active: boolean;
106
+ name: string;
107
107
  code: string;
108
108
  title: string;
109
109
  accrualStatus: boolean;
@@ -56,9 +56,9 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
56
56
  date: Date;
57
57
  borrowerId: mongoose.Types.ObjectId;
58
58
  items: mongoose.Types.DocumentArray<{
59
+ active: boolean;
59
60
  type: string;
60
61
  amount: number;
61
- active: boolean;
62
62
  inventoryName: string;
63
63
  advanceRate?: number;
64
64
  productId?: {
@@ -111,9 +111,9 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
111
111
  date: Date;
112
112
  borrowerId: mongoose.Types.ObjectId;
113
113
  items: mongoose.Types.DocumentArray<{
114
+ active: boolean;
114
115
  type: string;
115
116
  amount: number;
116
- active: boolean;
117
117
  inventoryName: string;
118
118
  advanceRate?: number;
119
119
  productId?: {
@@ -166,9 +166,9 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
166
166
  date: Date;
167
167
  borrowerId: mongoose.Types.ObjectId;
168
168
  items: mongoose.Types.DocumentArray<{
169
+ active: boolean;
169
170
  type: string;
170
171
  amount: number;
171
- active: boolean;
172
172
  inventoryName: string;
173
173
  advanceRate?: number;
174
174
  productId?: {
@@ -88,9 +88,9 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
88
88
  createdAt: NativeDate;
89
89
  updatedAt: NativeDate;
90
90
  } & {
91
+ bbcDateId: mongoose.Types.ObjectId;
91
92
  borrowerId: mongoose.Types.ObjectId;
92
93
  status: string;
93
- bbcDateId: mongoose.Types.ObjectId;
94
94
  summary: mongoose.Types.DocumentArray<{
95
95
  order: number;
96
96
  advanceRate: number;
@@ -103,15 +103,15 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
103
103
  useManualInputs: boolean;
104
104
  filters: mongoose.Types.DocumentArray<{
105
105
  active: boolean;
106
- valid: boolean;
107
106
  advanceRate: number;
108
107
  queries: mongoose.Types.DocumentArray<{
109
108
  filter: string;
110
- field: string;
111
109
  conjunction: string;
110
+ field: string;
112
111
  filterValue: any;
113
112
  }>;
114
113
  inventoryName: string;
114
+ valid: boolean;
115
115
  }>;
116
116
  __v?: number;
117
117
  options?: {
@@ -121,9 +121,9 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
121
121
  createdAt: NativeDate;
122
122
  updatedAt: NativeDate;
123
123
  } & {
124
+ bbcDateId: mongoose.Types.ObjectId;
124
125
  borrowerId: mongoose.Types.ObjectId;
125
126
  status: string;
126
- bbcDateId: mongoose.Types.ObjectId;
127
127
  summary: mongoose.Types.DocumentArray<{
128
128
  order: number;
129
129
  advanceRate: number;
@@ -136,15 +136,15 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
136
136
  useManualInputs: boolean;
137
137
  filters: mongoose.Types.DocumentArray<{
138
138
  active: boolean;
139
- valid: boolean;
140
139
  advanceRate: number;
141
140
  queries: mongoose.Types.DocumentArray<{
142
141
  filter: string;
143
- field: string;
144
142
  conjunction: string;
143
+ field: string;
145
144
  filterValue: any;
146
145
  }>;
147
146
  inventoryName: string;
147
+ valid: boolean;
148
148
  }>;
149
149
  __v?: number;
150
150
  options?: {
@@ -154,9 +154,9 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
154
154
  createdAt: NativeDate;
155
155
  updatedAt: NativeDate;
156
156
  } & {
157
+ bbcDateId: mongoose.Types.ObjectId;
157
158
  borrowerId: mongoose.Types.ObjectId;
158
159
  status: string;
159
- bbcDateId: mongoose.Types.ObjectId;
160
160
  summary: mongoose.Types.DocumentArray<{
161
161
  order: number;
162
162
  advanceRate: number;
@@ -169,15 +169,15 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
169
169
  useManualInputs: boolean;
170
170
  filters: mongoose.Types.DocumentArray<{
171
171
  active: boolean;
172
- valid: boolean;
173
172
  advanceRate: number;
174
173
  queries: mongoose.Types.DocumentArray<{
175
174
  filter: string;
176
- field: string;
177
175
  conjunction: string;
176
+ field: string;
178
177
  filterValue: any;
179
178
  }>;
180
179
  inventoryName: string;
180
+ valid: boolean;
181
181
  }>;
182
182
  __v?: number;
183
183
  options?: {
@@ -71,68 +71,68 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
71
71
  createdAt: NativeDate;
72
72
  updatedAt: NativeDate;
73
73
  } & {
74
+ bbcSheetId: mongoose.Types.ObjectId;
74
75
  order: number;
75
76
  value: number;
76
- bbcSheetId: mongoose.Types.ObjectId;
77
+ skuDate: Date;
77
78
  category: string;
78
- qty: number;
79
79
  sku: string;
80
- skuDate: Date;
80
+ qty: number;
81
81
  __v?: number;
82
- expiryDate?: Date;
83
82
  location?: string;
84
83
  lotNumber?: string;
84
+ expiryDate?: Date;
85
+ unitCost?: number;
85
86
  skuDescription1?: string;
86
87
  skuDescription2?: string;
87
88
  skuDescription3?: string;
88
89
  detail1?: string;
89
90
  detail2?: string;
90
91
  detail3?: string;
91
- unitCost?: number;
92
92
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
93
93
  createdAt: NativeDate;
94
94
  updatedAt: NativeDate;
95
95
  } & {
96
+ bbcSheetId: mongoose.Types.ObjectId;
96
97
  order: number;
97
98
  value: number;
98
- bbcSheetId: mongoose.Types.ObjectId;
99
+ skuDate: Date;
99
100
  category: string;
100
- qty: number;
101
101
  sku: string;
102
- skuDate: Date;
102
+ qty: number;
103
103
  __v?: number;
104
- expiryDate?: Date;
105
104
  location?: string;
106
105
  lotNumber?: string;
106
+ expiryDate?: Date;
107
+ unitCost?: number;
107
108
  skuDescription1?: string;
108
109
  skuDescription2?: string;
109
110
  skuDescription3?: string;
110
111
  detail1?: string;
111
112
  detail2?: string;
112
113
  detail3?: string;
113
- unitCost?: number;
114
114
  }>> & mongoose.FlatRecord<{
115
115
  createdAt: NativeDate;
116
116
  updatedAt: NativeDate;
117
117
  } & {
118
+ bbcSheetId: mongoose.Types.ObjectId;
118
119
  order: number;
119
120
  value: number;
120
- bbcSheetId: mongoose.Types.ObjectId;
121
+ skuDate: Date;
121
122
  category: string;
122
- qty: number;
123
123
  sku: string;
124
- skuDate: Date;
124
+ qty: number;
125
125
  __v?: number;
126
- expiryDate?: Date;
127
126
  location?: string;
128
127
  lotNumber?: string;
128
+ expiryDate?: Date;
129
+ unitCost?: number;
129
130
  skuDescription1?: string;
130
131
  skuDescription2?: string;
131
132
  skuDescription3?: string;
132
133
  detail1?: string;
133
134
  detail2?: string;
134
135
  detail3?: string;
135
- unitCost?: number;
136
136
  }> & {
137
137
  _id: mongoose.Types.ObjectId;
138
138
  }>;
@@ -49,9 +49,9 @@ export declare const LoanBrokerSchema: mongoose.Schema<any, mongoose.Model<any,
49
49
  createdAt: NativeDate;
50
50
  updatedAt: NativeDate;
51
51
  } & {
52
+ active: boolean;
52
53
  name: string;
53
54
  order: number;
54
- active: boolean;
55
55
  emails: mongoose.Types.DocumentArray<{
56
56
  title: string;
57
57
  email: string;
@@ -62,9 +62,9 @@ export declare const LoanBrokerSchema: mongoose.Schema<any, mongoose.Model<any,
62
62
  createdAt: NativeDate;
63
63
  updatedAt: NativeDate;
64
64
  } & {
65
+ active: boolean;
65
66
  name: string;
66
67
  order: number;
67
- active: boolean;
68
68
  emails: mongoose.Types.DocumentArray<{
69
69
  title: string;
70
70
  email: string;
@@ -75,9 +75,9 @@ export declare const LoanBrokerSchema: mongoose.Schema<any, mongoose.Model<any,
75
75
  createdAt: NativeDate;
76
76
  updatedAt: NativeDate;
77
77
  } & {
78
+ active: boolean;
78
79
  name: string;
79
80
  order: number;
80
- active: boolean;
81
81
  emails: mongoose.Types.DocumentArray<{
82
82
  title: string;
83
83
  email: string;
@@ -74,65 +74,65 @@ export declare const LoanChargeSchema: mongoose.Schema<any, mongoose.Model<any,
74
74
  createdAt: NativeDate;
75
75
  updatedAt: NativeDate;
76
76
  } & {
77
- borrowerId: mongoose.Types.ObjectId;
78
- order: number;
79
77
  active: boolean;
80
78
  name: string;
79
+ order: number;
80
+ borrowerId: mongoose.Types.ObjectId;
81
81
  code: string;
82
- PLCode: string;
82
+ frequency: string;
83
83
  productId: mongoose.Types.ObjectId;
84
+ PLCode: string;
84
85
  percent: number;
85
86
  minimumAmount: number;
86
- frequency: string;
87
87
  applyFrom: Date;
88
88
  calculationBasis: string;
89
89
  chargeType: string;
90
90
  includeInYield: boolean;
91
91
  deletedAt?: Date;
92
- paymentOrder?: number;
93
92
  __v?: number;
93
+ paymentOrder?: number;
94
94
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
95
95
  createdAt: NativeDate;
96
96
  updatedAt: NativeDate;
97
97
  } & {
98
- borrowerId: mongoose.Types.ObjectId;
99
- order: number;
100
98
  active: boolean;
101
99
  name: string;
100
+ order: number;
101
+ borrowerId: mongoose.Types.ObjectId;
102
102
  code: string;
103
- PLCode: string;
103
+ frequency: string;
104
104
  productId: mongoose.Types.ObjectId;
105
+ PLCode: string;
105
106
  percent: number;
106
107
  minimumAmount: number;
107
- frequency: string;
108
108
  applyFrom: Date;
109
109
  calculationBasis: string;
110
110
  chargeType: string;
111
111
  includeInYield: boolean;
112
112
  deletedAt?: Date;
113
- paymentOrder?: number;
114
113
  __v?: number;
114
+ paymentOrder?: number;
115
115
  }>> & mongoose.FlatRecord<{
116
116
  createdAt: NativeDate;
117
117
  updatedAt: NativeDate;
118
118
  } & {
119
- borrowerId: mongoose.Types.ObjectId;
120
- order: number;
121
119
  active: boolean;
122
120
  name: string;
121
+ order: number;
122
+ borrowerId: mongoose.Types.ObjectId;
123
123
  code: string;
124
- PLCode: string;
124
+ frequency: string;
125
125
  productId: mongoose.Types.ObjectId;
126
+ PLCode: string;
126
127
  percent: number;
127
128
  minimumAmount: number;
128
- frequency: string;
129
129
  applyFrom: Date;
130
130
  calculationBasis: string;
131
131
  chargeType: string;
132
132
  includeInYield: boolean;
133
133
  deletedAt?: Date;
134
- paymentOrder?: number;
135
134
  __v?: number;
135
+ paymentOrder?: number;
136
136
  }> & {
137
137
  _id: mongoose.Types.ObjectId;
138
138
  }>;