gemcap-be-common 1.3.141 → 1.3.142

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.
@@ -17,7 +17,8 @@ export declare const EventMap: {
17
17
  readonly CREATE_PROSPECT_SUMMARY: "crm#CREATE_PROSPECT_SUMMARY";
18
18
  readonly INITIAL_YIELD_CALCULATION: "crm#INITIAL_YIELD_CALCULATION";
19
19
  readonly CALCULATE_YIELD_CALCULATION: "crm#CALCULATE_YIELD_CALCULATION";
20
- readonly PASSWORD_RESET: "crm#PASSWORD_RESET";
20
+ readonly AUDITOR_PASSWORD_RESET: "crm#AUDITOR_PASSWORD_RESET";
21
+ readonly EXTERNAL_PASSWORD_RESET: "crm#EXTERNAL_PASSWORD_RESET";
21
22
  };
22
23
  readonly report: {
23
24
  readonly DETAILED_PORTFOLIO: "report#DETAILED_PORTFOLIO";
@@ -20,7 +20,8 @@ exports.EventMap = {
20
20
  CREATE_PROSPECT_SUMMARY: 'crm#CREATE_PROSPECT_SUMMARY',
21
21
  INITIAL_YIELD_CALCULATION: 'crm#INITIAL_YIELD_CALCULATION',
22
22
  CALCULATE_YIELD_CALCULATION: 'crm#CALCULATE_YIELD_CALCULATION',
23
- PASSWORD_RESET: 'crm#PASSWORD_RESET',
23
+ AUDITOR_PASSWORD_RESET: 'crm#AUDITOR_PASSWORD_RESET',
24
+ EXTERNAL_PASSWORD_RESET: 'crm#EXTERNAL_PASSWORD_RESET',
24
25
  },
25
26
  report: {
26
27
  DETAILED_PORTFOLIO: 'report#DETAILED_PORTFOLIO',
@@ -17,7 +17,8 @@ export const EventMap = {
17
17
  CREATE_PROSPECT_SUMMARY: 'crm#CREATE_PROSPECT_SUMMARY',
18
18
  INITIAL_YIELD_CALCULATION: 'crm#INITIAL_YIELD_CALCULATION',
19
19
  CALCULATE_YIELD_CALCULATION: 'crm#CALCULATE_YIELD_CALCULATION',
20
- PASSWORD_RESET: 'crm#PASSWORD_RESET',
20
+ AUDITOR_PASSWORD_RESET: 'crm#AUDITOR_PASSWORD_RESET',
21
+ EXTERNAL_PASSWORD_RESET: 'crm#EXTERNAL_PASSWORD_RESET',
21
22
  },
22
23
  report: {
23
24
  DETAILED_PORTFOLIO: 'report#DETAILED_PORTFOLIO',
@@ -29,6 +29,7 @@ export interface IAuditorContact {
29
29
  isDeleted: boolean;
30
30
  name: string;
31
31
  email?: string;
32
+ normalizedEmail?: string;
32
33
  phone?: string;
33
34
  comment?: string;
34
35
  order?: number;
@@ -34,6 +34,11 @@ exports.AuditorContactSchema = new mongoose_1.default.Schema({
34
34
  email: {
35
35
  type: String,
36
36
  },
37
+ normalizedEmail: {
38
+ type: String,
39
+ lowercase: true,
40
+ select: false,
41
+ },
37
42
  phone: {
38
43
  type: String,
39
44
  },
@@ -8,6 +8,7 @@ export interface IAuditorContact {
8
8
  isDeleted: boolean;
9
9
  name: string;
10
10
  email?: string;
11
+ normalizedEmail?: string;
11
12
  phone?: string;
12
13
  comment?: string;
13
14
  order?: number;
@@ -51,6 +52,12 @@ export const AuditorContactSchema = new mongoose.Schema<IAuditorContact, Auditor
51
52
  email: {
52
53
  type: String,
53
54
  },
55
+ normalizedEmail: {
56
+ type: String,
57
+ lowercase: true,
58
+ select: false,
59
+ unique: true,
60
+ },
54
61
  phone: {
55
62
  type: String,
56
63
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.141",
3
+ "version": "1.3.142",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {