picker-db 5.0.13 → 5.0.15

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,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## v5.0.15
6
+ ### Added
7
+ * DP-14571: Added `volume` field to Booking schema (String, enum `XSMALL|SMALL|MEDIUM|LARGE|XLARGE`) for Ground Delivery package size category.
8
+ * Added `BOOKING.VOLUMES` constant.
9
+
10
+ ## v5.0.14
11
+ ### Added
12
+ * DP-14623: Added `businessName` field to Booking Stop entity for tracking business name information in booking stops.
13
+
5
14
  ## v5.0.13
6
15
  ### Added
7
16
  * DP-14570: Added `weight` field to Booking schema (Number, min: 0) for Ground Delivery package weight in pounds (LB).
package/constants.js CHANGED
@@ -475,6 +475,13 @@ module.exports = {
475
475
  EXPRESS: "EXPRESS",
476
476
  GROUND: "GROUND",
477
477
  },
478
+ VOLUMES: {
479
+ XSMALL: "XSMALL",
480
+ SMALL: "SMALL",
481
+ MEDIUM: "MEDIUM",
482
+ LARGE: "LARGE",
483
+ XLARGE: "XLARGE",
484
+ },
478
485
  BOOKING_STOP_STATUSES: {
479
486
  PENDING: "PENDING",
480
487
  ACCEPTED: "ACCEPTED",
@@ -18,6 +18,9 @@ module.exports = (connection) => {
18
18
  ref: "User",
19
19
  required: true,
20
20
  },
21
+ businessName: {
22
+ type: String,
23
+ },
21
24
  address: {
22
25
  type: String,
23
26
  },
@@ -408,6 +408,16 @@ module.exports = (connection) => {
408
408
  type: Number,
409
409
  min: 0,
410
410
  },
411
+ volume: {
412
+ type: String,
413
+ enum: [
414
+ BOOKING.VOLUMES.XSMALL,
415
+ BOOKING.VOLUMES.SMALL,
416
+ BOOKING.VOLUMES.MEDIUM,
417
+ BOOKING.VOLUMES.LARGE,
418
+ BOOKING.VOLUMES.XLARGE,
419
+ ],
420
+ },
411
421
  transactionDetails: {
412
422
  itemCharge: {
413
423
  type: connection.base.Schema.ObjectId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "5.0.13",
3
+ "version": "5.0.15",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {