@timardex/cluemart-server-shared 1.0.273 → 1.0.275

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";
@@ -7453,12 +7454,10 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = gql`
7453
7454
  var AFFILIATE_REWARD_FIELDS_FRAGMENT = gql`
7454
7455
  fragment AffiliateRewardFields on AffiliateRewardType {
7455
7456
  createdAt
7456
- deletedAt
7457
7457
  redeemedAt
7458
7458
  rewardDescription
7459
7459
  rewardType
7460
7460
  rewardValue
7461
- updatedAt
7462
7461
  }
7463
7462
  `;
7464
7463
  var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
@@ -8373,7 +8372,7 @@ schema4.index({ isRead: 1, userId: 1 });
8373
8372
  schema4.index({ createdAt: -1, userId: 1 });
8374
8373
  var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
8375
8374
 
8376
- // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
8375
+ // node_modules/@timardex/cluemart-shared/dist/chunk-LETM2YHF.mjs
8377
8376
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8378
8377
  EnumOSPlatform22["ANDROID"] = "android";
8379
8378
  EnumOSPlatform22["IOS"] = "ios";
@@ -9196,7 +9195,7 @@ var campaignsSchema = new MongooseSchema24(
9196
9195
  var schema16 = new MongooseSchema24(
9197
9196
  {
9198
9197
  // New schools are active by default
9199
- active: { default: true, required: true, type: Boolean },
9198
+ active: { default: false, required: true, type: Boolean },
9200
9199
  campaigns: { required: false, type: [campaignsSchema] },
9201
9200
  contactDetails: { required: false, type: ContactDetailsSchema },
9202
9201
  deletedAt: { default: null, required: false, type: Date },
@@ -9234,7 +9233,6 @@ var MongooseSchema25 = import_mongoose25.default.Schema;
9234
9233
  var affiliateRewardSchema = new MongooseSchema25(
9235
9234
  {
9236
9235
  createdAt: { required: true, type: Date },
9237
- deletedAt: { default: null, required: false, type: Date },
9238
9236
  redeemedAt: { default: null, required: false, type: Date },
9239
9237
  rewardDescription: { required: true, type: String },
9240
9238
  rewardType: {
@@ -9242,8 +9240,7 @@ var affiliateRewardSchema = new MongooseSchema25(
9242
9240
  required: true,
9243
9241
  type: String
9244
9242
  },
9245
- rewardValue: { required: true, type: Number },
9246
- updatedAt: { default: null, required: false, type: Date }
9243
+ rewardValue: { required: true, type: Number }
9247
9244
  },
9248
9245
  { _id: false }
9249
9246
  );
@@ -9270,7 +9267,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9270
9267
  );
9271
9268
  var schema17 = new MongooseSchema25(
9272
9269
  {
9273
- active: { default: true, required: true, type: Boolean },
9270
+ active: { default: false, required: true, type: Boolean },
9274
9271
  affiliateCode: { required: true, type: String },
9275
9272
  affiliateResources: {
9276
9273
  default: [],