payservedb 8.7.4 → 8.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "8.7.4",
3
+ "version": "8.7.5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -43,10 +43,11 @@ const serviceRequestSchema = new mongoose.Schema({
43
43
  percentage: {
44
44
  type: Number,
45
45
  },
46
- isCommissionSelected: {
47
- type: Boolean,
48
- default: false
49
- }
46
+ raisedBy: {
47
+ type: String,
48
+ enum: ['ADMIN', 'RESIDENT'],
49
+ default: 'ADMIN'
50
+ },
50
51
  }, {
51
52
  timestamps: true
52
53
  });
@@ -1,25 +1,20 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
- // Define the schema for VasVendor
4
3
  const vasVendorSchema = new mongoose.Schema({
5
-
6
4
  facilityId: {
7
5
  type: mongoose.Schema.Types.ObjectId,
8
6
  ref: 'Facility',
9
7
  required: true
10
8
  },
11
-
12
9
  name: {
13
10
  type: String,
14
11
  required: true,
15
12
  trim: true
16
13
  },
17
-
18
14
  address: {
19
15
  type: String,
20
16
  trim: true
21
17
  },
22
-
23
18
  offers: [
24
19
  {
25
20
  serviceId: {
@@ -33,7 +28,6 @@ const vasVendorSchema = new mongoose.Schema({
33
28
  }
34
29
  }
35
30
  ],
36
-
37
31
  contactDetails: {
38
32
  name: {
39
33
  type: String,
@@ -48,15 +42,12 @@ const vasVendorSchema = new mongoose.Schema({
48
42
  match: [/.+\@.+\..+/, 'Please provide a valid email']
49
43
  }
50
44
  },
51
-
52
45
  status: {
53
46
  type: String,
54
47
  enum: ["ACTIVE", "INACTIVE"],
55
48
  default: "ACTIVE"
56
49
  },
57
-
58
50
  notes: String
59
-
60
51
  }, {
61
52
  timestamps: true
62
53
  });