picker-db 5.0.6 → 5.0.8

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/constants.js CHANGED
@@ -462,5 +462,9 @@ module.exports = {
462
462
  PICKUP: "PICKUP",
463
463
  DELIVERY: "DELIVERY",
464
464
  },
465
- }
465
+ SUBTYPES: {
466
+ PICKUP_AND_DELIVER: "PICKUP_AND_DELIVER",
467
+ MULTI_PICKING: "MULTI_PICKING",
468
+ },
469
+ },
466
470
  };
@@ -1,4 +1,4 @@
1
- const { VEHICLE_TYPES, PAYMENT_METHODS, BOOKING_TYPES, BOOKING_STATUS, DELIVERY_CHARGE_TYPE, PROOF_OF_DELIVERY, PNF_REASON } = require("../../../constants");
1
+ const { VEHICLE_TYPES, PAYMENT_METHODS, BOOKING_TYPES, BOOKING_STATUS, DELIVERY_CHARGE_TYPE, PROOF_OF_DELIVERY, PNF_REASON, BOOKING } = require("../../../constants");
2
2
  const { DEVICE_TYPES } = require("../../../constants").USER;
3
3
 
4
4
  const PricingDetailsSchema = require("./pricingDetails");
@@ -375,7 +375,11 @@ module.exports = (connection) => {
375
375
  },
376
376
  subtype: {
377
377
  type: String,
378
- default: "PICKUP_AND_DELIVER",
378
+ enum: [
379
+ BOOKING.SUBTYPES.PICKUP_AND_DELIVER,
380
+ BOOKING.SUBTYPES.MULTI_PICKING,
381
+ ],
382
+ default: BOOKING.SUBTYPES.PICKUP_AND_DELIVER,
379
383
  },
380
384
  transactionDetails: {
381
385
  itemCharge: {
@@ -35,6 +35,10 @@ module.exports = (connection) => {
35
35
  type: String,
36
36
  required: false,
37
37
  },
38
+ billedDistance: {
39
+ type: Number,
40
+ required: false,
41
+ },
38
42
  origin: {
39
43
  type: String,
40
44
  required: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "5.0.6",
3
+ "version": "5.0.8",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {