payservedb 5.5.3 → 5.5.5

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/index.js CHANGED
@@ -70,7 +70,7 @@ const models = {
70
70
  AuditLog: require('./src/models/auditlog'),
71
71
  Company: require('./src/models/company'),
72
72
  Customer: require('./src/models/customer'),
73
- Email: require('./src/models/email'),
73
+ FacilityEmailDetails: require('./src/models/email'),
74
74
  Module: require('./src/models/module'),
75
75
  Facility: require('./src/models/facility'),
76
76
  RefreshToken: require('./src/models/refresh_token'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "5.5.3",
3
+ "version": "5.5.5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,5 +1,5 @@
1
1
  const mongoose = require('mongoose');
2
- const EmailSchema = mongoose.Schema({
2
+ const FacilityEmailDetailsSchema = mongoose.Schema({
3
3
  host: {
4
4
  type: String,
5
5
  required: true
@@ -34,5 +34,5 @@ const EmailSchema = mongoose.Schema({
34
34
  required: true
35
35
  }
36
36
  })
37
- const Email = mongoose.model('Email', EmailSchema);
38
- module.exports = Email
37
+ const FacilityEmailDetails = mongoose.model('FacilityEmailDetails', FacilityEmailDetailsSchema);
38
+ module.exports = FacilityEmailDetails
@@ -23,6 +23,10 @@ const waterMeterSchema = new mongoose.Schema({
23
23
  type: mongoose.Schema.Types.ObjectId,
24
24
  ref: 'Facility',
25
25
  },
26
+ facilityName: {
27
+ type: String,
28
+ trim: true
29
+ },
26
30
  unitId: {
27
31
  type: mongoose.Schema.Types.ObjectId,
28
32
  ref: 'Unit',
@@ -80,7 +84,7 @@ const waterMeterSchema = new mongoose.Schema({
80
84
  type: Boolean,
81
85
  default: false
82
86
  },
83
- concentratorSerialNumber: {
87
+ concentratorSerialNumber: {
84
88
  type: String
85
89
  },
86
90
  valveType: { // Specific to smart meters