@carlonicora/nextjs-jsonapi 1.44.2 → 1.45.0

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 (90) hide show
  1. package/README.md +2 -2
  2. package/dist/{BlockNoteEditor-2ZP2BEZC.mjs → BlockNoteEditor-IAA6SRJD.mjs} +4 -4
  3. package/dist/{BlockNoteEditor-C7CVGQDG.js → BlockNoteEditor-JYQVZHSR.js} +14 -14
  4. package/dist/{BlockNoteEditor-C7CVGQDG.js.map → BlockNoteEditor-JYQVZHSR.js.map} +1 -1
  5. package/dist/{auth.interface-BJGKQ0zr.d.ts → auth.interface-DgpoGNZN.d.ts} +1 -0
  6. package/dist/{auth.interface-8XglqHir.d.mts → auth.interface-quk7psiq.d.mts} +1 -0
  7. package/dist/billing/index.js +346 -346
  8. package/dist/billing/index.mjs +3 -3
  9. package/dist/{chunk-LBIC4GJK.mjs → chunk-4HMQNMP6.mjs} +28 -2
  10. package/dist/chunk-4HMQNMP6.mjs.map +1 -0
  11. package/dist/{chunk-L5F5ZN5F.js → chunk-AHXRHXZ2.js} +84 -2
  12. package/dist/chunk-AHXRHXZ2.js.map +1 -0
  13. package/dist/{chunk-CLXIZJVH.mjs → chunk-EA3EPEDL.mjs} +839 -450
  14. package/dist/chunk-EA3EPEDL.mjs.map +1 -0
  15. package/dist/{chunk-OODZEX6P.js → chunk-GP3MDKGE.js} +28 -2
  16. package/dist/chunk-GP3MDKGE.js.map +1 -0
  17. package/dist/{chunk-24E7WD4J.js → chunk-XRBK4J6U.js} +954 -565
  18. package/dist/chunk-XRBK4J6U.js.map +1 -0
  19. package/dist/{chunk-PHNL4QUF.mjs → chunk-ZMGUP2AI.mjs} +84 -2
  20. package/dist/chunk-ZMGUP2AI.mjs.map +1 -0
  21. package/dist/client/index.js +4 -4
  22. package/dist/client/index.mjs +3 -3
  23. package/dist/components/index.d.mts +160 -3
  24. package/dist/components/index.d.ts +160 -3
  25. package/dist/components/index.js +10 -4
  26. package/dist/components/index.js.map +1 -1
  27. package/dist/components/index.mjs +9 -3
  28. package/dist/contexts/index.js +4 -4
  29. package/dist/contexts/index.mjs +3 -3
  30. package/dist/core/index.d.mts +42 -5
  31. package/dist/core/index.d.ts +42 -5
  32. package/dist/core/index.js +10 -2
  33. package/dist/core/index.js.map +1 -1
  34. package/dist/core/index.mjs +9 -1
  35. package/dist/index.d.mts +66 -5
  36. package/dist/index.d.ts +66 -5
  37. package/dist/index.js +17 -3
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.mjs +16 -2
  40. package/dist/{s3.service-DOwqcUDT.d.ts → s3.service--8IFzWsB.d.ts} +1 -1
  41. package/dist/{s3.service-D0rbmLFp.d.mts → s3.service-GQa6F4Ks.d.mts} +1 -1
  42. package/dist/server/index.d.mts +2 -2
  43. package/dist/server/index.d.ts +2 -2
  44. package/dist/server/index.js +3 -3
  45. package/dist/server/index.mjs +1 -1
  46. package/package.json +1 -1
  47. package/scripts/generate-web-module/types/template-data.interface.ts +1 -1
  48. package/src/components/index.ts +1 -0
  49. package/src/core/index.ts +3 -0
  50. package/src/core/registry/ModuleRegistry.ts +3 -0
  51. package/src/features/auth/components/buttons/GoogleSignInButton.tsx +13 -2
  52. package/src/features/auth/components/forms/Login.tsx +24 -2
  53. package/src/features/auth/components/forms/Logout.tsx +9 -1
  54. package/src/features/auth/components/forms/Register.tsx +45 -5
  55. package/src/features/auth/components/forms/__tests__/Logout.spec.tsx +118 -0
  56. package/src/features/auth/config.ts +1 -1
  57. package/src/features/auth/data/auth.interface.ts +1 -0
  58. package/src/features/auth/data/auth.ts +1 -0
  59. package/src/features/auth/utils/__tests__/clearClientStorage.spec.ts +81 -0
  60. package/src/features/auth/utils/clearClientStorage.ts +11 -0
  61. package/src/features/auth/utils/index.ts +1 -0
  62. package/src/features/index.ts +1 -0
  63. package/src/features/referral/__tests__/config.spec.ts +105 -0
  64. package/src/features/referral/__tests__/referral-cookie.spec.ts +188 -0
  65. package/src/features/referral/components/ReferralCodeCapture.tsx +51 -0
  66. package/src/features/referral/components/ReferralDialog.tsx +94 -0
  67. package/src/features/referral/components/ReferralWidget.tsx +334 -0
  68. package/src/features/referral/components/index.ts +3 -0
  69. package/src/features/referral/config.ts +89 -0
  70. package/src/features/referral/data/ReferralService.ts +38 -0
  71. package/src/features/referral/data/ReferralStats.ts +31 -0
  72. package/src/features/referral/data/index.ts +2 -0
  73. package/src/features/referral/hooks/index.ts +2 -0
  74. package/src/features/referral/hooks/useReferralInvite.ts +32 -0
  75. package/src/features/referral/hooks/useReferralStats.ts +26 -0
  76. package/src/features/referral/index.ts +21 -0
  77. package/src/features/referral/interfaces/index.ts +1 -0
  78. package/src/features/referral/interfaces/referral.interface.ts +5 -0
  79. package/src/features/referral/referral-stats.module.ts +9 -0
  80. package/src/features/referral/referral.module.ts +9 -0
  81. package/src/features/referral/utils/index.ts +1 -0
  82. package/src/features/referral/utils/referral-cookie.ts +35 -0
  83. package/src/index.ts +4 -0
  84. package/dist/chunk-24E7WD4J.js.map +0 -1
  85. package/dist/chunk-CLXIZJVH.mjs.map +0 -1
  86. package/dist/chunk-L5F5ZN5F.js.map +0 -1
  87. package/dist/chunk-LBIC4GJK.mjs.map +0 -1
  88. package/dist/chunk-OODZEX6P.js.map +0 -1
  89. package/dist/chunk-PHNL4QUF.mjs.map +0 -1
  90. /package/dist/{BlockNoteEditor-2ZP2BEZC.mjs.map → BlockNoteEditor-IAA6SRJD.mjs.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,+ztBAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"}
1
+ {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,u/tBAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"}
@@ -264,6 +264,9 @@ import {
264
264
  RadioGroupItem,
265
265
  ReactMarkdownContainer,
266
266
  RecentPagesNavigator,
267
+ ReferralCodeCapture,
268
+ ReferralDialog,
269
+ ReferralWidget,
267
270
  RefreshUser,
268
271
  RelevantContentsList,
269
272
  RelevantUsersList,
@@ -391,13 +394,13 @@ import {
391
394
  useCarousel,
392
395
  useFileUpload,
393
396
  useSidebar
394
- } from "../chunk-CLXIZJVH.mjs";
395
- import "../chunk-LBIC4GJK.mjs";
397
+ } from "../chunk-EA3EPEDL.mjs";
398
+ import "../chunk-4HMQNMP6.mjs";
396
399
  import {
397
400
  getIcon,
398
401
  getIconByModule,
399
402
  getIconByModuleName
400
- } from "../chunk-PHNL4QUF.mjs";
403
+ } from "../chunk-ZMGUP2AI.mjs";
401
404
  import "../chunk-AUXK7QSA.mjs";
402
405
  import "../chunk-C7C7VY4F.mjs";
403
406
  import "../chunk-GCQUTWZ2.mjs";
@@ -674,6 +677,9 @@ export {
674
677
  RadioGroupItem,
675
678
  ReactMarkdownContainer,
676
679
  RecentPagesNavigator,
680
+ ReferralCodeCapture,
681
+ ReferralDialog,
682
+ ReferralWidget,
677
683
  RefreshUser,
678
684
  RelevantContentsList,
679
685
  RelevantUsersList,
@@ -23,9 +23,9 @@
23
23
 
24
24
 
25
25
 
26
- var _chunk24E7WD4Jjs = require('../chunk-24E7WD4J.js');
27
- require('../chunk-OODZEX6P.js');
28
- require('../chunk-L5F5ZN5F.js');
26
+ var _chunkXRBK4J6Ujs = require('../chunk-XRBK4J6U.js');
27
+ require('../chunk-GP3MDKGE.js');
28
+ require('../chunk-AHXRHXZ2.js');
29
29
  require('../chunk-LXKSUWAV.js');
30
30
  require('../chunk-IBS6NI7D.js');
31
31
  require('../chunk-WLS4D6VG.js');
@@ -55,5 +55,5 @@ require('../chunk-7QVYU63E.js');
55
55
 
56
56
 
57
57
 
58
- exports.CommonProvider = _chunk24E7WD4Jjs.CommonProvider; exports.CompanyProvider = _chunk24E7WD4Jjs.CompanyProvider; exports.CurrentUserProvider = _chunk24E7WD4Jjs.CurrentUserProvider; exports.DEFAULT_ONBOARDING_LABELS = _chunk24E7WD4Jjs.DEFAULT_ONBOARDING_LABELS; exports.HeaderChildrenProvider = _chunk24E7WD4Jjs.HeaderChildrenProvider; exports.NotificationContextProvider = _chunk24E7WD4Jjs.NotificationContextProvider; exports.OnboardingProvider = _chunk24E7WD4Jjs.OnboardingProvider; exports.RoleProvider = _chunk24E7WD4Jjs.RoleProvider; exports.SharedProvider = _chunk24E7WD4Jjs.SharedProvider; exports.SocketContext = _chunk24E7WD4Jjs.SocketContext; exports.SocketProvider = _chunk24E7WD4Jjs.SocketProvider; exports.UserProvider = _chunk24E7WD4Jjs.UserProvider; exports.recentPagesAtom = _chunk24E7WD4Jjs.recentPagesAtom; exports.useCommonContext = _chunk24E7WD4Jjs.useCommonContext; exports.useCompanyContext = _chunk24E7WD4Jjs.useCompanyContext; exports.useCurrentUserContext = _chunk24E7WD4Jjs.useCurrentUserContext; exports.useHeaderChildren = _chunk24E7WD4Jjs.useHeaderChildren; exports.useNotificationContext = _chunk24E7WD4Jjs.useNotificationContext; exports.useOnboarding = _chunk24E7WD4Jjs.useOnboarding; exports.useRoleContext = _chunk24E7WD4Jjs.useRoleContext; exports.useSharedContext = _chunk24E7WD4Jjs.useSharedContext; exports.useSocketContext = _chunk24E7WD4Jjs.useSocketContext; exports.useUserContext = _chunk24E7WD4Jjs.useUserContext;
58
+ exports.CommonProvider = _chunkXRBK4J6Ujs.CommonProvider; exports.CompanyProvider = _chunkXRBK4J6Ujs.CompanyProvider; exports.CurrentUserProvider = _chunkXRBK4J6Ujs.CurrentUserProvider; exports.DEFAULT_ONBOARDING_LABELS = _chunkXRBK4J6Ujs.DEFAULT_ONBOARDING_LABELS; exports.HeaderChildrenProvider = _chunkXRBK4J6Ujs.HeaderChildrenProvider; exports.NotificationContextProvider = _chunkXRBK4J6Ujs.NotificationContextProvider; exports.OnboardingProvider = _chunkXRBK4J6Ujs.OnboardingProvider; exports.RoleProvider = _chunkXRBK4J6Ujs.RoleProvider; exports.SharedProvider = _chunkXRBK4J6Ujs.SharedProvider; exports.SocketContext = _chunkXRBK4J6Ujs.SocketContext; exports.SocketProvider = _chunkXRBK4J6Ujs.SocketProvider; exports.UserProvider = _chunkXRBK4J6Ujs.UserProvider; exports.recentPagesAtom = _chunkXRBK4J6Ujs.recentPagesAtom; exports.useCommonContext = _chunkXRBK4J6Ujs.useCommonContext; exports.useCompanyContext = _chunkXRBK4J6Ujs.useCompanyContext; exports.useCurrentUserContext = _chunkXRBK4J6Ujs.useCurrentUserContext; exports.useHeaderChildren = _chunkXRBK4J6Ujs.useHeaderChildren; exports.useNotificationContext = _chunkXRBK4J6Ujs.useNotificationContext; exports.useOnboarding = _chunkXRBK4J6Ujs.useOnboarding; exports.useRoleContext = _chunkXRBK4J6Ujs.useRoleContext; exports.useSharedContext = _chunkXRBK4J6Ujs.useSharedContext; exports.useSocketContext = _chunkXRBK4J6Ujs.useSocketContext; exports.useUserContext = _chunkXRBK4J6Ujs.useUserContext;
59
59
  //# sourceMappingURL=index.js.map
@@ -23,9 +23,9 @@ import {
23
23
  useSharedContext,
24
24
  useSocketContext,
25
25
  useUserContext
26
- } from "../chunk-CLXIZJVH.mjs";
27
- import "../chunk-LBIC4GJK.mjs";
28
- import "../chunk-PHNL4QUF.mjs";
26
+ } from "../chunk-EA3EPEDL.mjs";
27
+ import "../chunk-4HMQNMP6.mjs";
28
+ import "../chunk-ZMGUP2AI.mjs";
29
29
  import "../chunk-AUXK7QSA.mjs";
30
30
  import "../chunk-C7C7VY4F.mjs";
31
31
  import "../chunk-GCQUTWZ2.mjs";
@@ -3,8 +3,8 @@ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../Api
3
3
  import { A as ApiRequestDataTypeInterface, F as FieldSelector } from '../ApiRequestDataTypeInterface-CUKFDBx2.mjs';
4
4
  export { G as GetterKeys, c as createJsonApiInclusion } from '../ApiRequestDataTypeInterface-CUKFDBx2.mjs';
5
5
  import { A as ApiResponseInterface } from '../ApiResponseInterface-zeewugD7.mjs';
6
- import { A as AbstractService, d as TwoFactorChallengeInterface, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service-D0rbmLFp.mjs';
7
- export { b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, T as TotalRef, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service-D0rbmLFp.mjs';
6
+ import { A as AbstractService, d as TwoFactorChallengeInterface, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service-GQa6F4Ks.mjs';
7
+ export { b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, T as TotalRef, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service-GQa6F4Ks.mjs';
8
8
  import { M as ModuleWithPermissions, f as PermissionUser, A as Action, e as PermissionModule, g as ModuleFactory, j as RoleInterface, R as RoleInput, U as UserInterface, h as CompanyInterface, k as UserInput, C as CompanyInput, N as NotificationInterface, i as NotificationInput } from '../notification.interface-D241WNUx.mjs';
9
9
  export { c as ModuleDefinition, b as ModulePermissionDefinition, a as PageUrl, P as PermissionCheck, d as PermissionConfig } from '../notification.interface-D241WNUx.mjs';
10
10
  export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
@@ -18,8 +18,8 @@ import { PartialBlock } from '@blocknote/core';
18
18
  import { T as TotpAuthenticatorInterface, P as PasskeyInterface } from '../AuthComponent-D_L2S4g9.mjs';
19
19
  export { A as AuthComponent, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from '../AuthComponent-D_L2S4g9.mjs';
20
20
  import { ExternalToast } from 'sonner';
21
- import { b as AuthInterface, A as AuthInput } from '../auth.interface-8XglqHir.mjs';
22
- export { a as AuthQuery } from '../auth.interface-8XglqHir.mjs';
21
+ import { b as AuthInterface, A as AuthInput } from '../auth.interface-quk7psiq.mjs';
22
+ export { a as AuthQuery } from '../auth.interface-quk7psiq.mjs';
23
23
  import { PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON, PublicKeyCredentialRequestOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/browser';
24
24
  import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface, q as PromotionCodeValidationResult } from '../stripe-promotion-code.interface-Dnm2DJKQ.mjs';
25
25
  export { c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-promotion-code.interface-Dnm2DJKQ.mjs';
@@ -232,6 +232,8 @@ interface FoundationModuleDefinitions {
232
232
  OAuth: ModuleWithPermissions;
233
233
  Waitlist: ModuleWithPermissions;
234
234
  WaitlistStats: ModuleWithPermissions;
235
+ Referral: ModuleWithPermissions;
236
+ ReferralStats: ModuleWithPermissions;
235
237
  TotpAuthenticator: ModuleWithPermissions;
236
238
  TotpSetup: ModuleWithPermissions;
237
239
  TotpVerify: ModuleWithPermissions;
@@ -1977,4 +1979,39 @@ declare const WaitlistModule: (factory: ModuleFactory) => ModuleWithPermissions;
1977
1979
 
1978
1980
  declare const WaitlistStatsModule: (factory: ModuleFactory) => ModuleWithPermissions;
1979
1981
 
1980
- export { AbstractApiData, AbstractService, Action, ApiData, ApiDataInterface, ApiRequestDataTypeInterface, ApiResponseInterface, type AppModuleDefinitions, Auth, AuthInput, AuthInterface, AuthModule, AuthorModule, BackupCodeVerify, type BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, type BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, type ClientNextRef, type ClientPreviousRef, type ClientSelfRef, type ClientTotalRef, Company, CompanyFields, CompanyInput, CompanyInterface, CompanyModule, Content, ContentInput, ContentInterface, ContentModule, DataClassRegistry as DataClass, DataClassRegistry, type DiffBlock, type DiffResult, EndpointCreator, type EndpointQuery, type EntityObject, Feature, FeatureInterface, FeatureModule, FieldSelector, type FormatOption, type FoundationModuleDefinitions, type InviteValidation, InvoiceStatus, JsonApiDataFactory, JsonApiHydratedDataInterface, MeterInterface, MeterSummaryInterface, Module, type ModuleDefinitions, ModuleFactory, ModuleInterface, ModuleModule, ModuleRegistrar, ModuleRegistry, ModuleWithPermissions, Modules, NextRef, Notification, NotificationFields, NotificationInput, NotificationInterface, NotificationModule, OAuthClient, OAuthClientCreateRequest, OAuthClientCreateResponse, OAuthClientInput, OAuthClientInterface, OAuthConsentInfo, OAuthConsentRequest, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, type PasskeyAuthenticationOptionsInput, type PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyInterface, PasskeyModule, PasskeyRegistrationOptions, type PasskeyRegistrationOptionsInput, type PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, type PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, type PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, type PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PaymentMethodInterface, PermissionModule, PermissionUser, PreviousRef, PriceRecurring, PromotionCodeValidationResult, ProrationPreviewInterface, Push, type PushInput, type PushInterface, PushModule, RehydrationFactory, ReportUsageInput, Role, RoleInput, RoleInterface, RoleModule, S3, S3Input, S3Interface, S3Module, type SearchResultInterface, StripeCustomer, StripeCustomerInterface, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceInterface, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceInput, StripePriceInterface, StripePriceModule, StripePriceService, StripeProduct, StripeProductInput, StripeProductInterface, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionCreateResponse, StripeSubscriptionInput, StripeSubscriptionInterface, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageInterface, StripeUsageModule, StripeUsageService, SubscriptionStatus, TableOptions, type ToastOptions, TotpAuthenticator, TotpAuthenticatorInterface, TotpAuthenticatorModule, TotpSetup, type TotpSetupInput, type TotpSetupInterface, TotpSetupModule, TotpVerify, type TotpVerifyInput, TotpVerifyLogin, type TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, type TwoFactorChallengeInput, TwoFactorChallengeInterface, TwoFactorChallengeModule, TwoFactorEnable, type TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, type TwoFactorStatusInterface, TwoFactorStatusModule, UsageSummaryInterface, User, UserInput, UserInterface, UserModule, type UserObject, Waitlist, type WaitlistInput, type WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, type WaitlistStatsInterface, WaitlistStatsModule, type WaitlistStatus, type WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema };
1982
+ interface ReferralStatsInterface {
1983
+ referralCode: string;
1984
+ completedReferrals: number;
1985
+ totalTokensEarned: number;
1986
+ }
1987
+
1988
+ declare class ReferralStats extends AbstractApiData implements ReferralStatsInterface {
1989
+ private _referralCode?;
1990
+ private _completedReferrals?;
1991
+ private _totalTokensEarned?;
1992
+ get referralCode(): string;
1993
+ get completedReferrals(): number;
1994
+ get totalTokensEarned(): number;
1995
+ rehydrate(data: JsonApiHydratedDataInterface): this;
1996
+ createJsonApi(): {};
1997
+ }
1998
+
1999
+ declare class ReferralService extends AbstractService {
2000
+ /**
2001
+ * Get referral stats for the current company.
2002
+ * Returns deserialized attributes from JSON:API response.
2003
+ */
2004
+ static getMyReferralStats(): Promise<ReferralStatsInterface>;
2005
+ /**
2006
+ * Send a referral invitation email.
2007
+ * Uses overridesJsonApiCreation since the endpoint accepts a simple JSON body, not JSON:API format.
2008
+ * Returns 204 No Content on success.
2009
+ */
2010
+ static sendReferralEmail(email: string): Promise<void>;
2011
+ }
2012
+
2013
+ declare const ReferralModule: (factory: ModuleFactory) => ModuleWithPermissions;
2014
+
2015
+ declare const ReferralStatsModule: (factory: ModuleFactory) => ModuleWithPermissions;
2016
+
2017
+ export { AbstractApiData, AbstractService, Action, ApiData, ApiDataInterface, ApiRequestDataTypeInterface, ApiResponseInterface, type AppModuleDefinitions, Auth, AuthInput, AuthInterface, AuthModule, AuthorModule, BackupCodeVerify, type BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, type BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, type ClientNextRef, type ClientPreviousRef, type ClientSelfRef, type ClientTotalRef, Company, CompanyFields, CompanyInput, CompanyInterface, CompanyModule, Content, ContentInput, ContentInterface, ContentModule, DataClassRegistry as DataClass, DataClassRegistry, type DiffBlock, type DiffResult, EndpointCreator, type EndpointQuery, type EntityObject, Feature, FeatureInterface, FeatureModule, FieldSelector, type FormatOption, type FoundationModuleDefinitions, type InviteValidation, InvoiceStatus, JsonApiDataFactory, JsonApiHydratedDataInterface, MeterInterface, MeterSummaryInterface, Module, type ModuleDefinitions, ModuleFactory, ModuleInterface, ModuleModule, ModuleRegistrar, ModuleRegistry, ModuleWithPermissions, Modules, NextRef, Notification, NotificationFields, NotificationInput, NotificationInterface, NotificationModule, OAuthClient, OAuthClientCreateRequest, OAuthClientCreateResponse, OAuthClientInput, OAuthClientInterface, OAuthConsentInfo, OAuthConsentRequest, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, type PasskeyAuthenticationOptionsInput, type PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyInterface, PasskeyModule, PasskeyRegistrationOptions, type PasskeyRegistrationOptionsInput, type PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, type PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, type PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, type PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PaymentMethodInterface, PermissionModule, PermissionUser, PreviousRef, PriceRecurring, PromotionCodeValidationResult, ProrationPreviewInterface, Push, type PushInput, type PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, ReportUsageInput, Role, RoleInput, RoleInterface, RoleModule, S3, S3Input, S3Interface, S3Module, type SearchResultInterface, StripeCustomer, StripeCustomerInterface, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceInterface, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceInput, StripePriceInterface, StripePriceModule, StripePriceService, StripeProduct, StripeProductInput, StripeProductInterface, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionCreateResponse, StripeSubscriptionInput, StripeSubscriptionInterface, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageInterface, StripeUsageModule, StripeUsageService, SubscriptionStatus, TableOptions, type ToastOptions, TotpAuthenticator, TotpAuthenticatorInterface, TotpAuthenticatorModule, TotpSetup, type TotpSetupInput, type TotpSetupInterface, TotpSetupModule, TotpVerify, type TotpVerifyInput, TotpVerifyLogin, type TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, type TwoFactorChallengeInput, TwoFactorChallengeInterface, TwoFactorChallengeModule, TwoFactorEnable, type TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, type TwoFactorStatusInterface, TwoFactorStatusModule, UsageSummaryInterface, User, UserInput, UserInterface, UserModule, type UserObject, Waitlist, type WaitlistInput, type WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, type WaitlistStatsInterface, WaitlistStatsModule, type WaitlistStatus, type WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema };
@@ -3,8 +3,8 @@ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../Api
3
3
  import { A as ApiRequestDataTypeInterface, F as FieldSelector } from '../ApiRequestDataTypeInterface-CUKFDBx2.js';
4
4
  export { G as GetterKeys, c as createJsonApiInclusion } from '../ApiRequestDataTypeInterface-CUKFDBx2.js';
5
5
  import { A as ApiResponseInterface } from '../ApiResponseInterface-CAIAeP5d.js';
6
- import { A as AbstractService, d as TwoFactorChallengeInterface, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service-DOwqcUDT.js';
7
- export { b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, T as TotalRef, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service-DOwqcUDT.js';
6
+ import { A as AbstractService, d as TwoFactorChallengeInterface, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service--8IFzWsB.js';
7
+ export { b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, T as TotalRef, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service--8IFzWsB.js';
8
8
  import { M as ModuleWithPermissions, f as PermissionUser, A as Action, e as PermissionModule, g as ModuleFactory, j as RoleInterface, R as RoleInput, U as UserInterface, h as CompanyInterface, k as UserInput, C as CompanyInput, N as NotificationInterface, i as NotificationInput } from '../notification.interface-CR2PuV6Y.js';
9
9
  export { c as ModuleDefinition, b as ModulePermissionDefinition, a as PageUrl, P as PermissionCheck, d as PermissionConfig } from '../notification.interface-CR2PuV6Y.js';
10
10
  export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.js';
@@ -18,8 +18,8 @@ import { PartialBlock } from '@blocknote/core';
18
18
  import { T as TotpAuthenticatorInterface, P as PasskeyInterface } from '../AuthComponent-CU0B9hdO.js';
19
19
  export { A as AuthComponent, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from '../AuthComponent-CU0B9hdO.js';
20
20
  import { ExternalToast } from 'sonner';
21
- import { b as AuthInterface, A as AuthInput } from '../auth.interface-BJGKQ0zr.js';
22
- export { a as AuthQuery } from '../auth.interface-BJGKQ0zr.js';
21
+ import { b as AuthInterface, A as AuthInput } from '../auth.interface-DgpoGNZN.js';
22
+ export { a as AuthQuery } from '../auth.interface-DgpoGNZN.js';
23
23
  import { PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON, PublicKeyCredentialRequestOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/browser';
24
24
  import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface, q as PromotionCodeValidationResult } from '../stripe-promotion-code.interface-BcJty0rv.js';
25
25
  export { c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-promotion-code.interface-BcJty0rv.js';
@@ -232,6 +232,8 @@ interface FoundationModuleDefinitions {
232
232
  OAuth: ModuleWithPermissions;
233
233
  Waitlist: ModuleWithPermissions;
234
234
  WaitlistStats: ModuleWithPermissions;
235
+ Referral: ModuleWithPermissions;
236
+ ReferralStats: ModuleWithPermissions;
235
237
  TotpAuthenticator: ModuleWithPermissions;
236
238
  TotpSetup: ModuleWithPermissions;
237
239
  TotpVerify: ModuleWithPermissions;
@@ -1977,4 +1979,39 @@ declare const WaitlistModule: (factory: ModuleFactory) => ModuleWithPermissions;
1977
1979
 
1978
1980
  declare const WaitlistStatsModule: (factory: ModuleFactory) => ModuleWithPermissions;
1979
1981
 
1980
- export { AbstractApiData, AbstractService, Action, ApiData, ApiDataInterface, ApiRequestDataTypeInterface, ApiResponseInterface, type AppModuleDefinitions, Auth, AuthInput, AuthInterface, AuthModule, AuthorModule, BackupCodeVerify, type BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, type BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, type ClientNextRef, type ClientPreviousRef, type ClientSelfRef, type ClientTotalRef, Company, CompanyFields, CompanyInput, CompanyInterface, CompanyModule, Content, ContentInput, ContentInterface, ContentModule, DataClassRegistry as DataClass, DataClassRegistry, type DiffBlock, type DiffResult, EndpointCreator, type EndpointQuery, type EntityObject, Feature, FeatureInterface, FeatureModule, FieldSelector, type FormatOption, type FoundationModuleDefinitions, type InviteValidation, InvoiceStatus, JsonApiDataFactory, JsonApiHydratedDataInterface, MeterInterface, MeterSummaryInterface, Module, type ModuleDefinitions, ModuleFactory, ModuleInterface, ModuleModule, ModuleRegistrar, ModuleRegistry, ModuleWithPermissions, Modules, NextRef, Notification, NotificationFields, NotificationInput, NotificationInterface, NotificationModule, OAuthClient, OAuthClientCreateRequest, OAuthClientCreateResponse, OAuthClientInput, OAuthClientInterface, OAuthConsentInfo, OAuthConsentRequest, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, type PasskeyAuthenticationOptionsInput, type PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyInterface, PasskeyModule, PasskeyRegistrationOptions, type PasskeyRegistrationOptionsInput, type PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, type PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, type PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, type PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PaymentMethodInterface, PermissionModule, PermissionUser, PreviousRef, PriceRecurring, PromotionCodeValidationResult, ProrationPreviewInterface, Push, type PushInput, type PushInterface, PushModule, RehydrationFactory, ReportUsageInput, Role, RoleInput, RoleInterface, RoleModule, S3, S3Input, S3Interface, S3Module, type SearchResultInterface, StripeCustomer, StripeCustomerInterface, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceInterface, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceInput, StripePriceInterface, StripePriceModule, StripePriceService, StripeProduct, StripeProductInput, StripeProductInterface, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionCreateResponse, StripeSubscriptionInput, StripeSubscriptionInterface, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageInterface, StripeUsageModule, StripeUsageService, SubscriptionStatus, TableOptions, type ToastOptions, TotpAuthenticator, TotpAuthenticatorInterface, TotpAuthenticatorModule, TotpSetup, type TotpSetupInput, type TotpSetupInterface, TotpSetupModule, TotpVerify, type TotpVerifyInput, TotpVerifyLogin, type TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, type TwoFactorChallengeInput, TwoFactorChallengeInterface, TwoFactorChallengeModule, TwoFactorEnable, type TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, type TwoFactorStatusInterface, TwoFactorStatusModule, UsageSummaryInterface, User, UserInput, UserInterface, UserModule, type UserObject, Waitlist, type WaitlistInput, type WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, type WaitlistStatsInterface, WaitlistStatsModule, type WaitlistStatus, type WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema };
1982
+ interface ReferralStatsInterface {
1983
+ referralCode: string;
1984
+ completedReferrals: number;
1985
+ totalTokensEarned: number;
1986
+ }
1987
+
1988
+ declare class ReferralStats extends AbstractApiData implements ReferralStatsInterface {
1989
+ private _referralCode?;
1990
+ private _completedReferrals?;
1991
+ private _totalTokensEarned?;
1992
+ get referralCode(): string;
1993
+ get completedReferrals(): number;
1994
+ get totalTokensEarned(): number;
1995
+ rehydrate(data: JsonApiHydratedDataInterface): this;
1996
+ createJsonApi(): {};
1997
+ }
1998
+
1999
+ declare class ReferralService extends AbstractService {
2000
+ /**
2001
+ * Get referral stats for the current company.
2002
+ * Returns deserialized attributes from JSON:API response.
2003
+ */
2004
+ static getMyReferralStats(): Promise<ReferralStatsInterface>;
2005
+ /**
2006
+ * Send a referral invitation email.
2007
+ * Uses overridesJsonApiCreation since the endpoint accepts a simple JSON body, not JSON:API format.
2008
+ * Returns 204 No Content on success.
2009
+ */
2010
+ static sendReferralEmail(email: string): Promise<void>;
2011
+ }
2012
+
2013
+ declare const ReferralModule: (factory: ModuleFactory) => ModuleWithPermissions;
2014
+
2015
+ declare const ReferralStatsModule: (factory: ModuleFactory) => ModuleWithPermissions;
2016
+
2017
+ export { AbstractApiData, AbstractService, Action, ApiData, ApiDataInterface, ApiRequestDataTypeInterface, ApiResponseInterface, type AppModuleDefinitions, Auth, AuthInput, AuthInterface, AuthModule, AuthorModule, BackupCodeVerify, type BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, type BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, type ClientNextRef, type ClientPreviousRef, type ClientSelfRef, type ClientTotalRef, Company, CompanyFields, CompanyInput, CompanyInterface, CompanyModule, Content, ContentInput, ContentInterface, ContentModule, DataClassRegistry as DataClass, DataClassRegistry, type DiffBlock, type DiffResult, EndpointCreator, type EndpointQuery, type EntityObject, Feature, FeatureInterface, FeatureModule, FieldSelector, type FormatOption, type FoundationModuleDefinitions, type InviteValidation, InvoiceStatus, JsonApiDataFactory, JsonApiHydratedDataInterface, MeterInterface, MeterSummaryInterface, Module, type ModuleDefinitions, ModuleFactory, ModuleInterface, ModuleModule, ModuleRegistrar, ModuleRegistry, ModuleWithPermissions, Modules, NextRef, Notification, NotificationFields, NotificationInput, NotificationInterface, NotificationModule, OAuthClient, OAuthClientCreateRequest, OAuthClientCreateResponse, OAuthClientInput, OAuthClientInterface, OAuthConsentInfo, OAuthConsentRequest, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, type PasskeyAuthenticationOptionsInput, type PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyInterface, PasskeyModule, PasskeyRegistrationOptions, type PasskeyRegistrationOptionsInput, type PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, type PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, type PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, type PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PaymentMethodInterface, PermissionModule, PermissionUser, PreviousRef, PriceRecurring, PromotionCodeValidationResult, ProrationPreviewInterface, Push, type PushInput, type PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, ReportUsageInput, Role, RoleInput, RoleInterface, RoleModule, S3, S3Input, S3Interface, S3Module, type SearchResultInterface, StripeCustomer, StripeCustomerInterface, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceInterface, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceInput, StripePriceInterface, StripePriceModule, StripePriceService, StripeProduct, StripeProductInput, StripeProductInterface, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionCreateResponse, StripeSubscriptionInput, StripeSubscriptionInterface, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageInterface, StripeUsageModule, StripeUsageService, SubscriptionStatus, TableOptions, type ToastOptions, TotpAuthenticator, TotpAuthenticatorInterface, TotpAuthenticatorModule, TotpSetup, type TotpSetupInput, type TotpSetupInterface, TotpSetupModule, TotpVerify, type TotpVerifyInput, TotpVerifyLogin, type TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, type TwoFactorChallengeInput, TwoFactorChallengeInterface, TwoFactorChallengeModule, TwoFactorEnable, type TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, type TwoFactorStatusInterface, TwoFactorStatusModule, UsageSummaryInterface, User, UserInput, UserInterface, UserModule, type UserObject, Waitlist, type WaitlistInput, type WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, type WaitlistStatsInterface, WaitlistStatsModule, type WaitlistStatus, type WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema };
@@ -149,7 +149,11 @@
149
149
 
150
150
 
151
151
 
152
- var _chunkL5F5ZN5Fjs = require('../chunk-L5F5ZN5F.js');
152
+
153
+
154
+
155
+
156
+ var _chunkAHXRHXZ2js = require('../chunk-AHXRHXZ2.js');
153
157
  require('../chunk-LXKSUWAV.js');
154
158
  require('../chunk-IBS6NI7D.js');
155
159
 
@@ -325,5 +329,9 @@ require('../chunk-7QVYU63E.js');
325
329
 
326
330
 
327
331
 
328
- exports.AVAILABLE_OAUTH_SCOPES = _chunkL5F5ZN5Fjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkL5F5ZN5Fjs.AbstractApiData; exports.AbstractService = _chunkL5F5ZN5Fjs.AbstractService; exports.Action = _chunkL5F5ZN5Fjs.Action; exports.Auth = _chunkL5F5ZN5Fjs.Auth; exports.AuthComponent = _chunkL5F5ZN5Fjs.AuthComponent; exports.AuthModule = _chunkL5F5ZN5Fjs.AuthModule; exports.AuthService = _chunkL5F5ZN5Fjs.AuthService; exports.AuthorModule = _chunkL5F5ZN5Fjs.AuthorModule; exports.BackupCodeVerify = _chunkL5F5ZN5Fjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkL5F5ZN5Fjs.BackupCodeVerifyModule; exports.Billing = _chunkL5F5ZN5Fjs.Billing; exports.BillingModule = _chunkL5F5ZN5Fjs.BillingModule; exports.BillingService = _chunkL5F5ZN5Fjs.BillingService; exports.BlockNoteDiffUtil = _chunkL5F5ZN5Fjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkL5F5ZN5Fjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkL5F5ZN5Fjs.ClientAbstractService; exports.ClientHttpMethod = _chunkL5F5ZN5Fjs.ClientHttpMethod; exports.Company = _chunkL5F5ZN5Fjs.Company; exports.CompanyFields = _chunkL5F5ZN5Fjs.CompanyFields; exports.CompanyModule = _chunkL5F5ZN5Fjs.CompanyModule; exports.CompanyService = _chunkL5F5ZN5Fjs.CompanyService; exports.Content = _chunkL5F5ZN5Fjs.Content; exports.ContentFields = _chunkL5F5ZN5Fjs.ContentFields; exports.ContentModule = _chunkL5F5ZN5Fjs.ContentModule; exports.ContentService = _chunkL5F5ZN5Fjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkL5F5ZN5Fjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkWLS4D6VGjs.DataClassRegistry; exports.DataClassRegistry = _chunkWLS4D6VGjs.DataClassRegistry; exports.EndpointCreator = _chunkL5F5ZN5Fjs.EndpointCreator; exports.Feature = _chunkL5F5ZN5Fjs.Feature; exports.FeatureModule = _chunkL5F5ZN5Fjs.FeatureModule; exports.FeatureService = _chunkL5F5ZN5Fjs.FeatureService; exports.HttpMethod = _chunkL5F5ZN5Fjs.HttpMethod; exports.InvoiceStatus = _chunkL5F5ZN5Fjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkWLS4D6VGjs.JsonApiDataFactory; exports.Module = _chunkL5F5ZN5Fjs.Module; exports.ModuleModule = _chunkL5F5ZN5Fjs.ModuleModule; exports.ModuleRegistrar = _chunkL5F5ZN5Fjs.ModuleRegistrar; exports.ModuleRegistry = _chunkL5F5ZN5Fjs.ModuleRegistry; exports.Modules = _chunkL5F5ZN5Fjs.Modules; exports.Notification = _chunkL5F5ZN5Fjs.Notification; exports.NotificationFields = _chunkL5F5ZN5Fjs.NotificationFields; exports.NotificationModule = _chunkL5F5ZN5Fjs.NotificationModule; exports.NotificationService = _chunkL5F5ZN5Fjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkL5F5ZN5Fjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkL5F5ZN5Fjs.OAuthClient; exports.OAuthModule = _chunkL5F5ZN5Fjs.OAuthModule; exports.OAuthService = _chunkL5F5ZN5Fjs.OAuthService; exports.Passkey = _chunkL5F5ZN5Fjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkL5F5ZN5Fjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkL5F5ZN5Fjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkL5F5ZN5Fjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkL5F5ZN5Fjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkL5F5ZN5Fjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkL5F5ZN5Fjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkL5F5ZN5Fjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkL5F5ZN5Fjs.PasskeyRename; exports.PasskeyRenameModule = _chunkL5F5ZN5Fjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkL5F5ZN5Fjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkL5F5ZN5Fjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkL5F5ZN5Fjs.PaymentMethod; exports.Push = _chunkL5F5ZN5Fjs.Push; exports.PushModule = _chunkL5F5ZN5Fjs.PushModule; exports.PushService = _chunkL5F5ZN5Fjs.PushService; exports.RehydrationFactory = _chunkL5F5ZN5Fjs.RehydrationFactory; exports.Role = _chunkL5F5ZN5Fjs.Role; exports.RoleFields = _chunkL5F5ZN5Fjs.RoleFields; exports.RoleModule = _chunkL5F5ZN5Fjs.RoleModule; exports.RoleService = _chunkL5F5ZN5Fjs.RoleService; exports.S3 = _chunkL5F5ZN5Fjs.S3; exports.S3Module = _chunkL5F5ZN5Fjs.S3Module; exports.S3Service = _chunkL5F5ZN5Fjs.S3Service; exports.StripeCustomer = _chunkL5F5ZN5Fjs.StripeCustomer; exports.StripeCustomerModule = _chunkL5F5ZN5Fjs.StripeCustomerModule; exports.StripeCustomerService = _chunkL5F5ZN5Fjs.StripeCustomerService; exports.StripeInvoice = _chunkL5F5ZN5Fjs.StripeInvoice; exports.StripeInvoiceModule = _chunkL5F5ZN5Fjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkL5F5ZN5Fjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkL5F5ZN5Fjs.StripePaymentMethodModule; exports.StripePrice = _chunkL5F5ZN5Fjs.StripePrice; exports.StripePriceModule = _chunkL5F5ZN5Fjs.StripePriceModule; exports.StripePriceService = _chunkL5F5ZN5Fjs.StripePriceService; exports.StripeProduct = _chunkL5F5ZN5Fjs.StripeProduct; exports.StripeProductModule = _chunkL5F5ZN5Fjs.StripeProductModule; exports.StripeProductService = _chunkL5F5ZN5Fjs.StripeProductService; exports.StripePromotionCode = _chunkL5F5ZN5Fjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkL5F5ZN5Fjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkL5F5ZN5Fjs.StripePromotionCodeService; exports.StripeSubscription = _chunkL5F5ZN5Fjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkL5F5ZN5Fjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkL5F5ZN5Fjs.StripeSubscriptionService; exports.StripeUsage = _chunkL5F5ZN5Fjs.StripeUsage; exports.StripeUsageModule = _chunkL5F5ZN5Fjs.StripeUsageModule; exports.StripeUsageService = _chunkL5F5ZN5Fjs.StripeUsageService; exports.SubscriptionStatus = _chunkL5F5ZN5Fjs.SubscriptionStatus; exports.TableOptions = _chunkL5F5ZN5Fjs.TableOptions; exports.TotpAuthenticator = _chunkL5F5ZN5Fjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkL5F5ZN5Fjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkL5F5ZN5Fjs.TotpSetup; exports.TotpSetupModule = _chunkL5F5ZN5Fjs.TotpSetupModule; exports.TotpVerify = _chunkL5F5ZN5Fjs.TotpVerify; exports.TotpVerifyLogin = _chunkL5F5ZN5Fjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkL5F5ZN5Fjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkL5F5ZN5Fjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkL5F5ZN5Fjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkL5F5ZN5Fjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkL5F5ZN5Fjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkL5F5ZN5Fjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkL5F5ZN5Fjs.TwoFactorService; exports.TwoFactorStatus = _chunkL5F5ZN5Fjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkL5F5ZN5Fjs.TwoFactorStatusModule; exports.User = _chunkL5F5ZN5Fjs.User; exports.UserFields = _chunkL5F5ZN5Fjs.UserFields; exports.UserModule = _chunkL5F5ZN5Fjs.UserModule; exports.UserService = _chunkL5F5ZN5Fjs.UserService; exports.Waitlist = _chunkL5F5ZN5Fjs.Waitlist; exports.WaitlistModule = _chunkL5F5ZN5Fjs.WaitlistModule; exports.WaitlistService = _chunkL5F5ZN5Fjs.WaitlistService; exports.WaitlistStats = _chunkL5F5ZN5Fjs.WaitlistStats; exports.WaitlistStatsModule = _chunkL5F5ZN5Fjs.WaitlistStatsModule; exports.checkPermissions = _chunkL5F5ZN5Fjs.checkPermissions; exports.checkPermissionsFromServer = _chunkL5F5ZN5Fjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkL5F5ZN5Fjs.clearLastApiTotal; exports.cn = _chunkL5F5ZN5Fjs.cn; exports.composeRefs = _chunkL5F5ZN5Fjs.composeRefs; exports.createJsonApiInclusion = _chunkL5F5ZN5Fjs.createJsonApiInclusion; exports.dismissToast = _chunkL5F5ZN5Fjs.dismissToast; exports.entityObjectSchema = _chunkL5F5ZN5Fjs.entityObjectSchema; exports.exists = _chunkL5F5ZN5Fjs.exists; exports.formatDate = _chunkL5F5ZN5Fjs.formatDate; exports.getBootstrapper = _chunkWLS4D6VGjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkL5F5ZN5Fjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkL5F5ZN5Fjs.getGlobalErrorHandler; exports.getIcon = _chunkL5F5ZN5Fjs.getIcon; exports.getIconByModule = _chunkL5F5ZN5Fjs.getIconByModule; exports.getIconByModuleName = _chunkL5F5ZN5Fjs.getIconByModuleName; exports.getLastApiTotal = _chunkL5F5ZN5Fjs.getLastApiTotal; exports.getLucideIcon = _chunkL5F5ZN5Fjs.getLucideIcon; exports.getLucideIconByModule = _chunkL5F5ZN5Fjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkL5F5ZN5Fjs.getLucideIconByModuleName; exports.getTableComponents = _chunkL5F5ZN5Fjs.getTableComponents; exports.getTableOptions = _chunkL5F5ZN5Fjs.getTableOptions; exports.getValueFromPath = _chunkL5F5ZN5Fjs.getValueFromPath; exports.hasBootstrapper = _chunkWLS4D6VGjs.hasBootstrapper; exports.rehydrate = _chunkL5F5ZN5Fjs.rehydrate; exports.rehydrateList = _chunkL5F5ZN5Fjs.rehydrateList; exports.resetBootstrapStore = _chunkWLS4D6VGjs.resetBootstrapStore; exports.setBootstrapper = _chunkWLS4D6VGjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkL5F5ZN5Fjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkL5F5ZN5Fjs.setGlobalErrorHandler; exports.showCustomToast = _chunkL5F5ZN5Fjs.showCustomToast; exports.showError = _chunkL5F5ZN5Fjs.showError; exports.showToast = _chunkL5F5ZN5Fjs.showToast; exports.translateData = _chunkWLS4D6VGjs.translateData; exports.translateResponse = _chunkWLS4D6VGjs.translateResponse; exports.tryBootstrap = _chunkWLS4D6VGjs.tryBootstrap; exports.useComposedRefs = _chunkL5F5ZN5Fjs.useComposedRefs; exports.useIsMobile = _chunkL5F5ZN5Fjs.useIsMobile; exports.userObjectSchema = _chunkL5F5ZN5Fjs.userObjectSchema;
332
+
333
+
334
+
335
+
336
+ exports.AVAILABLE_OAUTH_SCOPES = _chunkAHXRHXZ2js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkAHXRHXZ2js.AbstractApiData; exports.AbstractService = _chunkAHXRHXZ2js.AbstractService; exports.Action = _chunkAHXRHXZ2js.Action; exports.Auth = _chunkAHXRHXZ2js.Auth; exports.AuthComponent = _chunkAHXRHXZ2js.AuthComponent; exports.AuthModule = _chunkAHXRHXZ2js.AuthModule; exports.AuthService = _chunkAHXRHXZ2js.AuthService; exports.AuthorModule = _chunkAHXRHXZ2js.AuthorModule; exports.BackupCodeVerify = _chunkAHXRHXZ2js.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkAHXRHXZ2js.BackupCodeVerifyModule; exports.Billing = _chunkAHXRHXZ2js.Billing; exports.BillingModule = _chunkAHXRHXZ2js.BillingModule; exports.BillingService = _chunkAHXRHXZ2js.BillingService; exports.BlockNoteDiffUtil = _chunkAHXRHXZ2js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkAHXRHXZ2js.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkAHXRHXZ2js.ClientAbstractService; exports.ClientHttpMethod = _chunkAHXRHXZ2js.ClientHttpMethod; exports.Company = _chunkAHXRHXZ2js.Company; exports.CompanyFields = _chunkAHXRHXZ2js.CompanyFields; exports.CompanyModule = _chunkAHXRHXZ2js.CompanyModule; exports.CompanyService = _chunkAHXRHXZ2js.CompanyService; exports.Content = _chunkAHXRHXZ2js.Content; exports.ContentFields = _chunkAHXRHXZ2js.ContentFields; exports.ContentModule = _chunkAHXRHXZ2js.ContentModule; exports.ContentService = _chunkAHXRHXZ2js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkAHXRHXZ2js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkWLS4D6VGjs.DataClassRegistry; exports.DataClassRegistry = _chunkWLS4D6VGjs.DataClassRegistry; exports.EndpointCreator = _chunkAHXRHXZ2js.EndpointCreator; exports.Feature = _chunkAHXRHXZ2js.Feature; exports.FeatureModule = _chunkAHXRHXZ2js.FeatureModule; exports.FeatureService = _chunkAHXRHXZ2js.FeatureService; exports.HttpMethod = _chunkAHXRHXZ2js.HttpMethod; exports.InvoiceStatus = _chunkAHXRHXZ2js.InvoiceStatus; exports.JsonApiDataFactory = _chunkWLS4D6VGjs.JsonApiDataFactory; exports.Module = _chunkAHXRHXZ2js.Module; exports.ModuleModule = _chunkAHXRHXZ2js.ModuleModule; exports.ModuleRegistrar = _chunkAHXRHXZ2js.ModuleRegistrar; exports.ModuleRegistry = _chunkAHXRHXZ2js.ModuleRegistry; exports.Modules = _chunkAHXRHXZ2js.Modules; exports.Notification = _chunkAHXRHXZ2js.Notification; exports.NotificationFields = _chunkAHXRHXZ2js.NotificationFields; exports.NotificationModule = _chunkAHXRHXZ2js.NotificationModule; exports.NotificationService = _chunkAHXRHXZ2js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkAHXRHXZ2js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkAHXRHXZ2js.OAuthClient; exports.OAuthModule = _chunkAHXRHXZ2js.OAuthModule; exports.OAuthService = _chunkAHXRHXZ2js.OAuthService; exports.Passkey = _chunkAHXRHXZ2js.Passkey; exports.PasskeyAuthenticationOptions = _chunkAHXRHXZ2js.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkAHXRHXZ2js.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkAHXRHXZ2js.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkAHXRHXZ2js.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkAHXRHXZ2js.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkAHXRHXZ2js.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkAHXRHXZ2js.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkAHXRHXZ2js.PasskeyRename; exports.PasskeyRenameModule = _chunkAHXRHXZ2js.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkAHXRHXZ2js.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkAHXRHXZ2js.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkAHXRHXZ2js.PaymentMethod; exports.Push = _chunkAHXRHXZ2js.Push; exports.PushModule = _chunkAHXRHXZ2js.PushModule; exports.PushService = _chunkAHXRHXZ2js.PushService; exports.ReferralModule = _chunkAHXRHXZ2js.ReferralModule; exports.ReferralService = _chunkAHXRHXZ2js.ReferralService; exports.ReferralStats = _chunkAHXRHXZ2js.ReferralStats; exports.ReferralStatsModule = _chunkAHXRHXZ2js.ReferralStatsModule; exports.RehydrationFactory = _chunkAHXRHXZ2js.RehydrationFactory; exports.Role = _chunkAHXRHXZ2js.Role; exports.RoleFields = _chunkAHXRHXZ2js.RoleFields; exports.RoleModule = _chunkAHXRHXZ2js.RoleModule; exports.RoleService = _chunkAHXRHXZ2js.RoleService; exports.S3 = _chunkAHXRHXZ2js.S3; exports.S3Module = _chunkAHXRHXZ2js.S3Module; exports.S3Service = _chunkAHXRHXZ2js.S3Service; exports.StripeCustomer = _chunkAHXRHXZ2js.StripeCustomer; exports.StripeCustomerModule = _chunkAHXRHXZ2js.StripeCustomerModule; exports.StripeCustomerService = _chunkAHXRHXZ2js.StripeCustomerService; exports.StripeInvoice = _chunkAHXRHXZ2js.StripeInvoice; exports.StripeInvoiceModule = _chunkAHXRHXZ2js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkAHXRHXZ2js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkAHXRHXZ2js.StripePaymentMethodModule; exports.StripePrice = _chunkAHXRHXZ2js.StripePrice; exports.StripePriceModule = _chunkAHXRHXZ2js.StripePriceModule; exports.StripePriceService = _chunkAHXRHXZ2js.StripePriceService; exports.StripeProduct = _chunkAHXRHXZ2js.StripeProduct; exports.StripeProductModule = _chunkAHXRHXZ2js.StripeProductModule; exports.StripeProductService = _chunkAHXRHXZ2js.StripeProductService; exports.StripePromotionCode = _chunkAHXRHXZ2js.StripePromotionCode; exports.StripePromotionCodeModule = _chunkAHXRHXZ2js.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkAHXRHXZ2js.StripePromotionCodeService; exports.StripeSubscription = _chunkAHXRHXZ2js.StripeSubscription; exports.StripeSubscriptionModule = _chunkAHXRHXZ2js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkAHXRHXZ2js.StripeSubscriptionService; exports.StripeUsage = _chunkAHXRHXZ2js.StripeUsage; exports.StripeUsageModule = _chunkAHXRHXZ2js.StripeUsageModule; exports.StripeUsageService = _chunkAHXRHXZ2js.StripeUsageService; exports.SubscriptionStatus = _chunkAHXRHXZ2js.SubscriptionStatus; exports.TableOptions = _chunkAHXRHXZ2js.TableOptions; exports.TotpAuthenticator = _chunkAHXRHXZ2js.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkAHXRHXZ2js.TotpAuthenticatorModule; exports.TotpSetup = _chunkAHXRHXZ2js.TotpSetup; exports.TotpSetupModule = _chunkAHXRHXZ2js.TotpSetupModule; exports.TotpVerify = _chunkAHXRHXZ2js.TotpVerify; exports.TotpVerifyLogin = _chunkAHXRHXZ2js.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkAHXRHXZ2js.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkAHXRHXZ2js.TotpVerifyModule; exports.TwoFactorChallenge = _chunkAHXRHXZ2js.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkAHXRHXZ2js.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkAHXRHXZ2js.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkAHXRHXZ2js.TwoFactorEnableModule; exports.TwoFactorService = _chunkAHXRHXZ2js.TwoFactorService; exports.TwoFactorStatus = _chunkAHXRHXZ2js.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkAHXRHXZ2js.TwoFactorStatusModule; exports.User = _chunkAHXRHXZ2js.User; exports.UserFields = _chunkAHXRHXZ2js.UserFields; exports.UserModule = _chunkAHXRHXZ2js.UserModule; exports.UserService = _chunkAHXRHXZ2js.UserService; exports.Waitlist = _chunkAHXRHXZ2js.Waitlist; exports.WaitlistModule = _chunkAHXRHXZ2js.WaitlistModule; exports.WaitlistService = _chunkAHXRHXZ2js.WaitlistService; exports.WaitlistStats = _chunkAHXRHXZ2js.WaitlistStats; exports.WaitlistStatsModule = _chunkAHXRHXZ2js.WaitlistStatsModule; exports.checkPermissions = _chunkAHXRHXZ2js.checkPermissions; exports.checkPermissionsFromServer = _chunkAHXRHXZ2js.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkAHXRHXZ2js.clearLastApiTotal; exports.cn = _chunkAHXRHXZ2js.cn; exports.composeRefs = _chunkAHXRHXZ2js.composeRefs; exports.createJsonApiInclusion = _chunkAHXRHXZ2js.createJsonApiInclusion; exports.dismissToast = _chunkAHXRHXZ2js.dismissToast; exports.entityObjectSchema = _chunkAHXRHXZ2js.entityObjectSchema; exports.exists = _chunkAHXRHXZ2js.exists; exports.formatDate = _chunkAHXRHXZ2js.formatDate; exports.getBootstrapper = _chunkWLS4D6VGjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkAHXRHXZ2js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkAHXRHXZ2js.getGlobalErrorHandler; exports.getIcon = _chunkAHXRHXZ2js.getIcon; exports.getIconByModule = _chunkAHXRHXZ2js.getIconByModule; exports.getIconByModuleName = _chunkAHXRHXZ2js.getIconByModuleName; exports.getLastApiTotal = _chunkAHXRHXZ2js.getLastApiTotal; exports.getLucideIcon = _chunkAHXRHXZ2js.getLucideIcon; exports.getLucideIconByModule = _chunkAHXRHXZ2js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkAHXRHXZ2js.getLucideIconByModuleName; exports.getTableComponents = _chunkAHXRHXZ2js.getTableComponents; exports.getTableOptions = _chunkAHXRHXZ2js.getTableOptions; exports.getValueFromPath = _chunkAHXRHXZ2js.getValueFromPath; exports.hasBootstrapper = _chunkWLS4D6VGjs.hasBootstrapper; exports.rehydrate = _chunkAHXRHXZ2js.rehydrate; exports.rehydrateList = _chunkAHXRHXZ2js.rehydrateList; exports.resetBootstrapStore = _chunkWLS4D6VGjs.resetBootstrapStore; exports.setBootstrapper = _chunkWLS4D6VGjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkAHXRHXZ2js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkAHXRHXZ2js.setGlobalErrorHandler; exports.showCustomToast = _chunkAHXRHXZ2js.showCustomToast; exports.showError = _chunkAHXRHXZ2js.showError; exports.showToast = _chunkAHXRHXZ2js.showToast; exports.translateData = _chunkWLS4D6VGjs.translateData; exports.translateResponse = _chunkWLS4D6VGjs.translateResponse; exports.tryBootstrap = _chunkWLS4D6VGjs.tryBootstrap; exports.useComposedRefs = _chunkAHXRHXZ2js.useComposedRefs; exports.useIsMobile = _chunkAHXRHXZ2js.useIsMobile; exports.userObjectSchema = _chunkAHXRHXZ2js.userObjectSchema;
329
337
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,++SAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"}
1
+ {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,iuTAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"}
@@ -61,6 +61,10 @@ import {
61
61
  Push,
62
62
  PushModule,
63
63
  PushService,
64
+ ReferralModule,
65
+ ReferralService,
66
+ ReferralStats,
67
+ ReferralStatsModule,
64
68
  RehydrationFactory,
65
69
  Role,
66
70
  RoleFields,
@@ -149,7 +153,7 @@ import {
149
153
  useComposedRefs,
150
154
  useIsMobile,
151
155
  userObjectSchema
152
- } from "../chunk-PHNL4QUF.mjs";
156
+ } from "../chunk-ZMGUP2AI.mjs";
153
157
  import "../chunk-AUXK7QSA.mjs";
154
158
  import "../chunk-C7C7VY4F.mjs";
155
159
  import {
@@ -230,6 +234,10 @@ export {
230
234
  Push,
231
235
  PushModule,
232
236
  PushService,
237
+ ReferralModule,
238
+ ReferralService,
239
+ ReferralStats,
240
+ ReferralStatsModule,
233
241
  RehydrationFactory,
234
242
  Role,
235
243
  RoleFields,
package/dist/index.d.mts CHANGED
@@ -2,14 +2,14 @@ export { A as ApiData } from './ApiData-DPKNfY-9.mjs';
2
2
  export { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
3
3
  export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CUKFDBx2.mjs';
4
4
  export { A as ApiResponseInterface } from './ApiResponseInterface-zeewugD7.mjs';
5
- export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
6
- export { A as AbstractService, b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, T as TotalRef, d as TwoFactorChallengeInterface, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-D0rbmLFp.mjs';
5
+ export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
6
+ export { A as AbstractService, b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, T as TotalRef, d as TwoFactorChallengeInterface, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-GQa6F4Ks.mjs';
7
7
  export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
8
8
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
9
9
  export { ClassValue } from 'clsx';
10
10
  export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-D_L2S4g9.mjs';
11
11
  export { A as Action, C as CompanyInput, h as CompanyInterface, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, i as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, j as RoleInterface, k as UserInput, U as UserInterface } from './notification.interface-D241WNUx.mjs';
12
- export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-8XglqHir.mjs';
12
+ export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-quk7psiq.mjs';
13
13
  export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-Dnm2DJKQ.mjs';
14
14
  export { C as ContentInput, a as ContentInterface } from './content.interface-b-mzkL_q.mjs';
15
15
  export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BxFFOPNq.mjs';
@@ -100,7 +100,7 @@ interface TokenHandler {
100
100
  *
101
101
  * @example
102
102
  * ```typescript
103
- * import { configureAuth } from "@carlonicora/nextjs-jsonapi/features";
103
+ * import { configureAuth } from "@carlonicora/nextjs-jsonapi";
104
104
  * import { updateToken, removeToken } from "@/features/auth/utils/AuthCookies";
105
105
  *
106
106
  * configureAuth({ updateToken, removeToken });
@@ -113,4 +113,65 @@ declare function configureAuth(handler: TokenHandler): void;
113
113
  */
114
114
  declare function getTokenHandler(): TokenHandler | null;
115
115
 
116
- export { type LoginConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureRoles, getRoleId, getTokenHandler, isRolesConfigured };
116
+ /**
117
+ * Configuration interface for frontend referral feature.
118
+ */
119
+ interface ReferralConfig {
120
+ /**
121
+ * Whether the referral feature is enabled.
122
+ * When false, components render nothing and hooks return null.
123
+ * @default false
124
+ */
125
+ enabled?: boolean;
126
+ /**
127
+ * Name of the cookie used to store referral codes.
128
+ * @default "referral_code"
129
+ */
130
+ cookieName?: string;
131
+ /**
132
+ * Number of days the referral cookie is valid.
133
+ * @default 30
134
+ */
135
+ cookieDays?: number;
136
+ /**
137
+ * Query parameter name for referral code in URL.
138
+ * @default "ref"
139
+ */
140
+ urlParamName?: string;
141
+ /**
142
+ * Base URL for referral links.
143
+ * @default window.location.origin (client-side only)
144
+ */
145
+ referralUrlBase?: string;
146
+ /**
147
+ * Path to append to base URL for referral links.
148
+ * @default "/"
149
+ */
150
+ referralPath?: string;
151
+ }
152
+ /**
153
+ * Configure referral feature settings.
154
+ * Call this at app startup to enable and configure referral functionality.
155
+ *
156
+ * @example
157
+ * ```typescript
158
+ * import { configureReferral } from "@carlonicora/nextjs-jsonapi";
159
+ *
160
+ * configureReferral({
161
+ * enabled: process.env.NEXT_PUBLIC_REFERRAL_ENABLED === 'true',
162
+ * cookieDays: 30,
163
+ * });
164
+ * ```
165
+ */
166
+ declare function configureReferral(config: ReferralConfig): void;
167
+ /**
168
+ * Get the current referral configuration.
169
+ * @internal
170
+ */
171
+ declare function getReferralConfig(): Required<ReferralConfig>;
172
+ /**
173
+ * Check if referral feature is enabled.
174
+ */
175
+ declare function isReferralEnabled(): boolean;
176
+
177
+ export { type LoginConfig, type ReferralConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };
package/dist/index.d.ts CHANGED
@@ -2,14 +2,14 @@ export { A as ApiData } from './ApiData-DPKNfY-9.js';
2
2
  export { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.js';
3
3
  export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CUKFDBx2.js';
4
4
  export { A as ApiResponseInterface } from './ApiResponseInterface-CAIAeP5d.js';
5
- export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
6
- export { A as AbstractService, b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, T as TotalRef, d as TwoFactorChallengeInterface, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-DOwqcUDT.js';
5
+ export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
6
+ export { A as AbstractService, b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, T as TotalRef, d as TwoFactorChallengeInterface, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service--8IFzWsB.js';
7
7
  export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.js';
8
8
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
9
9
  export { ClassValue } from 'clsx';
10
10
  export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-CU0B9hdO.js';
11
11
  export { A as Action, C as CompanyInput, h as CompanyInterface, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, i as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, j as RoleInterface, k as UserInput, U as UserInterface } from './notification.interface-CR2PuV6Y.js';
12
- export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-BJGKQ0zr.js';
12
+ export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-DgpoGNZN.js';
13
13
  export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-BcJty0rv.js';
14
14
  export { C as ContentInput, a as ContentInterface } from './content.interface-CpCDB1Uk.js';
15
15
  export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-CIWxo8NP.js';
@@ -100,7 +100,7 @@ interface TokenHandler {
100
100
  *
101
101
  * @example
102
102
  * ```typescript
103
- * import { configureAuth } from "@carlonicora/nextjs-jsonapi/features";
103
+ * import { configureAuth } from "@carlonicora/nextjs-jsonapi";
104
104
  * import { updateToken, removeToken } from "@/features/auth/utils/AuthCookies";
105
105
  *
106
106
  * configureAuth({ updateToken, removeToken });
@@ -113,4 +113,65 @@ declare function configureAuth(handler: TokenHandler): void;
113
113
  */
114
114
  declare function getTokenHandler(): TokenHandler | null;
115
115
 
116
- export { type LoginConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureRoles, getRoleId, getTokenHandler, isRolesConfigured };
116
+ /**
117
+ * Configuration interface for frontend referral feature.
118
+ */
119
+ interface ReferralConfig {
120
+ /**
121
+ * Whether the referral feature is enabled.
122
+ * When false, components render nothing and hooks return null.
123
+ * @default false
124
+ */
125
+ enabled?: boolean;
126
+ /**
127
+ * Name of the cookie used to store referral codes.
128
+ * @default "referral_code"
129
+ */
130
+ cookieName?: string;
131
+ /**
132
+ * Number of days the referral cookie is valid.
133
+ * @default 30
134
+ */
135
+ cookieDays?: number;
136
+ /**
137
+ * Query parameter name for referral code in URL.
138
+ * @default "ref"
139
+ */
140
+ urlParamName?: string;
141
+ /**
142
+ * Base URL for referral links.
143
+ * @default window.location.origin (client-side only)
144
+ */
145
+ referralUrlBase?: string;
146
+ /**
147
+ * Path to append to base URL for referral links.
148
+ * @default "/"
149
+ */
150
+ referralPath?: string;
151
+ }
152
+ /**
153
+ * Configure referral feature settings.
154
+ * Call this at app startup to enable and configure referral functionality.
155
+ *
156
+ * @example
157
+ * ```typescript
158
+ * import { configureReferral } from "@carlonicora/nextjs-jsonapi";
159
+ *
160
+ * configureReferral({
161
+ * enabled: process.env.NEXT_PUBLIC_REFERRAL_ENABLED === 'true',
162
+ * cookieDays: 30,
163
+ * });
164
+ * ```
165
+ */
166
+ declare function configureReferral(config: ReferralConfig): void;
167
+ /**
168
+ * Get the current referral configuration.
169
+ * @internal
170
+ */
171
+ declare function getReferralConfig(): Required<ReferralConfig>;
172
+ /**
173
+ * Check if referral feature is enabled.
174
+ */
175
+ declare function isReferralEnabled(): boolean;
176
+
177
+ export { type LoginConfig, type ReferralConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };