@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.
@@ -40,7 +40,7 @@ import {
40
40
  socialShareResourceSchema,
41
41
  termsAgreementSchema,
42
42
  userLicenseSchema
43
- } from "../chunk-LV2G5CMJ.mjs";
43
+ } from "../chunk-FU5WYLJ6.mjs";
44
44
  export {
45
45
  APP_SETTINGS_ID,
46
46
  AdModel,
@@ -3352,8 +3352,10 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
3352
3352
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
3353
3353
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
3354
3354
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
3355
+ EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
3355
3356
  EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
3356
3357
  EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
3358
+ EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
3357
3359
  EnumNotificationResourceType22["APPROVED_VENDOR"] = "approved_vendor";
3358
3360
  EnumNotificationResourceType22["CREATED_EVENT"] = "created_event";
3359
3361
  EnumNotificationResourceType22["CREATED_PARTNER"] = "created_partner";
@@ -3617,7 +3619,6 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
3617
3619
  var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
3618
3620
  EnumAffiliateRewardType2["NEW_EVENT_REGISTRATION"] = "NEW_EVENT_REGISTRATION";
3619
3621
  EnumAffiliateRewardType2["NEW_VENDOR_REGISTRATION"] = "NEW_VENDOR_REGISTRATION";
3620
- EnumAffiliateRewardType2["NEW_PARTNER_REGISTRATION"] = "NEW_PARTNER_REGISTRATION";
3621
3622
  return EnumAffiliateRewardType2;
3622
3623
  })(EnumAffiliateRewardType || {});
3623
3624
  var mapArrayToOptions = (items) => items.map((item) => ({
@@ -7445,6 +7446,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
7445
7446
  fragment AffiliateResourceFields on AffiliateResourceType {
7446
7447
  resourceActive
7447
7448
  resourceId
7449
+ resourceName
7448
7450
  resourceType
7449
7451
  rewards {
7450
7452
  ...AffiliateRewardFields
@@ -7687,7 +7689,7 @@ async function saveNotificationsInDb(payload) {
7687
7689
  // src/service/sendPushNotifications.ts
7688
7690
  var import_expo_server_sdk = require("expo-server-sdk");
7689
7691
 
7690
- // node_modules/@timardex/cluemart-shared/dist/chunk-I2V5GDNE.mjs
7692
+ // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
7691
7693
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
7692
7694
  EnumOSPlatform22["ANDROID"] = "android";
7693
7695
  EnumOSPlatform22["IOS"] = "ios";
@@ -8658,6 +8660,11 @@ var schema7 = new MongooseSchema11(
8658
8660
  },
8659
8661
  deletedAt: { default: null, required: false, type: Date },
8660
8662
  email: { required: true, type: String },
8663
+ emailSentFor: {
8664
+ enum: Object.values(EnumNotificationResourceType),
8665
+ required: false,
8666
+ type: [String]
8667
+ },
8661
8668
  events: {
8662
8669
  ref: "Event",
8663
8670
  required: false,
@@ -9363,6 +9370,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9363
9370
  required: true,
9364
9371
  type: import_mongoose26.default.Schema.Types.ObjectId
9365
9372
  },
9373
+ resourceName: { required: true, type: String },
9366
9374
  resourceType: {
9367
9375
  enum: Object.values(EnumResourceType),
9368
9376
  required: true,