flykup_model_development 3.1.39 → 3.1.41

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.
@@ -21,7 +21,11 @@ const notificationSchema = new mongoose.Schema(
21
21
  'seller_broadcast',
22
22
  'live_stream_start',
23
23
  'seller_order_update',
24
- 'new_show_scheduled'
24
+ 'new_show_scheduled',
25
+ 'cohost_invite',
26
+ 'cohost_accepted',
27
+ 'cohost_rejected',
28
+ 'cohost_join_live'
25
29
  ],
26
30
  required: true,
27
31
  },
@@ -101,14 +105,18 @@ const notificationSchema = new mongoose.Schema(
101
105
  type: String,
102
106
  },
103
107
  },
108
+ // metadata: {
109
+ // status: String,
110
+ // reason: String,
111
+ // orderId: mongoose.Schema.Types.ObjectId,
112
+ // requestId: mongoose.Schema.Types.ObjectId,
113
+ // customerName: String,
114
+ // sellerName: String,
115
+ // customerProfileURL: String,
116
+ // },
104
117
  metadata: {
105
- status: String,
106
- reason: String,
107
- orderId: mongoose.Schema.Types.ObjectId,
108
- requestId: mongoose.Schema.Types.ObjectId,
109
- customerName: String,
110
- sellerName: String,
111
- customerProfileURL: String,
118
+ type: mongoose.Schema.Types.Mixed, // This allows any JSON object
119
+ default: {} // Default to empty object
112
120
  },
113
121
  },
114
122
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.39",
3
+ "version": "3.1.41",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,