picker-db 5.0.16 → 5.0.19

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,10 @@
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
+
5
9
  ## v5.0.16
6
10
  ### Added
7
11
  * DP-14676: Added `bookingNotes` field to Booking Stops schema (String) for capturing additional notes related to booking stops.
@@ -418,6 +418,23 @@ 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
+ },
428
+ // Ground-only: expected delivery date for the Ground shipment (DP-14879).
429
+ // Initially set by the user at booking creation (required when
430
+ // searchType === GROUND, must be >= D+1 UTC). After createOrder, the
431
+ // gd-search-orchestrator-service overwrites it with the carrier-confirmed
432
+ // date when FedEx/DHL commit to a different day — this is the binding
433
+ // value the dashboard and external-api expose to the client.
434
+ expectedDeliveryDate: {
435
+ type: Date,
436
+ default: null,
437
+ },
421
438
  transactionDetails: {
422
439
  itemCharge: {
423
440
  type: connection.base.Schema.ObjectId,
@@ -810,6 +827,10 @@ module.exports = (connection) => {
810
827
  externalBookingId: {
811
828
  type: String,
812
829
  },
830
+ externalStoreID: {
831
+ type: String,
832
+ default: null,
833
+ },
813
834
  userBookingCreator: {
814
835
  type: String,
815
836
  },
@@ -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.16",
3
+ "version": "5.0.19",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {