gemcap-be-common 1.4.42 → 1.4.44
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.
|
@@ -45,6 +45,7 @@ export declare const EventMap: {
|
|
|
45
45
|
readonly COPY_CONFIDENTIAL: "prospectFiles#COPY_CONFIDENTIAL";
|
|
46
46
|
readonly TOGGLE_CONFIDENTIAL: "prospectFiles#TOGGLE_CONFIDENTIAL";
|
|
47
47
|
readonly DELETE_CONFIDENTIAL: "prospectFiles#DELETE_CONFIDENTIAL";
|
|
48
|
+
readonly SEND_REPORT: "prospectFiles#SEND_REPORT";
|
|
48
49
|
};
|
|
49
50
|
readonly auth: {
|
|
50
51
|
readonly PASSWORD_RESET: "auth#PASSWORD_RESET";
|
|
@@ -48,6 +48,7 @@ exports.EventMap = {
|
|
|
48
48
|
COPY_CONFIDENTIAL: 'prospectFiles#COPY_CONFIDENTIAL',
|
|
49
49
|
TOGGLE_CONFIDENTIAL: 'prospectFiles#TOGGLE_CONFIDENTIAL',
|
|
50
50
|
DELETE_CONFIDENTIAL: 'prospectFiles#DELETE_CONFIDENTIAL',
|
|
51
|
+
SEND_REPORT: 'prospectFiles#SEND_REPORT',
|
|
51
52
|
},
|
|
52
53
|
auth: {
|
|
53
54
|
PASSWORD_RESET: 'auth#PASSWORD_RESET',
|
|
@@ -45,6 +45,7 @@ export const EventMap = {
|
|
|
45
45
|
COPY_CONFIDENTIAL: 'prospectFiles#COPY_CONFIDENTIAL',
|
|
46
46
|
TOGGLE_CONFIDENTIAL: 'prospectFiles#TOGGLE_CONFIDENTIAL',
|
|
47
47
|
DELETE_CONFIDENTIAL: 'prospectFiles#DELETE_CONFIDENTIAL',
|
|
48
|
+
SEND_REPORT: 'prospectFiles#SEND_REPORT',
|
|
48
49
|
},
|
|
49
50
|
auth: {
|
|
50
51
|
PASSWORD_RESET: 'auth#PASSWORD_RESET',
|
|
@@ -99,6 +99,9 @@ export declare const sharepointFoldersDictionary: {
|
|
|
99
99
|
readonly standardEmailAttachments: "zz Standard Email Attachments";
|
|
100
100
|
readonly underwriting_templates: "zz Templates";
|
|
101
101
|
};
|
|
102
|
+
export type TSharepointFolderKey = keyof typeof sharepointFoldersDictionary;
|
|
103
|
+
export type TSharepointFolderValue = typeof sharepointFoldersDictionary[TSharepointFolderKey];
|
|
104
|
+
export type TSharepointFolder = typeof sharepointFoldersDictionary[TSharepointFolderKey];
|
|
102
105
|
declare enum EProspectPriority {
|
|
103
106
|
LOW = "LOW",
|
|
104
107
|
MEDIUM = "MEDIUM",
|
|
@@ -314,7 +317,13 @@ export type IProspectExternalAuditors = Pick<IProspectWithId, 'info' | 'isLocked
|
|
|
314
317
|
auditorFiles: IProspectFile[];
|
|
315
318
|
auditorSharedFiles: IProspectFile[];
|
|
316
319
|
};
|
|
317
|
-
|
|
320
|
+
type TProspectWithId<T = mongoose.Types.ObjectId | string> = Omit<IProspect, '_id'> & {
|
|
321
|
+
_id: T;
|
|
322
|
+
};
|
|
323
|
+
export interface IProspectDoc extends TProspectWithId<mongoose.Types.ObjectId>, Document {
|
|
324
|
+
_id: mongoose.Types.ObjectId;
|
|
325
|
+
}
|
|
326
|
+
export interface IProspectLean extends TProspectWithId<string> {
|
|
318
327
|
}
|
|
319
328
|
export declare const baseFields: string[];
|
|
320
329
|
export declare const ProspectInfoExternalValidationSchema: Joi.ObjectSchema<any>;
|
package/models/Prospect.model.ts
CHANGED
|
@@ -426,7 +426,7 @@ export const externalProspectInitialInfo = (): IProspectExternalNew => ({
|
|
|
426
426
|
],
|
|
427
427
|
[ExternalProspectStageTwoTables.accountsReceivables]: [
|
|
428
428
|
{
|
|
429
|
-
_id:getUUID(),
|
|
429
|
+
_id: getUUID(),
|
|
430
430
|
_sharepointFolder: 'accountsPayables',
|
|
431
431
|
title: 'Excel Format: Current and past 12 months A/P aging report by invoice date',
|
|
432
432
|
},
|
|
@@ -576,9 +576,14 @@ export type IProspectExternalAuditors = Pick<IProspectWithId, 'info' | 'isLocked
|
|
|
576
576
|
auditorSharedFiles: IProspectFile[];
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
|
|
579
|
+
type TProspectWithId<T = mongoose.Types.ObjectId | string> = Omit<IProspect, '_id'> & { _id: T };
|
|
580
|
+
|
|
581
|
+
export interface IProspectDoc extends TProspectWithId<mongoose.Types.ObjectId>, Document {
|
|
582
|
+
_id: mongoose.Types.ObjectId;
|
|
580
583
|
}
|
|
581
584
|
|
|
585
|
+
export interface IProspectLean extends TProspectWithId<string> {}
|
|
586
|
+
|
|
582
587
|
export const baseFields = ['_id', 'industry', 'status', 'revolverAmount', 'termAmount', 'keyDates'];
|
|
583
588
|
|
|
584
589
|
const ProspectInfoRowValidationSchema = Joi.object({
|