gemcap-be-common 1.5.60 → 1.5.62

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 (39) 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 +18 -18
  17. package/models/LoanStatementStatus.model.d.ts +6 -6
  18. package/models/LoanStatementTransaction.model.d.ts +9 -9
  19. package/models/LoanTransactionFile.model.d.ts +3 -3
  20. package/models/MicroserviceTask.model.d.ts +3 -3
  21. package/models/Participation.model.d.ts +75 -0
  22. package/models/Participation.model.js +25 -0
  23. package/models/Participation.model.ts +49 -0
  24. package/models/ProductBroker.model.d.ts +9 -9
  25. package/models/Receivable.model.d.ts +3 -3
  26. package/models/ReceivableAvailability.model.d.ts +6 -6
  27. package/models/Reserve.model.d.ts +9 -9
  28. package/models/SalesItem.model.d.ts +3 -3
  29. package/models/TermLoan.model.d.ts +3 -3
  30. package/models/TermLoanCalculated.model.d.ts +18 -18
  31. package/models/UploadedFile.model.d.ts +3 -3
  32. package/models/UploadedSheet.model.d.ts +3 -3
  33. package/models/_index.d.ts +3 -3
  34. package/models/_models.d.ts +1 -0
  35. package/models/_models.js +1 -0
  36. package/models/_models.ts +1 -0
  37. package/package.json +1 -1
  38. package/services/borrowers.service.d.ts +2 -2
  39. 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;
@@ -83,19 +83,21 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
83
83
  createdAt: NativeDate;
84
84
  updatedAt: NativeDate;
85
85
  } & {
86
- borrowerId: mongoose.Types.ObjectId;
87
- masterLoanProductId: mongoose.Types.ObjectId;
86
+ type: string;
87
+ name: string;
88
88
  order: number;
89
89
  active: boolean;
90
+ borrowerId: mongoose.Types.ObjectId;
90
91
  code: string;
91
- name: string;
92
- type: string;
93
92
  startDate: Date;
94
93
  maturityDate: Date;
95
94
  commitment: number;
96
95
  isBalanceActual: boolean;
97
96
  isFloatedBalanceActual: boolean;
97
+ masterLoanProductId: mongoose.Types.ObjectId;
98
98
  isDefaultPaymentOrder: boolean;
99
+ __v?: number;
100
+ settlementCode?: string;
99
101
  masterCode?: string;
100
102
  payoffDate?: Date;
101
103
  isParticipant?: boolean;
@@ -103,26 +105,26 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
103
105
  maxPercent?: number;
104
106
  prepaymentDate?: Date;
105
107
  prepaymentTerms?: string;
106
- settlementCode?: string;
107
108
  deactivationDate?: Date;
108
- __v?: number;
109
109
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
110
110
  createdAt: NativeDate;
111
111
  updatedAt: NativeDate;
112
112
  } & {
113
- borrowerId: mongoose.Types.ObjectId;
114
- masterLoanProductId: mongoose.Types.ObjectId;
113
+ type: string;
114
+ name: string;
115
115
  order: number;
116
116
  active: boolean;
117
+ borrowerId: mongoose.Types.ObjectId;
117
118
  code: string;
118
- name: string;
119
- type: string;
120
119
  startDate: Date;
121
120
  maturityDate: Date;
122
121
  commitment: number;
123
122
  isBalanceActual: boolean;
124
123
  isFloatedBalanceActual: boolean;
124
+ masterLoanProductId: mongoose.Types.ObjectId;
125
125
  isDefaultPaymentOrder: boolean;
126
+ __v?: number;
127
+ settlementCode?: string;
126
128
  masterCode?: string;
127
129
  payoffDate?: Date;
128
130
  isParticipant?: boolean;
@@ -130,26 +132,26 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
130
132
  maxPercent?: number;
131
133
  prepaymentDate?: Date;
132
134
  prepaymentTerms?: string;
133
- settlementCode?: string;
134
135
  deactivationDate?: Date;
135
- __v?: number;
136
136
  }>> & mongoose.FlatRecord<{
137
137
  createdAt: NativeDate;
138
138
  updatedAt: NativeDate;
139
139
  } & {
140
- borrowerId: mongoose.Types.ObjectId;
141
- masterLoanProductId: mongoose.Types.ObjectId;
140
+ type: string;
141
+ name: string;
142
142
  order: number;
143
143
  active: boolean;
144
+ borrowerId: mongoose.Types.ObjectId;
144
145
  code: string;
145
- name: string;
146
- type: string;
147
146
  startDate: Date;
148
147
  maturityDate: Date;
149
148
  commitment: number;
150
149
  isBalanceActual: boolean;
151
150
  isFloatedBalanceActual: boolean;
151
+ masterLoanProductId: mongoose.Types.ObjectId;
152
152
  isDefaultPaymentOrder: boolean;
153
+ __v?: number;
154
+ settlementCode?: string;
153
155
  masterCode?: string;
154
156
  payoffDate?: Date;
155
157
  isParticipant?: boolean;
@@ -157,9 +159,7 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
157
159
  maxPercent?: number;
158
160
  prepaymentDate?: Date;
159
161
  prepaymentTerms?: string;
160
- settlementCode?: string;
161
162
  deactivationDate?: Date;
162
- __v?: number;
163
163
  }> & {
164
164
  _id: mongoose.Types.ObjectId;
165
165
  }>;
@@ -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,75 @@
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: string;
28
+ settlementFrequency: string;
29
+ settlementDate: string;
30
+ }
31
+ export interface IParticipationMongo extends Omit<IParticipation, 'loanProductId'> {
32
+ loanProductId: mongoose.Types.ObjectId;
33
+ }
34
+ export type TParticipationDoc = mongoose.HydratedDocument<IParticipationMongo>;
35
+ export interface IParticipationLean extends IParticipationMongo {
36
+ _id: mongoose.Types.ObjectId;
37
+ createdAt: Date;
38
+ updatedAt: Date;
39
+ }
40
+ export interface IParticipationPlain extends IParticipation {
41
+ _id: string;
42
+ }
43
+ export type TParticipationModel = mongoose.Model<IParticipationMongo>;
44
+ export declare const ParticipationSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
45
+ timestamps: true;
46
+ }, {
47
+ createdAt: NativeDate;
48
+ updatedAt: NativeDate;
49
+ } & {
50
+ loanProductId: mongoose.Types.ObjectId;
51
+ settlementFrequency: string;
52
+ settlementDate: string;
53
+ __v?: number;
54
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
55
+ createdAt: NativeDate;
56
+ updatedAt: NativeDate;
57
+ } & {
58
+ loanProductId: mongoose.Types.ObjectId;
59
+ settlementFrequency: string;
60
+ settlementDate: string;
61
+ __v?: number;
62
+ }>> & mongoose.FlatRecord<{
63
+ createdAt: NativeDate;
64
+ updatedAt: NativeDate;
65
+ } & {
66
+ loanProductId: mongoose.Types.ObjectId;
67
+ settlementFrequency: string;
68
+ settlementDate: string;
69
+ __v?: number;
70
+ }> & {
71
+ _id: mongoose.Types.ObjectId;
72
+ }>;
73
+ export declare const Participation: mongoose.Model<IParticipationMongo, {}, {}, {}, mongoose.Document<unknown, {}, IParticipationMongo> & IParticipationMongo & {
74
+ _id: mongoose.Types.ObjectId;
75
+ }, 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,49 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ import { MODEL_NAMES } from './_models';
4
+
5
+ export interface IParticipation {
6
+ loanProductId: string;
7
+ settlementFrequency: string;
8
+ settlementDate: string;
9
+ }
10
+
11
+ export interface IParticipationMongo extends Omit<IParticipation, 'loanProductId'> {
12
+ loanProductId: mongoose.Types.ObjectId;
13
+ }
14
+
15
+ export type TParticipationDoc = mongoose.HydratedDocument<IParticipationMongo>;
16
+
17
+ export interface IParticipationLean extends IParticipationMongo {
18
+ _id: mongoose.Types.ObjectId;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ }
22
+
23
+ export interface IParticipationPlain extends IParticipation {
24
+ _id: string;
25
+ }
26
+
27
+ export type TParticipationModel = mongoose.Model<IParticipationMongo>;
28
+
29
+ export const ParticipationSchema = new mongoose.Schema(
30
+ {
31
+ loanProductId: {
32
+ type: mongoose.Schema.Types.ObjectId,
33
+ ref: MODEL_NAMES.loanProducts,
34
+ required: true,
35
+ },
36
+ settlementFrequency: {
37
+ type: String,
38
+ required: true,
39
+ },
40
+ settlementDate: {
41
+ type: String,
42
+ required: true,
43
+ },
44
+ __v: { type: Number, select: false },
45
+ },
46
+ { timestamps: true },
47
+ );
48
+
49
+ export const Participation = mongoose.model<IParticipationMongo>(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?: {
@@ -51,14 +51,15 @@ export declare const ReserveSchema: mongoose.Schema<any, mongoose.Model<any, any
51
51
  createdAt: NativeDate;
52
52
  updatedAt: NativeDate;
53
53
  } & {
54
+ bbcDateId: mongoose.Types.ObjectId;
54
55
  items: mongoose.Types.DocumentArray<{
55
56
  type: string;
56
- active: boolean;
57
57
  amount: number;
58
+ active: boolean;
58
59
  reserveName: string;
59
60
  }>;
60
- bbcDateId: mongoose.Types.ObjectId;
61
61
  __v?: number;
62
+ notes?: string;
62
63
  summary?: {
63
64
  RENT?: {
64
65
  amount: number;
@@ -85,19 +86,19 @@ export declare const ReserveSchema: mongoose.Schema<any, mongoose.Model<any, any
85
86
  amount: number;
86
87
  };
87
88
  };
88
- notes?: string;
89
89
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
90
90
  createdAt: NativeDate;
91
91
  updatedAt: NativeDate;
92
92
  } & {
93
+ bbcDateId: mongoose.Types.ObjectId;
93
94
  items: mongoose.Types.DocumentArray<{
94
95
  type: string;
95
- active: boolean;
96
96
  amount: number;
97
+ active: boolean;
97
98
  reserveName: string;
98
99
  }>;
99
- bbcDateId: mongoose.Types.ObjectId;
100
100
  __v?: number;
101
+ notes?: string;
101
102
  summary?: {
102
103
  RENT?: {
103
104
  amount: number;
@@ -124,19 +125,19 @@ export declare const ReserveSchema: mongoose.Schema<any, mongoose.Model<any, any
124
125
  amount: number;
125
126
  };
126
127
  };
127
- notes?: string;
128
128
  }>> & mongoose.FlatRecord<{
129
129
  createdAt: NativeDate;
130
130
  updatedAt: NativeDate;
131
131
  } & {
132
+ bbcDateId: mongoose.Types.ObjectId;
132
133
  items: mongoose.Types.DocumentArray<{
133
134
  type: string;
134
- active: boolean;
135
135
  amount: number;
136
+ active: boolean;
136
137
  reserveName: string;
137
138
  }>;
138
- bbcDateId: mongoose.Types.ObjectId;
139
139
  __v?: number;
140
+ notes?: string;
140
141
  summary?: {
141
142
  RENT?: {
142
143
  amount: number;
@@ -163,7 +164,6 @@ export declare const ReserveSchema: mongoose.Schema<any, mongoose.Model<any, any
163
164
  amount: number;
164
165
  };
165
166
  };
166
- notes?: string;
167
167
  }> & {
168
168
  _id: mongoose.Types.ObjectId;
169
169
  }>;
@@ -57,8 +57,8 @@ export declare const SalesItemSchema: mongoose.Schema<any, mongoose.Model<any, a
57
57
  unitsSold: number;
58
58
  __v?: number;
59
59
  skuName?: string;
60
- unitsCost?: number;
61
60
  unitSalePrice?: number;
61
+ unitsCost?: number;
62
62
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
63
63
  createdAt: NativeDate;
64
64
  updatedAt: NativeDate;
@@ -69,8 +69,8 @@ export declare const SalesItemSchema: mongoose.Schema<any, mongoose.Model<any, a
69
69
  unitsSold: number;
70
70
  __v?: number;
71
71
  skuName?: string;
72
- unitsCost?: number;
73
72
  unitSalePrice?: number;
73
+ unitsCost?: number;
74
74
  }>> & mongoose.FlatRecord<{
75
75
  createdAt: NativeDate;
76
76
  updatedAt: NativeDate;
@@ -81,8 +81,8 @@ export declare const SalesItemSchema: mongoose.Schema<any, mongoose.Model<any, a
81
81
  unitsSold: number;
82
82
  __v?: number;
83
83
  skuName?: string;
84
- unitsCost?: number;
85
84
  unitSalePrice?: number;
85
+ unitsCost?: number;
86
86
  }> & {
87
87
  _id: mongoose.Types.ObjectId;
88
88
  }>;