payservedb 5.5.0 → 5.5.2

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": "5.5.0",
3
+ "version": "5.5.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,24 +1,33 @@
1
1
  const mongoose = require('mongoose');
2
2
  const EmailSchema = mongoose.Schema({
3
- user: {
3
+ host: {
4
4
  type: String,
5
5
  required: true
6
6
  },
7
- from: {
8
- type: String,
7
+ port: {
8
+ type: Number,
9
9
  required: true
10
10
  },
11
- host: {
11
+ secure: {
12
+ type: Boolean,
13
+ default: false
14
+ },
15
+ user: {
12
16
  type: String,
13
17
  required: true
14
18
  },
15
- port: {
16
- type: Number,
19
+ pass: {
20
+ type: String,
17
21
  required: true
18
22
  },
19
- auth: {
20
- user: String,
21
- pass: String
23
+ rejectUnauthorized: {
24
+ type: Boolean,
25
+ default: false
26
+ },
27
+ facilityId: {
28
+ type: mongoose.Schema.Types.ObjectId,
29
+ ref: 'Facility',
30
+ required: true
22
31
  }
23
32
  })
24
33
  const Email = mongoose.model('Email', EmailSchema);
@@ -51,6 +51,7 @@ const unitSchema = new mongoose.Schema({
51
51
  {
52
52
  customerId: { type: mongoose.Schema.Types.ObjectId, ref: 'Customer' },
53
53
  customerType: { type: String, enum: ['home owner', 'tenant'] },
54
+ residentType: { type: String, enum: [ 'resident'] },
54
55
  moveInDate: { type: Date },
55
56
  moveOutDate: { type: Date, default: null }
56
57
  }