gemcap-be-common 1.5.29 → 1.5.30

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.
@@ -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;
@@ -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
  }>;
@@ -81,12 +81,12 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
81
81
  createdAt: NativeDate;
82
82
  updatedAt: NativeDate;
83
83
  } & {
84
- borrowerId: mongoose.Types.ObjectId;
85
- order: number;
86
84
  active: boolean;
87
- code: string;
88
- name: string;
89
85
  type: string;
86
+ name: string;
87
+ order: number;
88
+ borrowerId: mongoose.Types.ObjectId;
89
+ code: string;
90
90
  startDate: Date;
91
91
  maturityDate: Date;
92
92
  commitment: number;
@@ -94,25 +94,25 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
94
94
  isFloatedBalanceActual: boolean;
95
95
  isParticipant: boolean;
96
96
  isDefaultPaymentOrder: boolean;
97
+ __v?: number;
98
+ settlementCode?: string;
97
99
  masterCode?: string;
98
100
  payoffDate?: Date;
99
101
  minPercent?: number;
100
102
  maxPercent?: number;
101
103
  prepaymentDate?: Date;
102
104
  prepaymentTerms?: string;
103
- settlementCode?: string;
104
105
  deactivationDate?: Date;
105
- __v?: number;
106
106
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
107
107
  createdAt: NativeDate;
108
108
  updatedAt: NativeDate;
109
109
  } & {
110
- borrowerId: mongoose.Types.ObjectId;
111
- order: number;
112
110
  active: boolean;
113
- code: string;
114
- name: string;
115
111
  type: string;
112
+ name: string;
113
+ order: number;
114
+ borrowerId: mongoose.Types.ObjectId;
115
+ code: string;
116
116
  startDate: Date;
117
117
  maturityDate: Date;
118
118
  commitment: number;
@@ -120,25 +120,25 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
120
120
  isFloatedBalanceActual: boolean;
121
121
  isParticipant: boolean;
122
122
  isDefaultPaymentOrder: boolean;
123
+ __v?: number;
124
+ settlementCode?: string;
123
125
  masterCode?: string;
124
126
  payoffDate?: Date;
125
127
  minPercent?: number;
126
128
  maxPercent?: number;
127
129
  prepaymentDate?: Date;
128
130
  prepaymentTerms?: string;
129
- settlementCode?: string;
130
131
  deactivationDate?: Date;
131
- __v?: number;
132
132
  }>> & mongoose.FlatRecord<{
133
133
  createdAt: NativeDate;
134
134
  updatedAt: NativeDate;
135
135
  } & {
136
- borrowerId: mongoose.Types.ObjectId;
137
- order: number;
138
136
  active: boolean;
139
- code: string;
140
- name: string;
141
137
  type: string;
138
+ name: string;
139
+ order: number;
140
+ borrowerId: mongoose.Types.ObjectId;
141
+ code: string;
142
142
  startDate: Date;
143
143
  maturityDate: Date;
144
144
  commitment: number;
@@ -146,15 +146,15 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
146
146
  isFloatedBalanceActual: boolean;
147
147
  isParticipant: boolean;
148
148
  isDefaultPaymentOrder: boolean;
149
+ __v?: number;
150
+ settlementCode?: string;
149
151
  masterCode?: string;
150
152
  payoffDate?: Date;
151
153
  minPercent?: number;
152
154
  maxPercent?: number;
153
155
  prepaymentDate?: Date;
154
156
  prepaymentTerms?: string;
155
- settlementCode?: string;
156
157
  deactivationDate?: Date;
157
- __v?: number;
158
158
  }> & {
159
159
  _id: mongoose.Types.ObjectId;
160
160
  }>;
@@ -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;
@@ -71,8 +71,8 @@ export declare const LoanStatementSchema: mongoose.Schema<any, mongoose.Model<an
71
71
  createdAt: NativeDate;
72
72
  updatedAt: NativeDate;
73
73
  } & {
74
- order: number;
75
74
  date: Date;
75
+ order: number;
76
76
  amount: number;
77
77
  chargeId: mongoose.Types.ObjectId;
78
78
  isSystem: boolean;
@@ -86,8 +86,8 @@ export declare const LoanStatementSchema: mongoose.Schema<any, mongoose.Model<an
86
86
  createdAt: NativeDate;
87
87
  updatedAt: NativeDate;
88
88
  } & {
89
- order: number;
90
89
  date: Date;
90
+ order: number;
91
91
  amount: number;
92
92
  chargeId: mongoose.Types.ObjectId;
93
93
  isSystem: boolean;
@@ -101,8 +101,8 @@ export declare const LoanStatementSchema: mongoose.Schema<any, mongoose.Model<an
101
101
  createdAt: NativeDate;
102
102
  updatedAt: NativeDate;
103
103
  } & {
104
- order: number;
105
104
  date: Date;
105
+ order: number;
106
106
  amount: number;
107
107
  chargeId: mongoose.Types.ObjectId;
108
108
  isSystem: boolean;