picker-db 4.1.0 → 4.2.1

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.
@@ -884,7 +884,8 @@ module.exports = (connection) => {
884
884
  },
885
885
  workspaceCountry: {
886
886
  type: String,
887
- }
887
+ },
888
+ publicBookingToken: { type: String, sparse: true, unique: true },
888
889
  }, { timestamps: true });
889
890
 
890
891
  BookingSchema.pre("save", function (next) {
@@ -15,6 +15,10 @@ module.exports = (connection) => {
15
15
  workspaceID: { type: connection.base.Schema.ObjectId, index: true, required: true },
16
16
  businessID: { type: connection.base.Schema.ObjectId, index: true, required: true },
17
17
  externalBookingId: { type: String },
18
+ elapsedTime: { type: Number },
19
+ paymentMethod: { type: String },
20
+ carName: { type: String },
21
+ requiresProofOfDelivery: { type: Boolean },
18
22
  }, { timestamps: false });
19
23
 
20
24
  return MiniBookingSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {