gemcap-be-common 1.3.168 → 1.3.169

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,6 +27,7 @@ import Joi from 'joi';
27
27
  export interface IAppraiser {
28
28
  isDeleted: boolean;
29
29
  name: string;
30
+ speciality?: string;
30
31
  order?: number;
31
32
  }
32
33
  export interface IAppraiserWithID extends IAppraiser {
@@ -10,6 +10,7 @@ const _models_1 = require("./_models");
10
10
  exports.AppraiserValidationSchema = joi_1.default.object({
11
11
  _id: joi_1.default.string(),
12
12
  name: joi_1.default.string().required(),
13
+ speciality: joi_1.default.string().allow(''),
13
14
  isDeleted: joi_1.default.boolean(),
14
15
  order: joi_1.default.number().required().allow(null),
15
16
  });
@@ -22,6 +23,9 @@ exports.AppraiserSchema = new mongoose_1.default.Schema({
22
23
  type: String,
23
24
  required: true,
24
25
  },
26
+ speciality: {
27
+ type: String,
28
+ },
25
29
  order: {
26
30
  type: Number,
27
31
  required: true,
@@ -6,6 +6,7 @@ import { MODEL_NAMES } from './_models';
6
6
  export interface IAppraiser {
7
7
  isDeleted: boolean;
8
8
  name: string;
9
+ speciality?: string;
9
10
  order?: number;
10
11
  }
11
12
 
@@ -19,6 +20,7 @@ export interface IAppraiserDoc extends IAppraiser, Document {
19
20
  export const AppraiserValidationSchema = Joi.object({
20
21
  _id: Joi.string(),
21
22
  name: Joi.string().required(),
23
+ speciality: Joi.string().allow(''),
22
24
  isDeleted: Joi.boolean(),
23
25
  order: Joi.number().required().allow (null),
24
26
  });
@@ -35,6 +37,9 @@ export const AppraiserSchema = new mongoose.Schema<IAppraiser, AppraiserModel>(
35
37
  type: String,
36
38
  required: true,
37
39
  },
40
+ speciality: {
41
+ type: String,
42
+ },
38
43
  order: {
39
44
  type: Number,
40
45
  required: true,
@@ -29,7 +29,6 @@ export interface IAppraiserContact {
29
29
  isDeleted: boolean;
30
30
  name: string;
31
31
  title?: string;
32
- speciality?: string;
33
32
  email?: string[];
34
33
  normalizedEmail?: string[];
35
34
  phone?: string;
@@ -12,7 +12,6 @@ exports.AppraiserContactValidationSchema = joi_1.default.object({
12
12
  appraiserId: joi_1.default.string(),
13
13
  name: joi_1.default.string().required(),
14
14
  title: joi_1.default.string().allow(''),
15
- speciality: joi_1.default.string().allow(''),
16
15
  email: joi_1.default.array().items(joi_1.default.string().email()).allow(null),
17
16
  phone: joi_1.default.string().allow(''),
18
17
  comment: joi_1.default.string().allow(''),
@@ -36,9 +35,6 @@ exports.AppraiserContactSchema = new mongoose_1.default.Schema({
36
35
  title: {
37
36
  type: String,
38
37
  },
39
- speciality: {
40
- type: String,
41
- },
42
38
  email: {
43
39
  type: [String],
44
40
  },
@@ -8,7 +8,6 @@ export interface IAppraiserContact {
8
8
  isDeleted: boolean;
9
9
  name: string;
10
10
  title?: string;
11
- speciality?: string;
12
11
  email?: string[];
13
12
  normalizedEmail?: string[];
14
13
  phone?: string;
@@ -28,7 +27,6 @@ export const AppraiserContactValidationSchema = Joi.object({
28
27
  appraiserId: Joi.string(),
29
28
  name: Joi.string().required(),
30
29
  title: Joi.string().allow(''),
31
- speciality: Joi.string().allow(''),
32
30
  email: Joi.array().items(Joi.string().email()).allow(null),
33
31
  phone: Joi.string().allow(''),
34
32
  comment: Joi.string().allow(''),
@@ -56,9 +54,6 @@ export const AppraiserContactSchema = new mongoose.Schema<IAppraiserContact, App
56
54
  title: {
57
55
  type: String,
58
56
  },
59
- speciality: {
60
- type: String,
61
- },
62
57
  email: {
63
58
  type: [String],
64
59
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.168",
3
+ "version": "1.3.169",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {