@timardex/cluemart-server-shared 1.0.276 → 1.0.279

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.
package/dist/index.cjs CHANGED
@@ -7472,8 +7472,17 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
7472
7472
  }
7473
7473
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
7474
7474
  `;
7475
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = gql`
7476
+ fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
7477
+ accountHolderName
7478
+ accountNumber
7479
+ }
7480
+ `;
7475
7481
  var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
7476
7482
  fragment AffiliateDetailsFields on AffiliateDetailsType {
7483
+ bankAccountDetails {
7484
+ ...AffiliateBankAccountDetailsFields
7485
+ }
7477
7486
  contactDetails {
7478
7487
  mobilePhone
7479
7488
  }
@@ -7485,6 +7494,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
7485
7494
  ...TermsAgreementFields
7486
7495
  }
7487
7496
  }
7497
+ ${AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT}
7488
7498
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
7489
7499
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
7490
7500
  `;
@@ -7501,6 +7511,8 @@ var AFFILIATE_FIELDS_FRAGMENT = gql`
7501
7511
  }
7502
7512
  createdAt
7503
7513
  deletedAt
7514
+ lastRewardRedemptionAt
7515
+ lastRewardRedemptionPoints
7504
7516
  overallPoints
7505
7517
  owner {
7506
7518
  ...OwnerFields
@@ -7527,6 +7539,22 @@ var GET_AFFILIATES = gql`
7527
7539
  }
7528
7540
  ${AFFILIATE_FIELDS_FRAGMENT}
7529
7541
  `;
7542
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = gql`
7543
+ mutation updateAffiliateDetails(
7544
+ $input: AffiliateDetailsInputType!
7545
+ $affiliateId: ID!
7546
+ ) {
7547
+ updateAffiliateDetails(input: $input, affiliateId: $affiliateId) {
7548
+ ...AffiliateFields
7549
+ }
7550
+ }
7551
+ ${AFFILIATE_FIELDS_FRAGMENT}
7552
+ `;
7553
+ var DELETE_AFFILIATE_MUTATION = gql`
7554
+ mutation deleteAffiliate($_id: ID!) {
7555
+ deleteAffiliate(_id: $_id)
7556
+ }
7557
+ `;
7530
7558
  var PKG = "@timardex/cluemart-shared";
7531
7559
  var IMAGE_EXTENSION = ".webp";
7532
7560
  var posterIds = [
@@ -9291,8 +9319,19 @@ var affiliateContactDetailsSchema = new MongooseSchema25(
9291
9319
  },
9292
9320
  { _id: false }
9293
9321
  );
9322
+ var affiliateBankAccountDetailsSchema = new MongooseSchema25(
9323
+ {
9324
+ accountHolderName: { required: true, type: String },
9325
+ accountNumber: { required: true, type: String }
9326
+ },
9327
+ { _id: false }
9328
+ );
9294
9329
  var affiliateDetailsSchema = new MongooseSchema25(
9295
9330
  {
9331
+ bankAccountDetails: {
9332
+ required: true,
9333
+ type: affiliateBankAccountDetailsSchema
9334
+ },
9296
9335
  contactDetails: { required: true, type: affiliateContactDetailsSchema },
9297
9336
  region: { required: true, type: String },
9298
9337
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
@@ -9311,6 +9350,12 @@ var schema17 = new MongooseSchema25(
9311
9350
  type: [affiliateResourceSchema]
9312
9351
  },
9313
9352
  deletedAt: { default: null, required: false, type: Date },
9353
+ lastRewardRedemptionAt: { default: null, required: false, type: Date },
9354
+ lastRewardRedemptionPoints: {
9355
+ default: null,
9356
+ required: false,
9357
+ type: Number
9358
+ },
9314
9359
  overallPoints: { default: 0, required: true, type: Number },
9315
9360
  owner: {
9316
9361
  required: true,