database-connector 2.3.5 → 2.3.6

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.
@@ -69,7 +69,7 @@ const mongoose = require('mongoose');
69
69
  * description: Campaign objective - target followers, specific users, or all users
70
70
  * campaignPurpose:
71
71
  * type: string
72
- * enum: [increase_revenue, attract_new_clients]
72
+ * enum: [increase_revenue, attract_new_clients, null]
73
73
  * description: Campaign purpose (only when campaignObjective is 'all')
74
74
  * targetUserIds:
75
75
  * type: array
@@ -190,7 +190,7 @@ const FlashDealSchema = new mongoose.Schema(
190
190
  },
191
191
  campaignPurpose: {
192
192
  type: String,
193
- enum: ['increase_revenue', 'attract_new_clients'],
193
+ enum: ['increase_revenue', 'attract_new_clients', null],
194
194
  default: null,
195
195
  },
196
196
  targetUserIds: [
package/models/Offer.js CHANGED
@@ -65,7 +65,7 @@ const mongoose = require('mongoose');
65
65
  * description: Who can see this offer
66
66
  * campaignPurpose:
67
67
  * type: string
68
- * enum: [increase_revenue, attract_new_clients]
68
+ * enum: [increase_revenue, attract_new_clients, null]
69
69
  * description: Campaign purpose (only when type is 'all')
70
70
  * userIds:
71
71
  * type: array
@@ -165,7 +165,7 @@ const OfferSchema = new mongoose.Schema(
165
165
  },
166
166
  campaignPurpose: {
167
167
  type: String,
168
- enum: ['increase_revenue', 'attract_new_clients'],
168
+ enum: ['increase_revenue', 'attract_new_clients', null],
169
169
  default: null,
170
170
  },
171
171
  userIds: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "description": "MongoDB models package with Mongoose schemas for e-commerce applications. Includes User, Product, Store, Order and more with built-in validation and virtual properties.",
5
5
  "main": "models/index.js",
6
6
  "scripts": {