@timardex/cluemart-server-shared 1.0.272 → 1.0.274

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/dist/index.mjs CHANGED
@@ -3282,6 +3282,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
3282
3282
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
3283
3283
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
3284
3284
  EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
3285
+ EnumNotificationResourceType22["AFFILIATE_REWARD_RECEIVED"] = "affiliate_reward_received";
3285
3286
  EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
3286
3287
  EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
3287
3288
  EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
@@ -8283,7 +8284,7 @@ schema4.index({ isRead: 1, userId: 1 });
8283
8284
  schema4.index({ createdAt: -1, userId: 1 });
8284
8285
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
8285
8286
 
8286
- // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
8287
+ // node_modules/@timardex/cluemart-shared/dist/chunk-LETM2YHF.mjs
8287
8288
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8288
8289
  EnumOSPlatform22["ANDROID"] = "android";
8289
8290
  EnumOSPlatform22["IOS"] = "ios";
@@ -8454,6 +8455,11 @@ var schema7 = new MongooseSchema11(
8454
8455
  },
8455
8456
  deletedAt: { default: null, required: false, type: Date },
8456
8457
  email: { required: true, type: String },
8458
+ emailSentFor: {
8459
+ enum: Object.values(EnumNotificationResourceType),
8460
+ required: false,
8461
+ type: [String]
8462
+ },
8457
8463
  events: {
8458
8464
  ref: "Event",
8459
8465
  required: false,
@@ -9101,7 +9107,7 @@ var campaignsSchema = new MongooseSchema24(
9101
9107
  var schema16 = new MongooseSchema24(
9102
9108
  {
9103
9109
  // New schools are active by default
9104
- active: { default: true, required: true, type: Boolean },
9110
+ active: { default: false, required: true, type: Boolean },
9105
9111
  campaigns: { required: false, type: [campaignsSchema] },
9106
9112
  contactDetails: { required: false, type: ContactDetailsSchema },
9107
9113
  deletedAt: { default: null, required: false, type: Date },
@@ -9175,7 +9181,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9175
9181
  );
9176
9182
  var schema17 = new MongooseSchema25(
9177
9183
  {
9178
- active: { default: true, required: true, type: Boolean },
9184
+ active: { default: false, required: true, type: Boolean },
9179
9185
  affiliateCode: { required: true, type: String },
9180
9186
  affiliateResources: {
9181
9187
  default: [],