payservedb 9.7.6 → 9.7.7

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": "payservedb",
3
- "version": "9.7.6",
3
+ "version": "9.7.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -13,6 +13,10 @@ const CustomerSchema = new mongoose.Schema({
13
13
  type: String,
14
14
  required: true,
15
15
  },
16
+ displayName: {
17
+ type: String,
18
+ required: true,
19
+ },
16
20
  phoneNumber: {
17
21
  type: String,
18
22
  required: true,
@@ -12,6 +12,10 @@ const userSchema = new mongoose.Schema({
12
12
  lowercase: true,
13
13
  trim: true,
14
14
  },
15
+ displayName: {
16
+ type: String,
17
+ required: true,
18
+ },
15
19
  phoneNumber: {
16
20
  type: String,
17
21
  required: [true, 'Phone number is required'],
@@ -22,7 +26,7 @@ const userSchema = new mongoose.Schema({
22
26
  type: String,
23
27
  required: false
24
28
  },
25
- type: {
29
+ type: {
26
30
  type: String,
27
31
  required: [true, 'Type is required'],
28
32
  enum: ['Company', 'Project Manager', 'Universal', 'Core', 'Resident', 'Landlord', 'Supplier', 'Customer_Support', 'Customer'],
@@ -34,7 +38,7 @@ const userSchema = new mongoose.Schema({
34
38
  role: {
35
39
  type: String,
36
40
  required: [true, 'Role is required'],
37
- enum: ['admin', 'editor', 'user', 'guard', 'family', 'Staff', 'supplier', 'ninja'],
41
+ enum: ['admin', 'editor', 'user', 'guard', 'family', 'Staff', 'supplier'],
38
42
  },
39
43
  permissions: {
40
44
  type: Object,