vhp-mongo-models 2.1.84 → 2.1.86

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.
@@ -9,6 +9,7 @@ module.exports = [
9
9
  id:{type:String,default:''},
10
10
  hhid:{type: String, default:''},
11
11
  custid:{type: String, default:''},//person calling in, could be the occupant
12
+ email:{type:String, default:''},
12
13
  clientfirst:{type:String, default:''},
13
14
  clientlast:{type:String, default:''},
14
15
  street:{type:String,default:''},
@@ -5,6 +5,7 @@ module.exports = [
5
5
  type: { type: String, default: '' },
6
6
  notes: { type: String, default: '' },
7
7
  pricesale: { type: Number, default: 0 },
8
+ priceRange: { type:Array,default:[] },
8
9
  pricededuct: { type: Number, default: 0 }, //price to take off
9
10
  labor: { type: Number, default: 0 },
10
11
  laborpart: { type: Number, default: 0 },
@@ -13,5 +14,17 @@ module.exports = [
13
14
  builtinCode: { type: String, default: '' },
14
15
  builtinType: { type: String, default: '' },
15
16
  variants: { type: Array, default: [] } // should actually default to false if possible
16
- }
17
- ]
17
+ },{}
18
+ ]
19
+
20
+ /*
21
+ priceRange = [{
22
+ "min": number,
23
+ "max": number,
24
+ "price": number,
25
+ "rate": number,
26
+ "laborField": number,
27
+ "laborShop": number,
28
+ "crewSize": number
29
+ }]
30
+ */
@@ -8,5 +8,5 @@ module.exports = [
8
8
  unit: { type: String, default: 'dollars' }, // dollars | percent | hours
9
9
  builtinCode: { type: String, default: '' },
10
10
  builtinType: { type: String, default: '' }
11
- }
11
+ },{}
12
12
  ]
@@ -10,5 +10,5 @@ module.exports = [
10
10
  min: { type: Number, default: 0 },
11
11
  max: { type: Number, default: 0 },
12
12
  manf: { type: String, default: '' }
13
- }
13
+ },{}
14
14
  ]
@@ -5,5 +5,5 @@ module.exports=[
5
5
  current:{type:String,default:''}, // pkid | update date?
6
6
  dept:{type:String,default:''},
7
7
  user:{type:Array,default:[]}
8
- }
8
+ },{}
9
9
  ]
@@ -19,4 +19,4 @@ module.exports = [{
19
19
  enabled:{type:Boolean,default:true}, //whether its active
20
20
  present:{type:Boolean,default:true},
21
21
  signature:{type:Boolean,default:false} //if a signature is required to complete
22
- },{minimize:false}]
22
+ },{minimize:false}]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "2.1.84",
3
+ "version": "2.1.86",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",
@@ -9,9 +9,6 @@
9
9
  "main": "index.js",
10
10
  "scripts": {
11
11
  },
12
- "dependencies": {
13
- "mongoose":"^9.2.3"
14
- },
15
12
  "devDependencies": {
16
13
  "jsdoc": "^4.0.3"
17
14
  }