picker-db 3.4.0 → 3.5.0

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
@@ -417,4 +417,10 @@ module.exports = {
417
417
  text: "EFFICIENT",
418
418
  },
419
419
  },
420
+ DELIVERY_CHARGE_TYPE: {
421
+ NO_CHARGE: "NO_CHARGE",
422
+ RECOMMENDED_VALUE: "RECOMMENDED_VALUE",
423
+ CUSTOM_VALUE: "CUSTOM_VALUE",
424
+ NONE: "NONE",
425
+ }
420
426
  };
@@ -1,4 +1,4 @@
1
- const { VEHICLE_TYPES, PAYMENT_METHODS, BOOKING_TYPES, BOOKING_STATUS } = require("../../../constants");
1
+ const { VEHICLE_TYPES, PAYMENT_METHODS, BOOKING_TYPES, BOOKING_STATUS, DELIVERY_CHARGE_TYPE } = require("../../../constants");
2
2
  const { DEVICE_TYPES } = require("../../../constants").USER;
3
3
 
4
4
  const PricingDetailsSchema = require("./pricingDetails");
@@ -676,6 +676,16 @@ module.exports = (connection) => {
676
676
  type: Boolean,
677
677
  default: true,
678
678
  },
679
+ typeDeliveryCharge: {
680
+ type: String,
681
+ enum: [
682
+ DELIVERY_CHARGE_TYPE.NO_CHARGE,
683
+ DELIVERY_CHARGE_TYPE.CUSTOM_VALUE,
684
+ DELIVERY_CHARGE_TYPE.RECOMMENDED_VALUE,
685
+ DELIVERY_CHARGE_TYPE.NONE,
686
+ ],
687
+ default: DELIVERY_CHARGE_TYPE.NONE,
688
+ },
679
689
  }, { timestamps: true });
680
690
 
681
691
  BookingSchema.pre("save", function (next) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {