@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.
@@ -3608,6 +3608,12 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
3608
3608
  EnumGameType2["ODD_ONE_OUT"] = "oddOneOut";
3609
3609
  return EnumGameType2;
3610
3610
  })(EnumGameType || {});
3611
+ var EnumAffiliateParticipantType = /* @__PURE__ */ ((EnumAffiliateParticipantType2) => {
3612
+ EnumAffiliateParticipantType2["INDIVIDUAL"] = "INDIVIDUAL";
3613
+ EnumAffiliateParticipantType2["SOLE_TRADER"] = "SOLE_TRADER";
3614
+ EnumAffiliateParticipantType2["COMPANY"] = "COMPANY";
3615
+ return EnumAffiliateParticipantType2;
3616
+ })(EnumAffiliateParticipantType || {});
3611
3617
  var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
3612
3618
  EnumAffiliateRewardType2["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS"] = "ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS";
3613
3619
  EnumAffiliateRewardType2["ACTIVE_VENDOR_BONUS_REWARD"] = "ACTIVE_VENDOR_BONUS_REWARD";
@@ -7466,6 +7472,14 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
7466
7472
  contactDetails {
7467
7473
  mobilePhone
7468
7474
  }
7475
+ irdNumber
7476
+ participantType
7477
+ email
7478
+ firstName
7479
+ lastName
7480
+ location {
7481
+ ...LocationFields
7482
+ }
7469
7483
  region
7470
7484
  socialMedia {
7471
7485
  ...SocialMediaFields
@@ -7475,6 +7489,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
7475
7489
  }
7476
7490
  }
7477
7491
  ${AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT}
7492
+ ${LOCATION_FIELDS_FRAGMENT}
7478
7493
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
7479
7494
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
7480
7495
  `;
@@ -7540,6 +7555,14 @@ var DELETE_AFFILIATE_MUTATION = gql`
7540
7555
  deleteAffiliate(_id: $_id)
7541
7556
  }
7542
7557
  `;
7558
+ var REDEEM_AFFILIATE_REWARD_MUTATION = gql`
7559
+ mutation redeemAffiliateReward($affiliateId: ID!) {
7560
+ redeemAffiliateReward(affiliateId: $affiliateId) {
7561
+ ...AffiliateFields
7562
+ }
7563
+ }
7564
+ ${AFFILIATE_FIELDS_FRAGMENT}
7565
+ `;
7543
7566
  var PKG = "@timardex/cluemart-shared";
7544
7567
  var IMAGE_EXTENSION = ".webp";
7545
7568
  var posterIds = [
@@ -9275,6 +9298,16 @@ var affiliateDetailsSchema = new MongooseSchema25(
9275
9298
  type: affiliateBankAccountDetailsSchema
9276
9299
  },
9277
9300
  contactDetails: { required: true, type: affiliateContactDetailsSchema },
9301
+ email: { required: true, type: String },
9302
+ firstName: { required: true, type: String },
9303
+ irdNumber: { required: true, type: String },
9304
+ lastName: { required: true, type: String },
9305
+ location: { required: true, type: locationsSchema },
9306
+ participantType: {
9307
+ enum: Object.values(EnumAffiliateParticipantType),
9308
+ required: true,
9309
+ type: String
9310
+ },
9278
9311
  region: { required: true, type: String },
9279
9312
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
9280
9313
  termsAgreement: { required: true, type: termsAgreementSchema }
@@ -9380,4 +9413,4 @@ export {
9380
9413
  SchoolModel,
9381
9414
  AffiliateModel
9382
9415
  };
9383
- //# sourceMappingURL=chunk-IGEC5D7N.mjs.map
9416
+ //# sourceMappingURL=chunk-YLRGIY2S.mjs.map