gemcap-be-common 1.4.40 → 1.4.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.
|
@@ -30,7 +30,75 @@ import { TDictionary } from '../helpers/main.helper';
|
|
|
30
30
|
import { ICRMProspectInfoNote } from './ProspectInfoNote.model';
|
|
31
31
|
import { IProspectFile } from './ProspectFile.model';
|
|
32
32
|
export declare const prospectFieldsDictionary: TDictionary;
|
|
33
|
-
export declare const sharepointFoldersDictionary:
|
|
33
|
+
export declare const sharepointFoldersDictionary: {
|
|
34
|
+
readonly confidential: "Confidential - Personal Information";
|
|
35
|
+
readonly confidentialDeclined: "Declined";
|
|
36
|
+
readonly legal: "Legal";
|
|
37
|
+
readonly portfolio: "Portfolio";
|
|
38
|
+
readonly underwriting: "Underwriting";
|
|
39
|
+
readonly drafts: "Drafts";
|
|
40
|
+
readonly finalDocuments: "Final Documents";
|
|
41
|
+
readonly APReports: "01. AP Reports";
|
|
42
|
+
readonly ARReports: "02. AR Reports";
|
|
43
|
+
readonly borrowingBaseCertificatesAndBackup: "03. Borrowing Base Certificates and Backup";
|
|
44
|
+
readonly financials: "04. Financials";
|
|
45
|
+
readonly inventory: "05. Inventory";
|
|
46
|
+
readonly machineryEquipment: "06. Machinery & Equipment";
|
|
47
|
+
readonly taxes: "07. Taxes";
|
|
48
|
+
readonly insurance: "08. Insurance";
|
|
49
|
+
readonly fieldExams: "09. Field Exams";
|
|
50
|
+
readonly payments: "10. Payments";
|
|
51
|
+
readonly interestStatements: "11. Interest Statements";
|
|
52
|
+
readonly leasesRealEstate: "12. Leases & Real Estate";
|
|
53
|
+
readonly agreementsContracts: "13. Agreements & Contracts";
|
|
54
|
+
readonly liensLitigation: "14. Liens & Litigation";
|
|
55
|
+
readonly verifications: "15. Verifications";
|
|
56
|
+
readonly onlineBankingInstructions: "16. Online Banking Instructions";
|
|
57
|
+
readonly compliance: "17. Compliance";
|
|
58
|
+
readonly portfolio_other: "18. Other";
|
|
59
|
+
readonly dueDiligence: "01. Due Diligence";
|
|
60
|
+
readonly loi: "02. LOI";
|
|
61
|
+
readonly loanMemoApprovals: "03. Loan Memo & Approvals";
|
|
62
|
+
readonly loiTemplates: "zz Templates";
|
|
63
|
+
readonly loanMemo: "01. Loan Memo";
|
|
64
|
+
readonly dataTablesWorkings: "02. Data, Tables & Workings";
|
|
65
|
+
readonly approvalEmails: "03. Approval Emails";
|
|
66
|
+
readonly templatesSamples: "zz Templates and Samples";
|
|
67
|
+
readonly corporateDocuments: "01. Corporate Documents";
|
|
68
|
+
readonly organizationDocumentsGoodStandings: "a. Organization Documents and Good Standings";
|
|
69
|
+
readonly disclosureSchedule: "b. Disclosure Schedule";
|
|
70
|
+
readonly corporateDocuments_insurance: "c. Insurance";
|
|
71
|
+
readonly ownership: "d. Ownership";
|
|
72
|
+
readonly officersManagersStaff: "e. Officers, Managers, Staff";
|
|
73
|
+
readonly lienLitigationSearchesTaxes: "02. Lien & Litigation Searches and Taxes";
|
|
74
|
+
readonly lienLitigationSearch: "a. Lien & Litigation Search";
|
|
75
|
+
readonly disclosedLitigations: "b. Disclosed Litigations";
|
|
76
|
+
readonly payrollTaxStatementsProofOfPayment: "c. Payroll Tax Statements & Proof of Payment";
|
|
77
|
+
readonly incomeTaxReturns: "d. Income Tax Returns";
|
|
78
|
+
readonly personalPropertyTaxStatementsProofOfPayment: "e. Personal Property Tax Statements and Proof of Payment";
|
|
79
|
+
readonly KYC: "03. KYC";
|
|
80
|
+
readonly collateral: "04. Collateral";
|
|
81
|
+
readonly collateral_inventory: "a. Inventory";
|
|
82
|
+
readonly receivables: "b. Receivables";
|
|
83
|
+
readonly equipment: "c. Equipment";
|
|
84
|
+
readonly fieldExamAppraisals: "d. Field Exam & Appraisals";
|
|
85
|
+
readonly borrowingBases: "e. Borrowing Bases";
|
|
86
|
+
readonly financialsBankStatements: "05. Financials and Bank Statements";
|
|
87
|
+
readonly historicalFinancials: "a. Historical Financials";
|
|
88
|
+
readonly projections: "b. Projections";
|
|
89
|
+
readonly accountsPayables: "d. Accounts Payables";
|
|
90
|
+
readonly currentDebt: "e. Current Debt";
|
|
91
|
+
readonly majorContracts: "06. Major Contracts";
|
|
92
|
+
readonly leases: "a. Leases";
|
|
93
|
+
readonly it: "b. IT";
|
|
94
|
+
readonly majorContracts_other: "c. Other";
|
|
95
|
+
readonly intellectualProperty: "07. Intellectual Property";
|
|
96
|
+
readonly fieldExamRequests: "08. Field Exam Requests";
|
|
97
|
+
readonly customerVendorLists: "09. Customer & Vendor Lists";
|
|
98
|
+
readonly other: "10. Other";
|
|
99
|
+
readonly standardEmailAttachments: "zz Standard Email Attachments";
|
|
100
|
+
readonly underwriting_templates: "zz Templates";
|
|
101
|
+
};
|
|
34
102
|
declare enum EProspectPriority {
|
|
35
103
|
LOW = "LOW",
|
|
36
104
|
MEDIUM = "MEDIUM",
|
|
@@ -130,6 +198,7 @@ export declare enum EProspectFileGroups {
|
|
|
130
198
|
projections = "projections",
|
|
131
199
|
accountsPayables = "accountsPayables",
|
|
132
200
|
collateralSales = "collateralSales",
|
|
201
|
+
receivables = "receivables",
|
|
133
202
|
taxes = "taxes",
|
|
134
203
|
taxesIncome = "taxesIncome",
|
|
135
204
|
taxesProperty = "taxesProperty",
|
package/models/Prospect.model.js
CHANGED
|
@@ -175,6 +175,7 @@ var EProspectFileGroups;
|
|
|
175
175
|
EProspectFileGroups["projections"] = "projections";
|
|
176
176
|
EProspectFileGroups["accountsPayables"] = "accountsPayables";
|
|
177
177
|
EProspectFileGroups["collateralSales"] = "collateralSales";
|
|
178
|
+
EProspectFileGroups["receivables"] = "receivables";
|
|
178
179
|
EProspectFileGroups["taxes"] = "taxes";
|
|
179
180
|
EProspectFileGroups["taxesIncome"] = "taxesIncome";
|
|
180
181
|
EProspectFileGroups["taxesProperty"] = "taxesProperty";
|
|
@@ -312,40 +313,44 @@ const externalProspectInitialInfo = () => ({
|
|
|
312
313
|
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.financialInformation]: [
|
|
313
314
|
{
|
|
314
315
|
_id: (0, main_helper_1.getUUID)(),
|
|
315
|
-
_sharepointFolder:
|
|
316
|
+
_sharepointFolder: 'historicalFinancials',
|
|
316
317
|
title: 'Prior 2 years and YTD Income Statement & Balance Sheet in Excel Format',
|
|
317
318
|
},
|
|
318
319
|
{
|
|
319
320
|
_id: (0, main_helper_1.getUUID)(),
|
|
320
|
-
_sharepointFolder:
|
|
321
|
+
_sharepointFolder: 'projections',
|
|
321
322
|
title: 'Currently Monthly Projections',
|
|
322
323
|
},
|
|
323
324
|
{
|
|
324
325
|
_id: (0, main_helper_1.getUUID)(),
|
|
325
|
-
_sharepointFolder:
|
|
326
|
+
_sharepointFolder: 'accountsPayables',
|
|
326
327
|
title: 'Last 3 Month Bank Statements',
|
|
327
328
|
},
|
|
328
329
|
],
|
|
329
330
|
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.accountsReceivables]: [
|
|
330
331
|
{
|
|
331
332
|
_id: (0, main_helper_1.getUUID)(),
|
|
332
|
-
_sharepointFolder:
|
|
333
|
+
_sharepointFolder: 'accountsPayables',
|
|
333
334
|
title: 'Excel Format: Current and past 12 months A/P aging report by invoice date',
|
|
334
335
|
},
|
|
335
336
|
{
|
|
336
337
|
_id: (0, main_helper_1.getUUID)(),
|
|
338
|
+
_sharepointFolder: 'receivables',
|
|
337
339
|
title: 'Excel Format: Current and past 12 months A/R aging report by invoice date',
|
|
338
340
|
},
|
|
339
341
|
{
|
|
340
342
|
_id: (0, main_helper_1.getUUID)(),
|
|
343
|
+
_sharepointFolder: 'receivables',
|
|
341
344
|
title: 'Excel Format: A/R dilution (write-offs) for the trailing 3 months and 12 months',
|
|
342
345
|
},
|
|
343
346
|
{
|
|
344
347
|
_id: (0, main_helper_1.getUUID)(),
|
|
348
|
+
_sharepointFolder: 'receivables',
|
|
345
349
|
title: 'Excel Format: Outstanding / held checks list',
|
|
346
350
|
},
|
|
347
351
|
{
|
|
348
352
|
_id: (0, main_helper_1.getUUID)(),
|
|
353
|
+
_sharepointFolder: 'receivables',
|
|
349
354
|
title: 'Excel Format: Average A/R and A/P turnover in days for the trailing 3 months and 12 months',
|
|
350
355
|
},
|
|
351
356
|
],
|
package/models/Prospect.model.ts
CHANGED
|
@@ -39,7 +39,7 @@ export const prospectFieldsDictionary: TDictionary = {
|
|
|
39
39
|
comments: 'Comments',
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
export const sharepointFoldersDictionary
|
|
42
|
+
export const sharepointFoldersDictionary = {
|
|
43
43
|
confidential: 'Confidential - Personal Information',
|
|
44
44
|
confidentialDeclined: 'Declined',
|
|
45
45
|
|
|
@@ -146,7 +146,11 @@ export const sharepointFoldersDictionary: Record<string, string> = {
|
|
|
146
146
|
// > Underwriting > 01. Due Diligence
|
|
147
147
|
standardEmailAttachments: 'zz Standard Email Attachments',
|
|
148
148
|
underwriting_templates: 'zz Templates',
|
|
149
|
-
};
|
|
149
|
+
} as const;
|
|
150
|
+
|
|
151
|
+
export type TSharepointFolderKey = keyof typeof sharepointFoldersDictionary;
|
|
152
|
+
export type TSharepointFolderValue = typeof sharepointFoldersDictionary[TSharepointFolderKey];
|
|
153
|
+
export type TSharepointFolder = typeof sharepointFoldersDictionary[TSharepointFolderKey];
|
|
150
154
|
|
|
151
155
|
enum EProspectPriority {
|
|
152
156
|
LOW = 'LOW',
|
|
@@ -258,6 +262,7 @@ export enum EProspectFileGroups {
|
|
|
258
262
|
projections = 'projections',
|
|
259
263
|
accountsPayables = 'accountsPayables',
|
|
260
264
|
collateralSales = 'collateralSales',
|
|
265
|
+
receivables = 'receivables',
|
|
261
266
|
taxes = 'taxes',
|
|
262
267
|
taxesIncome = 'taxesIncome',
|
|
263
268
|
taxesProperty = 'taxesProperty',
|
|
@@ -405,40 +410,44 @@ export const externalProspectInitialInfo = (): IProspectExternalNew => ({
|
|
|
405
410
|
[ExternalProspectStageTwoTables.financialInformation]: [
|
|
406
411
|
{
|
|
407
412
|
_id: getUUID(),
|
|
408
|
-
_sharepointFolder:
|
|
413
|
+
_sharepointFolder: 'historicalFinancials',
|
|
409
414
|
title: 'Prior 2 years and YTD Income Statement & Balance Sheet in Excel Format',
|
|
410
415
|
},
|
|
411
416
|
{
|
|
412
417
|
_id: getUUID(),
|
|
413
|
-
_sharepointFolder:
|
|
418
|
+
_sharepointFolder: 'projections',
|
|
414
419
|
title: 'Currently Monthly Projections',
|
|
415
420
|
},
|
|
416
421
|
{
|
|
417
422
|
_id: getUUID(),
|
|
418
|
-
_sharepointFolder:
|
|
423
|
+
_sharepointFolder: 'accountsPayables',
|
|
419
424
|
title: 'Last 3 Month Bank Statements',
|
|
420
425
|
},
|
|
421
426
|
],
|
|
422
427
|
[ExternalProspectStageTwoTables.accountsReceivables]: [
|
|
423
428
|
{
|
|
424
429
|
_id:getUUID(),
|
|
425
|
-
_sharepointFolder:
|
|
430
|
+
_sharepointFolder: 'accountsPayables',
|
|
426
431
|
title: 'Excel Format: Current and past 12 months A/P aging report by invoice date',
|
|
427
432
|
},
|
|
428
433
|
{
|
|
429
434
|
_id: getUUID(),
|
|
435
|
+
_sharepointFolder: 'receivables',
|
|
430
436
|
title: 'Excel Format: Current and past 12 months A/R aging report by invoice date',
|
|
431
437
|
},
|
|
432
438
|
{
|
|
433
439
|
_id: getUUID(),
|
|
440
|
+
_sharepointFolder: 'receivables',
|
|
434
441
|
title: 'Excel Format: A/R dilution (write-offs) for the trailing 3 months and 12 months',
|
|
435
442
|
},
|
|
436
443
|
{
|
|
437
444
|
_id: getUUID(),
|
|
445
|
+
_sharepointFolder: 'receivables',
|
|
438
446
|
title: 'Excel Format: Outstanding / held checks list',
|
|
439
447
|
},
|
|
440
448
|
{
|
|
441
449
|
_id: getUUID(),
|
|
450
|
+
_sharepointFolder: 'receivables',
|
|
442
451
|
title: 'Excel Format: Average A/R and A/P turnover in days for the trailing 3 months and 12 months',
|
|
443
452
|
},
|
|
444
453
|
],
|