gemcap-be-common 1.3.60 → 1.3.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,7 +58,6 @@ export interface ICRMProspectBase {
|
|
|
58
58
|
name: string;
|
|
59
59
|
industryId: mongoose.Types.ObjectId;
|
|
60
60
|
status: EProspectStatus;
|
|
61
|
-
probability: number;
|
|
62
61
|
revolver: ICRMProspectProduct;
|
|
63
62
|
term: ICRMProspectProduct;
|
|
64
63
|
}
|
|
@@ -153,6 +152,7 @@ export interface ICRMProspectFiles {
|
|
|
153
152
|
acceptedFiles: string[];
|
|
154
153
|
}
|
|
155
154
|
export interface ICRMProspect extends ICRMProspectBase, ICRMProspectExternalNew, ICRMProspectFiles {
|
|
155
|
+
probability: number;
|
|
156
156
|
businessDescription: string;
|
|
157
157
|
comments: string;
|
|
158
158
|
collateralDescription: string;
|
|
@@ -191,7 +191,7 @@ export interface ICRMProspectBaseWithId extends ICRMProspectBase {
|
|
|
191
191
|
export interface ICRMProspectWithId extends ICRMProspect {
|
|
192
192
|
_id: string;
|
|
193
193
|
}
|
|
194
|
-
export type ICRMProspectExternal = Pick<ICRMProspectWithId, 'info' | 'files' | 'isLocked' | 'status' | '
|
|
194
|
+
export type ICRMProspectExternal = Pick<ICRMProspectWithId, 'info' | 'files' | 'isLocked' | 'status' | '_id'> & {
|
|
195
195
|
auditorFiles: ICRMProspectFile[];
|
|
196
196
|
};
|
|
197
197
|
export type ICRMProspectExternalAuditors = Pick<ICRMProspectWithId, 'info' | 'files' | 'isLocked'> & {
|
package/models/Prospect.model.ts
CHANGED
|
@@ -69,7 +69,6 @@ export interface ICRMProspectBase {
|
|
|
69
69
|
name: string;
|
|
70
70
|
industryId: mongoose.Types.ObjectId;
|
|
71
71
|
status: EProspectStatus;
|
|
72
|
-
probability: number;
|
|
73
72
|
revolver: ICRMProspectProduct;
|
|
74
73
|
term: ICRMProspectProduct;
|
|
75
74
|
}
|
|
@@ -333,6 +332,7 @@ export interface ICRMProspectFiles {
|
|
|
333
332
|
}
|
|
334
333
|
|
|
335
334
|
export interface ICRMProspect extends ICRMProspectBase, ICRMProspectExternalNew, ICRMProspectFiles {
|
|
335
|
+
probability: number;
|
|
336
336
|
businessDescription: string;
|
|
337
337
|
comments: string;
|
|
338
338
|
collateralDescription: string;
|
|
@@ -375,7 +375,7 @@ export interface ICRMProspectWithId extends ICRMProspect {
|
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
export type ICRMProspectExternal =
|
|
378
|
-
Pick<ICRMProspectWithId, 'info' | 'files' | 'isLocked' | 'status' | '
|
|
378
|
+
Pick<ICRMProspectWithId, 'info' | 'files' | 'isLocked' | 'status' | '_id'>
|
|
379
379
|
& { auditorFiles: ICRMProspectFile[] }
|
|
380
380
|
|
|
381
381
|
export type ICRMProspectExternalAuditors = Pick<ICRMProspectWithId, 'info' | 'files' | 'isLocked'> & {
|
|
@@ -28,12 +28,12 @@ export declare enum EProspectSourceType {
|
|
|
28
28
|
LENDER = "LENDER",
|
|
29
29
|
BROKER = "BROKER",
|
|
30
30
|
DIRECT = "DIRECT",
|
|
31
|
-
INVESTMENT_BANK = "
|
|
31
|
+
INVESTMENT_BANK = "INVESTMENT_BANK",
|
|
32
32
|
CONSULTANT = "CONSULTANT",
|
|
33
33
|
ATTORNEY = "ATTORNEY",
|
|
34
34
|
EQUITY = "EQUITY",
|
|
35
|
-
PROFESSIONAL_ORGANIZATION = "
|
|
36
|
-
INSURANCE_AGENCY = "
|
|
35
|
+
PROFESSIONAL_ORGANIZATION = "PROFESSIONAL_ORGANIZATION",
|
|
36
|
+
INSURANCE_AGENCY = "INSURANCE_AGENCY",
|
|
37
37
|
OTHER = "OTHER"
|
|
38
38
|
}
|
|
39
39
|
export interface ICRMProspectSource {
|
|
@@ -12,12 +12,12 @@ var EProspectSourceType;
|
|
|
12
12
|
EProspectSourceType["LENDER"] = "LENDER";
|
|
13
13
|
EProspectSourceType["BROKER"] = "BROKER";
|
|
14
14
|
EProspectSourceType["DIRECT"] = "DIRECT";
|
|
15
|
-
EProspectSourceType["INVESTMENT_BANK"] = "
|
|
15
|
+
EProspectSourceType["INVESTMENT_BANK"] = "INVESTMENT_BANK";
|
|
16
16
|
EProspectSourceType["CONSULTANT"] = "CONSULTANT";
|
|
17
17
|
EProspectSourceType["ATTORNEY"] = "ATTORNEY";
|
|
18
18
|
EProspectSourceType["EQUITY"] = "EQUITY";
|
|
19
|
-
EProspectSourceType["PROFESSIONAL_ORGANIZATION"] = "
|
|
20
|
-
EProspectSourceType["INSURANCE_AGENCY"] = "
|
|
19
|
+
EProspectSourceType["PROFESSIONAL_ORGANIZATION"] = "PROFESSIONAL_ORGANIZATION";
|
|
20
|
+
EProspectSourceType["INSURANCE_AGENCY"] = "INSURANCE_AGENCY";
|
|
21
21
|
EProspectSourceType["OTHER"] = "OTHER";
|
|
22
22
|
})(EProspectSourceType || (exports.EProspectSourceType = EProspectSourceType = {}));
|
|
23
23
|
exports.CRMProspectSourceValidationSchema = joi_1.default.object({
|
|
@@ -7,12 +7,12 @@ export enum EProspectSourceType {
|
|
|
7
7
|
LENDER = 'LENDER',
|
|
8
8
|
BROKER = 'BROKER',
|
|
9
9
|
DIRECT = 'DIRECT',
|
|
10
|
-
INVESTMENT_BANK = '
|
|
10
|
+
INVESTMENT_BANK = 'INVESTMENT_BANK',
|
|
11
11
|
CONSULTANT = 'CONSULTANT',
|
|
12
12
|
ATTORNEY = 'ATTORNEY',
|
|
13
13
|
EQUITY = 'EQUITY',
|
|
14
|
-
PROFESSIONAL_ORGANIZATION = '
|
|
15
|
-
INSURANCE_AGENCY = '
|
|
14
|
+
PROFESSIONAL_ORGANIZATION = 'PROFESSIONAL_ORGANIZATION',
|
|
15
|
+
INSURANCE_AGENCY = 'INSURANCE_AGENCY',
|
|
16
16
|
OTHER = 'OTHER',
|
|
17
17
|
}
|
|
18
18
|
|