payservedb 5.5.1 → 5.5.3

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.1",
3
+ "version": "5.5.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,24 +1,37 @@
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: {
7
+ port: {
8
+ type: Number,
9
+ required: true
10
+ },
11
+ secure: {
12
+ type: Boolean,
13
+ default: false
14
+ },
15
+ sender: {
8
16
  type: String,
9
17
  required: true
10
18
  },
11
- host: {
19
+ user: {
12
20
  type: String,
13
21
  required: true
14
22
  },
15
- port: {
16
- type: Number,
23
+ pass: {
24
+ type: String,
17
25
  required: true
18
26
  },
19
- auth: {
20
- user: String,
21
- pass: String
27
+ rejectUnauthorized: {
28
+ type: Boolean,
29
+ default: false
30
+ },
31
+ facilityId: {
32
+ type: mongoose.Schema.Types.ObjectId,
33
+ ref: 'Facility',
34
+ required: true
22
35
  }
23
36
  })
24
37
  const Email = mongoose.model('Email', EmailSchema);