gemcap-be-common 1.5.41 → 1.5.42

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 (62) hide show
  1. package/classes/sales-item.d.ts +16 -0
  2. package/classes/sales-item.js +23 -0
  3. package/classes/sales-item.ts +28 -0
  4. package/db/collaterals.db.d.ts +5 -1
  5. package/db/collaterals.db.js +3 -0
  6. package/db/collaterals.db.ts +3 -0
  7. package/enums/collaterals.enum.d.ts +1 -0
  8. package/enums/collaterals.enum.js +1 -0
  9. package/enums/collaterals.enum.ts +1 -0
  10. package/helpers/column-desciptions.helper.js +29 -0
  11. package/helpers/column-desciptions.helper.ts +29 -0
  12. package/models/AccountPayableItem.model.d.ts +6 -6
  13. package/models/BBCSheet.model.js +2 -0
  14. package/models/BBCSheet.model.ts +2 -0
  15. package/models/Borrower.model.d.ts +3 -3
  16. package/models/BorrowerCompliance.model.d.ts +12 -12
  17. package/models/BorrowerDataContact.model.d.ts +3 -3
  18. package/models/BorrowerDataInsurance.model.d.ts +3 -3
  19. package/models/BorrowerSettings.model.d.ts +24 -24
  20. package/models/Equipment.model.d.ts +9 -9
  21. package/models/FinancialCompliance.model.d.ts +12 -12
  22. package/models/FinancialComplianceBorrower.model.d.ts +6 -6
  23. package/models/Inventory.model.d.ts +9 -9
  24. package/models/InventoryAvailability.model.d.ts +21 -21
  25. package/models/InventoryAvailabilityItem.model.d.ts +3 -3
  26. package/models/InventoryItem.model.d.ts +12 -12
  27. package/models/InventoryManualEntry.model.d.ts +9 -9
  28. package/models/InventorySeasonalRates.model.d.ts +3 -3
  29. package/models/LoanBroker.model.d.ts +6 -6
  30. package/models/LoanCharges.model.d.ts +12 -12
  31. package/models/LoanPayment.model.d.ts +3 -3
  32. package/models/LoanProducts.model.d.ts +9 -9
  33. package/models/LoanStatementStatus.model.d.ts +6 -6
  34. package/models/LoanStatementTransaction.model.d.ts +9 -9
  35. package/models/LoanTransactionFile.model.d.ts +3 -3
  36. package/models/MicroserviceTask.model.d.ts +3 -3
  37. package/models/PostponedTransactions.model.d.ts +3 -3
  38. package/models/ProductBroker.model.d.ts +12 -12
  39. package/models/Receivable.model.d.ts +3 -3
  40. package/models/ReceivableAvailability.model.d.ts +27 -27
  41. package/models/ReceivableAvailabilityItem.model.d.ts +57 -57
  42. package/models/ReceivableItem.model.d.ts +6 -6
  43. package/models/Reserve.model.d.ts +9 -9
  44. package/models/Sales.model.d.ts +106 -0
  45. package/models/Sales.model.js +66 -0
  46. package/models/Sales.model.ts +85 -0
  47. package/models/SalesItem.model.d.ts +97 -0
  48. package/models/SalesItem.model.js +45 -0
  49. package/models/SalesItem.model.ts +84 -0
  50. package/models/TermLoan.model.d.ts +3 -3
  51. package/models/TermLoanCalculated.model.d.ts +18 -18
  52. package/models/UploadedFile.model.d.ts +3 -3
  53. package/models/UploadedSheet.model.d.ts +3 -3
  54. package/models/_index.d.ts +6 -6
  55. package/models/_models.d.ts +2 -0
  56. package/models/_models.js +2 -0
  57. package/models/_models.ts +2 -0
  58. package/package.json +1 -1
  59. package/services/compliance-borrowers.service.d.ts +1 -1
  60. package/services/uploads.service.js +2 -0
  61. package/services/uploads.service.ts +2 -0
  62. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,16 @@
1
+ interface ISalesLocal {
2
+ bbcDate: Date;
3
+ sku: string;
4
+ skuName: string;
5
+ unitsSold: number;
6
+ unitSalePrice: number;
7
+ }
8
+ export declare class SalesItem implements ISalesLocal {
9
+ bbcDate: Date;
10
+ sku: string;
11
+ skuName: string;
12
+ unitsSold: number;
13
+ unitSalePrice: number;
14
+ constructor(item: Partial<SalesItem>, bbcDate?: any);
15
+ }
16
+ export {};
@@ -0,0 +1,23 @@
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.SalesItem = void 0;
7
+ const lodash_1 = __importDefault(require("lodash"));
8
+ const column_desciptions_helper_1 = require("../helpers/column-desciptions.helper");
9
+ const collaterals_enum_1 = require("../enums/collaterals.enum");
10
+ class SalesItem {
11
+ bbcDate = null;
12
+ sku = '';
13
+ skuName = '';
14
+ unitsSold = 0;
15
+ unitSalePrice = 0;
16
+ constructor(item, bbcDate = null) {
17
+ const itemWithDates = (0, column_desciptions_helper_1.convertIntoDates)(item, collaterals_enum_1.ECollaterals.SALES);
18
+ const itemWithoutNulls = lodash_1.default.omitBy(itemWithDates, (value) => value === null);
19
+ Object.assign(this, itemWithoutNulls);
20
+ this.bbcDate = bbcDate;
21
+ }
22
+ }
23
+ exports.SalesItem = SalesItem;
@@ -0,0 +1,28 @@
1
+ import _ from 'lodash';
2
+
3
+ import { convertIntoDates } from '../helpers/column-desciptions.helper';
4
+ import { ECollaterals } from '../enums/collaterals.enum';
5
+
6
+ interface ISalesLocal {
7
+ bbcDate: Date;
8
+ sku: string;
9
+ skuName: string;
10
+ unitsSold: number;
11
+ unitSalePrice: number;
12
+ }
13
+
14
+ export class SalesItem implements ISalesLocal {
15
+
16
+ bbcDate: Date = null;
17
+ sku: string = '';
18
+ skuName: string = '';
19
+ unitsSold: number = 0;
20
+ unitSalePrice: number = 0;
21
+
22
+ constructor(item: Partial<SalesItem>, bbcDate = null) {
23
+ const itemWithDates = convertIntoDates(item, ECollaterals.SALES);
24
+ const itemWithoutNulls = _.omitBy(itemWithDates, (value) => value === null);
25
+ Object.assign(this, itemWithoutNulls);
26
+ this.bbcDate = bbcDate;
27
+ }
28
+ }
@@ -46,11 +46,15 @@ export declare const collateralMap: {
46
46
  ACCOUNT_PAYABLE: mongoose.Model<import("../models/AccountPayableItem.model").IAccountPayableItemDoc, {}, {}, {}, mongoose.Document<unknown, {}, import("../models/AccountPayableItem.model").IAccountPayableItemDoc> & import("../models/AccountPayableItem.model").IAccountPayableItemDoc & {
47
47
  _id: mongoose.Types.ObjectId;
48
48
  }, any>;
49
+ SALES: mongoose.Model<import("../models/SalesItem.model").ISalesItemDoc, {}, {}, {}, mongoose.Document<unknown, {}, import("../models/SalesItem.model").ISalesItemDoc> & import("../models/SalesItem.model").ISalesItemDoc & {
50
+ _id: mongoose.Types.ObjectId;
51
+ }, any>;
49
52
  };
50
53
  export declare const collateralFields: {
51
54
  INVENTORY: string[];
52
55
  RECEIVABLE: string[];
53
56
  ACCOUNT_PAYABLE: string[];
57
+ SALES: string[];
54
58
  };
55
59
  export declare const COLLATERALS_LOOKUP: ({
56
60
  $lookup: {
@@ -75,7 +79,7 @@ export declare const createQuery: (groupFields: {
75
79
  };
76
80
  };
77
81
  itemQueries: any;
78
- enumKey: "INVENTORY" | "RECEIVABLE" | "ACCOUNT_PAYABLE" | "OTHER" | "CASH" | "LOAN_TRANSACTIONS" | "QUICKBOOKS" | "UPLOADED_BANK_TRANSACTIONS";
82
+ enumKey: "INVENTORY" | "RECEIVABLE" | "ACCOUNT_PAYABLE" | "SALES" | "OTHER" | "CASH" | "LOAN_TRANSACTIONS" | "QUICKBOOKS" | "UPLOADED_BANK_TRANSACTIONS";
79
83
  };
80
84
  export declare const ITEMS_PAGINATION: (paginatorOptions: IPaginatorOptions) => ({
81
85
  $skip: number;
@@ -17,15 +17,18 @@ const enums_helper_1 = require("../helpers/enums.helper");
17
17
  const bbcSheets_db_1 = require("./bbcSheets.db");
18
18
  const bbcDates_db_1 = require("./bbcDates.db");
19
19
  const groups_db_1 = require("./groups.db");
20
+ const SalesItem_model_1 = require("../models/SalesItem.model");
20
21
  exports.collateralMap = {
21
22
  [collaterals_enum_1.ECollaterals.INVENTORY]: InventoryItem_model_1.InventoryItemModel,
22
23
  [collaterals_enum_1.ECollaterals.RECEIVABLE]: ReceivableItem_model_1.ReceivableItemModel,
23
24
  [collaterals_enum_1.ECollaterals.ACCOUNT_PAYABLE]: AccountPayableItem_model_1.AccountPayableItemModel,
25
+ [collaterals_enum_1.ECollaterals.SALES]: SalesItem_model_1.SalesItemModel,
24
26
  };
25
27
  exports.collateralFields = {
26
28
  [collaterals_enum_1.ECollaterals.INVENTORY]: InventoryItem_model_1.INVENTORY_FIELDS,
27
29
  [collaterals_enum_1.ECollaterals.RECEIVABLE]: ReceivableItem_model_1.RECEIVABLE_FIELDS,
28
30
  [collaterals_enum_1.ECollaterals.ACCOUNT_PAYABLE]: AccountPayableItem_model_1.ACCOUNT_PAYABLE_FIELDS,
31
+ [collaterals_enum_1.ECollaterals.SALES]: SalesItem_model_1.SALES_FIELDS,
29
32
  };
30
33
  exports.COLLATERALS_LOOKUP = [
31
34
  {
@@ -13,6 +13,7 @@ import { getEnumKeyByEnumValue } from '../helpers/enums.helper';
13
13
  import { getBBCSheetsByType } from './bbcSheets.db';
14
14
  import { getBBCDatesByBorrower } from './bbcDates.db';
15
15
  import { getBorrowerGroups } from './groups.db';
16
+ import { SALES_FIELDS, SalesItemModel } from '../models/SalesItem.model';
16
17
 
17
18
  export interface IBbcDateWithSheets {
18
19
  _id: mongoose.Types.ObjectId;
@@ -26,12 +27,14 @@ export const collateralMap = {
26
27
  [ECollaterals.INVENTORY]: InventoryItemModel,
27
28
  [ECollaterals.RECEIVABLE]: ReceivableItemModel,
28
29
  [ECollaterals.ACCOUNT_PAYABLE]: AccountPayableItemModel,
30
+ [ECollaterals.SALES]: SalesItemModel,
29
31
  };
30
32
 
31
33
  export const collateralFields = {
32
34
  [ECollaterals.INVENTORY]: INVENTORY_FIELDS,
33
35
  [ECollaterals.RECEIVABLE]: RECEIVABLE_FIELDS,
34
36
  [ECollaterals.ACCOUNT_PAYABLE]: ACCOUNT_PAYABLE_FIELDS,
37
+ [ECollaterals.SALES]: SALES_FIELDS,
35
38
  };
36
39
 
37
40
  export const COLLATERALS_LOOKUP = [
@@ -2,6 +2,7 @@ export declare enum ECollaterals {
2
2
  INVENTORY = "INVENTORY",
3
3
  RECEIVABLE = "RECEIVABLE",
4
4
  ACCOUNT_PAYABLE = "ACCOUNT_PAYABLE",
5
+ SALES = "SALES",
5
6
  OTHER = "OTHER",
6
7
  CASH = "CASH",
7
8
  LOAN_TRANSACTIONS = "LOAN_TRANSACTIONS",
@@ -6,6 +6,7 @@ var ECollaterals;
6
6
  ECollaterals["INVENTORY"] = "INVENTORY";
7
7
  ECollaterals["RECEIVABLE"] = "RECEIVABLE";
8
8
  ECollaterals["ACCOUNT_PAYABLE"] = "ACCOUNT_PAYABLE";
9
+ ECollaterals["SALES"] = "SALES";
9
10
  ECollaterals["OTHER"] = "OTHER";
10
11
  ECollaterals["CASH"] = "CASH";
11
12
  ECollaterals["LOAN_TRANSACTIONS"] = "LOAN_TRANSACTIONS";
@@ -2,6 +2,7 @@ export enum ECollaterals {
2
2
  INVENTORY = 'INVENTORY',
3
3
  RECEIVABLE = 'RECEIVABLE',
4
4
  ACCOUNT_PAYABLE = 'ACCOUNT_PAYABLE',
5
+ SALES = 'SALES',
5
6
  OTHER = 'OTHER',
6
7
  CASH = 'CASH',
7
8
  LOAN_TRANSACTIONS = 'LOAN_TRANSACTIONS',
@@ -212,6 +212,35 @@ exports.COLLATERALS = {
212
212
  { db_title: 'otherInformation2', title: 'Other Information 2', required: false, items: [] },
213
213
  { db_title: 'otherInformation3', title: 'Other Information 3', required: false, items: [] },
214
214
  ],
215
+ [collaterals_enum_1.ECollaterals.SALES]: [
216
+ {
217
+ db_title: 'bbcDate',
218
+ title: 'BBC date',
219
+ required: false,
220
+ items: [],
221
+ validators: [validators_enums_1.EValidators.NOT_EMPTY, validators_enums_1.EValidators.IS_DATE],
222
+ },
223
+ {
224
+ db_title: 'apDate',
225
+ title: 'AP date',
226
+ required: false,
227
+ items: [],
228
+ validators: [validators_enums_1.EValidators.NOT_EMPTY, validators_enums_1.EValidators.IS_DATE],
229
+ isDate: true,
230
+ },
231
+ { db_title: 'poNumber', title: 'PO number', required: false, items: [] },
232
+ { db_title: 'customerName', title: 'Customer name', required: false, items: [] },
233
+ {
234
+ db_title: 'amount',
235
+ title: 'Amount',
236
+ required: true,
237
+ items: [],
238
+ validators: [validators_enums_1.EValidators.NOT_EMPTY, validators_enums_1.EValidators.IS_NUMBER, validators_enums_1.EValidators.NUMBER_GT_NULL],
239
+ },
240
+ { db_title: 'otherInformation1', title: 'Other Information 1', required: false, items: [] },
241
+ { db_title: 'otherInformation2', title: 'Other Information 2', required: false, items: [] },
242
+ { db_title: 'otherInformation3', title: 'Other Information 3', required: false, items: [] },
243
+ ],
215
244
  [collaterals_enum_1.ECollaterals.LOAN_TRANSACTIONS]: [
216
245
  {
217
246
  db_title: 'date',
@@ -212,6 +212,35 @@ COLLATERALS = {
212
212
  { db_title: 'otherInformation2', title: 'Other Information 2', required: false, items: [] },
213
213
  { db_title: 'otherInformation3', title: 'Other Information 3', required: false, items: [] },
214
214
  ],
215
+ [ECollaterals.SALES]: [
216
+ {
217
+ db_title: 'bbcDate',
218
+ title: 'BBC date',
219
+ required: false,
220
+ items: [],
221
+ validators: [EValidators.NOT_EMPTY, EValidators.IS_DATE],
222
+ },
223
+ {
224
+ db_title: 'apDate',
225
+ title: 'AP date',
226
+ required: false,
227
+ items: [],
228
+ validators: [EValidators.NOT_EMPTY, EValidators.IS_DATE],
229
+ isDate: true,
230
+ },
231
+ { db_title: 'poNumber', title: 'PO number', required: false, items: [] },
232
+ { db_title: 'customerName', title: 'Customer name', required: false, items: [] },
233
+ {
234
+ db_title: 'amount',
235
+ title: 'Amount',
236
+ required: true,
237
+ items: [],
238
+ validators: [EValidators.NOT_EMPTY, EValidators.IS_NUMBER, EValidators.NUMBER_GT_NULL],
239
+ },
240
+ { db_title: 'otherInformation1', title: 'Other Information 1', required: false, items: [] },
241
+ { db_title: 'otherInformation2', title: 'Other Information 2', required: false, items: [] },
242
+ { db_title: 'otherInformation3', title: 'Other Information 3', required: false, items: [] },
243
+ ],
215
244
  [ECollaterals.LOAN_TRANSACTIONS]: [
216
245
  {
217
246
  db_title: 'date',
@@ -43,10 +43,10 @@ export declare const AccountPayableItemSchema: mongoose.Schema<any, mongoose.Mod
43
43
  createdAt: NativeDate;
44
44
  updatedAt: NativeDate;
45
45
  } & {
46
- bbcSheetId: mongoose.Types.ObjectId;
47
46
  order: number;
48
- apDate: Date;
49
47
  amount: number;
48
+ bbcSheetId: mongoose.Types.ObjectId;
49
+ apDate: Date;
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
- bbcSheetId: mongoose.Types.ObjectId;
61
60
  order: number;
62
- apDate: Date;
63
61
  amount: number;
62
+ bbcSheetId: mongoose.Types.ObjectId;
63
+ apDate: Date;
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
- bbcSheetId: mongoose.Types.ObjectId;
75
74
  order: number;
76
- apDate: Date;
77
75
  amount: number;
76
+ bbcSheetId: mongoose.Types.ObjectId;
77
+ apDate: Date;
78
78
  __v?: number;
79
79
  poNumber?: string;
80
80
  customerName?: string;
@@ -9,6 +9,7 @@ const _models_1 = require("./_models");
9
9
  const InventoryItem_model_1 = require("./InventoryItem.model");
10
10
  const AccountPayableItem_model_1 = require("./AccountPayableItem.model");
11
11
  const ReceivableItem_model_1 = require("./ReceivableItem.model");
12
+ const SalesItem_model_1 = require("./SalesItem.model");
12
13
  exports.BBCSheetSchema = new mongoose_1.default.Schema({
13
14
  bbcDateId: {
14
15
  type: mongoose_1.default.Schema.Types.ObjectId,
@@ -46,5 +47,6 @@ exports.BBCSheetSchema.pre('findOneAndDelete', async function () {
46
47
  await InventoryItem_model_1.InventoryItemModel.deleteMany({ bbcSheetId: bbcSheetId });
47
48
  await ReceivableItem_model_1.ReceivableItemModel.deleteMany({ bbcSheetId: bbcSheetId });
48
49
  await AccountPayableItem_model_1.AccountPayableItemModel.deleteMany({ bbcSheetId: bbcSheetId });
50
+ await SalesItem_model_1.SalesItemModel.deleteMany({ bbcSheetId: bbcSheetId });
49
51
  });
50
52
  exports.BBCSheetModel = mongoose_1.default.model(_models_1.MODEL_NAMES.BBCSheets, exports.BBCSheetSchema);
@@ -5,6 +5,7 @@ import { IBBCDate } from './BBCDate.model';
5
5
  import { InventoryItemModel } from './InventoryItem.model';
6
6
  import { AccountPayableItemModel } from './AccountPayableItem.model';
7
7
  import { ReceivableItemModel } from './ReceivableItem.model';
8
+ import { SalesItemModel } from './SalesItem.model';
8
9
 
9
10
  export interface IBBCSheet {
10
11
  bbcDateId: mongoose.Types.ObjectId;
@@ -64,6 +65,7 @@ BBCSheetSchema.pre('findOneAndDelete', async function () {
64
65
  await InventoryItemModel.deleteMany({ bbcSheetId: bbcSheetId });
65
66
  await ReceivableItemModel.deleteMany({ bbcSheetId: bbcSheetId });
66
67
  await AccountPayableItemModel.deleteMany({ bbcSheetId: bbcSheetId });
68
+ await SalesItemModel.deleteMany({ bbcSheetId: bbcSheetId });
67
69
  });
68
70
 
69
71
  export const BBCSheetModel: mongoose.Model<IBBCSheetDoc> = mongoose.model<IBBCSheetDoc>(MODEL_NAMES.BBCSheets, BBCSheetSchema);
@@ -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
- active: boolean;
68
67
  name: string;
68
+ active: boolean;
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
- active: boolean;
87
86
  name: string;
87
+ active: boolean;
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
- active: boolean;
106
105
  name: string;
106
+ active: boolean;
107
107
  code: string;
108
108
  title: string;
109
109
  accrualStatus: boolean;
@@ -91,13 +91,13 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
91
91
  user?: string;
92
92
  }>;
93
93
  mainEmails: mongoose.Types.DocumentArray<{
94
- title?: string;
95
94
  email?: string;
95
+ title?: string;
96
96
  isActive?: boolean;
97
97
  }>;
98
98
  financialEmails: mongoose.Types.DocumentArray<{
99
- title?: string;
100
99
  email?: string;
100
+ title?: string;
101
101
  isActive?: boolean;
102
102
  }>;
103
103
  items: mongoose.Types.DocumentArray<{
@@ -105,8 +105,8 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
105
105
  updatedAt: NativeDate;
106
106
  } & {
107
107
  emailAddresses: mongoose.Types.DocumentArray<{
108
- title?: string;
109
108
  email?: string;
109
+ title?: string;
110
110
  isActive?: boolean;
111
111
  }>;
112
112
  instances: mongoose.Types.DocumentArray<{
@@ -124,8 +124,8 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
124
124
  submittedDate?: Date;
125
125
  status?: string;
126
126
  }>;
127
- item?: mongoose.Types.ObjectId;
128
127
  startDate?: Date;
128
+ item?: mongoose.Types.ObjectId;
129
129
  frequency?: string;
130
130
  }>;
131
131
  __v?: number;
@@ -152,13 +152,13 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
152
152
  user?: string;
153
153
  }>;
154
154
  mainEmails: mongoose.Types.DocumentArray<{
155
- title?: string;
156
155
  email?: string;
156
+ title?: string;
157
157
  isActive?: boolean;
158
158
  }>;
159
159
  financialEmails: mongoose.Types.DocumentArray<{
160
- title?: string;
161
160
  email?: string;
161
+ title?: string;
162
162
  isActive?: boolean;
163
163
  }>;
164
164
  items: mongoose.Types.DocumentArray<{
@@ -166,8 +166,8 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
166
166
  updatedAt: NativeDate;
167
167
  } & {
168
168
  emailAddresses: mongoose.Types.DocumentArray<{
169
- title?: string;
170
169
  email?: string;
170
+ title?: string;
171
171
  isActive?: boolean;
172
172
  }>;
173
173
  instances: mongoose.Types.DocumentArray<{
@@ -185,8 +185,8 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
185
185
  submittedDate?: Date;
186
186
  status?: string;
187
187
  }>;
188
- item?: mongoose.Types.ObjectId;
189
188
  startDate?: Date;
189
+ item?: mongoose.Types.ObjectId;
190
190
  frequency?: string;
191
191
  }>;
192
192
  __v?: number;
@@ -213,13 +213,13 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
213
213
  user?: string;
214
214
  }>;
215
215
  mainEmails: mongoose.Types.DocumentArray<{
216
- title?: string;
217
216
  email?: string;
217
+ title?: string;
218
218
  isActive?: boolean;
219
219
  }>;
220
220
  financialEmails: mongoose.Types.DocumentArray<{
221
- title?: string;
222
221
  email?: string;
222
+ title?: string;
223
223
  isActive?: boolean;
224
224
  }>;
225
225
  items: mongoose.Types.DocumentArray<{
@@ -227,8 +227,8 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
227
227
  updatedAt: NativeDate;
228
228
  } & {
229
229
  emailAddresses: mongoose.Types.DocumentArray<{
230
- title?: string;
231
230
  email?: string;
231
+ title?: string;
232
232
  isActive?: boolean;
233
233
  }>;
234
234
  instances: mongoose.Types.DocumentArray<{
@@ -246,8 +246,8 @@ export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Mod
246
246
  submittedDate?: Date;
247
247
  status?: string;
248
248
  }>;
249
- item?: mongoose.Types.ObjectId;
250
249
  startDate?: Date;
250
+ item?: mongoose.Types.ObjectId;
251
251
  frequency?: string;
252
252
  }>;
253
253
  __v?: number;
@@ -36,18 +36,18 @@ export declare const BorrowerDataContactSchema: mongoose.Schema<any, mongoose.Mo
36
36
  versionKey: false;
37
37
  }, {
38
38
  name: string;
39
- title?: string;
40
39
  email?: string;
40
+ title?: string;
41
41
  phone?: string;
42
42
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
43
43
  name: string;
44
- title?: string;
45
44
  email?: string;
45
+ title?: string;
46
46
  phone?: string;
47
47
  }>> & mongoose.FlatRecord<{
48
48
  name: string;
49
- title?: string;
50
49
  email?: string;
50
+ title?: string;
51
51
  phone?: string;
52
52
  }> & {
53
53
  _id: mongoose.Types.ObjectId;
@@ -38,21 +38,21 @@ export declare const BorrowerDataInsuranceSchema: mongoose.Schema<any, mongoose.
38
38
  }, {
39
39
  type: string;
40
40
  coverageAmount: number;
41
+ notes?: string;
41
42
  company?: string;
42
43
  policyDates?: string;
43
- notes?: string;
44
44
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
45
45
  type: string;
46
46
  coverageAmount: number;
47
+ notes?: string;
47
48
  company?: string;
48
49
  policyDates?: string;
49
- notes?: string;
50
50
  }>> & mongoose.FlatRecord<{
51
51
  type: string;
52
52
  coverageAmount: number;
53
+ notes?: string;
53
54
  company?: string;
54
55
  policyDates?: string;
55
- notes?: string;
56
56
  }> & {
57
57
  _id: mongoose.Types.ObjectId;
58
58
  }>;
@@ -94,35 +94,35 @@ export declare const dataSchema: mongoose.Schema<any, mongoose.Model<any, any, a
94
94
  banks: mongoose.Types.ObjectId[];
95
95
  inventories: mongoose.Types.ObjectId[];
96
96
  receivables: mongoose.Types.ObjectId[];
97
- insurance: mongoose.Types.ObjectId[];
98
97
  options: mongoose.Types.ObjectId[];
99
- terms: mongoose.Types.ObjectId[];
100
- bootCollaterals: mongoose.Types.ObjectId[];
98
+ insurance: mongoose.Types.ObjectId[];
101
99
  contacts: mongoose.Types.ObjectId[];
102
100
  guarantees: mongoose.Types.ObjectId[];
103
101
  locations: mongoose.Types.ObjectId[];
102
+ terms: mongoose.Types.ObjectId[];
103
+ bootCollaterals: mongoose.Types.ObjectId[];
104
104
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
105
105
  banks: mongoose.Types.ObjectId[];
106
106
  inventories: mongoose.Types.ObjectId[];
107
107
  receivables: mongoose.Types.ObjectId[];
108
- insurance: mongoose.Types.ObjectId[];
109
108
  options: mongoose.Types.ObjectId[];
110
- terms: mongoose.Types.ObjectId[];
111
- bootCollaterals: mongoose.Types.ObjectId[];
109
+ insurance: mongoose.Types.ObjectId[];
112
110
  contacts: mongoose.Types.ObjectId[];
113
111
  guarantees: mongoose.Types.ObjectId[];
114
112
  locations: mongoose.Types.ObjectId[];
113
+ terms: mongoose.Types.ObjectId[];
114
+ bootCollaterals: mongoose.Types.ObjectId[];
115
115
  }>> & mongoose.FlatRecord<{
116
116
  banks: mongoose.Types.ObjectId[];
117
117
  inventories: mongoose.Types.ObjectId[];
118
118
  receivables: mongoose.Types.ObjectId[];
119
- insurance: mongoose.Types.ObjectId[];
120
119
  options: mongoose.Types.ObjectId[];
121
- terms: mongoose.Types.ObjectId[];
122
- bootCollaterals: mongoose.Types.ObjectId[];
120
+ insurance: mongoose.Types.ObjectId[];
123
121
  contacts: mongoose.Types.ObjectId[];
124
122
  guarantees: mongoose.Types.ObjectId[];
125
123
  locations: mongoose.Types.ObjectId[];
124
+ terms: mongoose.Types.ObjectId[];
125
+ bootCollaterals: mongoose.Types.ObjectId[];
126
126
  }> & {
127
127
  _id: mongoose.Types.ObjectId;
128
128
  }>;
@@ -138,20 +138,20 @@ export declare const BorrowerSettingsSchema: mongoose.Schema<any, mongoose.Model
138
138
  banks: mongoose.Types.ObjectId[];
139
139
  inventories: mongoose.Types.ObjectId[];
140
140
  receivables: mongoose.Types.ObjectId[];
141
- insurance: mongoose.Types.ObjectId[];
142
141
  options: mongoose.Types.ObjectId[];
143
- terms: mongoose.Types.ObjectId[];
144
- bootCollaterals: mongoose.Types.ObjectId[];
142
+ insurance: mongoose.Types.ObjectId[];
145
143
  contacts: mongoose.Types.ObjectId[];
146
144
  guarantees: mongoose.Types.ObjectId[];
147
145
  locations: mongoose.Types.ObjectId[];
146
+ terms: mongoose.Types.ObjectId[];
147
+ bootCollaterals: mongoose.Types.ObjectId[];
148
148
  };
149
+ queries?: any;
150
+ dataTypes?: any;
149
151
  dataAvailability?: {
150
152
  inventories: boolean;
151
153
  receivables: boolean;
152
154
  };
153
- queries?: any;
154
- dataTypes?: any;
155
155
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
156
156
  createdAt: NativeDate;
157
157
  updatedAt: NativeDate;
@@ -162,20 +162,20 @@ export declare const BorrowerSettingsSchema: mongoose.Schema<any, mongoose.Model
162
162
  banks: mongoose.Types.ObjectId[];
163
163
  inventories: mongoose.Types.ObjectId[];
164
164
  receivables: mongoose.Types.ObjectId[];
165
- insurance: mongoose.Types.ObjectId[];
166
165
  options: mongoose.Types.ObjectId[];
167
- terms: mongoose.Types.ObjectId[];
168
- bootCollaterals: mongoose.Types.ObjectId[];
166
+ insurance: mongoose.Types.ObjectId[];
169
167
  contacts: mongoose.Types.ObjectId[];
170
168
  guarantees: mongoose.Types.ObjectId[];
171
169
  locations: mongoose.Types.ObjectId[];
170
+ terms: mongoose.Types.ObjectId[];
171
+ bootCollaterals: mongoose.Types.ObjectId[];
172
172
  };
173
+ queries?: any;
174
+ dataTypes?: any;
173
175
  dataAvailability?: {
174
176
  inventories: boolean;
175
177
  receivables: boolean;
176
178
  };
177
- queries?: any;
178
- dataTypes?: any;
179
179
  }>> & mongoose.FlatRecord<{
180
180
  createdAt: NativeDate;
181
181
  updatedAt: NativeDate;
@@ -186,20 +186,20 @@ export declare const BorrowerSettingsSchema: mongoose.Schema<any, mongoose.Model
186
186
  banks: mongoose.Types.ObjectId[];
187
187
  inventories: mongoose.Types.ObjectId[];
188
188
  receivables: mongoose.Types.ObjectId[];
189
- insurance: mongoose.Types.ObjectId[];
190
189
  options: mongoose.Types.ObjectId[];
191
- terms: mongoose.Types.ObjectId[];
192
- bootCollaterals: mongoose.Types.ObjectId[];
190
+ insurance: mongoose.Types.ObjectId[];
193
191
  contacts: mongoose.Types.ObjectId[];
194
192
  guarantees: mongoose.Types.ObjectId[];
195
193
  locations: mongoose.Types.ObjectId[];
194
+ terms: mongoose.Types.ObjectId[];
195
+ bootCollaterals: mongoose.Types.ObjectId[];
196
196
  };
197
+ queries?: any;
198
+ dataTypes?: any;
197
199
  dataAvailability?: {
198
200
  inventories: boolean;
199
201
  receivables: boolean;
200
202
  };
201
- queries?: any;
202
- dataTypes?: any;
203
203
  }> & {
204
204
  _id: mongoose.Types.ObjectId;
205
205
  }>;