@timardex/cluemart-shared 1.7.29 → 1.7.31

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.
Files changed (67) hide show
  1. package/dist/{ad-DaMV_FdN.d.mts → ad-BsAes_WS.d.mts} +2 -2
  2. package/dist/{ad-CQrQILqt.d.ts → ad-FrGeJoW6.d.ts} +2 -2
  3. package/dist/{affiliate-BjNe7vrz.d.ts → affiliate-2h_y0IL4.d.ts} +2 -2
  4. package/dist/{affiliate-CRzUWMPv.d.mts → affiliate-KR-MNBCC.d.mts} +2 -2
  5. package/dist/auth/index.cjs +26 -4
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-PACEDU64.mjs → chunk-3UYXNSNB.mjs} +4 -4
  11. package/dist/{chunk-PACEDU64.mjs.map → chunk-3UYXNSNB.mjs.map} +1 -1
  12. package/dist/{chunk-2KVUR42L.mjs → chunk-BGTWSB5L.mjs} +2 -2
  13. package/dist/{chunk-BIJ5NDXW.mjs → chunk-FSS2CZPR.mjs} +16 -6
  14. package/dist/chunk-FSS2CZPR.mjs.map +1 -0
  15. package/dist/{chunk-PFY3LS6P.mjs → chunk-P2HBORDW.mjs} +27 -5
  16. package/dist/chunk-P2HBORDW.mjs.map +1 -0
  17. package/dist/{chunk-7TL4ZSUO.mjs → chunk-UV5GH6NI.mjs} +10 -2
  18. package/dist/chunk-UV5GH6NI.mjs.map +1 -0
  19. package/dist/{contactUs-BCkSecPW.d.ts → contactUs-CQqOcQk_.d.ts} +1 -1
  20. package/dist/{contactUs-ryrB_j4c.d.mts → contactUs-DOI78kmJ.d.mts} +1 -1
  21. package/dist/formFields/index.cjs +16 -6
  22. package/dist/formFields/index.cjs.map +1 -1
  23. package/dist/formFields/index.d.mts +3 -3
  24. package/dist/formFields/index.d.ts +3 -3
  25. package/dist/formFields/index.mjs +5 -5
  26. package/dist/{global-Ch11tfC6.d.mts → global-C7xIDkiQ.d.mts} +21 -4
  27. package/dist/{global-CF8hwvkc.d.ts → global-D-034Xws.d.ts} +21 -4
  28. package/dist/graphql/index.cjs +26 -4
  29. package/dist/graphql/index.cjs.map +1 -1
  30. package/dist/graphql/index.d.mts +5 -5
  31. package/dist/graphql/index.d.ts +5 -5
  32. package/dist/graphql/index.mjs +2 -2
  33. package/dist/hooks/index.cjs +56 -17
  34. package/dist/hooks/index.cjs.map +1 -1
  35. package/dist/hooks/index.d.mts +5 -5
  36. package/dist/hooks/index.d.ts +5 -5
  37. package/dist/hooks/index.mjs +35 -18
  38. package/dist/hooks/index.mjs.map +1 -1
  39. package/dist/index.cjs +53 -12
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.mts +23 -6
  42. package/dist/index.d.ts +23 -6
  43. package/dist/index.mjs +51 -11
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/map/index.d.mts +1 -1
  46. package/dist/map/index.d.ts +1 -1
  47. package/dist/{resourceActivities-isol6rr_.d.mts → resourceActivities-CoCW9VLu.d.mts} +1 -1
  48. package/dist/{resourceActivities-2SjrHpuU.d.ts → resourceActivities-DMEtduFL.d.ts} +1 -1
  49. package/dist/sharing/index.d.mts +1 -1
  50. package/dist/sharing/index.d.ts +1 -1
  51. package/dist/types/index.cjs +9 -0
  52. package/dist/types/index.cjs.map +1 -1
  53. package/dist/types/index.d.mts +7 -7
  54. package/dist/types/index.d.ts +7 -7
  55. package/dist/types/index.mjs +3 -1
  56. package/dist/{user-CFVqH8Xk.d.mts → user-0qKK4juO.d.mts} +1 -1
  57. package/dist/{user-BdvV_3eW.d.ts → user-Bynr8XGA.d.ts} +1 -1
  58. package/dist/utils/index.cjs +2 -2
  59. package/dist/utils/index.cjs.map +1 -1
  60. package/dist/utils/index.d.mts +4 -4
  61. package/dist/utils/index.d.ts +4 -4
  62. package/dist/utils/index.mjs +2 -2
  63. package/package.json +1 -1
  64. package/dist/chunk-7TL4ZSUO.mjs.map +0 -1
  65. package/dist/chunk-BIJ5NDXW.mjs.map +0 -1
  66. package/dist/chunk-PFY3LS6P.mjs.map +0 -1
  67. /package/dist/{chunk-2KVUR42L.mjs.map → chunk-BGTWSB5L.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -54,6 +54,7 @@ __export(index_exports, {
54
54
  EnumBillingPeriod: () => EnumBillingPeriod,
55
55
  EnumChatReportReason: () => EnumChatReportReason,
56
56
  EnumChatType: () => EnumChatType,
57
+ EnumCouponQualificationType: () => EnumCouponQualificationType,
57
58
  EnumEventDateStatus: () => EnumEventDateStatus,
58
59
  EnumEventType: () => EnumEventType,
59
60
  EnumFoodFlavor: () => EnumFoodFlavor,
@@ -479,10 +480,10 @@ __export(index_exports, {
479
480
  vendorFullAddress: () => vendorFullAddress,
480
481
  vendorGazebo: () => vendorGazebo,
481
482
  vendorLocationDescription: () => vendorLocationDescription,
482
- vendorMenuFields: () => vendorMenuFields,
483
483
  vendorPackaging: () => vendorPackaging,
484
484
  vendorPriceRange: () => vendorPriceRange,
485
485
  vendorProducedIn: () => vendorProducedIn,
486
+ vendorProductFields: () => vendorProductFields,
486
487
  vendorStallSize: () => vendorStallSize,
487
488
  vendorStartDateFields: () => vendorStartDateFields,
488
489
  vendorTable: () => vendorTable
@@ -808,23 +809,33 @@ var vendorLocationDescription = {
808
809
  name: "description",
809
810
  placeholder: "Description"
810
811
  };
811
- var vendorMenuFields = [
812
+ var vendorProductFields = [
812
813
  {
813
814
  helperText: "Item name",
814
815
  name: "name",
815
- placeholder: "Item name"
816
+ placeholder: "Item name",
817
+ required: true
816
818
  },
817
819
  {
818
820
  helperText: "Price",
819
821
  keyboardType: "decimal-pad",
820
822
  name: "price",
821
- placeholder: "Price"
823
+ placeholder: "Price",
824
+ required: true
825
+ },
826
+ {
827
+ helperText: "Price Max",
828
+ keyboardType: "decimal-pad",
829
+ name: "priceMax",
830
+ placeholder: "Price Max",
831
+ required: false
822
832
  },
823
833
  {
824
834
  helperText: "Item Description",
825
835
  isTextArea: true,
826
836
  name: "description",
827
- placeholder: "Item Description"
837
+ placeholder: "Item Description",
838
+ required: false
828
839
  }
829
840
  ];
830
841
  var productLabelGroups = [
@@ -1473,6 +1484,13 @@ var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
1473
1484
  return EnumAffiliateRewardType2;
1474
1485
  })(EnumAffiliateRewardType || {});
1475
1486
 
1487
+ // src/types/coupon/index.ts
1488
+ var EnumCouponQualificationType = /* @__PURE__ */ ((EnumCouponQualificationType2) => {
1489
+ EnumCouponQualificationType2["PURCHASE"] = "PURCHASE";
1490
+ EnumCouponQualificationType2["MARKET_VISIT"] = "MARKET_VISIT";
1491
+ return EnumCouponQualificationType2;
1492
+ })(EnumCouponQualificationType || {});
1493
+
1476
1494
  // src/utils/utils.ts
1477
1495
  var removeTypename = (obj) => {
1478
1496
  if (obj instanceof Date) {
@@ -3042,9 +3060,9 @@ function createCouponDefaults({
3042
3060
  couponCode,
3043
3061
  couponDescription,
3044
3062
  couponOption,
3063
+ couponRewards,
3045
3064
  createdAt,
3046
3065
  endDate,
3047
- participantProductId,
3048
3066
  startDate,
3049
3067
  resourceId,
3050
3068
  resourceType
@@ -3054,9 +3072,9 @@ function createCouponDefaults({
3054
3072
  couponCode,
3055
3073
  couponDescription,
3056
3074
  couponOption,
3075
+ couponRewards,
3057
3076
  createdAt,
3058
3077
  endDate,
3059
- participantProductId,
3060
3078
  participantUsers: null,
3061
3079
  resourceId,
3062
3080
  resourceType,
@@ -4306,6 +4324,23 @@ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client3.gql`
4306
4324
  userId
4307
4325
  }
4308
4326
  `;
4327
+ var COUPON_OPTION_FIELDS_FRAGMENT = import_client3.gql`
4328
+ fragment CouponOptionFields on CouponOptionType {
4329
+ type
4330
+ buy
4331
+ get
4332
+ unit
4333
+ visits
4334
+ }
4335
+ `;
4336
+ var COUPON_REWARD_FIELDS_FRAGMENT = import_client3.gql`
4337
+ fragment CouponRewardFields on CouponRewardType {
4338
+ vendorId
4339
+ productId
4340
+ quantity
4341
+ unit
4342
+ }
4343
+ `;
4309
4344
  var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
4310
4345
  fragment CouponDataFields on CouponDataType {
4311
4346
  _id
@@ -4314,10 +4349,14 @@ var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
4314
4349
  ...CouponCodeFields
4315
4350
  }
4316
4351
  couponDescription
4317
- couponOption
4352
+ couponOption {
4353
+ ...CouponOptionFields
4354
+ }
4355
+ couponRewards {
4356
+ ...CouponRewardFields
4357
+ }
4318
4358
  createdAt
4319
4359
  endDate
4320
- participantProductId
4321
4360
  participantUsers {
4322
4361
  ...CouponParticipantUserFields
4323
4362
  }
@@ -4327,7 +4366,9 @@ var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
4327
4366
  updatedAt
4328
4367
  }
4329
4368
  ${COUPON_CODE_FIELDS_FRAGMENT}
4369
+ ${COUPON_OPTION_FIELDS_FRAGMENT}
4330
4370
  ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
4371
+ ${COUPON_REWARD_FIELDS_FRAGMENT}
4331
4372
  `;
4332
4373
  var COUPON = import_client3.gql`
4333
4374
  fragment CouponFields on CouponType {
@@ -4345,8 +4386,6 @@ var COUPON = import_client3.gql`
4345
4386
  }
4346
4387
  ${OWNER_FIELDS_FRAGMENT}
4347
4388
  ${COUPON_DATA_FIELDS_FRAGMENT}
4348
- ${COUPON_CODE_FIELDS_FRAGMENT}
4349
- ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
4350
4389
  `;
4351
4390
  var GET_COUPONS = import_client3.gql`
4352
4391
  query getCoupons {
@@ -4385,6 +4424,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
4385
4424
  description
4386
4425
  name
4387
4426
  price
4427
+ priceMax
4388
4428
  priceUnit
4389
4429
  productGroups
4390
4430
  updatedAt
@@ -9174,6 +9214,7 @@ function canAccessAdminPath(roles, pathname) {
9174
9214
  EnumBillingPeriod,
9175
9215
  EnumChatReportReason,
9176
9216
  EnumChatType,
9217
+ EnumCouponQualificationType,
9177
9218
  EnumEventDateStatus,
9178
9219
  EnumEventType,
9179
9220
  EnumFoodFlavor,
@@ -9599,10 +9640,10 @@ function canAccessAdminPath(roles, pathname) {
9599
9640
  vendorFullAddress,
9600
9641
  vendorGazebo,
9601
9642
  vendorLocationDescription,
9602
- vendorMenuFields,
9603
9643
  vendorPackaging,
9604
9644
  vendorPriceRange,
9605
9645
  vendorProducedIn,
9646
+ vendorProductFields,
9606
9647
  vendorStallSize,
9607
9648
  vendorStartDateFields,
9608
9649
  vendorTable