lfra_db 1.2.2 → 1.2.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lfra_db",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,7 +19,7 @@ const CustomerSchema = new mongoose.Schema({
19
19
  },
20
20
  idNumber: {
21
21
  type: String,
22
- required: true,
22
+ required: false,
23
23
  },
24
24
  email: {
25
25
  type: String,
@@ -27,15 +27,15 @@ const CustomerSchema = new mongoose.Schema({
27
27
  },
28
28
  nextOfKinName: {
29
29
  type: String,
30
- required: true
30
+ required: false
31
31
  },
32
32
  nextOfKinRelationship: {
33
33
  type: String,
34
- required: true
34
+ required: false
35
35
  },
36
36
  nextOfKinContact: {
37
37
  type: String,
38
- required: true
38
+ required: false
39
39
  },
40
40
  customerType: {
41
41
  type: String,
@@ -84,6 +84,19 @@ const visitLogSchema = new mongoose.Schema({
84
84
  type: Number,
85
85
  required: false
86
86
  },
87
+ idDocument: {
88
+ imageUrl: String,
89
+
90
+ documentType: String,
91
+
92
+ idNumber: String,
93
+
94
+ fullName: String,
95
+
96
+ nationality: String,
97
+
98
+ rawOCR: mongoose.Schema.Types.Mixed
99
+ },
87
100
  requestedBy: {
88
101
  type: mongoose.Schema.Types.ObjectId,
89
102
  ref: 'User',