@timardex/cluemart-server-shared 1.1.28 → 1.1.30

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.
@@ -3318,9 +3318,10 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor22) => {
3318
3318
  var EnumResourceType = /* @__PURE__ */ ((EnumResourceType22) => {
3319
3319
  EnumResourceType22["AFFILIATE"] = "affiliate";
3320
3320
  EnumResourceType22["EVENT"] = "event";
3321
- EnumResourceType22["VENDOR"] = "vendor";
3322
3321
  EnumResourceType22["PARTNER"] = "partner";
3323
3322
  EnumResourceType22["SCHOOL"] = "school";
3323
+ EnumResourceType22["VENDOR"] = "vendor";
3324
+ EnumResourceType22["VISITOR"] = "visitor";
3324
3325
  return EnumResourceType22;
3325
3326
  })(EnumResourceType || {});
3326
3327
  var EnumEventType = /* @__PURE__ */ ((EnumEventType22) => {
@@ -3467,20 +3468,15 @@ var EnumReward = /* @__PURE__ */ ((EnumReward22) => {
3467
3468
  var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
3468
3469
  var OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;
3469
3470
  var gameScreenIdentifierList = [
3470
- {
3471
- clue: "Where your actions turn into a timeline.",
3472
- id: "activities",
3473
- match: "/profile/account/favourites"
3474
- },
3475
3471
  {
3476
3472
  clue: "Where conversations happen without speaking.",
3477
3473
  id: "chat",
3478
3474
  match: "/chat"
3479
3475
  },
3480
3476
  {
3481
- clue: "The place to redefine who you are.",
3482
- id: "edit-profile",
3483
- match: "/profile/account"
3477
+ clue: "Where you can find your loyalties.",
3478
+ id: "coupons",
3479
+ match: "/coupons"
3484
3480
  },
3485
3481
  {
3486
3482
  clue: "A single moment worth showing up for.",
@@ -3515,18 +3511,13 @@ var gameScreenIdentifierList = [
3515
3511
  {
3516
3512
  clue: "Your starting point for everything.",
3517
3513
  id: "home",
3518
- match: "/"
3514
+ match: "/home"
3519
3515
  },
3520
3516
  {
3521
3517
  clue: "Where the app whispers what you shouldn\u2019t miss.",
3522
3518
  id: "notifications",
3523
3519
  match: "/notifications"
3524
3520
  },
3525
- {
3526
- clue: "Where you fine-tune your experience.",
3527
- id: "options",
3528
- match: "/options"
3529
- },
3530
3521
  {
3531
3522
  clue: "An organisation or creator supporting the community.",
3532
3523
  id: "single-partner",
@@ -3538,15 +3529,30 @@ var gameScreenIdentifierList = [
3538
3529
  match: "/partners"
3539
3530
  },
3540
3531
  {
3541
- clue: "A single published post in full view.",
3542
- id: "single-visitor-post",
3543
- match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`)
3532
+ clue: "Where your actions turn into a timeline.",
3533
+ id: "activities",
3534
+ match: "/profile/account/favourites"
3535
+ },
3536
+ {
3537
+ clue: "The place to redefine who you are.",
3538
+ id: "edit-profile",
3539
+ match: "/profile/account"
3544
3540
  },
3545
3541
  {
3546
3542
  clue: "Your identity, on display.",
3547
3543
  id: "profile",
3548
3544
  match: "/profile"
3549
3545
  },
3546
+ {
3547
+ clue: "Where you can redeem your rewards.",
3548
+ id: "rewards",
3549
+ match: "/profile/account/rewards"
3550
+ },
3551
+ {
3552
+ clue: "A single published post in full view.",
3553
+ id: "single-visitor-post",
3554
+ match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`)
3555
+ },
3550
3556
  {
3551
3557
  clue: "One stallholder offering something valuable.",
3552
3558
  id: "single-vendor",
@@ -3561,6 +3567,11 @@ var gameScreenIdentifierList = [
3561
3567
  clue: "Where you browse articles and posts from around the platform.",
3562
3568
  id: "visitors",
3563
3569
  match: "/visitors"
3570
+ },
3571
+ {
3572
+ clue: "Where you fine-tune your experience.",
3573
+ id: "options",
3574
+ match: "/options"
3564
3575
  }
3565
3576
  ];
3566
3577
  var mapArrayToOptions = (items) => items.map((item) => ({
@@ -5154,6 +5165,7 @@ var USER_FIELDS_FRAGMENT = gql`
5154
5165
  firstName
5155
5166
  game
5156
5167
  isTester
5168
+ interests
5157
5169
  lastName
5158
5170
  nickName
5159
5171
  licences {
@@ -5439,11 +5451,13 @@ var GET_EVENTS_BY_REGION = gql`
5439
5451
  $region: String!
5440
5452
  $options: ResourcesByRegionOptions
5441
5453
  $dateStatus: EventDateStatusEnumType
5454
+ $tags: [String]
5442
5455
  ) {
5443
5456
  eventsByRegion(
5444
5457
  region: $region
5445
5458
  options: $options
5446
5459
  dateStatus: $dateStatus
5460
+ tags: $tags
5447
5461
  ) {
5448
5462
  ...EventListItemFields
5449
5463
  }
@@ -6722,6 +6736,20 @@ var GET_USER_RESOURCES = gql`
6722
6736
  }
6723
6737
  }
6724
6738
  `;
6739
+ var GET_USERS_BY_PROMO_CODE = gql`
6740
+ query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
6741
+ usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
6742
+ active
6743
+ avatar {
6744
+ ...ResourceImageFields
6745
+ }
6746
+ deletedAt
6747
+ nickName
6748
+ userId
6749
+ }
6750
+ }
6751
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
6752
+ `;
6725
6753
  var NOTIFICATION_FRAGMENT = gql`
6726
6754
  fragment NotificationFields on Notification {
6727
6755
  _id
@@ -7851,6 +7879,8 @@ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = gql`
7851
7879
  fragment CouponParticipantUserFields on CouponParticipantUserType {
7852
7880
  couponCollectedCount
7853
7881
  couponRedeemedAt
7882
+ couponRedeemedCount
7883
+ couponCycleRedeemed
7854
7884
  createdAt
7855
7885
  updatedAt
7856
7886
  userId
@@ -8839,7 +8869,7 @@ schema4.index({ isRead: 1, userId: 1 });
8839
8869
  schema4.index({ createdAt: -1, userId: 1 });
8840
8870
  var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
8841
8871
 
8842
- // node_modules/@timardex/cluemart-shared/dist/chunk-X3OLM35T.mjs
8872
+ // node_modules/@timardex/cluemart-shared/dist/chunk-D5BWQS2J.mjs
8843
8873
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8844
8874
  EnumOSPlatform22["ANDROID"] = "android";
8845
8875
  EnumOSPlatform22["IOS"] = "ios";
@@ -9027,6 +9057,11 @@ var schema7 = new MongooseSchema11(
9027
9057
  required: false,
9028
9058
  type: import_mongoose11.default.Schema.Types.ObjectId
9029
9059
  },
9060
+ interests: {
9061
+ enum: Object.values(EnumResourceType),
9062
+ required: false,
9063
+ type: [String]
9064
+ },
9030
9065
  isTester: { default: false, required: true, type: Boolean },
9031
9066
  lastName: { required: true, type: String },
9032
9067
  licences: {
@@ -9876,7 +9911,9 @@ var couponCodeSchema = new MongooseSchema26(
9876
9911
  var couponParticipantUserSchema = new MongooseSchema26(
9877
9912
  {
9878
9913
  couponCollectedCount: { default: 0, required: true, type: Number },
9914
+ couponCycleRedeemed: { default: false, required: true, type: Boolean },
9879
9915
  couponRedeemedAt: { default: null, required: false, type: Date },
9916
+ couponRedeemedCount: { default: 0, required: true, type: Number },
9880
9917
  userId: {
9881
9918
  ref: "User",
9882
9919
  required: true,