flykup_model_development 3.1.61 → 3.1.63

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.
@@ -252,7 +252,7 @@ const orderSchema = new mongoose.Schema(
252
252
  },
253
253
  sourceType: {
254
254
  type: String,
255
- enum: ['static', 'shoppable_video', 'livestream', 'auction', 'flash_sale', 'giveaway'],
255
+ enum: ['static', 'shoppable_video', 'livestream', 'auction', 'flash_sale', 'giveaway','bundle_sale'],
256
256
  required: true
257
257
  },
258
258
  sourceRefId: String,
@@ -86,12 +86,16 @@ const bundleSaleSchema = new Schema({
86
86
  return this.bundleSaleId != null;
87
87
  }
88
88
  },
89
- bundleTitle: { type: String }, // For quick reference
90
- sellingPrice: { type: Number, min: 0, default: null }, // Price at time of adding to show
89
+ bundleTitle: { type: String }, // Quick reference title
90
+ bundleMRP: { type: Number, min: 0, default: null }, // Original MRP
91
+ sellingPrice: { type: Number, min: 0, default: null }, // Actual selling price
92
+ bundleImage: { // Bundle thumbnail image
93
+ key: { type: String, default: null },
94
+ url: { type: String, default: null }
95
+ },
91
96
  createdAt: { type: Date, default: Date.now }
92
97
  });
93
98
 
94
-
95
99
  // Show Schema with FIXED validation
96
100
  const showSchema = new Schema(
97
101
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.61",
3
+ "version": "3.1.63",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,