@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.cjs CHANGED
@@ -3372,6 +3372,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
3372
3372
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
3373
3373
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
3374
3374
  EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
3375
+ EnumNotificationResourceType22["AFFILIATE_REWARD_RECEIVED"] = "affiliate_reward_received";
3375
3376
  EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
3376
3377
  EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
3377
3378
  EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
@@ -8373,7 +8374,7 @@ schema4.index({ isRead: 1, userId: 1 });
8373
8374
  schema4.index({ createdAt: -1, userId: 1 });
8374
8375
  var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
8375
8376
 
8376
- // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
8377
+ // node_modules/@timardex/cluemart-shared/dist/chunk-LETM2YHF.mjs
8377
8378
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8378
8379
  EnumOSPlatform22["ANDROID"] = "android";
8379
8380
  EnumOSPlatform22["IOS"] = "ios";
@@ -8544,6 +8545,11 @@ var schema7 = new MongooseSchema11(
8544
8545
  },
8545
8546
  deletedAt: { default: null, required: false, type: Date },
8546
8547
  email: { required: true, type: String },
8548
+ emailSentFor: {
8549
+ enum: Object.values(EnumNotificationResourceType),
8550
+ required: false,
8551
+ type: [String]
8552
+ },
8547
8553
  events: {
8548
8554
  ref: "Event",
8549
8555
  required: false,
@@ -9191,7 +9197,7 @@ var campaignsSchema = new MongooseSchema24(
9191
9197
  var schema16 = new MongooseSchema24(
9192
9198
  {
9193
9199
  // New schools are active by default
9194
- active: { default: true, required: true, type: Boolean },
9200
+ active: { default: false, required: true, type: Boolean },
9195
9201
  campaigns: { required: false, type: [campaignsSchema] },
9196
9202
  contactDetails: { required: false, type: ContactDetailsSchema },
9197
9203
  deletedAt: { default: null, required: false, type: Date },
@@ -9265,7 +9271,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9265
9271
  );
9266
9272
  var schema17 = new MongooseSchema25(
9267
9273
  {
9268
- active: { default: true, required: true, type: Boolean },
9274
+ active: { default: false, required: true, type: Boolean },
9269
9275
  affiliateCode: { required: true, type: String },
9270
9276
  affiliateResources: {
9271
9277
  default: [],