picker-db 5.0.10 → 5.0.11

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## v5.0.11
6
+ ### Added
7
+ * DP-14315: Added `searchType` field to Booking schema with enum `ON_DEMAND | EXPRESS | GROUND` (default `ON_DEMAND`, indexed). Backbone for Ground Delivery epic.
8
+ * Added `BOOKING.SEARCH_TYPES` constant.
9
+
5
10
  ## v3.6.0
6
11
  ### Added
7
12
  * Mongo Atlas Connection: Added configuration for connection with MongoAtlas database
package/constants.js CHANGED
@@ -470,6 +470,11 @@ module.exports = {
470
470
  PICKUP_AND_DELIVER: "PICKUP_AND_DELIVER",
471
471
  MULTI_PICKING: "MULTI_PICKING",
472
472
  },
473
+ SEARCH_TYPES: {
474
+ ON_DEMAND: "ON_DEMAND",
475
+ EXPRESS: "EXPRESS",
476
+ GROUND: "GROUND",
477
+ },
473
478
  BOOKING_STOP_STATUSES: {
474
479
  PENDING: "PENDING",
475
480
  ACCEPTED: "ACCEPTED",
@@ -383,6 +383,16 @@ module.exports = (connection) => {
383
383
  ],
384
384
  default: BOOKING.SUBTYPES.PICKUP_AND_DELIVER,
385
385
  },
386
+ searchType: {
387
+ type: String,
388
+ enum: [
389
+ BOOKING.SEARCH_TYPES.ON_DEMAND,
390
+ BOOKING.SEARCH_TYPES.EXPRESS,
391
+ BOOKING.SEARCH_TYPES.GROUND,
392
+ ],
393
+ default: BOOKING.SEARCH_TYPES.ON_DEMAND,
394
+ index: true,
395
+ },
386
396
  transactionDetails: {
387
397
  itemCharge: {
388
398
  type: connection.base.Schema.ObjectId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "5.0.10",
3
+ "version": "5.0.11",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {