gemcap-be-common 1.4.60 → 1.4.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.
|
@@ -31,6 +31,7 @@ export declare const EventMap: {
|
|
|
31
31
|
readonly NOTIFY_NEW_UNDERWRITERS: "crm_report#NOTIFY_NEW_UNDERWRITERS";
|
|
32
32
|
readonly NOTIFY_PROSPECT_UPDATES: "crm_report#NOTIFY_PROSPECT_UPDATES";
|
|
33
33
|
readonly FILE_LINKS: "crm_report#FILE_LINKS";
|
|
34
|
+
readonly FILE_LINKS_UNDERWRITERS: "crm_report#FILE_LINKS_UNDERWRITERS";
|
|
34
35
|
};
|
|
35
36
|
readonly notification: {
|
|
36
37
|
readonly SEND_EMAIL: "notification#SEND_EMAIL";
|
|
@@ -34,6 +34,7 @@ exports.EventMap = {
|
|
|
34
34
|
NOTIFY_NEW_UNDERWRITERS: 'crm_report#NOTIFY_NEW_UNDERWRITERS',
|
|
35
35
|
NOTIFY_PROSPECT_UPDATES: 'crm_report#NOTIFY_PROSPECT_UPDATES',
|
|
36
36
|
FILE_LINKS: 'crm_report#FILE_LINKS',
|
|
37
|
+
FILE_LINKS_UNDERWRITERS: 'crm_report#FILE_LINKS_UNDERWRITERS',
|
|
37
38
|
},
|
|
38
39
|
notification: {
|
|
39
40
|
SEND_EMAIL: 'notification#SEND_EMAIL',
|
|
@@ -31,6 +31,7 @@ export const EventMap = {
|
|
|
31
31
|
NOTIFY_NEW_UNDERWRITERS: 'crm_report#NOTIFY_NEW_UNDERWRITERS',
|
|
32
32
|
NOTIFY_PROSPECT_UPDATES: 'crm_report#NOTIFY_PROSPECT_UPDATES',
|
|
33
33
|
FILE_LINKS: 'crm_report#FILE_LINKS',
|
|
34
|
+
FILE_LINKS_UNDERWRITERS: 'crm_report#FILE_LINKS_UNDERWRITERS',
|
|
34
35
|
},
|
|
35
36
|
notification: {
|
|
36
37
|
SEND_EMAIL: 'notification#SEND_EMAIL',
|
|
@@ -31,13 +31,23 @@ export interface IUnderwriter {
|
|
|
31
31
|
order?: number;
|
|
32
32
|
userId?: string;
|
|
33
33
|
}
|
|
34
|
-
export interface IUnderwriterWithId extends IUnderwriter {
|
|
35
|
-
_id: string;
|
|
36
|
-
}
|
|
37
34
|
export interface IUnderwriterDoc extends IUnderwriter, Document {
|
|
35
|
+
_id: mongoose.Types.ObjectId;
|
|
36
|
+
createdAt: Date;
|
|
37
|
+
updatedAt: Date;
|
|
38
|
+
}
|
|
39
|
+
export interface IUnderwriterLean extends IUnderwriter {
|
|
40
|
+
_id: mongoose.Types.ObjectId;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
}
|
|
44
|
+
export interface IUnderwriterPlain extends IUnderwriter {
|
|
45
|
+
_id: string;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
updatedAt: Date;
|
|
38
48
|
}
|
|
49
|
+
export type UnderwriterModel = Model<IUnderwriterDoc>;
|
|
39
50
|
export declare const UnderwriterValidationSchema: Joi.ObjectSchema<any>;
|
|
40
|
-
export type UnderwriterModel = Model<IUnderwriter, object, object>;
|
|
41
51
|
export declare const UnderwriterSchema: mongoose.Schema<IUnderwriter, UnderwriterModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUnderwriter, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUnderwriter>> & mongoose.FlatRecord<IUnderwriter> & {
|
|
42
52
|
_id: mongoose.Types.ObjectId;
|
|
43
53
|
}>;
|
|
@@ -11,24 +11,35 @@ export interface IUnderwriter {
|
|
|
11
11
|
userId?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface
|
|
15
|
-
_id:
|
|
14
|
+
export interface IUnderwriterDoc extends IUnderwriter, Document {
|
|
15
|
+
_id: mongoose.Types.ObjectId;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
export interface
|
|
20
|
+
export interface IUnderwriterLean extends IUnderwriter {
|
|
21
|
+
_id: mongoose.Types.ObjectId;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface IUnderwriterPlain extends IUnderwriter {
|
|
27
|
+
_id: string;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
19
30
|
}
|
|
20
31
|
|
|
32
|
+
export type UnderwriterModel = Model<IUnderwriterDoc>;
|
|
33
|
+
|
|
21
34
|
export const UnderwriterValidationSchema = Joi.object({
|
|
22
35
|
_id: Joi.string(),
|
|
23
36
|
name: Joi.string().required(),
|
|
24
37
|
email: Joi.string(),
|
|
25
38
|
userId: Joi.string(),
|
|
26
39
|
isDeleted: Joi.boolean(),
|
|
27
|
-
order: Joi.number().required().allow
|
|
40
|
+
order: Joi.number().required().allow(null),
|
|
28
41
|
});
|
|
29
42
|
|
|
30
|
-
export type UnderwriterModel = Model<IUnderwriter, object, object>;
|
|
31
|
-
|
|
32
43
|
export const UnderwriterSchema = new mongoose.Schema<IUnderwriter, UnderwriterModel>(
|
|
33
44
|
{
|
|
34
45
|
isDeleted: {
|