gemcap-be-common 1.3.171 → 1.3.172

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.
@@ -29,8 +29,8 @@ export interface IAppraiserContact {
29
29
  isDeleted: boolean;
30
30
  name?: string;
31
31
  title?: string;
32
- email?: string[];
33
- normalizedEmail?: string[];
32
+ emails?: string[];
33
+ normalizedEmails?: string[];
34
34
  phone?: string;
35
35
  comment?: string;
36
36
  order?: number;
@@ -12,7 +12,7 @@ exports.AppraiserContactValidationSchema = joi_1.default.object({
12
12
  appraiserId: joi_1.default.string(),
13
13
  name: joi_1.default.string().allow(''),
14
14
  title: joi_1.default.string().allow(''),
15
- email: joi_1.default.array().items(joi_1.default.string().email()).allow(null),
15
+ emails: joi_1.default.array().items(joi_1.default.string().email()).allow(null),
16
16
  phone: joi_1.default.string().allow(''),
17
17
  comment: joi_1.default.string().allow(''),
18
18
  isDeleted: joi_1.default.boolean(),
@@ -34,10 +34,10 @@ exports.AppraiserContactSchema = new mongoose_1.default.Schema({
34
34
  title: {
35
35
  type: String,
36
36
  },
37
- email: {
37
+ emails: {
38
38
  type: [String],
39
39
  },
40
- normalizedEmail: {
40
+ normalizedEmails: {
41
41
  type: [String],
42
42
  lowercase: true,
43
43
  select: false,
@@ -8,8 +8,8 @@ export interface IAppraiserContact {
8
8
  isDeleted: boolean;
9
9
  name?: string;
10
10
  title?: string;
11
- email?: string[];
12
- normalizedEmail?: string[];
11
+ emails?: string[];
12
+ normalizedEmails?: string[];
13
13
  phone?: string;
14
14
  comment?: string;
15
15
  order?: number;
@@ -27,7 +27,7 @@ export const AppraiserContactValidationSchema = Joi.object({
27
27
  appraiserId: Joi.string(),
28
28
  name: Joi.string().allow(''),
29
29
  title: Joi.string().allow(''),
30
- email: Joi.array().items(Joi.string().email()).allow(null),
30
+ emails: Joi.array().items(Joi.string().email()).allow(null),
31
31
  phone: Joi.string().allow(''),
32
32
  comment: Joi.string().allow(''),
33
33
  isDeleted: Joi.boolean(),
@@ -53,10 +53,10 @@ export const AppraiserContactSchema = new mongoose.Schema<IAppraiserContact, App
53
53
  title: {
54
54
  type: String,
55
55
  },
56
- email: {
56
+ emails: {
57
57
  type: [String],
58
58
  },
59
- normalizedEmail: {
59
+ normalizedEmails: {
60
60
  type: [String],
61
61
  lowercase: true,
62
62
  select: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.171",
3
+ "version": "1.3.172",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {