@timardex/cluemart-server-shared 1.0.272 → 1.0.274

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-D6C7HNAQ.mjs";
43
+ } from "../chunk-VW2V67YM.mjs";
44
44
  export {
45
45
  APP_SETTINGS_ID,
46
46
  AdModel,
@@ -3353,6 +3353,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
3353
3353
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
3354
3354
  EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
3355
3355
  EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
3356
+ EnumNotificationResourceType22["AFFILIATE_REWARD_RECEIVED"] = "affiliate_reward_received";
3356
3357
  EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
3357
3358
  EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
3358
3359
  EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
@@ -7689,7 +7690,7 @@ async function saveNotificationsInDb(payload) {
7689
7690
  // src/service/sendPushNotifications.ts
7690
7691
  var import_expo_server_sdk = require("expo-server-sdk");
7691
7692
 
7692
- // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
7693
+ // node_modules/@timardex/cluemart-shared/dist/chunk-LETM2YHF.mjs
7693
7694
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
7694
7695
  EnumOSPlatform22["ANDROID"] = "android";
7695
7696
  EnumOSPlatform22["IOS"] = "ios";
@@ -8660,6 +8661,11 @@ var schema7 = new MongooseSchema11(
8660
8661
  },
8661
8662
  deletedAt: { default: null, required: false, type: Date },
8662
8663
  email: { required: true, type: String },
8664
+ emailSentFor: {
8665
+ enum: Object.values(EnumNotificationResourceType),
8666
+ required: false,
8667
+ type: [String]
8668
+ },
8663
8669
  events: {
8664
8670
  ref: "Event",
8665
8671
  required: false,
@@ -9307,7 +9313,7 @@ var campaignsSchema = new MongooseSchema24(
9307
9313
  var schema16 = new MongooseSchema24(
9308
9314
  {
9309
9315
  // New schools are active by default
9310
- active: { default: true, required: true, type: Boolean },
9316
+ active: { default: false, required: true, type: Boolean },
9311
9317
  campaigns: { required: false, type: [campaignsSchema] },
9312
9318
  contactDetails: { required: false, type: ContactDetailsSchema },
9313
9319
  deletedAt: { default: null, required: false, type: Date },
@@ -9381,7 +9387,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9381
9387
  );
9382
9388
  var schema17 = new MongooseSchema25(
9383
9389
  {
9384
- active: { default: true, required: true, type: Boolean },
9390
+ active: { default: false, required: true, type: Boolean },
9385
9391
  affiliateCode: { required: true, type: String },
9386
9392
  affiliateResources: {
9387
9393
  default: [],