gemcap-be-common 1.5.125 → 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.
@@ -31,6 +31,7 @@ import mongoose, { Document, Model } from 'mongoose';
31
31
  import Joi from 'joi';
32
32
  export interface IAppraiser {
33
33
  isDeleted: boolean;
34
+ uiId: string;
34
35
  name: string;
35
36
  speciality?: string;
36
37
  order?: number;
@@ -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),
@@ -19,6 +20,10 @@ exports.AppraiserSchema = new mongoose_1.default.Schema({
19
20
  type: Boolean,
20
21
  default: false,
21
22
  },
23
+ uiId: {
24
+ type: String,
25
+ required: true,
26
+ },
22
27
  name: {
23
28
  type: String,
24
29
  required: true,
@@ -5,6 +5,7 @@ import { MODEL_NAMES } from './_models';
5
5
 
6
6
  export interface IAppraiser {
7
7
  isDeleted: boolean;
8
+ uiId: string;
8
9
  name: string;
9
10
  speciality?: string;
10
11
  order?: number;
@@ -20,6 +21,7 @@ export interface IAppraiserDoc extends IAppraiser, Document {
20
21
  export const AppraiserValidationSchema = Joi.object({
21
22
  _id: Joi.string(),
22
23
  name: Joi.string().required(),
24
+ uiId: Joi.string().required(),
23
25
  speciality: Joi.string().allow(''),
24
26
  isDeleted: Joi.boolean(),
25
27
  order: Joi.number().required().allow (null),
@@ -33,6 +35,10 @@ export const AppraiserSchema = new mongoose.Schema<IAppraiser, AppraiserModel>(
33
35
  type: Boolean,
34
36
  default: false,
35
37
  },
38
+ uiId: {
39
+ type: String,
40
+ required: true,
41
+ },
36
42
  name: {
37
43
  type: String,
38
44
  required: true,
@@ -31,6 +31,7 @@ import mongoose, { Document, Model } from 'mongoose';
31
31
  import Joi from 'joi';
32
32
  export interface IAppraiserContact {
33
33
  appraiserId: mongoose.Types.ObjectId;
34
+ uiId: string;
34
35
  isDeleted: boolean;
35
36
  name?: string;
36
37
  title?: string;
@@ -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),
@@ -24,6 +25,10 @@ exports.AppraiserContactSchema = new mongoose_1.default.Schema({
24
25
  ref: _models_1.MODEL_NAMES.appraiser,
25
26
  required: true,
26
27
  },
28
+ uiId: {
29
+ type: String,
30
+ required: true,
31
+ },
27
32
  isDeleted: {
28
33
  type: Boolean,
29
34
  default: false,
@@ -5,6 +5,7 @@ import { MODEL_NAMES } from './_models';
5
5
 
6
6
  export interface IAppraiserContact {
7
7
  appraiserId: mongoose.Types.ObjectId;
8
+ uiId: string;
8
9
  isDeleted: boolean;
9
10
  name?: string;
10
11
  title?: string;
@@ -25,6 +26,7 @@ export interface IAppraiserContactDoc extends IAppraiserContact, Document {
25
26
  export const AppraiserContactValidationSchema = Joi.object({
26
27
  _id: Joi.string(),
27
28
  appraiserId: Joi.string(),
29
+ uiId: Joi.string().required(),
28
30
  name: Joi.string().allow(''),
29
31
  title: Joi.string().allow(''),
30
32
  emails: Joi.array().items(Joi.string().email()).allow(null),
@@ -43,6 +45,10 @@ export const AppraiserContactSchema = new mongoose.Schema<IAppraiserContact, App
43
45
  ref: MODEL_NAMES.appraiser,
44
46
  required: true,
45
47
  },
48
+ uiId: {
49
+ type: String,
50
+ required: true,
51
+ },
46
52
  isDeleted: {
47
53
  type: Boolean,
48
54
  default: false,
@@ -31,6 +31,7 @@ import mongoose from 'mongoose';
31
31
  import Joi from 'joi';
32
32
  export interface IAuditor {
33
33
  isDeleted: boolean;
34
+ uiId: string;
34
35
  name: string;
35
36
  order?: number;
36
37
  }
@@ -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),
@@ -18,6 +19,10 @@ exports.AuditorSchema = new mongoose_1.default.Schema({
18
19
  type: Boolean,
19
20
  default: false,
20
21
  },
22
+ uiId: {
23
+ type: String,
24
+ required: true,
25
+ },
21
26
  name: {
22
27
  type: String,
23
28
  required: true,
@@ -5,6 +5,7 @@ import { MODEL_NAMES } from './_models';
5
5
 
6
6
  export interface IAuditor {
7
7
  isDeleted: boolean;
8
+ uiId: string;
8
9
  name: string;
9
10
  order?: number;
10
11
  }
@@ -29,6 +30,7 @@ export interface IAuditorPlain extends IAuditor {
29
30
 
30
31
  export const AuditorValidationSchema = Joi.object({
31
32
  _id: Joi.string(),
33
+ uiId: Joi.string().required(),
32
34
  name: Joi.string().required(),
33
35
  isDeleted: Joi.boolean(),
34
36
  order: Joi.number().required().allow (null),
@@ -42,6 +44,10 @@ export const AuditorSchema = new mongoose.Schema<IAuditor, AuditorModel>(
42
44
  type: Boolean,
43
45
  default: false,
44
46
  },
47
+ uiId: {
48
+ type: String,
49
+ required: true,
50
+ },
45
51
  name: {
46
52
  type: String,
47
53
  required: true,
@@ -32,6 +32,7 @@ import Joi from 'joi';
32
32
  export interface IAuditorContact {
33
33
  auditorId: mongoose.Types.ObjectId;
34
34
  isDeleted: boolean;
35
+ uiId: string;
35
36
  name: string;
36
37
  email?: string;
37
38
  normalizedEmail?: string;
@@ -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(''),
@@ -23,6 +24,10 @@ exports.AuditorContactSchema = new mongoose_1.default.Schema({
23
24
  ref: _models_1.MODEL_NAMES.auditors,
24
25
  required: true,
25
26
  },
27
+ uiId: {
28
+ type: String,
29
+ required: true,
30
+ },
26
31
  isDeleted: {
27
32
  type: Boolean,
28
33
  default: false,
@@ -6,6 +6,7 @@ import { MODEL_NAMES } from './_models';
6
6
  export interface IAuditorContact {
7
7
  auditorId: mongoose.Types.ObjectId;
8
8
  isDeleted: boolean;
9
+ uiId: string;
9
10
  name: string;
10
11
  email?: string;
11
12
  normalizedEmail?: string;
@@ -32,6 +33,7 @@ export interface IAuditorContactPlain extends Omit<IAuditorContact, 'auditorId'>
32
33
  export const AuditorContactValidationSchema = Joi.object({
33
34
  _id: Joi.string(),
34
35
  auditorId: Joi.string(),
36
+ uiId: Joi.string().required(),
35
37
  name: Joi.string().required(),
36
38
  email: Joi.string().allow(''),
37
39
  phone: Joi.string().allow(''),
@@ -49,6 +51,10 @@ export const AuditorContactSchema = new mongoose.Schema<IAuditorContact, Auditor
49
51
  ref: MODEL_NAMES.auditors,
50
52
  required: true,
51
53
  },
54
+ uiId: {
55
+ type: String,
56
+ required: true,
57
+ },
52
58
  isDeleted: {
53
59
  type: Boolean,
54
60
  default: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.125",
3
+ "version": "1.5.127",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {