@timardex/cluemart-shared 1.5.796 → 1.5.798

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 (40) hide show
  1. package/dist/{affiliate-BDoo69JY.d.mts → affiliate-CIuny52X.d.mts} +5 -3
  2. package/dist/{affiliate-BY-BlC9i.d.ts → affiliate-Slb5tO_6.d.ts} +5 -3
  3. package/dist/{chunk-6UP53CPG.mjs → chunk-BNT4YIYG.mjs} +2 -1
  4. package/dist/{chunk-6UP53CPG.mjs.map → chunk-BNT4YIYG.mjs.map} +1 -1
  5. package/dist/{chunk-LHT6WAM2.mjs → chunk-EJPMEGZW.mjs} +8 -6
  6. package/dist/chunk-EJPMEGZW.mjs.map +1 -0
  7. package/dist/{chunk-R2XNULRY.mjs → chunk-EWSFVF6C.mjs} +4 -1
  8. package/dist/{chunk-R2XNULRY.mjs.map → chunk-EWSFVF6C.mjs.map} +1 -1
  9. package/dist/formFields/index.cjs +4 -0
  10. package/dist/formFields/index.cjs.map +1 -1
  11. package/dist/formFields/index.mjs +2 -2
  12. package/dist/graphql/index.cjs +3 -0
  13. package/dist/graphql/index.cjs.map +1 -1
  14. package/dist/graphql/index.d.mts +1 -1
  15. package/dist/graphql/index.d.ts +1 -1
  16. package/dist/graphql/index.mjs +1 -1
  17. package/dist/hooks/index.cjs +9 -6
  18. package/dist/hooks/index.cjs.map +1 -1
  19. package/dist/hooks/index.d.mts +1 -1
  20. package/dist/hooks/index.d.ts +1 -1
  21. package/dist/hooks/index.mjs +3 -5
  22. package/dist/hooks/index.mjs.map +1 -1
  23. package/dist/index.cjs +10 -4
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.mts +10 -4
  26. package/dist/index.d.ts +10 -4
  27. package/dist/index.mjs +10 -4
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/types/index.cjs +1 -0
  30. package/dist/types/index.cjs.map +1 -1
  31. package/dist/types/index.d.mts +1 -1
  32. package/dist/types/index.d.ts +1 -1
  33. package/dist/types/index.mjs +1 -1
  34. package/dist/utils/index.cjs +6 -4
  35. package/dist/utils/index.cjs.map +1 -1
  36. package/dist/utils/index.d.mts +6 -2
  37. package/dist/utils/index.d.ts +6 -2
  38. package/dist/utils/index.mjs +2 -2
  39. package/package.json +1 -1
  40. package/dist/chunk-LHT6WAM2.mjs.map +0 -1
@@ -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-CnXQqP4h.mjs';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-lFB7B-Y9.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-C8npu_7P.mjs';
7
- import { A as AffiliateType } from '../affiliate-BDoo69JY.mjs';
7
+ import { A as AffiliateType } from '../affiliate-CIuny52X.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-jTYE2A1Z.js';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CJrM2qDC.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-BeBuHWbg.js';
7
- import { A as AffiliateType } from '../affiliate-BY-BlC9i.js';
7
+ import { A as AffiliateType } from '../affiliate-Slb5tO_6.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-R2XNULRY.mjs";
155
+ } from "../chunk-EWSFVF6C.mjs";
156
156
  import "../chunk-LETM2YHF.mjs";
157
157
  export {
158
158
  GET_EVENT,
@@ -536,10 +536,8 @@ var paymentMethodOptions = mapArrayToOptions(
536
536
  Object.values(EnumPaymentMethod)
537
537
  );
538
538
  function normalizeUrl(url) {
539
- if (!url.startsWith("http://") && !url.startsWith("https://")) {
540
- return `https://${url}`;
541
- }
542
- return url;
539
+ const withProtocol = !url.startsWith("http://") && !url.startsWith("https://") ? `https://${url}` : url;
540
+ return withProtocol.replace(/\/+$/, "");
543
541
  }
544
542
  var licenseNiceNames = {
545
543
  ["pro_event" /* PRO_EVENT */]: "Pro Event",
@@ -610,6 +608,10 @@ var AFFILIATE_REWARDS = {
610
608
  description: "1 point for active vendor standard subscription (monthly reward)",
611
609
  value: 1
612
610
  },
611
+ ["ACTIVE_VENDOR_BONUS_REWARD" /* ACTIVE_VENDOR_BONUS_REWARD */]: {
612
+ description: "5 bonus points for every 10th active vendor (one-time reward)",
613
+ value: 5
614
+ },
613
615
  ["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS" /* ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS */]: {
614
616
  description: "50 points for active event with vendor registrations (one-time reward)",
615
617
  value: 50
@@ -1642,8 +1644,6 @@ var availableCategories = assignColorToCategories([
1642
1644
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
1643
1645
  var nzbnRegex = /^94\d{11}$/;
1644
1646
  var normalizedUrlTransform = () => yup.string().trim().transform(
1645
- (value) => typeof value === "string" ? value.toLowerCase() : value
1646
- ).transform(
1647
1647
  (value) => typeof value === "string" ? normalizeUrl(value) : value
1648
1648
  );
1649
1649
  var noLeadingZeros = (fieldName, options = {}) => {
@@ -5111,6 +5111,9 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
5111
5111
  fragment AffiliateFields on AffiliateType {
5112
5112
  _id
5113
5113
  active
5114
+ affiliateBonusRewards {
5115
+ ...AffiliateRewardFields
5116
+ }
5114
5117
  affiliateCode
5115
5118
  affiliateDetails {
5116
5119
  ...AffiliateDetailsFields