gemcap-be-common 1.4.250 → 1.4.252
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/microservice/events.constants.d.ts +3 -0
- package/microservice/events.constants.js +5 -2
- package/microservice/events.constants.ts +5 -2
- package/microservice/queues.constants.d.ts +4 -0
- package/microservice/queues.constants.js +5 -1
- package/microservice/queues.constants.ts +5 -1
- package/models/ProspectNotification.model.d.ts +13 -3
- package/models/ProspectNotification.model.ts +15 -3
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -45,5 +45,8 @@ export declare const EVENT_KEYS: {
|
|
|
45
45
|
readonly notifications: {
|
|
46
46
|
readonly BORROWER_REMINDER_EMAIL_SENT: "notifications.borrower.reminder.email.sent";
|
|
47
47
|
readonly BORROWER_REMINDER_EMAIL_FAILED: "notifications.borrower.reminder.email.failed";
|
|
48
|
+
readonly EMAIL_SEND_REQUESTED: "notifications.email.send.requested";
|
|
49
|
+
readonly EMAIL_SENT: "notifications.email.sent";
|
|
50
|
+
readonly EMAIL_FAILED: "notifications.email.failed";
|
|
48
51
|
};
|
|
49
52
|
};
|
|
@@ -46,7 +46,10 @@ exports.EVENT_KEYS = {
|
|
|
46
46
|
* ========= NOTIFICATIONS DOMAIN EVENTS =========
|
|
47
47
|
*/
|
|
48
48
|
notifications: {
|
|
49
|
-
BORROWER_REMINDER_EMAIL_SENT: 'notifications.borrower.reminder.email.sent',
|
|
50
|
-
BORROWER_REMINDER_EMAIL_FAILED: 'notifications.borrower.reminder.email.failed',
|
|
49
|
+
BORROWER_REMINDER_EMAIL_SENT: 'notifications.borrower.reminder.email.sent', // TODO Deprecated
|
|
50
|
+
BORROWER_REMINDER_EMAIL_FAILED: 'notifications.borrower.reminder.email.failed', // TODO Deprecated
|
|
51
|
+
EMAIL_SEND_REQUESTED: 'notifications.email.send.requested',
|
|
52
|
+
EMAIL_SENT: 'notifications.email.sent',
|
|
53
|
+
EMAIL_FAILED: 'notifications.email.failed',
|
|
51
54
|
}
|
|
52
55
|
};
|
|
@@ -48,7 +48,10 @@ export const EVENT_KEYS = {
|
|
|
48
48
|
* ========= NOTIFICATIONS DOMAIN EVENTS =========
|
|
49
49
|
*/
|
|
50
50
|
notifications: {
|
|
51
|
-
BORROWER_REMINDER_EMAIL_SENT: 'notifications.borrower.reminder.email.sent',
|
|
52
|
-
BORROWER_REMINDER_EMAIL_FAILED: 'notifications.borrower.reminder.email.failed',
|
|
51
|
+
BORROWER_REMINDER_EMAIL_SENT: 'notifications.borrower.reminder.email.sent', // TODO Deprecated
|
|
52
|
+
BORROWER_REMINDER_EMAIL_FAILED: 'notifications.borrower.reminder.email.failed', // TODO Deprecated
|
|
53
|
+
EMAIL_SEND_REQUESTED: 'notifications.email.send.requested',
|
|
54
|
+
EMAIL_SENT: 'notifications.email.sent',
|
|
55
|
+
EMAIL_FAILED: 'notifications.email.failed',
|
|
53
56
|
}
|
|
54
57
|
} as const;
|
|
@@ -40,8 +40,12 @@ export declare const QUEUES: {
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
readonly notifications: {
|
|
43
|
+
readonly email: {
|
|
44
|
+
readonly sender: "notifications.email.sender";
|
|
45
|
+
};
|
|
43
46
|
readonly borrowerReminders: {
|
|
44
47
|
readonly emailSender: "notifications.borrower-reminders.email";
|
|
48
|
+
readonly email: "notifications.borrower-reminders.email";
|
|
45
49
|
};
|
|
46
50
|
};
|
|
47
51
|
};
|
|
@@ -43,8 +43,12 @@ exports.QUEUES = {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
notifications: {
|
|
46
|
+
email: {
|
|
47
|
+
sender: 'notifications.email.sender',
|
|
48
|
+
},
|
|
46
49
|
borrowerReminders: {
|
|
47
|
-
emailSender: 'notifications.borrower-reminders.email',
|
|
50
|
+
emailSender: 'notifications.borrower-reminders.email', // TODO Deprecated
|
|
51
|
+
email: 'notifications.borrower-reminders.email', // TODO Deprecated
|
|
48
52
|
},
|
|
49
53
|
},
|
|
50
54
|
};
|
|
@@ -40,8 +40,12 @@ export const QUEUES = {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
notifications: {
|
|
43
|
+
email: {
|
|
44
|
+
sender: 'notifications.email.sender',
|
|
45
|
+
},
|
|
43
46
|
borrowerReminders: {
|
|
44
|
-
emailSender: 'notifications.borrower-reminders.email',
|
|
47
|
+
emailSender: 'notifications.borrower-reminders.email', // TODO Deprecated
|
|
48
|
+
email: 'notifications.borrower-reminders.email', // TODO Deprecated
|
|
45
49
|
},
|
|
46
50
|
},
|
|
47
51
|
} as const;
|
|
@@ -22,15 +22,25 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import mongoose
|
|
25
|
+
import mongoose from 'mongoose';
|
|
26
26
|
export interface ICRMProspectNotification {
|
|
27
27
|
prospectId: mongoose.Types.ObjectId;
|
|
28
28
|
stageOne: boolean;
|
|
29
29
|
stageTwo: boolean;
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type ICRMProspectNotificationDoc = mongoose.HydratedDocument<ICRMProspectNotification>;
|
|
32
|
+
export interface ICRMProspectNotificationLean extends ICRMProspectNotification {
|
|
33
|
+
_id: mongoose.Types.ObjectId;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
}
|
|
37
|
+
export interface ICRMProspectNotificationPlain extends Omit<ICRMProspectNotification, 'prospectId'> {
|
|
38
|
+
_id: string;
|
|
39
|
+
prospectId: string;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
updatedAt: Date;
|
|
32
42
|
}
|
|
33
|
-
export type CRMProspectNotificationModel = Model<ICRMProspectNotification
|
|
43
|
+
export type CRMProspectNotificationModel = mongoose.Model<ICRMProspectNotification>;
|
|
34
44
|
export declare const CRMProspectNotificationSchema: mongoose.Schema<ICRMProspectNotification, CRMProspectNotificationModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ICRMProspectNotification, mongoose.Document<unknown, {}, mongoose.FlatRecord<ICRMProspectNotification>> & mongoose.FlatRecord<ICRMProspectNotification> & {
|
|
35
45
|
_id: mongoose.Types.ObjectId;
|
|
36
46
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import mongoose
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
2
|
|
|
3
3
|
import { MODEL_NAMES } from './_models';
|
|
4
4
|
|
|
@@ -8,10 +8,22 @@ export interface ICRMProspectNotification {
|
|
|
8
8
|
stageTwo: boolean;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export
|
|
11
|
+
export type ICRMProspectNotificationDoc = mongoose.HydratedDocument<ICRMProspectNotification>;
|
|
12
|
+
|
|
13
|
+
export interface ICRMProspectNotificationLean extends ICRMProspectNotification {
|
|
14
|
+
_id: mongoose.Types.ObjectId;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ICRMProspectNotificationPlain extends Omit<ICRMProspectNotification, 'prospectId'> {
|
|
20
|
+
_id: string;
|
|
21
|
+
prospectId: string;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
12
24
|
}
|
|
13
25
|
|
|
14
|
-
export type CRMProspectNotificationModel = Model<ICRMProspectNotification
|
|
26
|
+
export type CRMProspectNotificationModel = mongoose.Model<ICRMProspectNotification>;
|
|
15
27
|
|
|
16
28
|
export const CRMProspectNotificationSchema = new mongoose.Schema<ICRMProspectNotification, CRMProspectNotificationModel>(
|
|
17
29
|
{
|