picker-db 5.0.11 → 5.0.13

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,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## v5.0.13
6
+ ### Added
7
+ * DP-14570: Added `weight` field to Booking schema (Number, min: 0) for Ground Delivery package weight in pounds (LB).
8
+
9
+ ## v5.0.12
10
+ ### Added
11
+ * DP-14414: Added `guideID` (ObjectId, indexed) and `guideNumericId` (number) fields to Booking schema for guide-booking relationships.
12
+
5
13
  ## v5.0.11
6
14
  ### Added
7
15
  * DP-14315: Added `searchType` field to Booking schema with enum `ON_DEMAND | EXPRESS | GROUND` (default `ON_DEMAND`, indexed). Backbone for Ground Delivery epic.
package/CLAUDE.md CHANGED
@@ -84,4 +84,4 @@ npm test
84
84
 
85
85
  ## Recent Context
86
86
 
87
- The repository is on the `feature/CT-187-index-optimizations` branch with uncommitted changes to `modules/picker/schemas/bookings.js`. This work is focused on database index optimizations.
87
+ The repository is on the `DP-14570` branch. Recent work added a `weight` field (Number, min: 0, in LB) to the Bookings schema to support package weight in Ground Delivery flows. Version has been bumped to 5.0.13.
@@ -265,6 +265,17 @@ module.exports = (connection) => {
265
265
  },
266
266
  driverAccountingType: { type: String },
267
267
  // #endregion Driver Info
268
+ // #region Guide Info
269
+ guideID: {
270
+ type: connection.base.Schema.ObjectId,
271
+ default: null,
272
+ index: true,
273
+ sparse: true,
274
+ },
275
+ guideNumericId: {
276
+ type: Number,
277
+ },
278
+ // #endregion Guide Info
268
279
  // #region Delivery location Info
269
280
  deliveryCity: {
270
281
  type: String,
@@ -393,6 +404,10 @@ module.exports = (connection) => {
393
404
  default: BOOKING.SEARCH_TYPES.ON_DEMAND,
394
405
  index: true,
395
406
  },
407
+ weight: {
408
+ type: Number,
409
+ min: 0,
410
+ },
396
411
  transactionDetails: {
397
412
  itemCharge: {
398
413
  type: connection.base.Schema.ObjectId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "5.0.11",
3
+ "version": "5.0.13",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {