gemcap-be-common 1.5.59 → 1.5.61

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 (41) hide show
  1. package/models/Borrower.model.d.ts +12 -12
  2. package/models/BorrowerDataContact.model.d.ts +3 -3
  3. package/models/BorrowerDataInsurance.model.d.ts +3 -3
  4. package/models/BorrowerSettings.model.d.ts +24 -24
  5. package/models/Equipment.model.d.ts +9 -9
  6. package/models/FinancialCompliance.model.d.ts +12 -12
  7. package/models/Inventory.model.d.ts +9 -9
  8. package/models/InventoryAvailability.model.d.ts +3 -3
  9. package/models/InventoryAvailabilityItem.model.d.ts +3 -3
  10. package/models/InventoryItem.model.d.ts +3 -3
  11. package/models/InventoryManualEntry.model.d.ts +9 -9
  12. package/models/InventorySeasonalRates.model.d.ts +3 -3
  13. package/models/LoanBroker.model.d.ts +3 -3
  14. package/models/LoanCharges.model.d.ts +6 -6
  15. package/models/LoanPayment.model.d.ts +3 -3
  16. package/models/LoanProducts.model.d.ts +21 -20
  17. package/models/LoanProducts.model.js +1 -1
  18. package/models/LoanProducts.model.ts +4 -3
  19. package/models/LoanStatementStatus.model.d.ts +6 -6
  20. package/models/LoanStatementTransaction.model.d.ts +9 -9
  21. package/models/LoanTransactionFile.model.d.ts +3 -3
  22. package/models/MicroserviceTask.model.d.ts +3 -3
  23. package/models/Participation.model.d.ts +79 -0
  24. package/models/Participation.model.js +25 -0
  25. package/models/Participation.model.ts +46 -0
  26. package/models/ProductBroker.model.d.ts +9 -9
  27. package/models/Receivable.model.d.ts +3 -3
  28. package/models/ReceivableAvailability.model.d.ts +6 -6
  29. package/models/Reserve.model.d.ts +9 -9
  30. package/models/SalesItem.model.d.ts +3 -3
  31. package/models/TermLoan.model.d.ts +3 -3
  32. package/models/TermLoanCalculated.model.d.ts +18 -18
  33. package/models/UploadedFile.model.d.ts +3 -3
  34. package/models/UploadedSheet.model.d.ts +3 -3
  35. package/models/_index.d.ts +3 -3
  36. package/models/_models.d.ts +1 -0
  37. package/models/_models.js +1 -0
  38. package/models/_models.ts +1 -0
  39. package/package.json +1 -1
  40. package/services/borrowers.service.d.ts +2 -2
  41. package/tsconfig.tsbuildinfo +1 -1
@@ -70,8 +70,8 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
70
70
  updatedAt: NativeDate;
71
71
  } & {
72
72
  date: Date;
73
- productId: mongoose.Types.ObjectId;
74
73
  amount: number;
74
+ productId: mongoose.Types.ObjectId;
75
75
  paymentOrder: string[];
76
76
  paid: mongoose.Types.DocumentArray<{
77
77
  amount?: number;
@@ -88,8 +88,8 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
88
88
  updatedAt: NativeDate;
89
89
  } & {
90
90
  date: Date;
91
- productId: mongoose.Types.ObjectId;
92
91
  amount: number;
92
+ productId: mongoose.Types.ObjectId;
93
93
  paymentOrder: string[];
94
94
  paid: mongoose.Types.DocumentArray<{
95
95
  amount?: number;
@@ -106,8 +106,8 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
106
106
  updatedAt: NativeDate;
107
107
  } & {
108
108
  date: Date;
109
- productId: mongoose.Types.ObjectId;
110
109
  amount: number;
110
+ productId: mongoose.Types.ObjectId;
111
111
  paymentOrder: string[];
112
112
  paid: mongoose.Types.DocumentArray<{
113
113
  amount?: number;
@@ -40,7 +40,7 @@ export interface ILoanProduct {
40
40
  isBalanceActual: boolean;
41
41
  isFloatedBalanceActual: boolean;
42
42
  isParticipant?: boolean;
43
- masterLoanProductId?: mongoose.Types.ObjectId;
43
+ masterLoanProductId: mongoose.Types.ObjectId;
44
44
  minPercent: number;
45
45
  maxPercent: number;
46
46
  prepaymentDate?: Date;
@@ -60,9 +60,10 @@ export interface ILoanProductLean extends ILoanProduct {
60
60
  createdAt: Date;
61
61
  updatedAt: Date;
62
62
  }
63
- export interface ILoanProductPlain extends Omit<ILoanProduct, 'borrowerId'> {
63
+ export interface ILoanProductPlain extends Omit<ILoanProduct, 'borrowerId' | 'masterLoanProductId'> {
64
64
  _id: string;
65
65
  borrowerId: string;
66
+ masterLoanProductId: string;
66
67
  }
67
68
  export interface ILoanProductWithId extends ILoanProduct {
68
69
  _id: mongoose.Types.ObjectId;
@@ -82,83 +83,83 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
82
83
  createdAt: NativeDate;
83
84
  updatedAt: NativeDate;
84
85
  } & {
85
- borrowerId: mongoose.Types.ObjectId;
86
+ type: string;
87
+ name: string;
86
88
  order: number;
87
89
  active: boolean;
90
+ borrowerId: mongoose.Types.ObjectId;
88
91
  code: string;
89
- name: string;
90
- type: string;
91
92
  startDate: Date;
92
93
  maturityDate: Date;
93
94
  commitment: number;
94
95
  isBalanceActual: boolean;
95
96
  isFloatedBalanceActual: boolean;
97
+ masterLoanProductId: mongoose.Types.ObjectId;
96
98
  isDefaultPaymentOrder: boolean;
99
+ __v?: number;
100
+ settlementCode?: string;
97
101
  masterCode?: string;
98
102
  payoffDate?: Date;
99
103
  isParticipant?: boolean;
100
- masterLoanProductId?: mongoose.Types.ObjectId;
101
104
  minPercent?: number;
102
105
  maxPercent?: number;
103
106
  prepaymentDate?: Date;
104
107
  prepaymentTerms?: string;
105
- settlementCode?: string;
106
108
  deactivationDate?: Date;
107
- __v?: number;
108
109
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
109
110
  createdAt: NativeDate;
110
111
  updatedAt: NativeDate;
111
112
  } & {
112
- borrowerId: mongoose.Types.ObjectId;
113
+ type: string;
114
+ name: string;
113
115
  order: number;
114
116
  active: boolean;
117
+ borrowerId: mongoose.Types.ObjectId;
115
118
  code: string;
116
- name: string;
117
- type: string;
118
119
  startDate: Date;
119
120
  maturityDate: Date;
120
121
  commitment: number;
121
122
  isBalanceActual: boolean;
122
123
  isFloatedBalanceActual: boolean;
124
+ masterLoanProductId: mongoose.Types.ObjectId;
123
125
  isDefaultPaymentOrder: boolean;
126
+ __v?: number;
127
+ settlementCode?: string;
124
128
  masterCode?: string;
125
129
  payoffDate?: Date;
126
130
  isParticipant?: boolean;
127
- masterLoanProductId?: mongoose.Types.ObjectId;
128
131
  minPercent?: number;
129
132
  maxPercent?: number;
130
133
  prepaymentDate?: Date;
131
134
  prepaymentTerms?: string;
132
- settlementCode?: string;
133
135
  deactivationDate?: Date;
134
- __v?: number;
135
136
  }>> & mongoose.FlatRecord<{
136
137
  createdAt: NativeDate;
137
138
  updatedAt: NativeDate;
138
139
  } & {
139
- borrowerId: mongoose.Types.ObjectId;
140
+ type: string;
141
+ name: string;
140
142
  order: number;
141
143
  active: boolean;
144
+ borrowerId: mongoose.Types.ObjectId;
142
145
  code: string;
143
- name: string;
144
- type: string;
145
146
  startDate: Date;
146
147
  maturityDate: Date;
147
148
  commitment: number;
148
149
  isBalanceActual: boolean;
149
150
  isFloatedBalanceActual: boolean;
151
+ masterLoanProductId: mongoose.Types.ObjectId;
150
152
  isDefaultPaymentOrder: boolean;
153
+ __v?: number;
154
+ settlementCode?: string;
151
155
  masterCode?: string;
152
156
  payoffDate?: Date;
153
157
  isParticipant?: boolean;
154
- masterLoanProductId?: mongoose.Types.ObjectId;
155
158
  minPercent?: number;
156
159
  maxPercent?: number;
157
160
  prepaymentDate?: Date;
158
161
  prepaymentTerms?: string;
159
- settlementCode?: string;
160
162
  deactivationDate?: Date;
161
- __v?: number;
162
163
  }> & {
163
164
  _id: mongoose.Types.ObjectId;
164
165
  }>;
@@ -71,7 +71,7 @@ exports.LoanProductSchema = new mongoose_1.default.Schema({
71
71
  masterLoanProductId: {
72
72
  type: mongoose_1.default.Schema.Types.ObjectId,
73
73
  ref: _models_1.MODEL_NAMES.loanProducts,
74
- required: false,
74
+ default: null,
75
75
  },
76
76
  minPercent: {
77
77
  type: Number,
@@ -19,7 +19,7 @@ export interface ILoanProduct {
19
19
  isBalanceActual: boolean;
20
20
  isFloatedBalanceActual: boolean;
21
21
  isParticipant?: boolean;
22
- masterLoanProductId?: mongoose.Types.ObjectId;
22
+ masterLoanProductId: mongoose.Types.ObjectId;
23
23
  minPercent: number;
24
24
  maxPercent: number;
25
25
  prepaymentDate?: Date;
@@ -42,9 +42,10 @@ export interface ILoanProductLean extends ILoanProduct {
42
42
  updatedAt: Date;
43
43
  }
44
44
 
45
- export interface ILoanProductPlain extends Omit<ILoanProduct, 'borrowerId'> {
45
+ export interface ILoanProductPlain extends Omit<ILoanProduct, 'borrowerId' | 'masterLoanProductId'> {
46
46
  _id: string;
47
47
  borrowerId: string;
48
+ masterLoanProductId: string;
48
49
  }
49
50
 
50
51
  export interface ILoanProductWithId extends ILoanProduct {
@@ -130,7 +131,7 @@ export const LoanProductSchema = new mongoose.Schema(
130
131
  masterLoanProductId: {
131
132
  type: mongoose.Schema.Types.ObjectId,
132
133
  ref: MODEL_NAMES.loanProducts,
133
- required: false,
134
+ default: null,
134
135
  },
135
136
  minPercent: {
136
137
  type: Number,
@@ -51,9 +51,9 @@ export declare const LoanStatementStatusSchema: mongoose.Schema<any, mongoose.Mo
51
51
  createdAt: NativeDate;
52
52
  updatedAt: NativeDate;
53
53
  } & {
54
- month: number;
55
- year: number;
56
54
  productId: mongoose.Types.ObjectId;
55
+ year: number;
56
+ month: number;
57
57
  __v?: number;
58
58
  actual?: boolean;
59
59
  locked?: boolean;
@@ -62,9 +62,9 @@ export declare const LoanStatementStatusSchema: mongoose.Schema<any, mongoose.Mo
62
62
  createdAt: NativeDate;
63
63
  updatedAt: NativeDate;
64
64
  } & {
65
- month: number;
66
- year: number;
67
65
  productId: mongoose.Types.ObjectId;
66
+ year: number;
67
+ month: number;
68
68
  __v?: number;
69
69
  actual?: boolean;
70
70
  locked?: boolean;
@@ -73,9 +73,9 @@ export declare const LoanStatementStatusSchema: mongoose.Schema<any, mongoose.Mo
73
73
  createdAt: NativeDate;
74
74
  updatedAt: NativeDate;
75
75
  } & {
76
- month: number;
77
- year: number;
78
76
  productId: mongoose.Types.ObjectId;
77
+ year: number;
78
+ month: number;
79
79
  __v?: number;
80
80
  actual?: boolean;
81
81
  locked?: boolean;
@@ -73,45 +73,45 @@ export declare const LoanStatementSchema: mongoose.Schema<any, mongoose.Model<an
73
73
  } & {
74
74
  date: Date;
75
75
  order: number;
76
- chargeId: mongoose.Types.ObjectId;
77
76
  amount: number;
77
+ chargeId: mongoose.Types.ObjectId;
78
78
  isSystem: boolean;
79
79
  __v?: number;
80
+ memo?: string;
80
81
  settlementCode?: string;
82
+ amountPaid?: number;
81
83
  balance?: number;
82
84
  userId?: string;
83
- amountPaid?: number;
84
- memo?: string;
85
85
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
86
86
  createdAt: NativeDate;
87
87
  updatedAt: NativeDate;
88
88
  } & {
89
89
  date: Date;
90
90
  order: number;
91
- chargeId: mongoose.Types.ObjectId;
92
91
  amount: number;
92
+ chargeId: mongoose.Types.ObjectId;
93
93
  isSystem: boolean;
94
94
  __v?: number;
95
+ memo?: string;
95
96
  settlementCode?: string;
97
+ amountPaid?: number;
96
98
  balance?: number;
97
99
  userId?: string;
98
- amountPaid?: number;
99
- memo?: string;
100
100
  }>> & mongoose.FlatRecord<{
101
101
  createdAt: NativeDate;
102
102
  updatedAt: NativeDate;
103
103
  } & {
104
104
  date: Date;
105
105
  order: number;
106
- chargeId: mongoose.Types.ObjectId;
107
106
  amount: number;
107
+ chargeId: mongoose.Types.ObjectId;
108
108
  isSystem: boolean;
109
109
  __v?: number;
110
+ memo?: string;
110
111
  settlementCode?: string;
112
+ amountPaid?: number;
111
113
  balance?: number;
112
114
  userId?: string;
113
- amountPaid?: number;
114
- memo?: string;
115
115
  }> & {
116
116
  _id: mongoose.Types.ObjectId;
117
117
  }>;
@@ -43,9 +43,9 @@ export declare const LoanTransactionFileSchema: mongoose.Schema<any, mongoose.Mo
43
43
  createdAt: NativeDate;
44
44
  updatedAt: NativeDate;
45
45
  } & {
46
- effectiveDate: string;
47
46
  fileName: string;
48
47
  sheetName: string;
48
+ effectiveDate: string;
49
49
  transactionsId: mongoose.Types.ObjectId[];
50
50
  statementIds: mongoose.Types.ObjectId[];
51
51
  __v?: number;
@@ -54,9 +54,9 @@ export declare const LoanTransactionFileSchema: mongoose.Schema<any, mongoose.Mo
54
54
  createdAt: NativeDate;
55
55
  updatedAt: NativeDate;
56
56
  } & {
57
- effectiveDate: string;
58
57
  fileName: string;
59
58
  sheetName: string;
59
+ effectiveDate: string;
60
60
  transactionsId: mongoose.Types.ObjectId[];
61
61
  statementIds: mongoose.Types.ObjectId[];
62
62
  __v?: number;
@@ -65,9 +65,9 @@ export declare const LoanTransactionFileSchema: mongoose.Schema<any, mongoose.Mo
65
65
  createdAt: NativeDate;
66
66
  updatedAt: NativeDate;
67
67
  } & {
68
- effectiveDate: string;
69
68
  fileName: string;
70
69
  sheetName: string;
70
+ effectiveDate: string;
71
71
  transactionsId: mongoose.Types.ObjectId[];
72
72
  statementIds: mongoose.Types.ObjectId[];
73
73
  __v?: number;
@@ -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?: string;
47
46
  status?: string;
47
+ userId?: string;
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?: string;
57
56
  status?: string;
57
+ userId?: string;
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?: string;
67
66
  status?: string;
67
+ userId?: string;
68
68
  executeAt?: Date;
69
69
  }> & {
70
70
  _id: mongoose.Types.ObjectId;
@@ -0,0 +1,79 @@
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
+ export interface IParticipation {
27
+ loanProductId: mongoose.Types.ObjectId;
28
+ settlementFrequency: string;
29
+ settlementDate: string;
30
+ }
31
+ export type TParticipationDoc = mongoose.HydratedDocument<IParticipation>;
32
+ export interface IParticipationLean extends IParticipation {
33
+ _id: mongoose.Types.ObjectId;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ }
37
+ export interface IParticipationPlain extends Omit<IParticipation, 'loanProductId'> {
38
+ _id: string;
39
+ loanProductId: string;
40
+ }
41
+ export type TParticipationModel = mongoose.Model<IParticipation>;
42
+ export declare const ParticipationSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
43
+ timestamps: true;
44
+ }, {
45
+ createdAt: NativeDate;
46
+ updatedAt: NativeDate;
47
+ } & {
48
+ loanProductId: mongoose.Types.ObjectId;
49
+ settlementFrequency: string;
50
+ settlementDate: string;
51
+ __v?: number;
52
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
53
+ createdAt: NativeDate;
54
+ updatedAt: NativeDate;
55
+ } & {
56
+ loanProductId: mongoose.Types.ObjectId;
57
+ settlementFrequency: string;
58
+ settlementDate: string;
59
+ __v?: number;
60
+ }>> & mongoose.FlatRecord<{
61
+ createdAt: NativeDate;
62
+ updatedAt: NativeDate;
63
+ } & {
64
+ loanProductId: mongoose.Types.ObjectId;
65
+ settlementFrequency: string;
66
+ settlementDate: string;
67
+ __v?: number;
68
+ }> & {
69
+ _id: mongoose.Types.ObjectId;
70
+ }>;
71
+ export declare const Participation: mongoose.Model<mongoose.Document<unknown, {}, IParticipation> & IParticipation & {
72
+ _id: mongoose.Types.ObjectId;
73
+ }, {}, {}, {}, mongoose.Document<unknown, {}, mongoose.Document<unknown, {}, IParticipation> & IParticipation & {
74
+ _id: mongoose.Types.ObjectId;
75
+ }> & mongoose.Document<unknown, {}, IParticipation> & IParticipation & {
76
+ _id: mongoose.Types.ObjectId;
77
+ } & Required<{
78
+ _id: mongoose.Types.ObjectId;
79
+ }>, any>;
@@ -0,0 +1,25 @@
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.Participation = exports.ParticipationSchema = void 0;
7
+ const mongoose_1 = __importDefault(require("mongoose"));
8
+ const _models_1 = require("./_models");
9
+ exports.ParticipationSchema = new mongoose_1.default.Schema({
10
+ loanProductId: {
11
+ type: mongoose_1.default.Schema.Types.ObjectId,
12
+ ref: _models_1.MODEL_NAMES.loanProducts,
13
+ required: true,
14
+ },
15
+ settlementFrequency: {
16
+ type: String,
17
+ required: true,
18
+ },
19
+ settlementDate: {
20
+ type: String,
21
+ required: true,
22
+ },
23
+ __v: { type: Number, select: false },
24
+ }, { timestamps: true });
25
+ exports.Participation = mongoose_1.default.model(_models_1.MODEL_NAMES.participations, exports.ParticipationSchema);
@@ -0,0 +1,46 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ import { MODEL_NAMES } from './_models';
4
+
5
+ export interface IParticipation {
6
+ loanProductId: mongoose.Types.ObjectId;
7
+ settlementFrequency : string;
8
+ settlementDate: string;
9
+ }
10
+
11
+ export type TParticipationDoc = mongoose.HydratedDocument<IParticipation>;
12
+
13
+ export interface IParticipationLean extends IParticipation {
14
+ _id: mongoose.Types.ObjectId;
15
+ createdAt: Date;
16
+ updatedAt: Date;
17
+ }
18
+
19
+ export interface IParticipationPlain extends Omit<IParticipation, 'loanProductId'> {
20
+ _id: string;
21
+ loanProductId: string;
22
+ }
23
+
24
+ export type TParticipationModel = mongoose.Model<IParticipation>;
25
+
26
+ export const ParticipationSchema = new mongoose.Schema(
27
+ {
28
+ loanProductId: {
29
+ type: mongoose.Schema.Types.ObjectId,
30
+ ref: MODEL_NAMES.loanProducts,
31
+ required: true,
32
+ },
33
+ settlementFrequency: {
34
+ type: String,
35
+ required: true,
36
+ },
37
+ settlementDate: {
38
+ type: String,
39
+ required: true,
40
+ },
41
+ __v: { type: Number, select: false },
42
+ },
43
+ { timestamps: true },
44
+ );
45
+
46
+ export const Participation = mongoose.model<TParticipationDoc>(MODEL_NAMES.participations, ParticipationSchema);
@@ -65,46 +65,46 @@ export declare const ProductBrokerSchema: mongoose.Schema<any, mongoose.Model<an
65
65
  createdAt: NativeDate;
66
66
  updatedAt: NativeDate;
67
67
  } & {
68
- borrowerId: mongoose.Types.ObjectId;
69
68
  order: number;
70
69
  active: boolean;
70
+ borrowerId: mongoose.Types.ObjectId;
71
71
  productId: mongoose.Types.ObjectId;
72
72
  PLCode: string;
73
73
  loanBrokerId: mongoose.Types.ObjectId;
74
- adminShare: number;
74
+ BSCode: string;
75
75
  interestShare: number;
76
+ adminShare: number;
76
77
  otherShare: number;
77
- BSCode: string;
78
78
  __v?: number;
79
79
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
80
80
  createdAt: NativeDate;
81
81
  updatedAt: NativeDate;
82
82
  } & {
83
- borrowerId: mongoose.Types.ObjectId;
84
83
  order: number;
85
84
  active: boolean;
85
+ borrowerId: mongoose.Types.ObjectId;
86
86
  productId: mongoose.Types.ObjectId;
87
87
  PLCode: string;
88
88
  loanBrokerId: mongoose.Types.ObjectId;
89
- adminShare: number;
89
+ BSCode: string;
90
90
  interestShare: number;
91
+ adminShare: number;
91
92
  otherShare: number;
92
- BSCode: string;
93
93
  __v?: number;
94
94
  }>> & mongoose.FlatRecord<{
95
95
  createdAt: NativeDate;
96
96
  updatedAt: NativeDate;
97
97
  } & {
98
- borrowerId: mongoose.Types.ObjectId;
99
98
  order: number;
100
99
  active: boolean;
100
+ borrowerId: mongoose.Types.ObjectId;
101
101
  productId: mongoose.Types.ObjectId;
102
102
  PLCode: string;
103
103
  loanBrokerId: mongoose.Types.ObjectId;
104
- adminShare: number;
104
+ BSCode: string;
105
105
  interestShare: number;
106
+ adminShare: number;
106
107
  otherShare: number;
107
- BSCode: string;
108
108
  __v?: number;
109
109
  }> & {
110
110
  _id: mongoose.Types.ObjectId;
@@ -56,8 +56,8 @@ export declare const ReceivableSchema: mongoose.Schema<any, mongoose.Model<any,
56
56
  bbcDate: Date;
57
57
  invoices: mongoose.Types.DocumentArray<{
58
58
  bbcDate: Date;
59
- invoiceDate: Date;
60
59
  invoiceNumber: string;
60
+ invoiceDate: Date;
61
61
  customerTitle: string;
62
62
  invoiceAmount: number;
63
63
  dueDate?: Date;
@@ -79,8 +79,8 @@ export declare const ReceivableSchema: mongoose.Schema<any, mongoose.Model<any,
79
79
  bbcDate: Date;
80
80
  invoices: mongoose.Types.DocumentArray<{
81
81
  bbcDate: Date;
82
- invoiceDate: Date;
83
82
  invoiceNumber: string;
83
+ invoiceDate: Date;
84
84
  customerTitle: string;
85
85
  invoiceAmount: number;
86
86
  dueDate?: Date;
@@ -102,8 +102,8 @@ export declare const ReceivableSchema: mongoose.Schema<any, mongoose.Model<any,
102
102
  bbcDate: Date;
103
103
  invoices: mongoose.Types.DocumentArray<{
104
104
  bbcDate: Date;
105
- invoiceDate: Date;
106
105
  invoiceNumber: string;
106
+ invoiceDate: Date;
107
107
  customerTitle: string;
108
108
  invoiceAmount: number;
109
109
  dueDate?: Date;
@@ -184,10 +184,9 @@ export declare const AvailabilitySchema: mongoose.Schema<any, mongoose.Model<any
184
184
  createdAt: NativeDate;
185
185
  updatedAt: NativeDate;
186
186
  } & {
187
- borrowerId: mongoose.Types.ObjectId;
188
187
  bbcDateId: mongoose.Types.ObjectId;
188
+ borrowerId: mongoose.Types.ObjectId;
189
189
  useManualInputs: boolean;
190
- actual?: boolean;
191
190
  __v?: number;
192
191
  summary?: {
193
192
  invoiceAmount: number;
@@ -211,6 +210,7 @@ export declare const AvailabilitySchema: mongoose.Schema<any, mongoose.Model<any
211
210
  ARReserves: number;
212
211
  ARAvailability: number;
213
212
  };
213
+ actual?: boolean;
214
214
  userCalculatedId?: string;
215
215
  calculatedAt?: Date;
216
216
  settings?: {
@@ -244,10 +244,9 @@ export declare const AvailabilitySchema: mongoose.Schema<any, mongoose.Model<any
244
244
  createdAt: NativeDate;
245
245
  updatedAt: NativeDate;
246
246
  } & {
247
- borrowerId: mongoose.Types.ObjectId;
248
247
  bbcDateId: mongoose.Types.ObjectId;
248
+ borrowerId: mongoose.Types.ObjectId;
249
249
  useManualInputs: boolean;
250
- actual?: boolean;
251
250
  __v?: number;
252
251
  summary?: {
253
252
  invoiceAmount: number;
@@ -271,6 +270,7 @@ export declare const AvailabilitySchema: mongoose.Schema<any, mongoose.Model<any
271
270
  ARReserves: number;
272
271
  ARAvailability: number;
273
272
  };
273
+ actual?: boolean;
274
274
  userCalculatedId?: string;
275
275
  calculatedAt?: Date;
276
276
  settings?: {
@@ -304,10 +304,9 @@ export declare const AvailabilitySchema: mongoose.Schema<any, mongoose.Model<any
304
304
  createdAt: NativeDate;
305
305
  updatedAt: NativeDate;
306
306
  } & {
307
- borrowerId: mongoose.Types.ObjectId;
308
307
  bbcDateId: mongoose.Types.ObjectId;
308
+ borrowerId: mongoose.Types.ObjectId;
309
309
  useManualInputs: boolean;
310
- actual?: boolean;
311
310
  __v?: number;
312
311
  summary?: {
313
312
  invoiceAmount: number;
@@ -331,6 +330,7 @@ export declare const AvailabilitySchema: mongoose.Schema<any, mongoose.Model<any
331
330
  ARReserves: number;
332
331
  ARAvailability: number;
333
332
  };
333
+ actual?: boolean;
334
334
  userCalculatedId?: string;
335
335
  calculatedAt?: Date;
336
336
  settings?: {