picker-db 4.3.5 → 4.3.6

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
@@ -447,4 +447,10 @@ module.exports = {
447
447
  FAILED: "FAILED",
448
448
  },
449
449
  },
450
+ PNF_REASON: {
451
+ NO_COVERAGE: "NO_COVERAGE",
452
+ DRIVERS_BUSY: "DRIVERS_BUSY",
453
+ INVALID_DATA: "INVALID_DATA",
454
+ PROVIDER_ERROR: "PROVIDER_ERROR"
455
+ }
450
456
  };
@@ -1,4 +1,4 @@
1
- const { VEHICLE_TYPES, PAYMENT_METHODS, BOOKING_TYPES, BOOKING_STATUS, DELIVERY_CHARGE_TYPE, PROOF_OF_DELIVERY } = require("../../../constants");
1
+ const { VEHICLE_TYPES, PAYMENT_METHODS, BOOKING_TYPES, BOOKING_STATUS, DELIVERY_CHARGE_TYPE, PROOF_OF_DELIVERY, PNF_REASON } = require("../../../constants");
2
2
  const { DEVICE_TYPES } = require("../../../constants").USER;
3
3
 
4
4
  const PricingDetailsSchema = require("./pricingDetails");
@@ -892,6 +892,15 @@ module.exports = (connection) => {
892
892
  type: Boolean,
893
893
  default: false,
894
894
  },
895
+ pnfReason: {
896
+ type: String,
897
+ enum: [
898
+ PNF_REASON.NO_COVERAGE,
899
+ PNF_REASON.DRIVERS_BUSY,
900
+ PNF_REASON.INVALID_DATA,
901
+ PNF_REASON.PROVIDER_ERROR,
902
+ ],
903
+ },
895
904
  }, { timestamps: true });
896
905
 
897
906
  BookingSchema.pre("save", async function (next) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "4.3.5",
3
+ "version": "4.3.6",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {