@timardex/cluemart-shared 1.7.57 → 1.7.59

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 (51) hide show
  1. package/dist/{ad-wW8fzT4I.d.ts → ad-BXYzElOY.d.ts} +2 -8
  2. package/dist/{ad-CCuXkAAt.d.mts → ad-CaNdaVzA.d.mts} +2 -8
  3. package/dist/{affiliate-BSWxq9Uv.d.ts → affiliate-C4kUR-RF.d.ts} +1 -1
  4. package/dist/{affiliate-CaP_IFPL.d.mts → affiliate-KIMlFQc0.d.mts} +1 -1
  5. package/dist/auth/index.cjs +1 -0
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +2 -2
  8. package/dist/auth/index.d.ts +2 -2
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-VBQ5RF7L.mjs → chunk-6ALUN6LP.mjs} +2 -1
  11. package/dist/chunk-6ALUN6LP.mjs.map +1 -0
  12. package/dist/{chunk-FSS2CZPR.mjs → chunk-CRUKJX54.mjs} +15 -1
  13. package/dist/{chunk-FSS2CZPR.mjs.map → chunk-CRUKJX54.mjs.map} +1 -1
  14. package/dist/{chunk-5D2JVHC2.mjs → chunk-GZZMH35Y.mjs} +1 -1
  15. package/dist/chunk-GZZMH35Y.mjs.map +1 -0
  16. package/dist/{chunk-MGSDQSWS.mjs → chunk-HBW4LTNY.mjs} +25 -2
  17. package/dist/{chunk-MGSDQSWS.mjs.map → chunk-HBW4LTNY.mjs.map} +1 -1
  18. package/dist/{chunk-P4JLZCWZ.mjs → chunk-TRWMYXB7.mjs} +2 -2
  19. package/dist/formFields/index.cjs +14 -0
  20. package/dist/formFields/index.cjs.map +1 -1
  21. package/dist/formFields/index.mjs +3 -3
  22. package/dist/graphql/index.cjs +25 -0
  23. package/dist/graphql/index.cjs.map +1 -1
  24. package/dist/graphql/index.d.mts +13 -4
  25. package/dist/graphql/index.d.ts +13 -4
  26. package/dist/graphql/index.mjs +4 -2
  27. package/dist/hooks/index.cjs +35 -0
  28. package/dist/hooks/index.cjs.map +1 -1
  29. package/dist/hooks/index.d.mts +3 -3
  30. package/dist/hooks/index.d.ts +3 -3
  31. package/dist/hooks/index.mjs +14 -5
  32. package/dist/hooks/index.mjs.map +1 -1
  33. package/dist/index.cjs +39 -0
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.mts +12 -8
  36. package/dist/index.d.ts +12 -8
  37. package/dist/index.mjs +38 -0
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/types/index.cjs.map +1 -1
  40. package/dist/types/index.d.mts +3 -3
  41. package/dist/types/index.d.ts +3 -3
  42. package/dist/types/index.mjs +1 -1
  43. package/dist/{user-Cz3XuyJU.d.mts → user-IkpoJkZz.d.mts} +1 -0
  44. package/dist/{user-B6RYIUjX.d.ts → user-J01cQFJ6.d.ts} +1 -0
  45. package/dist/utils/index.d.mts +2 -2
  46. package/dist/utils/index.d.ts +2 -2
  47. package/dist/utils/index.mjs +2 -2
  48. package/package.json +1 -1
  49. package/dist/chunk-5D2JVHC2.mjs.map +0 -1
  50. package/dist/chunk-VBQ5RF7L.mjs.map +0 -1
  51. /package/dist/{chunk-P4JLZCWZ.mjs.map → chunk-TRWMYXB7.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -333,6 +333,7 @@ __export(index_exports, {
333
333
  useContactUs: () => useContactUs,
334
334
  useCrawlGoogleMarkets: () => useCrawlGoogleMarkets,
335
335
  useCreateAd: () => useCreateAd,
336
+ useCreateAffiliate: () => useCreateAffiliate,
336
337
  useCreateBulkNotifications: () => useCreateBulkNotifications,
337
338
  useCreateCheckoutSession: () => useCreateCheckoutSession,
338
339
  useCreateCoupon: () => useCreateCoupon,
@@ -3588,6 +3589,13 @@ var registerFields = [
3588
3589
  placeholder: "Last Name",
3589
3590
  required: true
3590
3591
  },
3592
+ {
3593
+ helperText: "Enter Nickname",
3594
+ keyboardType: "default",
3595
+ name: "nickName",
3596
+ placeholder: "Nickname",
3597
+ required: false
3598
+ },
3591
3599
  {
3592
3600
  ...emailField,
3593
3601
  required: true
@@ -3667,6 +3675,13 @@ var profileFields = [
3667
3675
  name: "lastName",
3668
3676
  placeholder: "Last Name"
3669
3677
  },
3678
+ {
3679
+ helperText: "Enter Nickname",
3680
+ keyboardType: "default",
3681
+ name: "nickName",
3682
+ placeholder: "Nickname",
3683
+ required: false
3684
+ },
3670
3685
  {
3671
3686
  helperText: "Enter your new password",
3672
3687
  keyboardType: "default",
@@ -3942,6 +3957,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
3942
3957
  game
3943
3958
  isTester
3944
3959
  lastName
3960
+ nickName
3945
3961
  licences {
3946
3962
  ...LicenceFields
3947
3963
  }
@@ -8327,6 +8343,17 @@ var import_client77 = require("@apollo/client");
8327
8343
 
8328
8344
  // src/graphql/mutations/affiliate.ts
8329
8345
  var import_client76 = require("@apollo/client");
8346
+ var CREATE_AFFILIATE_MUTATION = import_client76.gql`
8347
+ mutation createAffiliate($input: AffiliateDetailsInputType!) {
8348
+ createAffiliate(input: $input) {
8349
+ data {
8350
+ ...AffiliateFields
8351
+ }
8352
+ message
8353
+ }
8354
+ }
8355
+ ${AFFILIATE_FIELDS_FRAGMENT}
8356
+ `;
8330
8357
  var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8331
8358
  mutation updateAffiliateDetails(
8332
8359
  $input: AffiliateDetailsInputType!
@@ -8400,6 +8427,17 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8400
8427
  `;
8401
8428
 
8402
8429
  // src/graphql/hooks/affiliate/hooksMutation.ts
8430
+ var useCreateAffiliate = () => {
8431
+ const [createAffiliate, { loading, error }] = (0, import_client77.useMutation)(CREATE_AFFILIATE_MUTATION, {
8432
+ awaitRefetchQueries: true,
8433
+ refetchQueries: (mutationResult) => {
8434
+ const affiliateId = mutationResult?.data?.createAffiliate?.data?._id;
8435
+ if (!affiliateId) return [];
8436
+ return [{ query: GET_AFFILIATE, variables: { _id: affiliateId } }];
8437
+ }
8438
+ });
8439
+ return { createAffiliate, error, loading };
8440
+ };
8403
8441
  var useUpdateAffiliateDetails = () => {
8404
8442
  const [updateAffiliateDetails, { loading, error }] = (0, import_client77.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8405
8443
  awaitRefetchQueries: true,
@@ -9558,6 +9596,7 @@ function canAccessAdminPath(roles, pathname) {
9558
9596
  useContactUs,
9559
9597
  useCrawlGoogleMarkets,
9560
9598
  useCreateAd,
9599
+ useCreateAffiliate,
9561
9600
  useCreateBulkNotifications,
9562
9601
  useCreateCheckoutSession,
9563
9602
  useCreateCoupon,