@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.cjs CHANGED
@@ -3371,8 +3371,10 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
3371
3371
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
3372
3372
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
3373
3373
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
3374
+ EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
3374
3375
  EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
3375
3376
  EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
3377
+ EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
3376
3378
  EnumNotificationResourceType22["APPROVED_VENDOR"] = "approved_vendor";
3377
3379
  EnumNotificationResourceType22["CREATED_EVENT"] = "created_event";
3378
3380
  EnumNotificationResourceType22["CREATED_PARTNER"] = "created_partner";
@@ -3636,7 +3638,6 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
3636
3638
  var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
3637
3639
  EnumAffiliateRewardType2["NEW_EVENT_REGISTRATION"] = "NEW_EVENT_REGISTRATION";
3638
3640
  EnumAffiliateRewardType2["NEW_VENDOR_REGISTRATION"] = "NEW_VENDOR_REGISTRATION";
3639
- EnumAffiliateRewardType2["NEW_PARTNER_REGISTRATION"] = "NEW_PARTNER_REGISTRATION";
3640
3641
  return EnumAffiliateRewardType2;
3641
3642
  })(EnumAffiliateRewardType || {});
3642
3643
  var mapArrayToOptions = (items) => items.map((item) => ({
@@ -7464,6 +7465,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
7464
7465
  fragment AffiliateResourceFields on AffiliateResourceType {
7465
7466
  resourceActive
7466
7467
  resourceId
7468
+ resourceName
7467
7469
  resourceType
7468
7470
  rewards {
7469
7471
  ...AffiliateRewardFields
@@ -8371,7 +8373,7 @@ schema4.index({ isRead: 1, userId: 1 });
8371
8373
  schema4.index({ createdAt: -1, userId: 1 });
8372
8374
  var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
8373
8375
 
8374
- // node_modules/@timardex/cluemart-shared/dist/chunk-I2V5GDNE.mjs
8376
+ // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
8375
8377
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8376
8378
  EnumOSPlatform22["ANDROID"] = "android";
8377
8379
  EnumOSPlatform22["IOS"] = "ios";
@@ -8542,6 +8544,11 @@ var schema7 = new MongooseSchema11(
8542
8544
  },
8543
8545
  deletedAt: { default: null, required: false, type: Date },
8544
8546
  email: { required: true, type: String },
8547
+ emailSentFor: {
8548
+ enum: Object.values(EnumNotificationResourceType),
8549
+ required: false,
8550
+ type: [String]
8551
+ },
8545
8552
  events: {
8546
8553
  ref: "Event",
8547
8554
  required: false,
@@ -9247,6 +9254,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9247
9254
  required: true,
9248
9255
  type: import_mongoose25.default.Schema.Types.ObjectId
9249
9256
  },
9257
+ resourceName: { required: true, type: String },
9250
9258
  resourceType: {
9251
9259
  enum: Object.values(EnumResourceType),
9252
9260
  required: true,