flykup_model_development 3.1.22 → 3.1.25
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/models/order.modal.js +16 -2
- package/models/seller.model.js +2 -0
- package/package.json +1 -1
package/models/order.modal.js
CHANGED
|
@@ -475,9 +475,9 @@ const orderSchema = new mongoose.Schema(
|
|
|
475
475
|
expectedDeliveryDate: Date,
|
|
476
476
|
shipmentBookedAt: Date,
|
|
477
477
|
logisticsResponse: mongoose.Schema.Types.Mixed,
|
|
478
|
-
|
|
478
|
+
shipmentBookingStatus: {
|
|
479
479
|
type: String,
|
|
480
|
-
enum: ['pending', 'booked', 'failed','cancelled'],
|
|
480
|
+
enum: ['pending', 'booked', 'failed', 'cancelled', 'cancellation_failed'], // Add the new value here
|
|
481
481
|
default: 'pending'
|
|
482
482
|
},
|
|
483
483
|
shipmentBookingError: String,
|
|
@@ -515,6 +515,20 @@ const orderSchema = new mongoose.Schema(
|
|
|
515
515
|
width: Number,
|
|
516
516
|
height: Number
|
|
517
517
|
},
|
|
518
|
+
tracking: {
|
|
519
|
+
lastSyncedAt: Date,
|
|
520
|
+
currentStatus: String,
|
|
521
|
+
statusCode: String,
|
|
522
|
+
progressPercentage: Number,
|
|
523
|
+
currentLocation: String,
|
|
524
|
+
estimatedDelivery: Date,
|
|
525
|
+
trackingTimeline: [{
|
|
526
|
+
date: Date,
|
|
527
|
+
status: String,
|
|
528
|
+
location: String,
|
|
529
|
+
icon: String
|
|
530
|
+
}]
|
|
531
|
+
},
|
|
518
532
|
volumetricWeight: Number
|
|
519
533
|
},
|
|
520
534
|
pickupAddresses: [{
|
package/models/seller.model.js
CHANGED
|
@@ -113,6 +113,8 @@ const SellerSchema = new mongoose.Schema(
|
|
|
113
113
|
fssaiCertificateFileName: {
|
|
114
114
|
type: String
|
|
115
115
|
},
|
|
116
|
+
bisCertificateFileName: { type: String, default: null }, // New BIS certificate
|
|
117
|
+
qualityCertificateFileName: { type: String, default: null }, // New Quality certificate
|
|
116
118
|
productCatalog: {
|
|
117
119
|
link: { type: String },
|
|
118
120
|
file: { type: String }, // for old sellers
|