@timardex/cluemart-shared 1.5.790 → 1.5.792

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 (49) hide show
  1. package/dist/{affiliate-B1RBuV0w.d.ts → affiliate-C09PnHJx.d.ts} +5 -0
  2. package/dist/{affiliate-qEbJvGVD.d.mts → affiliate-ISt4ujwI.d.mts} +5 -0
  3. package/dist/{chunk-B6DDY5XL.mjs → chunk-2US6BYNF.mjs} +3 -1
  4. package/dist/{chunk-B6DDY5XL.mjs.map → chunk-2US6BYNF.mjs.map} +1 -1
  5. package/dist/{chunk-TWPPOPRF.mjs → chunk-5DA4KGDS.mjs} +6 -2
  6. package/dist/{chunk-TWPPOPRF.mjs.map → chunk-5DA4KGDS.mjs.map} +1 -1
  7. package/dist/{chunk-R6ONCJE5.mjs → chunk-G4HKDB7T.mjs} +14 -2
  8. package/dist/chunk-G4HKDB7T.mjs.map +1 -0
  9. package/dist/{chunk-Q23R46FE.mjs → chunk-VZPFJYPL.mjs} +2 -2
  10. package/dist/{chunk-LPPBP3LJ.mjs → chunk-XY5XRXR3.mjs} +4 -1
  11. package/dist/{chunk-LPPBP3LJ.mjs.map → chunk-XY5XRXR3.mjs.map} +1 -1
  12. package/dist/formFields/index.cjs +12 -0
  13. package/dist/formFields/index.cjs.map +1 -1
  14. package/dist/formFields/index.mjs +3 -3
  15. package/dist/graphql/index.cjs +2 -0
  16. package/dist/graphql/index.cjs.map +1 -1
  17. package/dist/graphql/index.d.mts +1 -1
  18. package/dist/graphql/index.d.ts +1 -1
  19. package/dist/graphql/index.mjs +1 -1
  20. package/dist/hooks/index.cjs +18 -1
  21. package/dist/hooks/index.cjs.map +1 -1
  22. package/dist/hooks/index.d.mts +1 -1
  23. package/dist/hooks/index.d.ts +1 -1
  24. package/dist/hooks/index.mjs +9 -6
  25. package/dist/hooks/index.mjs.map +1 -1
  26. package/dist/index.cjs +22 -0
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.mts +23 -1
  29. package/dist/index.d.ts +23 -1
  30. package/dist/index.mjs +21 -0
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/sharing/index.cjs +19 -2
  33. package/dist/sharing/index.cjs.map +1 -1
  34. package/dist/sharing/index.d.mts +6 -1
  35. package/dist/sharing/index.d.ts +6 -1
  36. package/dist/sharing/index.mjs +7 -5
  37. package/dist/types/index.cjs +3 -0
  38. package/dist/types/index.cjs.map +1 -1
  39. package/dist/types/index.d.mts +1 -1
  40. package/dist/types/index.d.ts +1 -1
  41. package/dist/types/index.mjs +1 -1
  42. package/dist/utils/index.cjs +12 -0
  43. package/dist/utils/index.cjs.map +1 -1
  44. package/dist/utils/index.d.mts +13 -1
  45. package/dist/utils/index.d.ts +13 -1
  46. package/dist/utils/index.mjs +2 -2
  47. package/package.json +1 -1
  48. package/dist/chunk-R6ONCJE5.mjs.map +0 -1
  49. /package/dist/{chunk-Q23R46FE.mjs.map → chunk-VZPFJYPL.mjs.map} +0 -0
@@ -4,7 +4,7 @@ import { EnumResourceType, EnumEventDateStatus } from '../enums/index.mjs';
4
4
  import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-kAjUceeE.mjs';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-zczOntNk.mjs';
6
6
  import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-BUUfmCo7.mjs';
7
- import { A as AffiliateType } from '../affiliate-qEbJvGVD.mjs';
7
+ import { A as AffiliateType } from '../affiliate-ISt4ujwI.mjs';
8
8
  import '../images/index.mjs';
9
9
  import 'react-hook-form';
10
10
 
@@ -4,7 +4,7 @@ import { EnumResourceType, EnumEventDateStatus } from '../enums/index.js';
4
4
  import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-BmDOVKmE.js';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BL_12IAo.js';
6
6
  import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-fKbMmluy.js';
7
- import { A as AffiliateType } from '../affiliate-B1RBuV0w.js';
7
+ import { A as AffiliateType } from '../affiliate-C09PnHJx.js';
8
8
  import '../images/index.js';
9
9
  import 'react-hook-form';
10
10
 
@@ -152,7 +152,7 @@ import {
152
152
  useUpdateVendor,
153
153
  useUpdateVendorInfo,
154
154
  useValidateVerificationToken
155
- } from "../chunk-B6DDY5XL.mjs";
155
+ } from "../chunk-2US6BYNF.mjs";
156
156
  import "../chunk-LETM2YHF.mjs";
157
157
  export {
158
158
  GET_EVENT,
@@ -553,6 +553,18 @@ var AFFILIATE_REWARDS = {
553
553
  ["NEW_VENDOR_REGISTRATION" /* NEW_VENDOR_REGISTRATION */]: {
554
554
  description: "5 points for new vendor registration (one-time reward)",
555
555
  value: 5
556
+ },
557
+ ["ACTIVE_VENDOR_PRO_SUBSCRIPTION" /* ACTIVE_VENDOR_PRO_SUBSCRIPTION */]: {
558
+ description: "3 points for active vendor pro subscription (monthly reward)",
559
+ value: 3
560
+ },
561
+ ["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION" /* ACTIVE_VENDOR_STANDARD_SUBSCRIPTION */]: {
562
+ description: "1 point for active vendor standard subscription (monthly reward)",
563
+ value: 1
564
+ },
565
+ ["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS" /* ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS */]: {
566
+ description: "50 points for active event with vendor registrations (one-time reward)",
567
+ value: 50
556
568
  }
557
569
  };
558
570
 
@@ -5059,6 +5071,8 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
5059
5071
  }
5060
5072
  createdAt
5061
5073
  deletedAt
5074
+ lastRewardRedemptionAt
5075
+ lastRewardRedemptionPoints
5062
5076
  overallPoints
5063
5077
  owner {
5064
5078
  ...OwnerFields
@@ -6585,7 +6599,10 @@ var affiliateContactDetailsSchema = yup12.object({
6585
6599
  });
6586
6600
  var bankAccountDetailsSchema = yup12.object({
6587
6601
  accountHolderName: yup12.string().required("Account holder name is required"),
6588
- accountNumber: yup12.string().required("Account number is required")
6602
+ accountNumber: yup12.string().required("Account number is required for bank transfer").matches(
6603
+ nzBankAccountRegex,
6604
+ "Account number must be in format: XX-XXXX-XXXXXXX-XX"
6605
+ ).trim()
6589
6606
  });
6590
6607
  var affiliateSchema = yup12.object().shape({
6591
6608
  _id: yup12.string().required(),