gemcap-be-common 1.3.169 → 1.3.170

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.
@@ -27,7 +27,7 @@ import Joi from 'joi';
27
27
  export interface IAppraiserContact {
28
28
  appraiserId: mongoose.Types.ObjectId;
29
29
  isDeleted: boolean;
30
- name: string;
30
+ name?: string;
31
31
  title?: string;
32
32
  email?: string[];
33
33
  normalizedEmail?: string[];
@@ -10,7 +10,7 @@ const _models_1 = require("./_models");
10
10
  exports.AppraiserContactValidationSchema = joi_1.default.object({
11
11
  _id: joi_1.default.string(),
12
12
  appraiserId: joi_1.default.string(),
13
- name: joi_1.default.string().required(),
13
+ name: joi_1.default.string().allow(''),
14
14
  title: joi_1.default.string().allow(''),
15
15
  email: joi_1.default.array().items(joi_1.default.string().email()).allow(null),
16
16
  phone: joi_1.default.string().allow(''),
@@ -30,7 +30,6 @@ exports.AppraiserContactSchema = new mongoose_1.default.Schema({
30
30
  },
31
31
  name: {
32
32
  type: String,
33
- required: true,
34
33
  },
35
34
  title: {
36
35
  type: String,
@@ -6,7 +6,7 @@ import { MODEL_NAMES } from './_models';
6
6
  export interface IAppraiserContact {
7
7
  appraiserId: mongoose.Types.ObjectId;
8
8
  isDeleted: boolean;
9
- name: string;
9
+ name?: string;
10
10
  title?: string;
11
11
  email?: string[];
12
12
  normalizedEmail?: string[];
@@ -25,7 +25,7 @@ export interface IAppraiserContactDoc extends IAppraiserContact, Document {
25
25
  export const AppraiserContactValidationSchema = Joi.object({
26
26
  _id: Joi.string(),
27
27
  appraiserId: Joi.string(),
28
- name: Joi.string().required(),
28
+ name: Joi.string().allow(''),
29
29
  title: Joi.string().allow(''),
30
30
  email: Joi.array().items(Joi.string().email()).allow(null),
31
31
  phone: Joi.string().allow(''),
@@ -49,7 +49,6 @@ export const AppraiserContactSchema = new mongoose.Schema<IAppraiserContact, App
49
49
  },
50
50
  name: {
51
51
  type: String,
52
- required: true,
53
52
  },
54
53
  title: {
55
54
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.169",
3
+ "version": "1.3.170",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {