payservedb 7.8.5 → 7.8.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": "7.8.5",
3
+ "version": "7.8.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -28,6 +28,9 @@ const powerMeterGatewaySchema = new mongoose.Schema({
28
28
  },
29
29
  status: {
30
30
  type: String
31
+ },
32
+ gatewayStatus: {
33
+ type: String
31
34
  }
32
35
  }, {
33
36
  timestamps: true
@@ -84,10 +84,22 @@ const powerMeterSchema = new mongoose.Schema({
84
84
  enum: ['Off', 'On', 'Maintenance', 'Faulty'],
85
85
  default: 'On'
86
86
  },
87
- gatewayLiveStatus: {
87
+ gateWayLiveStatus: {
88
88
  type: String,
89
- enum: ['on', 'off'],
90
- default: 'off'
89
+ enum: ['online', 'offline'],
90
+ default: 'offline'
91
+ },
92
+ meterLiveStatus: {
93
+ type: String,
94
+ enum: ['online', 'offline'],
95
+ default: 'offline'
96
+ },
97
+ meterLiveStatusUpdated: {
98
+ type: Date,
99
+ },
100
+ getWayLiveStatusUpdated: {
101
+ type: Date,
102
+ default: Date.now
91
103
  },
92
104
  meterStatus: {
93
105
  type: String,