picker-db 5.0.15 → 5.0.18

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.18
6
+ ### Added
7
+ * DP-14557: Added `externalStoreID` field to Booking and User schemas (String, default `null`) so the store's external identifier can be snapshotted onto bookings.
8
+
9
+ ## v5.0.16
10
+ ### Added
11
+ * DP-14676: Added `bookingNotes` field to Booking Stops schema (String) for capturing additional notes related to booking stops.
12
+
5
13
  ## v5.0.15
6
14
  ### Added
7
15
  * DP-14571: Added `volume` field to Booking schema (String, enum `XSMALL|SMALL|MEDIUM|LARGE|XLARGE`) for Ground Delivery package size category.
@@ -51,6 +51,9 @@ module.exports = (connection) => {
51
51
  enum: Object.values(BOOKING.BOOKING_STOP_STATUSES),
52
52
  default: BOOKING.BOOKING_STOP_STATUSES.PENDING,
53
53
  },
54
+ bookingNotes: {
55
+ type: String,
56
+ },
54
57
  }, { timestamps: true, strict: false });
55
58
 
56
59
  return BookingStopSchema;
@@ -418,6 +418,13 @@ module.exports = (connection) => {
418
418
  BOOKING.VOLUMES.XLARGE,
419
419
  ],
420
420
  },
421
+ // Ground-only: S3 URI (s3://bucket/key) of the carrier-issued shipping label.
422
+ // Written by gd-search-orchestrator-service after createOrder succeeds
423
+ // (DP-14584). The dashboard-backend exposes it to the front via a
424
+ // pre-signed GET URL on demand — the raw URI is never returned to clients.
425
+ labelUrl: {
426
+ type: String,
427
+ },
421
428
  transactionDetails: {
422
429
  itemCharge: {
423
430
  type: connection.base.Schema.ObjectId,
@@ -810,6 +817,10 @@ module.exports = (connection) => {
810
817
  externalBookingId: {
811
818
  type: String,
812
819
  },
820
+ externalStoreID: {
821
+ type: String,
822
+ default: null,
823
+ },
813
824
  userBookingCreator: {
814
825
  type: String,
815
826
  },
@@ -294,6 +294,10 @@ module.exports = (connection) => {
294
294
  apiKey: {
295
295
  type: String,
296
296
  },
297
+ externalStoreID: {
298
+ type: String,
299
+ default: null,
300
+ },
297
301
  externalAPIConfiguration: ExternalAPIConfSchema,
298
302
  firebaseID: {
299
303
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "5.0.15",
3
+ "version": "5.0.18",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {