@timardex/cluemart-shared 1.5.834 → 1.5.836

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 (38) hide show
  1. package/dist/{affiliate-XW8pxlOC.d.mts → affiliate-C0wLdUpL.d.mts} +2 -0
  2. package/dist/{affiliate-Dn50VDpB.d.ts → affiliate-DSZKkCju.d.ts} +2 -0
  3. package/dist/auth/index.cjs +1 -1
  4. package/dist/auth/index.cjs.map +1 -1
  5. package/dist/auth/index.mjs +1 -1
  6. package/dist/auth/index.mjs.map +1 -1
  7. package/dist/{chunk-SP36N6U6.mjs → chunk-L4DYYGRX.mjs} +6 -1
  8. package/dist/{chunk-SP36N6U6.mjs.map → chunk-L4DYYGRX.mjs.map} +1 -1
  9. package/dist/{chunk-43SLZVBF.mjs → chunk-OBZTGPBJ.mjs} +1 -1
  10. package/dist/{chunk-43SLZVBF.mjs.map → chunk-OBZTGPBJ.mjs.map} +1 -1
  11. package/dist/{chunk-MLNJAQVM.mjs → chunk-QBU7N4P2.mjs} +2 -2
  12. package/dist/formFields/index.mjs +2 -2
  13. package/dist/graphql/index.cjs +5 -0
  14. package/dist/graphql/index.cjs.map +1 -1
  15. package/dist/graphql/index.d.mts +1 -1
  16. package/dist/graphql/index.d.ts +1 -1
  17. package/dist/graphql/index.mjs +1 -1
  18. package/dist/hooks/index.cjs +24 -15
  19. package/dist/hooks/index.cjs.map +1 -1
  20. package/dist/hooks/index.d.mts +1 -1
  21. package/dist/hooks/index.d.ts +1 -1
  22. package/dist/hooks/index.mjs +22 -18
  23. package/dist/hooks/index.mjs.map +1 -1
  24. package/dist/index.cjs +5 -0
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.mts +2 -0
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.mjs +5 -0
  29. package/dist/index.mjs.map +1 -1
  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.d.mts +1 -1
  35. package/dist/utils/index.d.ts +1 -1
  36. package/dist/utils/index.mjs +2 -2
  37. package/package.json +1 -1
  38. /package/dist/{chunk-MLNJAQVM.mjs.map → chunk-QBU7N4P2.mjs.map} +0 -0
@@ -5,7 +5,7 @@ import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BDIjVrI4.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-BHwZPjT8.mjs';
7
7
  import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-Bhkd3l06.mjs';
8
- import { A as AffiliateType } from '../affiliate-XW8pxlOC.mjs';
8
+ import { A as AffiliateType } from '../affiliate-C0wLdUpL.mjs';
9
9
  import '../images/index.mjs';
10
10
  import 'react-hook-form';
11
11
 
@@ -5,7 +5,7 @@ import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-JNcJxpTh.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--iSLy2cE.js';
7
7
  import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-C_kCo0Fm.js';
8
- import { A as AffiliateType } from '../affiliate-Dn50VDpB.js';
8
+ import { A as AffiliateType } from '../affiliate-DSZKkCju.js';
9
9
  import '../images/index.js';
10
10
  import 'react-hook-form';
11
11
 
@@ -136,7 +136,7 @@ import {
136
136
  useUpdateUser,
137
137
  useUpdateVendor,
138
138
  useUpdateVendorInfo
139
- } from "../chunk-SP36N6U6.mjs";
139
+ } from "../chunk-L4DYYGRX.mjs";
140
140
  import {
141
141
  GET_EVENT,
142
142
  GET_EVENT_INFO,
@@ -5097,12 +5097,16 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
5097
5097
  resourceDeletedAt
5098
5098
  resourceId
5099
5099
  resourceName
5100
+ resourceOwner {
5101
+ ...OwnerFields
5102
+ }
5100
5103
  resourceType
5101
5104
  rewards {
5102
5105
  ...AffiliateRewardFields
5103
5106
  }
5104
5107
  }
5105
5108
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
5109
+ ${OWNER_FIELDS_FRAGMENT}
5106
5110
  `;
5107
5111
  var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
5108
5112
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
@@ -5157,6 +5161,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
5157
5161
  createdAt
5158
5162
  deletedAt
5159
5163
  redeemHistory {
5164
+ paidAt
5160
5165
  redeemedAt
5161
5166
  rewardValue
5162
5167
  }
@@ -6825,21 +6830,25 @@ function useAffiliateForm(data) {
6825
6830
  resolver: (0, import_yup18.yupResolver)(affiliateSchema)
6826
6831
  });
6827
6832
  (0, import_react6.useEffect)(() => {
6828
- reset({
6829
- _id: data._id,
6830
- bankAccountDetails: data.bankAccountDetails,
6831
- contactDetails: data.contactDetails,
6832
- email: data.email,
6833
- firstName: data.firstName,
6834
- irdNumber: data.irdNumber,
6835
- lastName: data.lastName,
6836
- location: data.location,
6837
- participantType: data.participantType,
6838
- region: data.region,
6839
- socialMedia: data.socialMedia,
6840
- termsAgreement: data.termsAgreement
6841
- });
6842
- }, [data, reset]);
6833
+ if (data) {
6834
+ reset({
6835
+ _id: data._id,
6836
+ bankAccountDetails: data.bankAccountDetails,
6837
+ contactDetails: data.contactDetails,
6838
+ email: data.email,
6839
+ firstName: data.firstName,
6840
+ irdNumber: data.irdNumber,
6841
+ lastName: data.lastName,
6842
+ location: data.location,
6843
+ participantType: data.participantType,
6844
+ region: data.region,
6845
+ socialMedia: data.socialMedia,
6846
+ termsAgreement: data.termsAgreement
6847
+ });
6848
+ } else {
6849
+ reset(defaultAffiliateFormValues);
6850
+ }
6851
+ }, [data]);
6843
6852
  const {
6844
6853
  _id,
6845
6854
  bankAccountDetails,