payservedb 5.2.7 → 5.2.9

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.2.7",
3
+ "version": "5.2.9",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -46,6 +46,12 @@ const rfqResponseSchema = new mongoose.Schema({
46
46
  default: '',
47
47
  }
48
48
  }],
49
+ deliveryDays: {
50
+ type: Number,
51
+ required: true,
52
+ min: 1,
53
+ default: 7
54
+ },
49
55
 
50
56
  notes: {
51
57
  type: String,
@@ -87,7 +93,7 @@ const rfqResponseSchema = new mongoose.Schema({
87
93
  type: String,
88
94
  trim: true,
89
95
  default: ''
90
- },
96
+ }
91
97
  },
92
98
  }, {
93
99
  timestamps: true,
@@ -17,6 +17,11 @@ const dailyWaterMeterHistorySchema = new mongoose.Schema({
17
17
  required: true,
18
18
  min: 0
19
19
  },
20
+ status: {
21
+ type: String,
22
+ enum: ['opened', 'closed', 'maintenance', 'faulty'],
23
+ default: 'opened',
24
+ },
20
25
  timeStamps: {
21
26
  type: [Date],
22
27
  default: []
@@ -8,7 +8,7 @@ const singleDayWaterMeterHistorySchema = new mongoose.Schema({
8
8
  index: true
9
9
  },
10
10
  date: {
11
- type: String,
11
+ type: String,
12
12
  required: true
13
13
  },
14
14
  reading: {
@@ -16,8 +16,13 @@ const singleDayWaterMeterHistorySchema = new mongoose.Schema({
16
16
  required: true,
17
17
  min: 0
18
18
  },
19
+ status: {
20
+ type: String,
21
+ enum: ['opened', 'closed', 'maintenance', 'faulty'],
22
+ default: 'opened',
23
+ },
19
24
  time: {
20
- type: String,
25
+ type: String,
21
26
  required: true
22
27
  }
23
28
  }, {