gemcap-be-common 1.5.126 → 1.5.127

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.
@@ -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
+ uiId: joi_1.default.string().required(),
13
14
  speciality: joi_1.default.string().allow(''),
14
15
  isDeleted: joi_1.default.boolean(),
15
16
  order: joi_1.default.number().required().allow(null),
@@ -21,6 +21,7 @@ export interface IAppraiserDoc extends IAppraiser, Document {
21
21
  export const AppraiserValidationSchema = Joi.object({
22
22
  _id: Joi.string(),
23
23
  name: Joi.string().required(),
24
+ uiId: Joi.string().required(),
24
25
  speciality: Joi.string().allow(''),
25
26
  isDeleted: Joi.boolean(),
26
27
  order: Joi.number().required().allow (null),
@@ -10,6 +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
+ uiId: joi_1.default.string().required(),
13
14
  name: joi_1.default.string().allow(''),
14
15
  title: joi_1.default.string().allow(''),
15
16
  emails: joi_1.default.array().items(joi_1.default.string().email()).allow(null),
@@ -26,6 +26,7 @@ export interface IAppraiserContactDoc extends IAppraiserContact, Document {
26
26
  export const AppraiserContactValidationSchema = Joi.object({
27
27
  _id: Joi.string(),
28
28
  appraiserId: Joi.string(),
29
+ uiId: Joi.string().required(),
29
30
  name: Joi.string().allow(''),
30
31
  title: Joi.string().allow(''),
31
32
  emails: Joi.array().items(Joi.string().email()).allow(null),
@@ -9,6 +9,7 @@ const joi_1 = __importDefault(require("joi"));
9
9
  const _models_1 = require("./_models");
10
10
  exports.AuditorValidationSchema = joi_1.default.object({
11
11
  _id: joi_1.default.string(),
12
+ uiId: joi_1.default.string().required(),
12
13
  name: joi_1.default.string().required(),
13
14
  isDeleted: joi_1.default.boolean(),
14
15
  order: joi_1.default.number().required().allow(null),
@@ -30,6 +30,7 @@ export interface IAuditorPlain extends IAuditor {
30
30
 
31
31
  export const AuditorValidationSchema = Joi.object({
32
32
  _id: Joi.string(),
33
+ uiId: Joi.string().required(),
33
34
  name: Joi.string().required(),
34
35
  isDeleted: Joi.boolean(),
35
36
  order: Joi.number().required().allow (null),
@@ -10,6 +10,7 @@ const _models_1 = require("./_models");
10
10
  exports.AuditorContactValidationSchema = joi_1.default.object({
11
11
  _id: joi_1.default.string(),
12
12
  auditorId: joi_1.default.string(),
13
+ uiId: joi_1.default.string().required(),
13
14
  name: joi_1.default.string().required(),
14
15
  email: joi_1.default.string().allow(''),
15
16
  phone: joi_1.default.string().allow(''),
@@ -33,6 +33,7 @@ export interface IAuditorContactPlain extends Omit<IAuditorContact, 'auditorId'>
33
33
  export const AuditorContactValidationSchema = Joi.object({
34
34
  _id: Joi.string(),
35
35
  auditorId: Joi.string(),
36
+ uiId: Joi.string().required(),
36
37
  name: Joi.string().required(),
37
38
  email: Joi.string().allow(''),
38
39
  phone: Joi.string().allow(''),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.126",
3
+ "version": "1.5.127",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {