gemcap-be-common 1.3.49 → 1.3.50
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.
- package/models/Prospect.model.d.ts +9 -14
- package/models/Prospect.model.js +17 -39
- package/models/Prospect.model.ts +24 -51
- package/models/ProspectInfoStageOne.model.d.ts +3 -25
- package/models/ProspectInfoStageOne.model.js +2 -24
- package/models/ProspectInfoStageOne.model.ts +3 -24
- package/models/ProspectInfoStageTwo.model.d.ts +13 -3
- package/models/ProspectInfoStageTwo.model.js +12 -2
- package/models/ProspectInfoStageTwo.model.ts +12 -2
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -74,20 +74,16 @@ export interface ICRMProspectInfoStageOne {
|
|
|
74
74
|
DBANames: string;
|
|
75
75
|
websiteAddress: string;
|
|
76
76
|
businessDescription: string;
|
|
77
|
-
numberOfEmployees: string;
|
|
78
|
-
last12MonthsSales: string;
|
|
79
|
-
amountRequest: string;
|
|
80
|
-
descriptionOfCollateral: string;
|
|
81
|
-
[ExternalProspectStageOneTables.listOfShareholders]: unknown[];
|
|
82
|
-
[ExternalProspectStageOneTables.listOfOfficers]: unknown[];
|
|
83
|
-
[ExternalProspectStageOneTables.listOfManagers]: unknown[];
|
|
84
|
-
[ExternalProspectStageOneTables.addressesOfOffices]: unknown[];
|
|
85
|
-
[ExternalProspectStageOneTables.addressesOfWarehouses]: unknown[];
|
|
86
|
-
[ExternalProspectStageOneTables.top5Customers]: unknown[];
|
|
87
77
|
[ExternalProspectStageOneTables.litigation]: unknown[];
|
|
78
|
+
[ExternalProspectStageOneTables.detailsOfCurrentDebt]: unknown[];
|
|
88
79
|
}
|
|
89
80
|
export interface ICRMProspectInfoStageTwo {
|
|
90
|
-
[ExternalProspectStageTwoTables.
|
|
81
|
+
[ExternalProspectStageTwoTables.listOfShareholders]: unknown[];
|
|
82
|
+
[ExternalProspectStageTwoTables.listOfOfficers]: unknown[];
|
|
83
|
+
[ExternalProspectStageTwoTables.listOfManagers]: unknown[];
|
|
84
|
+
[ExternalProspectStageTwoTables.addressesOfOffices]: unknown[];
|
|
85
|
+
[ExternalProspectStageTwoTables.addressesOfWarehouses]: unknown[];
|
|
86
|
+
[ExternalProspectStageTwoTables.topCustomers]: unknown[];
|
|
91
87
|
[ExternalProspectStageTwoTables.itSystems]: unknown[];
|
|
92
88
|
[ExternalProspectStageTwoTables.insuranceBrokers]: unknown[];
|
|
93
89
|
[ExternalProspectStageTwoTables.insurancePolicies]: unknown[];
|
|
@@ -114,10 +110,9 @@ export declare const prospectFileGroupsMap: {
|
|
|
114
110
|
corporateDocuments: string;
|
|
115
111
|
financialsBankInformation: string;
|
|
116
112
|
collateralSales: string;
|
|
117
|
-
liensLitigations: string;
|
|
118
|
-
insurance: string;
|
|
119
|
-
majorContracts: string;
|
|
120
113
|
taxes: string;
|
|
114
|
+
borrowingBase: string;
|
|
115
|
+
majorContracts: string;
|
|
121
116
|
};
|
|
122
117
|
export declare const NO_ROW_ID = "__no_row__";
|
|
123
118
|
export declare const initialFileGroups: () => {};
|
package/models/Prospect.model.js
CHANGED
|
@@ -63,31 +63,17 @@ exports.prospectFileGroups = [
|
|
|
63
63
|
'corporateDocuments',
|
|
64
64
|
'financialsBankInformation',
|
|
65
65
|
'collateralSales',
|
|
66
|
-
'liensLitigations',
|
|
67
|
-
'insurance',
|
|
68
|
-
'majorContracts',
|
|
69
66
|
'taxes',
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.insuranceBrokers,
|
|
73
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.insurancePolicies,
|
|
74
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.financialInformation,
|
|
75
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.accountsReceivables,
|
|
76
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.accountsReceivablesExtra,
|
|
77
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.accountsReceivablesContacts,
|
|
78
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.inventoryInformation,
|
|
79
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.inventoryInformationFiles,
|
|
80
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.inventoryInformationDetails,
|
|
81
|
-
ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.equipment,
|
|
67
|
+
'borrowingBase',
|
|
68
|
+
'majorContracts',
|
|
82
69
|
];
|
|
83
70
|
exports.prospectFileGroupsMap = {
|
|
84
71
|
corporateDocuments: 'Corporate Documents',
|
|
85
72
|
financialsBankInformation: 'Financials & Bank Information',
|
|
86
73
|
collateralSales: 'Collateral & Sales',
|
|
87
|
-
liensLitigations: 'Liens & Litigations',
|
|
88
|
-
insurance: 'Insurance',
|
|
89
|
-
majorContracts: 'Major Contracts',
|
|
90
74
|
taxes: 'Taxes',
|
|
75
|
+
borrowingBase: 'Borrowing Base',
|
|
76
|
+
majorContracts: 'Major Contracts',
|
|
91
77
|
};
|
|
92
78
|
exports.NO_ROW_ID = '__no_row__';
|
|
93
79
|
const initialFileGroups = () => exports.prospectFileGroups.reduce((acc, g) => {
|
|
@@ -105,22 +91,6 @@ const externalProspectInitialInfo = () => ({
|
|
|
105
91
|
DBANames: '',
|
|
106
92
|
websiteAddress: '',
|
|
107
93
|
businessDescription: '',
|
|
108
|
-
[ProspectInfoStageOne_model_1.ExternalProspectStageOneTables.listOfShareholders]: [],
|
|
109
|
-
[ProspectInfoStageOne_model_1.ExternalProspectStageOneTables.listOfOfficers]: [],
|
|
110
|
-
[ProspectInfoStageOne_model_1.ExternalProspectStageOneTables.listOfManagers]: [],
|
|
111
|
-
[ProspectInfoStageOne_model_1.ExternalProspectStageOneTables.addressesOfOffices]: [],
|
|
112
|
-
[ProspectInfoStageOne_model_1.ExternalProspectStageOneTables.addressesOfWarehouses]: [],
|
|
113
|
-
[ProspectInfoStageOne_model_1.ExternalProspectStageOneTables.top5Customers]: [
|
|
114
|
-
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
115
|
-
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
116
|
-
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
117
|
-
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
118
|
-
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
119
|
-
],
|
|
120
|
-
numberOfEmployees: '',
|
|
121
|
-
last12MonthsSales: '',
|
|
122
|
-
amountRequest: '',
|
|
123
|
-
descriptionOfCollateral: '',
|
|
124
94
|
[ProspectInfoStageOne_model_1.ExternalProspectStageOneTables.litigation]: [
|
|
125
95
|
{
|
|
126
96
|
_id: `new_${(0, main_helper_1.getUUID)()}`,
|
|
@@ -128,9 +98,21 @@ const externalProspectInitialInfo = () => ({
|
|
|
128
98
|
comment: '',
|
|
129
99
|
},
|
|
130
100
|
],
|
|
101
|
+
[ProspectInfoStageOne_model_1.ExternalProspectStageOneTables.detailsOfCurrentDebt]: [],
|
|
131
102
|
},
|
|
132
103
|
stageTwo: {
|
|
133
|
-
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.
|
|
104
|
+
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.listOfShareholders]: [],
|
|
105
|
+
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.listOfOfficers]: [],
|
|
106
|
+
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.listOfManagers]: [],
|
|
107
|
+
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.addressesOfOffices]: [],
|
|
108
|
+
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.addressesOfWarehouses]: [],
|
|
109
|
+
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.topCustomers]: [
|
|
110
|
+
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
111
|
+
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
112
|
+
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
113
|
+
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
114
|
+
{ _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
|
|
115
|
+
],
|
|
134
116
|
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.itSystems]: [],
|
|
135
117
|
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.insuranceBrokers]: [],
|
|
136
118
|
[ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.insurancePolicies]: [],
|
|
@@ -252,10 +234,6 @@ exports.CRMProspectInfoExternalValidationSchema = joi_1.default.object({
|
|
|
252
234
|
addressesOfOffices: joi_1.default.array().items(CRMProspectInfoRowValidationSchema),
|
|
253
235
|
addressesOfWarehouses: joi_1.default.array().items(CRMProspectInfoRowValidationSchema),
|
|
254
236
|
top5Customers: joi_1.default.array().items(CRMProspectInfoRowValidationSchema),
|
|
255
|
-
numberOfEmployees: joi_1.default.string().allow('', null),
|
|
256
|
-
last12MonthsSales: joi_1.default.string().allow('', null),
|
|
257
|
-
amountRequest: joi_1.default.string().allow('', null),
|
|
258
|
-
descriptionOfCollateral: joi_1.default.string().allow('', null),
|
|
259
237
|
});
|
|
260
238
|
exports.CRMProspectInfoValidationSchema = joi_1.default.object({
|
|
261
239
|
isLocked: joi_1.default.boolean().allow(null),
|
package/models/Prospect.model.ts
CHANGED
|
@@ -86,21 +86,17 @@ export interface ICRMProspectInfoStageOne {
|
|
|
86
86
|
DBANames: string;
|
|
87
87
|
websiteAddress: string;
|
|
88
88
|
businessDescription: string;
|
|
89
|
-
numberOfEmployees: string;
|
|
90
|
-
last12MonthsSales: string;
|
|
91
|
-
amountRequest: string;
|
|
92
|
-
descriptionOfCollateral: string;
|
|
93
|
-
[ExternalProspectStageOneTables.listOfShareholders]: unknown[];
|
|
94
|
-
[ExternalProspectStageOneTables.listOfOfficers]: unknown[];
|
|
95
|
-
[ExternalProspectStageOneTables.listOfManagers]: unknown[];
|
|
96
|
-
[ExternalProspectStageOneTables.addressesOfOffices]: unknown[];
|
|
97
|
-
[ExternalProspectStageOneTables.addressesOfWarehouses]: unknown[];
|
|
98
|
-
[ExternalProspectStageOneTables.top5Customers]: unknown[];
|
|
99
89
|
[ExternalProspectStageOneTables.litigation]: unknown[],
|
|
90
|
+
[ExternalProspectStageOneTables.detailsOfCurrentDebt]: unknown[],
|
|
100
91
|
}
|
|
101
92
|
|
|
102
93
|
export interface ICRMProspectInfoStageTwo {
|
|
103
|
-
[ExternalProspectStageTwoTables.
|
|
94
|
+
[ExternalProspectStageTwoTables.listOfShareholders]: unknown[];
|
|
95
|
+
[ExternalProspectStageTwoTables.listOfOfficers]: unknown[];
|
|
96
|
+
[ExternalProspectStageTwoTables.listOfManagers]: unknown[];
|
|
97
|
+
[ExternalProspectStageTwoTables.addressesOfOffices]: unknown[];
|
|
98
|
+
[ExternalProspectStageTwoTables.addressesOfWarehouses]: unknown[];
|
|
99
|
+
[ExternalProspectStageTwoTables.topCustomers]: unknown[];
|
|
104
100
|
[ExternalProspectStageTwoTables.itSystems]: unknown[],
|
|
105
101
|
[ExternalProspectStageTwoTables.insuranceBrokers]: unknown[],
|
|
106
102
|
[ExternalProspectStageTwoTables.insurancePolicies]: unknown[],
|
|
@@ -129,33 +125,18 @@ export const prospectFileGroups: string[] = [
|
|
|
129
125
|
'corporateDocuments',
|
|
130
126
|
'financialsBankInformation',
|
|
131
127
|
'collateralSales',
|
|
132
|
-
'liensLitigations',
|
|
133
|
-
'insurance',
|
|
134
|
-
'majorContracts',
|
|
135
128
|
'taxes',
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
ExternalProspectStageTwoTables.itSystems,
|
|
139
|
-
ExternalProspectStageTwoTables.insuranceBrokers,
|
|
140
|
-
ExternalProspectStageTwoTables.insurancePolicies,
|
|
141
|
-
ExternalProspectStageTwoTables.financialInformation,
|
|
142
|
-
ExternalProspectStageTwoTables.accountsReceivables,
|
|
143
|
-
ExternalProspectStageTwoTables.accountsReceivablesExtra,
|
|
144
|
-
ExternalProspectStageTwoTables.accountsReceivablesContacts,
|
|
145
|
-
ExternalProspectStageTwoTables.inventoryInformation,
|
|
146
|
-
ExternalProspectStageTwoTables.inventoryInformationFiles,
|
|
147
|
-
ExternalProspectStageTwoTables.inventoryInformationDetails,
|
|
148
|
-
ExternalProspectStageTwoTables.equipment,
|
|
129
|
+
'borrowingBase',
|
|
130
|
+
'majorContracts',
|
|
149
131
|
];
|
|
150
132
|
|
|
151
133
|
export const prospectFileGroupsMap = {
|
|
152
134
|
corporateDocuments: 'Corporate Documents',
|
|
153
135
|
financialsBankInformation: 'Financials & Bank Information',
|
|
154
136
|
collateralSales: 'Collateral & Sales',
|
|
155
|
-
liensLitigations: 'Liens & Litigations',
|
|
156
|
-
insurance: 'Insurance',
|
|
157
|
-
majorContracts: 'Major Contracts',
|
|
158
137
|
taxes: 'Taxes',
|
|
138
|
+
borrowingBase: 'Borrowing Base',
|
|
139
|
+
majorContracts: 'Major Contracts',
|
|
159
140
|
};
|
|
160
141
|
|
|
161
142
|
export const NO_ROW_ID = '__no_row__';
|
|
@@ -175,22 +156,6 @@ export const externalProspectInitialInfo = (): ICRMProspectExternalNew => ({
|
|
|
175
156
|
DBANames: '',
|
|
176
157
|
websiteAddress: '',
|
|
177
158
|
businessDescription: '',
|
|
178
|
-
[ExternalProspectStageOneTables.listOfShareholders]: [],
|
|
179
|
-
[ExternalProspectStageOneTables.listOfOfficers]: [],
|
|
180
|
-
[ExternalProspectStageOneTables.listOfManagers]: [],
|
|
181
|
-
[ExternalProspectStageOneTables.addressesOfOffices]: [],
|
|
182
|
-
[ExternalProspectStageOneTables.addressesOfWarehouses]: [],
|
|
183
|
-
[ExternalProspectStageOneTables.top5Customers]: [
|
|
184
|
-
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
185
|
-
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
186
|
-
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
187
|
-
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
188
|
-
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
189
|
-
],
|
|
190
|
-
numberOfEmployees: '',
|
|
191
|
-
last12MonthsSales: '',
|
|
192
|
-
amountRequest: '',
|
|
193
|
-
descriptionOfCollateral: '',
|
|
194
159
|
[ExternalProspectStageOneTables.litigation]: [
|
|
195
160
|
{
|
|
196
161
|
_id: `new_${getUUID()}`,
|
|
@@ -198,9 +163,21 @@ export const externalProspectInitialInfo = (): ICRMProspectExternalNew => ({
|
|
|
198
163
|
comment: '',
|
|
199
164
|
},
|
|
200
165
|
],
|
|
166
|
+
[ExternalProspectStageOneTables.detailsOfCurrentDebt]: [],
|
|
201
167
|
},
|
|
202
168
|
stageTwo: {
|
|
203
|
-
[ExternalProspectStageTwoTables.
|
|
169
|
+
[ExternalProspectStageTwoTables.listOfShareholders]: [],
|
|
170
|
+
[ExternalProspectStageTwoTables.listOfOfficers]: [],
|
|
171
|
+
[ExternalProspectStageTwoTables.listOfManagers]: [],
|
|
172
|
+
[ExternalProspectStageTwoTables.addressesOfOffices]: [],
|
|
173
|
+
[ExternalProspectStageTwoTables.addressesOfWarehouses]: [],
|
|
174
|
+
[ExternalProspectStageTwoTables.topCustomers]: [
|
|
175
|
+
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
176
|
+
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
177
|
+
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
178
|
+
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
179
|
+
{ _id: `new_${getUUID()}`, name: '', value: '' },
|
|
180
|
+
],
|
|
204
181
|
[ExternalProspectStageTwoTables.itSystems]: [],
|
|
205
182
|
[ExternalProspectStageTwoTables.insuranceBrokers]: [],
|
|
206
183
|
[ExternalProspectStageTwoTables.insurancePolicies]: [],
|
|
@@ -397,10 +374,6 @@ export const CRMProspectInfoExternalValidationSchema = Joi.object({
|
|
|
397
374
|
addressesOfOffices: Joi.array().items(CRMProspectInfoRowValidationSchema),
|
|
398
375
|
addressesOfWarehouses: Joi.array().items(CRMProspectInfoRowValidationSchema),
|
|
399
376
|
top5Customers: Joi.array().items(CRMProspectInfoRowValidationSchema),
|
|
400
|
-
numberOfEmployees: Joi.string().allow('', null),
|
|
401
|
-
last12MonthsSales: Joi.string().allow('', null),
|
|
402
|
-
amountRequest: Joi.string().allow('', null),
|
|
403
|
-
descriptionOfCollateral: Joi.string().allow('', null),
|
|
404
377
|
});
|
|
405
378
|
|
|
406
379
|
export const CRMProspectInfoValidationSchema = Joi.object({
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export declare enum ExternalProspectStageOneTables {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
listOfManagers = "listOfManagers",
|
|
5
|
-
addressesOfOffices = "addressesOfOffices",
|
|
6
|
-
addressesOfWarehouses = "addressesOfWarehouses",
|
|
7
|
-
top5Customers = "top5Customers",
|
|
8
|
-
litigation = "litigation"
|
|
2
|
+
litigation = "litigation",
|
|
3
|
+
detailsOfCurrentDebt = "detailsOfCurrentDebt"
|
|
9
4
|
}
|
|
10
5
|
export declare const ProspectInfoStageOne: {
|
|
11
6
|
companyLegalName: {
|
|
@@ -26,23 +21,6 @@ export declare const ProspectInfoStageOne: {
|
|
|
26
21
|
businessDescription: {
|
|
27
22
|
type: StringConstructor;
|
|
28
23
|
};
|
|
29
|
-
numberOfEmployees: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
};
|
|
32
|
-
last12MonthsSales: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
};
|
|
35
|
-
amountRequest: {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
};
|
|
38
|
-
descriptionOfCollateral: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
};
|
|
41
|
-
listOfShareholders: {};
|
|
42
|
-
listOfOfficers: {};
|
|
43
|
-
listOfManagers: {};
|
|
44
|
-
addressesOfOffices: {};
|
|
45
|
-
addressesOfWarehouses: {};
|
|
46
|
-
top5Customers: {};
|
|
47
24
|
litigation: {};
|
|
25
|
+
detailsOfCurrentDebt: {};
|
|
48
26
|
};
|
|
@@ -7,13 +7,8 @@ exports.ProspectInfoStageOne = exports.ExternalProspectStageOneTables = void 0;
|
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
var ExternalProspectStageOneTables;
|
|
9
9
|
(function (ExternalProspectStageOneTables) {
|
|
10
|
-
ExternalProspectStageOneTables["listOfShareholders"] = "listOfShareholders";
|
|
11
|
-
ExternalProspectStageOneTables["listOfOfficers"] = "listOfOfficers";
|
|
12
|
-
ExternalProspectStageOneTables["listOfManagers"] = "listOfManagers";
|
|
13
|
-
ExternalProspectStageOneTables["addressesOfOffices"] = "addressesOfOffices";
|
|
14
|
-
ExternalProspectStageOneTables["addressesOfWarehouses"] = "addressesOfWarehouses";
|
|
15
|
-
ExternalProspectStageOneTables["top5Customers"] = "top5Customers";
|
|
16
10
|
ExternalProspectStageOneTables["litigation"] = "litigation";
|
|
11
|
+
ExternalProspectStageOneTables["detailsOfCurrentDebt"] = "detailsOfCurrentDebt";
|
|
17
12
|
})(ExternalProspectStageOneTables || (exports.ExternalProspectStageOneTables = ExternalProspectStageOneTables = {}));
|
|
18
13
|
const InfoRowSchema = new mongoose_1.default.Schema({
|
|
19
14
|
name: {
|
|
@@ -45,23 +40,6 @@ exports.ProspectInfoStageOne = {
|
|
|
45
40
|
businessDescription: {
|
|
46
41
|
type: String,
|
|
47
42
|
},
|
|
48
|
-
numberOfEmployees: {
|
|
49
|
-
type: String,
|
|
50
|
-
},
|
|
51
|
-
last12MonthsSales: {
|
|
52
|
-
type: String,
|
|
53
|
-
},
|
|
54
|
-
amountRequest: {
|
|
55
|
-
type: String,
|
|
56
|
-
},
|
|
57
|
-
descriptionOfCollateral: {
|
|
58
|
-
type: String,
|
|
59
|
-
},
|
|
60
|
-
[ExternalProspectStageOneTables.listOfShareholders]: {},
|
|
61
|
-
[ExternalProspectStageOneTables.listOfOfficers]: {},
|
|
62
|
-
[ExternalProspectStageOneTables.listOfManagers]: {},
|
|
63
|
-
[ExternalProspectStageOneTables.addressesOfOffices]: {},
|
|
64
|
-
[ExternalProspectStageOneTables.addressesOfWarehouses]: {},
|
|
65
|
-
[ExternalProspectStageOneTables.top5Customers]: {},
|
|
66
43
|
[ExternalProspectStageOneTables.litigation]: {},
|
|
44
|
+
[ExternalProspectStageOneTables.detailsOfCurrentDebt]: {},
|
|
67
45
|
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
|
+
import { ExternalProspectStageTwoTables } from './ProspectInfoStageTwo.model';
|
|
2
3
|
|
|
3
4
|
export enum ExternalProspectStageOneTables {
|
|
4
|
-
listOfShareholders = 'listOfShareholders',
|
|
5
|
-
listOfOfficers = 'listOfOfficers',
|
|
6
|
-
listOfManagers = 'listOfManagers',
|
|
7
|
-
addressesOfOffices = 'addressesOfOffices',
|
|
8
|
-
addressesOfWarehouses = 'addressesOfWarehouses',
|
|
9
|
-
top5Customers = 'top5Customers',
|
|
10
5
|
litigation = 'litigation',
|
|
6
|
+
detailsOfCurrentDebt = 'detailsOfCurrentDebt',
|
|
11
7
|
}
|
|
12
8
|
|
|
13
9
|
const InfoRowSchema = new mongoose.Schema({
|
|
@@ -41,23 +37,6 @@ export const ProspectInfoStageOne = {
|
|
|
41
37
|
businessDescription: {
|
|
42
38
|
type: String,
|
|
43
39
|
},
|
|
44
|
-
numberOfEmployees: {
|
|
45
|
-
type: String,
|
|
46
|
-
},
|
|
47
|
-
last12MonthsSales: {
|
|
48
|
-
type: String,
|
|
49
|
-
},
|
|
50
|
-
amountRequest: {
|
|
51
|
-
type: String,
|
|
52
|
-
},
|
|
53
|
-
descriptionOfCollateral: {
|
|
54
|
-
type: String,
|
|
55
|
-
},
|
|
56
|
-
[ExternalProspectStageOneTables.listOfShareholders]: {},
|
|
57
|
-
[ExternalProspectStageOneTables.listOfOfficers]: {},
|
|
58
|
-
[ExternalProspectStageOneTables.listOfManagers]: {},
|
|
59
|
-
[ExternalProspectStageOneTables.addressesOfOffices]: {},
|
|
60
|
-
[ExternalProspectStageOneTables.addressesOfWarehouses]: {},
|
|
61
|
-
[ExternalProspectStageOneTables.top5Customers]: {},
|
|
62
40
|
[ExternalProspectStageOneTables.litigation]: {},
|
|
41
|
+
[ExternalProspectStageOneTables.detailsOfCurrentDebt]: {},
|
|
63
42
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare enum ExternalProspectStageTwoTables {
|
|
2
|
-
detailsOfCurrentDebt = "detailsOfCurrentDebt",
|
|
3
2
|
itSystems = "itSystems",
|
|
4
3
|
insuranceBrokers = "insuranceBrokers",
|
|
5
4
|
insurancePolicies = "insurancePolicies",
|
|
@@ -10,10 +9,21 @@ export declare enum ExternalProspectStageTwoTables {
|
|
|
10
9
|
inventoryInformation = "inventoryInformation",
|
|
11
10
|
inventoryInformationFiles = "inventoryInformationFiles",
|
|
12
11
|
inventoryInformationDetails = "inventoryInformationDetails",
|
|
13
|
-
equipment = "equipment"
|
|
12
|
+
equipment = "equipment",
|
|
13
|
+
listOfShareholders = "listOfShareholders",
|
|
14
|
+
listOfOfficers = "listOfOfficers",
|
|
15
|
+
listOfManagers = "listOfManagers",
|
|
16
|
+
addressesOfOffices = "addressesOfOffices",
|
|
17
|
+
addressesOfWarehouses = "addressesOfWarehouses",
|
|
18
|
+
topCustomers = "topCustomers"
|
|
14
19
|
}
|
|
15
20
|
export declare const ProspectInfoStageTwo: {
|
|
16
|
-
|
|
21
|
+
listOfShareholders: {};
|
|
22
|
+
listOfOfficers: {};
|
|
23
|
+
listOfManagers: {};
|
|
24
|
+
addressesOfOffices: {};
|
|
25
|
+
addressesOfWarehouses: {};
|
|
26
|
+
topCustomers: {};
|
|
17
27
|
itSystems: {};
|
|
18
28
|
insuranceBrokers: {};
|
|
19
29
|
insurancePolicies: {};
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ProspectInfoStageTwo = exports.ExternalProspectStageTwoTables = void 0;
|
|
4
4
|
var ExternalProspectStageTwoTables;
|
|
5
5
|
(function (ExternalProspectStageTwoTables) {
|
|
6
|
-
ExternalProspectStageTwoTables["detailsOfCurrentDebt"] = "detailsOfCurrentDebt";
|
|
7
6
|
ExternalProspectStageTwoTables["itSystems"] = "itSystems";
|
|
8
7
|
ExternalProspectStageTwoTables["insuranceBrokers"] = "insuranceBrokers";
|
|
9
8
|
ExternalProspectStageTwoTables["insurancePolicies"] = "insurancePolicies";
|
|
@@ -15,9 +14,20 @@ var ExternalProspectStageTwoTables;
|
|
|
15
14
|
ExternalProspectStageTwoTables["inventoryInformationFiles"] = "inventoryInformationFiles";
|
|
16
15
|
ExternalProspectStageTwoTables["inventoryInformationDetails"] = "inventoryInformationDetails";
|
|
17
16
|
ExternalProspectStageTwoTables["equipment"] = "equipment";
|
|
17
|
+
ExternalProspectStageTwoTables["listOfShareholders"] = "listOfShareholders";
|
|
18
|
+
ExternalProspectStageTwoTables["listOfOfficers"] = "listOfOfficers";
|
|
19
|
+
ExternalProspectStageTwoTables["listOfManagers"] = "listOfManagers";
|
|
20
|
+
ExternalProspectStageTwoTables["addressesOfOffices"] = "addressesOfOffices";
|
|
21
|
+
ExternalProspectStageTwoTables["addressesOfWarehouses"] = "addressesOfWarehouses";
|
|
22
|
+
ExternalProspectStageTwoTables["topCustomers"] = "topCustomers";
|
|
18
23
|
})(ExternalProspectStageTwoTables || (exports.ExternalProspectStageTwoTables = ExternalProspectStageTwoTables = {}));
|
|
19
24
|
exports.ProspectInfoStageTwo = {
|
|
20
|
-
[ExternalProspectStageTwoTables.
|
|
25
|
+
[ExternalProspectStageTwoTables.listOfShareholders]: {},
|
|
26
|
+
[ExternalProspectStageTwoTables.listOfOfficers]: {},
|
|
27
|
+
[ExternalProspectStageTwoTables.listOfManagers]: {},
|
|
28
|
+
[ExternalProspectStageTwoTables.addressesOfOffices]: {},
|
|
29
|
+
[ExternalProspectStageTwoTables.addressesOfWarehouses]: {},
|
|
30
|
+
[ExternalProspectStageTwoTables.topCustomers]: {},
|
|
21
31
|
[ExternalProspectStageTwoTables.itSystems]: {},
|
|
22
32
|
[ExternalProspectStageTwoTables.insuranceBrokers]: {},
|
|
23
33
|
[ExternalProspectStageTwoTables.insurancePolicies]: {},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export enum ExternalProspectStageTwoTables {
|
|
2
|
-
detailsOfCurrentDebt = 'detailsOfCurrentDebt',
|
|
3
2
|
itSystems = 'itSystems',
|
|
4
3
|
insuranceBrokers = 'insuranceBrokers',
|
|
5
4
|
insurancePolicies = 'insurancePolicies',
|
|
@@ -11,10 +10,21 @@ export enum ExternalProspectStageTwoTables {
|
|
|
11
10
|
inventoryInformationFiles = 'inventoryInformationFiles',
|
|
12
11
|
inventoryInformationDetails = 'inventoryInformationDetails',
|
|
13
12
|
equipment = 'equipment',
|
|
13
|
+
listOfShareholders = 'listOfShareholders',
|
|
14
|
+
listOfOfficers = 'listOfOfficers',
|
|
15
|
+
listOfManagers = 'listOfManagers',
|
|
16
|
+
addressesOfOffices = 'addressesOfOffices',
|
|
17
|
+
addressesOfWarehouses = 'addressesOfWarehouses',
|
|
18
|
+
topCustomers = 'topCustomers',
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
export const ProspectInfoStageTwo = {
|
|
17
|
-
[ExternalProspectStageTwoTables.
|
|
22
|
+
[ExternalProspectStageTwoTables.listOfShareholders]: {},
|
|
23
|
+
[ExternalProspectStageTwoTables.listOfOfficers]: {},
|
|
24
|
+
[ExternalProspectStageTwoTables.listOfManagers]: {},
|
|
25
|
+
[ExternalProspectStageTwoTables.addressesOfOffices]: {},
|
|
26
|
+
[ExternalProspectStageTwoTables.addressesOfWarehouses]: {},
|
|
27
|
+
[ExternalProspectStageTwoTables.topCustomers]: {},
|
|
18
28
|
[ExternalProspectStageTwoTables.itSystems]: {},
|
|
19
29
|
[ExternalProspectStageTwoTables.insuranceBrokers]: {},
|
|
20
30
|
[ExternalProspectStageTwoTables.insurancePolicies]: {},
|