@timardex/cluemart-server-shared 1.0.271 → 1.0.273

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.
@@ -3357,8 +3357,10 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
3357
3357
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
3358
3358
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
3359
3359
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
3360
+ EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
3360
3361
  EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
3361
3362
  EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
3363
+ EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
3362
3364
  EnumNotificationResourceType22["APPROVED_VENDOR"] = "approved_vendor";
3363
3365
  EnumNotificationResourceType22["CREATED_EVENT"] = "created_event";
3364
3366
  EnumNotificationResourceType22["CREATED_PARTNER"] = "created_partner";
@@ -3622,7 +3624,6 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
3622
3624
  var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
3623
3625
  EnumAffiliateRewardType2["NEW_EVENT_REGISTRATION"] = "NEW_EVENT_REGISTRATION";
3624
3626
  EnumAffiliateRewardType2["NEW_VENDOR_REGISTRATION"] = "NEW_VENDOR_REGISTRATION";
3625
- EnumAffiliateRewardType2["NEW_PARTNER_REGISTRATION"] = "NEW_PARTNER_REGISTRATION";
3626
3627
  return EnumAffiliateRewardType2;
3627
3628
  })(EnumAffiliateRewardType || {});
3628
3629
  var mapArrayToOptions = (items) => items.map((item) => ({
@@ -7448,6 +7449,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
7448
7449
  fragment AffiliateResourceFields on AffiliateResourceType {
7449
7450
  resourceActive
7450
7451
  resourceId
7452
+ resourceName
7451
7453
  resourceType
7452
7454
  rewards {
7453
7455
  ...AffiliateRewardFields
@@ -8355,7 +8357,7 @@ schema4.index({ isRead: 1, userId: 1 });
8355
8357
  schema4.index({ createdAt: -1, userId: 1 });
8356
8358
  var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
8357
8359
 
8358
- // node_modules/@timardex/cluemart-shared/dist/chunk-I2V5GDNE.mjs
8360
+ // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
8359
8361
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8360
8362
  EnumOSPlatform22["ANDROID"] = "android";
8361
8363
  EnumOSPlatform22["IOS"] = "ios";
@@ -8526,6 +8528,11 @@ var schema7 = new MongooseSchema11(
8526
8528
  },
8527
8529
  deletedAt: { default: null, required: false, type: Date },
8528
8530
  email: { required: true, type: String },
8531
+ emailSentFor: {
8532
+ enum: Object.values(EnumNotificationResourceType),
8533
+ required: false,
8534
+ type: [String]
8535
+ },
8529
8536
  events: {
8530
8537
  ref: "Event",
8531
8538
  required: false,
@@ -9231,6 +9238,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9231
9238
  required: true,
9232
9239
  type: import_mongoose25.default.Schema.Types.ObjectId
9233
9240
  },
9241
+ resourceName: { required: true, type: String },
9234
9242
  resourceType: {
9235
9243
  enum: Object.values(EnumResourceType),
9236
9244
  required: true,