@timardex/cluemart-server-shared 1.0.270 → 1.0.272

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
@@ -7524,7 +7526,8 @@ var RESOURCE_SHARE_TYPES = [
7524
7526
  "market",
7525
7527
  "stallholder",
7526
7528
  "partner",
7527
- "affiliate"
7529
+ "affiliate",
7530
+ "school"
7528
7531
  ];
7529
7532
  var POST_SHARE_RESOURCE_TYPES = [
7530
7533
  "market_faces",
@@ -7540,7 +7543,8 @@ var SHARE_RESOURCE_LABEL = {
7540
7543
  market: "Market",
7541
7544
  partner: "Partner",
7542
7545
  stallholder: "Stallholder",
7543
- affiliate: "Affiliate"
7546
+ affiliate: "Affiliate",
7547
+ school: "School"
7544
7548
  };
7545
7549
  var PUBLIC_SHARE_PATH_TYPES = [
7546
7550
  ...RESOURCE_SHARE_TYPES,
@@ -8279,7 +8283,7 @@ schema4.index({ isRead: 1, userId: 1 });
8279
8283
  schema4.index({ createdAt: -1, userId: 1 });
8280
8284
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
8281
8285
 
8282
- // node_modules/@timardex/cluemart-shared/dist/chunk-I2V5GDNE.mjs
8286
+ // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
8283
8287
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8284
8288
  EnumOSPlatform22["ANDROID"] = "android";
8285
8289
  EnumOSPlatform22["IOS"] = "ios";
@@ -9155,6 +9159,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9155
9159
  required: true,
9156
9160
  type: mongoose25.Schema.Types.ObjectId
9157
9161
  },
9162
+ resourceName: { required: true, type: String },
9158
9163
  resourceType: {
9159
9164
  enum: Object.values(EnumResourceType),
9160
9165
  required: true,