@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.
package/dist/index.mjs CHANGED
@@ -3281,8 +3281,10 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
3281
3281
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
3282
3282
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
3283
3283
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
3284
+ EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
3284
3285
  EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
3285
3286
  EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
3287
+ EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
3286
3288
  EnumNotificationResourceType22["APPROVED_VENDOR"] = "approved_vendor";
3287
3289
  EnumNotificationResourceType22["CREATED_EVENT"] = "created_event";
3288
3290
  EnumNotificationResourceType22["CREATED_PARTNER"] = "created_partner";
@@ -3546,7 +3548,6 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
3546
3548
  var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
3547
3549
  EnumAffiliateRewardType2["NEW_EVENT_REGISTRATION"] = "NEW_EVENT_REGISTRATION";
3548
3550
  EnumAffiliateRewardType2["NEW_VENDOR_REGISTRATION"] = "NEW_VENDOR_REGISTRATION";
3549
- EnumAffiliateRewardType2["NEW_PARTNER_REGISTRATION"] = "NEW_PARTNER_REGISTRATION";
3550
3551
  return EnumAffiliateRewardType2;
3551
3552
  })(EnumAffiliateRewardType || {});
3552
3553
  var mapArrayToOptions = (items) => items.map((item) => ({
@@ -7374,6 +7375,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
7374
7375
  fragment AffiliateResourceFields on AffiliateResourceType {
7375
7376
  resourceActive
7376
7377
  resourceId
7378
+ resourceName
7377
7379
  resourceType
7378
7380
  rewards {
7379
7381
  ...AffiliateRewardFields
@@ -8281,7 +8283,7 @@ schema4.index({ isRead: 1, userId: 1 });
8281
8283
  schema4.index({ createdAt: -1, userId: 1 });
8282
8284
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
8283
8285
 
8284
- // node_modules/@timardex/cluemart-shared/dist/chunk-I2V5GDNE.mjs
8286
+ // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
8285
8287
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8286
8288
  EnumOSPlatform22["ANDROID"] = "android";
8287
8289
  EnumOSPlatform22["IOS"] = "ios";
@@ -8452,6 +8454,11 @@ var schema7 = new MongooseSchema11(
8452
8454
  },
8453
8455
  deletedAt: { default: null, required: false, type: Date },
8454
8456
  email: { required: true, type: String },
8457
+ emailSentFor: {
8458
+ enum: Object.values(EnumNotificationResourceType),
8459
+ required: false,
8460
+ type: [String]
8461
+ },
8455
8462
  events: {
8456
8463
  ref: "Event",
8457
8464
  required: false,
@@ -9157,6 +9164,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9157
9164
  required: true,
9158
9165
  type: mongoose25.Schema.Types.ObjectId
9159
9166
  },
9167
+ resourceName: { required: true, type: String },
9160
9168
  resourceType: {
9161
9169
  enum: Object.values(EnumResourceType),
9162
9170
  required: true,