@timardex/cluemart-server-shared 1.0.291 → 1.0.293

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.
@@ -3682,6 +3682,12 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
3682
3682
  EnumGameType2["ODD_ONE_OUT"] = "oddOneOut";
3683
3683
  return EnumGameType2;
3684
3684
  })(EnumGameType || {});
3685
+ var EnumAffiliateParticipantType = /* @__PURE__ */ ((EnumAffiliateParticipantType2) => {
3686
+ EnumAffiliateParticipantType2["INDIVIDUAL"] = "INDIVIDUAL";
3687
+ EnumAffiliateParticipantType2["SOLE_TRADER"] = "SOLE_TRADER";
3688
+ EnumAffiliateParticipantType2["COMPANY"] = "COMPANY";
3689
+ return EnumAffiliateParticipantType2;
3690
+ })(EnumAffiliateParticipantType || {});
3685
3691
  var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
3686
3692
  EnumAffiliateRewardType2["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS"] = "ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS";
3687
3693
  EnumAffiliateRewardType2["ACTIVE_VENDOR_BONUS_REWARD"] = "ACTIVE_VENDOR_BONUS_REWARD";
@@ -7540,6 +7546,14 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
7540
7546
  contactDetails {
7541
7547
  mobilePhone
7542
7548
  }
7549
+ irdNumber
7550
+ participantType
7551
+ email
7552
+ firstName
7553
+ lastName
7554
+ location {
7555
+ ...LocationFields
7556
+ }
7543
7557
  region
7544
7558
  socialMedia {
7545
7559
  ...SocialMediaFields
@@ -7549,6 +7563,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
7549
7563
  }
7550
7564
  }
7551
7565
  ${AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT}
7566
+ ${LOCATION_FIELDS_FRAGMENT}
7552
7567
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
7553
7568
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
7554
7569
  `;
@@ -7614,6 +7629,14 @@ var DELETE_AFFILIATE_MUTATION = gql`
7614
7629
  deleteAffiliate(_id: $_id)
7615
7630
  }
7616
7631
  `;
7632
+ var REDEEM_AFFILIATE_REWARD_MUTATION = gql`
7633
+ mutation redeemAffiliateReward($affiliateId: ID!) {
7634
+ redeemAffiliateReward(affiliateId: $affiliateId) {
7635
+ ...AffiliateFields
7636
+ }
7637
+ }
7638
+ ${AFFILIATE_FIELDS_FRAGMENT}
7639
+ `;
7617
7640
  var PKG = "@timardex/cluemart-shared";
7618
7641
  var IMAGE_EXTENSION = ".webp";
7619
7642
  var posterIds = [
@@ -9349,6 +9372,16 @@ var affiliateDetailsSchema = new MongooseSchema25(
9349
9372
  type: affiliateBankAccountDetailsSchema
9350
9373
  },
9351
9374
  contactDetails: { required: true, type: affiliateContactDetailsSchema },
9375
+ email: { required: true, type: String },
9376
+ firstName: { required: true, type: String },
9377
+ irdNumber: { required: true, type: String },
9378
+ lastName: { required: true, type: String },
9379
+ location: { required: true, type: locationsSchema },
9380
+ participantType: {
9381
+ enum: Object.values(EnumAffiliateParticipantType),
9382
+ required: true,
9383
+ type: String
9384
+ },
9352
9385
  region: { required: true, type: String },
9353
9386
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
9354
9387
  termsAgreement: { required: true, type: termsAgreementSchema }