@timardex/cluemart-shared 1.5.797 → 1.5.799

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 (41) hide show
  1. package/dist/{ad-CnXQqP4h.d.mts → ad-BmEN-ByY.d.mts} +56 -1
  2. package/dist/{ad-jTYE2A1Z.d.ts → ad-DGOhJs69.d.ts} +56 -1
  3. package/dist/{chunk-JCFZV25I.mjs → chunk-DXR4GYHF.mjs} +2 -38
  4. package/dist/chunk-DXR4GYHF.mjs.map +1 -0
  5. package/dist/{chunk-R2XNULRY.mjs → chunk-JP57IB7P.mjs} +5 -1
  6. package/dist/{chunk-R2XNULRY.mjs.map → chunk-JP57IB7P.mjs.map} +1 -1
  7. package/dist/{chunk-6UP53CPG.mjs → chunk-TDTNL6PH.mjs} +2 -1
  8. package/dist/{chunk-6UP53CPG.mjs.map → chunk-TDTNL6PH.mjs.map} +1 -1
  9. package/dist/formFields/index.cjs +0 -24
  10. package/dist/formFields/index.cjs.map +1 -1
  11. package/dist/formFields/index.mjs +2 -2
  12. package/dist/graphql/index.cjs +4 -0
  13. package/dist/graphql/index.cjs.map +1 -1
  14. package/dist/graphql/index.d.mts +1 -2
  15. package/dist/graphql/index.d.ts +1 -2
  16. package/dist/graphql/index.mjs +1 -1
  17. package/dist/hooks/index.cjs +4 -24
  18. package/dist/hooks/index.cjs.map +1 -1
  19. package/dist/hooks/index.d.mts +1 -2
  20. package/dist/hooks/index.d.ts +1 -2
  21. package/dist/hooks/index.mjs +3 -3
  22. package/dist/index.cjs +5 -38
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.mts +6 -36
  25. package/dist/index.d.ts +6 -36
  26. package/dist/index.mjs +5 -36
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/types/index.cjs +1 -0
  29. package/dist/types/index.cjs.map +1 -1
  30. package/dist/types/index.d.mts +1 -2
  31. package/dist/types/index.d.ts +1 -2
  32. package/dist/types/index.mjs +1 -1
  33. package/dist/utils/index.cjs +0 -38
  34. package/dist/utils/index.cjs.map +1 -1
  35. package/dist/utils/index.d.mts +1 -35
  36. package/dist/utils/index.d.ts +1 -35
  37. package/dist/utils/index.mjs +2 -6
  38. package/package.json +1 -1
  39. package/dist/affiliate-BDoo69JY.d.mts +0 -56
  40. package/dist/affiliate-BY-BlC9i.d.ts +0 -56
  41. package/dist/chunk-JCFZV25I.mjs.map +0 -1
@@ -1,10 +1,9 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.mjs';
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';
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, i as AffiliateType } from '../ad-BmEN-ByY.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';
8
7
  import '../images/index.mjs';
9
8
  import 'react-hook-form';
10
9
 
@@ -1,10 +1,9 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.js';
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';
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, i as AffiliateType } from '../ad-DGOhJs69.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';
8
7
  import '../images/index.js';
9
8
  import 'react-hook-form';
10
9
 
@@ -152,7 +152,7 @@ import {
152
152
  useUpdateVendor,
153
153
  useUpdateVendorInfo,
154
154
  useValidateVerificationToken
155
- } from "../chunk-R2XNULRY.mjs";
155
+ } from "../chunk-JP57IB7P.mjs";
156
156
  import "../chunk-LETM2YHF.mjs";
157
157
  export {
158
158
  GET_EVENT,
@@ -590,30 +590,6 @@ var PostTypeLabels = {
590
590
  var CM_SCHOOL_PROMO_CODE = `${PROMO_CODE_PREFIX}SCHOOL`;
591
591
  var CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;
592
592
 
593
- // src/utils/affiliate.ts
594
- var AFFILIATE_REWARDS = {
595
- ["NEW_EVENT_REGISTRATION" /* NEW_EVENT_REGISTRATION */]: {
596
- description: "10 points for new event registration (one-time reward)",
597
- value: 10
598
- },
599
- ["NEW_VENDOR_REGISTRATION" /* NEW_VENDOR_REGISTRATION */]: {
600
- description: "5 points for new vendor registration (one-time reward)",
601
- value: 5
602
- },
603
- ["ACTIVE_VENDOR_PRO_SUBSCRIPTION" /* ACTIVE_VENDOR_PRO_SUBSCRIPTION */]: {
604
- description: "3 points for active vendor pro subscription (monthly reward)",
605
- value: 3
606
- },
607
- ["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION" /* ACTIVE_VENDOR_STANDARD_SUBSCRIPTION */]: {
608
- description: "1 point for active vendor standard subscription (monthly reward)",
609
- value: 1
610
- },
611
- ["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS" /* ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS */]: {
612
- description: "50 points for active event with vendor registrations (one-time reward)",
613
- value: 50
614
- }
615
- };
616
-
617
593
  // src/utils/school.ts
618
594
  var SCHOOL_MIN_STUDENT_COUNT = 300;
619
595
 
@@ -5068,6 +5044,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
5068
5044
  var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
5069
5045
  fragment AffiliateResourceFields on AffiliateResourceType {
5070
5046
  resourceActive
5047
+ resourceDeletedAt
5071
5048
  resourceId
5072
5049
  resourceName
5073
5050
  resourceType
@@ -5107,6 +5084,9 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
5107
5084
  fragment AffiliateFields on AffiliateType {
5108
5085
  _id
5109
5086
  active
5087
+ affiliateBonusRewards {
5088
+ ...AffiliateRewardFields
5089
+ }
5110
5090
  affiliateCode
5111
5091
  affiliateDetails {
5112
5092
  ...AffiliateDetailsFields