@timardex/cluemart-server-shared 1.0.273 → 1.0.275

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-FU5WYLJ6.mjs";
43
+ } from "../chunk-C4VZFFEU.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";
@@ -7434,12 +7435,10 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = gql`
7434
7435
  var AFFILIATE_REWARD_FIELDS_FRAGMENT = gql`
7435
7436
  fragment AffiliateRewardFields on AffiliateRewardType {
7436
7437
  createdAt
7437
- deletedAt
7438
7438
  redeemedAt
7439
7439
  rewardDescription
7440
7440
  rewardType
7441
7441
  rewardValue
7442
- updatedAt
7443
7442
  }
7444
7443
  `;
7445
7444
  var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
@@ -7689,7 +7688,7 @@ async function saveNotificationsInDb(payload) {
7689
7688
  // src/service/sendPushNotifications.ts
7690
7689
  var import_expo_server_sdk = require("expo-server-sdk");
7691
7690
 
7692
- // node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
7691
+ // node_modules/@timardex/cluemart-shared/dist/chunk-LETM2YHF.mjs
7693
7692
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
7694
7693
  EnumOSPlatform22["ANDROID"] = "android";
7695
7694
  EnumOSPlatform22["IOS"] = "ios";
@@ -9312,7 +9311,7 @@ var campaignsSchema = new MongooseSchema24(
9312
9311
  var schema16 = new MongooseSchema24(
9313
9312
  {
9314
9313
  // New schools are active by default
9315
- active: { default: true, required: true, type: Boolean },
9314
+ active: { default: false, required: true, type: Boolean },
9316
9315
  campaigns: { required: false, type: [campaignsSchema] },
9317
9316
  contactDetails: { required: false, type: ContactDetailsSchema },
9318
9317
  deletedAt: { default: null, required: false, type: Date },
@@ -9350,7 +9349,6 @@ var MongooseSchema25 = import_mongoose26.default.Schema;
9350
9349
  var affiliateRewardSchema = new MongooseSchema25(
9351
9350
  {
9352
9351
  createdAt: { required: true, type: Date },
9353
- deletedAt: { default: null, required: false, type: Date },
9354
9352
  redeemedAt: { default: null, required: false, type: Date },
9355
9353
  rewardDescription: { required: true, type: String },
9356
9354
  rewardType: {
@@ -9358,8 +9356,7 @@ var affiliateRewardSchema = new MongooseSchema25(
9358
9356
  required: true,
9359
9357
  type: String
9360
9358
  },
9361
- rewardValue: { required: true, type: Number },
9362
- updatedAt: { default: null, required: false, type: Date }
9359
+ rewardValue: { required: true, type: Number }
9363
9360
  },
9364
9361
  { _id: false }
9365
9362
  );
@@ -9386,7 +9383,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9386
9383
  );
9387
9384
  var schema17 = new MongooseSchema25(
9388
9385
  {
9389
- active: { default: true, required: true, type: Boolean },
9386
+ active: { default: false, required: true, type: Boolean },
9390
9387
  affiliateCode: { required: true, type: String },
9391
9388
  affiliateResources: {
9392
9389
  default: [],