picker-db 5.0.20 → 5.0.22

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
@@ -241,18 +241,18 @@ module.exports = {
241
241
  },
242
242
  },
243
243
  PROOF_OF_DELIVERY: {
244
- NONE:{
244
+ NONE: {
245
245
  index: 0,
246
246
  text: "NONE",
247
- } ,
247
+ },
248
248
  CODE: {
249
249
  index: 1,
250
250
  text: "CODE",
251
- } ,
251
+ },
252
252
  PHOTO: {
253
253
  index: 2,
254
254
  text: "PHOTO",
255
- }
255
+ },
256
256
  },
257
257
  SOCIAL_ACCOUNTS: {
258
258
  FACEBOOK: "facebook",
@@ -459,7 +459,7 @@ module.exports = {
459
459
  NO_COVERAGE: "NO_COVERAGE",
460
460
  DRIVERS_BUSY: "DRIVERS_BUSY",
461
461
  INVALID_DATA: "INVALID_DATA",
462
- PROVIDER_ERROR: "PROVIDER_ERROR"
462
+ PROVIDER_ERROR: "PROVIDER_ERROR",
463
463
  },
464
464
  BOOKING: {
465
465
  BOOKING_STOP_TYPES: {
@@ -1,4 +1,4 @@
1
- const { PNF_REASON } = require("../../../constants");
1
+ const { PNF_REASON, BOOKING } = require("../../../constants");
2
2
 
3
3
  /** @param {import("mongoose")} connection */
4
4
  module.exports = (connection) => {
@@ -14,14 +14,14 @@ module.exports = (connection) => {
14
14
  deliveryAddress: { type: String },
15
15
  businessName: { type: String },
16
16
  workspaceID: { type: connection.base.Schema.ObjectId, index: true, required: true },
17
- businessID: { type: connection.base.Schema.ObjectId, index: true, required: true },
17
+ businessID: { type: connection.base.Schema.ObjectId, index: true, required: true },
18
18
  externalBookingId: { type: String },
19
+ externalStoreID: { type: String },
19
20
  elapsedTime: { type: Number },
20
21
  paymentMethod: { type: String },
21
22
  carName: { type: String },
22
23
  requiresProofOfDelivery: { type: Boolean },
23
24
  deliveryCertification: { type: Boolean },
24
- externalBookingId: { type: String },
25
25
  pnfReason: {
26
26
  type: String,
27
27
  enum: [
@@ -64,7 +64,7 @@ module.exports = (connection) => {
64
64
  BOOKING.SEARCH_TYPES.GROUND,
65
65
  ],
66
66
  default: BOOKING.SEARCH_TYPES.ON_DEMAND,
67
- index: true,
67
+ index: true,
68
68
  },
69
69
  weight: {
70
70
  type: Number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "5.0.20",
3
+ "version": "5.0.22",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {