flykup_model_production 1.0.6 → 1.0.8
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/shoppableVideo.model.js +10 -1
- package/models/shows.model.js +15 -2
- package/package.json +1 -1
|
@@ -34,14 +34,19 @@ const ShoppableVideoSchema = new Schema(
|
|
|
34
34
|
},
|
|
35
35
|
description: {
|
|
36
36
|
type: String,
|
|
37
|
-
required:
|
|
37
|
+
required: false,
|
|
38
38
|
trim: true,
|
|
39
39
|
},
|
|
40
40
|
category: { type: String, required: true, trim: true },
|
|
41
41
|
subcategory: { type: String, required: true, trim: true },
|
|
42
42
|
// thumbnailURL might be set initially or updated by the processing service
|
|
43
|
+
isThumbnailEnabled: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false, // toggle OFF by default
|
|
46
|
+
},
|
|
43
47
|
thumbnailURL: {
|
|
44
48
|
type: String,
|
|
49
|
+
default: null
|
|
45
50
|
},
|
|
46
51
|
isProductsAvailable : { type : Boolean, required : true, default : true },
|
|
47
52
|
productsListed: {
|
|
@@ -117,6 +122,10 @@ const ShoppableVideoSchema = new Schema(
|
|
|
117
122
|
enum: ["success", "failed","progress"],
|
|
118
123
|
default: "progress",
|
|
119
124
|
|
|
125
|
+
},
|
|
126
|
+
durationSeconds: {
|
|
127
|
+
type: Number,
|
|
128
|
+
default: null,
|
|
120
129
|
},
|
|
121
130
|
reductionPercentage:{
|
|
122
131
|
type:String,
|
package/models/shows.model.js
CHANGED
|
@@ -107,6 +107,11 @@ const giveawayProductSchema = new Schema({
|
|
|
107
107
|
enum: ['preparing', 'ready', 'active', 'ended', 'failed'],
|
|
108
108
|
default: 'preparing'
|
|
109
109
|
},
|
|
110
|
+
requireAutoFollow: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: false
|
|
113
|
+
},
|
|
114
|
+
|
|
110
115
|
activatedAt: { type: Date, default: null },
|
|
111
116
|
createdAt: { type: Date, default: Date.now }
|
|
112
117
|
});
|
|
@@ -284,6 +289,13 @@ const showSchema = new Schema(
|
|
|
284
289
|
type: [giveawayProductSchema],
|
|
285
290
|
default: []
|
|
286
291
|
},
|
|
292
|
+
|
|
293
|
+
enabledProductTypes: {
|
|
294
|
+
buyNow: { type: Boolean, default: false },
|
|
295
|
+
auction: { type: Boolean, default: false },
|
|
296
|
+
giveaway: { type: Boolean, default: false }
|
|
297
|
+
}
|
|
298
|
+
,
|
|
287
299
|
notes: {
|
|
288
300
|
type: String,
|
|
289
301
|
default: ''
|
|
@@ -310,5 +322,6 @@ showSchema.pre('save', function (next) {
|
|
|
310
322
|
next();
|
|
311
323
|
});
|
|
312
324
|
|
|
313
|
-
const Show = mongoose.
|
|
314
|
-
|
|
325
|
+
const Show = mongoose.model("shows", showSchema);
|
|
326
|
+
|
|
327
|
+
export default Show;
|