gemcap-be-common 1.3.48 → 1.3.49

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.
@@ -25,6 +25,7 @@
25
25
  import mongoose, { Document, Model } from 'mongoose';
26
26
  import Joi from 'joi';
27
27
  import { ExternalProspectStageTwoTables } from './ProspectInfoStageTwo.model';
28
+ import { ExternalProspectStageOneTables } from './ProspectInfoStageOne.model';
28
29
  import { TDictionary } from '../helpers/main.helper';
29
30
  export declare const prospectFieldsDictionary: TDictionary;
30
31
  declare enum EProspectPriority {
@@ -36,7 +37,6 @@ export declare enum EProspectStatus {
36
37
  PROSPECT = "PROSPECT",
37
38
  TERM_SHEET = "TERM_SHEET",
38
39
  DUE_DILIGENCE = "DUE_DILIGENCE",
39
- PHASE_2 = "PHASE_2",
40
40
  LOAN_DOCUMENTS = "LOAN_DOCUMENTS",
41
41
  FUNDED = "FUNDED"
42
42
  }
@@ -69,34 +69,36 @@ export interface ICRMProspectInfoRow {
69
69
  }
70
70
  export interface ICRMProspectInfoStageOne {
71
71
  companyLegalName: string;
72
+ companyLegalAddress: string;
73
+ companyCorrespondenceAddress: string;
72
74
  DBANames: string;
73
75
  websiteAddress: string;
74
76
  businessDescription: string;
75
- listOfShareholders: ICRMProspectInfoRow[];
76
- listOfOfficers: ICRMProspectInfoRow[];
77
- listOfManagers: ICRMProspectInfoRow[];
78
- addressesOfOffices: ICRMProspectInfoRow[];
79
- addressesOfWarehouses: ICRMProspectInfoRow[];
80
- top5Customers: ICRMProspectInfoRow[];
81
77
  numberOfEmployees: string;
82
78
  last12MonthsSales: string;
83
79
  amountRequest: string;
84
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
+ [ExternalProspectStageOneTables.litigation]: unknown[];
85
88
  }
86
89
  export interface ICRMProspectInfoStageTwo {
87
- [ExternalProspectStageTwoTables.detailsOfCurrentDebt]: any[];
88
- [ExternalProspectStageTwoTables.itSystems]: any[];
89
- [ExternalProspectStageTwoTables.insuranceBrokers]: any[];
90
- [ExternalProspectStageTwoTables.insurancePolicies]: any[];
91
- [ExternalProspectStageTwoTables.litigation]: any[];
92
- [ExternalProspectStageTwoTables.financialInformation]: any[];
93
- [ExternalProspectStageTwoTables.accountsReceivables]: any[];
94
- [ExternalProspectStageTwoTables.accountsReceivablesExtra]: any[];
95
- [ExternalProspectStageTwoTables.accountsReceivablesContacts]: any[];
96
- [ExternalProspectStageTwoTables.inventoryInformationFiles]: any[];
97
- [ExternalProspectStageTwoTables.inventoryInformationDetails]: any[];
98
- [ExternalProspectStageTwoTables.inventoryInformation]: any[];
99
- [ExternalProspectStageTwoTables.equipment]: any[];
90
+ [ExternalProspectStageTwoTables.detailsOfCurrentDebt]: unknown[];
91
+ [ExternalProspectStageTwoTables.itSystems]: unknown[];
92
+ [ExternalProspectStageTwoTables.insuranceBrokers]: unknown[];
93
+ [ExternalProspectStageTwoTables.insurancePolicies]: unknown[];
94
+ [ExternalProspectStageTwoTables.financialInformation]: unknown[];
95
+ [ExternalProspectStageTwoTables.accountsReceivables]: unknown[];
96
+ [ExternalProspectStageTwoTables.accountsReceivablesExtra]: unknown[];
97
+ [ExternalProspectStageTwoTables.accountsReceivablesContacts]: unknown[];
98
+ [ExternalProspectStageTwoTables.inventoryInformationFiles]: unknown[];
99
+ [ExternalProspectStageTwoTables.inventoryInformationDetails]: unknown[];
100
+ [ExternalProspectStageTwoTables.inventoryInformation]: unknown[];
101
+ [ExternalProspectStageTwoTables.equipment]: unknown[];
100
102
  }
101
103
  export interface ICRMProspectExternalInfo {
102
104
  stageOne: ICRMProspectInfoStageOne;
@@ -47,7 +47,6 @@ var EProspectStatus;
47
47
  EProspectStatus["PROSPECT"] = "PROSPECT";
48
48
  EProspectStatus["TERM_SHEET"] = "TERM_SHEET";
49
49
  EProspectStatus["DUE_DILIGENCE"] = "DUE_DILIGENCE";
50
- EProspectStatus["PHASE_2"] = "PHASE_2";
51
50
  EProspectStatus["LOAN_DOCUMENTS"] = "LOAN_DOCUMENTS";
52
51
  EProspectStatus["FUNDED"] = "FUNDED";
53
52
  })(EProspectStatus || (exports.EProspectStatus = EProspectStatus = {}));
@@ -72,7 +71,6 @@ exports.prospectFileGroups = [
72
71
  ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.itSystems,
73
72
  ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.insuranceBrokers,
74
73
  ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.insurancePolicies,
75
- ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.litigation,
76
74
  ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.financialInformation,
77
75
  ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.accountsReceivables,
78
76
  ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.accountsReceivablesExtra,
@@ -102,15 +100,17 @@ const externalProspectInitialInfo = () => ({
102
100
  info: {
103
101
  stageOne: {
104
102
  companyLegalName: '',
103
+ companyLegalAddress: '',
104
+ companyCorrespondenceAddress: '',
105
105
  DBANames: '',
106
106
  websiteAddress: '',
107
107
  businessDescription: '',
108
- listOfShareholders: [],
109
- listOfOfficers: [],
110
- listOfManagers: [],
111
- addressesOfOffices: [],
112
- addressesOfWarehouses: [],
113
- top5Customers: [
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
114
  { _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
115
115
  { _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
116
116
  { _id: `new_${(0, main_helper_1.getUUID)()}`, name: '', value: '' },
@@ -121,19 +121,19 @@ const externalProspectInitialInfo = () => ({
121
121
  last12MonthsSales: '',
122
122
  amountRequest: '',
123
123
  descriptionOfCollateral: '',
124
+ [ProspectInfoStageOne_model_1.ExternalProspectStageOneTables.litigation]: [
125
+ {
126
+ _id: `new_${(0, main_helper_1.getUUID)()}`,
127
+ title: 'Describe any previous, current or threatened litigation. If no litigation, please state “No previous, current or threatened litigation".',
128
+ comment: '',
129
+ },
130
+ ],
124
131
  },
125
132
  stageTwo: {
126
133
  [ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.detailsOfCurrentDebt]: [],
127
134
  [ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.itSystems]: [],
128
135
  [ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.insuranceBrokers]: [],
129
136
  [ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.insurancePolicies]: [],
130
- [ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.litigation]: [
131
- {
132
- _id: `new_${(0, main_helper_1.getUUID)()}`,
133
- title: 'Describe any current or threatened litigation. If no litigation, please state “No current or threatened litigation”.',
134
- comment: '',
135
- },
136
- ],
137
137
  [ProspectInfoStageTwo_model_1.ExternalProspectStageTwoTables.financialInformation]: [
138
138
  {
139
139
  _id: `new_${(0, main_helper_1.getUUID)()}`,
@@ -241,6 +241,8 @@ const CRMProspectInfoRowValidationSchema = joi_1.default.object({
241
241
  });
242
242
  exports.CRMProspectInfoExternalValidationSchema = joi_1.default.object({
243
243
  companyLegalName: joi_1.default.string().allow('', null),
244
+ companyLegalAddress: joi_1.default.string().allow('', null),
245
+ companyCorrespondenceAddress: joi_1.default.string().allow('', null),
244
246
  DBANames: joi_1.default.string().allow('', null),
245
247
  websiteAddress: joi_1.default.string().allow('', null),
246
248
  businessDescription: joi_1.default.string().allow('', null),
@@ -4,7 +4,7 @@ import Joi from 'joi';
4
4
  import { MODEL_NAMES } from './_models';
5
5
 
6
6
  import { ExternalProspectStageTwoTables, ProspectInfoStageTwo } from './ProspectInfoStageTwo.model';
7
- import { ProspectInfoStageOne } from './ProspectInfoStageOne.model';
7
+ import { ExternalProspectStageOneTables, ProspectInfoStageOne } from './ProspectInfoStageOne.model';
8
8
  import { getUUID, TDictionary } from '../helpers/main.helper';
9
9
 
10
10
  export const prospectFieldsDictionary: TDictionary = {
@@ -44,7 +44,6 @@ export enum EProspectStatus {
44
44
  PROSPECT = 'PROSPECT',
45
45
  TERM_SHEET = 'TERM_SHEET',
46
46
  DUE_DILIGENCE = 'DUE_DILIGENCE',
47
- PHASE_2 = 'PHASE_2',
48
47
  LOAN_DOCUMENTS = 'LOAN_DOCUMENTS',
49
48
  FUNDED = 'FUNDED',
50
49
  }
@@ -82,35 +81,37 @@ export interface ICRMProspectInfoRow {
82
81
 
83
82
  export interface ICRMProspectInfoStageOne {
84
83
  companyLegalName: string;
84
+ companyLegalAddress: string;
85
+ companyCorrespondenceAddress: string;
85
86
  DBANames: string;
86
87
  websiteAddress: string;
87
88
  businessDescription: string;
88
- listOfShareholders: ICRMProspectInfoRow[];
89
- listOfOfficers: ICRMProspectInfoRow[];
90
- listOfManagers: ICRMProspectInfoRow[];
91
- addressesOfOffices: ICRMProspectInfoRow[];
92
- addressesOfWarehouses: ICRMProspectInfoRow[];
93
- top5Customers: ICRMProspectInfoRow[];
94
89
  numberOfEmployees: string;
95
90
  last12MonthsSales: string;
96
91
  amountRequest: string;
97
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
+ [ExternalProspectStageOneTables.litigation]: unknown[],
98
100
  }
99
101
 
100
102
  export interface ICRMProspectInfoStageTwo {
101
- [ExternalProspectStageTwoTables.detailsOfCurrentDebt]: any[],
102
- [ExternalProspectStageTwoTables.itSystems]: any[],
103
- [ExternalProspectStageTwoTables.insuranceBrokers]: any[],
104
- [ExternalProspectStageTwoTables.insurancePolicies]: any[],
105
- [ExternalProspectStageTwoTables.litigation]: any[],
106
- [ExternalProspectStageTwoTables.financialInformation]: any[],
107
- [ExternalProspectStageTwoTables.accountsReceivables]: any[],
108
- [ExternalProspectStageTwoTables.accountsReceivablesExtra]: any[],
109
- [ExternalProspectStageTwoTables.accountsReceivablesContacts]: any[],
110
- [ExternalProspectStageTwoTables.inventoryInformationFiles]: any[],
111
- [ExternalProspectStageTwoTables.inventoryInformationDetails]: any[],
112
- [ExternalProspectStageTwoTables.inventoryInformation]: any[],
113
- [ExternalProspectStageTwoTables.equipment]: any[],
103
+ [ExternalProspectStageTwoTables.detailsOfCurrentDebt]: unknown[],
104
+ [ExternalProspectStageTwoTables.itSystems]: unknown[],
105
+ [ExternalProspectStageTwoTables.insuranceBrokers]: unknown[],
106
+ [ExternalProspectStageTwoTables.insurancePolicies]: unknown[],
107
+ [ExternalProspectStageTwoTables.financialInformation]: unknown[],
108
+ [ExternalProspectStageTwoTables.accountsReceivables]: unknown[],
109
+ [ExternalProspectStageTwoTables.accountsReceivablesExtra]: unknown[],
110
+ [ExternalProspectStageTwoTables.accountsReceivablesContacts]: unknown[],
111
+ [ExternalProspectStageTwoTables.inventoryInformationFiles]: unknown[],
112
+ [ExternalProspectStageTwoTables.inventoryInformationDetails]: unknown[],
113
+ [ExternalProspectStageTwoTables.inventoryInformation]: unknown[],
114
+ [ExternalProspectStageTwoTables.equipment]: unknown[],
114
115
  }
115
116
 
116
117
  export interface ICRMProspectExternalInfo {
@@ -137,7 +138,6 @@ export const prospectFileGroups: string[] = [
137
138
  ExternalProspectStageTwoTables.itSystems,
138
139
  ExternalProspectStageTwoTables.insuranceBrokers,
139
140
  ExternalProspectStageTwoTables.insurancePolicies,
140
- ExternalProspectStageTwoTables.litigation,
141
141
  ExternalProspectStageTwoTables.financialInformation,
142
142
  ExternalProspectStageTwoTables.accountsReceivables,
143
143
  ExternalProspectStageTwoTables.accountsReceivablesExtra,
@@ -170,15 +170,17 @@ export const externalProspectInitialInfo = (): ICRMProspectExternalNew => ({
170
170
  info: {
171
171
  stageOne: {
172
172
  companyLegalName: '',
173
+ companyLegalAddress: '',
174
+ companyCorrespondenceAddress: '',
173
175
  DBANames: '',
174
176
  websiteAddress: '',
175
177
  businessDescription: '',
176
- listOfShareholders: [],
177
- listOfOfficers: [],
178
- listOfManagers: [],
179
- addressesOfOffices: [],
180
- addressesOfWarehouses: [],
181
- top5Customers: [
178
+ [ExternalProspectStageOneTables.listOfShareholders]: [],
179
+ [ExternalProspectStageOneTables.listOfOfficers]: [],
180
+ [ExternalProspectStageOneTables.listOfManagers]: [],
181
+ [ExternalProspectStageOneTables.addressesOfOffices]: [],
182
+ [ExternalProspectStageOneTables.addressesOfWarehouses]: [],
183
+ [ExternalProspectStageOneTables.top5Customers]: [
182
184
  { _id: `new_${getUUID()}`, name: '', value: '' },
183
185
  { _id: `new_${getUUID()}`, name: '', value: '' },
184
186
  { _id: `new_${getUUID()}`, name: '', value: '' },
@@ -189,19 +191,19 @@ export const externalProspectInitialInfo = (): ICRMProspectExternalNew => ({
189
191
  last12MonthsSales: '',
190
192
  amountRequest: '',
191
193
  descriptionOfCollateral: '',
194
+ [ExternalProspectStageOneTables.litigation]: [
195
+ {
196
+ _id: `new_${getUUID()}`,
197
+ title: 'Describe any previous, current or threatened litigation. If no litigation, please state “No previous, current or threatened litigation".',
198
+ comment: '',
199
+ },
200
+ ],
192
201
  },
193
202
  stageTwo: {
194
203
  [ExternalProspectStageTwoTables.detailsOfCurrentDebt]: [],
195
204
  [ExternalProspectStageTwoTables.itSystems]: [],
196
205
  [ExternalProspectStageTwoTables.insuranceBrokers]: [],
197
206
  [ExternalProspectStageTwoTables.insurancePolicies]: [],
198
- [ExternalProspectStageTwoTables.litigation]: [
199
- {
200
- _id: `new_${getUUID()}`,
201
- title: 'Describe any current or threatened litigation. If no litigation, please state “No current or threatened litigation”.',
202
- comment: '',
203
- },
204
- ],
205
207
  [ExternalProspectStageTwoTables.financialInformation]: [
206
208
  {
207
209
  _id: `new_${getUUID()}`,
@@ -384,6 +386,8 @@ const CRMProspectInfoRowValidationSchema = Joi.object({
384
386
 
385
387
  export const CRMProspectInfoExternalValidationSchema = Joi.object({
386
388
  companyLegalName: Joi.string().allow('', null),
389
+ companyLegalAddress: Joi.string().allow('', null),
390
+ companyCorrespondenceAddress: Joi.string().allow('', null),
387
391
  DBANames: Joi.string().allow('', null),
388
392
  websiteAddress: Joi.string().allow('', null),
389
393
  businessDescription: Joi.string().allow('', null),
@@ -1,32 +1,22 @@
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';
1
+ export declare enum ExternalProspectStageOneTables {
2
+ listOfShareholders = "listOfShareholders",
3
+ listOfOfficers = "listOfOfficers",
4
+ listOfManagers = "listOfManagers",
5
+ addressesOfOffices = "addressesOfOffices",
6
+ addressesOfWarehouses = "addressesOfWarehouses",
7
+ top5Customers = "top5Customers",
8
+ litigation = "litigation"
9
+ }
26
10
  export declare const ProspectInfoStageOne: {
27
11
  companyLegalName: {
28
12
  type: StringConstructor;
29
13
  };
14
+ companyLegalAddress: {
15
+ type: StringConstructor;
16
+ };
17
+ companyCorrespondenceAddress: {
18
+ type: StringConstructor;
19
+ };
30
20
  DBANames: {
31
21
  type: StringConstructor;
32
22
  };
@@ -36,96 +26,6 @@ export declare const ProspectInfoStageOne: {
36
26
  businessDescription: {
37
27
  type: StringConstructor;
38
28
  };
39
- listOfShareholders: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
40
- name?: string;
41
- value?: string;
42
- extraValue?: string;
43
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
44
- name?: string;
45
- value?: string;
46
- extraValue?: string;
47
- }>> & mongoose.FlatRecord<{
48
- name?: string;
49
- value?: string;
50
- extraValue?: string;
51
- }> & {
52
- _id: mongoose.Types.ObjectId;
53
- }>[];
54
- listOfOfficers: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
55
- name?: string;
56
- value?: string;
57
- extraValue?: string;
58
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
59
- name?: string;
60
- value?: string;
61
- extraValue?: string;
62
- }>> & mongoose.FlatRecord<{
63
- name?: string;
64
- value?: string;
65
- extraValue?: string;
66
- }> & {
67
- _id: mongoose.Types.ObjectId;
68
- }>[];
69
- listOfManagers: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
70
- name?: string;
71
- value?: string;
72
- extraValue?: string;
73
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
74
- name?: string;
75
- value?: string;
76
- extraValue?: string;
77
- }>> & mongoose.FlatRecord<{
78
- name?: string;
79
- value?: string;
80
- extraValue?: string;
81
- }> & {
82
- _id: mongoose.Types.ObjectId;
83
- }>[];
84
- addressesOfOffices: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
85
- name?: string;
86
- value?: string;
87
- extraValue?: string;
88
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
89
- name?: string;
90
- value?: string;
91
- extraValue?: string;
92
- }>> & mongoose.FlatRecord<{
93
- name?: string;
94
- value?: string;
95
- extraValue?: string;
96
- }> & {
97
- _id: mongoose.Types.ObjectId;
98
- }>[];
99
- addressesOfWarehouses: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
100
- name?: string;
101
- value?: string;
102
- extraValue?: string;
103
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
104
- name?: string;
105
- value?: string;
106
- extraValue?: string;
107
- }>> & mongoose.FlatRecord<{
108
- name?: string;
109
- value?: string;
110
- extraValue?: string;
111
- }> & {
112
- _id: mongoose.Types.ObjectId;
113
- }>[];
114
- top5Customers: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
115
- name?: string;
116
- value?: string;
117
- extraValue?: string;
118
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
119
- name?: string;
120
- value?: string;
121
- extraValue?: string;
122
- }>> & mongoose.FlatRecord<{
123
- name?: string;
124
- value?: string;
125
- extraValue?: string;
126
- }> & {
127
- _id: mongoose.Types.ObjectId;
128
- }>[];
129
29
  numberOfEmployees: {
130
30
  type: StringConstructor;
131
31
  };
@@ -138,4 +38,11 @@ export declare const ProspectInfoStageOne: {
138
38
  descriptionOfCollateral: {
139
39
  type: StringConstructor;
140
40
  };
41
+ listOfShareholders: {};
42
+ listOfOfficers: {};
43
+ listOfManagers: {};
44
+ addressesOfOffices: {};
45
+ addressesOfWarehouses: {};
46
+ top5Customers: {};
47
+ litigation: {};
141
48
  };
@@ -3,8 +3,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ProspectInfoStageOne = void 0;
6
+ exports.ProspectInfoStageOne = exports.ExternalProspectStageOneTables = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
+ var ExternalProspectStageOneTables;
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
+ ExternalProspectStageOneTables["litigation"] = "litigation";
17
+ })(ExternalProspectStageOneTables || (exports.ExternalProspectStageOneTables = ExternalProspectStageOneTables = {}));
8
18
  const InfoRowSchema = new mongoose_1.default.Schema({
9
19
  name: {
10
20
  type: String,
@@ -20,6 +30,12 @@ exports.ProspectInfoStageOne = {
20
30
  companyLegalName: {
21
31
  type: String,
22
32
  },
33
+ companyLegalAddress: {
34
+ type: String,
35
+ },
36
+ companyCorrespondenceAddress: {
37
+ type: String,
38
+ },
23
39
  DBANames: {
24
40
  type: String,
25
41
  },
@@ -29,12 +45,6 @@ exports.ProspectInfoStageOne = {
29
45
  businessDescription: {
30
46
  type: String,
31
47
  },
32
- listOfShareholders: [InfoRowSchema],
33
- listOfOfficers: [InfoRowSchema],
34
- listOfManagers: [InfoRowSchema],
35
- addressesOfOffices: [InfoRowSchema],
36
- addressesOfWarehouses: [InfoRowSchema],
37
- top5Customers: [InfoRowSchema],
38
48
  numberOfEmployees: {
39
49
  type: String,
40
50
  },
@@ -47,4 +57,11 @@ exports.ProspectInfoStageOne = {
47
57
  descriptionOfCollateral: {
48
58
  type: String,
49
59
  },
60
+ [ExternalProspectStageOneTables.listOfShareholders]: {},
61
+ [ExternalProspectStageOneTables.listOfOfficers]: {},
62
+ [ExternalProspectStageOneTables.listOfManagers]: {},
63
+ [ExternalProspectStageOneTables.addressesOfOffices]: {},
64
+ [ExternalProspectStageOneTables.addressesOfWarehouses]: {},
65
+ [ExternalProspectStageOneTables.top5Customers]: {},
66
+ [ExternalProspectStageOneTables.litigation]: {},
50
67
  };
@@ -1,5 +1,15 @@
1
1
  import mongoose from 'mongoose';
2
2
 
3
+ export enum ExternalProspectStageOneTables {
4
+ listOfShareholders = 'listOfShareholders',
5
+ listOfOfficers = 'listOfOfficers',
6
+ listOfManagers = 'listOfManagers',
7
+ addressesOfOffices = 'addressesOfOffices',
8
+ addressesOfWarehouses = 'addressesOfWarehouses',
9
+ top5Customers = 'top5Customers',
10
+ litigation = 'litigation',
11
+ }
12
+
3
13
  const InfoRowSchema = new mongoose.Schema({
4
14
  name: {
5
15
  type: String,
@@ -16,6 +26,12 @@ export const ProspectInfoStageOne = {
16
26
  companyLegalName: {
17
27
  type: String,
18
28
  },
29
+ companyLegalAddress: {
30
+ type: String,
31
+ },
32
+ companyCorrespondenceAddress: {
33
+ type: String,
34
+ },
19
35
  DBANames: {
20
36
  type: String,
21
37
  },
@@ -25,12 +41,6 @@ export const ProspectInfoStageOne = {
25
41
  businessDescription: {
26
42
  type: String,
27
43
  },
28
- listOfShareholders: [InfoRowSchema],
29
- listOfOfficers: [InfoRowSchema],
30
- listOfManagers: [InfoRowSchema],
31
- addressesOfOffices: [InfoRowSchema],
32
- addressesOfWarehouses: [InfoRowSchema],
33
- top5Customers: [InfoRowSchema],
34
44
  numberOfEmployees: {
35
45
  type: String,
36
46
  },
@@ -43,4 +53,11 @@ export const ProspectInfoStageOne = {
43
53
  descriptionOfCollateral: {
44
54
  type: String,
45
55
  },
56
+ [ExternalProspectStageOneTables.listOfShareholders]: {},
57
+ [ExternalProspectStageOneTables.listOfOfficers]: {},
58
+ [ExternalProspectStageOneTables.listOfManagers]: {},
59
+ [ExternalProspectStageOneTables.addressesOfOffices]: {},
60
+ [ExternalProspectStageOneTables.addressesOfWarehouses]: {},
61
+ [ExternalProspectStageOneTables.top5Customers]: {},
62
+ [ExternalProspectStageOneTables.litigation]: {},
46
63
  };
@@ -3,7 +3,6 @@ export declare enum ExternalProspectStageTwoTables {
3
3
  itSystems = "itSystems",
4
4
  insuranceBrokers = "insuranceBrokers",
5
5
  insurancePolicies = "insurancePolicies",
6
- litigation = "litigation",
7
6
  financialInformation = "financialInformation",
8
7
  accountsReceivables = "accountsReceivables",
9
8
  accountsReceivablesExtra = "accountsReceivablesExtra",
@@ -18,7 +17,6 @@ export declare const ProspectInfoStageTwo: {
18
17
  itSystems: {};
19
18
  insuranceBrokers: {};
20
19
  insurancePolicies: {};
21
- litigation: {};
22
20
  financialInformation: {};
23
21
  accountsReceivables: {};
24
22
  accountsReceivablesExtra: {};
@@ -7,7 +7,6 @@ var ExternalProspectStageTwoTables;
7
7
  ExternalProspectStageTwoTables["itSystems"] = "itSystems";
8
8
  ExternalProspectStageTwoTables["insuranceBrokers"] = "insuranceBrokers";
9
9
  ExternalProspectStageTwoTables["insurancePolicies"] = "insurancePolicies";
10
- ExternalProspectStageTwoTables["litigation"] = "litigation";
11
10
  ExternalProspectStageTwoTables["financialInformation"] = "financialInformation";
12
11
  ExternalProspectStageTwoTables["accountsReceivables"] = "accountsReceivables";
13
12
  ExternalProspectStageTwoTables["accountsReceivablesExtra"] = "accountsReceivablesExtra";
@@ -22,7 +21,6 @@ exports.ProspectInfoStageTwo = {
22
21
  [ExternalProspectStageTwoTables.itSystems]: {},
23
22
  [ExternalProspectStageTwoTables.insuranceBrokers]: {},
24
23
  [ExternalProspectStageTwoTables.insurancePolicies]: {},
25
- [ExternalProspectStageTwoTables.litigation]: {},
26
24
  [ExternalProspectStageTwoTables.financialInformation]: {},
27
25
  [ExternalProspectStageTwoTables.accountsReceivables]: {},
28
26
  [ExternalProspectStageTwoTables.accountsReceivablesExtra]: {},
@@ -3,7 +3,6 @@ export enum ExternalProspectStageTwoTables {
3
3
  itSystems = 'itSystems',
4
4
  insuranceBrokers = 'insuranceBrokers',
5
5
  insurancePolicies = 'insurancePolicies',
6
- litigation = 'litigation',
7
6
  financialInformation = 'financialInformation',
8
7
  accountsReceivables = 'accountsReceivables',
9
8
  accountsReceivablesExtra = 'accountsReceivablesExtra',
@@ -19,7 +18,6 @@ export const ProspectInfoStageTwo = {
19
18
  [ExternalProspectStageTwoTables.itSystems]: {},
20
19
  [ExternalProspectStageTwoTables.insuranceBrokers]: {},
21
20
  [ExternalProspectStageTwoTables.insurancePolicies]: {},
22
- [ExternalProspectStageTwoTables.litigation]: {},
23
21
  [ExternalProspectStageTwoTables.financialInformation]: {},
24
22
  [ExternalProspectStageTwoTables.accountsReceivables]: {},
25
23
  [ExternalProspectStageTwoTables.accountsReceivablesExtra]: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.48",
3
+ "version": "1.3.49",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {