@timardex/cluemart-server-shared 1.1.27 → 1.1.29

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.
@@ -41,7 +41,7 @@ import {
41
41
  termsAgreementSchema,
42
42
  userLicenseSchema,
43
43
  vendorProductTypeSchema
44
- } from "../chunk-LG5XLQV2.mjs";
44
+ } from "../chunk-HO5LGPTL.mjs";
45
45
  export {
46
46
  APP_SETTINGS_ID,
47
47
  AdModel,
@@ -7836,9 +7836,12 @@ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = gql`
7836
7836
  fragment CouponParticipantUserFields on CouponParticipantUserType {
7837
7837
  couponCollectedCount
7838
7838
  couponRedeemedAt
7839
+ couponRedeemedCount
7840
+ couponCycleRedeemed
7839
7841
  createdAt
7840
7842
  updatedAt
7841
7843
  userId
7844
+ nickName
7842
7845
  }
7843
7846
  `;
7844
7847
  var COUPON_OPTION_FIELDS_FRAGMENT = gql`
@@ -7848,6 +7851,7 @@ var COUPON_OPTION_FIELDS_FRAGMENT = gql`
7848
7851
  get
7849
7852
  unit
7850
7853
  visits
7854
+ maxCouponCount
7851
7855
  }
7852
7856
  `;
7853
7857
  var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
@@ -7925,8 +7929,18 @@ var COUPON = gql`
7925
7929
  ${COUPON_DATA_FIELDS_FRAGMENT}
7926
7930
  `;
7927
7931
  var GET_COUPONS = gql`
7928
- query getCoupons($region: String, $category: String) {
7929
- coupons(region: $region, category: $category) {
7932
+ query getCoupons(
7933
+ $region: String
7934
+ $category: String
7935
+ $resourceId: String
7936
+ $resourceType: ResourceTypeEnum
7937
+ ) {
7938
+ coupons(
7939
+ region: $region
7940
+ category: $category
7941
+ resourceId: $resourceId
7942
+ resourceType: $resourceType
7943
+ ) {
7930
7944
  active {
7931
7945
  listName
7932
7946
  data {
@@ -8003,6 +8017,14 @@ var SCAN_COUPON_MUTATION = gql`
8003
8017
  }
8004
8018
  }
8005
8019
  `;
8020
+ var REWARD_COUPON_MUTATION = gql`
8021
+ mutation rewardCoupon($input: ProductCouponInputType!, $userId: ID!) {
8022
+ rewardCoupon(input: $input, userId: $userId) {
8023
+ data
8024
+ message
8025
+ }
8026
+ }
8027
+ `;
8006
8028
  var PKG = "@timardex/cluemart-shared";
8007
8029
  var IMAGE_EXTENSION = ".webp";
8008
8030
  var posterIds = [
@@ -9866,6 +9888,7 @@ var couponOptionSchema = new MongooseSchema26(
9866
9888
  {
9867
9889
  buy: { required: false, type: Number },
9868
9890
  get: { required: false, type: Number },
9891
+ maxCouponCount: { required: false, type: Number },
9869
9892
  type: {
9870
9893
  enum: Object.values(EnumCouponQualificationType),
9871
9894
  required: true,
@@ -9909,7 +9932,9 @@ var couponCodeSchema = new MongooseSchema26(
9909
9932
  var couponParticipantUserSchema = new MongooseSchema26(
9910
9933
  {
9911
9934
  couponCollectedCount: { default: 0, required: true, type: Number },
9935
+ couponCycleRedeemed: { default: false, required: true, type: Boolean },
9912
9936
  couponRedeemedAt: { default: null, required: false, type: Date },
9937
+ couponRedeemedCount: { default: 0, required: true, type: Number },
9913
9938
  userId: {
9914
9939
  ref: "User",
9915
9940
  required: true,
@@ -10028,7 +10053,7 @@ var SHARE_RESOURCE_LABEL2 = {
10028
10053
  school: "School"
10029
10054
  };
10030
10055
 
10031
- // node_modules/@timardex/cluemart-shared/dist/chunk-GR2JH7DC.mjs
10056
+ // node_modules/@timardex/cluemart-shared/dist/chunk-WS47NSTO.mjs
10032
10057
  var PROMO_CODE_PREFIX2 = "CM-";
10033
10058
  var OBJECT_ID_PATH_SEGMENT2 = "[a-f0-9]{24}";
10034
10059
  var OBJECT_ID_PATH_SEGMENT_END2 = `${OBJECT_ID_PATH_SEGMENT2}$`;
@@ -10130,7 +10155,7 @@ var gameScreenIdentifierList2 = [
10130
10155
  }
10131
10156
  ];
10132
10157
 
10133
- // node_modules/@timardex/cluemart-shared/dist/chunk-5YXMWX5D.mjs
10158
+ // node_modules/@timardex/cluemart-shared/dist/chunk-G5T3Z6WT.mjs
10134
10159
  var import_dayjs4 = __toESM(require("dayjs"), 1);
10135
10160
  var statusOptions2 = [
10136
10161
  ...Object.values(EnumInviteStatus2).map((status) => ({